diff --git a/README.md b/README.md index 8dc0c12b36..37b4b161a8 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,12 @@ This repo contains sample code for a simple chat webapp that integrates with Azu ## Prerequisites - An existing Azure OpenAI resource and model deployment of a chat model (e.g. `gpt-35-turbo-16k`, `gpt-4`) -- To use Azure OpenAI on your data: an existing Azure Cognitive Search resource and index. +- To use Azure OpenAI on your data: one of the following data sources: + - Azure AI Search Index + - Azure CosmosDB Mongo vCore vector index + - Elasticsearch index (preview) + - Pinecone index (preview) + - AzureML index (preview) ## Deploy the app @@ -21,7 +26,7 @@ Please see the [section below](#add-an-identity-provider) for important informat ### Deploy from your local machine #### Local Setup: Basic Chat Experience -1. Update the environment variables listed in `app.py` as described in the [Environment variables](#environment-variables) section. +1. Copy `.env.sample` to a new file called `.env` and configure the settings as described in the [Environment variables](#environment-variables) section. These variables are required: - `AZURE_OPENAI_RESOURCE` @@ -37,9 +42,9 @@ Please see the [section below](#add-an-identity-provider) for important informat See the [documentation](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/reference#example-response-2) for more information on these parameters. -2. Start the app with `start.cmd`. This will build the frontend, install backend dependencies, and then start the app. +2. Start the app with `start.cmd`. This will build the frontend, install backend dependencies, and then start the app. Or, just run the backend in debug mode using the VSCode debug configuration in `.vscode/launch.json`. -3. You can see the local running app at http://127.0.0.1:5000. +3. You can see the local running app at http://127.0.0.1:50505. #### Local Setup: Chat with your data (Preview) [More information about Azure OpenAI on your data](https://learn.microsoft.com/en-us/azure/cognitive-services/openai/concepts/use-your-data) @@ -47,7 +52,7 @@ Please see the [section below](#add-an-identity-provider) for important informat 1. Update the `AZURE_OPENAI_*` environment variables as described above. 2. To connect to your data, you need to specify an Azure Cognitive Search index to use. You can [create this index yourself](https://learn.microsoft.com/en-us/azure/search/search-get-started-portal) or use the [Azure AI Studio](https://oai.azure.com/portal/chat) to create the index for you. - These variables are required when adding your data: + These variables are required when adding your data with Azure AI Search: - `AZURE_SEARCH_SERVICE` - `AZURE_SEARCH_INDEX` - `AZURE_SEARCH_KEY` @@ -67,8 +72,8 @@ Please see the [section below](#add-an-identity-provider) for important informat - `AZURE_SEARCH_STRICTNESS` - `AZURE_OPENAI_EMBEDDING_NAME` -3. Start the app with `start.cmd`. This will build the frontend, install backend dependencies, and then start the app. -4. You can see the local running app at http://127.0.0.1:5000. +3. Start the app with `start.cmd`. This will build the frontend, install backend dependencies, and then start the app. Or, just run the backend in debug mode using the VSCode debug configuration in `.vscode/launch.json`. +4. You can see the local running app at http://127.0.0.1:50505. #### Local Setup: Enable Chat History To enable chat history, you will need to set up CosmosDB resources. The ARM template in the `infrastructure` folder can be used to deploy an app service and a CosmosDB with the database and container configured. Then specify these additional environment variables: @@ -77,7 +82,7 @@ To enable chat history, you will need to set up CosmosDB resources. The ARM temp - `AZURE_COSMOSDB_CONVERSATIONS_CONTAINER` - `AZURE_COSMOSDB_ACCOUNT_KEY` -As above, start the app with `start.cmd`, then visit the local running app at http://127.0.0.1:5000. +As above, start the app with `start.cmd`, then visit the local running app at http://127.0.0.1:50505. Or, just run the backend in debug mode using the VSCode debug configuration in `.vscode/launch.json`. #### Local Setup: Enable Message Feedback To enable message feedback, you will need to set up CosmosDB resources. Then specify these additional environment variable: @@ -123,32 +128,10 @@ To add further access controls, update the logic in `getUserInfoList` in `fronte 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. ### Scalability -For apps published with `az webapp up` or from the Azure AI Studio, you can increase your app's ability to handle concurrent requests from multiple users with the following steps: -1. Upgrade your App Service plan tier to a higher tier, for example tiers with more than one vCPU. - -2. Configure the following app setting on your App Service in the Azure Portal: -- `PYTHON_ENABLE_GUNICORN_MULTIWORKERS`: true -This will default to use a default worker count of (2 * numCores) + 1 and thread count of 1. -If your App Service Plan has additional compute capacity and you want to increase the worker or thread count, you can figure these additional settings accordingly: -- `PYTHON_GUNICORN_CUSTOM_WORKER_NUM` -- `PYTHON_GUNICORN_CUSTOM_THREAD_NUM` +You can configure the number of threads and workers in `gunicorn.conf.py`. After making a change, redeploy your app using the commands listed above. See the [Oryx documentation](https://github.com/microsoft/Oryx/blob/main/doc/configuration.md) for more details on these settings. -After adding the settings, be sure to save the configuration and then restart your app. - -For apps published with `One click Azure deployment` you can increase your app's ability to handle concurrent requests from multiple users with the following steps: -1. Upgrade your App Service plan tier to a higher tier, for example tiers with more than one vCPU. - -2. Configure the following app settings on your App Service in the Azure Portal: -- `UWSGI_PROCESSES`: 5 (may be higher or lower depending on your App Service Plan tier) -- `UWSGI_THREADS`: 5 (may be higher or lower depending on your App Service Plan tier) - -After adding the settings, be sure to save the configuration and then restart your app. - -> In case you build your own docker image based on the `WebApp.Dockerfile` and host it in a App Serice, you can also increase your app's ability to handle concurrent requests from multiple users with the above steps. -When you host your container not in an App Service you can add this seetings as container environment variable. - ### Debugging your deployed app First, add an environment variable on the app service resource called "DEBUG". Set this to "true". @@ -208,24 +191,24 @@ We recommend keeping these best practices in mind: ## Environment variables -Note: settings starting with `AZURE_SEARCH` are only needed when using Azure OpenAI on your data. If not connecting to your data, you only need to specify `AZURE_OPENAI` settings. +Note: settings starting with `AZURE_SEARCH` are only needed when using Azure OpenAI on your data with Azure AI Search. If not connecting to your data, you only need to specify `AZURE_OPENAI` settings. | App Setting | Value | Note | | --- | --- | ------------- | -|AZURE_SEARCH_SERVICE||The name of your Azure Cognitive Search resource| -|AZURE_SEARCH_INDEX||The name of your Azure Cognitive Search Index| -|AZURE_SEARCH_KEY||An **admin key** for your Azure Cognitive Search resource| +|AZURE_SEARCH_SERVICE||The name of your Azure AI Search resource| +|AZURE_SEARCH_INDEX||The name of your Azure AI Search Index| +|AZURE_SEARCH_KEY||An **admin key** for your Azure AI Search resource| |AZURE_SEARCH_USE_SEMANTIC_SEARCH|False|Whether or not to use semantic search| |AZURE_SEARCH_QUERY_TYPE|simple|Query type: simple, semantic, vector, vectorSimpleHybrid, or vectorSemanticHybrid. Takes precedence over AZURE_SEARCH_USE_SEMANTIC_SEARCH| |AZURE_SEARCH_SEMANTIC_SEARCH_CONFIG||The name of the semantic search configuration to use if using semantic search.| -|AZURE_SEARCH_TOP_K|5|The number of documents to retrieve from Azure Cognitive Search.| +|AZURE_SEARCH_TOP_K|5|The number of documents to retrieve from Azure AI Search.| |AZURE_SEARCH_ENABLE_IN_DOMAIN|True|Limits responses to only queries relating to your data.| -|AZURE_SEARCH_CONTENT_COLUMNS||List of fields in your Azure Cognitive Search index that contains the text content of your documents to use when formulating a bot response. Represent these as a string joined with "|", e.g. `"product_description|product_manual"`| -|AZURE_SEARCH_FILENAME_COLUMN|| Field from your Azure Cognitive Search index that gives a unique idenitfier of the source of your data to display in the UI.| -|AZURE_SEARCH_TITLE_COLUMN||Field from your Azure Cognitive Search index that gives a relevant title or header for your data content to display in the UI.| -|AZURE_SEARCH_URL_COLUMN||Field from your Azure Cognitive Search index that contains a URL for the document, e.g. an Azure Blob Storage URI. This value is not currently used.| -|AZURE_SEARCH_VECTOR_COLUMNS||List of fields in your Azure Cognitive Search index that contain vector embeddings of your documents to use when formulating a bot response. Represent these as a string joined with "|", e.g. `"product_description|product_manual"`| -|AZURE_SEARCH_PERMITTED_GROUPS_COLUMN||Field from your Azure Cognitive Search index that contains AAD group IDs that determine document-level access control.| +|AZURE_SEARCH_CONTENT_COLUMNS||List of fields in your Azure AI Search index that contains the text content of your documents to use when formulating a bot response. Represent these as a string joined with "|", e.g. `"product_description|product_manual"`| +|AZURE_SEARCH_FILENAME_COLUMN|| Field from your Azure AI Search index that gives a unique idenitfier of the source of your data to display in the UI.| +|AZURE_SEARCH_TITLE_COLUMN||Field from your Azure AI Search index that gives a relevant title or header for your data content to display in the UI.| +|AZURE_SEARCH_URL_COLUMN||Field from your Azure AI Search index that contains a URL for the document, e.g. an Azure Blob Storage URI. This value is not currently used.| +|AZURE_SEARCH_VECTOR_COLUMNS||List of fields in your Azure AI Search index that contain vector embeddings of your documents to use when formulating a bot response. Represent these as a string joined with "|", e.g. `"product_description|product_manual"`| +|AZURE_SEARCH_PERMITTED_GROUPS_COLUMN||Field from your Azure AI Search index that contains AAD group IDs that determine document-level access control.| |AZURE_SEARCH_STRICTNESS|3|Integer from 1 to 5 specifying the strictness for the model limiting responses to your data.| |AZURE_OPENAI_RESOURCE||the name of your Azure OpenAI resource| |AZURE_OPENAI_MODEL||The name of your model deployment| diff --git a/frontend/src/pages/chat/Chat.tsx b/frontend/src/pages/chat/Chat.tsx index 81f6affc47..d0e54d9a9b 100644 --- a/frontend/src/pages/chat/Chat.tsx +++ b/frontend/src/pages/chat/Chat.tsx @@ -75,6 +75,7 @@ const Chat = () => { useEffect(() => { if (appStateContext?.state.isCosmosDBAvailable?.status !== CosmosDBStatus.Working + && appStateContext?.state.isCosmosDBAvailable?.status !== CosmosDBStatus.NotConfigured && appStateContext?.state.chatHistoryLoadingState === ChatHistoryLoadingState.Fail && hideErrorDialog) { let subtitle = `${appStateContext.state.isCosmosDBAvailable.status}. Please contact the site administrator.` diff --git a/start.cmd b/start.cmd index b85cb70cb1..d3cf79e4da 100644 --- a/start.cmd +++ b/start.cmd @@ -28,13 +28,13 @@ if "%errorlevel%" neq "0" ( exit /B %errorlevel% ) -echo. -echo Starting backend -echo. -cd .. -start http://127.0.0.1:5000 -call python ./app.py -if "%errorlevel%" neq "0" ( - echo Failed to start backend - exit /B %errorlevel% -) +echo. +echo Starting backend +echo. +cd .. +start http://127.0.0.1:50505 +call uvicorn app:app +if "%errorlevel%" neq "0" ( + echo Failed to start backend + exit /B %errorlevel% +) diff --git a/start.sh b/start.sh index 8784c4793c..ad4040f68c 100755 --- a/start.sh +++ b/start.sh @@ -25,7 +25,7 @@ cd .. echo "" echo "Starting backend" echo "" -./.venv/bin/python -m flask run --port=5000 --host=127.0.0.1 --reload --debug +./.venv/bin/python -m quart run --port=50505 --host=127.0.0.1 --reload --debug if [ $? -ne 0 ]; then echo "Failed to start backend" exit $? diff --git a/static/assets/index-81f496aa.js b/static/assets/index-f7facd89.js similarity index 97% rename from static/assets/index-81f496aa.js rename to static/assets/index-f7facd89.js index e535771649..1c8368f02a 100644 --- a/static/assets/index-81f496aa.js +++ b/static/assets/index-f7facd89.js @@ -6,7 +6,7 @@ var OS=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var iY=OS((pr,gr) * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var a1=Symbol.for("react.element"),BS=Symbol.for("react.portal"),HS=Symbol.for("react.fragment"),US=Symbol.for("react.strict_mode"),zS=Symbol.for("react.profiler"),GS=Symbol.for("react.provider"),WS=Symbol.for("react.context"),KS=Symbol.for("react.forward_ref"),jS=Symbol.for("react.suspense"),$S=Symbol.for("react.memo"),VS=Symbol.for("react.lazy"),n9=Symbol.iterator;function YS(e){return e===null||typeof e!="object"?null:(e=n9&&e[n9]||e["@@iterator"],typeof e=="function"?e:null)}var d_={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f_=Object.assign,h_={};function ul(e,t,n){this.props=e,this.context=t,this.refs=h_,this.updater=n||d_}ul.prototype.isReactComponent={};ul.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")};ul.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function m_(){}m_.prototype=ul.prototype;function op(e,t,n){this.props=e,this.context=t,this.refs=h_,this.updater=n||d_}var ap=op.prototype=new m_;ap.constructor=op;f_(ap,ul.prototype);ap.isPureReactComponent=!0;var r9=Array.isArray,p_=Object.prototype.hasOwnProperty,sp={current:null},g_={key:!0,ref:!0,__self:!0,__source:!0};function E_(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)p_.call(t,r)&&!g_.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 iY=OS((pr,gr) `),o=r.stack.split(` `),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||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{Qf=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Jl(e):""}function d6(e){switch(e.tag){case 5:return Jl(e.type);case 16:return Jl("Lazy");case 13:return Jl("Suspense");case 19:return Jl("SuspenseList");case 0:case 2:case 15:return e=Xf(e.type,!1),e;case 11:return e=Xf(e.type.render,!1),e;case 1:return e=Xf(e.type,!0),e;default:return""}}function Pm(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 Cs:return"Fragment";case ys:return"Portal";case Rm:return"Profiler";case fp:return"StrictMode";case Om:return"Suspense";case Mm:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case S_:return(e.displayName||"Context")+".Consumer";case C_:return(e._context.displayName||"Context")+".Provider";case hp:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case mp:return t=e.displayName||null,t!==null?t:Pm(e.type)||"Memo";case Io:t=e._payload,e=e._init;try{return Pm(e(t))}catch{}}return null}function f6(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 Pm(t);case 8:return t===fp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Qo(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function b_(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function h6(e){var t=b_(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 U1(e){e._valueTracker||(e._valueTracker=h6(e))}function k_(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=b_(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function od(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 Lm(e,t){var n=t.checked;return Ft({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function l9(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Qo(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function I_(e,t){t=t.checked,t!=null&&dp(e,"checked",t,!1)}function Bm(e,t){I_(e,t);var n=Qo(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Hm(e,t.type,n):t.hasOwnProperty("defaultValue")&&Hm(e,t.type,Qo(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function u9(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 Hm(e,t,n){(t!=="number"||od(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var eu=Array.isArray;function Bs(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=z1.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function xu(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ou={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},m6=["Webkit","ms","Moz","O"];Object.keys(ou).forEach(function(e){m6.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ou[t]=ou[e]})});function D_(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ou.hasOwnProperty(e)&&ou[e]?(""+t).trim():t+"px"}function w_(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=D_(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var p6=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 Gm(e,t){if(t){if(p6[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Q(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Q(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Q(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Q(62))}}function Wm(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 Km=null;function pp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var jm=null,Hs=null,Us=null;function f9(e){if(e=u1(e)){if(typeof jm!="function")throw Error(Q(280));var t=e.stateNode;t&&(t=Jd(t),jm(e.stateNode,e.type,t))}}function R_(e){Hs?Us?Us.push(e):Us=[e]:Hs=e}function O_(){if(Hs){var e=Hs,t=Us;if(Us=Hs=null,f9(e),t)for(e=0;e>>=0,e===0?32:31-(k6(e)/I6|0)|0}var G1=64,W1=4194304;function tu(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 ud(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=tu(s):(o&=a,o!==0&&(r=tu(o)))}else a=n&~i,a!==0?r=tu(a):o!==0&&(r=tu(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 s1(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-oi(t),e[t]=n}function D6(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=su),y9=String.fromCharCode(32),C9=!1;function ey(e,t){switch(e){case"keyup":return oA.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ty(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ss=!1;function sA(e,t){switch(e){case"compositionend":return ty(t);case"keypress":return t.which!==32?null:(C9=!0,y9);case"textInput":return e=t.data,e===y9&&C9?null:e;default:return null}}function lA(e,t){if(Ss)return e==="compositionend"||!Sp&&ey(e,t)?(e=Z_(),Oc=_p=Po=null,Ss=!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=k9(n)}}function oy(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?oy(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ay(){for(var e=window,t=od();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=od(e.document)}return t}function Ap(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 EA(e){var t=ay(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&oy(n.ownerDocument.documentElement,n)){if(r!==null&&Ap(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=I9(n,o);var a=I9(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,As=null,Xm=null,uu=null,Zm=!1;function F9(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zm||As==null||As!==od(r)||(r=As,"selectionStart"in r&&Ap(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}),uu&&Mu(uu,r)||(uu=r,r=fd(Xm,"onSelect"),0Is||(e.current=i0[Is],i0[Is]=null,Is--)}function lt(e,t){Is++,i0[Is]=e.current,e.current=t}var Xo={},yn=ea(Xo),tr=ea(!1),Ba=Xo;function qs(e,t){var n=e.type.contextTypes;if(!n)return Xo;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 nr(e){return e=e.childContextTypes,e!=null}function md(){gt(tr),gt(yn)}function M9(e,t,n){if(yn.current!==Xo)throw Error(Q(168));lt(yn,t),lt(tr,n)}function py(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(Q(108,f6(e)||"Unknown",i));return Ft({},n,r)}function pd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xo,Ba=yn.current,lt(yn,e),lt(tr,tr.current),!0}function P9(e,t,n){var r=e.stateNode;if(!r)throw Error(Q(169));n?(e=py(e,t,Ba),r.__reactInternalMemoizedMergedChildContext=e,gt(tr),gt(yn),lt(yn,e)):gt(tr),lt(tr,n)}var Ji=null,ef=!1,dh=!1;function gy(e){Ji===null?Ji=[e]:Ji.push(e)}function xA(e){ef=!0,gy(e)}function ta(){if(!dh&&Ji!==null){dh=!0;var e=0,t=Xe;try{var n=Ji;for(Xe=1;e>=a,i-=a,eo=1<<32-oi(t)+i|n<D?(M=S,S=null):M=S.sibling;var I=f(m,S,_[D],C);if(I===null){S===null&&(S=M);break}e&&S&&I.alternate===null&&t(m,S),T=o(I,T,D),A===null?F=I:A.sibling=I,A=I,S=M}if(D===_.length)return n(m,S),Ct&&_a(m,D),F;if(S===null){for(;D<_.length;D++)S=d(m,_[D],C),S!==null&&(T=o(S,T,D),A===null?F=S:A.sibling=S,A=S);return Ct&&_a(m,D),F}for(S=r(m,S);D<_.length;D++)M=p(S,m,D,_[D],C),M!==null&&(e&&M.alternate!==null&&S.delete(M.key===null?D:M.key),T=o(M,T,D),A===null?F=M:A.sibling=M,A=M);return e&&S.forEach(function(L){return t(m,L)}),Ct&&_a(m,D),F}function v(m,T,_,C){var F=kl(_);if(typeof F!="function")throw Error(Q(150));if(_=F.call(_),_==null)throw Error(Q(151));for(var A=F=null,S=T,D=T=0,M=null,I=_.next();S!==null&&!I.done;D++,I=_.next()){S.index>D?(M=S,S=null):M=S.sibling;var L=f(m,S,I.value,C);if(L===null){S===null&&(S=M);break}e&&S&&L.alternate===null&&t(m,S),T=o(L,T,D),A===null?F=L:A.sibling=L,A=L,S=M}if(I.done)return n(m,S),Ct&&_a(m,D),F;if(S===null){for(;!I.done;D++,I=_.next())I=d(m,I.value,C),I!==null&&(T=o(I,T,D),A===null?F=I:A.sibling=I,A=I);return Ct&&_a(m,D),F}for(S=r(m,S);!I.done;D++,I=_.next())I=p(S,m,D,I.value,C),I!==null&&(e&&I.alternate!==null&&S.delete(I.key===null?D:I.key),T=o(I,T,D),A===null?F=I:A.sibling=I,A=I);return e&&S.forEach(function(O){return t(m,O)}),Ct&&_a(m,D),F}function y(m,T,_,C){if(typeof _=="object"&&_!==null&&_.type===Cs&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case H1:e:{for(var F=_.key,A=T;A!==null;){if(A.key===F){if(F=_.type,F===Cs){if(A.tag===7){n(m,A.sibling),T=i(A,_.props.children),T.return=m,m=T;break e}}else if(A.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===Io&&W9(F)===A.type){n(m,A.sibling),T=i(A,_.props),T.ref=Dl(m,A,_),T.return=m,m=T;break e}n(m,A);break}else t(m,A);A=A.sibling}_.type===Cs?(T=Ma(_.props.children,m.mode,C,_.key),T.return=m,m=T):(C=Gc(_.type,_.key,_.props,null,m.mode,C),C.ref=Dl(m,T,_),C.return=m,m=C)}return a(m);case ys:e:{for(A=_.key;T!==null;){if(T.key===A)if(T.tag===4&&T.stateNode.containerInfo===_.containerInfo&&T.stateNode.implementation===_.implementation){n(m,T.sibling),T=i(T,_.children||[]),T.return=m,m=T;break e}else{n(m,T);break}else t(m,T);T=T.sibling}T=Th(_,m.mode,C),T.return=m,m=T}return a(m);case Io:return A=_._init,y(m,T,A(_._payload),C)}if(eu(_))return h(m,T,_,C);if(kl(_))return v(m,T,_,C);Q1(m,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,T!==null&&T.tag===6?(n(m,T.sibling),T=i(T,_),T.return=m,m=T):(n(m,T),T=vh(_,m.mode,C),T.return=m,m=T),a(m)):n(m,T)}return y}var Xs=Ay(!0),by=Ay(!1),c1={},Di=ea(c1),Hu=ea(c1),Uu=ea(c1);function Na(e){if(e===c1)throw Error(Q(174));return e}function Rp(e,t){switch(lt(Uu,t),lt(Hu,e),lt(Di,c1),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:zm(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=zm(t,e)}gt(Di),lt(Di,t)}function Zs(){gt(Di),gt(Hu),gt(Uu)}function ky(e){Na(Uu.current);var t=Na(Di.current),n=zm(t,e.type);t!==n&&(lt(Hu,e),lt(Di,n))}function Op(e){Hu.current===e&&(gt(Di),gt(Hu))}var kt=ea(0);function yd(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 fh=[];function Mp(){for(var e=0;en?n:4,e(!0);var r=hh.transition;hh.transition={};try{e(!1),t()}finally{Xe=n,hh.transition=r}}function Gy(){return Ur().memoizedState}function RA(e,t,n){var r=Vo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Wy(e))Ky(t,n);else if(n=_y(e,t,n,r),n!==null){var i=Ln();ai(n,e,r,i),jy(n,t,r)}}function OA(e,t,n){var r=Vo(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Wy(e))Ky(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,li(s,a)){var l=t.interleaved;l===null?(i.next=i,Dp(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=_y(e,t,i,r),n!==null&&(i=Ln(),ai(n,e,r,i),jy(n,t,r))}}function Wy(e){var t=e.alternate;return e===It||t!==null&&t===It}function Ky(e,t){cu=Cd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function jy(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ep(e,n)}}var Sd={readContext:Hr,useCallback:pn,useContext:pn,useEffect:pn,useImperativeHandle:pn,useInsertionEffect:pn,useLayoutEffect:pn,useMemo:pn,useReducer:pn,useRef:pn,useState:pn,useDebugValue:pn,useDeferredValue:pn,useTransition:pn,useMutableSource:pn,useSyncExternalStore:pn,useId:pn,unstable_isNewReconciler:!1},MA={readContext:Hr,useCallback:function(e,t){return _i().memoizedState=[e,t===void 0?null:t],e},useContext:Hr,useEffect:j9,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Bc(4194308,4,Ly.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bc(4,2,e,t)},useMemo:function(e,t){var n=_i();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_i();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=RA.bind(null,It,e),[r.memoizedState,e]},useRef:function(e){var t=_i();return e={current:e},t.memoizedState=e},useState:K9,useDebugValue:Up,useDeferredValue:function(e){return _i().memoizedState=e},useTransition:function(){var e=K9(!1),t=e[0];return e=wA.bind(null,e[1]),_i().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=It,i=_i();if(Ct){if(n===void 0)throw Error(Q(407));n=n()}else{if(n=t(),nn===null)throw Error(Q(349));Ua&30||xy(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,j9(Dy.bind(null,r,o,e),[e]),r.flags|=2048,Wu(9,Ny.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=_i(),t=nn.identifierPrefix;if(Ct){var n=to,r=eo;n=(r&~(1<<32-oi(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=zu++,0Is||(e.current=i0[Is],i0[Is]=null,Is--)}function lt(e,t){Is++,i0[Is]=e.current,e.current=t}var Xo={},Cn=ea(Xo),tr=ea(!1),Ba=Xo;function qs(e,t){var n=e.type.contextTypes;if(!n)return Xo;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 nr(e){return e=e.childContextTypes,e!=null}function md(){gt(tr),gt(Cn)}function M9(e,t,n){if(Cn.current!==Xo)throw Error(Q(168));lt(Cn,t),lt(tr,n)}function py(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(Q(108,f6(e)||"Unknown",i));return Ft({},n,r)}function pd(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xo,Ba=Cn.current,lt(Cn,e),lt(tr,tr.current),!0}function P9(e,t,n){var r=e.stateNode;if(!r)throw Error(Q(169));n?(e=py(e,t,Ba),r.__reactInternalMemoizedMergedChildContext=e,gt(tr),gt(Cn),lt(Cn,e)):gt(tr),lt(tr,n)}var Ji=null,ef=!1,dh=!1;function gy(e){Ji===null?Ji=[e]:Ji.push(e)}function xA(e){ef=!0,gy(e)}function ta(){if(!dh&&Ji!==null){dh=!0;var e=0,t=Xe;try{var n=Ji;for(Xe=1;e>=a,i-=a,eo=1<<32-oi(t)+i|n<D?(M=S,S=null):M=S.sibling;var I=f(m,S,_[D],C);if(I===null){S===null&&(S=M);break}e&&S&&I.alternate===null&&t(m,S),T=o(I,T,D),A===null?F=I:A.sibling=I,A=I,S=M}if(D===_.length)return n(m,S),Ct&&_a(m,D),F;if(S===null){for(;D<_.length;D++)S=d(m,_[D],C),S!==null&&(T=o(S,T,D),A===null?F=S:A.sibling=S,A=S);return Ct&&_a(m,D),F}for(S=r(m,S);D<_.length;D++)M=p(S,m,D,_[D],C),M!==null&&(e&&M.alternate!==null&&S.delete(M.key===null?D:M.key),T=o(M,T,D),A===null?F=M:A.sibling=M,A=M);return e&&S.forEach(function(L){return t(m,L)}),Ct&&_a(m,D),F}function v(m,T,_,C){var F=kl(_);if(typeof F!="function")throw Error(Q(150));if(_=F.call(_),_==null)throw Error(Q(151));for(var A=F=null,S=T,D=T=0,M=null,I=_.next();S!==null&&!I.done;D++,I=_.next()){S.index>D?(M=S,S=null):M=S.sibling;var L=f(m,S,I.value,C);if(L===null){S===null&&(S=M);break}e&&S&&L.alternate===null&&t(m,S),T=o(L,T,D),A===null?F=L:A.sibling=L,A=L,S=M}if(I.done)return n(m,S),Ct&&_a(m,D),F;if(S===null){for(;!I.done;D++,I=_.next())I=d(m,I.value,C),I!==null&&(T=o(I,T,D),A===null?F=I:A.sibling=I,A=I);return Ct&&_a(m,D),F}for(S=r(m,S);!I.done;D++,I=_.next())I=p(S,m,D,I.value,C),I!==null&&(e&&I.alternate!==null&&S.delete(I.key===null?D:I.key),T=o(I,T,D),A===null?F=I:A.sibling=I,A=I);return e&&S.forEach(function(O){return t(m,O)}),Ct&&_a(m,D),F}function y(m,T,_,C){if(typeof _=="object"&&_!==null&&_.type===Cs&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case H1:e:{for(var F=_.key,A=T;A!==null;){if(A.key===F){if(F=_.type,F===Cs){if(A.tag===7){n(m,A.sibling),T=i(A,_.props.children),T.return=m,m=T;break e}}else if(A.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===Io&&W9(F)===A.type){n(m,A.sibling),T=i(A,_.props),T.ref=Dl(m,A,_),T.return=m,m=T;break e}n(m,A);break}else t(m,A);A=A.sibling}_.type===Cs?(T=Ma(_.props.children,m.mode,C,_.key),T.return=m,m=T):(C=Gc(_.type,_.key,_.props,null,m.mode,C),C.ref=Dl(m,T,_),C.return=m,m=C)}return a(m);case ys:e:{for(A=_.key;T!==null;){if(T.key===A)if(T.tag===4&&T.stateNode.containerInfo===_.containerInfo&&T.stateNode.implementation===_.implementation){n(m,T.sibling),T=i(T,_.children||[]),T.return=m,m=T;break e}else{n(m,T);break}else t(m,T);T=T.sibling}T=Th(_,m.mode,C),T.return=m,m=T}return a(m);case Io:return A=_._init,y(m,T,A(_._payload),C)}if(eu(_))return h(m,T,_,C);if(kl(_))return v(m,T,_,C);Q1(m,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,T!==null&&T.tag===6?(n(m,T.sibling),T=i(T,_),T.return=m,m=T):(n(m,T),T=vh(_,m.mode,C),T.return=m,m=T),a(m)):n(m,T)}return y}var Xs=Ay(!0),by=Ay(!1),c1={},Di=ea(c1),Hu=ea(c1),Uu=ea(c1);function Na(e){if(e===c1)throw Error(Q(174));return e}function Rp(e,t){switch(lt(Uu,t),lt(Hu,e),lt(Di,c1),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:zm(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=zm(t,e)}gt(Di),lt(Di,t)}function Zs(){gt(Di),gt(Hu),gt(Uu)}function ky(e){Na(Uu.current);var t=Na(Di.current),n=zm(t,e.type);t!==n&&(lt(Hu,e),lt(Di,n))}function Op(e){Hu.current===e&&(gt(Di),gt(Hu))}var kt=ea(0);function yd(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 fh=[];function Mp(){for(var e=0;en?n:4,e(!0);var r=hh.transition;hh.transition={};try{e(!1),t()}finally{Xe=n,hh.transition=r}}function Gy(){return Ur().memoizedState}function RA(e,t,n){var r=Vo(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Wy(e))Ky(t,n);else if(n=_y(e,t,n,r),n!==null){var i=Ln();ai(n,e,r,i),jy(n,t,r)}}function OA(e,t,n){var r=Vo(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Wy(e))Ky(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,li(s,a)){var l=t.interleaved;l===null?(i.next=i,Dp(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=_y(e,t,i,r),n!==null&&(i=Ln(),ai(n,e,r,i),jy(n,t,r))}}function Wy(e){var t=e.alternate;return e===It||t!==null&&t===It}function Ky(e,t){cu=Cd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function jy(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ep(e,n)}}var Sd={readContext:Hr,useCallback:pn,useContext:pn,useEffect:pn,useImperativeHandle:pn,useInsertionEffect:pn,useLayoutEffect:pn,useMemo:pn,useReducer:pn,useRef:pn,useState:pn,useDebugValue:pn,useDeferredValue:pn,useTransition:pn,useMutableSource:pn,useSyncExternalStore:pn,useId:pn,unstable_isNewReconciler:!1},MA={readContext:Hr,useCallback:function(e,t){return _i().memoizedState=[e,t===void 0?null:t],e},useContext:Hr,useEffect:j9,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Bc(4194308,4,Ly.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bc(4,2,e,t)},useMemo:function(e,t){var n=_i();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_i();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=RA.bind(null,It,e),[r.memoizedState,e]},useRef:function(e){var t=_i();return e={current:e},t.memoizedState=e},useState:K9,useDebugValue:Up,useDeferredValue:function(e){return _i().memoizedState=e},useTransition:function(){var e=K9(!1),t=e[0];return e=wA.bind(null,e[1]),_i().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=It,i=_i();if(Ct){if(n===void 0)throw Error(Q(407));n=n()}else{if(n=t(),nn===null)throw Error(Q(349));Ua&30||xy(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,j9(Dy.bind(null,r,o,e),[e]),r.flags|=2048,Wu(9,Ny.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=_i(),t=nn.identifierPrefix;if(Ct){var n=to,r=eo;n=(r&~(1<<32-oi(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=zu++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Ai]=t,e[Bu]=r,e4(e,t,!1,!1),t.stateNode=e;e:{switch(a=Wm(n,r),n){case"dialog":ht("cancel",e),ht("close",e),i=r;break;case"iframe":case"object":case"embed":ht("load",e),i=r;break;case"video":case"audio":for(i=0;iel&&(t.flags|=128,r=!0,wl(o,!1),t.lanes=4194304)}else{if(!r)if(e=yd(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),wl(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Ct)return gn(t),null}else 2*Lt()-o.renderingStartTime>el&&n!==1073741824&&(t.flags|=128,r=!0,wl(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=Lt(),t.sibling=null,n=kt.current,lt(kt,r?n&1|2:n&1),t):(gn(t),null);case 22:case 23:return $p(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?dr&1073741824&&(gn(t),t.subtreeFlags&6&&(t.flags|=8192)):gn(t),null;case 24:return null;case 25:return null}throw Error(Q(156,t.tag))}function WA(e,t){switch(kp(t),t.tag){case 1:return nr(t.type)&&md(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zs(),gt(tr),gt(yn),Mp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Op(t),null;case 13:if(gt(kt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Q(340));Qs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return gt(kt),null;case 4:return Zs(),null;case 10:return Np(t.type._context),null;case 22:case 23:return $p(),null;case 24:return null;default:return null}}var Z1=!1,Tn=!1,KA=typeof WeakSet=="function"?WeakSet:Set,oe=null;function Ds(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){wt(e,t,r)}else n.current=null}function g0(e,t,n){try{n()}catch(r){wt(e,t,r)}}var eE=!1;function jA(e,t){if(Jm=cd,e=ay(),Ap(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(e0={focusedElem:e,selectionRange:n},cd=!1,oe=t;oe!==null;)if(t=oe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,oe=e;else for(;oe!==null;){t=oe;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var v=h.memoizedProps,y=h.memoizedState,m=t.stateNode,T=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:Jr(t.type,v),y);m.__reactInternalSnapshotBeforeUpdate=T}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Q(163))}}catch(C){wt(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,oe=e;break}oe=t.return}return h=eE,eE=!1,h}function du(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&&g0(t,n,o)}i=i.next}while(i!==r)}}function rf(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 E0(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 r4(e){var t=e.alternate;t!==null&&(e.alternate=null,r4(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ai],delete t[Bu],delete t[r0],delete t[IA],delete t[FA])),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 i4(e){return e.tag===5||e.tag===3||e.tag===4}function tE(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||i4(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 v0(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=hd));else if(r!==4&&(e=e.child,e!==null))for(v0(e,t,n),e=e.sibling;e!==null;)v0(e,t,n),e=e.sibling}function T0(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(T0(e,t,n),e=e.sibling;e!==null;)T0(e,t,n),e=e.sibling}var un=null,ei=!1;function vo(e,t,n){for(n=n.child;n!==null;)o4(e,t,n),n=n.sibling}function o4(e,t,n){if(Ni&&typeof Ni.onCommitFiberUnmount=="function")try{Ni.onCommitFiberUnmount(qd,n)}catch{}switch(n.tag){case 5:Tn||Ds(n,t);case 6:var r=un,i=ei;un=null,vo(e,t,n),un=r,ei=i,un!==null&&(ei?(e=un,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):un.removeChild(n.stateNode));break;case 18:un!==null&&(ei?(e=un,n=n.stateNode,e.nodeType===8?ch(e.parentNode,n):e.nodeType===1&&ch(e,n),Ru(e)):ch(un,n.stateNode));break;case 4:r=un,i=ei,un=n.stateNode.containerInfo,ei=!0,vo(e,t,n),un=r,ei=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)&&g0(n,t,a),i=i.next}while(i!==r)}vo(e,t,n);break;case 1:if(!Tn&&(Ds(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){wt(n,t,s)}vo(e,t,n);break;case 21:vo(e,t,n);break;case 22:n.mode&1?(Tn=(r=Tn)||n.memoizedState!==null,vo(e,t,n),Tn=r):vo(e,t,n);break;default:vo(e,t,n)}}function nE(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new KA),t.forEach(function(r){var i=e3.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Vr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=Lt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*VA(r/1960))-r,10e?16:e,Lo===null)var r=!1;else{if(e=Lo,Lo=null,kd=0,Ge&6)throw Error(Q(331));var i=Ge;for(Ge|=4,oe=e.current;oe!==null;){var o=oe,a=o.child;if(oe.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lLt()-Kp?Oa(e,0):Wp|=n),rr(e,t)}function h4(e,t){t===0&&(e.mode&1?(t=W1,W1<<=1,!(W1&130023424)&&(W1=4194304)):t=1);var n=Ln();e=so(e,t),e!==null&&(s1(e,t,n),rr(e,n))}function JA(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),h4(e,n)}function e3(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(Q(314))}r!==null&&r.delete(t),h4(e,n)}var m4;m4=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||tr.current)Jn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Jn=!1,zA(e,t,n);Jn=!!(e.flags&131072)}else Jn=!1,Ct&&t.flags&1048576&&Ey(t,Ed,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hc(e,t),e=t.pendingProps;var i=qs(t,yn.current);Gs(t,n),i=Lp(null,t,r,e,i,n);var o=Bp();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,nr(r)?(o=!0,pd(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,wp(t),i.updater=tf,t.stateNode=i,i._reactInternals=t,u0(t,r,e,n),t=f0(null,t,r,!0,o,n)):(t.tag=0,Ct&&o&&bp(t),In(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hc(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=n3(r),e=Jr(r,e),i){case 0:t=d0(null,t,r,e,n);break e;case 1:t=X9(null,t,r,e,n);break e;case 11:t=q9(null,t,r,e,n);break e;case 14:t=Q9(null,t,r,Jr(r.type,e),n);break e}throw Error(Q(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Jr(r,i),d0(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Jr(r,i),X9(e,t,r,i,n);case 3:e:{if(Xy(t),e===null)throw Error(Q(387));r=t.pendingProps,o=t.memoizedState,i=o.element,yy(e,t),_d(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=Js(Error(Q(423)),t),t=Z9(e,t,r,n,i);break e}else if(r!==i){i=Js(Error(Q(424)),t),t=Z9(e,t,r,n,i);break e}else for(fr=Ko(t.stateNode.containerInfo.firstChild),Er=t,Ct=!0,ni=null,n=by(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Qs(),r===i){t=lo(e,t,n);break e}In(e,t,r,n)}t=t.child}return t;case 5:return ky(t),e===null&&a0(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,t0(r,i)?a=null:o!==null&&t0(r,o)&&(t.flags|=32),Qy(e,t),In(e,t,a,n),t.child;case 6:return e===null&&a0(t),null;case 13:return Zy(e,t,n);case 4:return Rp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xs(t,null,r,n):In(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Jr(r,i),q9(e,t,r,i,n);case 7:return In(e,t,t.pendingProps,n),t.child;case 8:return In(e,t,t.pendingProps.children,n),t.child;case 12:return In(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,lt(vd,r._currentValue),r._currentValue=a,o!==null)if(li(o.value,a)){if(o.children===i.children&&!tr.current){t=lo(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=io(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),s0(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(Q(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),s0(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}In(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Gs(t,n),i=Hr(i),r=r(i),t.flags|=1,In(e,t,r,n),t.child;case 14:return r=t.type,i=Jr(r,t.pendingProps),i=Jr(r.type,i),Q9(e,t,r,i,n);case 15:return Yy(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Jr(r,i),Hc(e,t),t.tag=1,nr(r)?(e=!0,pd(t)):e=!1,Gs(t,n),Sy(t,r,i),u0(t,r,i,n),f0(null,t,r,!0,e,n);case 19:return Jy(e,t,n);case 22:return qy(e,t,n)}throw Error(Q(156,t.tag))};function p4(e,t){return z_(e,t)}function t3(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 Or(e,t,n,r){return new t3(e,t,n,r)}function Yp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function n3(e){if(typeof e=="function")return Yp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===hp)return 11;if(e===mp)return 14}return 2}function Yo(e,t){var n=e.alternate;return n===null?(n=Or(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 Gc(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")Yp(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Cs:return Ma(n.children,i,o,t);case fp:a=8,i|=8;break;case Rm:return e=Or(12,n,t,i|2),e.elementType=Rm,e.lanes=o,e;case Om:return e=Or(13,n,t,i),e.elementType=Om,e.lanes=o,e;case Mm:return e=Or(19,n,t,i),e.elementType=Mm,e.lanes=o,e;case A_:return af(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case C_:a=10;break e;case S_:a=9;break e;case hp:a=11;break e;case mp:a=14;break e;case Io:a=16,r=null;break e}throw Error(Q(130,e==null?e:typeof e,""))}return t=Or(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Ma(e,t,n,r){return e=Or(7,e,r,t),e.lanes=n,e}function af(e,t,n,r){return e=Or(22,e,r,t),e.elementType=A_,e.lanes=n,e.stateNode={isHidden:!1},e}function vh(e,t,n){return e=Or(6,e,null,t),e.lanes=n,e}function Th(e,t,n){return t=Or(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function r3(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=Jf(0),this.expirationTimes=Jf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jf(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function qp(e,t,n,r,i,o,a,s,l){return e=new r3(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Or(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},wp(o),e}function i3(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=_r})(o6);var cE=id;Nm.createRoot=cE.createRoot,Nm.hydrateRoot=cE.hydrateRoot;/** +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function gh(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function c0(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var BA=typeof WeakMap=="function"?WeakMap:Map;function $y(e,t,n){n=io(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){bd||(bd=!0,_0=r),c0(e,t)},n}function Vy(e,t,n){n=io(-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(){c0(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){c0(e,t),typeof r!="function"&&($o===null?$o=new Set([this]):$o.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function $9(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new BA;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=ZA.bind(null,e,t,n),t.then(e,e))}function V9(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 Y9(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=io(-1,1),t.tag=2,jo(n,t,1))),n.lanes|=1),e)}var HA=fo.ReactCurrentOwner,Jn=!1;function Fn(e,t,n,r){t.child=e===null?by(t,null,n,r):Xs(t,e.child,n,r)}function q9(e,t,n,r,i){n=n.render;var o=t.ref;return Gs(t,i),r=Lp(e,t,n,r,o,i),n=Bp(),e!==null&&!Jn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,lo(e,t,i)):(Ct&&n&&bp(t),t.flags|=1,Fn(e,t,r,i),t.child)}function Q9(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Yp(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Yy(e,t,o,r,i)):(e=Gc(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:Mu,n(a,r)&&e.ref===t.ref)return lo(e,t,i)}return t.flags|=1,e=Yo(o,r),e.ref=t.ref,e.return=t,t.child=e}function Yy(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Mu(o,r)&&e.ref===t.ref)if(Jn=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Jn=!0);else return t.lanes=e.lanes,lo(e,t,i)}return d0(e,t,n,r,i)}function qy(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},lt(ws,dr),dr|=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,lt(ws,dr),dr|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,lt(ws,dr),dr|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,lt(ws,dr),dr|=r;return Fn(e,t,i,n),t.child}function Qy(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function d0(e,t,n,r,i){var o=nr(n)?Ba:Cn.current;return o=qs(t,o),Gs(t,i),n=Lp(e,t,n,r,o,i),r=Bp(),e!==null&&!Jn?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,lo(e,t,i)):(Ct&&r&&bp(t),t.flags|=1,Fn(e,t,n,i),t.child)}function X9(e,t,n,r,i){if(nr(n)){var o=!0;pd(t)}else o=!1;if(Gs(t,i),t.stateNode===null)Hc(e,t),Sy(t,n,r),u0(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=Hr(u):(u=nr(n)?Ba:Cn.current,u=qs(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)&&G9(t,a,r,u),Fo=!1;var f=t.memoizedState;a.state=f,_d(t,r,a,i),l=t.memoizedState,s!==r||f!==l||tr.current||Fo?(typeof c=="function"&&(l0(t,n,c,r),l=t.memoizedState),(s=Fo||z9(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,yy(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Jr(t.type,s),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=Hr(l):(l=nr(n)?Ba:Cn.current,l=qs(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)&&G9(t,a,r,l),Fo=!1,f=t.memoizedState,a.state=f,_d(t,r,a,i);var h=t.memoizedState;s!==d||f!==h||tr.current||Fo?(typeof p=="function"&&(l0(t,n,p,r),h=t.memoizedState),(u=Fo||z9(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 f0(e,t,n,r,o,i)}function f0(e,t,n,r,i,o){Qy(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&P9(t,n,!1),lo(e,t,o);r=t.stateNode,HA.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Xs(t,e.child,null,o),t.child=Xs(t,null,s,o)):Fn(e,t,s,o),t.memoizedState=r.state,i&&P9(t,n,!0),t.child}function Xy(e){var t=e.stateNode;t.pendingContext?M9(e,t.pendingContext,t.pendingContext!==t.context):t.context&&M9(e,t.context,!1),Rp(e,t.containerInfo)}function Z9(e,t,n,r,i){return Qs(),Ip(i),t.flags|=256,Fn(e,t,n,r),t.child}var h0={dehydrated:null,treeContext:null,retryLane:0};function m0(e){return{baseLanes:e,cachePool:null,transitions:null}}function Zy(e,t,n){var r=t.pendingProps,i=kt.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),lt(kt,i&1),e===null)return a0(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=af(a,r,0,null),e=Ma(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=m0(n),t.memoizedState=h0,e):zp(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return UA(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=Yo(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=Yo(s,o):(o=Ma(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?m0(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=h0,r}return o=e.child,e=o.sibling,r=Yo(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 zp(e,t){return t=af({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function X1(e,t,n,r){return r!==null&&Ip(r),Xs(t,e.child,null,n),e=zp(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function UA(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=gh(Error(Q(422))),X1(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=af({mode:"visible",children:r.children},i,0,null),o=Ma(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Xs(t,e.child,null,a),t.child.memoizedState=m0(a),t.memoizedState=h0,o);if(!(t.mode&1))return X1(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(Q(419)),r=gh(o,r,void 0),X1(e,t,a,r)}if(s=(a&e.childLanes)!==0,Jn||s){if(r=nn,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,so(e,i),ai(r,e,i,-1))}return Vp(),r=gh(Error(Q(421))),X1(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=JA.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,fr=Ko(i.nextSibling),Er=t,Ct=!0,ni=null,e!==null&&(xr[Nr++]=eo,xr[Nr++]=to,xr[Nr++]=Ha,eo=e.id,to=e.overflow,Ha=t),t=zp(t,r.children),t.flags|=4096,t)}function J9(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),s0(e.return,t,n)}function Eh(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 Jy(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Fn(e,t,r.children,n),r=kt.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&&J9(e,n,t);else if(e.tag===19)J9(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(lt(kt,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&&yd(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Eh(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&&yd(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Eh(t,!0,n,null,o);break;case"together":Eh(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function lo(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),za|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Q(153));if(t.child!==null){for(e=t.child,n=Yo(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Yo(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function zA(e,t,n){switch(t.tag){case 3:Xy(t),Qs();break;case 5:ky(t);break;case 1:nr(t.type)&&pd(t);break;case 4:Rp(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;lt(vd,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(lt(kt,kt.current&1),t.flags|=128,null):n&t.child.childLanes?Zy(e,t,n):(lt(kt,kt.current&1),e=lo(e,t,n),e!==null?e.sibling:null);lt(kt,kt.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Jy(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),lt(kt,kt.current),r)break;return null;case 22:case 23:return t.lanes=0,qy(e,t,n)}return lo(e,t,n)}var e4,p0,t4,n4;e4=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}};p0=function(){};t4=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Na(Di.current);var o=null;switch(n){case"input":i=Lm(e,i),r=Lm(e,r),o=[];break;case"select":i=Ft({},i,{value:void 0}),r=Ft({},r,{value:void 0}),o=[];break;case"textarea":i=Um(e,i),r=Um(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=hd)}Gm(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"&&(Fu.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"&&(Fu.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ht("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)}};n4=function(e,t,n,r){n!==r&&(t.flags|=4)};function wl(e,t){if(!Ct)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 gn(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 GA(e,t,n){var r=t.pendingProps;switch(kp(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gn(t),null;case 1:return nr(t.type)&&md(),gn(t),null;case 3:return r=t.stateNode,Zs(),gt(tr),gt(Cn),Mp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(q1(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ni!==null&&(S0(ni),ni=null))),p0(e,t),gn(t),null;case 5:Op(t);var i=Na(Uu.current);if(n=t.type,e!==null&&t.stateNode!=null)t4(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Q(166));return gn(t),null}if(e=Na(Di.current),q1(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ai]=t,r[Bu]=o,e=(t.mode&1)!==0,n){case"dialog":ht("cancel",r),ht("close",r);break;case"iframe":case"object":case"embed":ht("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[Ai]=t,e[Bu]=r,e4(e,t,!1,!1),t.stateNode=e;e:{switch(a=Wm(n,r),n){case"dialog":ht("cancel",e),ht("close",e),i=r;break;case"iframe":case"object":case"embed":ht("load",e),i=r;break;case"video":case"audio":for(i=0;iel&&(t.flags|=128,r=!0,wl(o,!1),t.lanes=4194304)}else{if(!r)if(e=yd(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),wl(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Ct)return gn(t),null}else 2*Lt()-o.renderingStartTime>el&&n!==1073741824&&(t.flags|=128,r=!0,wl(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=Lt(),t.sibling=null,n=kt.current,lt(kt,r?n&1|2:n&1),t):(gn(t),null);case 22:case 23:return $p(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?dr&1073741824&&(gn(t),t.subtreeFlags&6&&(t.flags|=8192)):gn(t),null;case 24:return null;case 25:return null}throw Error(Q(156,t.tag))}function WA(e,t){switch(kp(t),t.tag){case 1:return nr(t.type)&&md(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Zs(),gt(tr),gt(Cn),Mp(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Op(t),null;case 13:if(gt(kt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Q(340));Qs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return gt(kt),null;case 4:return Zs(),null;case 10:return Np(t.type._context),null;case 22:case 23:return $p(),null;case 24:return null;default:return null}}var Z1=!1,Tn=!1,KA=typeof WeakSet=="function"?WeakSet:Set,oe=null;function Ds(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){wt(e,t,r)}else n.current=null}function g0(e,t,n){try{n()}catch(r){wt(e,t,r)}}var eE=!1;function jA(e,t){if(Jm=cd,e=ay(),Ap(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(e0={focusedElem:e,selectionRange:n},cd=!1,oe=t;oe!==null;)if(t=oe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,oe=e;else for(;oe!==null;){t=oe;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var v=h.memoizedProps,y=h.memoizedState,m=t.stateNode,T=m.getSnapshotBeforeUpdate(t.elementType===t.type?v:Jr(t.type,v),y);m.__reactInternalSnapshotBeforeUpdate=T}break;case 3:var _=t.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Q(163))}}catch(C){wt(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,oe=e;break}oe=t.return}return h=eE,eE=!1,h}function du(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&&g0(t,n,o)}i=i.next}while(i!==r)}}function rf(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 E0(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 r4(e){var t=e.alternate;t!==null&&(e.alternate=null,r4(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ai],delete t[Bu],delete t[r0],delete t[IA],delete t[FA])),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 i4(e){return e.tag===5||e.tag===3||e.tag===4}function tE(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||i4(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 v0(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=hd));else if(r!==4&&(e=e.child,e!==null))for(v0(e,t,n),e=e.sibling;e!==null;)v0(e,t,n),e=e.sibling}function T0(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(T0(e,t,n),e=e.sibling;e!==null;)T0(e,t,n),e=e.sibling}var un=null,ei=!1;function vo(e,t,n){for(n=n.child;n!==null;)o4(e,t,n),n=n.sibling}function o4(e,t,n){if(Ni&&typeof Ni.onCommitFiberUnmount=="function")try{Ni.onCommitFiberUnmount(qd,n)}catch{}switch(n.tag){case 5:Tn||Ds(n,t);case 6:var r=un,i=ei;un=null,vo(e,t,n),un=r,ei=i,un!==null&&(ei?(e=un,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):un.removeChild(n.stateNode));break;case 18:un!==null&&(ei?(e=un,n=n.stateNode,e.nodeType===8?ch(e.parentNode,n):e.nodeType===1&&ch(e,n),Ru(e)):ch(un,n.stateNode));break;case 4:r=un,i=ei,un=n.stateNode.containerInfo,ei=!0,vo(e,t,n),un=r,ei=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)&&g0(n,t,a),i=i.next}while(i!==r)}vo(e,t,n);break;case 1:if(!Tn&&(Ds(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){wt(n,t,s)}vo(e,t,n);break;case 21:vo(e,t,n);break;case 22:n.mode&1?(Tn=(r=Tn)||n.memoizedState!==null,vo(e,t,n),Tn=r):vo(e,t,n);break;default:vo(e,t,n)}}function nE(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new KA),t.forEach(function(r){var i=e3.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Vr(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=a),r&=~o}if(r=i,r=Lt()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*VA(r/1960))-r,10e?16:e,Lo===null)var r=!1;else{if(e=Lo,Lo=null,kd=0,Ge&6)throw Error(Q(331));var i=Ge;for(Ge|=4,oe=e.current;oe!==null;){var o=oe,a=o.child;if(oe.flags&16){var s=o.deletions;if(s!==null){for(var l=0;lLt()-Kp?Oa(e,0):Wp|=n),rr(e,t)}function h4(e,t){t===0&&(e.mode&1?(t=W1,W1<<=1,!(W1&130023424)&&(W1=4194304)):t=1);var n=Ln();e=so(e,t),e!==null&&(s1(e,t,n),rr(e,n))}function JA(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),h4(e,n)}function e3(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(Q(314))}r!==null&&r.delete(t),h4(e,n)}var m4;m4=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||tr.current)Jn=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Jn=!1,zA(e,t,n);Jn=!!(e.flags&131072)}else Jn=!1,Ct&&t.flags&1048576&&Ey(t,Ed,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hc(e,t),e=t.pendingProps;var i=qs(t,Cn.current);Gs(t,n),i=Lp(null,t,r,e,i,n);var o=Bp();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,nr(r)?(o=!0,pd(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,wp(t),i.updater=tf,t.stateNode=i,i._reactInternals=t,u0(t,r,e,n),t=f0(null,t,r,!0,o,n)):(t.tag=0,Ct&&o&&bp(t),Fn(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hc(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=n3(r),e=Jr(r,e),i){case 0:t=d0(null,t,r,e,n);break e;case 1:t=X9(null,t,r,e,n);break e;case 11:t=q9(null,t,r,e,n);break e;case 14:t=Q9(null,t,r,Jr(r.type,e),n);break e}throw Error(Q(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Jr(r,i),d0(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Jr(r,i),X9(e,t,r,i,n);case 3:e:{if(Xy(t),e===null)throw Error(Q(387));r=t.pendingProps,o=t.memoizedState,i=o.element,yy(e,t),_d(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=Js(Error(Q(423)),t),t=Z9(e,t,r,n,i);break e}else if(r!==i){i=Js(Error(Q(424)),t),t=Z9(e,t,r,n,i);break e}else for(fr=Ko(t.stateNode.containerInfo.firstChild),Er=t,Ct=!0,ni=null,n=by(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Qs(),r===i){t=lo(e,t,n);break e}Fn(e,t,r,n)}t=t.child}return t;case 5:return ky(t),e===null&&a0(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,t0(r,i)?a=null:o!==null&&t0(r,o)&&(t.flags|=32),Qy(e,t),Fn(e,t,a,n),t.child;case 6:return e===null&&a0(t),null;case 13:return Zy(e,t,n);case 4:return Rp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xs(t,null,r,n):Fn(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Jr(r,i),q9(e,t,r,i,n);case 7:return Fn(e,t,t.pendingProps,n),t.child;case 8:return Fn(e,t,t.pendingProps.children,n),t.child;case 12:return Fn(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,lt(vd,r._currentValue),r._currentValue=a,o!==null)if(li(o.value,a)){if(o.children===i.children&&!tr.current){t=lo(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=io(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),s0(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(Q(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),s0(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Fn(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Gs(t,n),i=Hr(i),r=r(i),t.flags|=1,Fn(e,t,r,n),t.child;case 14:return r=t.type,i=Jr(r,t.pendingProps),i=Jr(r.type,i),Q9(e,t,r,i,n);case 15:return Yy(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Jr(r,i),Hc(e,t),t.tag=1,nr(r)?(e=!0,pd(t)):e=!1,Gs(t,n),Sy(t,r,i),u0(t,r,i,n),f0(null,t,r,!0,e,n);case 19:return Jy(e,t,n);case 22:return qy(e,t,n)}throw Error(Q(156,t.tag))};function p4(e,t){return z_(e,t)}function t3(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 Or(e,t,n,r){return new t3(e,t,n,r)}function Yp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function n3(e){if(typeof e=="function")return Yp(e)?1:0;if(e!=null){if(e=e.$$typeof,e===hp)return 11;if(e===mp)return 14}return 2}function Yo(e,t){var n=e.alternate;return n===null?(n=Or(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 Gc(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")Yp(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Cs:return Ma(n.children,i,o,t);case fp:a=8,i|=8;break;case Rm:return e=Or(12,n,t,i|2),e.elementType=Rm,e.lanes=o,e;case Om:return e=Or(13,n,t,i),e.elementType=Om,e.lanes=o,e;case Mm:return e=Or(19,n,t,i),e.elementType=Mm,e.lanes=o,e;case A_:return af(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case C_:a=10;break e;case S_:a=9;break e;case hp:a=11;break e;case mp:a=14;break e;case Io:a=16,r=null;break e}throw Error(Q(130,e==null?e:typeof e,""))}return t=Or(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Ma(e,t,n,r){return e=Or(7,e,r,t),e.lanes=n,e}function af(e,t,n,r){return e=Or(22,e,r,t),e.elementType=A_,e.lanes=n,e.stateNode={isHidden:!1},e}function vh(e,t,n){return e=Or(6,e,null,t),e.lanes=n,e}function Th(e,t,n){return t=Or(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function r3(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=Jf(0),this.expirationTimes=Jf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jf(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function qp(e,t,n,r,i,o,a,s,l){return e=new r3(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Or(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},wp(o),e}function i3(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=_r})(o6);var cE=id;Nm.createRoot=cE.createRoot,Nm.hydrateRoot=cE.hydrateRoot;/** * @remix-run/router v1.3.2 * * Copyright (c) Remix Software Inc. @@ -64,15 +64,15 @@ Error generating stack: `+o.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function I0(){return I0=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function u7(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function c7(e,t){return e.button===0&&(!t||t==="_self")&&!u7(e)}const d7=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function f7(e){let{basename:t,children:n,window:r}=e,i=E.useRef();i.current==null&&(i.current=u3({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(a7,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o})}const h7=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",m7=E.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:c}=t,d=l7(t,d7),f,p=!1;if(h7&&typeof u=="string"&&/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i.test(u)){f=u;let m=new URL(window.location.href),T=u.startsWith("//")?new URL(m.protocol+u):new URL(u);T.origin===m.origin?u=T.pathname+T.search+T.hash:p=!0}let h=$3(u,{relative:i}),v=p7(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:i});function y(m){r&&r(m),m.defaultPrevented||v(m)}return E.createElement("a",I0({},d,{href:f||h,onClick:p||o?r:y,ref:n,target:l}))});var EE;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(EE||(EE={}));var vE;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(vE||(vE={}));function p7(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a}=t===void 0?{}:t,s=V3(),l=hf(),u=I4(e,{relative:a});return E.useCallback(c=>{if(c7(c,n)){c.preventDefault();let d=r!==void 0?r:xd(l)===xd(u);s(e,{replace:d,state:i,preventScrollReset:o,relative:a})}},[l,s,u,r,i,n,e,o,a])}var TE={},Kc=void 0;try{Kc=window}catch{}function eg(e,t){if(typeof Kc<"u"){var n=Kc.__packages__=Kc.__packages__||{};if(!n[e]||!TE[e]){TE[e]=t;var r=n[e]=n[e]||[];r.push(t)}}}eg("@fluentui/set-version","6.0.0");var F0=function(e,t){return F0=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])},F0(e,t)};function rt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");F0(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var x=function(){return x=Object.assign||function(t){for(var n,r=1,i=arguments.length;r=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function ui(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r"u"?Ol.none:Ol.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(as=gs[_E],!as||as._lastStyleElement&&as._lastStyleElement.ownerDocument!==document){var t=(gs==null?void 0:gs.FabricConfig)||{},n=new e(t.mergeStyles,t.serializedStylesheet);as=n,gs[_E]=n}return as},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(t){this._config=x(x({},this._config),t)},e.prototype.onReset=function(t){var n=this;return this._onResetCallbacks.push(t),function(){n._onResetCallbacks=n._onResetCallbacks.filter(function(r){return r!==t})}},e.prototype.onInsertRule=function(t){var n=this;return this._onInsertRuleCallbacks.push(t),function(){n._onInsertRuleCallbacks=n._onInsertRuleCallbacks.filter(function(r){return r!==t})}},e.prototype.getClassName=function(t){var n=this._config.namespace,r=t||this._config.defaultPrefix;return"".concat(n?n+"-":"").concat(r,"-").concat(this._counter++)},e.prototype.cacheClassName=function(t,n,r,i){this._keyToClassName[n]=t,this._classNameToArgs[t]={args:r,rules:i}},e.prototype.classNameFromKey=function(t){return this._keyToClassName[t]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(t){var n=this._classNameToArgs[t];return n&&n.args},e.prototype.insertedRulesFromClassName=function(t){var n=this._classNameToArgs[t];return n&&n.rules},e.prototype.insertRule=function(t,n){var r=this._config.injectionMode,i=r!==Ol.none?this._getStyleElement():void 0;if(n&&this._preservedRules.push(t),i)switch(r){case Ol.insertNode:var o=i.sheet;try{o.insertRule(t,o.cssRules.length)}catch{}break;case Ol.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(),g7||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 F4(){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 x4(e){Ks!==e&&(Ks=e)}function N4(){return Ks===void 0&&(Ks=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),Ks}var Ks;Ks=N4();function mf(){return{rtl:N4()}}var yE={};function E7(e,t){var n=e[t];n.charAt(0)!=="-"&&(e[t]=yE[n]=yE[n]||n.replace(/([A-Z])/g,"-$1").toLowerCase())}var tc;function v7(){var e;if(!tc){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?tc={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)))}:tc={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return tc}var CE={"user-select":1};function T7(e,t){var n=v7(),r=e[t];if(CE[r]){var i=e[t+1];CE[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 _7=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function y7(e,t){var n=e[t],r=e[t+1];if(typeof r=="number"){var i=_7.indexOf(n)>-1,o=n.indexOf("--")>-1,a=i||o?"":"px";e[t+1]="".concat(r).concat(a)}}var nc,xo="left",No="right",C7="@noflip",SE=(nc={},nc[xo]=No,nc[No]=xo,nc),AE={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function S7(e,t,n){if(e.rtl){var r=t[n];if(!r)return;var i=t[n+1];if(typeof i=="string"&&i.indexOf(C7)>=0)t[n+1]=i.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(xo)>=0)t[n]=r.replace(xo,No);else if(r.indexOf(No)>=0)t[n]=r.replace(No,xo);else if(String(i).indexOf(xo)>=0)t[n+1]=i.replace(xo,No);else if(String(i).indexOf(No)>=0)t[n+1]=i.replace(No,xo);else if(SE[r])t[n]=SE[r];else if(AE[i])t[n+1]=AE[i];else switch(r){case"margin":case"padding":t[n+1]=b7(i);break;case"box-shadow":t[n+1]=A7(i,0);break}}}function A7(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 b7(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 k7(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 bE(e,t){return e.indexOf(":global(")>=0?e.replace(D4,"$1"):e.indexOf(":")===0?t+e:e.indexOf("&")<0?t+" "+e:e}function kE(e,t,n,r){t===void 0&&(t={__order:[]}),n.indexOf("@")===0?(n=n+"{"+e,js([r],t,n)):n.indexOf(",")>-1?x7(n).split(",").map(function(i){return i.trim()}).forEach(function(i){return js([r],t,bE(i,e))}):js([r],t,bE(n,e))}function js(e,t,n){t===void 0&&(t={__order:[]}),n===void 0&&(n="&");var r=zr.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(y){return Li.apply(void 0,v.map(function(m){return typeof m=="function"?m(y):m}))}}};for(var u in r)p(u)}return n}function f1(){for(var e=[],t=0;t"u")){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:x0}}var hl=function(){function e(t,n){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=t||null,this._onErrorHandler=n,this._noop=function(){}}return e.prototype.dispose=function(){var t;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(t in this._timeoutIds)this._timeoutIds.hasOwnProperty(t)&&this.clearTimeout(parseInt(t,10));this._timeoutIds=null}if(this._immediateIds){for(t in this._immediateIds)this._immediateIds.hasOwnProperty(t)&&this.clearImmediate(parseInt(t,10));this._immediateIds=null}if(this._intervalIds){for(t in this._intervalIds)this._intervalIds.hasOwnProperty(t)&&this.clearInterval(parseInt(t,10));this._intervalIds=null}if(this._animationFrameIds){for(t in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(t)&&this.cancelAnimationFrame(parseInt(t,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(t,n){var r=this,i=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),i=setTimeout(function(){try{r._timeoutIds&&delete r._timeoutIds[i],t.apply(r._parent)}catch(o){r._logError(o)}},n),this._timeoutIds[i]=!0),i},e.prototype.clearTimeout=function(t){this._timeoutIds&&this._timeoutIds[t]&&(clearTimeout(t),delete this._timeoutIds[t])},e.prototype.setImmediate=function(t,n){var r=this,i=0,o=Et(n);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});var a=function(){try{r._immediateIds&&delete r._immediateIds[i],t.apply(r._parent)}catch(s){r._logError(s)}};i=o.setTimeout(a,0),this._immediateIds[i]=!0}return i},e.prototype.clearImmediate=function(t,n){var r=Et(n);this._immediateIds&&this._immediateIds[t]&&(r.clearTimeout(t),delete this._immediateIds[t])},e.prototype.setInterval=function(t,n){var r=this,i=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),i=setInterval(function(){try{t.apply(r._parent)}catch(o){r._logError(o)}},n),this._intervalIds[i]=!0),i},e.prototype.clearInterval=function(t){this._intervalIds&&this._intervalIds[t]&&(clearInterval(t),delete this._intervalIds[t])},e.prototype.throttle=function(t,n,r){var i=this;if(this._isDisposed)return this._noop;var o=n||0,a=!0,s=!0,l=0,u,c,d=null;r&&typeof r.leading=="boolean"&&(a=r.leading),r&&typeof r.trailing=="boolean"&&(s=r.trailing);var f=function(h){var v=Date.now(),y=v-l,m=a?o-y:o;return y>=o&&(!h||a)?(l=v,d&&(i.clearTimeout(d),d=null),u=t.apply(i._parent,c)):d===null&&s&&(d=i.setTimeout(f,m)),u},p=function(){for(var h=[],v=0;v=a&&(D=!0),c=S);var M=S-c,I=a-M,L=S-d,O=!1;return u!==null&&(L>=u&&h?O=!0:I=Math.min(I,u-L)),M>=a||O||D?y(S):(h===null||!A)&&l&&(h=i.setTimeout(m,I)),f},T=function(){return!!h},_=function(){T()&&v(Date.now())},C=function(){return T()&&y(Date.now()),f},F=function(){for(var A=[],S=0;S-1)for(var a=n.split(/[ ,]+/),s=0;s"u")){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}var Ch,mu=0,H4=bi({overflow:"hidden !important"}),IE="data-is-scrollable",M7=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=rg(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}},P7=function(e,t){if(e){var n=function(r){r.stopPropagation()};t.on(e,"touchmove",n,{passive:!1})}},U4=function(e){e.preventDefault()};function L7(){var e=Bn();e&&e.body&&!mu&&(e.body.classList.add(H4),e.body.addEventListener("touchmove",U4,{passive:!1,capture:!1})),mu++}function B7(){if(mu>0){var e=Bn();e&&e.body&&mu===1&&(e.body.classList.remove(H4),e.body.removeEventListener("touchmove",U4)),mu--}}function H7(){if(Ch===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),Ch=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Ch}function rg(e){for(var t=e,n=Bn(e);t&&t!==n.body;){if(t.getAttribute(IE)==="true")return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if(t.getAttribute(IE)!=="false"){var r=getComputedStyle(t),i=r?r.getPropertyValue("overflow-y"):"";if(i&&(i==="scroll"||i==="auto"))return t}t=t.parentElement}return(!t||t===n.body)&&(t=Et(e)),t}var U7=void 0;function ig(e){console&&console.warn&&console.warn(e)}function z4(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 hl(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 Dr(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){z4(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 z7(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 tb="data-is-focusable",nb="data-is-visible",rb="data-focuszone-id",ib="data-is-sub-focuszone";function ob(e,t,n){return Fn(e,t,!0,!1,!1,n)}function ab(e,t,n){return Qn(e,t,!0,!1,!0,n)}function sb(e,t,n,r){return r===void 0&&(r=!0),Fn(e,t,r,!1,!1,n,!1,!0)}function lb(e,t,n,r){return r===void 0&&(r=!0),Qn(e,t,r,!1,!0,n,!1,!0)}function ub(e,t){var n=Fn(e,e,!0,!1,!1,!0,void 0,void 0,t);return n?(q4(n),!0):!1}function Qn(e,t,n,r,i,o,a,s){if(!t||!a&&t===e)return null;var l=gf(t);if(i&&l&&(o||!(Zi(t)||sg(t)))){var u=Qn(e,t.lastElementChild,!0,!0,!0,o,a,s);if(u){if(s&&Si(u,!0)||!s)return u;var c=Qn(e,u.previousElementSibling,!0,!0,!0,o,a,s);if(c)return c;for(var d=u.parentElement;d&&d!==t;){var f=Qn(e,d.previousElementSibling,!0,!0,!0,o,a,s);if(f)return f;d=d.parentElement}}}if(n&&l&&Si(t,s))return t;var p=Qn(e,t.previousElementSibling,!0,!0,!0,o,a,s);return p||(r?null:Qn(e,t.parentElement,!0,!1,!1,o,a,s))}function Fn(e,t,n,r,i,o,a,s,l){if(!t||t===e&&i&&!a)return null;var u=l?V4:gf,c=u(t);if(n&&c&&Si(t,s))return t;if(!i&&c&&(o||!(Zi(t)||sg(t)))){var d=Fn(e,t.firstElementChild,!0,!0,!1,o,a,s,l);if(d)return d}if(t===e)return null;var f=Fn(e,t.nextElementSibling,!0,!0,!1,o,a,s,l);return f||(r?null:Fn(e,t.parentElement,!1,!1,!0,o,a,s,l))}function gf(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute(nb);return t!=null?t==="true":e.offsetHeight!==0||e.offsetParent!==null||e.isVisible===!0}function V4(e){return!!e&&gf(e)&&!e.hidden&&window.getComputedStyle(e).visibility!=="hidden"}function Si(e,t){if(!e||e.disabled)return!1;var n=0,r=null;e&&e.getAttribute&&(r=e.getAttribute("tabIndex"),r&&(n=parseInt(r,10)));var i=e.getAttribute?e.getAttribute(tb):null,o=r!==null&&n>=0,a=!!e&&i!=="false"&&(e.tagName==="A"||e.tagName==="BUTTON"||e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.tagName==="SELECT"||i==="true"||o);return t?n!==-1&&a:a}function Zi(e){return!!(e&&e.getAttribute&&e.getAttribute(rb))}function sg(e){return!!(e&&e.getAttribute&&e.getAttribute(ib)==="true")}function cb(e){var t=Bn(e),n=t&&t.activeElement;return!!(n&&Zn(e,n))}function Y4(e,t){return Z7(e,t)!=="true"}var ss=void 0;function q4(e){if(e){if(ss){ss=e;return}ss=e;var t=Et(e);t&&t.requestAnimationFrame(function(){ss&&ss.focus(),ss=void 0})}}function db(e,t){for(var n=e,r=0,i=t;r(e.cacheSize||hb)){var p=Et();!((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[rc]};return o}function bh(e,t){return t=pb(t),e.has(t)||e.set(t,new Map),e.get(t)}function xE(e,t){if(typeof t=="function"){var n=t.__cachedInputs__;if(n)for(var r=0,i=t.__cachedInputs__;r"u"?null:WeakMap;function Eb(){$c++}function xt(e,t,n){if(t===void 0&&(t=100),n===void 0&&(n=!1),!$u)return e;if(!NE){var r=zr.getInstance();r&&r.onReset&&zr.getInstance().onReset(Eb),NE=!0}var i,o=0,a=$c;return function(){for(var l=[],u=0;u0&&o>t)&&(i=DE(),o=0,a=$c),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 Gb=["setState","render","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","getSnapshotBeforeUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount"];function Wb(e,t,n){n===void 0&&(n=Gb);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(Od.Provider,{value:a},e.children):E.createElement(E.Fragment,null,e.children)};function Qb(e){var t=null;try{var n=Et();t=n?n.localStorage.getItem(e):null}catch{}return t}var ha,BE="language";function Xb(e){if(e===void 0&&(e="sessionStorage"),ha===void 0){var t=Bn(),n=e==="localStorage"?Qb(BE):e==="sessionStorage"?K4(BE):void 0;n&&(ha=n),ha===void 0&&t&&(ha=t.documentElement.getAttribute("lang")),ha===void 0&&(ha="en")}return ha}function HE(e){for(var t=[],n=1;n-1;e[r]=o?i:s2(e[r]||{},i,n)}else e[r]=i}return n.pop(),e}var UE=function(){return!window||!window.navigator||!window.navigator.userAgent?!1:/iPad|iPhone|iPod/i.test(window.navigator.userAgent)},Zb=["TEMPLATE","STYLE","SCRIPT"];function l2(e){var t=Bn(e);if(!t)return function(){};for(var n=[];e!==t.body&&e.parentElement;){for(var r=0,i=e.parentElement.children;r"u"||e){var n=Et(),r=(t=n==null?void 0:n.navigator)===null||t===void 0?void 0:t.userAgent;Ih=!!r&&r.indexOf("Macintosh")!==-1}return!!Ih}function ek(e){var t=nl(function(n){var r=nl(function(i){return function(o){return n(o,i)}});return function(i,o){return e(i,o?r(o):n)}});return t}var tk=nl(ek);function w0(e,t){return tk(e)(t)}var nk=["theme","styles"];function an(e,t,n,r,i){r=r||{scope:"",fields:void 0};var o=r.scope,a=r.fields,s=a===void 0?nk:a,l=E.forwardRef(function(c,d){var f=E.useRef(),p=Db(s,o),h=p.styles;p.dir;var v=Pi(p,["styles","dir"]),y=n?n(c):void 0,m=f.current&&f.current.__cachedInputs__||[],T=c.styles;if(!f.current||h!==m[1]||T!==m[2]){var _=function(C){return L4(C,t,h,T)};_.__cachedInputs__=[t,h,T],_.__noStyleOverride__=!h&&!T,f.current=_}return E.createElement(e,x({ref:d},v,y,c,{styles:f.current}))});l.displayName="Styled".concat(e.displayName||e.name);var u=i?E.memo(l):l;return l.displayName&&(u.displayName=l.displayName),u}var rk=function(){var e,t=Et();return!((e=t==null?void 0:t.navigator)===null||e===void 0)&&e.userAgent?t.navigator.userAgent.indexOf("rv:11.0")>-1:!1};function m1(e,t){for(var n=x({},t),r=0,i=Object.keys(e);rr?" (+ "+(Ml.length-r)+" more)":"")),xh=void 0,Ml=[]},n)))}function lk(e,t,n,r,i){i===void 0&&(i=!1);var o=x({primaryButtonBorder:"transparent",errorText:r?"#F1707B":"#a4262c",messageText:r?"#F3F2F1":"#323130",messageLink:r?"#6CB8F6":"#005A9E",messageLinkHovered:r?"#82C7FF":"#004578",infoIcon:r?"#C8C6C4":"#605e5c",errorIcon:r?"#F1707B":"#A80000",blockingIcon:r?"#442726":"#FDE7E9",warningIcon:r?"#C8C6C4":"#797775",severeWarningIcon:r?"#FCE100":"#D83B01",successIcon:r?"#92C353":"#107C10",infoBackground:r?"#323130":"#f3f2f1",errorBackground:r?"#442726":"#FDE7E9",blockingBackground:r?"#442726":"#FDE7E9",warningBackground:r?"#433519":"#FFF4CE",severeWarningBackground:r?"#4F2A0F":"#FED9CC",successBackground:r?"#393D1B":"#DFF6DD",warningHighlight:r?"#fff100":"#ffb900",successText:r?"#92c353":"#107C10"},n),a=c2(e,t,o,r);return uk(a,i)}function c2(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,y=a.neutralDark,m=a.neutralQuaternary,T=a.neutralQuaternaryAlt,_=a.neutralPrimary,C=a.neutralSecondary,F=a.neutralSecondaryAlt,A=a.neutralTertiary,S=a.neutralTertiaryAlt,D=a.neutralLighterAlt,M=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),m&&(o.primaryButtonTextDisabled=m,o.disabledSubtext=m),T&&(o.listItemBackgroundCheckedHovered=T),A&&(o.disabledBodyText=A,o.variantBorderHovered=(n==null?void 0:n.variantBorderHovered)||A,o.buttonTextDisabled=A,o.inputIconDisabled=A,o.disabledText=A),_&&(o.bodyText=_,o.actionLink=_,o.buttonText=_,o.inputBorderHovered=_,o.inputText=_,o.listText=_,o.menuItemText=_),D&&(o.bodyStandoutBackground=D,o.defaultStateBackground=D),y&&(o.actionLinkHovered=y,o.buttonTextHovered=y,o.buttonTextChecked=y,o.buttonTextPressed=y,o.inputTextHovered=y,o.menuItemTextHovered=y),C&&(o.bodySubtext=C,o.focusBorder=C,o.inputBorder=C,o.smallInputBorder=C,o.inputPlaceholderText=C),F&&(o.buttonBorder=F),S&&(o.disabledBodySubtext=S,o.disabledBorder=S,o.buttonBackgroundChecked=S,o.menuDivider=S),M&&(o.accentButtonBackground=M),t!=null&&t.elevation4&&(o.cardShadow=t.elevation4),!r&&(t!=null&&t.elevation8)?o.cardShadowHovered=t.elevation8:o.variantBorderHovered&&(o.cardShadowHovered="0 0 1px "+o.variantBorderHovered),o=x(x({},o),n),o}function uk(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 ck(e,t){var n,r,i;t===void 0&&(t={});var o=HE({},e,t,{semanticColors:c2(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,$E=pu&&pu.CSPSettings&&pu.CSPSettings.nonce,mr=nI();function nI(){var e=pu.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};return e.runState||(e=Os(Os({},e),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),e.registeredThemableStyles||(e=Os(Os({},e),{registeredThemableStyles:[]})),pu.__themeState__=e,e}function rI(e,t){mr.loadStyles?mr.loadStyles(m2(e).styleString,e):sI(e)}function iI(e){mr.theme=e,aI()}function oI(e){e===void 0&&(e=3),(e===3||e===2)&&(VE(mr.registeredStyles),mr.registeredStyles=[]),(e===3||e===1)&&(VE(mr.registeredThemableStyles),mr.registeredThemableStyles=[])}function VE(e){e.forEach(function(t){var n=t&&t.styleElement;n&&n.parentElement&&n.parentElement.removeChild(n)})}function aI(){if(mr.theme){for(var e=[],t=0,n=mr.registeredThemableStyles;t0&&(oI(1),rI([].concat.apply([],e)))}}function m2(e){var t=mr.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 sI(e){if(!(typeof document>"u")){var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=m2(e),i=r.styleString,o=r.themable;n.setAttribute("data-load-themed-styles","true"),$E&&n.setAttribute("nonce",$E),n.appendChild(document.createTextNode(i)),mr.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?mr.registeredThemableStyles.push(s):mr.registeredStyles.push(s)}}var Ir=p1({}),lI=[],M0="theme";function p2(){var e,t,n,r=Et();!((t=r==null?void 0:r.FabricConfig)===null||t===void 0)&&t.legacyTheme?cI(r.FabricConfig.legacyTheme):Pr.getSettings([M0]).theme||(!((n=r==null?void 0:r.FabricConfig)===null||n===void 0)&&n.theme&&(Ir=p1(r.FabricConfig.theme)),Pr.applySettings((e={},e[M0]=Ir,e)))}p2();function uI(e){return e===void 0&&(e=!1),e===!0&&(Ir=p1({},e)),Ir}function cI(e,t){var n;return t===void 0&&(t=!1),Ir=p1(e,t),iI(x(x(x(x({},Ir.palette),Ir.semanticColors),Ir.effects),dI(Ir))),Pr.applySettings((n={},n[M0]=Ir,n)),lI.forEach(function(r){try{r(Ir)}catch{}}),Ir}function dI(e){for(var t={},n=0,r=Object.keys(e.fonts);nt.bottom||e.leftt.right)}function Pd(e,t){var n=[];return e.topt.bottom&&n.push(de.bottom),e.leftt.right&&n.push(de.right),n}function Cn(e,t){return e[de[t]]}function XE(e,t,n){return e[de[t]]=n,e}function Yu(e,t){var n=ml(t);return(Cn(e,n.positiveEdge)+Cn(e,n.negativeEdge))/2}function _f(e,t){return e>0?t:t*-1}function P0(e,t){return _f(e,Cn(t,e))}function no(e,t,n){var r=Cn(e,n)-Cn(t,n);return _f(n,r)}function ol(e,t,n,r){r===void 0&&(r=!0);var i=Cn(e,t)-n,o=XE(e,t,n);return r&&(o=XE(e,t*-1,Cn(e,t*-1)-i)),o}function qu(e,t,n,r){return r===void 0&&(r=0),ol(e,n,Cn(t,n)+_f(n,r))}function fI(e,t,n,r){r===void 0&&(r=0);var i=n*-1,o=_f(i,r);return ol(e,n*-1,Cn(t,n)+o)}function Ld(e,t,n){var r=P0(n,e);return r>P0(n,t)}function hI(e,t){for(var n=Pd(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=Bd(e,t,{targetEdge:s,alignmentEdge:l},i))}return a=Bd(e,t,{targetEdge:c,alignmentEdge:d},i),{elementRectangle:a,targetEdge:c,alignmentEdge:d}}function pI(e,t,n,r){var i=e.alignmentEdge,o=e.targetEdge,a=e.elementRectangle,s=i*-1,l=Bd(a,t,{targetEdge:o,alignmentEdge:s},n,r);return{elementRectangle:l,targetEdge:o,alignmentEdge:s}}function gI(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=mI(e,t,n,r,i));var c=Pd(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=pI(u,t,i,a);if(ug(f.elementRectangle,n))return f;u=Oh(Pd(f.elementRectangle,n),u,n,d)}else u=Oh(c,u,n,d);else u=Oh(c,u,n,d);return u}function Oh(e,t,n,r){for(var i=0,o=e;iMath.abs(no(e,n,t*-1))?t*-1:t}function EI(e,t,n){return n!==void 0&&Cn(e,t)===Cn(n,t)}function vI(e,t,n,r,i,o,a,s){var l={},u=cg(t),c=o?n:n*-1,d=i||ml(n).positiveEdge;return(!a||EI(e,wI(d),r))&&(d=E2(e,d,r)),l[de[c]]=no(e,u,c),l[de[d]]=no(e,u,d),s&&(l[de[c*-1]]=no(e,u,c*-1),l[de[d*-1]]=no(e,u,d*-1)),l}function TI(e){return Math.sqrt(e*e*2)}function _I(e,t,n){if(e===void 0&&(e=Pt.bottomAutoEdge),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var r=x({},QE[e]);return wn()?(r.alignmentEdge&&r.alignmentEdge%2===0&&(r.alignmentEdge=r.alignmentEdge*-1),t!==void 0?QE[t]:r):r}function yI(e,t,n,r,i){return e.isAuto&&(e.alignmentEdge=v2(e.targetEdge,t,n)),e.alignTargetEdge=i,e}function v2(e,t,n){var r=Yu(t,e),i=Yu(n,e),o=ml(e),a=o.positiveEdge,s=o.negativeEdge;return r<=i?a:s}function CI(e,t,n,r,i,o,a){var s=Bd(e,t,r,i,a);return ug(s,n)?{elementRectangle:s,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:gI(s,t,n,r,i,o,a)}function SI(e,t,n){var r=e.targetEdge*-1,i=new wi(0,e.elementRectangle.width,0,e.elementRectangle.height),o={},a=E2(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:ml(r).positiveEdge,n),s=no(e.elementRectangle,e.targetRectangle,r),l=s>Math.abs(Cn(t,r));return o[de[r]]=Cn(t,r),o[de[a]]=no(t,i,a),{elementPosition:x({},o),closestEdge:v2(e.targetEdge,t,i),targetEdge:r,hideBeak:!l}}function AI(e,t){var n=t.targetRectangle,r=ml(t.targetEdge),i=r.positiveEdge,o=r.negativeEdge,a=Yu(n,t.targetEdge),s=new wi(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new wi(0,e,0,e);return l=ol(l,t.targetEdge*-1,-e/2),l=g2(l,t.targetEdge*-1,a-P0(i,t.elementRectangle)),Ld(l,s,i)?Ld(l,s,o)||(l=qu(l,s,o)):l=qu(l,s,i),l}function cg(e){var t=e.getBoundingClientRect();return new wi(t.left,t.right,t.top,t.bottom)}function bI(e){return new wi(e.left,e.right,e.top,e.bottom)}function kI(e,t){var n;if(t){if(t.preventDefault){var r=t;n=new wi(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=cg(t);else{var i=t,o=i.left||i.x,a=i.top||i.y,s=i.right||o,l=i.bottom||a;n=new wi(o,s,a,l)}if(!ug(n,e))for(var u=Pd(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 OI(e,t){return RI(e,t)}function pl(){var e=E.useRef();return e.current||(e.current=new hl),E.useEffect(function(){return function(){var t;(t=e.current)===null||t===void 0||t.dispose(),e.current=void 0}},[]),e.current}function Lr(e){var t=E.useRef();return t.current===void 0&&(t.current={value:typeof e=="function"?e():e}),t.current.value}function g1(e){var t=E.useState(e),n=t[0],r=t[1],i=Lr(function(){return function(){r(!0)}}),o=Lr(function(){return function(){r(!1)}}),a=Lr(function(){return function(){r(function(s){return!s})}});return[n,{setTrue:i,setFalse:o,toggle:a}]}function ZE(e,t,n){var r=E.useState(t),i=r[0],o=r[1],a=Lr(e!==void 0),s=a?e:i,l=E.useRef(s),u=E.useRef(n);E.useEffect(function(){l.current=s,u.current=n});var c=Lr(function(){return function(d,f){var p=typeof d=="function"?d(l.current):d;u.current&&u.current(f,p),a||o(p)}});return[s,c]}function Mh(e){var t=E.useRef(function(){throw new Error("Cannot call an event handler while rendering")});return rl(function(){t.current=e},[e]),Lr(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 BI(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==Et()&&setTimeout(function(){var r;(r=t.focus)===null||r===void 0||r.call(t)},0)}function HI(e,t){var n=e.onRestoreFocus,r=n===void 0?BI:n,i=E.useRef(),o=E.useRef(!1);E.useEffect(function(){return i.current=Bn().activeElement,cb(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}},[]),Qu(t,"focus",E.useCallback(function(){o.current=!0},[]),!0),Qu(t,"blur",E.useCallback(function(a){t.current&&a.relatedTarget&&!t.current.contains(a.relatedTarget)&&(o.current=!1)},[]),!0)}function UI(e,t){var n=String(e["aria-modal"]).toLowerCase()==="true"&&e.enableAriaHiddenSiblings;E.useEffect(function(){if(n&&t.current){var r=l2(t.current);return r}},[t,n])}var hg=E.forwardRef(function(e,t){var n=m1({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},e),r=E.useRef(),i=Oi(r,t);UI(n,r),HI(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=LI(n,r),h=E.useCallback(function(y){switch(y.which){case le.escape:f&&(f(y),y.preventDefault(),y.stopPropagation());break}},[f]),v=yf();return Qu(v,"keydown",h),E.createElement("div",x({ref:i},Tt(n,ho),{className:a,role:o,"aria-label":s,"aria-labelledby":l,"aria-describedby":u,onKeyDown:h,style:x({overflowY:p?"scroll":void 0,outline:"none"},c)}),d)});hg.displayName="Popup";var ls,zI="CalloutContentBase",GI=(ls={},ls[de.top]=Ms.slideUpIn10,ls[de.bottom]=Ms.slideDownIn10,ls[de.left]=Ms.slideLeftIn10,ls[de.right]=Ms.slideRightIn10,ls),JE={top:0,left:0},WI={opacity:0,filter:"opacity(0)",pointerEvents:"none"},KI=["role","aria-roledescription"],C2={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:Pt.bottomAutoEdge},jI=on({disableCaching:!0});function $I(e,t,n){var r=e.bounds,i=e.minPagePadding,o=i===void 0?C2.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=OI(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=pl();return Qu(n,"resize",f.debounce(function(){u(!0)},500,{leading:!0})),d}function VI(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,y=(v=t())!==null&&v!==void 0?v:{},m=y.top,T=y.bottom;!i&&!l?typeof p=="number"&&T?d(T-p):typeof h=="number"&&typeof m=="number"&&T&&d(T-m-h):d(i||void 0)},[h,i,o,a,s,t,l,n,p]),c}function YI(e,t,n,r,i){var o=E.useState(),a=o[0],s=o[1],l=E.useRef(0),u=E.useRef(),c=pl(),d=e.hidden,f=e.target,p=e.finalHeight,h=e.calloutMaxHeight,v=e.onPositioned,y=e.directionalHint;return E.useEffect(function(){if(d)s(void 0),l.current=0;else{var m=c.requestAnimationFrame(function(){var T,_;if(t.current&&n){var C=x(x({},e),{target:r.current,bounds:i()}),F=n.cloneNode(!0);F.style.maxHeight=h?""+h:"",F.style.visibility="hidden",(T=n.parentElement)===null||T===void 0||T.appendChild(F);var A=u.current===f?a:void 0,S=p?DI(C,t.current,F,A):NI(C,t.current,F,A);(_=n.parentElement)===null||_===void 0||_.removeChild(F),!a&&S||a&&S&&!ZI(a,S)&&l.current<5?(l.current++,s(S)):l.current>0&&(l.current=0,v==null||v(a))}},n);return u.current=f,function(){c.cancelAnimationFrame(m),u.current=void 0}}},[d,y,c,n,h,t,r,p,i,v,a,e,f]),a}function qI(e,t,n){var r=e.hidden,i=e.setInitialFocus,o=pl(),a=!!t;E.useEffect(function(){if(!r&&i&&a&&n){var s=o.requestAnimationFrame(function(){return ub(n)},n);return function(){return o.cancelAnimationFrame(s)}}},[r,a,o,n,i])}function QI(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=pl(),v=Lr([function(){p.current=!0},function(){p.current=!1}]),y=!!t;return E.useEffect(function(){var m=function(S){y&&!s&&C(S)},T=function(S){!l&&!(f&&f(S))&&(a==null||a(S))},_=function(S){u||C(S)},C=function(S){var D=S.composedPath?S.composedPath():[],M=D.length>0?D[0]:S.target,I=n.current&&!Zn(n.current,M);if(I&&p.current){p.current=!1;return}if(!r.current&&I||S.target!==i&&I&&(!r.current||"stopPropagation"in r.current||c||M!==r.current&&!Zn(r.current,M))){if(f&&f(S))return;a==null||a(S)}},F=function(S){d&&(f&&!f(S)||!f&&!u)&&!(i!=null&&i.document.hasFocus())&&S.relatedTarget===null&&(a==null||a(S))},A=new Promise(function(S){h.setTimeout(function(){if(!o&&i){var D=[ki(i,"scroll",m,!0),ki(i,"resize",T,!0),ki(i.document.documentElement,"focus",_,!0),ki(i.document.documentElement,"click",_,!0),ki(i,"blur",F,!0)];S(function(){D.forEach(function(M){return M()})})}},0)});return function(){A.then(function(S){return S()})}},[o,h,n,r,i,a,d,c,u,l,s,y,f]),v}var S2=E.memo(E.forwardRef(function(e,t){var n=m1(C2,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,y=n.finalHeight,m=n.hideOverflow,T=m===void 0?!!y:m,_=n.backgroundColor,C=n.calloutMaxHeight,F=n.onScroll,A=n.shouldRestoreFocus,S=A===void 0?!0:A,D=n.target,M=n.hidden,I=n.onLayerMounted,L=n.popupProps,O=E.useRef(null),X=E.useState(null),H=X[0],U=X[1],K=E.useCallback(function(Yt){U(Yt)},[]),ne=Oi(O,t),P=_2(n.target,{current:H}),W=P[0],V=P[1],b=$I(n,W,V),k=YI(n,O,H,W,b),me=VI(n,b,k),we=QI(n,k,O,W,V),ut=we[0],Se=we[1],Ue=(k==null?void 0:k.elementPosition.top)&&(k==null?void 0:k.elementPosition.bottom),St=x(x({},k==null?void 0:k.elementPosition),{maxHeight:me});if(Ue&&(St.bottom=void 0),qI(n,k,H),E.useEffect(function(){M||I==null||I()},[M]),!V)return null;var _t=T,We=u&&!!D,ct=jI(r,{theme:n.theme,className:l,overflowYHidden:_t,calloutWidth:f,positions:k,beakWidth:d,backgroundColor:_,calloutMaxWidth:p,calloutMinWidth:h,doNotLayer:v}),Vt=x(x({maxHeight:C||"100%"},i),_t&&{overflowY:"hidden"}),sn=n.hidden?{visibility:"hidden"}:void 0;return E.createElement("div",{ref:ne,className:ct.container,style:sn},E.createElement("div",x({},Tt(n,ho,KI),{className:Pn(ct.root,k&&k.targetEdge&&GI[k.targetEdge]),style:k?x({},St):WI,tabIndex:-1,ref:K}),We&&E.createElement("div",{className:ct.beak,style:XI(k)}),We&&E.createElement("div",{className:ct.beakCurtain}),E.createElement(hg,x({role:n.role,"aria-roledescription":n["aria-roledescription"],ariaDescribedBy:a,ariaLabel:o,ariaLabelledBy:s,className:ct.calloutMain,onDismiss:n.onDismiss,onMouseDown:ut,onMouseUp:Se,onRestoreFocus:n.onRestoreFocus,onScroll:F,shouldRestoreFocus:S,style:Vt},L),c)))}),function(e,t){return!t.shouldUpdateWhenHidden&&e.hidden&&t.hidden?!0:ng(e,t)});function XI(e){var t,n,r=x(x({},(t=e==null?void 0:e.beakPosition)===null||t===void 0?void 0:t.elementPosition),{display:!((n=e==null?void 0:e.beakPosition)===null||n===void 0)&&n.hideBeak?"none":void 0});return!r.top&&!r.bottom&&!r.left&&!r.right&&(r.left=JE.left,r.top=JE.top),r}function ZI(e,t){return e5(e.elementPosition,t.elementPosition)&&e5(e.beakPosition.elementPosition,t.beakPosition.elementPosition)}function e5(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}S2.displayName=zI;function JI(e){return{height:e,width:e}}var eF={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},tF=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=mn(eF,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?il.Layer:void 0,boxSizing:"border-box",borderRadius:p.roundedCorner2,boxShadow:p.elevation16,selectors:(t={},t[re]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},eI(),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)"},JI(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}]}},nF=an(S2,tF,void 0,{scope:"CalloutContent"}),A2=E.createContext(void 0),rF=function(){return function(){}};A2.Provider;function iF(){var e;return(e=E.useContext(A2))!==null&&e!==void 0?e:rF}var oF=on(),aF=xt(function(e,t){return p1(x(x({},e),{rtl:t}))}),sF=function(e){var t=e.theme,n=e.dir,r=wn(t)?"rtl":"ltr",i=wn()?"rtl":"ltr",o=n||r;return{rootDir:o!==r||o!==i?o:n,needsTheme:o!==r}},b2=E.forwardRef(function(e,t){var n=e.className,r=e.theme,i=e.applyTheme,o=e.applyThemeToBody,a=e.styles,s=oF(a,{theme:r,applyTheme:i,className:n}),l=E.useRef(null);return uF(o,s,l),E.createElement(E.Fragment,null,lF(e,s,l,t))});b2.displayName="FabricBase";function lF(e,t,n,r){var i=t.root,o=e.as,a=o===void 0?"div":o,s=e.dir,l=e.theme,u=Tt(e,ho,["dir"]),c=sF(e),d=c.rootDir,f=c.needsTheme,p=E.createElement(a2,{providerRef:n},E.createElement(a,x({dir:d},u,{className:i,ref:Oi(n,r)})));return f&&(p=E.createElement(Nb,{settings:{theme:aF(l,s==="rtl")}},p)),p}function uF(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 Ph={fontFamily:"inherit"},cF={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},dF=function(e){var t=e.applyTheme,n=e.className,r=e.preventBlanketFontInheritance,i=e.theme,o=mn(cF,i);return{root:[o.root,i.fonts.medium,{color:i.palette.neutralPrimary},!r&&{"& button":Ph,"& input":Ph,"& textarea":Ph},t&&{color:i.semanticColors.bodyText,backgroundColor:i.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:i.semanticColors.bodyBackground}]}},fF=an(b2,dF,void 0,{scope:"Fabric"}),gu={},mg={},k2="fluent-default-layer-host",hF="#"+k2;function mF(e,t){gu[e]||(gu[e]=[]),gu[e].push(t);var n=mg[e];if(n)for(var r=0,i=n;r=0&&(n.splice(r,1),n.length===0&&delete gu[e])}var i=mg[e];if(i)for(var o=0,a=i;o0&&t.current.naturalHeight>0||t.current.complete&&FF.test(o):!1;d&&l(Dn.loaded)}}),E.useEffect(function(){n==null||n(s)},[s]);var u=E.useCallback(function(d){r==null||r(d),o&&l(Dn.loaded)},[o,r]),c=E.useCallback(function(d){i==null||i(d),l(Dn.error)},[i]);return[s,u,c]}var N2=E.forwardRef(function(e,t){var n=E.useRef(),r=E.useRef(),i=NF(e,r),o=i[0],a=i[1],s=i[2],l=Tt(e,zb,["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,y=e.className,m=e.imageFit,T=e.role,_=e.maximizeFrame,C=e.styles,F=e.theme,A=e.loading,S=DF(e,o,r,n),D=IF(C,{theme:F,className:y,width:d,height:f,maximizeFrame:_,shouldFadeIn:h,shouldStartVisible:v,isLoaded:o===Dn.loaded||o===Dn.notLoaded&&e.shouldStartVisible,isLandscape:S===Xu.landscape,isCenter:m===Xn.center,isCenterContain:m===Xn.centerContain,isCenterCover:m===Xn.centerCover,isContain:m===Xn.contain,isCover:m===Xn.cover,isNone:m===Xn.none,isError:o===Dn.error,isNotImageFit:m===void 0});return E.createElement("div",{className:D.root,style:{width:d,height:f},ref:n},E.createElement("img",x({},l,{onLoad:a,onError:s,key:xF+e.src||"",className:D.image,ref:Oi(r,t),src:u,alt:c,role:T,loading:A})))});N2.displayName="ImageBase";function DF(e,t,n,r){var i=E.useRef(t),o=E.useRef();return(o===void 0||i.current===Dn.notLoaded&&t===Dn.loaded)&&(o.current=wF(e,t,n,r)),i.current=t,o.current}function wF(e,t,n,r){var i=e.imageFit,o=e.width,a=e.height;if(e.coverStyle!==void 0)return e.coverStyle;if(t===Dn.loaded&&(i===Xn.cover||i===Xn.contain||i===Xn.centerContain||i===Xn.centerCover)&&n.current&&r.current){var s=void 0;typeof o=="number"&&typeof a=="number"&&i!==Xn.centerContain&&i!==Xn.centerCover?s=o/a:s=r.current.clientWidth/r.current.clientHeight;var l=n.current.naturalWidth/n.current.naturalHeight;if(l>s)return Xu.landscape}return Xu.portrait}var RF={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"},OF=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,y=e.isNotImageFit,m=e.theme,T=mn(RF,m),_={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},C=Et(),F=C!==void 0&&C.navigator.msMaxTouchPoints===void 0,A=c&&l||d&&!l?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[T.root,m.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,_],c&&[T.imageContain,F&&{width:"100%",height:"100%",objectFit:"contain"},!F&&A,!F&&_],d&&[T.imageCover,F&&{width:"100%",height:"100%",objectFit:"cover"},!F&&A,!F&&_],f&&[T.imageCenterContain,l&&{maxWidth:"100%"},!l&&{maxHeight:"100%"},_],p&&[T.imageCenterCover,l&&{maxHeight:"100%"},!l&&{maxWidth:"100%"},_],h&&[T.imageNone,{width:"auto",height:"auto"}],y&&[!!n&&!r&&{height:"auto",width:"100%"},!n&&!!r&&{height:"100%",width:"auto"},!!n&&!!r&&{height:"100%",width:"100%"}],l&&T.imageLandscape,!l&&T.imagePortrait,!o&&"is-notLoaded",a&&"is-fadeIn",v&&"is-error"]}},pg=an(N2,OF,void 0,{scope:"Image"},!0);pg.displayName="Image";var La=f1({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),D2="ms-Icon",MF=function(e){var t=e.className,n=e.iconClassName,r=e.isPlaceholder,i=e.isImage,o=e.styles;return{root:[r&&La.placeholder,La.root,i&&La.image,n,t,o&&o.root,o&&o.imageContainer]}},w2=xt(function(e){var t=ak(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),Ud=function(e){var t=e.iconName,n=e.className,r=e.style,i=r===void 0?{}:r,o=w2(t)||{},a=o.iconClassName,s=o.children,l=o.fontFamily,u=o.mergeImageProps,c=Tt(e,Nt),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",x({"data-icon-name":t},f,c,u?{title:void 0,"aria-label":void 0}:{},{className:Pn(D2,La.root,a,!t&&La.placeholder,n),style:x({fontFamily:l},i)}),p)};xt(function(e,t,n){return Ud({iconName:e,className:t,"aria-label":n})});var PF=on({cacheSize:100}),LF=function(e){rt(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===Dn.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===Hd.image||this.props.iconType===Hd.Image,d=w2(a)||{},f=d.iconClassName,p=d.children,h=d.mergeImageProps,v=PF(o,{theme:l,className:i,iconClassName:f,isImage:c,isPlaceholder:u}),y=c?"span":"i",m=Tt(this.props,Nt,["aria-label"]),T=this.state.imageLoadError,_=x(x({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),C=T&&s||pg,F=this.props["aria-label"]||this.props.ariaLabel,A=_.alt||F||this.props.title,S=!!(A||this.props["aria-labelledby"]||_["aria-label"]||_["aria-labelledby"]),D=S?{role:c||h?void 0:"img","aria-label":c||h?void 0:A}:{"aria-hidden":!0},M=p;return h&&p&&typeof p=="object"&&A&&(M=E.cloneElement(p,{alt:A})),E.createElement(y,x({"data-icon-name":a},D,m,h?{title:void 0,"aria-label":void 0}:{},{className:v.root}),c?E.createElement(C,x({},_)):r||M)},t}(E.Component),Mi=an(LF,MF,void 0,{scope:"Icon"},!0);Mi.displayName="Icon";var BF=function(e){var t=e.className,n=e.imageProps,r=Tt(e,Nt,["aria-label","aria-labelledby","title","aria-describedby"]),i=n.alt||e["aria-label"],o=i||e["aria-labelledby"]||e.title||n["aria-label"]||n["aria-labelledby"]||n.title,a={"aria-labelledby":e["aria-labelledby"],"aria-describedby":e["aria-describedby"],title:e.title},s=o?{}:{"aria-hidden":!0};return E.createElement("div",x({},s,r,{className:Pn(D2,La.root,La.image,t)}),E.createElement(pg,x({},a,n,{alt:o?i:""})))},L0={none:0,all:1,inputOnly:2},kn;(function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"})(kn||(kn={}));var ac="data-is-focusable",HF="data-disable-click-on-enter",Lh="data-focuszone-id",gi="tabindex",Bh="data-no-vertical-wrap",Hh="data-no-horizontal-wrap",Uh=999999999,Pl=-999999999,zh,UF="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 GF(){return zh||(zh=bi({selectors:{":focus":{outline:"none"}}},UF)),zh}var Ll={},sc=new Set,WF=["text","number","password","email","tel","url","search","textarea"],zi=!1,KF=function(e){rt(t,e);function t(n){var r,i,o,a,s=e.call(this,n)||this;s._root=E.createRef(),s._mergedRef=u2(),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,y=c.shouldFocusInnerElementWhenReceivedFocus,m=c.defaultTabbableElement,T=s._isImmediateDescendantOfZone(u.target),_;if(T)_=u.target;else for(var C=u.target;C&&C!==s._root.current;){if(Si(C)&&s._isImmediateDescendantOfZone(C)){_=C;break}C=ti(C,zi)}if(y&&u.target===s._root.current){var F=m&&typeof m=="function"&&s._root.current&&m(s._root.current);F&&Si(F)?(_=F,F.focus()):(s.focus(!0),s._activeElement&&(_=null))}var A=!s._activeElement;_&&_!==s._activeElement&&((T||A)&&s._setFocusAlignment(_,!0,!0),s._activeElement=_,A&&s._updateTabIndexes()),d&&d(s._activeElement,u),(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=ti(d,zi);for(;f.length&&(d=f.pop(),d&&Si(d)&&s._setActiveElement(d,!0),!Zi(d)););}}},s._onKeyDown=function(u,c){if(!s._portalContainsElement(u.target)){var d=s.props,f=d.direction,p=d.disabled,h=d.isInnerZoneKeystroke,v=d.pagingSupportDisabled,y=d.shouldEnterInnerZone;if(!p&&(s.props.onKeyDown&&s.props.onKeyDown(u),!u.isDefaultPrevented()&&!(s._getDocument().activeElement===s._root.current&&s._isInnerZone))){if((y&&y(u)||h&&h(u))&&s._isImmediateDescendantOfZone(u.target)){var m=s._getFirstInnerZone();if(m){if(!m.focus(!0))return}else if(sg(u.target)){if(!s.focusElement(Fn(u.target,u.target.firstChild,!0)))return}else return}else{if(u.altKey)return;switch(u.which){case le.space:if(s._shouldRaiseClicksOnSpace&&s._tryInvokeClickForFocusable(u.target,u))break;return;case le.left:if(f!==kn.vertical&&(s._preventDefaultWhenHandled(u),s._moveFocusLeft(c)))break;return;case le.right:if(f!==kn.vertical&&(s._preventDefaultWhenHandled(u),s._moveFocusRight(c)))break;return;case le.up:if(f!==kn.horizontal&&(s._preventDefaultWhenHandled(u),s._moveFocusUp()))break;return;case le.down:if(f!==kn.horizontal&&(s._preventDefaultWhenHandled(u),s._moveFocusDown()))break;return;case le.pageDown:if(!v&&s._moveFocusPaging(!0))break;return;case le.pageUp:if(!v&&s._moveFocusPaging(!1))break;return;case le.tab:if(s.props.allowTabKey||s.props.handleTabKey===L0.all||s.props.handleTabKey===L0.inputOnly&&s._isElementInput(u.target)){var T=!1;if(s._processingTabKey=!0,f===kn.vertical||!s._shouldWrapFocus(s._activeElement,Hh))T=u.shiftKey?s._moveFocusUp():s._moveFocusDown();else{var _=wn(c)?!u.shiftKey:u.shiftKey;T=_?s._moveFocusLeft(c):s._moveFocusRight(c)}if(s._processingTabKey=!1,T)break;s.props.shouldResetActiveElementWhenTabFromZone&&(s._activeElement=null)}return;case le.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(Fn(s._root.current,C,!0)))break;return;case le.end:if(s._isContentEditableElement(u.target)||s._isElementInput(u.target)&&!s._shouldInputLoseFocus(u.target,!0))return!1;var F=s._root.current&&s._root.current.lastChild;if(s._root.current&&s.focusElement(Qn(s._root.current,F,!0,!0,!0)))break;return;case le.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),y=Math.floor(c.top),m=u&&p>h,T=!u&&v=d.left&&f<=d.left+d.width?0:Math.abs(d.left+d.width/2-f):s._shouldWrapFocus(s._activeElement,Bh)?Uh:Pl},mo(s),s._id=Rn("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 sc.size},t._onKeyDownCapture=function(n){n.which===le.tab&&sc.forEach(function(r){return r._updateTabIndexes()})},t.prototype.componentDidMount=function(){var n=this._root.current;if(Ll[this._id]=this,n){for(var r=ti(n,zi);r&&r!==this._getDocument().body&&r.nodeType===1;){if(Zi(r)){this._isInnerZone=!0;break}r=ti(r,zi)}this._isInnerZone||(sc.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&&!Zn(this._root.current,this._activeElement,zi)||this._defaultFocusElement&&!Zn(this._root.current,this._defaultFocusElement,zi))&&(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=db(n,this._lastIndexPath);i?(this._setActiveElement(i,!0),i.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete Ll[this._id],this._isInnerZone||(sc.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var n=this,r=this.props,i=r.as,o=r.elementType,a=r.rootProps,s=r.ariaDescribedBy,l=r.ariaLabelledBy,u=r.className,c=Tt(this.props,Nt),d=i||o||"div";this._evaluateFocusBeforeRender();var f=uI();return E.createElement(d,x({"aria-labelledby":l,"aria-describedby":s},c,a,{className:Pn(GF(),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(ac)==="true"&&this._isInnerZone){var i=this._getOwnerZone(this._root.current);if(i!==this._root.current){var o=Ll[i.getAttribute(Lh)];return!!o&&o.focusElement(this._root.current)}return!1}else{if(!n&&this._activeElement&&Zn(this._root.current,this._activeElement)&&Si(this._activeElement)&&(!r||V4(this._activeElement)))return this._activeElement.focus(),!0;var a=this._root.current.firstChild;return this.focusElement(Fn(this._root.current,a,!0,void 0,void 0,void 0,void 0,void 0,r))}return!1},t.prototype.focusLast=function(){if(this._root.current){var n=this._root.current&&this._root.current.lastChild;return this.focusElement(Qn(this._root.current,n,!0,!0,!0))}return!1},t.prototype.focusElement=function(n,r){var i=this.props,o=i.onBeforeFocus,a=i.shouldReceiveFocus;return a&&!a(n)||o&&!o(n)?!1:n?(this._setActiveElement(n,r),this._activeElement&&this._activeElement.focus(),!0):!1},t.prototype.setFocusAlignment=function(n){this._focusAlignment=n},Object.defineProperty(t.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),t.prototype._evaluateFocusBeforeRender=function(){var n=this._root.current,r=this._getDocument();if(r){var i=r.activeElement;if(i!==n){var o=Zn(n,i,!1);this._lastIndexPath=o?fb(n,i):void 0}}},t.prototype._setParkedFocus=function(n){var r=this._root.current;r&&this._isParked!==n&&(this._isParked=n,n?(this.props.allowFocusRoot||(this._parkedTabIndex=r.getAttribute("tabindex"),r.setAttribute("tabindex","-1")),r.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(r.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):r.removeAttribute("tabindex")))},t.prototype._setActiveElement=function(n,r){var i=this._activeElement;this._activeElement=n,i&&(Zi(i)&&this._updateTabIndexes(i),i.tabIndex=-1),this._activeElement&&((!this._focusAlignment||r)&&this._setFocusAlignment(n,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(n){this.props.preventDefaultWhenHandled&&n.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(n,r){var i=n;if(i===this._root.current)return!1;do{if(i.tagName==="BUTTON"||i.tagName==="A"||i.tagName==="INPUT"||i.tagName==="TEXTAREA"||i.tagName==="SUMMARY")return!1;if(this._isImmediateDescendantOfZone(i)&&i.getAttribute(ac)==="true"&&i.getAttribute(HF)!=="true")return zF(i,r),!0;i=ti(i,zi)}while(i!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(n){if(n=n||this._activeElement||this._root.current,!n)return null;if(Zi(n))return Ll[n.getAttribute(Lh)];for(var r=n.firstElementChild;r;){if(Zi(r))return Ll[r.getAttribute(Lh)];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===kn.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?Fn(this._root.current,a):Qn(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(Fn(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Qn(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return u},t.prototype._moveFocusDown=function(){var n=this,r=-1,i=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!0,function(o,a){var s=-1,l=Math.floor(a.top),u=Math.floor(o.bottom);return l=u||l===r)&&(r=l,i>=a.left&&i<=a.left+a.width?s=0:s=Math.abs(a.left+a.width/2-i)),s)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},t.prototype._moveFocusUp=function(){var n=this,r=-1,i=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!1,function(o,a){var s=-1,l=Math.floor(a.bottom),u=Math.floor(a.top),c=Math.floor(o.top);return l>c?n._shouldWrapFocus(n._activeElement,Bh)?Uh: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,Hh);return this._moveFocus(wn(n),function(o,a){var s=-1,l;return wn(n)?l=parseFloat(a.top.toFixed(3))parseFloat(o.top.toFixed(3)),l&&a.right<=o.right&&r.props.direction!==kn.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,Hh);return this._moveFocus(!wn(n),function(o,a){var s=-1,l;return wn(n)?l=parseFloat(a.bottom.toFixed(3))>parseFloat(o.top.toFixed(3)):l=parseFloat(a.top.toFixed(3))=o.left&&r.props.direction!==kn.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=rg(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?Fn(this._root.current,i):Qn(this._root.current,i),i){var f=i.getBoundingClientRect(),p=Math.floor(f.top),h=Math.floor(d.bottom),v=Math.floor(f.bottom),y=Math.floor(d.top),m=this._getHorizontalDistanceFromCenter(n,d,f),T=n&&p>h+c,_=!n&&v-1&&(n&&p>l?(l=p,a=m,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?Y4(n,r):!0},t.prototype._portalContainsElement=function(n){return n&&!!this._root.current&&$4(n,this._root.current)},t.prototype._getDocument=function(){return Bn(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:kn.bidirectional,shouldRaiseClicks:!0},t}(E.Component),Yn;(function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"})(Yn||(Yn={}));function Zu(e){return e.canCheck?!!(e.isChecked||e.checked):typeof e.isChecked=="boolean"?e.isChecked:typeof e.checked=="boolean"?e.checked:null}function uo(e){return!!(e.subMenuProps||e.items)}function Fi(e){return!!(e.isDisabled||e.disabled)}function R2(e){var t=Zu(e),n=t!==null;return n?"menuitemcheckbox":"menuitem"}var t5=function(e){var t=e.item,n=e.classNames,r=t.iconProps;return E.createElement(Mi,x({},r,{className:n.icon}))},jF=function(e){var t=e.item,n=e.hasIcons;return n?t.onRenderIcon?t.onRenderIcon(e,t5):t5(e):null},$F=function(e){var t=e.onCheckmarkClick,n=e.item,r=e.classNames,i=Zu(n);if(t){var o=function(a){return t(n,a)};return E.createElement(Mi,{iconName:n.canCheck!==!1&&i?"CheckMark":"",className:r.checkmarkIcon,onClick:o})}return null},VF=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},YF=function(e){var t=e.item,n=e.classNames;return t.secondaryText?E.createElement("span",{className:n.secondaryText},t.secondaryText):null},qF=function(e){var t=e.item,n=e.classNames,r=e.theme;return uo(t)?E.createElement(Mi,x({iconName:wn(r)?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:n.subMenuIcon})):null},QF=function(e){rt(t,e);function t(n){var r=e.call(this,n)||this;return r.openSubMenu=function(){var i=r.props,o=i.item,a=i.openSubMenu,s=i.getSubmenuTarget;if(s){var l=s();uo(o)&&a&&l&&a(o,l)}},r.dismissSubMenu=function(){var i=r.props,o=i.item,a=i.dismissSubMenu;uo(o)&&a&&a()},r.dismissMenu=function(i){var o=r.props.dismissMenu;o&&o(void 0,i)},mo(r),r}return t.prototype.render=function(){var n=this.props,r=n.item,i=n.classNames,o=r.onRenderContent||this._renderLayout;return E.createElement("div",{className:r.split?i.linkContentMenu:i.linkContent},o(this.props,{renderCheckMarkIcon:$F,renderItemIcon:jF,renderItemName:VF,renderSecondaryText:YF,renderSubMenuIcon:qF}))},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),XF=xt(function(e){return f1({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})}),Do=36,n5=h2(0,f2),ZF=xt(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:Do,lineHeight:Do,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:a.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(t={},t[re]={color:"GrayText",opacity:1},t)},rootHovered:{backgroundColor:u,color:c,selectors:{".ms-ContextualMenu-icon":{color:l.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:l.neutralPrimary}}},rootFocused:{backgroundColor:l.white},rootChecked:{selectors:{".ms-ContextualMenu-checkmarkIcon":{color:l.neutralPrimary}}},rootPressed:{backgroundColor:d,selectors:{".ms-ContextualMenu-icon":{color:l.themeDark},".ms-ContextualMenu-submenuIcon":{color:l.neutralPrimary}}},rootExpanded:{backgroundColor:d,color:a.bodyTextChecked,selectors:(n={".ms-ContextualMenu-submenuIcon":(r={},r[re]={color:"inherit"},r)},n[re]=x({},Kt()),n)},linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},secondaryText:{color:e.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:Do,fontSize:ri.medium,width:ri.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(i={},i[n5]={fontSize:ri.large,width:ri.large},i)},iconColor:{color:a.menuIcon},iconDisabled:{color:a.disabledBodyText},checkmarkIcon:{color:a.bodySubtext},subMenuIcon:{height:Do,lineHeight:Do,color:l.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:ri.small,selectors:(o={":hover":{color:l.neutralPrimary},":active":{color:l.neutralPrimary}},o[n5]={fontSize:ri.medium},o)},splitButtonFlexContainer:[Zo(e),{display:"flex",height:Do,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]};return Li(p)}),r5="28px",JF=h2(0,f2),ex=xt(function(e){var t;return f1(XF(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[JF]={right:32},t)},divider:{height:16,width:1}})}),tx={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"},nx=xt(function(e,t,n,r,i,o,a,s,l,u,c,d){var f,p,h,v,y=ZF(e),m=mn(tx,e);return f1({item:[m.item,y.item,a],divider:[m.divider,y.divider,s],root:[m.root,y.root,r&&[m.isChecked,y.rootChecked],i&&y.anchorLink,n&&[m.isExpanded,y.rootExpanded],t&&[m.isDisabled,y.rootDisabled],!t&&!n&&[{selectors:(f={":hover":y.rootHovered,":active":y.rootPressed},f["."+vn+" &:focus, ."+vn+" &:focus:hover"]=y.rootFocused,f["."+vn+" &:hover"]={background:"inherit;"},f)}],d],splitPrimary:[y.root,{width:"calc(100% - "+r5+")"},r&&["is-checked",y.rootChecked],(t||c)&&["is-disabled",y.rootDisabled],!(t||c)&&!r&&[{selectors:(p={":hover":y.rootHovered},p[":hover ~ ."+m.splitMenu]=y.rootHovered,p[":active"]=y.rootPressed,p["."+vn+" &:focus, ."+vn+" &:focus:hover"]=y.rootFocused,p["."+vn+" &:hover"]={background:"inherit;"},p)}]],splitMenu:[m.splitMenu,y.root,{flexBasis:"0",padding:"0 8px",minWidth:r5},n&&["is-expanded",y.rootExpanded],t&&["is-disabled",y.rootDisabled],!t&&!n&&[{selectors:(h={":hover":y.rootHovered,":active":y.rootPressed},h["."+vn+" &:focus, ."+vn+" &:focus:hover"]=y.rootFocused,h["."+vn+" &:hover"]={background:"inherit;"},h)}]],anchorLink:y.anchorLink,linkContent:[m.linkContent,y.linkContent],linkContentMenu:[m.linkContentMenu,y.linkContent,{justifyContent:"center"}],icon:[m.icon,o&&y.iconColor,y.icon,l,t&&[m.isDisabled,y.iconDisabled]],iconColor:y.iconColor,checkmarkIcon:[m.checkmarkIcon,o&&y.checkmarkIcon,y.icon,l],subMenuIcon:[m.subMenuIcon,y.subMenuIcon,u,n&&{color:e.palette.neutralPrimary},t&&[y.iconDisabled]],label:[m.label,y.label],secondaryText:[m.secondaryText,y.secondaryText],splitContainer:[y.splitButtonFlexContainer,!t&&!r&&[{selectors:(v={},v["."+vn+" &:focus, ."+vn+" &:focus:hover"]=y.rootFocused,v)}]],screenReaderText:[m.screenReaderText,y.screenReaderText,lg,{visibility:"hidden"}]})}),O2=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 nx(t,n,r,i,o,a,s,l,u,c,d,f)},Ju=an(QF,O2,void 0,{scope:"ContextualMenuItem"}),gg=function(e){rt(t,e);function t(n){var r=e.call(this,n)||this;return r._onItemMouseEnter=function(i){var o=r.props,a=o.item,s=o.onItemMouseEnter;s&&s(a,i,i.currentTarget)},r._onItemClick=function(i){var o=r.props,a=o.item,s=o.onItemClickBase;s&&s(a,i,i.currentTarget)},r._onItemMouseLeave=function(i){var o=r.props,a=o.item,s=o.onItemMouseLeave;s&&s(a,i)},r._onItemKeyDown=function(i){var o=r.props,a=o.item,s=o.onItemKeyDown;s&&s(a,i)},r._onItemMouseMove=function(i){var o=r.props,a=o.item,s=o.onItemMouseMove;s&&s(a,i,i.currentTarget)},r._getSubmenuTarget=function(){},mo(r),r}return t.prototype.shouldComponentUpdate=function(n){return!ng(n,this.props)},t}(E.Component),rx="ktp",i5="-",ix="data-ktp-target",ox="data-ktp-execute-target",ax="ktp-layer-id",yi;(function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"})(yi||(yi={}));var sx=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(t){this.delayUpdatingKeytipChange=t},e.prototype.register=function(t,n){n===void 0&&(n=!1);var r=t;n||(r=this.addParentOverflow(t),this.sequenceMapping[r.keySequences.toString()]=r);var i=this._getUniqueKtp(r);if(n?this.persistedKeytips[i.uniqueID]=i:this.keytips[i.uniqueID]=i,this.inKeytipMode||!this.delayUpdatingKeytipChange){var o=n?yi.PERSISTED_KEYTIP_ADDED:yi.KEYTIP_ADDED;Dr.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)&&Dr.raise(this,yi.KEYTIP_UPDATED,{keytip:i.keytip,uniqueID:i.uniqueID}))},e.prototype.unregister=function(t,n,r){r===void 0&&(r=!1),r?delete this.persistedKeytips[n]:delete this.keytips[n],!r&&delete this.sequenceMapping[t.keySequences.toString()];var i=r?yi.PERSISTED_KEYTIP_REMOVED:yi.KEYTIP_REMOVED;(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&Dr.raise(this,i,{keytip:t,uniqueID:n})},e.prototype.enterKeytipMode=function(){Dr.raise(this,yi.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){Dr.raise(this,yi.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var t=this;return Object.keys(this.keytips).map(function(n){return t.keytips[n].keytip})},e.prototype.addParentOverflow=function(t){var n=ui([],t.keySequences);if(n.pop(),n.length!==0){var r=this.sequenceMapping[n.toString()];if(r&&r.overflowSetSequence)return x(x({},t),{overflowSetSequence:r.overflowSetSequence})}return t},e.prototype.menuExecute=function(t,n){Dr.raise(this,yi.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:t,keytipSequences:n})},e.prototype._getUniqueKtp=function(t,n){return n===void 0&&(n=Rn()),{keytip:x({},t),uniqueID:n}},e._instance=new e,e}();function M2(e){return e.reduce(function(t,n){return t+i5+n.split("").join(i5)},rx)}function lx(e,t){var n=t.length,r=ui([],t).pop(),i=ui([],e);return $7(i,n-1,r)}function ux(e){var t=" "+ax;return e.length?t+" "+M2(e):t}function cx(e){var t=E.useRef(),n=e.keytipProps?x({disabled:e.disabled},e.keytipProps):void 0,r=Lr(sx.getInstance()),i=dg(e);rl(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)}),rl(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=dx(r,n,e.ariaDescribedBy)),o}function dx(e,t,n){var r=e.addParentOverflow(t),i=h1(n,ux(r.keySequences)),o=ui([],r.keySequences);r.overflowSetSequence&&(o=lx(o,r.overflowSetSequence));var a=M2(o);return{ariaDescribedBy:i,keytipId:a}}var e1=function(e){var t,n=e.children,r=Pi(e,["children"]),i=cx(r),o=i.keytipId,a=i.ariaDescribedBy;return n((t={},t[ix]=o,t[ox]=o,t["aria-describedby"]=a,t))},fx=function(e){rt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._anchor=E.createRef(),n._getMemoizedMenuButtonKeytipProps=xt(function(r){return x(x({},r),{hasMenu:!0})}),n._getSubmenuTarget=function(){return n._anchor.current?n._anchor.current:void 0},n._onItemClick=function(r){var i=n.props,o=i.item,a=i.onItemClick;a&&a(o,r)},n._renderAriaDescription=function(r,i){return r?E.createElement("span",{id:n._ariaDescriptionId,className:i},r):null},n}return t.prototype.render=function(){var n=this,r=this.props,i=r.item,o=r.classNames,a=r.index,s=r.focusableElementIndex,l=r.totalItemCount,u=r.hasCheckmarks,c=r.hasIcons,d=r.contextualMenuItemAs,f=d===void 0?Ju:d,p=r.expandedMenuItemKey,h=r.onItemClick,v=r.openSubMenu,y=r.dismissSubMenu,m=r.dismissMenu,T=i.rel;i.target&&i.target.toLowerCase()==="_blank"&&(T=T||"nofollow noopener noreferrer");var _=uo(i),C=Tt(i,Z4),F=Fi(i),A=i.itemProps,S=i.ariaDescription,D=i.keytipProps;D&&_&&(D=this._getMemoizedMenuButtonKeytipProps(D)),S&&(this._ariaDescriptionId=Rn());var M=h1(i.ariaDescribedBy,S?this._ariaDescriptionId:void 0,C["aria-describedby"]),I={"aria-describedby":M};return E.createElement("div",null,E.createElement(e1,{keytipProps:i.keytipProps,ariaDescribedBy:M,disabled:F},function(L){return E.createElement("a",x({},I,C,L,{ref:n._anchor,href:i.href,target:i.target,rel:T,className:o.root,role:"menuitem","aria-haspopup":_||void 0,"aria-expanded":_?i.key===p:void 0,"aria-posinset":s+1,"aria-setsize":l,"aria-disabled":Fi(i),style:i.style,onClick:n._onItemClick,onMouseEnter:n._onItemMouseEnter,onMouseLeave:n._onItemMouseLeave,onMouseMove:n._onItemMouseMove,onKeyDown:_?n._onItemKeyDown:void 0}),E.createElement(f,x({componentRef:i.componentRef,item:i,classNames:o,index:a,onCheckmarkClick:u&&h?h:void 0,hasIcons:c,openSubMenu:v,dismissSubMenu:y,dismissMenu:m,getSubmenuTarget:n._getSubmenuTarget},A)),n._renderAriaDescription(S,o.screenReaderText))}))},t}(gg),hx=function(e){rt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._btn=E.createRef(),n._getMemoizedMenuButtonKeytipProps=xt(function(r){return x(x({},r),{hasMenu:!0})}),n._renderAriaDescription=function(r,i){return r?E.createElement("span",{id:n._ariaDescriptionId,className:i},r):null},n._getSubmenuTarget=function(){return n._btn.current?n._btn.current:void 0},n}return t.prototype.render=function(){var n=this,r=this.props,i=r.item,o=r.classNames,a=r.index,s=r.focusableElementIndex,l=r.totalItemCount,u=r.hasCheckmarks,c=r.hasIcons,d=r.contextualMenuItemAs,f=d===void 0?Ju:d,p=r.expandedMenuItemKey,h=r.onItemMouseDown,v=r.onItemClick,y=r.openSubMenu,m=r.dismissSubMenu,T=r.dismissMenu,_=Zu(i),C=_!==null,F=R2(i),A=uo(i),S=i.itemProps,D=i.ariaLabel,M=i.ariaDescription,I=Tt(i,Wa);delete I.disabled;var L=i.role||F;M&&(this._ariaDescriptionId=Rn());var O=h1(i.ariaDescribedBy,M?this._ariaDescriptionId:void 0,I["aria-describedby"]),X={className:o.root,onClick:this._onItemClick,onKeyDown:A?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(U){return h?h(i,U):void 0},onMouseMove:this._onItemMouseMove,href:i.href,title:i.title,"aria-label":D,"aria-describedby":O,"aria-haspopup":A||void 0,"aria-expanded":A?i.key===p:void 0,"aria-posinset":s+1,"aria-setsize":l,"aria-disabled":Fi(i),"aria-checked":(L==="menuitemcheckbox"||L==="menuitemradio")&&C?!!_:void 0,"aria-selected":L==="menuitem"&&C?!!_:void 0,role:L,style:i.style},H=i.keytipProps;return H&&A&&(H=this._getMemoizedMenuButtonKeytipProps(H)),E.createElement(e1,{keytipProps:H,ariaDescribedBy:O,disabled:Fi(i)},function(U){return E.createElement("button",x({ref:n._btn},I,X,U),E.createElement(f,x({componentRef:i.componentRef,item:i,classNames:o,index:a,onCheckmarkClick:u&&v?v:void 0,hasIcons:c,openSubMenu:y,dismissSubMenu:m,dismissMenu:T,getSubmenuTarget:n._getSubmenuTarget},S)),n._renderAriaDescription(M,o.screenReaderText))})},t}(gg),mx=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}]}},px=on(),P2=E.forwardRef(function(e,t){var n=e.styles,r=e.theme,i=e.getClassNames,o=e.className,a=px(n,{theme:r,getClassNames:i,className:o});return E.createElement("span",{className:a.wrapper,ref:t},E.createElement("span",{className:a.divider}))});P2.displayName="VerticalDividerBase";var gx=an(P2,mx,void 0,{scope:"VerticalDivider"}),Ex=500,vx=function(e){rt(t,e);function t(n){var r=e.call(this,n)||this;return r._getMemoizedMenuButtonKeytipProps=xt(function(i){return x(x({},i),{hasMenu:!0})}),r._onItemKeyDown=function(i){var o=r.props,a=o.item,s=o.onItemKeyDown;i.which===le.enter?(r._executeItemClick(i),i.preventDefault(),i.stopPropagation()):s&&s(a,i)},r._getSubmenuTarget=function(){return r._splitButton},r._renderAriaDescription=function(i,o){return i?E.createElement("span",{id:r._ariaDescriptionId,className:o},i):null},r._onItemMouseEnterPrimary=function(i){var o=r.props,a=o.item,s=o.onItemMouseEnter;s&&s(x(x({},a),{subMenuProps:void 0,items:void 0}),i,r._splitButton)},r._onItemMouseEnterIcon=function(i){var o=r.props,a=o.item,s=o.onItemMouseEnter;s&&s(a,i,r._splitButton)},r._onItemMouseMovePrimary=function(i){var o=r.props,a=o.item,s=o.onItemMouseMove;s&&s(x(x({},a),{subMenuProps:void 0,items:void 0}),i,r._splitButton)},r._onItemMouseMoveIcon=function(i){var o=r.props,a=o.item,s=o.onItemMouseMove;s&&s(a,i,r._splitButton)},r._onIconItemClick=function(i){var o=r.props,a=o.item,s=o.onItemClickBase;s&&s(a,i,r._splitButton?r._splitButton:i.currentTarget)},r._executeItemClick=function(i){var o=r.props,a=o.item,s=o.executeItemClick,l=o.onItemClick;if(!(a.disabled||a.isDisabled)){if(r._processingTouch&&l)return l(a,i);s&&s(a,i)}},r._onTouchStart=function(i){r._splitButton&&!("onpointerdown"in r._splitButton)&&r._handleTouchAndPointerEvent(i)},r._onPointerDown=function(i){i.pointerType==="touch"&&(r._handleTouchAndPointerEvent(i),i.preventDefault(),i.stopImmediatePropagation())},r._async=new hl(r),r._events=new Dr(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=uo(i),h=i.keytipProps;h&&(h=this._getMemoizedMenuButtonKeytipProps(h));var v=i.ariaDescription;return v&&(this._ariaDescriptionId=Rn()),E.createElement(e1,{keytipProps:h,disabled:Fi(i)},function(y){return E.createElement("div",{"data-ktp-target":y["data-ktp-target"],ref:function(m){return n._splitButton=m},role:R2(i),"aria-label":i.ariaLabel,className:o.splitContainer,"aria-disabled":Fi(i),"aria-expanded":p?i.key===f:void 0,"aria-haspopup":!0,"aria-describedby":h1(i.ariaDescribedBy,v?n._ariaDescriptionId:void 0,y["aria-describedby"]),"aria-checked":i.isChecked||i.checked,"aria-posinset":s+1,"aria-setsize":l,onMouseEnter:n._onItemMouseEnterPrimary,onMouseLeave:d?d.bind(n,x(x({},i),{subMenuProps:null,items:null})):void 0,onMouseMove:n._onItemMouseMovePrimary,onKeyDown:n._onItemKeyDown,onClick:n._executeItemClick,onTouchStart:n._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":i["aria-roledescription"]},n._renderSplitPrimaryButton(i,o,a,u,c),n._renderSplitDivider(i),n._renderSplitIconButton(i,o,a,y),n._renderAriaDescription(v,o.screenReaderText))})},t.prototype._renderSplitPrimaryButton=function(n,r,i,o,a){var s=this.props,l=s.contextualMenuItemAs,u=l===void 0?Ju:l,c=s.onItemClick,d={key:n.key,disabled:Fi(n)||n.primaryDisabled,name:n.name,text:n.text||n.name,secondaryText:n.secondaryText,className:r.splitPrimary,canCheck:n.canCheck,isChecked:n.isChecked,checked:n.checked,iconProps:n.iconProps,onRenderIcon:n.onRenderIcon,data:n.data,"data-is-focusable":!1},f=n.itemProps;return E.createElement("button",x({},Tt(d,Wa)),E.createElement(u,x({"data-is-focusable":!1,item:d,classNames:r,index:i,onCheckmarkClick:o&&c?c:void 0,hasIcons:a},f)))},t.prototype._renderSplitDivider=function(n){var r=n.getSplitButtonVerticalDividerClassNames||ex;return E.createElement(gx,{getClassNames:r})},t.prototype._renderSplitIconButton=function(n,r,i,o){var a=this.props,s=a.contextualMenuItemAs,l=s===void 0?Ju:s,u=a.onItemMouseLeave,c=a.onItemMouseDown,d=a.openSubMenu,f=a.dismissSubMenu,p=a.dismissMenu,h={onClick:this._onIconItemClick,disabled:Fi(n),className:r.splitMenu,subMenuProps:n.subMenuProps,submenuIconProps:n.submenuIconProps,split:!0,key:n.key},v=x(x({},Tt(h,Wa)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:u?u.bind(this,n):void 0,onMouseDown:function(m){return c?c(n,m):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":o["data-ktp-execute-target"],"aria-hidden":!0}),y=n.itemProps;return E.createElement("button",x({},v),E.createElement(l,x({componentRef:n.componentRef,item:h,classNames:r,index:i,hasIcons:!1,openSubMenu:d,dismissSubMenu:f,dismissMenu:p,getSubmenuTarget:this._getSubmenuTarget},y)))},t.prototype._handleTouchAndPointerEvent=function(n){var r=this,i=this.props.onTap;i&&i(n),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){r._processingTouch=!1,r._lastTouchTimeoutId=void 0},Ex)},t}(gg),Tx=function(e){rt(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=Wb(this,n):this._hoisted&&Kb(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 _x=[479,639,1023,1365,1919,99999999],L2;function Eg(){var e;return(e=L2)!==null&&e!==void 0?e:Ka.large}function B2(e){var t,n=(t=function(r){rt(i,r);function i(o){var a=r.call(this,o)||this;return a._onResize=function(){var s=H2(a.context.window);s!==a.state.responsiveMode&&a.setState({responsiveMode:s})},a._events=new Dr(a),a._updateComposedComponentRef=a._updateComposedComponentRef.bind(a),a.state={responsiveMode:Eg()},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,x({ref:this._updateComposedComponentRef,responsiveMode:o},this.props))},i}(Tx),t.contextType=fg,t);return X4(e,n)}function yx(e){try{return e.document.documentElement.clientWidth}catch{return e.innerWidth}}function H2(e){var t=Ka.small;if(e){try{for(;yx(e)>_x[t];)t++}catch{t=Eg()}L2=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 U2=function(e,t){var n=E.useState(Eg()),r=n[0],i=n[1],o=E.useCallback(function(){var s=H2(Et(e.current));r!==s&&i(s)},[e,r]),a=yf();return Qu(a,"resize",o),E.useEffect(function(){t===void 0&&o()},[t]),t??r},Cx=E.createContext({}),Sx=on(),Ax=on(),bx={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:Pt.bottomAutoEdge,beakWidth:16};function z2(e,t){var n=t==null?void 0:t.target,r=e.subMenuProps?e.subMenuProps.items:e.items;if(r){for(var i=[],o=0,a=r;o0)return E.createElement("li",{role:"presentation",key:_e.key||G.key||"section-"+ee},E.createElement("div",x({},je),E.createElement("ul",{className:j.list,role:"presentation"},_e.topDivider&&sn(ee,R,!0,!0),Je&&Vt(Je,G.key||ee,R,G.title),_e.items.map(function(L1,bl){return _t(L1,bl,bl,_e.items.length,Ae,Ke,j)}),_e.bottomDivider&&sn(ee,R,!1,!0))))}},Vt=function(G,R,j,ee){return E.createElement("li",{role:"presentation",title:ee,key:R,className:j.item},G)},sn=function(G,R,j,ee){return ee||G>0?E.createElement("li",{role:"separator",key:"separator-"+G+(j===void 0?"":j?"-top":"-bottom"),className:R.divider,"aria-hidden":"true"}):null},Yt=function(G,R,j,ee,Ae,Ke,_e){if(G.onRender)return G.onRender(x({"aria-posinset":ee+1,"aria-setsize":Ae},G),l);var Je=i.contextualMenuItemAs,je={item:G,classNames:R,index:j,focusableElementIndex:ee,totalItemCount:Ae,hasCheckmarks:Ke,hasIcons:_e,contextualMenuItemAs:Je,onItemMouseEnter:V,onItemMouseLeave:k,onItemMouseMove:b,onItemMouseDown:Lx,executeItemClick:ut,onItemKeyDown:P,expandedMenuItemKey:h,openSubMenu:v,dismissSubMenu:m,dismissMenu:l};return G.href?E.createElement(fx,x({},je,{onItemClick:we})):G.split&&uo(G)?E.createElement(vx,x({},je,{onItemClick:me,onItemClickBase:Se,onTap:I})):E.createElement(hx,x({},je,{onItemClick:me,onItemClickBase:Se}))},ie=function(G,R,j,ee,Ae,Ke){var _e=i.contextualMenuItemAs,Je=_e===void 0?Ju:_e,je=G.itemProps,Ut=G.id,dt=je&&Tt(je,ho);return E.createElement("div",x({id:Ut,className:j.header},dt,{style:G.style}),E.createElement(Je,x({item:G,classNames:R,index:ee,onCheckmarkClick:Ae?me:void 0,hasIcons:Ke},je)))},ve=i.isBeakVisible,ce=i.items,$e=i.labelElementId,Ve=i.id,Ot=i.className,Ee=i.beakWidth,yt=i.directionalHint,qt=i.directionalHintForRTL,Wn=i.alignTargetEdge,At=i.gapSpace,Qt=i.coverTarget,z=i.ariaLabel,Y=i.doNotLayer,se=i.target,pe=i.bounds,q=i.useTargetWidth,Re=i.useTargetAsMinWidth,Oe=i.directionalHintFixed,Ze=i.shouldFocusOnMount,ze=i.shouldFocusOnContainer,ke=i.title,Ce=i.styles,or=i.theme,ye=i.calloutProps,Sn=i.onRenderSubMenu,ar=Sn===void 0?a5:Sn,sa=i.onRenderMenuList,la=sa===void 0?function(G,R){return Ue(G,Sr)}:sa,rs=i.focusZoneProps,ua=i.getMenuClassNames,Sr=ua?ua(or,Ot):Sx(Ce,{theme:or,className:Ot}),ca=Ye(ce);function Ye(G){for(var R=0,j=G;R0){for(var br=0,is=0,Al=ce;is 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":l5,":focus":l5}}],iconDisabled:{color:l,selectors:(t={},t[re]={color:"GrayText"},t)},menuIconDisabled:{color:l,selectors:(n={},n[re]={color:"GrayText"},n)},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:u5(o.mediumPlus.fontSize),menuIcon:u5(o.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:lg}}),_g=xt(function(e,t){var n,r,i,o,a,s,l,u,c,d,f,p,h,v=e.effects,y=e.palette,m=e.semanticColors,T={left:-2,top:-2,bottom:-2,right:-2,border:"none"},_={position:"absolute",width:1,right:31,top:8,bottom:8},C={splitButtonContainer:[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[re]=x({color:"WindowText",backgroundColor:"Window",border:"1px solid WindowText",borderRightWidth:"0"},Kt()),n[":hover"]={border:"none"},n[":active"]={border:"none"},n)},".ms-Button--primary + .ms-Button":{border:"none",selectors:(r={},r[re]={border:"1px solid WindowText",borderLeftWidth:"0"},r)}}}],splitButtonContainerHovered:{selectors:{".ms-Button--primary":{selectors:(i={},i[re]={color:"Window",backgroundColor:"Highlight"},i)},".ms-Button.is-disabled":{color:m.buttonTextDisabled,selectors:(o={},o[re]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},o)}}},splitButtonContainerChecked:{selectors:{".ms-Button--primary":{selectors:(a={},a[re]=x({color:"Window",backgroundColor:"WindowText"},Kt()),a)}}},splitButtonContainerCheckedHovered:{selectors:{".ms-Button--primary":{selectors:(s={},s[re]=x({color:"Window",backgroundColor:"WindowText"},Kt()),s)}}},splitButtonContainerFocused:{outline:"none!important"},splitButtonMenuButton:(l={padding:6,height:"auto",boxSizing:"border-box",borderRadius:0,borderTopRightRadius:v.roundedCorner2,borderBottomRightRadius:v.roundedCorner2,border:"1px solid "+y.neutralSecondaryAlt,borderLeft:"none",outline:"transparent",userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",verticalAlign:"top",width:32,marginLeft:-1,marginTop:0,marginRight:0,marginBottom:0},l[re]={".ms-Button-menuIcon":{color:"WindowText"}},l),splitButtonDivider:x(x({},_),{selectors:(u={},u[re]={backgroundColor:"WindowText"},u)}),splitButtonDividerDisabled:x(x({},_),{selectors:(c={},c[re]={backgroundColor:"GrayText"},c)}),splitButtonMenuButtonDisabled:{pointerEvents:"none",border:"none",selectors:(d={":hover":{cursor:"default"},".ms-Button--primary":{selectors:(f={},f[re]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},f)},".ms-Button-menuIcon":{selectors:(p={},p[re]={color:"GrayText"},p)}},d[re]={color:"GrayText",border:"1px solid GrayText",backgroundColor:"Window"},d)},splitButtonFlexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},splitButtonContainerDisabled:{outline:"none",border:"none",selectors:(h={},h[re]=x({color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},Kt()),h)},splitButtonMenuFocused:x({},Zo(e,{highContrastStyle:T,inset:2}))};return Li(C,t)}),q2=function(){return{position:"absolute",width:1,right:31,top:8,bottom:8}};function Kx(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,y=a.buttonTextCheckedHovered;return{root:{backgroundColor:l,color:f},rootHovered:{backgroundColor:c,color:p,selectors:(t={},t[re]={borderColor:"Highlight",color:"Highlight"},t)},rootPressed:{backgroundColor:u,color:v},rootExpanded:{backgroundColor:u,color:v},rootChecked:{backgroundColor:u,color:v},rootCheckedHovered:{backgroundColor:u,color:y},rootDisabled:{color:h,backgroundColor:d,selectors:(n={},n[re]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},n)},splitButtonContainer:{selectors:(r={},r[re]={border:"none"},r)},splitButtonMenuButton:{color:s.white,backgroundColor:"transparent",selectors:{":hover":{backgroundColor:s.neutralLight,selectors:(i={},i[re]={color:"Highlight"},i)}}},splitButtonMenuButtonDisabled:{backgroundColor:a.buttonBackgroundDisabled,selectors:{":hover":{backgroundColor:a.buttonBackgroundDisabled}}},splitButtonDivider:x(x({},q2()),{backgroundColor:s.neutralTertiaryAlt,selectors:(o={},o[re]={backgroundColor:"WindowText"},o)}),splitButtonDividerDisabled:{backgroundColor:e.palette.neutralTertiaryAlt},splitButtonMenuButtonChecked:{backgroundColor:s.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:s.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:s.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:s.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:a.buttonText},splitButtonMenuIconDisabled:{color:a.buttonTextDisabled}}}function jx(e){var t,n,r,i,o,a,s,l,u,c=e.palette,d=e.semanticColors;return{root:{backgroundColor:d.primaryButtonBackground,border:"1px solid "+d.primaryButtonBackground,color:d.primaryButtonText,selectors:(t={},t[re]=x({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},Kt()),t["."+vn+" &:focus"]={selectors:{":after":{border:"none",outlineColor:c.white}}},t)},rootHovered:{backgroundColor:d.primaryButtonBackgroundHovered,border:"1px solid "+d.primaryButtonBackgroundHovered,color:d.primaryButtonTextHovered,selectors:(n={},n[re]={color:"Window",backgroundColor:"Highlight",borderColor:"Highlight"},n)},rootPressed:{backgroundColor:d.primaryButtonBackgroundPressed,border:"1px solid "+d.primaryButtonBackgroundPressed,color:d.primaryButtonTextPressed,selectors:(r={},r[re]=x({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},Kt()),r)},rootExpanded:{backgroundColor:d.primaryButtonBackgroundPressed,color:d.primaryButtonTextPressed},rootChecked:{backgroundColor:d.primaryButtonBackgroundPressed,color:d.primaryButtonTextPressed},rootCheckedHovered:{backgroundColor:d.primaryButtonBackgroundPressed,color:d.primaryButtonTextPressed},rootDisabled:{color:d.primaryButtonTextDisabled,backgroundColor:d.primaryButtonBackgroundDisabled,selectors:(i={},i[re]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},i)},splitButtonContainer:{selectors:(o={},o[re]={border:"none"},o)},splitButtonDivider:x(x({},q2()),{backgroundColor:c.white,selectors:(a={},a[re]={backgroundColor:"Window"},a)}),splitButtonMenuButton:{backgroundColor:d.primaryButtonBackground,color:d.primaryButtonText,selectors:(s={},s[re]={backgroundColor:"Canvas"},s[":hover"]={backgroundColor:d.primaryButtonBackgroundHovered,selectors:(l={},l[re]={color:"Highlight"},l)},s)},splitButtonMenuButtonDisabled:{backgroundColor:d.primaryButtonBackgroundDisabled,selectors:{":hover":{backgroundColor:d.primaryButtonBackgroundDisabled}}},splitButtonMenuButtonChecked:{backgroundColor:d.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:d.primaryButtonBackgroundPressed}}},splitButtonMenuButtonExpanded:{backgroundColor:d.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:d.primaryButtonBackgroundPressed}}},splitButtonMenuIcon:{color:d.primaryButtonText},splitButtonMenuIconDisabled:{color:c.neutralTertiary,selectors:(u={},u[re]={color:"GrayText"},u)}}}var $x="32px",Vx="80px",Yx=xt(function(e,t,n){var r=Tg(e),i=_g(e),o={root:{minWidth:Vx,height:$x},label:{fontWeight:at.semibold}};return Li(r,o,n?jx(e):Kx(e),i,t)}),v1=function(e){rt(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(vg,x({},this.props,{variantClassName:i?"ms-Button--primary":"ms-Button--default",styles:Yx(a,o,i),onRenderDescription:tl}))},t=fl([Ef("DefaultButton",["theme","styles"],!0)],t),t}(E.Component),qx=xt(function(e,t){var n,r=Tg(e),i=_g(e),o=e.palette,a=e.semanticColors,s={root:{padding:"0 4px",width:"32px",height:"32px",backgroundColor:"transparent",border:"none",color:a.link},rootHovered:{color:o.themeDarkAlt,backgroundColor:o.neutralLighter,selectors:(n={},n[re]={borderColor:"Highlight",color:"Highlight"},n)},rootHasMenu:{width:"auto"},rootPressed:{color:o.themeDark,backgroundColor:o.neutralLight},rootExpanded:{color:o.themeDark,backgroundColor:o.neutralLight},rootChecked:{color:o.themeDark,backgroundColor:o.neutralLight},rootCheckedHovered:{color:o.themeDark,backgroundColor:o.neutralQuaternaryAlt},rootDisabled:{color:o.neutralTertiaryAlt}};return Li(r,s,i,t)}),wa=function(e){rt(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(vg,x({},this.props,{variantClassName:"ms-Button--icon",styles:qx(i,r),onRenderText:tl,onRenderDescription:tl}))},t=fl([Ef("IconButton",["theme","styles"],!0)],t),t}(E.Component),Q2=function(e){rt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return E.createElement(v1,x({},this.props,{primary:!0,onRenderDescription:tl}))},t=fl([Ef("PrimaryButton",["theme","styles"],!0)],t),t}(E.Component),Qx=xt(function(e,t,n,r){var i,o,a,s,l,u,c,d,f,p,h,v,y,m,T=Tg(e),_=_g(e),C=e.palette,F=e.semanticColors,A={left:4,top:4,bottom:4,right:4,border:"none"},S={root:[Zo(e,{inset:2,highContrastStyle:A,borderColor:"transparent"}),e.fonts.medium,{minWidth:"40px",backgroundColor:C.white,color:C.neutralPrimary,padding:"0 4px",border:"none",borderRadius:0,selectors:(i={},i[re]={border:"none"},i)}],rootHovered:{backgroundColor:C.neutralLighter,color:C.neutralDark,selectors:(o={},o[re]={color:"Highlight"},o["."+bn.msButtonIcon]={color:C.themeDarkAlt},o["."+bn.msButtonMenuIcon]={color:C.neutralPrimary},o)},rootPressed:{backgroundColor:C.neutralLight,color:C.neutralDark,selectors:(a={},a["."+bn.msButtonIcon]={color:C.themeDark},a["."+bn.msButtonMenuIcon]={color:C.neutralPrimary},a)},rootChecked:{backgroundColor:C.neutralLight,color:C.neutralDark,selectors:(s={},s["."+bn.msButtonIcon]={color:C.themeDark},s["."+bn.msButtonMenuIcon]={color:C.neutralPrimary},s)},rootCheckedHovered:{backgroundColor:C.neutralQuaternaryAlt,selectors:(l={},l["."+bn.msButtonIcon]={color:C.themeDark},l["."+bn.msButtonMenuIcon]={color:C.neutralPrimary},l)},rootExpanded:{backgroundColor:C.neutralLight,color:C.neutralDark,selectors:(u={},u["."+bn.msButtonIcon]={color:C.themeDark},u["."+bn.msButtonMenuIcon]={color:C.neutralPrimary},u)},rootExpandedHovered:{backgroundColor:C.neutralQuaternaryAlt},rootDisabled:{backgroundColor:C.white,selectors:(c={},c["."+bn.msButtonIcon]={color:F.disabledBodySubtext,selectors:(d={},d[re]=x({color:"GrayText"},Kt()),d)},c[re]=x({color:"GrayText",backgroundColor:"Window"},Kt()),c)},splitButtonContainer:{height:"100%",selectors:(f={},f[re]={border:"none"},f)},splitButtonDividerDisabled:{selectors:(p={},p[re]={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[re]={color:"Highlight"},h["."+bn.msButtonIcon]={color:C.neutralPrimary},h)},":active":{backgroundColor:C.neutralLight,selectors:(v={},v["."+bn.msButtonIcon]={color:C.neutralPrimary},v)}}},splitButtonMenuButtonDisabled:{backgroundColor:C.white,selectors:(y={},y[re]=x({color:"GrayText",border:"none",backgroundColor:"Window"},Kt()),y)},splitButtonMenuButtonChecked:{backgroundColor:C.neutralLight,color:C.neutralDark,selectors:{":hover":{backgroundColor:C.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:C.neutralLight,color:C.black,selectors:{":hover":{backgroundColor:C.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:C.neutralPrimary},splitButtonMenuIconDisabled:{color:C.neutralTertiary},label:{fontWeight:"normal"},icon:{color:C.themePrimary},menuIcon:(m={color:C.neutralSecondary},m[re]={color:"GrayText"},m)};return Li(T,_,S,t)}),t1=function(e){rt(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(vg,x({},this.props,{variantClassName:"ms-Button--commandBar",styles:Qx(i,r),onRenderDescription:tl}))},t=fl([Ef("CommandBarButton",["theme","styles"],!0)],t),t}(E.Component),Xx=on(),X2=E.forwardRef(function(e,t){var n=e.disabled,r=e.required,i=e.inputProps,o=e.name,a=e.ariaLabel,s=e.ariaLabelledBy,l=e.ariaDescribedBy,u=e.ariaPositionInSet,c=e.ariaSetSize,d=e.title,f=e.checkmarkIconProps,p=e.styles,h=e.theme,v=e.className,y=e.boxSide,m=y===void 0?"start":y,T=E1("checkbox-",e.id),_=E.useRef(null),C=Oi(_,t),F=E.useRef(null),A=ZE(e.checked,e.defaultChecked,e.onChange),S=A[0],D=A[1],M=ZE(e.indeterminate,e.defaultIndeterminate),I=M[0],L=M[1];e2(_);var O=Xx(p,{theme:h,className:v,disabled:n,indeterminate:I,checked:S,reversed:m!=="start",isUsingCustomLabelRender:!!e.onRenderLabel}),X=E.useCallback(function(W){I?(D(!!S,W),L(!1)):D(!S,W)},[D,L,I,S]),H=E.useCallback(function(W){return W&&W.label?E.createElement("span",{className:O.text,title:W.title},W.label):null},[O.text]),U=E.useCallback(function(W){if(F.current){var V=!!W;F.current.indeterminate=V,L(V)}},[L]);Zx(e,S,I,U,F),E.useEffect(function(){return U(I)},[U,I]);var K=e.onRenderLabel||H,ne=I?"mixed":void 0,P=x(x({className:O.input,type:"checkbox"},i),{checked:!!S,disabled:n,required:r,name:o,id:T,title:d,onChange:X,"aria-disabled":n,"aria-label":a,"aria-labelledby":s,"aria-describedby":l,"aria-posinset":u,"aria-setsize":c,"aria-checked":ne});return E.createElement("div",{className:O.root,title:d,ref:C},E.createElement("input",x({},P,{ref:F,title:d,"data-ktp-execute-target":!0})),E.createElement("label",{className:O.label,htmlFor:T},E.createElement("div",{className:O.checkbox,"data-ktp-target":!0},E.createElement(Mi,x({iconName:"CheckMark"},f,{className:O.checkmark}))),K(e,H)))});X2.displayName="CheckboxBase";function Zx(e,t,n,r,i){E.useImperativeHandle(e.componentRef,function(){return{get checked(){return!!t},get indeterminate(){return!!n},set indeterminate(o){r(o)},focus:function(){i.current&&i.current.focus()}}},[i,t,n,r])}var Jx={root:"ms-Checkbox",label:"ms-Checkbox-label",checkbox:"ms-Checkbox-checkbox",checkmark:"ms-Checkbox-checkmark",text:"ms-Checkbox-text"},c5="20px",d5="200ms",f5="cubic-bezier(.4, 0, .23, 1)",eN=function(e){var t,n,r,i,o,a,s,l,u,c,d,f,p,h,v,y,m,T,_=e.className,C=e.theme,F=e.reversed,A=e.checked,S=e.disabled,D=e.isUsingCustomLabelRender,M=e.indeterminate,I=C.semanticColors,L=C.effects,O=C.palette,X=C.fonts,H=mn(Jx,C),U=I.inputForegroundChecked,K=O.neutralSecondary,ne=O.neutralPrimary,P=I.inputBackgroundChecked,W=I.inputBackgroundChecked,V=I.disabledBodySubtext,b=I.inputBorderHovered,k=I.inputBackgroundCheckedHovered,me=I.inputBackgroundChecked,we=I.inputBackgroundCheckedHovered,ut=I.inputBackgroundCheckedHovered,Se=I.inputTextHovered,Ue=I.disabledBodySubtext,St=I.bodyText,_t=I.disabledText,We=[(t={content:'""',borderRadius:L.roundedCorner2,position:"absolute",width:10,height:10,top:4,left:4,boxSizing:"border-box",borderWidth:5,borderStyle:"solid",borderColor:S?V:P,transitionProperty:"border-width, border, border-color",transitionDuration:d5,transitionTimingFunction:f5},t[re]={borderColor:"WindowText"},t)];return{root:[H.root,{position:"relative",display:"flex"},F&&"reversed",A&&"is-checked",!S&&"is-enabled",S&&"is-disabled",!S&&[!A&&(n={},n[":hover ."+H.checkbox]=(r={borderColor:b},r[re]={borderColor:"Highlight"},r),n[":focus ."+H.checkbox]={borderColor:b},n[":hover ."+H.checkmark]=(i={color:K,opacity:"1"},i[re]={color:"Highlight"},i),n),A&&!M&&(o={},o[":hover ."+H.checkbox]={background:we,borderColor:ut},o[":focus ."+H.checkbox]={background:we,borderColor:ut},o[re]=(a={},a[":hover ."+H.checkbox]={background:"Highlight",borderColor:"Highlight"},a[":focus ."+H.checkbox]={background:"Highlight"},a[":focus:hover ."+H.checkbox]={background:"Highlight"},a[":focus:hover ."+H.checkmark]={color:"Window"},a[":hover ."+H.checkmark]={color:"Window"},a),o),M&&(s={},s[":hover ."+H.checkbox+", :hover ."+H.checkbox+":after"]=(l={borderColor:k},l[re]={borderColor:"WindowText"},l),s[":focus ."+H.checkbox]={borderColor:k},s[":hover ."+H.checkmark]={opacity:"0"},s),(u={},u[":hover ."+H.text+", :focus ."+H.text]=(c={color:Se},c[re]={color:S?"GrayText":"WindowText"},c),u)],_],input:(d={position:"absolute",background:"none",opacity:0},d["."+vn+" &:focus + label::before"]=(f={outline:"1px solid "+C.palette.neutralSecondary,outlineOffset:"2px"},f[re]={outline:"1px solid WindowText"},f),d),label:[H.label,C.fonts.medium,{display:"flex",alignItems:D?"center":"flex-start",cursor:S?"default":"pointer",position:"relative",userSelect:"none"},F&&{flexDirection:"row-reverse",justifyContent:"flex-end"},{"&::before":{position:"absolute",left:0,right:0,top:0,bottom:0,content:'""',pointerEvents:"none"}}],checkbox:[H.checkbox,(p={position:"relative",display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",height:c5,width:c5,border:"1px solid "+ne,borderRadius:L.roundedCorner2,boxSizing:"border-box",transitionProperty:"background, border, border-color",transitionDuration:d5,transitionTimingFunction:f5,overflow:"hidden",":after":M?We:null},p[re]=x({borderColor:"WindowText"},Kt()),p),M&&{borderColor:P},F?{marginLeft:4}:{marginRight:4},!S&&!M&&A&&(h={background:me,borderColor:W},h[re]={background:"Highlight",borderColor:"Highlight"},h),S&&(v={borderColor:V},v[re]={borderColor:"GrayText"},v),A&&S&&(y={background:Ue,borderColor:V},y[re]={background:"Window"},y)],checkmark:[H.checkmark,(m={opacity:A&&!M?"1":"0",color:U},m[re]=x({color:S?"GrayText":"Window"},Kt()),m)],text:[H.text,(T={color:S?_t:St,fontSize:X.medium.fontSize,lineHeight:"20px"},T[re]=x({color:S?"GrayText":"WindowText"},Kt()),T),F?{marginRight:4}:{marginLeft:4}]}},Ei=an(X2,eN,void 0,{scope:"Checkbox"}),tN=on({cacheSize:100}),nN=function(e){rt(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=tN(l,{className:a,disabled:s,required:u,theme:c});return E.createElement(i,x({},Tt(this.props,ho),{className:d.root}),o)},t}(E.Component),rN=function(e){var t,n=e.theme,r=e.className,i=e.disabled,o=e.required,a=n.semanticColors,s=at.semibold,l=a.bodyText,u=a.disabledBodyText,c=a.errorText;return{root:["ms-Label",n.fonts.medium,{fontWeight:s,color:l,boxSizing:"border-box",boxShadow:"none",margin:0,display:"block",padding:"5px 0",wordWrap:"break-word",overflowWrap:"break-word"},i&&{color:u,selectors:(t={},t[re]=x({color:"GrayText"},Kt()),t)},o&&{selectors:{"::after":{content:"' *'",color:c,paddingRight:12}}},r]}},iN=an(nN,rN,void 0,{scope:"Label"}),oN=on(),aN="",pa="TextField",sN="RedEye",lN="Hide",uN=function(e){rt(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(iN,{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=Gh(r.props,r.state)||"";if(c===void 0||c===r._lastChangeValue||c===d){r._lastChangeValue=void 0;return}r._lastChangeValue=c,(l=(s=r.props).onChange)===null||l===void 0||l.call(s,a,c),r._isControlled||r.setState({uncontrolledValue:c})},mo(r),r._async=new hl(r),r._fallbackId=Rn(pa),r._descriptionId=Rn(pa+"Description"),r._labelId=Rn(pa+"Label"),r._prefixId=Rn(pa+"Prefix"),r._suffixId=Rn(pa+"Suffix"),r._warnControlledUsage();var i=n.defaultValue,o=i===void 0?aN: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 Gh(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=Gh(n,r),d=this.value;c!==d&&(this._warnControlledUsage(n),this.state.errorMessage&&!o.errorMessage&&this.setState({errorMessage:""}),this._adjustInputHeight(),h5(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,y=n.theme,m=n.styles,T=n.autoAdjustHeight,_=n.canRevealPassword,C=n.revealPasswordAriaLabel,F=n.type,A=n.onRenderPrefix,S=A===void 0?this._onRenderPrefix:A,D=n.onRenderSuffix,M=D===void 0?this._onRenderSuffix:D,I=n.onRenderLabel,L=I===void 0?this._onRenderLabel:I,O=n.onRenderDescription,X=O===void 0?this._onRenderDescription:O,H=this.state,U=H.isFocused,K=H.isRevealingPassword,ne=this._errorMessage,P=typeof a=="boolean"?a:!!ne,W=!!_&&F==="password"&&cN(),V=this._classNames=oN(m,{theme:y,className:i,disabled:o,focused:U,required:d,multiline:c,hasLabel:!!u,hasErrorMessage:P,borderless:r,resizable:h,hasIcon:!!s,underlined:f,inputClassName:l,autoAdjustHeight:T,hasRevealButton:W});return E.createElement("div",{ref:this.props.elementRef,className:V.root},E.createElement("div",{className:V.wrapper},L(this.props,this._onRenderLabel),E.createElement("div",{className:V.fieldGroup},(p!==void 0||this.props.onRenderPrefix)&&E.createElement("div",{className:V.prefix,id:this._prefixId},S(this.props,this._onRenderPrefix)),c?this._renderTextArea():this._renderInput(),s&&E.createElement(Mi,x({className:V.icon},s)),W&&E.createElement("button",{"aria-label":C,className:V.revealButton,onClick:this._onRevealButtonClick,"aria-pressed":!!K,type:"button"},E.createElement("span",{className:V.revealSpan},E.createElement(Mi,{className:V.revealIcon,iconName:K?lN:sN}))),(v!==void 0||this.props.onRenderSuffix)&&E.createElement("div",{className:V.suffix,id:this._suffixId},M(this.props,this._onRenderSuffix)))),this._isDescriptionAvailable&&E.createElement("span",{id:this._descriptionId},X(this.props,this._onRenderDescription),ne&&E.createElement("div",{role:"alert"},E.createElement(G4,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,ig("Warning: 'value' prop on '"+pa+"' 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 Cb(this.props,"value")},enumerable:!1,configurable:!0}),t.prototype._onRenderPrefix=function(n){var r=n.prefix;return E.createElement("span",{style:{paddingBottom:"1px"}},r)},t.prototype._onRenderSuffix=function(n){var r=n.suffix;return E.createElement("span",{style:{paddingBottom:"1px"}},r)},Object.defineProperty(t.prototype,"_errorMessage",{get:function(){var n=this.props.errorMessage,r=n===void 0?this.state.errorMessage:n;return r||""},enumerable:!1,configurable:!0}),t.prototype._renderErrorMessage=function(){var n=this._errorMessage;return n?typeof n=="string"?E.createElement("p",{className:this._classNames.errorMessage},E.createElement("span",{"data-automation-id":"error-message"},n)):E.createElement("div",{className:this._classNames.errorMessage,"data-automation-id":"error-message"},n):null},Object.defineProperty(t.prototype,"_isDescriptionAvailable",{get:function(){var n=this.props;return!!(n.onRenderDescription||n.description||this._errorMessage)},enumerable:!1,configurable:!0}),t.prototype._renderTextArea=function(){var n=this.props.invalid,r=n===void 0?!!this._errorMessage:n,i=Tt(this.props,Ub,["defaultValue"]),o=this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0);return E.createElement("textarea",x({id:this._id},i,{ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-labelledby":o,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":r,"aria-label":this.props.ariaLabel,readOnly:this.props.readOnly,onFocus:this._onFocus,onBlur:this._onBlur}))},t.prototype._renderInput=function(){var n=this.props,r=n.ariaLabel,i=n.invalid,o=i===void 0?!!this._errorMessage:i,a=n.onRenderPrefix,s=n.onRenderSuffix,l=n.prefix,u=n.suffix,c=n.type,d=c===void 0?"text":c,f=n.label,p=[];f&&p.push(this._labelId),(l!==void 0||a)&&p.push(this._prefixId),(u!==void 0||s)&&p.push(this._suffixId);var h=x(x({type:this.state.isRevealingPassword?"text":d,id:this._id},Tt(this.props,Hb,["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(m){return E.createElement("input",x({},m))},y=this.props.onRenderInput||v;return y(h,v)},t.prototype._validate=function(n){var r=this;if(!(this._latestValidateValue===n&&h5(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 Gh(e,t){var n=e.value,r=n===void 0?t.uncontrolledValue:n;return typeof r=="number"?String(r):r}function h5(e){return!(e.validateOnFocusIn||e.validateOnFocusOut)}var lc;function cN(){if(typeof lc!="boolean"){var e=Et();if(e!=null&&e.navigator){var t=/Edg/.test(e.navigator.userAgent||"");lc=!(rk()||t)}else lc=!0}return lc}var dN={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 fN(e){var t=e.underlined,n=e.disabled,r=e.focused,i=e.theme,o=i.palette,a=i.fonts;return function(){var s;return{root:[t&&n&&{color:o.neutralTertiary},t&&{fontSize:a.medium.fontSize,marginRight:8,paddingLeft:12,paddingRight:0,lineHeight:"22px",height:32},t&&r&&{selectors:(s={},s[re]={height:31},s)}]}}}function hN(e){var t,n,r,i,o,a,s,l,u,c,d,f,p=e.theme,h=e.className,v=e.disabled,y=e.focused,m=e.required,T=e.multiline,_=e.hasLabel,C=e.borderless,F=e.underlined,A=e.hasIcon,S=e.resizable,D=e.hasErrorMessage,M=e.inputClassName,I=e.autoAdjustHeight,L=e.hasRevealButton,O=p.semanticColors,X=p.effects,H=p.fonts,U=mn(dN,p),K={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[re]={background:"Window",color:v?"GrayText":"WindowText"},t)},ne=[{color:O.inputPlaceholderText,opacity:1,selectors:(n={},n[re]={color:"GrayText"},n)}],P={color:O.disabledText,selectors:(r={},r[re]={color:"GrayText"},r)};return{root:[U.root,H.medium,m&&U.required,v&&U.disabled,y&&U.active,T&&U.multiline,C&&U.borderless,F&&U.underlined,Rh,{position:"relative"},h],wrapper:[U.wrapper,F&&[{display:"flex",borderBottom:"1px solid "+(D?O.errorText:O.inputBorder),width:"100%"},v&&{borderBottomColor:O.disabledBackground,selectors:(i={},i[re]=x({borderColor:"GrayText"},Kt()),i)},!v&&{selectors:{":hover":{borderBottomColor:D?O.errorText:O.inputBorderHovered,selectors:(o={},o[re]=x({borderBottomColor:"Highlight"},Kt()),o)}}},y&&[{position:"relative"},jE(D?O.errorText:O.inputFocusBorderAlt,0,"borderBottom")]]],fieldGroup:[U.fieldGroup,Rh,{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"},!y&&!v&&{selectors:{":hover":{borderColor:O.inputBorderHovered,selectors:(a={},a[re]=x({borderColor:"Highlight"},Kt()),a)}}},y&&!F&&jE(D?O.errorText:O.inputFocusBorderAlt,X.roundedCorner2),v&&{borderColor:O.disabledBackground,selectors:(s={},s[re]=x({borderColor:"GrayText"},Kt()),s),cursor:"default"},C&&{border:"none"},C&&y&&{border:"none",selectors:{":after":{border:"none"}}},F&&{flex:"1 1 0px",border:"none",textAlign:"left"},F&&v&&{backgroundColor:"transparent"},D&&!F&&{borderColor:O.errorText,selectors:{"&:hover":{borderColor:O.errorText}}},!_&&m&&{selectors:(l={":before":{content:"'*'",color:O.errorText,position:"absolute",top:-5,right:-10}},l[re]={selectors:{":before":{color:"WindowText",right:-14}}},l)}],field:[H.medium,U.field,Rh,{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[re]={background:"Window",color:v?"GrayText":"WindowText"},u)},YE(ne),T&&!S&&[U.unresizable,{resize:"none"}],T&&{minHeight:"inherit",lineHeight:17,flexGrow:1,paddingTop:6,paddingBottom:6,overflow:"auto",width:"100%"},T&&I&&{overflow:"hidden"},A&&!L&&{paddingRight:24},T&&A&&{paddingRight:40},v&&[{backgroundColor:O.disabledBackground,color:O.disabledText,borderColor:O.disabledBackground},YE(P)],F&&{textAlign:"left"},y&&!C&&{selectors:(c={},c[re]={paddingLeft:11,paddingRight:11},c)},y&&T&&!C&&{selectors:(d={},d[re]={paddingTop:4},d)},M],icon:[T&&{paddingRight:24,alignItems:"flex-end"},{pointerEvents:"none",position:"absolute",bottom:6,right:8,top:"auto",fontSize:ri.medium,lineHeight:18},v&&{color:O.disabledText}],description:[U.description,{color:O.bodySubtext,fontSize:H.xSmall.fontSize}],errorMessage:[U.errorMessage,Ms.slideDownIn20,H.small,{color:O.errorText,margin:0,paddingTop:5,display:"flex",alignItems:"center"}],prefix:[U.prefix,K],suffix:[U.suffix,K],revealButton:[U.revealButton,"ms-Button","ms-Button--icon",Zo(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[re]={borderColor:"Highlight",color:"Highlight"},f)},":focus":{outline:0}}},A&&{marginRight:28}],revealSpan:{display:"flex",height:"100%",alignItems:"center"},revealIcon:{margin:"0px 4px",pointerEvents:"none",bottom:6,right:8,top:"auto",fontSize:ri.medium,lineHeight:18},subComponentStyles:{label:fN(e)}}}var yg=an(uN,hN,void 0,{scope:"TextField"}),Bl={auto:0,top:1,bottom:2,center:3},mN=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},m5=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)},uc=function(e,t){"scrollTop"in e?e.scrollTop=t:"scrollY"in e&&e.scrollTo(e.scrollX,t)},pN=16,gN=100,EN=500,vN=200,TN=500,p5=10,_N=30,yN=2,CN=2,SN="page-",g5="spacer-",E5={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},Z2=function(e){return e.getBoundingClientRect()},AN=Z2,bN=Z2,kN=function(e){rt(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)&&pf()?(r._resetRequiredWindows(),r._requiredRect=null,r._measureVersion++,r._invalidatePageCache(),r._updatePages(i,o)):o},r._onRenderRoot=function(i){var o=i.rootRef,a=i.surfaceElement,s=i.divProps;return E.createElement("div",x({ref:o},s),a)},r._onRenderSurface=function(i){var o=i.surfaceRef,a=i.pageElements,s=i.divProps;return E.createElement("div",x({ref:o},s),a)},r._onRenderPage=function(i,o){for(var a,s=r.props,l=s.onRenderCell,u=s.onRenderCellConditional,c=s.role,d=i.page,f=d.items,p=f===void 0?[]:f,h=d.startIndex,v=Pi(i,["page"]),y=c===void 0?"listitem":"presentation",m=[],T=0;Tn;if(h){if(r&&this._scrollElement){for(var v=bN(this._scrollElement),y=m5(this._scrollElement),m={top:y,bottom:y+v.height},T=n-d,_=0;_=m.top&&C<=m.bottom;if(F)return;var A=um.bottom;A||S&&(u=C-v.height)}this._scrollElement&&uc(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 x(x({},r?r(n):{}),n.items?{}:{height:n.height})},t.prototype._onFocus=function(n){for(var r=n.target;r!==this._surface.current;){var i=r.getAttribute("data-list-index");if(i){this._focusedIndex=Number(i);break}r=ti(r)}},t.prototype._onScroll=function(){!this.state.isScrolling&&!this.props.ignoreScrollingState&&this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDone()},t.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},t.prototype._onAsyncScroll=function(){this._updateRenderRects(this.props,this.state),(!this._materializedRect||!IN(this._requiredRect,this._materializedRect))&&this.setState(this._updatePages(this.props,this.state))},t.prototype._onAsyncIdle=function(){var n=this.props,r=n.renderedWindowsAhead,i=n.renderedWindowsBehind,o=this,a=o._requiredWindowsAhead,s=o._requiredWindowsBehind,l=Math.min(r,a+1),u=Math.min(i,s+1);(l!==a||u!==s)&&(this._requiredWindowsAhead=l,this._requiredWindowsBehind=u,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(r>l||i>u)&&this._onAsyncIdle()},t.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},t.prototype._onAsyncResize=function(){this.forceUpdate()},t.prototype._updatePages=function(n,r){this._requiredRect||this._updateRenderRects(n,r);var i=this._buildPages(n,r),o=r.pages;return this._notifyPageChanges(o,i.pages,this.props),x(x(x({},r),i),{pagesVersion:{}})},t.prototype._notifyPageChanges=function(n,r,i){var o=i.onPageAdded,a=i.onPageRemoved;if(o||a){for(var s={},l=0,u=n;l-1,X=!m||L>=m.top&&d<=m.bottom,H=!_._requiredRect||L>=_._requiredRect.top&&d<=_._requiredRect.bottom,U=!y&&(H||X&&O)||!v,K=p>=A&&p=_._visibleRect.top&&d<=_._visibleRect.bottom),u.push(W),H&&_._allowedRect&&FN(l,{top:d,bottom:L,height:D,left:m.left,right:m.right,width:m.width})}else f||(f=_._createPage(g5+A,void 0,A,0,void 0,M,!0)),f.height=(f.height||0)+(L-d)+1,f.itemCount+=c;if(d+=L-d+1,y&&v)return"break"},_=this,C=a;Cthis._estimatedPageHeight/3)&&(l=this._surfaceRect=AN(this._surface.current),this._scrollTop=c),(i||!u||u!==this._scrollHeight)&&this._measureVersion++,this._scrollHeight=u||0;var d=Math.max(0,-l.top),f=Et(this._root.current),p={top:d,left:l.left,bottom:d+f.innerHeight,right:l.right,width:l.width,height:f.innerHeight};this._requiredRect=v5(p,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=v5(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:CN,renderedWindowsBehind:yN},t}(E.Component);function v5(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 IN(e,t){return e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right}function FN(e,t){return e.top=t.tope.bottom||e.bottom===-1?t.bottom:e.bottom,e.right=t.right>e.right||e.right===-1?t.right:e.right,e.width=e.right-e.left+1,e.height=e.bottom-e.top+1,e}var ii;(function(e){e[e.xSmall=0]="xSmall",e[e.small=1]="small",e[e.medium=2]="medium",e[e.large=3]="large"})(ii||(ii={}));var B0;(function(e){e[e.normal=0]="normal",e[e.large=1]="large"})(B0||(B0={}));var xN=on(),NN=function(e){rt(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=Tt(this.props,ho,["size"]),h=i;h===void 0&&r!==void 0&&(h=r===B0.large?ii.large:ii.medium);var v=xN(s,{theme:u,size:h,className:c,labelPosition:d});return E.createElement("div",x({},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(G4,null,E.createElement("div",{className:v.screenReaderText},f))))},t.defaultProps={size:ii.medium,ariaLive:"polite",labelPosition:"bottom"},t}(E.Component),DN={root:"ms-Spinner",circle:"ms-Spinner-circle",label:"ms-Spinner-label"},wN=xt(function(){return Cr({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}})}),RN=function(e){var t,n=e.theme,r=e.size,i=e.className,o=e.labelPosition,a=n.palette,s=mn(DN,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:wN(),animationDuration:"1.3s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.53,.21,.29,.67)",selectors:(t={},t[re]=x({borderTopColor:"Highlight"},Kt()),t)},r===ii.xSmall&&["ms-Spinner--xSmall",{width:12,height:12}],r===ii.small&&["ms-Spinner--small",{width:16,height:16}],r===ii.medium&&["ms-Spinner--medium",{width:20,height:20}],r===ii.large&&["ms-Spinner--large",{width:28,height:28}]],label:[s.label,n.fonts.small,{color:a.themePrimary,margin:"8px 0 0",textAlign:"center"},o==="top"&&{margin:"0 0 8px"},o==="right"&&{margin:"0 0 0 8px"},o==="left"&&{margin:"0 8px 0 0"}],screenReaderText:lg}},J2=an(NN,RN,void 0,{scope:"Spinner"}),xi;(function(e){e[e.normal=0]="normal",e[e.largeHeader=1]="largeHeader",e[e.close=2]="close"})(xi||(xi={}));var eC=Gk.durationValue2,ON={root:"ms-Modal",main:"ms-Dialog-main",scrollableContent:"ms-Modal-scrollableContent",isOpen:"is-open",layer:"ms-Modal-Layer"},MN=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,y=u.effects,m=u.fonts,T=mn(ON,u);return{root:[T.root,m.medium,{backgroundColor:"transparent",position:"fixed",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,pointerEvents:"none",transition:"opacity "+eC},c&&typeof l=="number"&&s&&{alignItems:"flex-start"},o&&T.isOpen,a&&{opacity:1},a&&!d&&{pointerEvents:"auto"},n],main:[T.main,{boxShadow:y.elevation64,borderRadius:y.roundedCorner2,backgroundColor:v.white,boxSizing:"border-box",position:"relative",textAlign:"left",outline:"3px solid transparent",maxHeight:"calc(100% - 32px)",maxWidth:"calc(100% - 32px)",minHeight:"176px",minWidth:"288px",overflowY:"auto",zIndex:d?il.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:m.xLargePlus.fontSize,width:"24px"}}},PN=on(),LN=function(e){rt(t,e);function t(n){var r=e.call(this,n)||this;mo(r);var i=r.props.allowTouchBodyScroll,o=i===void 0?!1:i;return r._allowTouchBodyScroll=o,r}return t.prototype.componentDidMount=function(){!this._allowTouchBodyScroll&&L7()},t.prototype.componentWillUnmount=function(){!this._allowTouchBodyScroll&&B7()},t.prototype.render=function(){var n=this.props,r=n.isDarkThemed,i=n.className,o=n.theme,a=n.styles,s=Tt(this.props,ho),l=PN(a,{theme:o,className:i,isDark:r});return E.createElement("div",x({},s,{className:l.root}))},t}(E.Component),BN={root:"ms-Overlay",rootDark:"ms-Overlay--dark"},HN=function(e){var t,n=e.className,r=e.theme,i=e.isNone,o=e.isDark,a=r.palette,s=mn(BN,r);return{root:[s.root,r.fonts.medium,{backgroundColor:a.whiteTranslucent40,top:0,right:0,bottom:0,left:0,position:"absolute",selectors:(t={},t[re]={border:"1px solid WindowText",opacity:0},t)},i&&{visibility:"hidden"},o&&[s.rootDark,{backgroundColor:a.blackTranslucent40}],n]}},UN=an(LN,HN,void 0,{scope:"Overlay"}),zN=xt(function(e,t){return{root:bi(e,t&&{touchAction:"none",selectors:{"& *":{userSelect:"none"}}})}}),Hl={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},GN=function(e){rt(t,e);function t(n){var r=e.call(this,n)||this;return r._currentEventType=Hl.mouse,r._events=[],r._onMouseDown=function(i){var o=E.Children.only(r.props.children).props.onMouseDown;return o&&o(i),r._currentEventType=Hl.mouse,r._onDragStart(i)},r._onMouseUp=function(i){var o=E.Children.only(r.props.children).props.onMouseUp;return o&&o(i),r._currentEventType=Hl.mouse,r._onDragStop(i)},r._onTouchStart=function(i){var o=E.Children.only(r.props.children).props.onTouchStart;return o&&o(i),r._currentEventType=Hl.touch,r._onDragStart(i)},r._onTouchEnd=function(i){var o=E.Children.only(r.props.children).props.onTouchEnd;o&&o(i),r._currentEventType=Hl.touch,r._onDragStop(i)},r._onDragStart=function(i){if(typeof i.button=="number"&&i.button!==0)return!1;if(!(r.props.handleSelector&&!r._matchesSelector(i.target,r.props.handleSelector)||r.props.preventDragSelector&&r._matchesSelector(i.target,r.props.preventDragSelector))){r._touchId=r._getTouchId(i);var o=r._getControlPosition(i);if(o!==void 0){var a=r._createDragDataFromPosition(o);r.props.onStart&&r.props.onStart(i,a),r.setState({isDragging:!0,lastPosition:o}),r._events=[ki(document.body,r._currentEventType.move,r._onDrag,!0),ki(document.body,r._currentEventType.stop,r._onDragStop,!0)]}}},r._onDrag=function(i){i.type==="touchmove"&&i.preventDefault();var o=r._getControlPosition(i);if(o){var a=r._createUpdatedDragData(r._createDragDataFromPosition(o)),s=a.position;r.props.onDragChange&&r.props.onDragChange(i,a),r.setState({position:s,lastPosition:o})}},r._onDragStop=function(i){if(r.state.isDragging){var o=r._getControlPosition(i);if(o){var a=r._createDragDataFromPosition(o);r.setState({isDragging:!1,lastPosition:void 0}),r.props.onStop&&r.props.onStop(i,a),r.props.position&&r.setState({position:r.props.position}),r._events.forEach(function(s){return s()})}}},r.state={isDragging:!1,position:r.props.position||{x:0,y:0},lastPosition:void 0},r}return t.prototype.componentDidUpdate=function(n){this.props.position&&(!n.position||this.props.position!==n.position)&&this.setState({position:this.props.position})},t.prototype.componentWillUnmount=function(){this._events.forEach(function(n){return n()})},t.prototype.render=function(){var n=E.Children.only(this.props.children),r=n.props,i=this.props.position,o=this.state,a=o.position,s=o.isDragging,l=a.x,u=a.y;return i&&!s&&(l=i.x,u=i.y),E.cloneElement(n,{style:x(x({},r.style),{transform:"translate("+l+"px, "+u+"px)"}),className:zN(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=(K||Ka.small)&&E.createElement(F2,x({ref:Ue},ke),E.createElement(hg,x({role:Oe?"alertdialog":"dialog",ariaLabelledBy:L,ariaDescribedBy:X,onDismiss:S,shouldRestoreFocus:!T,enableAriaHiddenSiblings:b,"aria-modal":!P},k),E.createElement("div",{className:ze.root,role:P?void 0:"document"},!P&&E.createElement(UN,x({"aria-hidden":!0,isDarkThemed:A,onClick:_?void 0:S,allowTouchBodyScroll:l},M)),W?E.createElement(GN,{handleSelector:W.dragHandleSelector||"#"+_t,preventDragSelector:"button",onStart:ar,onDragChange:sa,onStop:la,position:Ee},ca):ca)))||null});tC.displayName="Modal";var nC=an(tC,MN,void 0,{scope:"Modal",fields:["theme","styles","enableAriaHiddenSiblings"]});nC.displayName="Modal";var VN=on(),YN=function(e){rt(t,e);function t(n){var r=e.call(this,n)||this;return mo(r),r}return t.prototype.render=function(){var n=this.props,r=n.className,i=n.styles,o=n.theme;return this._classNames=VN(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),qN={actions:"ms-Dialog-actions",action:"ms-Dialog-action",actionsRight:"ms-Dialog-actionsRight"},QN=function(e){var t=e.className,n=e.theme,r=mn(qN,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"}]}},Cg=an(YN,QN,void 0,{scope:"DialogFooter"}),XN=on(),ZN=E.createElement(Cg,null).type,JN=function(e){rt(t,e);function t(n){var r=e.call(this,n)||this;return mo(r),r}return t.prototype.render=function(){var n=this.props,r=n.showCloseButton,i=n.className,o=n.closeButtonAriaLabel,a=n.onDismiss,s=n.subTextId,l=n.subText,u=n.titleProps,c=u===void 0?{}:u,d=n.titleId,f=n.title,p=n.type,h=n.styles,v=n.theme,y=n.draggableHeaderClassName,m=XN(h,{theme:v,className:i,isLargeHeader:p===xi.largeHeader,isClose:p===xi.close,draggableHeaderClassName:y}),T=this._groupChildren(),_;return l&&(_=E.createElement("p",{className:m.subText,id:s},l)),E.createElement("div",{className:m.content},E.createElement("div",{className:m.header},E.createElement("div",x({id:d,role:"heading","aria-level":1},c,{className:Pn(m.title,c.className)}),f),E.createElement("div",{className:m.topButton},this.props.topButtonsProps.map(function(C,F){return E.createElement(wa,x({key:C.uniqueId||F},C))}),(p===xi.close||r&&p!==xi.largeHeader)&&E.createElement(wa,{className:m.button,iconProps:{iconName:"Cancel"},ariaLabel:o,onClick:a}))),E.createElement("div",{className:m.inner},E.createElement("div",{className:m.innerContent},_,T.contents),T.footers))},t.prototype._groupChildren=function(){var n={footers:[],contents:[]};return E.Children.map(this.props.children,function(r){typeof r=="object"&&r!==null&&r.type===ZN?n.footers.push(r):n.contents.push(r)}),n},t.defaultProps={showCloseButton:!1,className:"",topButtonsProps:[],closeButtonAriaLabel:"Close"},t=fl([B2],t),t}(E.Component),eD={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"},tD=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=mn(eD,o);return{content:[a&&[v.contentLgHeader,{borderTop:"4px solid "+d.themePrimary}],s&&v.close,{flexGrow:1,overflowY:"hidden"},i],subText:[v.subText,f.medium,{margin:"0 0 24px 0",color:h.bodySubtext,lineHeight:"1.5",wordWrap:"break-word",fontWeight:at.regular}],header:[v.header,{position:"relative",width:"100%",boxSizing:"border-box"},s&&v.close,c&&[c,{cursor:"move"}]],button:[v.button,l&&{selectors:{".ms-Icon.ms-Icon--Cancel":{color:h.buttonText,fontSize:ri.medium}}}],inner:[v.inner,{padding:"0 24px 24px",selectors:(t={},t["@media (min-width: "+Dh+"px) and (max-width: "+wh+"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: "+Dh+"px) and (max-width: "+wh+"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: "+Dh+"px) and (max-width: "+wh+"px)"]={padding:"15px 8px 0 0"},r)}]}},nD=an(JN,tD,void 0,{scope:"DialogContent"}),rD=on(),iD={isDarkOverlay:!1,isBlocking:!1,className:"",containerClassName:"",topOffsetFixed:!1,enableAriaHiddenSiblings:!0},oD={type:xi.normal,className:"",topButtonsProps:[]},aD=function(e){rt(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=Rn("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,y=o.isBlocking,m=o.isClickableOutsideFocusTrap,T=o.isDarkOverlay,_=o.isOpen,C=_===void 0?!p:_,F=o.onDismiss,A=o.onDismissed,S=o.onLayerDidMount,D=o.responsiveMode,M=o.subText,I=o.theme,L=o.title,O=o.topButtonsProps,X=o.type,H=o.minWidth,U=o.maxWidth,K=o.modalProps,ne=x({onLayerDidMount:S},K==null?void 0:K.layerProps),P,W;K!=null&&K.dragOptions&&!(!((n=K.dragOptions)===null||n===void 0)&&n.dragHandleSelector)&&(W=x({},K.dragOptions),P="ms-Dialog-draggable-header",W.dragHandleSelector="."+P);var V=x(x(x(x({},iD),{elementToFocusOnDismiss:u,firstFocusableSelector:c,forceFocusInsideTrap:d,disableRestoreFocus:v,isClickableOutsideFocusTrap:m,responsiveMode:D,className:a,containerClassName:s,isBlocking:y,isDarkOverlay:T,onDismissed:A}),K),{dragOptions:W,layerProps:ne,isOpen:C}),b=x(x(x({className:l,subText:M,title:L,topButtonsProps:O,type:X},oD),o.dialogContentProps),{draggableHeaderClassName:P,titleProps:x({id:((r=o.dialogContentProps)===null||r===void 0?void 0:r.titleId)||this._defaultTitleTextId},(i=o.dialogContentProps)===null||i===void 0?void 0:i.titleProps)}),k=rD(f,{theme:I,className:V.className,containerClassName:V.containerClassName,hidden:p,dialogDefaultMinWidth:H,dialogDefaultMaxWidth:U});return E.createElement(nC,x({},V,{className:k.root,containerClassName:k.main,onDismiss:F||V.onDismiss,subtitleAriaId:this._getSubTextId(),titleAriaId:this._getTitleTextId()}),E.createElement(nD,x({subTextId:this._defaultSubTextId,showCloseButton:V.isBlocking,onDismiss:F},b),o.children))},t.defaultProps={hidden:!0},t=fl([B2],t),t}(E.Component),sD={root:"ms-Dialog"},lD=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=mn(sD,u);return{root:[c.root,u.fonts.medium,n],main:[{width:o,outline:"3px solid transparent",selectors:(t={},t["@media (min-width: "+d2+"px)"]={width:"auto",maxWidth:s,minWidth:o},t)},!l&&{display:"flex"},r]}},gl=an(aD,lD,void 0,{scope:"Dialog"});gl.displayName="Dialog";function uD(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:""}};$t(n,t)}function cD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-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:""}};$t(n,t)}function dD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-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:""}};$t(n,t)}function fD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-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:""}};$t(n,t)}function hD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-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:""}};$t(n,t)}function mD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-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:""}};$t(n,t)}function pD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-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:""}};$t(n,t)}function gD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-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:""}};$t(n,t)}function ED(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-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:""}};$t(n,t)}function vD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-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:""}};$t(n,t)}function TD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-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:""}};$t(n,t)}function _D(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-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:""}};$t(n,t)}function yD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-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:""}};$t(n,t)}function CD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-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:""}};$t(n,t)}function SD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-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:""}};$t(n,t)}function AD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-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:""}};$t(n,t)}function bD(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:""}};$t(n,t)}function kD(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:""}};$t(n,t)}function ID(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:""}};$t(n,t)}var FD=function(){ma("trash","delete"),ma("onedrive","onedrivelogo"),ma("alertsolid12","eventdatemissed12"),ma("sixpointstar","6pointstar"),ma("twelvepointstar","12pointstar"),ma("toggleon","toggleleft"),ma("toggleoff","toggleright")};eg("@fluentui/font-icons-mdl2","8.5.8");var xD="https://spoppe-b.azureedge.net/files/fabric-cdn-prod_20210407.001/assets/icons/",cs=Et();function ND(e,t){var n,r;e===void 0&&(e=((n=cs==null?void 0:cs.FabricConfig)===null||n===void 0?void 0:n.iconBaseUrl)||((r=cs==null?void 0:cs.FabricConfig)===null||r===void 0?void 0:r.fontBaseUrl)||xD),[uD,cD,dD,fD,hD,mD,pD,gD,ED,vD,TD,_D,yD,CD,SD,AD,bD,kD,ID].forEach(function(i){return i(e,t)}),FD()}var DD=on(),wD=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=DD(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))}),RD=function(e){var t,n,r=e.theme,i=e.alignContent,o=e.vertical,a=e.className,s=i==="start",l=i==="center",u=i==="end";return{root:[r.fonts.medium,{position:"relative"},i&&{textAlign:i},!i&&{textAlign:"center"},o&&(l||!i)&&{verticalAlign:"middle"},o&&s&&{verticalAlign:"top"},o&&u&&{verticalAlign:"bottom"},o&&{padding:"0 4px",height:"inherit",display:"table-cell",zIndex:1,selectors:{":after":(t={backgroundColor:r.palette.neutralLighter,width:"1px",content:'""',position:"absolute",top:"0",bottom:"0",left:"50%",right:"0",zIndex:-1},t[re]={backgroundColor:"WindowText"},t)}},!o&&{padding:"4px 0",selectors:{":before":(n={backgroundColor:r.palette.neutralLighter,height:"1px",content:'""',display:"block",position:"absolute",top:"50%",bottom:"0",left:"0",right:"0"},n[re]={backgroundColor:"WindowText"},n)}},a],content:[{position:"relative",display:"inline-block",padding:"0 12px",color:r.semanticColors.bodyText,background:r.semanticColors.bodyBackground},o&&{padding:"12px 0"}]}},rC=an(wD,RD,void 0,{scope:"Separator"});rC.displayName="Separator";var Sg=x;function Eu(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 LD(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 MD(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 PD(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:Wh($s(n[0],t)),columnGap:Wh($s(n[1],t))};var r=Wh($s(e,t));return{rowGap:r,columnGap:r}},T5=function(e,t){if(e===void 0||typeof e=="number"||e==="")return e;var n=e.split(" ");return n.length<2?$s(e,t):n.reduce(function(r,i){return $s(r,t)+" "+$s(i,t)})},ds={start:"flex-start",end:"flex-end"},H0={root:"ms-Stack",inner:"ms-Stack-inner",child:"ms-Stack-child"},KD=function(e,t,n){var r,i,o,a,s,l,u,c,d,f,p,h,v,y=e.className,m=e.disableShrink,T=e.enableScopedSelectors,_=e.grow,C=e.horizontal,F=e.horizontalAlign,A=e.reversed,S=e.verticalAlign,D=e.verticalFill,M=e.wrap,I=mn(H0,t),L=n&&n.childrenGap?n.childrenGap:e.gap,O=n&&n.maxHeight?n.maxHeight:e.maxHeight,X=n&&n.maxWidth?n.maxWidth:e.maxWidth,H=n&&n.padding?n.padding:e.padding,U=WD(L,t),K=U.rowGap,ne=U.columnGap,P=""+-.5*ne.value+ne.unit,W=""+-.5*K.value+K.unit,V={textOverflow:"ellipsis"},b="> "+(T?"."+H0.child:"*"),k=(r={},r[b+":not(."+aC.root+")"]={flexShrink:0},r);return M?{root:[I.root,{flexWrap:"wrap",maxWidth:X,maxHeight:O,width:"auto",overflow:"visible",height:"100%"},F&&(i={},i[C?"justifyContent":"alignItems"]=ds[F]||F,i),S&&(o={},o[C?"alignItems":"justifyContent"]=ds[S]||S,o),y,{display:"flex"},C&&{height:D?"100%":"auto"}],inner:[I.inner,(a={display:"flex",flexWrap:"wrap",marginLeft:P,marginRight:P,marginTop:W,marginBottom:W,overflow:"visible",boxSizing:"border-box",padding:T5(H,t),width:ne.value===0?"100%":"calc(100% + "+ne.value+ne.unit+")",maxWidth:"100vw"},a[b]=x({margin:""+.5*K.value+K.unit+" "+.5*ne.value+ne.unit},V),a),m&&k,F&&(s={},s[C?"justifyContent":"alignItems"]=ds[F]||F,s),S&&(l={},l[C?"alignItems":"justifyContent"]=ds[S]||S,l),C&&(u={flexDirection:A?"row-reverse":"row",height:K.value===0?"100%":"calc(100% + "+K.value+K.unit+")"},u[b]={maxWidth:ne.value===0?"100%":"calc(100% - "+ne.value+ne.unit+")"},u),!C&&(c={flexDirection:A?"column-reverse":"column",height:"calc(100% + "+K.value+K.unit+")"},c[b]={maxHeight:K.value===0?"100%":"calc(100% - "+K.value+K.unit+")"},c)]}:{root:[I.root,(d={display:"flex",flexDirection:C?A?"row-reverse":"row":A?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:D?"100%":"auto",maxWidth:X,maxHeight:O,padding:T5(H,t),boxSizing:"border-box"},d[b]=V,d),m&&k,_&&{flexGrow:_===!0?1:_},F&&(f={},f[C?"justifyContent":"alignItems"]=ds[F]||F,f),S&&(p={},p[C?"alignItems":"justifyContent"]=ds[S]||S,p),C&&ne.value>0&&(h={},h[A?b+":not(:last-child)":b+":not(:first-child)"]={marginLeft:""+ne.value+ne.unit},h),!C&&K.value>0&&(v={},v[A?b+":not(:last-child)":b+":not(:first-child)"]={marginTop:""+K.value+K.unit},v),y]}},jD=function(e){var t=e.as,n=t===void 0?"div":t,r=e.disableShrink,i=r===void 0?!1:r,o=e.enableScopedSelectors,a=o===void 0?!1:o,s=e.wrap,l=Pi(e,["as","disableShrink","enableScopedSelectors","wrap"]),u=sC(e.children,{disableShrink:i,enableScopedSelectors:a}),c=Tt(l,Nt),d=Ag(e,{root:n,inner:"div"});return s?Eu(d.root,x({},c),Eu(d.inner,null,u)):Eu(d.root,x({},c),u)};function sC(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?sC(o.props.children,{disableShrink:n,enableScopedSelectors:r}):null;var a=o,s={};$D(o)&&(s={shrink:!n});var l=a.props.className;return E.cloneElement(a,x(x(x(x({},s),a.props),l&&{className:l}),r&&{className:Pn(H0.child,l)}))}),i}function $D(e){return!!e&&typeof e=="object"&&!!e.type&&e.type.displayName===Mo.displayName}var VD={Item:Mo},ge=bg(jD,{displayName:"Stack",styles:KD,statics:VD}),YD=function(e){if(e.children==null)return null;e.block,e.className;var t=e.as,n=t===void 0?"span":t;e.variant,e.nowrap;var r=Pi(e,["block","className","as","variant","nowrap"]),i=Ag(e,{root:n});return Eu(i.root,x({},Tt(r,Nt)))},qD=function(e,t){var n=e.as,r=e.className,i=e.block,o=e.nowrap,a=e.variant,s=t.fonts,l=t.semanticColors,u=s[a||"medium"];return{root:[u,{color:u.color||l.bodyText,display:i?n==="td"?"table-cell":"block":"inline",mozOsxFontSmoothing:u.MozOsxFontSmoothing,webkitFontSmoothing:u.WebkitFontSmoothing},o&&{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},r]}},Ho=bg(YD,{displayName:"Text",styles:qD});const QD="_layout_19t1l_1",XD="_header_19t1l_7",ZD="_headerContainer_19t1l_11",JD="_headerTitleContainer_19t1l_17",ew="_headerTitle_19t1l_17",tw="_headerIcon_19t1l_34",nw="_shareButtonContainer_19t1l_40",rw="_shareButton_19t1l_40",iw="_shareButtonText_19t1l_63",ow="_urlTextBox_19t1l_73",aw="_copyButtonContainer_19t1l_83",sw="_copyButton_19t1l_83",lw="_copyButtonText_19t1l_105",Gi={layout:QD,header:XD,headerContainer:ZD,headerTitleContainer:JD,headerTitle:ew,headerIcon:tw,shareButtonContainer:nw,shareButton:rw,shareButtonText:iw,urlTextBox:ow,copyButtonContainer:aw,copyButton:sw,copyButtonText:lw},lC="/assets/Contoso-ff70ad88.svg",Kh=typeof window>"u"?global:window,jh="@griffel/";function uw(e,t){return Kh[Symbol.for(jh+e)]||(Kh[Symbol.for(jh+e)]=t),Kh[Symbol.for(jh+e)]}const U0=uw("DEFINITION_LOOKUP_TABLE",{}),Vc="data-make-styles-bucket",z0=7,kg="___",cw=kg.length+z0,dw=0,fw=1;function hw(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 mw(e){const t=e.length;if(t===z0)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=y5[n];if(i!==void 0)return t+i;const o=[];for(let u=0;uo.cssText):r}}}const vw=["r","d","l","v","w","f","i","h","a","k","t","m"],C5=vw.reduce((e,t,n)=>(e[t]=n,e),{});function Tw(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=Ew(s,e,{...r.styleElementAttributes,...o&&{media:i.m}});r.stylesheets[a]=l,t&&s&&t.head.insertBefore(s,_w(t,n,e,r,i))}return r.stylesheets[a]}function _w(e,t,n,r,i){const o=C5[n];let a=c=>o-C5[c.getAttribute(Vc)],s=e.head.querySelectorAll(`[${Vc}]`);if(n==="m"&&i){const c=e.head.querySelectorAll(`[${Vc}="${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 yw=0;const Cw=(e,t)=>et?1:0;function Sw(e=typeof document>"u"?void 0:document,t={}){const{unstable_filterCSSRule:n,insertionPoint:r,styleElementAttributes:i,compareMediaQueries:o=Cw}=t,a={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(i),compareMediaQueries:o,id:`d${yw++}`,insertCSSRules(s){for(const l in s){const u=s[l];for(let c=0,d=u.length;c{const{title:t,primaryFill:n="currentColor"}=e,r=Pi(e,["title","primaryFill"]),i=Object.assign(Object.assign({},r),{title:void 0,fill:n}),o=Nw();return i.className=pw(o.root,i.className),t&&(i["aria-label"]=t),!i["aria-label"]&&!i["aria-labelledby"]?i["aria-hidden"]=!0:i.role="img",i},ww=(e,t)=>{const n=r=>{const i=Dw(r);return E.createElement(e,Object.assign({},i))};return n.displayName=t,n},Xa=ww,Rw=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}))},Ow=Xa(Rw,"CopyRegular"),Mw=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}))},Pw=Xa(Mw,"ErrorCircleRegular"),Lw=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}))},Bw=Xa(Lw,"SendRegular"),Hw=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}))},Uw=Xa(Hw,"ShieldLockRegular"),zw=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}))},Gw=Xa(zw,"SquareRegular"),Ww=e=>{const{fill:t="currentColor",className:n}=e;return E.createElement("svg",Object.assign({},e,{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:n}),E.createElement("path",{d:"M12.48 18.3c-.8.83-2.09.38-2.43-.6-.28-.8-.64-1.77-1-2.48C8 13.1 7.38 11.9 5.67 10.37c-.23-.2-.52-.36-.84-.49-1.13-.44-2.2-1.61-1.91-3l.35-1.77a2.5 2.5 0 0 1 1.8-1.92l5.6-1.53a4.5 4.5 0 0 1 5.6 3.54l.69 3.76A3 3 0 0 1 14 12.5h-.89l.01.05c.08.41.18.97.24 1.58.07.62.1 1.29.05 1.92a3.68 3.68 0 0 1-.5 1.73c-.11.16-.27.35-.44.52Z",fill:t}))},Kw=Xa(Ww,"ThumbDislike20Filled"),jw=e=>{const{fill:t="currentColor",className:n}=e;return E.createElement("svg",Object.assign({},e,{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:n}),E.createElement("path",{d:"M12.48 1.7c-.8-.83-2.09-.38-2.43.6-.28.8-.64 1.77-1 2.48C8 6.9 7.38 8.1 5.67 9.63c-.23.2-.52.36-.84.49-1.13.44-2.2 1.61-1.91 3l.35 1.77a2.5 2.5 0 0 0 1.8 1.92l5.6 1.52a4.5 4.5 0 0 0 5.6-3.53l.69-3.76A3 3 0 0 0 14 7.5h-.89l.01-.05c.08-.41.18-.97.24-1.59.07-.6.1-1.28.05-1.9a3.68 3.68 0 0 0-.5-1.74 4.16 4.16 0 0 0-.44-.52Z",fill:t}))},$w=Xa(jw,"ThumbLike20Filled"),Vw=({onClick:e})=>B(t1,{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"}),Yw=({onClick:e,text:t})=>B(v1,{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"}}}),qw=(e,t)=>{switch(t.type){case"TOGGLE_CHAT_HISTORY":return{...e,isChatHistoryOpen:!e.isChatHistoryOpen};case"UPDATE_CURRENT_CHAT":return{...e,currentChat:t.payload};case"UPDATE_CHAT_HISTORY_LOADING_STATE":return{...e,chatHistoryLoadingState:t.payload};case"UPDATE_CHAT_HISTORY":if(!e.chatHistory||!e.currentChat)return e;let n=e.chatHistory.findIndex(a=>a.id===t.payload.id);if(n!==-1){let a=[...e.chatHistory];return a[n]=e.currentChat,{...e,chatHistory:a}}else return{...e,chatHistory:[...e.chatHistory,t.payload]};case"UPDATE_CHAT_TITLE":if(!e.chatHistory)return{...e,chatHistory:[]};let r=e.chatHistory.map(a=>{var s;return a.id===t.payload.id?(((s=e.currentChat)==null?void 0:s.id)===t.payload.id&&(e.currentChat.title=t.payload.title),{...a,title:t.payload.title}):a});return{...e,chatHistory:r};case"DELETE_CHAT_ENTRY":if(!e.chatHistory)return{...e,chatHistory:[]};let i=e.chatHistory.filter(a=>a.id!==t.payload);return e.currentChat=null,{...e,chatHistory:i};case"DELETE_CHAT_HISTORY":return{...e,chatHistory:[],filteredChatHistory:[],currentChat:null};case"DELETE_CURRENT_CHAT_MESSAGES":if(!e.currentChat||!e.chatHistory)return e;const o={...e.currentChat,messages:[]};return{...e,currentChat:o};case"FETCH_CHAT_HISTORY":return{...e,chatHistory:t.payload};case"SET_COSMOSDB_STATUS":return{...e,isCosmosDBAvailable:t.payload};case"FETCH_FRONTEND_SETTINGS":return{...e,frontendSettings:t.payload};case"SET_FEEDBACK_STATE":return{...e,feedbackState:{...e.feedbackState,[t.payload.answerId]:t.payload.feedback}};default:return e}};var On=(e=>(e.NotConfigured="CosmosDB is not configured",e.NotWorking="CosmosDB is not working",e.InvalidCredentials="CosmosDB has invalid credentials",e.InvalidDatabase="Invalid CosmosDB database name",e.InvalidContainer="Invalid CosmosDB container name",e.Working="CosmosDB is configured and working",e))(On||{}),xn=(e=>(e.Loading="loading",e.Success="success",e.Fail="fail",e.NotStarted="notStarted",e))(xn||{}),Ne=(e=>(e.Neutral="neutral",e.Positive="positive",e.Negative="negative",e.MissingCitation="missing_citation",e.WrongCitation="wrong_citation",e.OutOfScope="out_of_scope",e.InaccurateOrIrrelevant="inaccurate_or_irrelevant",e.OtherUnhelpful="other_unhelpful",e.HateSpeech="hate_speech",e.Violent="violent",e.Sexual="sexual",e.Manipulative="manipulative",e.OtherHarmful="other_harmlful",e))(Ne||{});async function Qw(e,t){return await fetch("/conversation",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:e.messages}),signal:t})}async function Xw(){const e=await fetch("/.auth/me");return e.ok?await e.json():(console.log("No identity provider found. Access to chat will be blocked."),[])}const dC=async(e=0)=>await fetch(`/history/list?offset=${e}`,{method:"GET"}).then(async n=>{const r=await n.json();return Array.isArray(r)?await Promise.all(r.map(async o=>{let a=[];return a=await Zw(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)),Zw=async e=>await fetch("/history/read",{method:"POST",body:JSON.stringify({conversation_id:e}),headers:{"Content-Type":"application/json"}}).then(async n=>{if(!n)return[];const r=await n.json();let i=[];return r!=null&&r.messages&&r.messages.forEach(o=>{const a={id:o.id,role:o.role,date:o.createdAt,content:o.content,feedback:o.feedback??void 0};i.push(a)}),i}).catch(n=>(console.error("There was an issue fetching your data."),[])),S5=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))},Jw=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})),eR=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})),tR=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})),nR=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})),rR=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})),iR=async()=>await fetch("/history/ensure",{method:"GET"}).then(async t=>{let n=await t.json(),r;return n.message?r=On.Working:t.status===500?r=On.NotWorking:t.status===401?r=On.InvalidCredentials:t.status===422?r=n.error:r=On.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})),oR=async()=>await fetch("/frontend_settings",{method:"GET"}).then(t=>t.json()).catch(t=>(console.error("There was an issue fetching your data."),null)),$h=async(e,t)=>await fetch("/history/message_feedback",{method:"POST",body:JSON.stringify({message_id:e,message_feedback:t}),headers:{"Content-Type":"application/json"}}).then(r=>r).catch(r=>(console.error("There was an issue logging feedback."),{...new Response,ok:!1,status:500})),aR={isChatHistoryOpen:!1,chatHistoryLoadingState:xn.Loading,chatHistory:null,filteredChatHistory:null,currentChat:null,isCosmosDBAvailable:{cosmosDB:!1,status:On.NotConfigured},frontendSettings:null,feedbackState:{}},ia=E.createContext(void 0),sR=({children:e})=>{const[t,n]=E.useReducer(qw,aR);return E.useEffect(()=>{const r=async(o=0)=>await dC(o).then(s=>(n(s?{type:"FETCH_CHAT_HISTORY",payload:s}:{type:"FETCH_CHAT_HISTORY",payload:null}),s)).catch(s=>(n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:xn.Fail}),n({type:"FETCH_CHAT_HISTORY",payload:null}),console.error("There was an issue fetching your data."),null));(async()=>{n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:xn.Loading}),iR().then(o=>{o!=null&&o.cosmosDB?r().then(a=>{a?(n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:xn.Success}),n({type:"SET_COSMOSDB_STATUS",payload:o})):(n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:xn.Fail}),n({type:"SET_COSMOSDB_STATUS",payload:{cosmosDB:!1,status:On.NotWorking}}))}).catch(a=>{n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:xn.Fail}),n({type:"SET_COSMOSDB_STATUS",payload:{cosmosDB:!1,status:On.NotWorking}})}):(n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:xn.Fail}),n({type:"SET_COSMOSDB_STATUS",payload:o}))}).catch(o=>{n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:xn.Fail}),n({type:"SET_COSMOSDB_STATUS",payload:{cosmosDB:!1,status:On.NotConfigured}})})})()},[]),E.useEffect(()=>{(async()=>{oR().then(i=>{n({type:"FETCH_FRONTEND_SETTINGS",payload:i})}).catch(i=>{console.error("There was an issue fetching your data.")})})()},[]),B(ia.Provider,{value:{state:t,dispatch:n},children:e})},lR=()=>{var d,f;const[e,t]=E.useState(!1),[n,r]=E.useState(!1),[i,o]=E.useState("Copy URL"),a=E.useContext(ia),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:Gi.layout,children:[B("header",{className:Gi.header,role:"banner",children:fe(ge,{horizontal:!0,verticalAlign:"center",horizontalAlign:"space-between",children:[fe(ge,{horizontal:!0,verticalAlign:"center",children:[B("img",{src:lC,className:Gi.headerIcon,"aria-hidden":"true"}),B(m7,{to:"/",className:Gi.headerTitleContainer,children:B("h1",{className:Gi.headerTitle,children:"Contoso"})})]}),fe(ge,{horizontal:!0,tokens:{childrenGap:4},children:[((d=a==null?void 0:a.state.isCosmosDBAvailable)==null?void 0:d.status)!==On.NotConfigured&&B(Yw,{onClick:c,text:(f=a==null?void 0:a.state)!=null&&f.isChatHistoryOpen?"Hide chat history":"Show chat history"}),B(Vw,{onClick:s})]})]})}),B(o7,{}),B(gl,{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(ge,{horizontal:!0,verticalAlign:"center",style:{gap:"8px"},children:[B(yg,{className:Gi.urlTextBox,defaultValue:window.location.href,readOnly:!0}),fe("div",{className:Gi.copyButtonContainer,role:"button",tabIndex:0,"aria-label":"Copy",onClick:u,onKeyDown:p=>p.key==="Enter"||p.key===" "?u():null,children:[B(Ow,{className:Gi.copyButton}),B("span",{className:Gi.copyButtonText,children:i})]})]})})]})},uR=()=>B("h1",{children:"404"}),A5=["http","https","mailto","tel"];function cR(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 I0(){return I0=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function u7(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function c7(e,t){return e.button===0&&(!t||t==="_self")&&!u7(e)}const d7=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function f7(e){let{basename:t,children:n,window:r}=e,i=E.useRef();i.current==null&&(i.current=u3({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(a7,{basename:t,children:n,location:a.location,navigationType:a.action,navigator:o})}const h7=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",m7=E.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:c}=t,d=l7(t,d7),f,p=!1;if(h7&&typeof u=="string"&&/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i.test(u)){f=u;let m=new URL(window.location.href),T=u.startsWith("//")?new URL(m.protocol+u):new URL(u);T.origin===m.origin?u=T.pathname+T.search+T.hash:p=!0}let h=$3(u,{relative:i}),v=p7(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:i});function y(m){r&&r(m),m.defaultPrevented||v(m)}return E.createElement("a",I0({},d,{href:f||h,onClick:p||o?r:y,ref:n,target:l}))});var EE;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(EE||(EE={}));var vE;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(vE||(vE={}));function p7(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a}=t===void 0?{}:t,s=V3(),l=hf(),u=I4(e,{relative:a});return E.useCallback(c=>{if(c7(c,n)){c.preventDefault();let d=r!==void 0?r:xd(l)===xd(u);s(e,{replace:d,state:i,preventScrollReset:o,relative:a})}},[l,s,u,r,i,n,e,o,a])}var TE={},Kc=void 0;try{Kc=window}catch{}function eg(e,t){if(typeof Kc<"u"){var n=Kc.__packages__=Kc.__packages__||{};if(!n[e]||!TE[e]){TE[e]=t;var r=n[e]=n[e]||[];r.push(t)}}}eg("@fluentui/set-version","6.0.0");var F0=function(e,t){return F0=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])},F0(e,t)};function rt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");F0(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var x=function(){return x=Object.assign||function(t){for(var n,r=1,i=arguments.length;r=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function ui(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r"u"?Ol.none:Ol.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(as=gs[_E],!as||as._lastStyleElement&&as._lastStyleElement.ownerDocument!==document){var t=(gs==null?void 0:gs.FabricConfig)||{},n=new e(t.mergeStyles,t.serializedStylesheet);as=n,gs[_E]=n}return as},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(t){this._config=x(x({},this._config),t)},e.prototype.onReset=function(t){var n=this;return this._onResetCallbacks.push(t),function(){n._onResetCallbacks=n._onResetCallbacks.filter(function(r){return r!==t})}},e.prototype.onInsertRule=function(t){var n=this;return this._onInsertRuleCallbacks.push(t),function(){n._onInsertRuleCallbacks=n._onInsertRuleCallbacks.filter(function(r){return r!==t})}},e.prototype.getClassName=function(t){var n=this._config.namespace,r=t||this._config.defaultPrefix;return"".concat(n?n+"-":"").concat(r,"-").concat(this._counter++)},e.prototype.cacheClassName=function(t,n,r,i){this._keyToClassName[n]=t,this._classNameToArgs[t]={args:r,rules:i}},e.prototype.classNameFromKey=function(t){return this._keyToClassName[t]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(t){var n=this._classNameToArgs[t];return n&&n.args},e.prototype.insertedRulesFromClassName=function(t){var n=this._classNameToArgs[t];return n&&n.rules},e.prototype.insertRule=function(t,n){var r=this._config.injectionMode,i=r!==Ol.none?this._getStyleElement():void 0;if(n&&this._preservedRules.push(t),i)switch(r){case Ol.insertNode:var o=i.sheet;try{o.insertRule(t,o.cssRules.length)}catch{}break;case Ol.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(),g7||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 F4(){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 x4(e){Ks!==e&&(Ks=e)}function N4(){return Ks===void 0&&(Ks=typeof document<"u"&&!!document.documentElement&&document.documentElement.getAttribute("dir")==="rtl"),Ks}var Ks;Ks=N4();function mf(){return{rtl:N4()}}var yE={};function E7(e,t){var n=e[t];n.charAt(0)!=="-"&&(e[t]=yE[n]=yE[n]||n.replace(/([A-Z])/g,"-$1").toLowerCase())}var tc;function v7(){var e;if(!tc){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?tc={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)))}:tc={isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return tc}var CE={"user-select":1};function T7(e,t){var n=v7(),r=e[t];if(CE[r]){var i=e[t+1];CE[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 _7=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function y7(e,t){var n=e[t],r=e[t+1];if(typeof r=="number"){var i=_7.indexOf(n)>-1,o=n.indexOf("--")>-1,a=i||o?"":"px";e[t+1]="".concat(r).concat(a)}}var nc,xo="left",No="right",C7="@noflip",SE=(nc={},nc[xo]=No,nc[No]=xo,nc),AE={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function S7(e,t,n){if(e.rtl){var r=t[n];if(!r)return;var i=t[n+1];if(typeof i=="string"&&i.indexOf(C7)>=0)t[n+1]=i.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(xo)>=0)t[n]=r.replace(xo,No);else if(r.indexOf(No)>=0)t[n]=r.replace(No,xo);else if(String(i).indexOf(xo)>=0)t[n+1]=i.replace(xo,No);else if(String(i).indexOf(No)>=0)t[n+1]=i.replace(No,xo);else if(SE[r])t[n]=SE[r];else if(AE[i])t[n+1]=AE[i];else switch(r){case"margin":case"padding":t[n+1]=b7(i);break;case"box-shadow":t[n+1]=A7(i,0);break}}}function A7(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 b7(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 k7(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 bE(e,t){return e.indexOf(":global(")>=0?e.replace(D4,"$1"):e.indexOf(":")===0?t+e:e.indexOf("&")<0?t+" "+e:e}function kE(e,t,n,r){t===void 0&&(t={__order:[]}),n.indexOf("@")===0?(n=n+"{"+e,js([r],t,n)):n.indexOf(",")>-1?x7(n).split(",").map(function(i){return i.trim()}).forEach(function(i){return js([r],t,bE(i,e))}):js([r],t,bE(n,e))}function js(e,t,n){t===void 0&&(t={__order:[]}),n===void 0&&(n="&");var r=zr.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(y){return Li.apply(void 0,v.map(function(m){return typeof m=="function"?m(y):m}))}}};for(var u in r)p(u)}return n}function f1(){for(var e=[],t=0;t"u")){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:x0}}var hl=function(){function e(t,n){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=t||null,this._onErrorHandler=n,this._noop=function(){}}return e.prototype.dispose=function(){var t;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(t in this._timeoutIds)this._timeoutIds.hasOwnProperty(t)&&this.clearTimeout(parseInt(t,10));this._timeoutIds=null}if(this._immediateIds){for(t in this._immediateIds)this._immediateIds.hasOwnProperty(t)&&this.clearImmediate(parseInt(t,10));this._immediateIds=null}if(this._intervalIds){for(t in this._intervalIds)this._intervalIds.hasOwnProperty(t)&&this.clearInterval(parseInt(t,10));this._intervalIds=null}if(this._animationFrameIds){for(t in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(t)&&this.cancelAnimationFrame(parseInt(t,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(t,n){var r=this,i=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),i=setTimeout(function(){try{r._timeoutIds&&delete r._timeoutIds[i],t.apply(r._parent)}catch(o){r._logError(o)}},n),this._timeoutIds[i]=!0),i},e.prototype.clearTimeout=function(t){this._timeoutIds&&this._timeoutIds[t]&&(clearTimeout(t),delete this._timeoutIds[t])},e.prototype.setImmediate=function(t,n){var r=this,i=0,o=Et(n);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});var a=function(){try{r._immediateIds&&delete r._immediateIds[i],t.apply(r._parent)}catch(s){r._logError(s)}};i=o.setTimeout(a,0),this._immediateIds[i]=!0}return i},e.prototype.clearImmediate=function(t,n){var r=Et(n);this._immediateIds&&this._immediateIds[t]&&(r.clearTimeout(t),delete this._immediateIds[t])},e.prototype.setInterval=function(t,n){var r=this,i=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),i=setInterval(function(){try{t.apply(r._parent)}catch(o){r._logError(o)}},n),this._intervalIds[i]=!0),i},e.prototype.clearInterval=function(t){this._intervalIds&&this._intervalIds[t]&&(clearInterval(t),delete this._intervalIds[t])},e.prototype.throttle=function(t,n,r){var i=this;if(this._isDisposed)return this._noop;var o=n||0,a=!0,s=!0,l=0,u,c,d=null;r&&typeof r.leading=="boolean"&&(a=r.leading),r&&typeof r.trailing=="boolean"&&(s=r.trailing);var f=function(h){var v=Date.now(),y=v-l,m=a?o-y:o;return y>=o&&(!h||a)?(l=v,d&&(i.clearTimeout(d),d=null),u=t.apply(i._parent,c)):d===null&&s&&(d=i.setTimeout(f,m)),u},p=function(){for(var h=[],v=0;v=a&&(D=!0),c=S);var M=S-c,I=a-M,L=S-d,O=!1;return u!==null&&(L>=u&&h?O=!0:I=Math.min(I,u-L)),M>=a||O||D?y(S):(h===null||!A)&&l&&(h=i.setTimeout(m,I)),f},T=function(){return!!h},_=function(){T()&&v(Date.now())},C=function(){return T()&&y(Date.now()),f},F=function(){for(var A=[],S=0;S-1)for(var a=n.split(/[ ,]+/),s=0;s"u")){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}var Ch,mu=0,H4=bi({overflow:"hidden !important"}),IE="data-is-scrollable",M7=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=rg(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}},P7=function(e,t){if(e){var n=function(r){r.stopPropagation()};t.on(e,"touchmove",n,{passive:!1})}},U4=function(e){e.preventDefault()};function L7(){var e=Bn();e&&e.body&&!mu&&(e.body.classList.add(H4),e.body.addEventListener("touchmove",U4,{passive:!1,capture:!1})),mu++}function B7(){if(mu>0){var e=Bn();e&&e.body&&mu===1&&(e.body.classList.remove(H4),e.body.removeEventListener("touchmove",U4)),mu--}}function H7(){if(Ch===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),Ch=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Ch}function rg(e){for(var t=e,n=Bn(e);t&&t!==n.body;){if(t.getAttribute(IE)==="true")return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if(t.getAttribute(IE)!=="false"){var r=getComputedStyle(t),i=r?r.getPropertyValue("overflow-y"):"";if(i&&(i==="scroll"||i==="auto"))return t}t=t.parentElement}return(!t||t===n.body)&&(t=Et(e)),t}var U7=void 0;function ig(e){console&&console.warn&&console.warn(e)}function z4(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 hl(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 Dr(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){z4(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 z7(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 tb="data-is-focusable",nb="data-is-visible",rb="data-focuszone-id",ib="data-is-sub-focuszone";function ob(e,t,n){return xn(e,t,!0,!1,!1,n)}function ab(e,t,n){return Qn(e,t,!0,!1,!0,n)}function sb(e,t,n,r){return r===void 0&&(r=!0),xn(e,t,r,!1,!1,n,!1,!0)}function lb(e,t,n,r){return r===void 0&&(r=!0),Qn(e,t,r,!1,!0,n,!1,!0)}function ub(e,t){var n=xn(e,e,!0,!1,!1,!0,void 0,void 0,t);return n?(q4(n),!0):!1}function Qn(e,t,n,r,i,o,a,s){if(!t||!a&&t===e)return null;var l=gf(t);if(i&&l&&(o||!(Zi(t)||sg(t)))){var u=Qn(e,t.lastElementChild,!0,!0,!0,o,a,s);if(u){if(s&&Si(u,!0)||!s)return u;var c=Qn(e,u.previousElementSibling,!0,!0,!0,o,a,s);if(c)return c;for(var d=u.parentElement;d&&d!==t;){var f=Qn(e,d.previousElementSibling,!0,!0,!0,o,a,s);if(f)return f;d=d.parentElement}}}if(n&&l&&Si(t,s))return t;var p=Qn(e,t.previousElementSibling,!0,!0,!0,o,a,s);return p||(r?null:Qn(e,t.parentElement,!0,!1,!1,o,a,s))}function xn(e,t,n,r,i,o,a,s,l){if(!t||t===e&&i&&!a)return null;var u=l?V4:gf,c=u(t);if(n&&c&&Si(t,s))return t;if(!i&&c&&(o||!(Zi(t)||sg(t)))){var d=xn(e,t.firstElementChild,!0,!0,!1,o,a,s,l);if(d)return d}if(t===e)return null;var f=xn(e,t.nextElementSibling,!0,!0,!1,o,a,s,l);return f||(r?null:xn(e,t.parentElement,!1,!1,!0,o,a,s,l))}function gf(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute(nb);return t!=null?t==="true":e.offsetHeight!==0||e.offsetParent!==null||e.isVisible===!0}function V4(e){return!!e&&gf(e)&&!e.hidden&&window.getComputedStyle(e).visibility!=="hidden"}function Si(e,t){if(!e||e.disabled)return!1;var n=0,r=null;e&&e.getAttribute&&(r=e.getAttribute("tabIndex"),r&&(n=parseInt(r,10)));var i=e.getAttribute?e.getAttribute(tb):null,o=r!==null&&n>=0,a=!!e&&i!=="false"&&(e.tagName==="A"||e.tagName==="BUTTON"||e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.tagName==="SELECT"||i==="true"||o);return t?n!==-1&&a:a}function Zi(e){return!!(e&&e.getAttribute&&e.getAttribute(rb))}function sg(e){return!!(e&&e.getAttribute&&e.getAttribute(ib)==="true")}function cb(e){var t=Bn(e),n=t&&t.activeElement;return!!(n&&Zn(e,n))}function Y4(e,t){return Z7(e,t)!=="true"}var ss=void 0;function q4(e){if(e){if(ss){ss=e;return}ss=e;var t=Et(e);t&&t.requestAnimationFrame(function(){ss&&ss.focus(),ss=void 0})}}function db(e,t){for(var n=e,r=0,i=t;r(e.cacheSize||hb)){var p=Et();!((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[rc]};return o}function bh(e,t){return t=pb(t),e.has(t)||e.set(t,new Map),e.get(t)}function xE(e,t){if(typeof t=="function"){var n=t.__cachedInputs__;if(n)for(var r=0,i=t.__cachedInputs__;r"u"?null:WeakMap;function Eb(){$c++}function xt(e,t,n){if(t===void 0&&(t=100),n===void 0&&(n=!1),!$u)return e;if(!NE){var r=zr.getInstance();r&&r.onReset&&zr.getInstance().onReset(Eb),NE=!0}var i,o=0,a=$c;return function(){for(var l=[],u=0;u0&&o>t)&&(i=DE(),o=0,a=$c),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 Gb=["setState","render","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","getSnapshotBeforeUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount"];function Wb(e,t,n){n===void 0&&(n=Gb);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(Od.Provider,{value:a},e.children):E.createElement(E.Fragment,null,e.children)};function Qb(e){var t=null;try{var n=Et();t=n?n.localStorage.getItem(e):null}catch{}return t}var ha,BE="language";function Xb(e){if(e===void 0&&(e="sessionStorage"),ha===void 0){var t=Bn(),n=e==="localStorage"?Qb(BE):e==="sessionStorage"?K4(BE):void 0;n&&(ha=n),ha===void 0&&t&&(ha=t.documentElement.getAttribute("lang")),ha===void 0&&(ha="en")}return ha}function HE(e){for(var t=[],n=1;n-1;e[r]=o?i:s2(e[r]||{},i,n)}else e[r]=i}return n.pop(),e}var UE=function(){return!window||!window.navigator||!window.navigator.userAgent?!1:/iPad|iPhone|iPod/i.test(window.navigator.userAgent)},Zb=["TEMPLATE","STYLE","SCRIPT"];function l2(e){var t=Bn(e);if(!t)return function(){};for(var n=[];e!==t.body&&e.parentElement;){for(var r=0,i=e.parentElement.children;r"u"||e){var n=Et(),r=(t=n==null?void 0:n.navigator)===null||t===void 0?void 0:t.userAgent;Ih=!!r&&r.indexOf("Macintosh")!==-1}return!!Ih}function ek(e){var t=nl(function(n){var r=nl(function(i){return function(o){return n(o,i)}});return function(i,o){return e(i,o?r(o):n)}});return t}var tk=nl(ek);function w0(e,t){return tk(e)(t)}var nk=["theme","styles"];function an(e,t,n,r,i){r=r||{scope:"",fields:void 0};var o=r.scope,a=r.fields,s=a===void 0?nk:a,l=E.forwardRef(function(c,d){var f=E.useRef(),p=Db(s,o),h=p.styles;p.dir;var v=Pi(p,["styles","dir"]),y=n?n(c):void 0,m=f.current&&f.current.__cachedInputs__||[],T=c.styles;if(!f.current||h!==m[1]||T!==m[2]){var _=function(C){return L4(C,t,h,T)};_.__cachedInputs__=[t,h,T],_.__noStyleOverride__=!h&&!T,f.current=_}return E.createElement(e,x({ref:d},v,y,c,{styles:f.current}))});l.displayName="Styled".concat(e.displayName||e.name);var u=i?E.memo(l):l;return l.displayName&&(u.displayName=l.displayName),u}var rk=function(){var e,t=Et();return!((e=t==null?void 0:t.navigator)===null||e===void 0)&&e.userAgent?t.navigator.userAgent.indexOf("rv:11.0")>-1:!1};function m1(e,t){for(var n=x({},t),r=0,i=Object.keys(e);rr?" (+ "+(Ml.length-r)+" more)":"")),xh=void 0,Ml=[]},n)))}function lk(e,t,n,r,i){i===void 0&&(i=!1);var o=x({primaryButtonBorder:"transparent",errorText:r?"#F1707B":"#a4262c",messageText:r?"#F3F2F1":"#323130",messageLink:r?"#6CB8F6":"#005A9E",messageLinkHovered:r?"#82C7FF":"#004578",infoIcon:r?"#C8C6C4":"#605e5c",errorIcon:r?"#F1707B":"#A80000",blockingIcon:r?"#442726":"#FDE7E9",warningIcon:r?"#C8C6C4":"#797775",severeWarningIcon:r?"#FCE100":"#D83B01",successIcon:r?"#92C353":"#107C10",infoBackground:r?"#323130":"#f3f2f1",errorBackground:r?"#442726":"#FDE7E9",blockingBackground:r?"#442726":"#FDE7E9",warningBackground:r?"#433519":"#FFF4CE",severeWarningBackground:r?"#4F2A0F":"#FED9CC",successBackground:r?"#393D1B":"#DFF6DD",warningHighlight:r?"#fff100":"#ffb900",successText:r?"#92c353":"#107C10"},n),a=c2(e,t,o,r);return uk(a,i)}function c2(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,y=a.neutralDark,m=a.neutralQuaternary,T=a.neutralQuaternaryAlt,_=a.neutralPrimary,C=a.neutralSecondary,F=a.neutralSecondaryAlt,A=a.neutralTertiary,S=a.neutralTertiaryAlt,D=a.neutralLighterAlt,M=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),m&&(o.primaryButtonTextDisabled=m,o.disabledSubtext=m),T&&(o.listItemBackgroundCheckedHovered=T),A&&(o.disabledBodyText=A,o.variantBorderHovered=(n==null?void 0:n.variantBorderHovered)||A,o.buttonTextDisabled=A,o.inputIconDisabled=A,o.disabledText=A),_&&(o.bodyText=_,o.actionLink=_,o.buttonText=_,o.inputBorderHovered=_,o.inputText=_,o.listText=_,o.menuItemText=_),D&&(o.bodyStandoutBackground=D,o.defaultStateBackground=D),y&&(o.actionLinkHovered=y,o.buttonTextHovered=y,o.buttonTextChecked=y,o.buttonTextPressed=y,o.inputTextHovered=y,o.menuItemTextHovered=y),C&&(o.bodySubtext=C,o.focusBorder=C,o.inputBorder=C,o.smallInputBorder=C,o.inputPlaceholderText=C),F&&(o.buttonBorder=F),S&&(o.disabledBodySubtext=S,o.disabledBorder=S,o.buttonBackgroundChecked=S,o.menuDivider=S),M&&(o.accentButtonBackground=M),t!=null&&t.elevation4&&(o.cardShadow=t.elevation4),!r&&(t!=null&&t.elevation8)?o.cardShadowHovered=t.elevation8:o.variantBorderHovered&&(o.cardShadowHovered="0 0 1px "+o.variantBorderHovered),o=x(x({},o),n),o}function uk(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 ck(e,t){var n,r,i;t===void 0&&(t={});var o=HE({},e,t,{semanticColors:c2(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,$E=pu&&pu.CSPSettings&&pu.CSPSettings.nonce,mr=nI();function nI(){var e=pu.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};return e.runState||(e=Os(Os({},e),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),e.registeredThemableStyles||(e=Os(Os({},e),{registeredThemableStyles:[]})),pu.__themeState__=e,e}function rI(e,t){mr.loadStyles?mr.loadStyles(m2(e).styleString,e):sI(e)}function iI(e){mr.theme=e,aI()}function oI(e){e===void 0&&(e=3),(e===3||e===2)&&(VE(mr.registeredStyles),mr.registeredStyles=[]),(e===3||e===1)&&(VE(mr.registeredThemableStyles),mr.registeredThemableStyles=[])}function VE(e){e.forEach(function(t){var n=t&&t.styleElement;n&&n.parentElement&&n.parentElement.removeChild(n)})}function aI(){if(mr.theme){for(var e=[],t=0,n=mr.registeredThemableStyles;t0&&(oI(1),rI([].concat.apply([],e)))}}function m2(e){var t=mr.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 sI(e){if(!(typeof document>"u")){var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=m2(e),i=r.styleString,o=r.themable;n.setAttribute("data-load-themed-styles","true"),$E&&n.setAttribute("nonce",$E),n.appendChild(document.createTextNode(i)),mr.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?mr.registeredThemableStyles.push(s):mr.registeredStyles.push(s)}}var Ir=p1({}),lI=[],M0="theme";function p2(){var e,t,n,r=Et();!((t=r==null?void 0:r.FabricConfig)===null||t===void 0)&&t.legacyTheme?cI(r.FabricConfig.legacyTheme):Pr.getSettings([M0]).theme||(!((n=r==null?void 0:r.FabricConfig)===null||n===void 0)&&n.theme&&(Ir=p1(r.FabricConfig.theme)),Pr.applySettings((e={},e[M0]=Ir,e)))}p2();function uI(e){return e===void 0&&(e=!1),e===!0&&(Ir=p1({},e)),Ir}function cI(e,t){var n;return t===void 0&&(t=!1),Ir=p1(e,t),iI(x(x(x(x({},Ir.palette),Ir.semanticColors),Ir.effects),dI(Ir))),Pr.applySettings((n={},n[M0]=Ir,n)),lI.forEach(function(r){try{r(Ir)}catch{}}),Ir}function dI(e){for(var t={},n=0,r=Object.keys(e.fonts);nt.bottom||e.leftt.right)}function Pd(e,t){var n=[];return e.topt.bottom&&n.push(de.bottom),e.leftt.right&&n.push(de.right),n}function Sn(e,t){return e[de[t]]}function XE(e,t,n){return e[de[t]]=n,e}function Yu(e,t){var n=ml(t);return(Sn(e,n.positiveEdge)+Sn(e,n.negativeEdge))/2}function _f(e,t){return e>0?t:t*-1}function P0(e,t){return _f(e,Sn(t,e))}function no(e,t,n){var r=Sn(e,n)-Sn(t,n);return _f(n,r)}function ol(e,t,n,r){r===void 0&&(r=!0);var i=Sn(e,t)-n,o=XE(e,t,n);return r&&(o=XE(e,t*-1,Sn(e,t*-1)-i)),o}function qu(e,t,n,r){return r===void 0&&(r=0),ol(e,n,Sn(t,n)+_f(n,r))}function fI(e,t,n,r){r===void 0&&(r=0);var i=n*-1,o=_f(i,r);return ol(e,n*-1,Sn(t,n)+o)}function Ld(e,t,n){var r=P0(n,e);return r>P0(n,t)}function hI(e,t){for(var n=Pd(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=Bd(e,t,{targetEdge:s,alignmentEdge:l},i))}return a=Bd(e,t,{targetEdge:c,alignmentEdge:d},i),{elementRectangle:a,targetEdge:c,alignmentEdge:d}}function pI(e,t,n,r){var i=e.alignmentEdge,o=e.targetEdge,a=e.elementRectangle,s=i*-1,l=Bd(a,t,{targetEdge:o,alignmentEdge:s},n,r);return{elementRectangle:l,targetEdge:o,alignmentEdge:s}}function gI(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=mI(e,t,n,r,i));var c=Pd(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=pI(u,t,i,a);if(ug(f.elementRectangle,n))return f;u=Oh(Pd(f.elementRectangle,n),u,n,d)}else u=Oh(c,u,n,d);else u=Oh(c,u,n,d);return u}function Oh(e,t,n,r){for(var i=0,o=e;iMath.abs(no(e,n,t*-1))?t*-1:t}function EI(e,t,n){return n!==void 0&&Sn(e,t)===Sn(n,t)}function vI(e,t,n,r,i,o,a,s){var l={},u=cg(t),c=o?n:n*-1,d=i||ml(n).positiveEdge;return(!a||EI(e,wI(d),r))&&(d=E2(e,d,r)),l[de[c]]=no(e,u,c),l[de[d]]=no(e,u,d),s&&(l[de[c*-1]]=no(e,u,c*-1),l[de[d*-1]]=no(e,u,d*-1)),l}function TI(e){return Math.sqrt(e*e*2)}function _I(e,t,n){if(e===void 0&&(e=Pt.bottomAutoEdge),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var r=x({},QE[e]);return Rn()?(r.alignmentEdge&&r.alignmentEdge%2===0&&(r.alignmentEdge=r.alignmentEdge*-1),t!==void 0?QE[t]:r):r}function yI(e,t,n,r,i){return e.isAuto&&(e.alignmentEdge=v2(e.targetEdge,t,n)),e.alignTargetEdge=i,e}function v2(e,t,n){var r=Yu(t,e),i=Yu(n,e),o=ml(e),a=o.positiveEdge,s=o.negativeEdge;return r<=i?a:s}function CI(e,t,n,r,i,o,a){var s=Bd(e,t,r,i,a);return ug(s,n)?{elementRectangle:s,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:gI(s,t,n,r,i,o,a)}function SI(e,t,n){var r=e.targetEdge*-1,i=new wi(0,e.elementRectangle.width,0,e.elementRectangle.height),o={},a=E2(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:ml(r).positiveEdge,n),s=no(e.elementRectangle,e.targetRectangle,r),l=s>Math.abs(Sn(t,r));return o[de[r]]=Sn(t,r),o[de[a]]=no(t,i,a),{elementPosition:x({},o),closestEdge:v2(e.targetEdge,t,i),targetEdge:r,hideBeak:!l}}function AI(e,t){var n=t.targetRectangle,r=ml(t.targetEdge),i=r.positiveEdge,o=r.negativeEdge,a=Yu(n,t.targetEdge),s=new wi(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new wi(0,e,0,e);return l=ol(l,t.targetEdge*-1,-e/2),l=g2(l,t.targetEdge*-1,a-P0(i,t.elementRectangle)),Ld(l,s,i)?Ld(l,s,o)||(l=qu(l,s,o)):l=qu(l,s,i),l}function cg(e){var t=e.getBoundingClientRect();return new wi(t.left,t.right,t.top,t.bottom)}function bI(e){return new wi(e.left,e.right,e.top,e.bottom)}function kI(e,t){var n;if(t){if(t.preventDefault){var r=t;n=new wi(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=cg(t);else{var i=t,o=i.left||i.x,a=i.top||i.y,s=i.right||o,l=i.bottom||a;n=new wi(o,s,a,l)}if(!ug(n,e))for(var u=Pd(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 OI(e,t){return RI(e,t)}function pl(){var e=E.useRef();return e.current||(e.current=new hl),E.useEffect(function(){return function(){var t;(t=e.current)===null||t===void 0||t.dispose(),e.current=void 0}},[]),e.current}function Lr(e){var t=E.useRef();return t.current===void 0&&(t.current={value:typeof e=="function"?e():e}),t.current.value}function g1(e){var t=E.useState(e),n=t[0],r=t[1],i=Lr(function(){return function(){r(!0)}}),o=Lr(function(){return function(){r(!1)}}),a=Lr(function(){return function(){r(function(s){return!s})}});return[n,{setTrue:i,setFalse:o,toggle:a}]}function ZE(e,t,n){var r=E.useState(t),i=r[0],o=r[1],a=Lr(e!==void 0),s=a?e:i,l=E.useRef(s),u=E.useRef(n);E.useEffect(function(){l.current=s,u.current=n});var c=Lr(function(){return function(d,f){var p=typeof d=="function"?d(l.current):d;u.current&&u.current(f,p),a||o(p)}});return[s,c]}function Mh(e){var t=E.useRef(function(){throw new Error("Cannot call an event handler while rendering")});return rl(function(){t.current=e},[e]),Lr(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 BI(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==Et()&&setTimeout(function(){var r;(r=t.focus)===null||r===void 0||r.call(t)},0)}function HI(e,t){var n=e.onRestoreFocus,r=n===void 0?BI:n,i=E.useRef(),o=E.useRef(!1);E.useEffect(function(){return i.current=Bn().activeElement,cb(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}},[]),Qu(t,"focus",E.useCallback(function(){o.current=!0},[]),!0),Qu(t,"blur",E.useCallback(function(a){t.current&&a.relatedTarget&&!t.current.contains(a.relatedTarget)&&(o.current=!1)},[]),!0)}function UI(e,t){var n=String(e["aria-modal"]).toLowerCase()==="true"&&e.enableAriaHiddenSiblings;E.useEffect(function(){if(n&&t.current){var r=l2(t.current);return r}},[t,n])}var hg=E.forwardRef(function(e,t){var n=m1({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},e),r=E.useRef(),i=Oi(r,t);UI(n,r),HI(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=LI(n,r),h=E.useCallback(function(y){switch(y.which){case ue.escape:f&&(f(y),y.preventDefault(),y.stopPropagation());break}},[f]),v=yf();return Qu(v,"keydown",h),E.createElement("div",x({ref:i},Tt(n,ho),{className:a,role:o,"aria-label":s,"aria-labelledby":l,"aria-describedby":u,onKeyDown:h,style:x({overflowY:p?"scroll":void 0,outline:"none"},c)}),d)});hg.displayName="Popup";var ls,zI="CalloutContentBase",GI=(ls={},ls[de.top]=Ms.slideUpIn10,ls[de.bottom]=Ms.slideDownIn10,ls[de.left]=Ms.slideLeftIn10,ls[de.right]=Ms.slideRightIn10,ls),JE={top:0,left:0},WI={opacity:0,filter:"opacity(0)",pointerEvents:"none"},KI=["role","aria-roledescription"],C2={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:Pt.bottomAutoEdge},jI=on({disableCaching:!0});function $I(e,t,n){var r=e.bounds,i=e.minPagePadding,o=i===void 0?C2.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=OI(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=pl();return Qu(n,"resize",f.debounce(function(){u(!0)},500,{leading:!0})),d}function VI(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,y=(v=t())!==null&&v!==void 0?v:{},m=y.top,T=y.bottom;!i&&!l?typeof p=="number"&&T?d(T-p):typeof h=="number"&&typeof m=="number"&&T&&d(T-m-h):d(i||void 0)},[h,i,o,a,s,t,l,n,p]),c}function YI(e,t,n,r,i){var o=E.useState(),a=o[0],s=o[1],l=E.useRef(0),u=E.useRef(),c=pl(),d=e.hidden,f=e.target,p=e.finalHeight,h=e.calloutMaxHeight,v=e.onPositioned,y=e.directionalHint;return E.useEffect(function(){if(d)s(void 0),l.current=0;else{var m=c.requestAnimationFrame(function(){var T,_;if(t.current&&n){var C=x(x({},e),{target:r.current,bounds:i()}),F=n.cloneNode(!0);F.style.maxHeight=h?""+h:"",F.style.visibility="hidden",(T=n.parentElement)===null||T===void 0||T.appendChild(F);var A=u.current===f?a:void 0,S=p?DI(C,t.current,F,A):NI(C,t.current,F,A);(_=n.parentElement)===null||_===void 0||_.removeChild(F),!a&&S||a&&S&&!ZI(a,S)&&l.current<5?(l.current++,s(S)):l.current>0&&(l.current=0,v==null||v(a))}},n);return u.current=f,function(){c.cancelAnimationFrame(m),u.current=void 0}}},[d,y,c,n,h,t,r,p,i,v,a,e,f]),a}function qI(e,t,n){var r=e.hidden,i=e.setInitialFocus,o=pl(),a=!!t;E.useEffect(function(){if(!r&&i&&a&&n){var s=o.requestAnimationFrame(function(){return ub(n)},n);return function(){return o.cancelAnimationFrame(s)}}},[r,a,o,n,i])}function QI(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=pl(),v=Lr([function(){p.current=!0},function(){p.current=!1}]),y=!!t;return E.useEffect(function(){var m=function(S){y&&!s&&C(S)},T=function(S){!l&&!(f&&f(S))&&(a==null||a(S))},_=function(S){u||C(S)},C=function(S){var D=S.composedPath?S.composedPath():[],M=D.length>0?D[0]:S.target,I=n.current&&!Zn(n.current,M);if(I&&p.current){p.current=!1;return}if(!r.current&&I||S.target!==i&&I&&(!r.current||"stopPropagation"in r.current||c||M!==r.current&&!Zn(r.current,M))){if(f&&f(S))return;a==null||a(S)}},F=function(S){d&&(f&&!f(S)||!f&&!u)&&!(i!=null&&i.document.hasFocus())&&S.relatedTarget===null&&(a==null||a(S))},A=new Promise(function(S){h.setTimeout(function(){if(!o&&i){var D=[ki(i,"scroll",m,!0),ki(i,"resize",T,!0),ki(i.document.documentElement,"focus",_,!0),ki(i.document.documentElement,"click",_,!0),ki(i,"blur",F,!0)];S(function(){D.forEach(function(M){return M()})})}},0)});return function(){A.then(function(S){return S()})}},[o,h,n,r,i,a,d,c,u,l,s,y,f]),v}var S2=E.memo(E.forwardRef(function(e,t){var n=m1(C2,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,y=n.finalHeight,m=n.hideOverflow,T=m===void 0?!!y:m,_=n.backgroundColor,C=n.calloutMaxHeight,F=n.onScroll,A=n.shouldRestoreFocus,S=A===void 0?!0:A,D=n.target,M=n.hidden,I=n.onLayerMounted,L=n.popupProps,O=E.useRef(null),X=E.useState(null),H=X[0],U=X[1],K=E.useCallback(function(Yt){U(Yt)},[]),ne=Oi(O,t),P=_2(n.target,{current:H}),W=P[0],V=P[1],b=$I(n,W,V),k=YI(n,O,H,W,b),me=VI(n,b,k),we=QI(n,k,O,W,V),ut=we[0],Se=we[1],Ue=(k==null?void 0:k.elementPosition.top)&&(k==null?void 0:k.elementPosition.bottom),St=x(x({},k==null?void 0:k.elementPosition),{maxHeight:me});if(Ue&&(St.bottom=void 0),qI(n,k,H),E.useEffect(function(){M||I==null||I()},[M]),!V)return null;var _t=T,We=u&&!!D,ct=jI(r,{theme:n.theme,className:l,overflowYHidden:_t,calloutWidth:f,positions:k,beakWidth:d,backgroundColor:_,calloutMaxWidth:p,calloutMinWidth:h,doNotLayer:v}),Vt=x(x({maxHeight:C||"100%"},i),_t&&{overflowY:"hidden"}),sn=n.hidden?{visibility:"hidden"}:void 0;return E.createElement("div",{ref:ne,className:ct.container,style:sn},E.createElement("div",x({},Tt(n,ho,KI),{className:Pn(ct.root,k&&k.targetEdge&&GI[k.targetEdge]),style:k?x({},St):WI,tabIndex:-1,ref:K}),We&&E.createElement("div",{className:ct.beak,style:XI(k)}),We&&E.createElement("div",{className:ct.beakCurtain}),E.createElement(hg,x({role:n.role,"aria-roledescription":n["aria-roledescription"],ariaDescribedBy:a,ariaLabel:o,ariaLabelledBy:s,className:ct.calloutMain,onDismiss:n.onDismiss,onMouseDown:ut,onMouseUp:Se,onRestoreFocus:n.onRestoreFocus,onScroll:F,shouldRestoreFocus:S,style:Vt},L),c)))}),function(e,t){return!t.shouldUpdateWhenHidden&&e.hidden&&t.hidden?!0:ng(e,t)});function XI(e){var t,n,r=x(x({},(t=e==null?void 0:e.beakPosition)===null||t===void 0?void 0:t.elementPosition),{display:!((n=e==null?void 0:e.beakPosition)===null||n===void 0)&&n.hideBeak?"none":void 0});return!r.top&&!r.bottom&&!r.left&&!r.right&&(r.left=JE.left,r.top=JE.top),r}function ZI(e,t){return e5(e.elementPosition,t.elementPosition)&&e5(e.beakPosition.elementPosition,t.beakPosition.elementPosition)}function e5(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}S2.displayName=zI;function JI(e){return{height:e,width:e}}var eF={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},tF=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=mn(eF,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?il.Layer:void 0,boxSizing:"border-box",borderRadius:p.roundedCorner2,boxShadow:p.elevation16,selectors:(t={},t[re]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},eI(),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)"},JI(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}]}},nF=an(S2,tF,void 0,{scope:"CalloutContent"}),A2=E.createContext(void 0),rF=function(){return function(){}};A2.Provider;function iF(){var e;return(e=E.useContext(A2))!==null&&e!==void 0?e:rF}var oF=on(),aF=xt(function(e,t){return p1(x(x({},e),{rtl:t}))}),sF=function(e){var t=e.theme,n=e.dir,r=Rn(t)?"rtl":"ltr",i=Rn()?"rtl":"ltr",o=n||r;return{rootDir:o!==r||o!==i?o:n,needsTheme:o!==r}},b2=E.forwardRef(function(e,t){var n=e.className,r=e.theme,i=e.applyTheme,o=e.applyThemeToBody,a=e.styles,s=oF(a,{theme:r,applyTheme:i,className:n}),l=E.useRef(null);return uF(o,s,l),E.createElement(E.Fragment,null,lF(e,s,l,t))});b2.displayName="FabricBase";function lF(e,t,n,r){var i=t.root,o=e.as,a=o===void 0?"div":o,s=e.dir,l=e.theme,u=Tt(e,ho,["dir"]),c=sF(e),d=c.rootDir,f=c.needsTheme,p=E.createElement(a2,{providerRef:n},E.createElement(a,x({dir:d},u,{className:i,ref:Oi(n,r)})));return f&&(p=E.createElement(Nb,{settings:{theme:aF(l,s==="rtl")}},p)),p}function uF(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 Ph={fontFamily:"inherit"},cF={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},dF=function(e){var t=e.applyTheme,n=e.className,r=e.preventBlanketFontInheritance,i=e.theme,o=mn(cF,i);return{root:[o.root,i.fonts.medium,{color:i.palette.neutralPrimary},!r&&{"& button":Ph,"& input":Ph,"& textarea":Ph},t&&{color:i.semanticColors.bodyText,backgroundColor:i.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:i.semanticColors.bodyBackground}]}},fF=an(b2,dF,void 0,{scope:"Fabric"}),gu={},mg={},k2="fluent-default-layer-host",hF="#"+k2;function mF(e,t){gu[e]||(gu[e]=[]),gu[e].push(t);var n=mg[e];if(n)for(var r=0,i=n;r=0&&(n.splice(r,1),n.length===0&&delete gu[e])}var i=mg[e];if(i)for(var o=0,a=i;o0&&t.current.naturalHeight>0||t.current.complete&&FF.test(o):!1;d&&l(wn.loaded)}}),E.useEffect(function(){n==null||n(s)},[s]);var u=E.useCallback(function(d){r==null||r(d),o&&l(wn.loaded)},[o,r]),c=E.useCallback(function(d){i==null||i(d),l(wn.error)},[i]);return[s,u,c]}var N2=E.forwardRef(function(e,t){var n=E.useRef(),r=E.useRef(),i=NF(e,r),o=i[0],a=i[1],s=i[2],l=Tt(e,zb,["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,y=e.className,m=e.imageFit,T=e.role,_=e.maximizeFrame,C=e.styles,F=e.theme,A=e.loading,S=DF(e,o,r,n),D=IF(C,{theme:F,className:y,width:d,height:f,maximizeFrame:_,shouldFadeIn:h,shouldStartVisible:v,isLoaded:o===wn.loaded||o===wn.notLoaded&&e.shouldStartVisible,isLandscape:S===Xu.landscape,isCenter:m===Xn.center,isCenterContain:m===Xn.centerContain,isCenterCover:m===Xn.centerCover,isContain:m===Xn.contain,isCover:m===Xn.cover,isNone:m===Xn.none,isError:o===wn.error,isNotImageFit:m===void 0});return E.createElement("div",{className:D.root,style:{width:d,height:f},ref:n},E.createElement("img",x({},l,{onLoad:a,onError:s,key:xF+e.src||"",className:D.image,ref:Oi(r,t),src:u,alt:c,role:T,loading:A})))});N2.displayName="ImageBase";function DF(e,t,n,r){var i=E.useRef(t),o=E.useRef();return(o===void 0||i.current===wn.notLoaded&&t===wn.loaded)&&(o.current=wF(e,t,n,r)),i.current=t,o.current}function wF(e,t,n,r){var i=e.imageFit,o=e.width,a=e.height;if(e.coverStyle!==void 0)return e.coverStyle;if(t===wn.loaded&&(i===Xn.cover||i===Xn.contain||i===Xn.centerContain||i===Xn.centerCover)&&n.current&&r.current){var s=void 0;typeof o=="number"&&typeof a=="number"&&i!==Xn.centerContain&&i!==Xn.centerCover?s=o/a:s=r.current.clientWidth/r.current.clientHeight;var l=n.current.naturalWidth/n.current.naturalHeight;if(l>s)return Xu.landscape}return Xu.portrait}var RF={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"},OF=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,y=e.isNotImageFit,m=e.theme,T=mn(RF,m),_={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},C=Et(),F=C!==void 0&&C.navigator.msMaxTouchPoints===void 0,A=c&&l||d&&!l?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[T.root,m.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,_],c&&[T.imageContain,F&&{width:"100%",height:"100%",objectFit:"contain"},!F&&A,!F&&_],d&&[T.imageCover,F&&{width:"100%",height:"100%",objectFit:"cover"},!F&&A,!F&&_],f&&[T.imageCenterContain,l&&{maxWidth:"100%"},!l&&{maxHeight:"100%"},_],p&&[T.imageCenterCover,l&&{maxHeight:"100%"},!l&&{maxWidth:"100%"},_],h&&[T.imageNone,{width:"auto",height:"auto"}],y&&[!!n&&!r&&{height:"auto",width:"100%"},!n&&!!r&&{height:"100%",width:"auto"},!!n&&!!r&&{height:"100%",width:"100%"}],l&&T.imageLandscape,!l&&T.imagePortrait,!o&&"is-notLoaded",a&&"is-fadeIn",v&&"is-error"]}},pg=an(N2,OF,void 0,{scope:"Image"},!0);pg.displayName="Image";var La=f1({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),D2="ms-Icon",MF=function(e){var t=e.className,n=e.iconClassName,r=e.isPlaceholder,i=e.isImage,o=e.styles;return{root:[r&&La.placeholder,La.root,i&&La.image,n,t,o&&o.root,o&&o.imageContainer]}},w2=xt(function(e){var t=ak(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),Ud=function(e){var t=e.iconName,n=e.className,r=e.style,i=r===void 0?{}:r,o=w2(t)||{},a=o.iconClassName,s=o.children,l=o.fontFamily,u=o.mergeImageProps,c=Tt(e,Nt),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",x({"data-icon-name":t},f,c,u?{title:void 0,"aria-label":void 0}:{},{className:Pn(D2,La.root,a,!t&&La.placeholder,n),style:x({fontFamily:l},i)}),p)};xt(function(e,t,n){return Ud({iconName:e,className:t,"aria-label":n})});var PF=on({cacheSize:100}),LF=function(e){rt(t,e);function t(n){var r=e.call(this,n)||this;return r._onImageLoadingStateChange=function(i){r.props.imageProps&&r.props.imageProps.onLoadingStateChange&&r.props.imageProps.onLoadingStateChange(i),i===wn.error&&r.setState({imageLoadError:!0})},r.state={imageLoadError:!1},r}return t.prototype.render=function(){var n=this.props,r=n.children,i=n.className,o=n.styles,a=n.iconName,s=n.imageErrorAs,l=n.theme,u=typeof a=="string"&&a.length===0,c=!!this.props.imageProps||this.props.iconType===Hd.image||this.props.iconType===Hd.Image,d=w2(a)||{},f=d.iconClassName,p=d.children,h=d.mergeImageProps,v=PF(o,{theme:l,className:i,iconClassName:f,isImage:c,isPlaceholder:u}),y=c?"span":"i",m=Tt(this.props,Nt,["aria-label"]),T=this.state.imageLoadError,_=x(x({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),C=T&&s||pg,F=this.props["aria-label"]||this.props.ariaLabel,A=_.alt||F||this.props.title,S=!!(A||this.props["aria-labelledby"]||_["aria-label"]||_["aria-labelledby"]),D=S?{role:c||h?void 0:"img","aria-label":c||h?void 0:A}:{"aria-hidden":!0},M=p;return h&&p&&typeof p=="object"&&A&&(M=E.cloneElement(p,{alt:A})),E.createElement(y,x({"data-icon-name":a},D,m,h?{title:void 0,"aria-label":void 0}:{},{className:v.root}),c?E.createElement(C,x({},_)):r||M)},t}(E.Component),Mi=an(LF,MF,void 0,{scope:"Icon"},!0);Mi.displayName="Icon";var BF=function(e){var t=e.className,n=e.imageProps,r=Tt(e,Nt,["aria-label","aria-labelledby","title","aria-describedby"]),i=n.alt||e["aria-label"],o=i||e["aria-labelledby"]||e.title||n["aria-label"]||n["aria-labelledby"]||n.title,a={"aria-labelledby":e["aria-labelledby"],"aria-describedby":e["aria-describedby"],title:e.title},s=o?{}:{"aria-hidden":!0};return E.createElement("div",x({},s,r,{className:Pn(D2,La.root,La.image,t)}),E.createElement(pg,x({},a,n,{alt:o?i:""})))},L0={none:0,all:1,inputOnly:2},In;(function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"})(In||(In={}));var ac="data-is-focusable",HF="data-disable-click-on-enter",Lh="data-focuszone-id",gi="tabindex",Bh="data-no-vertical-wrap",Hh="data-no-horizontal-wrap",Uh=999999999,Pl=-999999999,zh,UF="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 GF(){return zh||(zh=bi({selectors:{":focus":{outline:"none"}}},UF)),zh}var Ll={},sc=new Set,WF=["text","number","password","email","tel","url","search","textarea"],zi=!1,KF=function(e){rt(t,e);function t(n){var r,i,o,a,s=e.call(this,n)||this;s._root=E.createRef(),s._mergedRef=u2(),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,y=c.shouldFocusInnerElementWhenReceivedFocus,m=c.defaultTabbableElement,T=s._isImmediateDescendantOfZone(u.target),_;if(T)_=u.target;else for(var C=u.target;C&&C!==s._root.current;){if(Si(C)&&s._isImmediateDescendantOfZone(C)){_=C;break}C=ti(C,zi)}if(y&&u.target===s._root.current){var F=m&&typeof m=="function"&&s._root.current&&m(s._root.current);F&&Si(F)?(_=F,F.focus()):(s.focus(!0),s._activeElement&&(_=null))}var A=!s._activeElement;_&&_!==s._activeElement&&((T||A)&&s._setFocusAlignment(_,!0,!0),s._activeElement=_,A&&s._updateTabIndexes()),d&&d(s._activeElement,u),(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=ti(d,zi);for(;f.length&&(d=f.pop(),d&&Si(d)&&s._setActiveElement(d,!0),!Zi(d)););}}},s._onKeyDown=function(u,c){if(!s._portalContainsElement(u.target)){var d=s.props,f=d.direction,p=d.disabled,h=d.isInnerZoneKeystroke,v=d.pagingSupportDisabled,y=d.shouldEnterInnerZone;if(!p&&(s.props.onKeyDown&&s.props.onKeyDown(u),!u.isDefaultPrevented()&&!(s._getDocument().activeElement===s._root.current&&s._isInnerZone))){if((y&&y(u)||h&&h(u))&&s._isImmediateDescendantOfZone(u.target)){var m=s._getFirstInnerZone();if(m){if(!m.focus(!0))return}else if(sg(u.target)){if(!s.focusElement(xn(u.target,u.target.firstChild,!0)))return}else return}else{if(u.altKey)return;switch(u.which){case ue.space:if(s._shouldRaiseClicksOnSpace&&s._tryInvokeClickForFocusable(u.target,u))break;return;case ue.left:if(f!==In.vertical&&(s._preventDefaultWhenHandled(u),s._moveFocusLeft(c)))break;return;case ue.right:if(f!==In.vertical&&(s._preventDefaultWhenHandled(u),s._moveFocusRight(c)))break;return;case ue.up:if(f!==In.horizontal&&(s._preventDefaultWhenHandled(u),s._moveFocusUp()))break;return;case ue.down:if(f!==In.horizontal&&(s._preventDefaultWhenHandled(u),s._moveFocusDown()))break;return;case ue.pageDown:if(!v&&s._moveFocusPaging(!0))break;return;case ue.pageUp:if(!v&&s._moveFocusPaging(!1))break;return;case ue.tab:if(s.props.allowTabKey||s.props.handleTabKey===L0.all||s.props.handleTabKey===L0.inputOnly&&s._isElementInput(u.target)){var T=!1;if(s._processingTabKey=!0,f===In.vertical||!s._shouldWrapFocus(s._activeElement,Hh))T=u.shiftKey?s._moveFocusUp():s._moveFocusDown();else{var _=Rn(c)?!u.shiftKey:u.shiftKey;T=_?s._moveFocusLeft(c):s._moveFocusRight(c)}if(s._processingTabKey=!1,T)break;s.props.shouldResetActiveElementWhenTabFromZone&&(s._activeElement=null)}return;case ue.home:if(s._isContentEditableElement(u.target)||s._isElementInput(u.target)&&!s._shouldInputLoseFocus(u.target,!1))return!1;var C=s._root.current&&s._root.current.firstChild;if(s._root.current&&C&&s.focusElement(xn(s._root.current,C,!0)))break;return;case ue.end:if(s._isContentEditableElement(u.target)||s._isElementInput(u.target)&&!s._shouldInputLoseFocus(u.target,!0))return!1;var F=s._root.current&&s._root.current.lastChild;if(s._root.current&&s.focusElement(Qn(s._root.current,F,!0,!0,!0)))break;return;case ue.enter:if(s._shouldRaiseClicksOnEnter&&s._tryInvokeClickForFocusable(u.target,u))break;return;default:return}}u.preventDefault(),u.stopPropagation()}}},s._getHorizontalDistanceFromCenter=function(u,c,d){var f=s._focusAlignment.left||s._focusAlignment.x||0,p=Math.floor(d.top),h=Math.floor(c.bottom),v=Math.floor(d.bottom),y=Math.floor(c.top),m=u&&p>h,T=!u&&v=d.left&&f<=d.left+d.width?0:Math.abs(d.left+d.width/2-f):s._shouldWrapFocus(s._activeElement,Bh)?Uh:Pl},mo(s),s._id=On("FocusZone"),s._focusAlignment={left:0,top:0},s._processingTabKey=!1;var l=(i=(r=n.shouldRaiseClicks)!==null&&r!==void 0?r:t.defaultProps.shouldRaiseClicks)!==null&&i!==void 0?i:!0;return s._shouldRaiseClicksOnEnter=(o=n.shouldRaiseClicksOnEnter)!==null&&o!==void 0?o:l,s._shouldRaiseClicksOnSpace=(a=n.shouldRaiseClicksOnSpace)!==null&&a!==void 0?a:l,s}return t.getOuterZones=function(){return sc.size},t._onKeyDownCapture=function(n){n.which===ue.tab&&sc.forEach(function(r){return r._updateTabIndexes()})},t.prototype.componentDidMount=function(){var n=this._root.current;if(Ll[this._id]=this,n){for(var r=ti(n,zi);r&&r!==this._getDocument().body&&r.nodeType===1;){if(Zi(r)){this._isInnerZone=!0;break}r=ti(r,zi)}this._isInnerZone||(sc.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&&!Zn(this._root.current,this._activeElement,zi)||this._defaultFocusElement&&!Zn(this._root.current,this._defaultFocusElement,zi))&&(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=db(n,this._lastIndexPath);i?(this._setActiveElement(i,!0),i.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete Ll[this._id],this._isInnerZone||(sc.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var n=this,r=this.props,i=r.as,o=r.elementType,a=r.rootProps,s=r.ariaDescribedBy,l=r.ariaLabelledBy,u=r.className,c=Tt(this.props,Nt),d=i||o||"div";this._evaluateFocusBeforeRender();var f=uI();return E.createElement(d,x({"aria-labelledby":l,"aria-describedby":s},c,a,{className:Pn(GF(),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(ac)==="true"&&this._isInnerZone){var i=this._getOwnerZone(this._root.current);if(i!==this._root.current){var o=Ll[i.getAttribute(Lh)];return!!o&&o.focusElement(this._root.current)}return!1}else{if(!n&&this._activeElement&&Zn(this._root.current,this._activeElement)&&Si(this._activeElement)&&(!r||V4(this._activeElement)))return this._activeElement.focus(),!0;var a=this._root.current.firstChild;return this.focusElement(xn(this._root.current,a,!0,void 0,void 0,void 0,void 0,void 0,r))}return!1},t.prototype.focusLast=function(){if(this._root.current){var n=this._root.current&&this._root.current.lastChild;return this.focusElement(Qn(this._root.current,n,!0,!0,!0))}return!1},t.prototype.focusElement=function(n,r){var i=this.props,o=i.onBeforeFocus,a=i.shouldReceiveFocus;return a&&!a(n)||o&&!o(n)?!1:n?(this._setActiveElement(n,r),this._activeElement&&this._activeElement.focus(),!0):!1},t.prototype.setFocusAlignment=function(n){this._focusAlignment=n},Object.defineProperty(t.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),t.prototype._evaluateFocusBeforeRender=function(){var n=this._root.current,r=this._getDocument();if(r){var i=r.activeElement;if(i!==n){var o=Zn(n,i,!1);this._lastIndexPath=o?fb(n,i):void 0}}},t.prototype._setParkedFocus=function(n){var r=this._root.current;r&&this._isParked!==n&&(this._isParked=n,n?(this.props.allowFocusRoot||(this._parkedTabIndex=r.getAttribute("tabindex"),r.setAttribute("tabindex","-1")),r.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(r.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):r.removeAttribute("tabindex")))},t.prototype._setActiveElement=function(n,r){var i=this._activeElement;this._activeElement=n,i&&(Zi(i)&&this._updateTabIndexes(i),i.tabIndex=-1),this._activeElement&&((!this._focusAlignment||r)&&this._setFocusAlignment(n,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(n){this.props.preventDefaultWhenHandled&&n.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(n,r){var i=n;if(i===this._root.current)return!1;do{if(i.tagName==="BUTTON"||i.tagName==="A"||i.tagName==="INPUT"||i.tagName==="TEXTAREA"||i.tagName==="SUMMARY")return!1;if(this._isImmediateDescendantOfZone(i)&&i.getAttribute(ac)==="true"&&i.getAttribute(HF)!=="true")return zF(i,r),!0;i=ti(i,zi)}while(i!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(n){if(n=n||this._activeElement||this._root.current,!n)return null;if(Zi(n))return Ll[n.getAttribute(Lh)];for(var r=n.firstElementChild;r;){if(Zi(r))return Ll[r.getAttribute(Lh)];var i=this._getFirstInnerZone(r);if(i)return i;r=r.nextElementSibling}return null},t.prototype._moveFocus=function(n,r,i,o){o===void 0&&(o=!0);var a=this._activeElement,s=-1,l=void 0,u=!1,c=this.props.direction===In.bidirectional;if(!a||!this._root.current||this._isElementInput(a)&&!this._shouldInputLoseFocus(a,n))return!1;var d=c?a.getBoundingClientRect():null;do if(a=n?xn(this._root.current,a):Qn(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(xn(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Qn(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return u},t.prototype._moveFocusDown=function(){var n=this,r=-1,i=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!0,function(o,a){var s=-1,l=Math.floor(a.top),u=Math.floor(o.bottom);return l=u||l===r)&&(r=l,i>=a.left&&i<=a.left+a.width?s=0:s=Math.abs(a.left+a.width/2-i)),s)})?(this._setFocusAlignment(this._activeElement,!1,!0),!0):!1},t.prototype._moveFocusUp=function(){var n=this,r=-1,i=this._focusAlignment.left||this._focusAlignment.x||0;return this._moveFocus(!1,function(o,a){var s=-1,l=Math.floor(a.bottom),u=Math.floor(a.top),c=Math.floor(o.top);return l>c?n._shouldWrapFocus(n._activeElement,Bh)?Uh: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,Hh);return this._moveFocus(Rn(n),function(o,a){var s=-1,l;return Rn(n)?l=parseFloat(a.top.toFixed(3))parseFloat(o.top.toFixed(3)),l&&a.right<=o.right&&r.props.direction!==In.vertical?s=o.right-a.right:i||(s=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,Hh);return this._moveFocus(!Rn(n),function(o,a){var s=-1,l;return Rn(n)?l=parseFloat(a.bottom.toFixed(3))>parseFloat(o.top.toFixed(3)):l=parseFloat(a.top.toFixed(3))=o.left&&r.props.direction!==In.vertical?s=a.left-o.left:i||(s=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=rg(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?xn(this._root.current,i):Qn(this._root.current,i),i){var f=i.getBoundingClientRect(),p=Math.floor(f.top),h=Math.floor(d.bottom),v=Math.floor(f.bottom),y=Math.floor(d.top),m=this._getHorizontalDistanceFromCenter(n,d,f),T=n&&p>h+c,_=!n&&v-1&&(n&&p>l?(l=p,a=m,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?Y4(n,r):!0},t.prototype._portalContainsElement=function(n){return n&&!!this._root.current&&$4(n,this._root.current)},t.prototype._getDocument=function(){return Bn(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:In.bidirectional,shouldRaiseClicks:!0},t}(E.Component),Yn;(function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"})(Yn||(Yn={}));function Zu(e){return e.canCheck?!!(e.isChecked||e.checked):typeof e.isChecked=="boolean"?e.isChecked:typeof e.checked=="boolean"?e.checked:null}function uo(e){return!!(e.subMenuProps||e.items)}function Fi(e){return!!(e.isDisabled||e.disabled)}function R2(e){var t=Zu(e),n=t!==null;return n?"menuitemcheckbox":"menuitem"}var t5=function(e){var t=e.item,n=e.classNames,r=t.iconProps;return E.createElement(Mi,x({},r,{className:n.icon}))},jF=function(e){var t=e.item,n=e.hasIcons;return n?t.onRenderIcon?t.onRenderIcon(e,t5):t5(e):null},$F=function(e){var t=e.onCheckmarkClick,n=e.item,r=e.classNames,i=Zu(n);if(t){var o=function(a){return t(n,a)};return E.createElement(Mi,{iconName:n.canCheck!==!1&&i?"CheckMark":"",className:r.checkmarkIcon,onClick:o})}return null},VF=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},YF=function(e){var t=e.item,n=e.classNames;return t.secondaryText?E.createElement("span",{className:n.secondaryText},t.secondaryText):null},qF=function(e){var t=e.item,n=e.classNames,r=e.theme;return uo(t)?E.createElement(Mi,x({iconName:Rn(r)?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:n.subMenuIcon})):null},QF=function(e){rt(t,e);function t(n){var r=e.call(this,n)||this;return r.openSubMenu=function(){var i=r.props,o=i.item,a=i.openSubMenu,s=i.getSubmenuTarget;if(s){var l=s();uo(o)&&a&&l&&a(o,l)}},r.dismissSubMenu=function(){var i=r.props,o=i.item,a=i.dismissSubMenu;uo(o)&&a&&a()},r.dismissMenu=function(i){var o=r.props.dismissMenu;o&&o(void 0,i)},mo(r),r}return t.prototype.render=function(){var n=this.props,r=n.item,i=n.classNames,o=r.onRenderContent||this._renderLayout;return E.createElement("div",{className:r.split?i.linkContentMenu:i.linkContent},o(this.props,{renderCheckMarkIcon:$F,renderItemIcon:jF,renderItemName:VF,renderSecondaryText:YF,renderSubMenuIcon:qF}))},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),XF=xt(function(e){return f1({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})}),Do=36,n5=h2(0,f2),ZF=xt(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:Do,lineHeight:Do,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:a.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(t={},t[re]={color:"GrayText",opacity:1},t)},rootHovered:{backgroundColor:u,color:c,selectors:{".ms-ContextualMenu-icon":{color:l.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:l.neutralPrimary}}},rootFocused:{backgroundColor:l.white},rootChecked:{selectors:{".ms-ContextualMenu-checkmarkIcon":{color:l.neutralPrimary}}},rootPressed:{backgroundColor:d,selectors:{".ms-ContextualMenu-icon":{color:l.themeDark},".ms-ContextualMenu-submenuIcon":{color:l.neutralPrimary}}},rootExpanded:{backgroundColor:d,color:a.bodyTextChecked,selectors:(n={".ms-ContextualMenu-submenuIcon":(r={},r[re]={color:"inherit"},r)},n[re]=x({},Kt()),n)},linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},secondaryText:{color:e.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:Do,fontSize:ri.medium,width:ri.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(i={},i[n5]={fontSize:ri.large,width:ri.large},i)},iconColor:{color:a.menuIcon},iconDisabled:{color:a.disabledBodyText},checkmarkIcon:{color:a.bodySubtext},subMenuIcon:{height:Do,lineHeight:Do,color:l.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:ri.small,selectors:(o={":hover":{color:l.neutralPrimary},":active":{color:l.neutralPrimary}},o[n5]={fontSize:ri.medium},o)},splitButtonFlexContainer:[Zo(e),{display:"flex",height:Do,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]};return Li(p)}),r5="28px",JF=h2(0,f2),ex=xt(function(e){var t;return f1(XF(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[JF]={right:32},t)},divider:{height:16,width:1}})}),tx={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"},nx=xt(function(e,t,n,r,i,o,a,s,l,u,c,d){var f,p,h,v,y=ZF(e),m=mn(tx,e);return f1({item:[m.item,y.item,a],divider:[m.divider,y.divider,s],root:[m.root,y.root,r&&[m.isChecked,y.rootChecked],i&&y.anchorLink,n&&[m.isExpanded,y.rootExpanded],t&&[m.isDisabled,y.rootDisabled],!t&&!n&&[{selectors:(f={":hover":y.rootHovered,":active":y.rootPressed},f["."+vn+" &:focus, ."+vn+" &:focus:hover"]=y.rootFocused,f["."+vn+" &:hover"]={background:"inherit;"},f)}],d],splitPrimary:[y.root,{width:"calc(100% - "+r5+")"},r&&["is-checked",y.rootChecked],(t||c)&&["is-disabled",y.rootDisabled],!(t||c)&&!r&&[{selectors:(p={":hover":y.rootHovered},p[":hover ~ ."+m.splitMenu]=y.rootHovered,p[":active"]=y.rootPressed,p["."+vn+" &:focus, ."+vn+" &:focus:hover"]=y.rootFocused,p["."+vn+" &:hover"]={background:"inherit;"},p)}]],splitMenu:[m.splitMenu,y.root,{flexBasis:"0",padding:"0 8px",minWidth:r5},n&&["is-expanded",y.rootExpanded],t&&["is-disabled",y.rootDisabled],!t&&!n&&[{selectors:(h={":hover":y.rootHovered,":active":y.rootPressed},h["."+vn+" &:focus, ."+vn+" &:focus:hover"]=y.rootFocused,h["."+vn+" &:hover"]={background:"inherit;"},h)}]],anchorLink:y.anchorLink,linkContent:[m.linkContent,y.linkContent],linkContentMenu:[m.linkContentMenu,y.linkContent,{justifyContent:"center"}],icon:[m.icon,o&&y.iconColor,y.icon,l,t&&[m.isDisabled,y.iconDisabled]],iconColor:y.iconColor,checkmarkIcon:[m.checkmarkIcon,o&&y.checkmarkIcon,y.icon,l],subMenuIcon:[m.subMenuIcon,y.subMenuIcon,u,n&&{color:e.palette.neutralPrimary},t&&[y.iconDisabled]],label:[m.label,y.label],secondaryText:[m.secondaryText,y.secondaryText],splitContainer:[y.splitButtonFlexContainer,!t&&!r&&[{selectors:(v={},v["."+vn+" &:focus, ."+vn+" &:focus:hover"]=y.rootFocused,v)}]],screenReaderText:[m.screenReaderText,y.screenReaderText,lg,{visibility:"hidden"}]})}),O2=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 nx(t,n,r,i,o,a,s,l,u,c,d,f)},Ju=an(QF,O2,void 0,{scope:"ContextualMenuItem"}),gg=function(e){rt(t,e);function t(n){var r=e.call(this,n)||this;return r._onItemMouseEnter=function(i){var o=r.props,a=o.item,s=o.onItemMouseEnter;s&&s(a,i,i.currentTarget)},r._onItemClick=function(i){var o=r.props,a=o.item,s=o.onItemClickBase;s&&s(a,i,i.currentTarget)},r._onItemMouseLeave=function(i){var o=r.props,a=o.item,s=o.onItemMouseLeave;s&&s(a,i)},r._onItemKeyDown=function(i){var o=r.props,a=o.item,s=o.onItemKeyDown;s&&s(a,i)},r._onItemMouseMove=function(i){var o=r.props,a=o.item,s=o.onItemMouseMove;s&&s(a,i,i.currentTarget)},r._getSubmenuTarget=function(){},mo(r),r}return t.prototype.shouldComponentUpdate=function(n){return!ng(n,this.props)},t}(E.Component),rx="ktp",i5="-",ix="data-ktp-target",ox="data-ktp-execute-target",ax="ktp-layer-id",yi;(function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"})(yi||(yi={}));var sx=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(t){this.delayUpdatingKeytipChange=t},e.prototype.register=function(t,n){n===void 0&&(n=!1);var r=t;n||(r=this.addParentOverflow(t),this.sequenceMapping[r.keySequences.toString()]=r);var i=this._getUniqueKtp(r);if(n?this.persistedKeytips[i.uniqueID]=i:this.keytips[i.uniqueID]=i,this.inKeytipMode||!this.delayUpdatingKeytipChange){var o=n?yi.PERSISTED_KEYTIP_ADDED:yi.KEYTIP_ADDED;Dr.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)&&Dr.raise(this,yi.KEYTIP_UPDATED,{keytip:i.keytip,uniqueID:i.uniqueID}))},e.prototype.unregister=function(t,n,r){r===void 0&&(r=!1),r?delete this.persistedKeytips[n]:delete this.keytips[n],!r&&delete this.sequenceMapping[t.keySequences.toString()];var i=r?yi.PERSISTED_KEYTIP_REMOVED:yi.KEYTIP_REMOVED;(this.inKeytipMode||!this.delayUpdatingKeytipChange)&&Dr.raise(this,i,{keytip:t,uniqueID:n})},e.prototype.enterKeytipMode=function(){Dr.raise(this,yi.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){Dr.raise(this,yi.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var t=this;return Object.keys(this.keytips).map(function(n){return t.keytips[n].keytip})},e.prototype.addParentOverflow=function(t){var n=ui([],t.keySequences);if(n.pop(),n.length!==0){var r=this.sequenceMapping[n.toString()];if(r&&r.overflowSetSequence)return x(x({},t),{overflowSetSequence:r.overflowSetSequence})}return t},e.prototype.menuExecute=function(t,n){Dr.raise(this,yi.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:t,keytipSequences:n})},e.prototype._getUniqueKtp=function(t,n){return n===void 0&&(n=On()),{keytip:x({},t),uniqueID:n}},e._instance=new e,e}();function M2(e){return e.reduce(function(t,n){return t+i5+n.split("").join(i5)},rx)}function lx(e,t){var n=t.length,r=ui([],t).pop(),i=ui([],e);return $7(i,n-1,r)}function ux(e){var t=" "+ax;return e.length?t+" "+M2(e):t}function cx(e){var t=E.useRef(),n=e.keytipProps?x({disabled:e.disabled},e.keytipProps):void 0,r=Lr(sx.getInstance()),i=dg(e);rl(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)}),rl(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=dx(r,n,e.ariaDescribedBy)),o}function dx(e,t,n){var r=e.addParentOverflow(t),i=h1(n,ux(r.keySequences)),o=ui([],r.keySequences);r.overflowSetSequence&&(o=lx(o,r.overflowSetSequence));var a=M2(o);return{ariaDescribedBy:i,keytipId:a}}var e1=function(e){var t,n=e.children,r=Pi(e,["children"]),i=cx(r),o=i.keytipId,a=i.ariaDescribedBy;return n((t={},t[ix]=o,t[ox]=o,t["aria-describedby"]=a,t))},fx=function(e){rt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._anchor=E.createRef(),n._getMemoizedMenuButtonKeytipProps=xt(function(r){return x(x({},r),{hasMenu:!0})}),n._getSubmenuTarget=function(){return n._anchor.current?n._anchor.current:void 0},n._onItemClick=function(r){var i=n.props,o=i.item,a=i.onItemClick;a&&a(o,r)},n._renderAriaDescription=function(r,i){return r?E.createElement("span",{id:n._ariaDescriptionId,className:i},r):null},n}return t.prototype.render=function(){var n=this,r=this.props,i=r.item,o=r.classNames,a=r.index,s=r.focusableElementIndex,l=r.totalItemCount,u=r.hasCheckmarks,c=r.hasIcons,d=r.contextualMenuItemAs,f=d===void 0?Ju:d,p=r.expandedMenuItemKey,h=r.onItemClick,v=r.openSubMenu,y=r.dismissSubMenu,m=r.dismissMenu,T=i.rel;i.target&&i.target.toLowerCase()==="_blank"&&(T=T||"nofollow noopener noreferrer");var _=uo(i),C=Tt(i,Z4),F=Fi(i),A=i.itemProps,S=i.ariaDescription,D=i.keytipProps;D&&_&&(D=this._getMemoizedMenuButtonKeytipProps(D)),S&&(this._ariaDescriptionId=On());var M=h1(i.ariaDescribedBy,S?this._ariaDescriptionId:void 0,C["aria-describedby"]),I={"aria-describedby":M};return E.createElement("div",null,E.createElement(e1,{keytipProps:i.keytipProps,ariaDescribedBy:M,disabled:F},function(L){return E.createElement("a",x({},I,C,L,{ref:n._anchor,href:i.href,target:i.target,rel:T,className:o.root,role:"menuitem","aria-haspopup":_||void 0,"aria-expanded":_?i.key===p:void 0,"aria-posinset":s+1,"aria-setsize":l,"aria-disabled":Fi(i),style:i.style,onClick:n._onItemClick,onMouseEnter:n._onItemMouseEnter,onMouseLeave:n._onItemMouseLeave,onMouseMove:n._onItemMouseMove,onKeyDown:_?n._onItemKeyDown:void 0}),E.createElement(f,x({componentRef:i.componentRef,item:i,classNames:o,index:a,onCheckmarkClick:u&&h?h:void 0,hasIcons:c,openSubMenu:v,dismissSubMenu:y,dismissMenu:m,getSubmenuTarget:n._getSubmenuTarget},A)),n._renderAriaDescription(S,o.screenReaderText))}))},t}(gg),hx=function(e){rt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._btn=E.createRef(),n._getMemoizedMenuButtonKeytipProps=xt(function(r){return x(x({},r),{hasMenu:!0})}),n._renderAriaDescription=function(r,i){return r?E.createElement("span",{id:n._ariaDescriptionId,className:i},r):null},n._getSubmenuTarget=function(){return n._btn.current?n._btn.current:void 0},n}return t.prototype.render=function(){var n=this,r=this.props,i=r.item,o=r.classNames,a=r.index,s=r.focusableElementIndex,l=r.totalItemCount,u=r.hasCheckmarks,c=r.hasIcons,d=r.contextualMenuItemAs,f=d===void 0?Ju:d,p=r.expandedMenuItemKey,h=r.onItemMouseDown,v=r.onItemClick,y=r.openSubMenu,m=r.dismissSubMenu,T=r.dismissMenu,_=Zu(i),C=_!==null,F=R2(i),A=uo(i),S=i.itemProps,D=i.ariaLabel,M=i.ariaDescription,I=Tt(i,Wa);delete I.disabled;var L=i.role||F;M&&(this._ariaDescriptionId=On());var O=h1(i.ariaDescribedBy,M?this._ariaDescriptionId:void 0,I["aria-describedby"]),X={className:o.root,onClick:this._onItemClick,onKeyDown:A?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(U){return h?h(i,U):void 0},onMouseMove:this._onItemMouseMove,href:i.href,title:i.title,"aria-label":D,"aria-describedby":O,"aria-haspopup":A||void 0,"aria-expanded":A?i.key===p:void 0,"aria-posinset":s+1,"aria-setsize":l,"aria-disabled":Fi(i),"aria-checked":(L==="menuitemcheckbox"||L==="menuitemradio")&&C?!!_:void 0,"aria-selected":L==="menuitem"&&C?!!_:void 0,role:L,style:i.style},H=i.keytipProps;return H&&A&&(H=this._getMemoizedMenuButtonKeytipProps(H)),E.createElement(e1,{keytipProps:H,ariaDescribedBy:O,disabled:Fi(i)},function(U){return E.createElement("button",x({ref:n._btn},I,X,U),E.createElement(f,x({componentRef:i.componentRef,item:i,classNames:o,index:a,onCheckmarkClick:u&&v?v:void 0,hasIcons:c,openSubMenu:y,dismissSubMenu:m,dismissMenu:T,getSubmenuTarget:n._getSubmenuTarget},S)),n._renderAriaDescription(M,o.screenReaderText))})},t}(gg),mx=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}]}},px=on(),P2=E.forwardRef(function(e,t){var n=e.styles,r=e.theme,i=e.getClassNames,o=e.className,a=px(n,{theme:r,getClassNames:i,className:o});return E.createElement("span",{className:a.wrapper,ref:t},E.createElement("span",{className:a.divider}))});P2.displayName="VerticalDividerBase";var gx=an(P2,mx,void 0,{scope:"VerticalDivider"}),Ex=500,vx=function(e){rt(t,e);function t(n){var r=e.call(this,n)||this;return r._getMemoizedMenuButtonKeytipProps=xt(function(i){return x(x({},i),{hasMenu:!0})}),r._onItemKeyDown=function(i){var o=r.props,a=o.item,s=o.onItemKeyDown;i.which===ue.enter?(r._executeItemClick(i),i.preventDefault(),i.stopPropagation()):s&&s(a,i)},r._getSubmenuTarget=function(){return r._splitButton},r._renderAriaDescription=function(i,o){return i?E.createElement("span",{id:r._ariaDescriptionId,className:o},i):null},r._onItemMouseEnterPrimary=function(i){var o=r.props,a=o.item,s=o.onItemMouseEnter;s&&s(x(x({},a),{subMenuProps:void 0,items:void 0}),i,r._splitButton)},r._onItemMouseEnterIcon=function(i){var o=r.props,a=o.item,s=o.onItemMouseEnter;s&&s(a,i,r._splitButton)},r._onItemMouseMovePrimary=function(i){var o=r.props,a=o.item,s=o.onItemMouseMove;s&&s(x(x({},a),{subMenuProps:void 0,items:void 0}),i,r._splitButton)},r._onItemMouseMoveIcon=function(i){var o=r.props,a=o.item,s=o.onItemMouseMove;s&&s(a,i,r._splitButton)},r._onIconItemClick=function(i){var o=r.props,a=o.item,s=o.onItemClickBase;s&&s(a,i,r._splitButton?r._splitButton:i.currentTarget)},r._executeItemClick=function(i){var o=r.props,a=o.item,s=o.executeItemClick,l=o.onItemClick;if(!(a.disabled||a.isDisabled)){if(r._processingTouch&&l)return l(a,i);s&&s(a,i)}},r._onTouchStart=function(i){r._splitButton&&!("onpointerdown"in r._splitButton)&&r._handleTouchAndPointerEvent(i)},r._onPointerDown=function(i){i.pointerType==="touch"&&(r._handleTouchAndPointerEvent(i),i.preventDefault(),i.stopImmediatePropagation())},r._async=new hl(r),r._events=new Dr(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=uo(i),h=i.keytipProps;h&&(h=this._getMemoizedMenuButtonKeytipProps(h));var v=i.ariaDescription;return v&&(this._ariaDescriptionId=On()),E.createElement(e1,{keytipProps:h,disabled:Fi(i)},function(y){return E.createElement("div",{"data-ktp-target":y["data-ktp-target"],ref:function(m){return n._splitButton=m},role:R2(i),"aria-label":i.ariaLabel,className:o.splitContainer,"aria-disabled":Fi(i),"aria-expanded":p?i.key===f:void 0,"aria-haspopup":!0,"aria-describedby":h1(i.ariaDescribedBy,v?n._ariaDescriptionId:void 0,y["aria-describedby"]),"aria-checked":i.isChecked||i.checked,"aria-posinset":s+1,"aria-setsize":l,onMouseEnter:n._onItemMouseEnterPrimary,onMouseLeave:d?d.bind(n,x(x({},i),{subMenuProps:null,items:null})):void 0,onMouseMove:n._onItemMouseMovePrimary,onKeyDown:n._onItemKeyDown,onClick:n._executeItemClick,onTouchStart:n._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":i["aria-roledescription"]},n._renderSplitPrimaryButton(i,o,a,u,c),n._renderSplitDivider(i),n._renderSplitIconButton(i,o,a,y),n._renderAriaDescription(v,o.screenReaderText))})},t.prototype._renderSplitPrimaryButton=function(n,r,i,o,a){var s=this.props,l=s.contextualMenuItemAs,u=l===void 0?Ju:l,c=s.onItemClick,d={key:n.key,disabled:Fi(n)||n.primaryDisabled,name:n.name,text:n.text||n.name,secondaryText:n.secondaryText,className:r.splitPrimary,canCheck:n.canCheck,isChecked:n.isChecked,checked:n.checked,iconProps:n.iconProps,onRenderIcon:n.onRenderIcon,data:n.data,"data-is-focusable":!1},f=n.itemProps;return E.createElement("button",x({},Tt(d,Wa)),E.createElement(u,x({"data-is-focusable":!1,item:d,classNames:r,index:i,onCheckmarkClick:o&&c?c:void 0,hasIcons:a},f)))},t.prototype._renderSplitDivider=function(n){var r=n.getSplitButtonVerticalDividerClassNames||ex;return E.createElement(gx,{getClassNames:r})},t.prototype._renderSplitIconButton=function(n,r,i,o){var a=this.props,s=a.contextualMenuItemAs,l=s===void 0?Ju:s,u=a.onItemMouseLeave,c=a.onItemMouseDown,d=a.openSubMenu,f=a.dismissSubMenu,p=a.dismissMenu,h={onClick:this._onIconItemClick,disabled:Fi(n),className:r.splitMenu,subMenuProps:n.subMenuProps,submenuIconProps:n.submenuIconProps,split:!0,key:n.key},v=x(x({},Tt(h,Wa)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:u?u.bind(this,n):void 0,onMouseDown:function(m){return c?c(n,m):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":o["data-ktp-execute-target"],"aria-hidden":!0}),y=n.itemProps;return E.createElement("button",x({},v),E.createElement(l,x({componentRef:n.componentRef,item:h,classNames:r,index:i,hasIcons:!1,openSubMenu:d,dismissSubMenu:f,dismissMenu:p,getSubmenuTarget:this._getSubmenuTarget},y)))},t.prototype._handleTouchAndPointerEvent=function(n){var r=this,i=this.props.onTap;i&&i(n),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout(function(){r._processingTouch=!1,r._lastTouchTimeoutId=void 0},Ex)},t}(gg),Tx=function(e){rt(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=Wb(this,n):this._hoisted&&Kb(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 _x=[479,639,1023,1365,1919,99999999],L2;function Eg(){var e;return(e=L2)!==null&&e!==void 0?e:Ka.large}function B2(e){var t,n=(t=function(r){rt(i,r);function i(o){var a=r.call(this,o)||this;return a._onResize=function(){var s=H2(a.context.window);s!==a.state.responsiveMode&&a.setState({responsiveMode:s})},a._events=new Dr(a),a._updateComposedComponentRef=a._updateComposedComponentRef.bind(a),a.state={responsiveMode:Eg()},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,x({ref:this._updateComposedComponentRef,responsiveMode:o},this.props))},i}(Tx),t.contextType=fg,t);return X4(e,n)}function yx(e){try{return e.document.documentElement.clientWidth}catch{return e.innerWidth}}function H2(e){var t=Ka.small;if(e){try{for(;yx(e)>_x[t];)t++}catch{t=Eg()}L2=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 U2=function(e,t){var n=E.useState(Eg()),r=n[0],i=n[1],o=E.useCallback(function(){var s=H2(Et(e.current));r!==s&&i(s)},[e,r]),a=yf();return Qu(a,"resize",o),E.useEffect(function(){t===void 0&&o()},[t]),t??r},Cx=E.createContext({}),Sx=on(),Ax=on(),bx={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:Pt.bottomAutoEdge,beakWidth:16};function z2(e,t){var n=t==null?void 0:t.target,r=e.subMenuProps?e.subMenuProps.items:e.items;if(r){for(var i=[],o=0,a=r;o0)return E.createElement("li",{role:"presentation",key:_e.key||G.key||"section-"+ee},E.createElement("div",x({},je),E.createElement("ul",{className:j.list,role:"presentation"},_e.topDivider&&sn(ee,R,!0,!0),Je&&Vt(Je,G.key||ee,R,G.title),_e.items.map(function(L1,bl){return _t(L1,bl,bl,_e.items.length,Ae,Ke,j)}),_e.bottomDivider&&sn(ee,R,!1,!0))))}},Vt=function(G,R,j,ee){return E.createElement("li",{role:"presentation",title:ee,key:R,className:j.item},G)},sn=function(G,R,j,ee){return ee||G>0?E.createElement("li",{role:"separator",key:"separator-"+G+(j===void 0?"":j?"-top":"-bottom"),className:R.divider,"aria-hidden":"true"}):null},Yt=function(G,R,j,ee,Ae,Ke,_e){if(G.onRender)return G.onRender(x({"aria-posinset":ee+1,"aria-setsize":Ae},G),l);var Je=i.contextualMenuItemAs,je={item:G,classNames:R,index:j,focusableElementIndex:ee,totalItemCount:Ae,hasCheckmarks:Ke,hasIcons:_e,contextualMenuItemAs:Je,onItemMouseEnter:V,onItemMouseLeave:k,onItemMouseMove:b,onItemMouseDown:Lx,executeItemClick:ut,onItemKeyDown:P,expandedMenuItemKey:h,openSubMenu:v,dismissSubMenu:m,dismissMenu:l};return G.href?E.createElement(fx,x({},je,{onItemClick:we})):G.split&&uo(G)?E.createElement(vx,x({},je,{onItemClick:me,onItemClickBase:Se,onTap:I})):E.createElement(hx,x({},je,{onItemClick:me,onItemClickBase:Se}))},ie=function(G,R,j,ee,Ae,Ke){var _e=i.contextualMenuItemAs,Je=_e===void 0?Ju:_e,je=G.itemProps,Ut=G.id,dt=je&&Tt(je,ho);return E.createElement("div",x({id:Ut,className:j.header},dt,{style:G.style}),E.createElement(Je,x({item:G,classNames:R,index:ee,onCheckmarkClick:Ae?me:void 0,hasIcons:Ke},je)))},Ee=i.isBeakVisible,le=i.items,$e=i.labelElementId,Ve=i.id,Ot=i.className,ve=i.beakWidth,yt=i.directionalHint,qt=i.directionalHintForRTL,Wn=i.alignTargetEdge,At=i.gapSpace,Qt=i.coverTarget,z=i.ariaLabel,Y=i.doNotLayer,se=i.target,pe=i.bounds,q=i.useTargetWidth,Re=i.useTargetAsMinWidth,Oe=i.directionalHintFixed,Ze=i.shouldFocusOnMount,ze=i.shouldFocusOnContainer,ke=i.title,Ce=i.styles,or=i.theme,ye=i.calloutProps,An=i.onRenderSubMenu,ar=An===void 0?a5:An,sa=i.onRenderMenuList,la=sa===void 0?function(G,R){return Ue(G,Sr)}:sa,rs=i.focusZoneProps,ua=i.getMenuClassNames,Sr=ua?ua(or,Ot):Sx(Ce,{theme:or,className:Ot}),ca=Ye(le);function Ye(G){for(var R=0,j=G;R0){for(var br=0,is=0,Al=le;is 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":l5,":focus":l5}}],iconDisabled:{color:l,selectors:(t={},t[re]={color:"GrayText"},t)},menuIconDisabled:{color:l,selectors:(n={},n[re]={color:"GrayText"},n)},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:u5(o.mediumPlus.fontSize),menuIcon:u5(o.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:lg}}),_g=xt(function(e,t){var n,r,i,o,a,s,l,u,c,d,f,p,h,v=e.effects,y=e.palette,m=e.semanticColors,T={left:-2,top:-2,bottom:-2,right:-2,border:"none"},_={position:"absolute",width:1,right:31,top:8,bottom:8},C={splitButtonContainer:[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[re]=x({color:"WindowText",backgroundColor:"Window",border:"1px solid WindowText",borderRightWidth:"0"},Kt()),n[":hover"]={border:"none"},n[":active"]={border:"none"},n)},".ms-Button--primary + .ms-Button":{border:"none",selectors:(r={},r[re]={border:"1px solid WindowText",borderLeftWidth:"0"},r)}}}],splitButtonContainerHovered:{selectors:{".ms-Button--primary":{selectors:(i={},i[re]={color:"Window",backgroundColor:"Highlight"},i)},".ms-Button.is-disabled":{color:m.buttonTextDisabled,selectors:(o={},o[re]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},o)}}},splitButtonContainerChecked:{selectors:{".ms-Button--primary":{selectors:(a={},a[re]=x({color:"Window",backgroundColor:"WindowText"},Kt()),a)}}},splitButtonContainerCheckedHovered:{selectors:{".ms-Button--primary":{selectors:(s={},s[re]=x({color:"Window",backgroundColor:"WindowText"},Kt()),s)}}},splitButtonContainerFocused:{outline:"none!important"},splitButtonMenuButton:(l={padding:6,height:"auto",boxSizing:"border-box",borderRadius:0,borderTopRightRadius:v.roundedCorner2,borderBottomRightRadius:v.roundedCorner2,border:"1px solid "+y.neutralSecondaryAlt,borderLeft:"none",outline:"transparent",userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",verticalAlign:"top",width:32,marginLeft:-1,marginTop:0,marginRight:0,marginBottom:0},l[re]={".ms-Button-menuIcon":{color:"WindowText"}},l),splitButtonDivider:x(x({},_),{selectors:(u={},u[re]={backgroundColor:"WindowText"},u)}),splitButtonDividerDisabled:x(x({},_),{selectors:(c={},c[re]={backgroundColor:"GrayText"},c)}),splitButtonMenuButtonDisabled:{pointerEvents:"none",border:"none",selectors:(d={":hover":{cursor:"default"},".ms-Button--primary":{selectors:(f={},f[re]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},f)},".ms-Button-menuIcon":{selectors:(p={},p[re]={color:"GrayText"},p)}},d[re]={color:"GrayText",border:"1px solid GrayText",backgroundColor:"Window"},d)},splitButtonFlexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},splitButtonContainerDisabled:{outline:"none",border:"none",selectors:(h={},h[re]=x({color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},Kt()),h)},splitButtonMenuFocused:x({},Zo(e,{highContrastStyle:T,inset:2}))};return Li(C,t)}),q2=function(){return{position:"absolute",width:1,right:31,top:8,bottom:8}};function Kx(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,y=a.buttonTextCheckedHovered;return{root:{backgroundColor:l,color:f},rootHovered:{backgroundColor:c,color:p,selectors:(t={},t[re]={borderColor:"Highlight",color:"Highlight"},t)},rootPressed:{backgroundColor:u,color:v},rootExpanded:{backgroundColor:u,color:v},rootChecked:{backgroundColor:u,color:v},rootCheckedHovered:{backgroundColor:u,color:y},rootDisabled:{color:h,backgroundColor:d,selectors:(n={},n[re]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},n)},splitButtonContainer:{selectors:(r={},r[re]={border:"none"},r)},splitButtonMenuButton:{color:s.white,backgroundColor:"transparent",selectors:{":hover":{backgroundColor:s.neutralLight,selectors:(i={},i[re]={color:"Highlight"},i)}}},splitButtonMenuButtonDisabled:{backgroundColor:a.buttonBackgroundDisabled,selectors:{":hover":{backgroundColor:a.buttonBackgroundDisabled}}},splitButtonDivider:x(x({},q2()),{backgroundColor:s.neutralTertiaryAlt,selectors:(o={},o[re]={backgroundColor:"WindowText"},o)}),splitButtonDividerDisabled:{backgroundColor:e.palette.neutralTertiaryAlt},splitButtonMenuButtonChecked:{backgroundColor:s.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:s.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:s.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:s.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:a.buttonText},splitButtonMenuIconDisabled:{color:a.buttonTextDisabled}}}function jx(e){var t,n,r,i,o,a,s,l,u,c=e.palette,d=e.semanticColors;return{root:{backgroundColor:d.primaryButtonBackground,border:"1px solid "+d.primaryButtonBackground,color:d.primaryButtonText,selectors:(t={},t[re]=x({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},Kt()),t["."+vn+" &:focus"]={selectors:{":after":{border:"none",outlineColor:c.white}}},t)},rootHovered:{backgroundColor:d.primaryButtonBackgroundHovered,border:"1px solid "+d.primaryButtonBackgroundHovered,color:d.primaryButtonTextHovered,selectors:(n={},n[re]={color:"Window",backgroundColor:"Highlight",borderColor:"Highlight"},n)},rootPressed:{backgroundColor:d.primaryButtonBackgroundPressed,border:"1px solid "+d.primaryButtonBackgroundPressed,color:d.primaryButtonTextPressed,selectors:(r={},r[re]=x({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},Kt()),r)},rootExpanded:{backgroundColor:d.primaryButtonBackgroundPressed,color:d.primaryButtonTextPressed},rootChecked:{backgroundColor:d.primaryButtonBackgroundPressed,color:d.primaryButtonTextPressed},rootCheckedHovered:{backgroundColor:d.primaryButtonBackgroundPressed,color:d.primaryButtonTextPressed},rootDisabled:{color:d.primaryButtonTextDisabled,backgroundColor:d.primaryButtonBackgroundDisabled,selectors:(i={},i[re]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},i)},splitButtonContainer:{selectors:(o={},o[re]={border:"none"},o)},splitButtonDivider:x(x({},q2()),{backgroundColor:c.white,selectors:(a={},a[re]={backgroundColor:"Window"},a)}),splitButtonMenuButton:{backgroundColor:d.primaryButtonBackground,color:d.primaryButtonText,selectors:(s={},s[re]={backgroundColor:"Canvas"},s[":hover"]={backgroundColor:d.primaryButtonBackgroundHovered,selectors:(l={},l[re]={color:"Highlight"},l)},s)},splitButtonMenuButtonDisabled:{backgroundColor:d.primaryButtonBackgroundDisabled,selectors:{":hover":{backgroundColor:d.primaryButtonBackgroundDisabled}}},splitButtonMenuButtonChecked:{backgroundColor:d.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:d.primaryButtonBackgroundPressed}}},splitButtonMenuButtonExpanded:{backgroundColor:d.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:d.primaryButtonBackgroundPressed}}},splitButtonMenuIcon:{color:d.primaryButtonText},splitButtonMenuIconDisabled:{color:c.neutralTertiary,selectors:(u={},u[re]={color:"GrayText"},u)}}}var $x="32px",Vx="80px",Yx=xt(function(e,t,n){var r=Tg(e),i=_g(e),o={root:{minWidth:Vx,height:$x},label:{fontWeight:at.semibold}};return Li(r,o,n?jx(e):Kx(e),i,t)}),v1=function(e){rt(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(vg,x({},this.props,{variantClassName:i?"ms-Button--primary":"ms-Button--default",styles:Yx(a,o,i),onRenderDescription:tl}))},t=fl([Ef("DefaultButton",["theme","styles"],!0)],t),t}(E.Component),qx=xt(function(e,t){var n,r=Tg(e),i=_g(e),o=e.palette,a=e.semanticColors,s={root:{padding:"0 4px",width:"32px",height:"32px",backgroundColor:"transparent",border:"none",color:a.link},rootHovered:{color:o.themeDarkAlt,backgroundColor:o.neutralLighter,selectors:(n={},n[re]={borderColor:"Highlight",color:"Highlight"},n)},rootHasMenu:{width:"auto"},rootPressed:{color:o.themeDark,backgroundColor:o.neutralLight},rootExpanded:{color:o.themeDark,backgroundColor:o.neutralLight},rootChecked:{color:o.themeDark,backgroundColor:o.neutralLight},rootCheckedHovered:{color:o.themeDark,backgroundColor:o.neutralQuaternaryAlt},rootDisabled:{color:o.neutralTertiaryAlt}};return Li(r,s,i,t)}),wa=function(e){rt(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(vg,x({},this.props,{variantClassName:"ms-Button--icon",styles:qx(i,r),onRenderText:tl,onRenderDescription:tl}))},t=fl([Ef("IconButton",["theme","styles"],!0)],t),t}(E.Component),Q2=function(e){rt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(){return E.createElement(v1,x({},this.props,{primary:!0,onRenderDescription:tl}))},t=fl([Ef("PrimaryButton",["theme","styles"],!0)],t),t}(E.Component),Qx=xt(function(e,t,n,r){var i,o,a,s,l,u,c,d,f,p,h,v,y,m,T=Tg(e),_=_g(e),C=e.palette,F=e.semanticColors,A={left:4,top:4,bottom:4,right:4,border:"none"},S={root:[Zo(e,{inset:2,highContrastStyle:A,borderColor:"transparent"}),e.fonts.medium,{minWidth:"40px",backgroundColor:C.white,color:C.neutralPrimary,padding:"0 4px",border:"none",borderRadius:0,selectors:(i={},i[re]={border:"none"},i)}],rootHovered:{backgroundColor:C.neutralLighter,color:C.neutralDark,selectors:(o={},o[re]={color:"Highlight"},o["."+kn.msButtonIcon]={color:C.themeDarkAlt},o["."+kn.msButtonMenuIcon]={color:C.neutralPrimary},o)},rootPressed:{backgroundColor:C.neutralLight,color:C.neutralDark,selectors:(a={},a["."+kn.msButtonIcon]={color:C.themeDark},a["."+kn.msButtonMenuIcon]={color:C.neutralPrimary},a)},rootChecked:{backgroundColor:C.neutralLight,color:C.neutralDark,selectors:(s={},s["."+kn.msButtonIcon]={color:C.themeDark},s["."+kn.msButtonMenuIcon]={color:C.neutralPrimary},s)},rootCheckedHovered:{backgroundColor:C.neutralQuaternaryAlt,selectors:(l={},l["."+kn.msButtonIcon]={color:C.themeDark},l["."+kn.msButtonMenuIcon]={color:C.neutralPrimary},l)},rootExpanded:{backgroundColor:C.neutralLight,color:C.neutralDark,selectors:(u={},u["."+kn.msButtonIcon]={color:C.themeDark},u["."+kn.msButtonMenuIcon]={color:C.neutralPrimary},u)},rootExpandedHovered:{backgroundColor:C.neutralQuaternaryAlt},rootDisabled:{backgroundColor:C.white,selectors:(c={},c["."+kn.msButtonIcon]={color:F.disabledBodySubtext,selectors:(d={},d[re]=x({color:"GrayText"},Kt()),d)},c[re]=x({color:"GrayText",backgroundColor:"Window"},Kt()),c)},splitButtonContainer:{height:"100%",selectors:(f={},f[re]={border:"none"},f)},splitButtonDividerDisabled:{selectors:(p={},p[re]={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[re]={color:"Highlight"},h["."+kn.msButtonIcon]={color:C.neutralPrimary},h)},":active":{backgroundColor:C.neutralLight,selectors:(v={},v["."+kn.msButtonIcon]={color:C.neutralPrimary},v)}}},splitButtonMenuButtonDisabled:{backgroundColor:C.white,selectors:(y={},y[re]=x({color:"GrayText",border:"none",backgroundColor:"Window"},Kt()),y)},splitButtonMenuButtonChecked:{backgroundColor:C.neutralLight,color:C.neutralDark,selectors:{":hover":{backgroundColor:C.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:C.neutralLight,color:C.black,selectors:{":hover":{backgroundColor:C.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:C.neutralPrimary},splitButtonMenuIconDisabled:{color:C.neutralTertiary},label:{fontWeight:"normal"},icon:{color:C.themePrimary},menuIcon:(m={color:C.neutralSecondary},m[re]={color:"GrayText"},m)};return Li(T,_,S,t)}),t1=function(e){rt(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(vg,x({},this.props,{variantClassName:"ms-Button--commandBar",styles:Qx(i,r),onRenderDescription:tl}))},t=fl([Ef("CommandBarButton",["theme","styles"],!0)],t),t}(E.Component),Xx=on(),X2=E.forwardRef(function(e,t){var n=e.disabled,r=e.required,i=e.inputProps,o=e.name,a=e.ariaLabel,s=e.ariaLabelledBy,l=e.ariaDescribedBy,u=e.ariaPositionInSet,c=e.ariaSetSize,d=e.title,f=e.checkmarkIconProps,p=e.styles,h=e.theme,v=e.className,y=e.boxSide,m=y===void 0?"start":y,T=E1("checkbox-",e.id),_=E.useRef(null),C=Oi(_,t),F=E.useRef(null),A=ZE(e.checked,e.defaultChecked,e.onChange),S=A[0],D=A[1],M=ZE(e.indeterminate,e.defaultIndeterminate),I=M[0],L=M[1];e2(_);var O=Xx(p,{theme:h,className:v,disabled:n,indeterminate:I,checked:S,reversed:m!=="start",isUsingCustomLabelRender:!!e.onRenderLabel}),X=E.useCallback(function(W){I?(D(!!S,W),L(!1)):D(!S,W)},[D,L,I,S]),H=E.useCallback(function(W){return W&&W.label?E.createElement("span",{className:O.text,title:W.title},W.label):null},[O.text]),U=E.useCallback(function(W){if(F.current){var V=!!W;F.current.indeterminate=V,L(V)}},[L]);Zx(e,S,I,U,F),E.useEffect(function(){return U(I)},[U,I]);var K=e.onRenderLabel||H,ne=I?"mixed":void 0,P=x(x({className:O.input,type:"checkbox"},i),{checked:!!S,disabled:n,required:r,name:o,id:T,title:d,onChange:X,"aria-disabled":n,"aria-label":a,"aria-labelledby":s,"aria-describedby":l,"aria-posinset":u,"aria-setsize":c,"aria-checked":ne});return E.createElement("div",{className:O.root,title:d,ref:C},E.createElement("input",x({},P,{ref:F,title:d,"data-ktp-execute-target":!0})),E.createElement("label",{className:O.label,htmlFor:T},E.createElement("div",{className:O.checkbox,"data-ktp-target":!0},E.createElement(Mi,x({iconName:"CheckMark"},f,{className:O.checkmark}))),K(e,H)))});X2.displayName="CheckboxBase";function Zx(e,t,n,r,i){E.useImperativeHandle(e.componentRef,function(){return{get checked(){return!!t},get indeterminate(){return!!n},set indeterminate(o){r(o)},focus:function(){i.current&&i.current.focus()}}},[i,t,n,r])}var Jx={root:"ms-Checkbox",label:"ms-Checkbox-label",checkbox:"ms-Checkbox-checkbox",checkmark:"ms-Checkbox-checkmark",text:"ms-Checkbox-text"},c5="20px",d5="200ms",f5="cubic-bezier(.4, 0, .23, 1)",eN=function(e){var t,n,r,i,o,a,s,l,u,c,d,f,p,h,v,y,m,T,_=e.className,C=e.theme,F=e.reversed,A=e.checked,S=e.disabled,D=e.isUsingCustomLabelRender,M=e.indeterminate,I=C.semanticColors,L=C.effects,O=C.palette,X=C.fonts,H=mn(Jx,C),U=I.inputForegroundChecked,K=O.neutralSecondary,ne=O.neutralPrimary,P=I.inputBackgroundChecked,W=I.inputBackgroundChecked,V=I.disabledBodySubtext,b=I.inputBorderHovered,k=I.inputBackgroundCheckedHovered,me=I.inputBackgroundChecked,we=I.inputBackgroundCheckedHovered,ut=I.inputBackgroundCheckedHovered,Se=I.inputTextHovered,Ue=I.disabledBodySubtext,St=I.bodyText,_t=I.disabledText,We=[(t={content:'""',borderRadius:L.roundedCorner2,position:"absolute",width:10,height:10,top:4,left:4,boxSizing:"border-box",borderWidth:5,borderStyle:"solid",borderColor:S?V:P,transitionProperty:"border-width, border, border-color",transitionDuration:d5,transitionTimingFunction:f5},t[re]={borderColor:"WindowText"},t)];return{root:[H.root,{position:"relative",display:"flex"},F&&"reversed",A&&"is-checked",!S&&"is-enabled",S&&"is-disabled",!S&&[!A&&(n={},n[":hover ."+H.checkbox]=(r={borderColor:b},r[re]={borderColor:"Highlight"},r),n[":focus ."+H.checkbox]={borderColor:b},n[":hover ."+H.checkmark]=(i={color:K,opacity:"1"},i[re]={color:"Highlight"},i),n),A&&!M&&(o={},o[":hover ."+H.checkbox]={background:we,borderColor:ut},o[":focus ."+H.checkbox]={background:we,borderColor:ut},o[re]=(a={},a[":hover ."+H.checkbox]={background:"Highlight",borderColor:"Highlight"},a[":focus ."+H.checkbox]={background:"Highlight"},a[":focus:hover ."+H.checkbox]={background:"Highlight"},a[":focus:hover ."+H.checkmark]={color:"Window"},a[":hover ."+H.checkmark]={color:"Window"},a),o),M&&(s={},s[":hover ."+H.checkbox+", :hover ."+H.checkbox+":after"]=(l={borderColor:k},l[re]={borderColor:"WindowText"},l),s[":focus ."+H.checkbox]={borderColor:k},s[":hover ."+H.checkmark]={opacity:"0"},s),(u={},u[":hover ."+H.text+", :focus ."+H.text]=(c={color:Se},c[re]={color:S?"GrayText":"WindowText"},c),u)],_],input:(d={position:"absolute",background:"none",opacity:0},d["."+vn+" &:focus + label::before"]=(f={outline:"1px solid "+C.palette.neutralSecondary,outlineOffset:"2px"},f[re]={outline:"1px solid WindowText"},f),d),label:[H.label,C.fonts.medium,{display:"flex",alignItems:D?"center":"flex-start",cursor:S?"default":"pointer",position:"relative",userSelect:"none"},F&&{flexDirection:"row-reverse",justifyContent:"flex-end"},{"&::before":{position:"absolute",left:0,right:0,top:0,bottom:0,content:'""',pointerEvents:"none"}}],checkbox:[H.checkbox,(p={position:"relative",display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",height:c5,width:c5,border:"1px solid "+ne,borderRadius:L.roundedCorner2,boxSizing:"border-box",transitionProperty:"background, border, border-color",transitionDuration:d5,transitionTimingFunction:f5,overflow:"hidden",":after":M?We:null},p[re]=x({borderColor:"WindowText"},Kt()),p),M&&{borderColor:P},F?{marginLeft:4}:{marginRight:4},!S&&!M&&A&&(h={background:me,borderColor:W},h[re]={background:"Highlight",borderColor:"Highlight"},h),S&&(v={borderColor:V},v[re]={borderColor:"GrayText"},v),A&&S&&(y={background:Ue,borderColor:V},y[re]={background:"Window"},y)],checkmark:[H.checkmark,(m={opacity:A&&!M?"1":"0",color:U},m[re]=x({color:S?"GrayText":"Window"},Kt()),m)],text:[H.text,(T={color:S?_t:St,fontSize:X.medium.fontSize,lineHeight:"20px"},T[re]=x({color:S?"GrayText":"WindowText"},Kt()),T),F?{marginRight:4}:{marginLeft:4}]}},Ei=an(X2,eN,void 0,{scope:"Checkbox"}),tN=on({cacheSize:100}),nN=function(e){rt(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=tN(l,{className:a,disabled:s,required:u,theme:c});return E.createElement(i,x({},Tt(this.props,ho),{className:d.root}),o)},t}(E.Component),rN=function(e){var t,n=e.theme,r=e.className,i=e.disabled,o=e.required,a=n.semanticColors,s=at.semibold,l=a.bodyText,u=a.disabledBodyText,c=a.errorText;return{root:["ms-Label",n.fonts.medium,{fontWeight:s,color:l,boxSizing:"border-box",boxShadow:"none",margin:0,display:"block",padding:"5px 0",wordWrap:"break-word",overflowWrap:"break-word"},i&&{color:u,selectors:(t={},t[re]=x({color:"GrayText"},Kt()),t)},o&&{selectors:{"::after":{content:"' *'",color:c,paddingRight:12}}},r]}},iN=an(nN,rN,void 0,{scope:"Label"}),oN=on(),aN="",pa="TextField",sN="RedEye",lN="Hide",uN=function(e){rt(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(iN,{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=Gh(r.props,r.state)||"";if(c===void 0||c===r._lastChangeValue||c===d){r._lastChangeValue=void 0;return}r._lastChangeValue=c,(l=(s=r.props).onChange)===null||l===void 0||l.call(s,a,c),r._isControlled||r.setState({uncontrolledValue:c})},mo(r),r._async=new hl(r),r._fallbackId=On(pa),r._descriptionId=On(pa+"Description"),r._labelId=On(pa+"Label"),r._prefixId=On(pa+"Prefix"),r._suffixId=On(pa+"Suffix"),r._warnControlledUsage();var i=n.defaultValue,o=i===void 0?aN: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 Gh(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=Gh(n,r),d=this.value;c!==d&&(this._warnControlledUsage(n),this.state.errorMessage&&!o.errorMessage&&this.setState({errorMessage:""}),this._adjustInputHeight(),h5(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,y=n.theme,m=n.styles,T=n.autoAdjustHeight,_=n.canRevealPassword,C=n.revealPasswordAriaLabel,F=n.type,A=n.onRenderPrefix,S=A===void 0?this._onRenderPrefix:A,D=n.onRenderSuffix,M=D===void 0?this._onRenderSuffix:D,I=n.onRenderLabel,L=I===void 0?this._onRenderLabel:I,O=n.onRenderDescription,X=O===void 0?this._onRenderDescription:O,H=this.state,U=H.isFocused,K=H.isRevealingPassword,ne=this._errorMessage,P=typeof a=="boolean"?a:!!ne,W=!!_&&F==="password"&&cN(),V=this._classNames=oN(m,{theme:y,className:i,disabled:o,focused:U,required:d,multiline:c,hasLabel:!!u,hasErrorMessage:P,borderless:r,resizable:h,hasIcon:!!s,underlined:f,inputClassName:l,autoAdjustHeight:T,hasRevealButton:W});return E.createElement("div",{ref:this.props.elementRef,className:V.root},E.createElement("div",{className:V.wrapper},L(this.props,this._onRenderLabel),E.createElement("div",{className:V.fieldGroup},(p!==void 0||this.props.onRenderPrefix)&&E.createElement("div",{className:V.prefix,id:this._prefixId},S(this.props,this._onRenderPrefix)),c?this._renderTextArea():this._renderInput(),s&&E.createElement(Mi,x({className:V.icon},s)),W&&E.createElement("button",{"aria-label":C,className:V.revealButton,onClick:this._onRevealButtonClick,"aria-pressed":!!K,type:"button"},E.createElement("span",{className:V.revealSpan},E.createElement(Mi,{className:V.revealIcon,iconName:K?lN:sN}))),(v!==void 0||this.props.onRenderSuffix)&&E.createElement("div",{className:V.suffix,id:this._suffixId},M(this.props,this._onRenderSuffix)))),this._isDescriptionAvailable&&E.createElement("span",{id:this._descriptionId},X(this.props,this._onRenderDescription),ne&&E.createElement("div",{role:"alert"},E.createElement(G4,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,ig("Warning: 'value' prop on '"+pa+"' 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 Cb(this.props,"value")},enumerable:!1,configurable:!0}),t.prototype._onRenderPrefix=function(n){var r=n.prefix;return E.createElement("span",{style:{paddingBottom:"1px"}},r)},t.prototype._onRenderSuffix=function(n){var r=n.suffix;return E.createElement("span",{style:{paddingBottom:"1px"}},r)},Object.defineProperty(t.prototype,"_errorMessage",{get:function(){var n=this.props.errorMessage,r=n===void 0?this.state.errorMessage:n;return r||""},enumerable:!1,configurable:!0}),t.prototype._renderErrorMessage=function(){var n=this._errorMessage;return n?typeof n=="string"?E.createElement("p",{className:this._classNames.errorMessage},E.createElement("span",{"data-automation-id":"error-message"},n)):E.createElement("div",{className:this._classNames.errorMessage,"data-automation-id":"error-message"},n):null},Object.defineProperty(t.prototype,"_isDescriptionAvailable",{get:function(){var n=this.props;return!!(n.onRenderDescription||n.description||this._errorMessage)},enumerable:!1,configurable:!0}),t.prototype._renderTextArea=function(){var n=this.props.invalid,r=n===void 0?!!this._errorMessage:n,i=Tt(this.props,Ub,["defaultValue"]),o=this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0);return E.createElement("textarea",x({id:this._id},i,{ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-labelledby":o,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":r,"aria-label":this.props.ariaLabel,readOnly:this.props.readOnly,onFocus:this._onFocus,onBlur:this._onBlur}))},t.prototype._renderInput=function(){var n=this.props,r=n.ariaLabel,i=n.invalid,o=i===void 0?!!this._errorMessage:i,a=n.onRenderPrefix,s=n.onRenderSuffix,l=n.prefix,u=n.suffix,c=n.type,d=c===void 0?"text":c,f=n.label,p=[];f&&p.push(this._labelId),(l!==void 0||a)&&p.push(this._prefixId),(u!==void 0||s)&&p.push(this._suffixId);var h=x(x({type:this.state.isRevealingPassword?"text":d,id:this._id},Tt(this.props,Hb,["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(m){return E.createElement("input",x({},m))},y=this.props.onRenderInput||v;return y(h,v)},t.prototype._validate=function(n){var r=this;if(!(this._latestValidateValue===n&&h5(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 Gh(e,t){var n=e.value,r=n===void 0?t.uncontrolledValue:n;return typeof r=="number"?String(r):r}function h5(e){return!(e.validateOnFocusIn||e.validateOnFocusOut)}var lc;function cN(){if(typeof lc!="boolean"){var e=Et();if(e!=null&&e.navigator){var t=/Edg/.test(e.navigator.userAgent||"");lc=!(rk()||t)}else lc=!0}return lc}var dN={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 fN(e){var t=e.underlined,n=e.disabled,r=e.focused,i=e.theme,o=i.palette,a=i.fonts;return function(){var s;return{root:[t&&n&&{color:o.neutralTertiary},t&&{fontSize:a.medium.fontSize,marginRight:8,paddingLeft:12,paddingRight:0,lineHeight:"22px",height:32},t&&r&&{selectors:(s={},s[re]={height:31},s)}]}}}function hN(e){var t,n,r,i,o,a,s,l,u,c,d,f,p=e.theme,h=e.className,v=e.disabled,y=e.focused,m=e.required,T=e.multiline,_=e.hasLabel,C=e.borderless,F=e.underlined,A=e.hasIcon,S=e.resizable,D=e.hasErrorMessage,M=e.inputClassName,I=e.autoAdjustHeight,L=e.hasRevealButton,O=p.semanticColors,X=p.effects,H=p.fonts,U=mn(dN,p),K={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[re]={background:"Window",color:v?"GrayText":"WindowText"},t)},ne=[{color:O.inputPlaceholderText,opacity:1,selectors:(n={},n[re]={color:"GrayText"},n)}],P={color:O.disabledText,selectors:(r={},r[re]={color:"GrayText"},r)};return{root:[U.root,H.medium,m&&U.required,v&&U.disabled,y&&U.active,T&&U.multiline,C&&U.borderless,F&&U.underlined,Rh,{position:"relative"},h],wrapper:[U.wrapper,F&&[{display:"flex",borderBottom:"1px solid "+(D?O.errorText:O.inputBorder),width:"100%"},v&&{borderBottomColor:O.disabledBackground,selectors:(i={},i[re]=x({borderColor:"GrayText"},Kt()),i)},!v&&{selectors:{":hover":{borderBottomColor:D?O.errorText:O.inputBorderHovered,selectors:(o={},o[re]=x({borderBottomColor:"Highlight"},Kt()),o)}}},y&&[{position:"relative"},jE(D?O.errorText:O.inputFocusBorderAlt,0,"borderBottom")]]],fieldGroup:[U.fieldGroup,Rh,{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"},!y&&!v&&{selectors:{":hover":{borderColor:O.inputBorderHovered,selectors:(a={},a[re]=x({borderColor:"Highlight"},Kt()),a)}}},y&&!F&&jE(D?O.errorText:O.inputFocusBorderAlt,X.roundedCorner2),v&&{borderColor:O.disabledBackground,selectors:(s={},s[re]=x({borderColor:"GrayText"},Kt()),s),cursor:"default"},C&&{border:"none"},C&&y&&{border:"none",selectors:{":after":{border:"none"}}},F&&{flex:"1 1 0px",border:"none",textAlign:"left"},F&&v&&{backgroundColor:"transparent"},D&&!F&&{borderColor:O.errorText,selectors:{"&:hover":{borderColor:O.errorText}}},!_&&m&&{selectors:(l={":before":{content:"'*'",color:O.errorText,position:"absolute",top:-5,right:-10}},l[re]={selectors:{":before":{color:"WindowText",right:-14}}},l)}],field:[H.medium,U.field,Rh,{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[re]={background:"Window",color:v?"GrayText":"WindowText"},u)},YE(ne),T&&!S&&[U.unresizable,{resize:"none"}],T&&{minHeight:"inherit",lineHeight:17,flexGrow:1,paddingTop:6,paddingBottom:6,overflow:"auto",width:"100%"},T&&I&&{overflow:"hidden"},A&&!L&&{paddingRight:24},T&&A&&{paddingRight:40},v&&[{backgroundColor:O.disabledBackground,color:O.disabledText,borderColor:O.disabledBackground},YE(P)],F&&{textAlign:"left"},y&&!C&&{selectors:(c={},c[re]={paddingLeft:11,paddingRight:11},c)},y&&T&&!C&&{selectors:(d={},d[re]={paddingTop:4},d)},M],icon:[T&&{paddingRight:24,alignItems:"flex-end"},{pointerEvents:"none",position:"absolute",bottom:6,right:8,top:"auto",fontSize:ri.medium,lineHeight:18},v&&{color:O.disabledText}],description:[U.description,{color:O.bodySubtext,fontSize:H.xSmall.fontSize}],errorMessage:[U.errorMessage,Ms.slideDownIn20,H.small,{color:O.errorText,margin:0,paddingTop:5,display:"flex",alignItems:"center"}],prefix:[U.prefix,K],suffix:[U.suffix,K],revealButton:[U.revealButton,"ms-Button","ms-Button--icon",Zo(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[re]={borderColor:"Highlight",color:"Highlight"},f)},":focus":{outline:0}}},A&&{marginRight:28}],revealSpan:{display:"flex",height:"100%",alignItems:"center"},revealIcon:{margin:"0px 4px",pointerEvents:"none",bottom:6,right:8,top:"auto",fontSize:ri.medium,lineHeight:18},subComponentStyles:{label:fN(e)}}}var yg=an(uN,hN,void 0,{scope:"TextField"}),Bl={auto:0,top:1,bottom:2,center:3},mN=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},m5=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)},uc=function(e,t){"scrollTop"in e?e.scrollTop=t:"scrollY"in e&&e.scrollTo(e.scrollX,t)},pN=16,gN=100,EN=500,vN=200,TN=500,p5=10,_N=30,yN=2,CN=2,SN="page-",g5="spacer-",E5={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},Z2=function(e){return e.getBoundingClientRect()},AN=Z2,bN=Z2,kN=function(e){rt(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)&&pf()?(r._resetRequiredWindows(),r._requiredRect=null,r._measureVersion++,r._invalidatePageCache(),r._updatePages(i,o)):o},r._onRenderRoot=function(i){var o=i.rootRef,a=i.surfaceElement,s=i.divProps;return E.createElement("div",x({ref:o},s),a)},r._onRenderSurface=function(i){var o=i.surfaceRef,a=i.pageElements,s=i.divProps;return E.createElement("div",x({ref:o},s),a)},r._onRenderPage=function(i,o){for(var a,s=r.props,l=s.onRenderCell,u=s.onRenderCellConditional,c=s.role,d=i.page,f=d.items,p=f===void 0?[]:f,h=d.startIndex,v=Pi(i,["page"]),y=c===void 0?"listitem":"presentation",m=[],T=0;Tn;if(h){if(r&&this._scrollElement){for(var v=bN(this._scrollElement),y=m5(this._scrollElement),m={top:y,bottom:y+v.height},T=n-d,_=0;_=m.top&&C<=m.bottom;if(F)return;var A=um.bottom;A||S&&(u=C-v.height)}this._scrollElement&&uc(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 x(x({},r?r(n):{}),n.items?{}:{height:n.height})},t.prototype._onFocus=function(n){for(var r=n.target;r!==this._surface.current;){var i=r.getAttribute("data-list-index");if(i){this._focusedIndex=Number(i);break}r=ti(r)}},t.prototype._onScroll=function(){!this.state.isScrolling&&!this.props.ignoreScrollingState&&this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDone()},t.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},t.prototype._onAsyncScroll=function(){this._updateRenderRects(this.props,this.state),(!this._materializedRect||!IN(this._requiredRect,this._materializedRect))&&this.setState(this._updatePages(this.props,this.state))},t.prototype._onAsyncIdle=function(){var n=this.props,r=n.renderedWindowsAhead,i=n.renderedWindowsBehind,o=this,a=o._requiredWindowsAhead,s=o._requiredWindowsBehind,l=Math.min(r,a+1),u=Math.min(i,s+1);(l!==a||u!==s)&&(this._requiredWindowsAhead=l,this._requiredWindowsBehind=u,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(r>l||i>u)&&this._onAsyncIdle()},t.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},t.prototype._onAsyncResize=function(){this.forceUpdate()},t.prototype._updatePages=function(n,r){this._requiredRect||this._updateRenderRects(n,r);var i=this._buildPages(n,r),o=r.pages;return this._notifyPageChanges(o,i.pages,this.props),x(x(x({},r),i),{pagesVersion:{}})},t.prototype._notifyPageChanges=function(n,r,i){var o=i.onPageAdded,a=i.onPageRemoved;if(o||a){for(var s={},l=0,u=n;l-1,X=!m||L>=m.top&&d<=m.bottom,H=!_._requiredRect||L>=_._requiredRect.top&&d<=_._requiredRect.bottom,U=!y&&(H||X&&O)||!v,K=p>=A&&p=_._visibleRect.top&&d<=_._visibleRect.bottom),u.push(W),H&&_._allowedRect&&FN(l,{top:d,bottom:L,height:D,left:m.left,right:m.right,width:m.width})}else f||(f=_._createPage(g5+A,void 0,A,0,void 0,M,!0)),f.height=(f.height||0)+(L-d)+1,f.itemCount+=c;if(d+=L-d+1,y&&v)return"break"},_=this,C=a;Cthis._estimatedPageHeight/3)&&(l=this._surfaceRect=AN(this._surface.current),this._scrollTop=c),(i||!u||u!==this._scrollHeight)&&this._measureVersion++,this._scrollHeight=u||0;var d=Math.max(0,-l.top),f=Et(this._root.current),p={top:d,left:l.left,bottom:d+f.innerHeight,right:l.right,width:l.width,height:f.innerHeight};this._requiredRect=v5(p,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=v5(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:CN,renderedWindowsBehind:yN},t}(E.Component);function v5(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 IN(e,t){return e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right}function FN(e,t){return e.top=t.tope.bottom||e.bottom===-1?t.bottom:e.bottom,e.right=t.right>e.right||e.right===-1?t.right:e.right,e.width=e.right-e.left+1,e.height=e.bottom-e.top+1,e}var ii;(function(e){e[e.xSmall=0]="xSmall",e[e.small=1]="small",e[e.medium=2]="medium",e[e.large=3]="large"})(ii||(ii={}));var B0;(function(e){e[e.normal=0]="normal",e[e.large=1]="large"})(B0||(B0={}));var xN=on(),NN=function(e){rt(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=Tt(this.props,ho,["size"]),h=i;h===void 0&&r!==void 0&&(h=r===B0.large?ii.large:ii.medium);var v=xN(s,{theme:u,size:h,className:c,labelPosition:d});return E.createElement("div",x({},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(G4,null,E.createElement("div",{className:v.screenReaderText},f))))},t.defaultProps={size:ii.medium,ariaLive:"polite",labelPosition:"bottom"},t}(E.Component),DN={root:"ms-Spinner",circle:"ms-Spinner-circle",label:"ms-Spinner-label"},wN=xt(function(){return Cr({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}})}),RN=function(e){var t,n=e.theme,r=e.size,i=e.className,o=e.labelPosition,a=n.palette,s=mn(DN,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:wN(),animationDuration:"1.3s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.53,.21,.29,.67)",selectors:(t={},t[re]=x({borderTopColor:"Highlight"},Kt()),t)},r===ii.xSmall&&["ms-Spinner--xSmall",{width:12,height:12}],r===ii.small&&["ms-Spinner--small",{width:16,height:16}],r===ii.medium&&["ms-Spinner--medium",{width:20,height:20}],r===ii.large&&["ms-Spinner--large",{width:28,height:28}]],label:[s.label,n.fonts.small,{color:a.themePrimary,margin:"8px 0 0",textAlign:"center"},o==="top"&&{margin:"0 0 8px"},o==="right"&&{margin:"0 0 0 8px"},o==="left"&&{margin:"0 8px 0 0"}],screenReaderText:lg}},J2=an(NN,RN,void 0,{scope:"Spinner"}),xi;(function(e){e[e.normal=0]="normal",e[e.largeHeader=1]="largeHeader",e[e.close=2]="close"})(xi||(xi={}));var eC=Gk.durationValue2,ON={root:"ms-Modal",main:"ms-Dialog-main",scrollableContent:"ms-Modal-scrollableContent",isOpen:"is-open",layer:"ms-Modal-Layer"},MN=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,y=u.effects,m=u.fonts,T=mn(ON,u);return{root:[T.root,m.medium,{backgroundColor:"transparent",position:"fixed",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,pointerEvents:"none",transition:"opacity "+eC},c&&typeof l=="number"&&s&&{alignItems:"flex-start"},o&&T.isOpen,a&&{opacity:1},a&&!d&&{pointerEvents:"auto"},n],main:[T.main,{boxShadow:y.elevation64,borderRadius:y.roundedCorner2,backgroundColor:v.white,boxSizing:"border-box",position:"relative",textAlign:"left",outline:"3px solid transparent",maxHeight:"calc(100% - 32px)",maxWidth:"calc(100% - 32px)",minHeight:"176px",minWidth:"288px",overflowY:"auto",zIndex:d?il.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:m.xLargePlus.fontSize,width:"24px"}}},PN=on(),LN=function(e){rt(t,e);function t(n){var r=e.call(this,n)||this;mo(r);var i=r.props.allowTouchBodyScroll,o=i===void 0?!1:i;return r._allowTouchBodyScroll=o,r}return t.prototype.componentDidMount=function(){!this._allowTouchBodyScroll&&L7()},t.prototype.componentWillUnmount=function(){!this._allowTouchBodyScroll&&B7()},t.prototype.render=function(){var n=this.props,r=n.isDarkThemed,i=n.className,o=n.theme,a=n.styles,s=Tt(this.props,ho),l=PN(a,{theme:o,className:i,isDark:r});return E.createElement("div",x({},s,{className:l.root}))},t}(E.Component),BN={root:"ms-Overlay",rootDark:"ms-Overlay--dark"},HN=function(e){var t,n=e.className,r=e.theme,i=e.isNone,o=e.isDark,a=r.palette,s=mn(BN,r);return{root:[s.root,r.fonts.medium,{backgroundColor:a.whiteTranslucent40,top:0,right:0,bottom:0,left:0,position:"absolute",selectors:(t={},t[re]={border:"1px solid WindowText",opacity:0},t)},i&&{visibility:"hidden"},o&&[s.rootDark,{backgroundColor:a.blackTranslucent40}],n]}},UN=an(LN,HN,void 0,{scope:"Overlay"}),zN=xt(function(e,t){return{root:bi(e,t&&{touchAction:"none",selectors:{"& *":{userSelect:"none"}}})}}),Hl={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},GN=function(e){rt(t,e);function t(n){var r=e.call(this,n)||this;return r._currentEventType=Hl.mouse,r._events=[],r._onMouseDown=function(i){var o=E.Children.only(r.props.children).props.onMouseDown;return o&&o(i),r._currentEventType=Hl.mouse,r._onDragStart(i)},r._onMouseUp=function(i){var o=E.Children.only(r.props.children).props.onMouseUp;return o&&o(i),r._currentEventType=Hl.mouse,r._onDragStop(i)},r._onTouchStart=function(i){var o=E.Children.only(r.props.children).props.onTouchStart;return o&&o(i),r._currentEventType=Hl.touch,r._onDragStart(i)},r._onTouchEnd=function(i){var o=E.Children.only(r.props.children).props.onTouchEnd;o&&o(i),r._currentEventType=Hl.touch,r._onDragStop(i)},r._onDragStart=function(i){if(typeof i.button=="number"&&i.button!==0)return!1;if(!(r.props.handleSelector&&!r._matchesSelector(i.target,r.props.handleSelector)||r.props.preventDragSelector&&r._matchesSelector(i.target,r.props.preventDragSelector))){r._touchId=r._getTouchId(i);var o=r._getControlPosition(i);if(o!==void 0){var a=r._createDragDataFromPosition(o);r.props.onStart&&r.props.onStart(i,a),r.setState({isDragging:!0,lastPosition:o}),r._events=[ki(document.body,r._currentEventType.move,r._onDrag,!0),ki(document.body,r._currentEventType.stop,r._onDragStop,!0)]}}},r._onDrag=function(i){i.type==="touchmove"&&i.preventDefault();var o=r._getControlPosition(i);if(o){var a=r._createUpdatedDragData(r._createDragDataFromPosition(o)),s=a.position;r.props.onDragChange&&r.props.onDragChange(i,a),r.setState({position:s,lastPosition:o})}},r._onDragStop=function(i){if(r.state.isDragging){var o=r._getControlPosition(i);if(o){var a=r._createDragDataFromPosition(o);r.setState({isDragging:!1,lastPosition:void 0}),r.props.onStop&&r.props.onStop(i,a),r.props.position&&r.setState({position:r.props.position}),r._events.forEach(function(s){return s()})}}},r.state={isDragging:!1,position:r.props.position||{x:0,y:0},lastPosition:void 0},r}return t.prototype.componentDidUpdate=function(n){this.props.position&&(!n.position||this.props.position!==n.position)&&this.setState({position:this.props.position})},t.prototype.componentWillUnmount=function(){this._events.forEach(function(n){return n()})},t.prototype.render=function(){var n=E.Children.only(this.props.children),r=n.props,i=this.props.position,o=this.state,a=o.position,s=o.isDragging,l=a.x,u=a.y;return i&&!s&&(l=i.x,u=i.y),E.cloneElement(n,{style:x(x({},r.style),{transform:"translate("+l+"px, "+u+"px)"}),className:zN(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=(K||Ka.small)&&E.createElement(F2,x({ref:Ue},ke),E.createElement(hg,x({role:Oe?"alertdialog":"dialog",ariaLabelledBy:L,ariaDescribedBy:X,onDismiss:S,shouldRestoreFocus:!T,enableAriaHiddenSiblings:b,"aria-modal":!P},k),E.createElement("div",{className:ze.root,role:P?void 0:"document"},!P&&E.createElement(UN,x({"aria-hidden":!0,isDarkThemed:A,onClick:_?void 0:S,allowTouchBodyScroll:l},M)),W?E.createElement(GN,{handleSelector:W.dragHandleSelector||"#"+_t,preventDragSelector:"button",onStart:ar,onDragChange:sa,onStop:la,position:ve},ca):ca)))||null});tC.displayName="Modal";var nC=an(tC,MN,void 0,{scope:"Modal",fields:["theme","styles","enableAriaHiddenSiblings"]});nC.displayName="Modal";var VN=on(),YN=function(e){rt(t,e);function t(n){var r=e.call(this,n)||this;return mo(r),r}return t.prototype.render=function(){var n=this.props,r=n.className,i=n.styles,o=n.theme;return this._classNames=VN(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),qN={actions:"ms-Dialog-actions",action:"ms-Dialog-action",actionsRight:"ms-Dialog-actionsRight"},QN=function(e){var t=e.className,n=e.theme,r=mn(qN,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"}]}},Cg=an(YN,QN,void 0,{scope:"DialogFooter"}),XN=on(),ZN=E.createElement(Cg,null).type,JN=function(e){rt(t,e);function t(n){var r=e.call(this,n)||this;return mo(r),r}return t.prototype.render=function(){var n=this.props,r=n.showCloseButton,i=n.className,o=n.closeButtonAriaLabel,a=n.onDismiss,s=n.subTextId,l=n.subText,u=n.titleProps,c=u===void 0?{}:u,d=n.titleId,f=n.title,p=n.type,h=n.styles,v=n.theme,y=n.draggableHeaderClassName,m=XN(h,{theme:v,className:i,isLargeHeader:p===xi.largeHeader,isClose:p===xi.close,draggableHeaderClassName:y}),T=this._groupChildren(),_;return l&&(_=E.createElement("p",{className:m.subText,id:s},l)),E.createElement("div",{className:m.content},E.createElement("div",{className:m.header},E.createElement("div",x({id:d,role:"heading","aria-level":1},c,{className:Pn(m.title,c.className)}),f),E.createElement("div",{className:m.topButton},this.props.topButtonsProps.map(function(C,F){return E.createElement(wa,x({key:C.uniqueId||F},C))}),(p===xi.close||r&&p!==xi.largeHeader)&&E.createElement(wa,{className:m.button,iconProps:{iconName:"Cancel"},ariaLabel:o,onClick:a}))),E.createElement("div",{className:m.inner},E.createElement("div",{className:m.innerContent},_,T.contents),T.footers))},t.prototype._groupChildren=function(){var n={footers:[],contents:[]};return E.Children.map(this.props.children,function(r){typeof r=="object"&&r!==null&&r.type===ZN?n.footers.push(r):n.contents.push(r)}),n},t.defaultProps={showCloseButton:!1,className:"",topButtonsProps:[],closeButtonAriaLabel:"Close"},t=fl([B2],t),t}(E.Component),eD={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"},tD=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=mn(eD,o);return{content:[a&&[v.contentLgHeader,{borderTop:"4px solid "+d.themePrimary}],s&&v.close,{flexGrow:1,overflowY:"hidden"},i],subText:[v.subText,f.medium,{margin:"0 0 24px 0",color:h.bodySubtext,lineHeight:"1.5",wordWrap:"break-word",fontWeight:at.regular}],header:[v.header,{position:"relative",width:"100%",boxSizing:"border-box"},s&&v.close,c&&[c,{cursor:"move"}]],button:[v.button,l&&{selectors:{".ms-Icon.ms-Icon--Cancel":{color:h.buttonText,fontSize:ri.medium}}}],inner:[v.inner,{padding:"0 24px 24px",selectors:(t={},t["@media (min-width: "+Dh+"px) and (max-width: "+wh+"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: "+Dh+"px) and (max-width: "+wh+"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: "+Dh+"px) and (max-width: "+wh+"px)"]={padding:"15px 8px 0 0"},r)}]}},nD=an(JN,tD,void 0,{scope:"DialogContent"}),rD=on(),iD={isDarkOverlay:!1,isBlocking:!1,className:"",containerClassName:"",topOffsetFixed:!1,enableAriaHiddenSiblings:!0},oD={type:xi.normal,className:"",topButtonsProps:[]},aD=function(e){rt(t,e);function t(n){var r=e.call(this,n)||this;return r._getSubTextId=function(){var i=r.props,o=i.ariaDescribedById,a=i.modalProps,s=i.dialogContentProps,l=i.subText,u=a&&a.subtitleAriaId||o;return u||(u=(s&&s.subText||l)&&r._defaultSubTextId),u},r._getTitleTextId=function(){var i=r.props,o=i.ariaLabelledById,a=i.modalProps,s=i.dialogContentProps,l=i.title,u=a&&a.titleAriaId||o;return u||(u=(s&&s.title||l)&&r._defaultTitleTextId),u},r._id=On("Dialog"),r._defaultTitleTextId=r._id+"-title",r._defaultSubTextId=r._id+"-subText",r}return t.prototype.render=function(){var n,r,i,o=this.props,a=o.className,s=o.containerClassName,l=o.contentClassName,u=o.elementToFocusOnDismiss,c=o.firstFocusableSelector,d=o.forceFocusInsideTrap,f=o.styles,p=o.hidden,h=o.disableRestoreFocus,v=h===void 0?o.ignoreExternalFocusing:h,y=o.isBlocking,m=o.isClickableOutsideFocusTrap,T=o.isDarkOverlay,_=o.isOpen,C=_===void 0?!p:_,F=o.onDismiss,A=o.onDismissed,S=o.onLayerDidMount,D=o.responsiveMode,M=o.subText,I=o.theme,L=o.title,O=o.topButtonsProps,X=o.type,H=o.minWidth,U=o.maxWidth,K=o.modalProps,ne=x({onLayerDidMount:S},K==null?void 0:K.layerProps),P,W;K!=null&&K.dragOptions&&!(!((n=K.dragOptions)===null||n===void 0)&&n.dragHandleSelector)&&(W=x({},K.dragOptions),P="ms-Dialog-draggable-header",W.dragHandleSelector="."+P);var V=x(x(x(x({},iD),{elementToFocusOnDismiss:u,firstFocusableSelector:c,forceFocusInsideTrap:d,disableRestoreFocus:v,isClickableOutsideFocusTrap:m,responsiveMode:D,className:a,containerClassName:s,isBlocking:y,isDarkOverlay:T,onDismissed:A}),K),{dragOptions:W,layerProps:ne,isOpen:C}),b=x(x(x({className:l,subText:M,title:L,topButtonsProps:O,type:X},oD),o.dialogContentProps),{draggableHeaderClassName:P,titleProps:x({id:((r=o.dialogContentProps)===null||r===void 0?void 0:r.titleId)||this._defaultTitleTextId},(i=o.dialogContentProps)===null||i===void 0?void 0:i.titleProps)}),k=rD(f,{theme:I,className:V.className,containerClassName:V.containerClassName,hidden:p,dialogDefaultMinWidth:H,dialogDefaultMaxWidth:U});return E.createElement(nC,x({},V,{className:k.root,containerClassName:k.main,onDismiss:F||V.onDismiss,subtitleAriaId:this._getSubTextId(),titleAriaId:this._getTitleTextId()}),E.createElement(nD,x({subTextId:this._defaultSubTextId,showCloseButton:V.isBlocking,onDismiss:F},b),o.children))},t.defaultProps={hidden:!0},t=fl([B2],t),t}(E.Component),sD={root:"ms-Dialog"},lD=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=mn(sD,u);return{root:[c.root,u.fonts.medium,n],main:[{width:o,outline:"3px solid transparent",selectors:(t={},t["@media (min-width: "+d2+"px)"]={width:"auto",maxWidth:s,minWidth:o},t)},!l&&{display:"flex"},r]}},gl=an(aD,lD,void 0,{scope:"Dialog"});gl.displayName="Dialog";function uD(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:""}};$t(n,t)}function cD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-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:""}};$t(n,t)}function dD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-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:""}};$t(n,t)}function fD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-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:""}};$t(n,t)}function hD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-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:""}};$t(n,t)}function mD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-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:""}};$t(n,t)}function pD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-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:""}};$t(n,t)}function gD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-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:""}};$t(n,t)}function ED(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-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:""}};$t(n,t)}function vD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-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:""}};$t(n,t)}function TD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-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:""}};$t(n,t)}function _D(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-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:""}};$t(n,t)}function yD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-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:""}};$t(n,t)}function CD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-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:""}};$t(n,t)}function SD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-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:""}};$t(n,t)}function AD(e,t){e===void 0&&(e="");var n={style:{MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontStyle:"normal",fontWeight:"normal",speak:"none"},fontFace:{fontFamily:'"FabricMDL2Icons-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:""}};$t(n,t)}function bD(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:""}};$t(n,t)}function kD(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:""}};$t(n,t)}function ID(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:""}};$t(n,t)}var FD=function(){ma("trash","delete"),ma("onedrive","onedrivelogo"),ma("alertsolid12","eventdatemissed12"),ma("sixpointstar","6pointstar"),ma("twelvepointstar","12pointstar"),ma("toggleon","toggleleft"),ma("toggleoff","toggleright")};eg("@fluentui/font-icons-mdl2","8.5.8");var xD="https://spoppe-b.azureedge.net/files/fabric-cdn-prod_20210407.001/assets/icons/",cs=Et();function ND(e,t){var n,r;e===void 0&&(e=((n=cs==null?void 0:cs.FabricConfig)===null||n===void 0?void 0:n.iconBaseUrl)||((r=cs==null?void 0:cs.FabricConfig)===null||r===void 0?void 0:r.fontBaseUrl)||xD),[uD,cD,dD,fD,hD,mD,pD,gD,ED,vD,TD,_D,yD,CD,SD,AD,bD,kD,ID].forEach(function(i){return i(e,t)}),FD()}var DD=on(),wD=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=DD(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))}),RD=function(e){var t,n,r=e.theme,i=e.alignContent,o=e.vertical,a=e.className,s=i==="start",l=i==="center",u=i==="end";return{root:[r.fonts.medium,{position:"relative"},i&&{textAlign:i},!i&&{textAlign:"center"},o&&(l||!i)&&{verticalAlign:"middle"},o&&s&&{verticalAlign:"top"},o&&u&&{verticalAlign:"bottom"},o&&{padding:"0 4px",height:"inherit",display:"table-cell",zIndex:1,selectors:{":after":(t={backgroundColor:r.palette.neutralLighter,width:"1px",content:'""',position:"absolute",top:"0",bottom:"0",left:"50%",right:"0",zIndex:-1},t[re]={backgroundColor:"WindowText"},t)}},!o&&{padding:"4px 0",selectors:{":before":(n={backgroundColor:r.palette.neutralLighter,height:"1px",content:'""',display:"block",position:"absolute",top:"50%",bottom:"0",left:"0",right:"0"},n[re]={backgroundColor:"WindowText"},n)}},a],content:[{position:"relative",display:"inline-block",padding:"0 12px",color:r.semanticColors.bodyText,background:r.semanticColors.bodyBackground},o&&{padding:"12px 0"}]}},rC=an(wD,RD,void 0,{scope:"Separator"});rC.displayName="Separator";var Sg=x;function Eu(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 LD(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 MD(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 PD(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:Wh($s(n[0],t)),columnGap:Wh($s(n[1],t))};var r=Wh($s(e,t));return{rowGap:r,columnGap:r}},T5=function(e,t){if(e===void 0||typeof e=="number"||e==="")return e;var n=e.split(" ");return n.length<2?$s(e,t):n.reduce(function(r,i){return $s(r,t)+" "+$s(i,t)})},ds={start:"flex-start",end:"flex-end"},H0={root:"ms-Stack",inner:"ms-Stack-inner",child:"ms-Stack-child"},KD=function(e,t,n){var r,i,o,a,s,l,u,c,d,f,p,h,v,y=e.className,m=e.disableShrink,T=e.enableScopedSelectors,_=e.grow,C=e.horizontal,F=e.horizontalAlign,A=e.reversed,S=e.verticalAlign,D=e.verticalFill,M=e.wrap,I=mn(H0,t),L=n&&n.childrenGap?n.childrenGap:e.gap,O=n&&n.maxHeight?n.maxHeight:e.maxHeight,X=n&&n.maxWidth?n.maxWidth:e.maxWidth,H=n&&n.padding?n.padding:e.padding,U=WD(L,t),K=U.rowGap,ne=U.columnGap,P=""+-.5*ne.value+ne.unit,W=""+-.5*K.value+K.unit,V={textOverflow:"ellipsis"},b="> "+(T?"."+H0.child:"*"),k=(r={},r[b+":not(."+aC.root+")"]={flexShrink:0},r);return M?{root:[I.root,{flexWrap:"wrap",maxWidth:X,maxHeight:O,width:"auto",overflow:"visible",height:"100%"},F&&(i={},i[C?"justifyContent":"alignItems"]=ds[F]||F,i),S&&(o={},o[C?"alignItems":"justifyContent"]=ds[S]||S,o),y,{display:"flex"},C&&{height:D?"100%":"auto"}],inner:[I.inner,(a={display:"flex",flexWrap:"wrap",marginLeft:P,marginRight:P,marginTop:W,marginBottom:W,overflow:"visible",boxSizing:"border-box",padding:T5(H,t),width:ne.value===0?"100%":"calc(100% + "+ne.value+ne.unit+")",maxWidth:"100vw"},a[b]=x({margin:""+.5*K.value+K.unit+" "+.5*ne.value+ne.unit},V),a),m&&k,F&&(s={},s[C?"justifyContent":"alignItems"]=ds[F]||F,s),S&&(l={},l[C?"alignItems":"justifyContent"]=ds[S]||S,l),C&&(u={flexDirection:A?"row-reverse":"row",height:K.value===0?"100%":"calc(100% + "+K.value+K.unit+")"},u[b]={maxWidth:ne.value===0?"100%":"calc(100% - "+ne.value+ne.unit+")"},u),!C&&(c={flexDirection:A?"column-reverse":"column",height:"calc(100% + "+K.value+K.unit+")"},c[b]={maxHeight:K.value===0?"100%":"calc(100% - "+K.value+K.unit+")"},c)]}:{root:[I.root,(d={display:"flex",flexDirection:C?A?"row-reverse":"row":A?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:D?"100%":"auto",maxWidth:X,maxHeight:O,padding:T5(H,t),boxSizing:"border-box"},d[b]=V,d),m&&k,_&&{flexGrow:_===!0?1:_},F&&(f={},f[C?"justifyContent":"alignItems"]=ds[F]||F,f),S&&(p={},p[C?"alignItems":"justifyContent"]=ds[S]||S,p),C&&ne.value>0&&(h={},h[A?b+":not(:last-child)":b+":not(:first-child)"]={marginLeft:""+ne.value+ne.unit},h),!C&&K.value>0&&(v={},v[A?b+":not(:last-child)":b+":not(:first-child)"]={marginTop:""+K.value+K.unit},v),y]}},jD=function(e){var t=e.as,n=t===void 0?"div":t,r=e.disableShrink,i=r===void 0?!1:r,o=e.enableScopedSelectors,a=o===void 0?!1:o,s=e.wrap,l=Pi(e,["as","disableShrink","enableScopedSelectors","wrap"]),u=sC(e.children,{disableShrink:i,enableScopedSelectors:a}),c=Tt(l,Nt),d=Ag(e,{root:n,inner:"div"});return s?Eu(d.root,x({},c),Eu(d.inner,null,u)):Eu(d.root,x({},c),u)};function sC(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?sC(o.props.children,{disableShrink:n,enableScopedSelectors:r}):null;var a=o,s={};$D(o)&&(s={shrink:!n});var l=a.props.className;return E.cloneElement(a,x(x(x(x({},s),a.props),l&&{className:l}),r&&{className:Pn(H0.child,l)}))}),i}function $D(e){return!!e&&typeof e=="object"&&!!e.type&&e.type.displayName===Mo.displayName}var VD={Item:Mo},ge=bg(jD,{displayName:"Stack",styles:KD,statics:VD}),YD=function(e){if(e.children==null)return null;e.block,e.className;var t=e.as,n=t===void 0?"span":t;e.variant,e.nowrap;var r=Pi(e,["block","className","as","variant","nowrap"]),i=Ag(e,{root:n});return Eu(i.root,x({},Tt(r,Nt)))},qD=function(e,t){var n=e.as,r=e.className,i=e.block,o=e.nowrap,a=e.variant,s=t.fonts,l=t.semanticColors,u=s[a||"medium"];return{root:[u,{color:u.color||l.bodyText,display:i?n==="td"?"table-cell":"block":"inline",mozOsxFontSmoothing:u.MozOsxFontSmoothing,webkitFontSmoothing:u.WebkitFontSmoothing},o&&{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},r]}},Ho=bg(YD,{displayName:"Text",styles:qD});const QD="_layout_19t1l_1",XD="_header_19t1l_7",ZD="_headerContainer_19t1l_11",JD="_headerTitleContainer_19t1l_17",ew="_headerTitle_19t1l_17",tw="_headerIcon_19t1l_34",nw="_shareButtonContainer_19t1l_40",rw="_shareButton_19t1l_40",iw="_shareButtonText_19t1l_63",ow="_urlTextBox_19t1l_73",aw="_copyButtonContainer_19t1l_83",sw="_copyButton_19t1l_83",lw="_copyButtonText_19t1l_105",Gi={layout:QD,header:XD,headerContainer:ZD,headerTitleContainer:JD,headerTitle:ew,headerIcon:tw,shareButtonContainer:nw,shareButton:rw,shareButtonText:iw,urlTextBox:ow,copyButtonContainer:aw,copyButton:sw,copyButtonText:lw},lC="/assets/Contoso-ff70ad88.svg",Kh=typeof window>"u"?global:window,jh="@griffel/";function uw(e,t){return Kh[Symbol.for(jh+e)]||(Kh[Symbol.for(jh+e)]=t),Kh[Symbol.for(jh+e)]}const U0=uw("DEFINITION_LOOKUP_TABLE",{}),Vc="data-make-styles-bucket",z0=7,kg="___",cw=kg.length+z0,dw=0,fw=1;function hw(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 mw(e){const t=e.length;if(t===z0)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=y5[n];if(i!==void 0)return t+i;const o=[];for(let u=0;uo.cssText):r}}}const vw=["r","d","l","v","w","f","i","h","a","k","t","m"],C5=vw.reduce((e,t,n)=>(e[t]=n,e),{});function Tw(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=Ew(s,e,{...r.styleElementAttributes,...o&&{media:i.m}});r.stylesheets[a]=l,t&&s&&t.head.insertBefore(s,_w(t,n,e,r,i))}return r.stylesheets[a]}function _w(e,t,n,r,i){const o=C5[n];let a=c=>o-C5[c.getAttribute(Vc)],s=e.head.querySelectorAll(`[${Vc}]`);if(n==="m"&&i){const c=e.head.querySelectorAll(`[${Vc}="${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 yw=0;const Cw=(e,t)=>et?1:0;function Sw(e=typeof document>"u"?void 0:document,t={}){const{unstable_filterCSSRule:n,insertionPoint:r,styleElementAttributes:i,compareMediaQueries:o=Cw}=t,a={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(i),compareMediaQueries:o,id:`d${yw++}`,insertCSSRules(s){for(const l in s){const u=s[l];for(let c=0,d=u.length;c{const{title:t,primaryFill:n="currentColor"}=e,r=Pi(e,["title","primaryFill"]),i=Object.assign(Object.assign({},r),{title:void 0,fill:n}),o=Nw();return i.className=pw(o.root,i.className),t&&(i["aria-label"]=t),!i["aria-label"]&&!i["aria-labelledby"]?i["aria-hidden"]=!0:i.role="img",i},ww=(e,t)=>{const n=r=>{const i=Dw(r);return E.createElement(e,Object.assign({},i))};return n.displayName=t,n},Xa=ww,Rw=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}))},Ow=Xa(Rw,"CopyRegular"),Mw=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}))},Pw=Xa(Mw,"ErrorCircleRegular"),Lw=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}))},Bw=Xa(Lw,"SendRegular"),Hw=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}))},Uw=Xa(Hw,"ShieldLockRegular"),zw=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}))},Gw=Xa(zw,"SquareRegular"),Ww=e=>{const{fill:t="currentColor",className:n}=e;return E.createElement("svg",Object.assign({},e,{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:n}),E.createElement("path",{d:"M12.48 18.3c-.8.83-2.09.38-2.43-.6-.28-.8-.64-1.77-1-2.48C8 13.1 7.38 11.9 5.67 10.37c-.23-.2-.52-.36-.84-.49-1.13-.44-2.2-1.61-1.91-3l.35-1.77a2.5 2.5 0 0 1 1.8-1.92l5.6-1.53a4.5 4.5 0 0 1 5.6 3.54l.69 3.76A3 3 0 0 1 14 12.5h-.89l.01.05c.08.41.18.97.24 1.58.07.62.1 1.29.05 1.92a3.68 3.68 0 0 1-.5 1.73c-.11.16-.27.35-.44.52Z",fill:t}))},Kw=Xa(Ww,"ThumbDislike20Filled"),jw=e=>{const{fill:t="currentColor",className:n}=e;return E.createElement("svg",Object.assign({},e,{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:n}),E.createElement("path",{d:"M12.48 1.7c-.8-.83-2.09-.38-2.43.6-.28.8-.64 1.77-1 2.48C8 6.9 7.38 8.1 5.67 9.63c-.23.2-.52.36-.84.49-1.13.44-2.2 1.61-1.91 3l.35 1.77a2.5 2.5 0 0 0 1.8 1.92l5.6 1.52a4.5 4.5 0 0 0 5.6-3.53l.69-3.76A3 3 0 0 0 14 7.5h-.89l.01-.05c.08-.41.18-.97.24-1.59.07-.6.1-1.28.05-1.9a3.68 3.68 0 0 0-.5-1.74 4.16 4.16 0 0 0-.44-.52Z",fill:t}))},$w=Xa(jw,"ThumbLike20Filled"),Vw=({onClick:e})=>B(t1,{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"}),Yw=({onClick:e,text:t})=>B(v1,{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"}}}),qw=(e,t)=>{switch(t.type){case"TOGGLE_CHAT_HISTORY":return{...e,isChatHistoryOpen:!e.isChatHistoryOpen};case"UPDATE_CURRENT_CHAT":return{...e,currentChat:t.payload};case"UPDATE_CHAT_HISTORY_LOADING_STATE":return{...e,chatHistoryLoadingState:t.payload};case"UPDATE_CHAT_HISTORY":if(!e.chatHistory||!e.currentChat)return e;let n=e.chatHistory.findIndex(a=>a.id===t.payload.id);if(n!==-1){let a=[...e.chatHistory];return a[n]=e.currentChat,{...e,chatHistory:a}}else return{...e,chatHistory:[...e.chatHistory,t.payload]};case"UPDATE_CHAT_TITLE":if(!e.chatHistory)return{...e,chatHistory:[]};let r=e.chatHistory.map(a=>{var s;return a.id===t.payload.id?(((s=e.currentChat)==null?void 0:s.id)===t.payload.id&&(e.currentChat.title=t.payload.title),{...a,title:t.payload.title}):a});return{...e,chatHistory:r};case"DELETE_CHAT_ENTRY":if(!e.chatHistory)return{...e,chatHistory:[]};let i=e.chatHistory.filter(a=>a.id!==t.payload);return e.currentChat=null,{...e,chatHistory:i};case"DELETE_CHAT_HISTORY":return{...e,chatHistory:[],filteredChatHistory:[],currentChat:null};case"DELETE_CURRENT_CHAT_MESSAGES":if(!e.currentChat||!e.chatHistory)return e;const o={...e.currentChat,messages:[]};return{...e,currentChat:o};case"FETCH_CHAT_HISTORY":return{...e,chatHistory:t.payload};case"SET_COSMOSDB_STATUS":return{...e,isCosmosDBAvailable:t.payload};case"FETCH_FRONTEND_SETTINGS":return{...e,frontendSettings:t.payload};case"SET_FEEDBACK_STATE":return{...e,feedbackState:{...e.feedbackState,[t.payload.answerId]:t.payload.feedback}};default:return e}};var _n=(e=>(e.NotConfigured="CosmosDB is not configured",e.NotWorking="CosmosDB is not working",e.InvalidCredentials="CosmosDB has invalid credentials",e.InvalidDatabase="Invalid CosmosDB database name",e.InvalidContainer="Invalid CosmosDB container name",e.Working="CosmosDB is configured and working",e))(_n||{}),Nn=(e=>(e.Loading="loading",e.Success="success",e.Fail="fail",e.NotStarted="notStarted",e))(Nn||{}),Ne=(e=>(e.Neutral="neutral",e.Positive="positive",e.Negative="negative",e.MissingCitation="missing_citation",e.WrongCitation="wrong_citation",e.OutOfScope="out_of_scope",e.InaccurateOrIrrelevant="inaccurate_or_irrelevant",e.OtherUnhelpful="other_unhelpful",e.HateSpeech="hate_speech",e.Violent="violent",e.Sexual="sexual",e.Manipulative="manipulative",e.OtherHarmful="other_harmlful",e))(Ne||{});async function Qw(e,t){return await fetch("/conversation",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:e.messages}),signal:t})}async function Xw(){const e=await fetch("/.auth/me");return e.ok?await e.json():(console.log("No identity provider found. Access to chat will be blocked."),[])}const dC=async(e=0)=>await fetch(`/history/list?offset=${e}`,{method:"GET"}).then(async n=>{const r=await n.json();return Array.isArray(r)?await Promise.all(r.map(async o=>{let a=[];return a=await Zw(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)),Zw=async e=>await fetch("/history/read",{method:"POST",body:JSON.stringify({conversation_id:e}),headers:{"Content-Type":"application/json"}}).then(async n=>{if(!n)return[];const r=await n.json();let i=[];return r!=null&&r.messages&&r.messages.forEach(o=>{const a={id:o.id,role:o.role,date:o.createdAt,content:o.content,feedback:o.feedback??void 0};i.push(a)}),i}).catch(n=>(console.error("There was an issue fetching your data."),[])),S5=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))},Jw=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})),eR=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})),tR=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})),nR=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})),rR=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})),iR=async()=>await fetch("/history/ensure",{method:"GET"}).then(async t=>{let n=await t.json(),r;return n.message?r=_n.Working:t.status===500?r=_n.NotWorking:t.status===401?r=_n.InvalidCredentials:t.status===422?r=n.error:r=_n.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})),oR=async()=>await fetch("/frontend_settings",{method:"GET"}).then(t=>t.json()).catch(t=>(console.error("There was an issue fetching your data."),null)),$h=async(e,t)=>await fetch("/history/message_feedback",{method:"POST",body:JSON.stringify({message_id:e,message_feedback:t}),headers:{"Content-Type":"application/json"}}).then(r=>r).catch(r=>(console.error("There was an issue logging feedback."),{...new Response,ok:!1,status:500})),aR={isChatHistoryOpen:!1,chatHistoryLoadingState:Nn.Loading,chatHistory:null,filteredChatHistory:null,currentChat:null,isCosmosDBAvailable:{cosmosDB:!1,status:_n.NotConfigured},frontendSettings:null,feedbackState:{}},ia=E.createContext(void 0),sR=({children:e})=>{const[t,n]=E.useReducer(qw,aR);return E.useEffect(()=>{const r=async(o=0)=>await dC(o).then(s=>(n(s?{type:"FETCH_CHAT_HISTORY",payload:s}:{type:"FETCH_CHAT_HISTORY",payload:null}),s)).catch(s=>(n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:Nn.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:Nn.Loading}),iR().then(o=>{o!=null&&o.cosmosDB?r().then(a=>{a?(n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:Nn.Success}),n({type:"SET_COSMOSDB_STATUS",payload:o})):(n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:Nn.Fail}),n({type:"SET_COSMOSDB_STATUS",payload:{cosmosDB:!1,status:_n.NotWorking}}))}).catch(a=>{n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:Nn.Fail}),n({type:"SET_COSMOSDB_STATUS",payload:{cosmosDB:!1,status:_n.NotWorking}})}):(n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:Nn.Fail}),n({type:"SET_COSMOSDB_STATUS",payload:o}))}).catch(o=>{n({type:"UPDATE_CHAT_HISTORY_LOADING_STATE",payload:Nn.Fail}),n({type:"SET_COSMOSDB_STATUS",payload:{cosmosDB:!1,status:_n.NotConfigured}})})})()},[]),E.useEffect(()=>{(async()=>{oR().then(i=>{n({type:"FETCH_FRONTEND_SETTINGS",payload:i})}).catch(i=>{console.error("There was an issue fetching your data.")})})()},[]),B(ia.Provider,{value:{state:t,dispatch:n},children:e})},lR=()=>{var d,f;const[e,t]=E.useState(!1),[n,r]=E.useState(!1),[i,o]=E.useState("Copy URL"),a=E.useContext(ia),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:Gi.layout,children:[B("header",{className:Gi.header,role:"banner",children:fe(ge,{horizontal:!0,verticalAlign:"center",horizontalAlign:"space-between",children:[fe(ge,{horizontal:!0,verticalAlign:"center",children:[B("img",{src:lC,className:Gi.headerIcon,"aria-hidden":"true"}),B(m7,{to:"/",className:Gi.headerTitleContainer,children:B("h1",{className:Gi.headerTitle,children:"Contoso"})})]}),fe(ge,{horizontal:!0,tokens:{childrenGap:4},children:[((d=a==null?void 0:a.state.isCosmosDBAvailable)==null?void 0:d.status)!==_n.NotConfigured&&B(Yw,{onClick:c,text:(f=a==null?void 0:a.state)!=null&&f.isChatHistoryOpen?"Hide chat history":"Show chat history"}),B(Vw,{onClick:s})]})]})}),B(o7,{}),B(gl,{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(ge,{horizontal:!0,verticalAlign:"center",style:{gap:"8px"},children:[B(yg,{className:Gi.urlTextBox,defaultValue:window.location.href,readOnly:!0}),fe("div",{className:Gi.copyButtonContainer,role:"button",tabIndex:0,"aria-label":"Copy",onClick:u,onKeyDown:p=>p.key==="Enter"||p.key===" "?u():null,children:[B(Ow,{className:Gi.copyButton}),B("span",{className:Gi.copyButtonText,children:i})]})]})})]})},uR=()=>B("h1",{children:"404"}),A5=["http","https","mailto","tel"];function cR(e){const t=(e||"").trim(),n=t.charAt(0);if(n==="#"||n==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let i=-1;for(;++ii||(i=t.indexOf("#"),i!==-1&&r>i)?t:"javascript:void(0)"}/*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh * @license MIT */var fC=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};function vu(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?b5(e.position):"start"in e||"end"in e?b5(e):"line"in e||"column"in e?G0(e):""}function G0(e){return k5(e&&e.line)+":"+k5(e&&e.column)}function b5(e){return G0(e&&e.start)+"-"+G0(e&&e.end)}function k5(e){return e&&typeof e=="number"?e:1}class Wr 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=vu(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}}Wr.prototype.file="";Wr.prototype.name="";Wr.prototype.reason="";Wr.prototype.message="";Wr.prototype.stack="";Wr.prototype.fatal=null;Wr.prototype.column=null;Wr.prototype.line=null;Wr.prototype.source=null;Wr.prototype.ruleId=null;Wr.prototype.position=null;const Ci={basename:dR,dirname:fR,extname:hR,join:mR,sep:"/"};function dR(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');T1(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 fR(e){if(T1(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 hR(e){T1(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 mR(...e){let t=-1,n;for(;++t0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function gR(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 T1(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const ER={cwd:vR};function vR(){return"/"}function W0(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function TR(e){if(typeof e=="string")e=new URL(e);else if(!W0(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 _R(e)}function _R(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"||Yc.call(t,i)},R5=function(t,n){x5&&n.name==="__proto__"?x5(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},O5=function(t,n){if(n==="__proto__")if(Yc.call(t,n)){if(N5)return N5(t,n).value}else return;return t[n]},M5=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 AR=gC().freeze(),pC={}.hasOwnProperty;function gC(){const e=CR(),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=gC();let y=-1;for(;++y{if(A||!S||!D)F(A);else{const M=o.stringify(S,D);M==null||(IR(M)?D.value=M:D.result=M),F(A,D)}});function F(A,S){A||!S?_(A):T?T(S):y(null,S)}}}function h(v){let y;o.freeze(),Qh("processSync",o.Parser),Xh("processSync",o.Compiler);const m=Ul(v);return o.process(m,T),B5("processSync","process",y),m;function T(_){y=!0,F5(_)}}}function P5(e,t){return typeof e=="function"&&e.prototype&&(bR(e.prototype)||t in e.prototype)}function bR(e){let t;for(t in e)if(pC.call(e,t))return!0;return!1}function Qh(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 Zh(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 L5(e){if(!K0(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function B5(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ul(e){return kR(e)?e:new hC(e)}function kR(e){return Boolean(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function IR(e){return typeof e=="string"||fC(e)}const FR={};function xR(e,t){const n=t||FR,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return EC(e,r,i)}function EC(e,t,n){if(NR(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 H5(e.children,t,n)}return Array.isArray(e)?H5(e,t,n):""}function H5(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?(vr(e,e.length,0,t),e):t}const U5={}.hasOwnProperty;function vC(e){const t={};let n=-1;for(;++na))return;const S=t.events.length;let D=S,M,I;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){if(M){I=t.events[D][1].end;break}M=!0}for(m(r),A=S;A_;){const F=n[C];t.containerState=F[1],F[0].exit.call(t,e)}n.length=_}function T(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function UR(e,t,n){return Le(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Wd(e){if(e===null||vt(e)||ja(e))return 1;if(Cf(e))return 2}function Sf(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);W5(d,-l),W5(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=wr(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=wr(u,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),u=wr(u,Sf(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=wr(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=wr(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,vr(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n=4?a(u):n(u)}function a(u){return u===null?l(u):he(u)?e.attempt(ZR,a,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||he(u)?(e.exit("codeFlowValue"),a(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function eO(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):he(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):Le(e,o,"linePrefix",4+1)(a)}function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):he(a)?i(a):n(a)}}const tO={name:"codeText",tokenize:iO,resolve:nO,previous:rO};function nO(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function SC(e,t,n,r,i,o,a,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(m){return m===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(m),e.exit(o),f):m===null||m===41||Gd(m)?n(m):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),v(m))}function f(m){return m===62?(e.enter(o),e.consume(m),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===62?(e.exit("chunkString"),e.exit(s),f(m)):m===null||m===60||he(m)?n(m):(e.consume(m),m===92?h:p)}function h(m){return m===60||m===62||m===92?(e.consume(m),p):p(m)}function v(m){return m===40?++c>u?n(m):(e.consume(m),v):m===41?c--?(e.consume(m),v):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(m)):m===null||vt(m)?c?n(m):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(m)):Gd(m)?n(m):(e.consume(m),m===92?y:v)}function y(m){return m===40||m===41||m===92?(e.consume(m),v):v(m)}}function AC(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):he(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||he(p)||s++>999?(e.exit("chunkString"),c(p)):(e.consume(p),l=l||!st(p),p===92?f:d)}function f(p){return p===91||p===92||p===93?(e.consume(p),s++,d):d(p)}}function bC(e,t,n,r,i,o){let a;return s;function s(f){return e.enter(r),e.enter(i),e.consume(f),e.exit(i),a=f===40?41:f,l}function l(f){return f===a?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(e.enter(o),u(f))}function u(f){return f===a?(e.exit(o),l(a)):f===null?n(f):he(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Le(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===a||f===null||he(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?d:c)}function d(f){return f===a||f===92?(e.consume(f),c):c(f)}}function Tu(e,t){let n;return r;function r(i){return he(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):st(i)?Le(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function si(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const dO={name:"definition",tokenize:hO},fO={tokenize:mO,partial:!0};function hO(e,t,n){const r=this;let i;return o;function o(l){return e.enter("definition"),AC.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(l)}function a(l){return i=si(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),l===58?(e.enter("definitionMarker"),e.consume(l),e.exit("definitionMarker"),Tu(e,SC(e,e.attempt(fO,Le(e,s,"whitespace"),Le(e,s,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(l)}function s(l){return l===null||he(l)?(e.exit("definition"),r.parser.defined.includes(i)||r.parser.defined.push(i),t(l)):n(l)}}function mO(e,t,n){return r;function r(a){return vt(a)?Tu(e,i)(a):n(a)}function i(a){return a===34||a===39||a===40?bC(e,Le(e,o,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a):n(a)}function o(a){return a===null||he(a)?t(a):n(a)}}const pO={name:"hardBreakEscape",tokenize:gO};function gO(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.enter("escapeMarker"),e.consume(o),i}function i(o){return he(o)?(e.exit("escapeMarker"),e.exit("hardBreakEscape"),t(o)):n(o)}}const EO={name:"headingAtx",tokenize:TO,resolve:vO};function vO(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"},vr(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function TO(e,t,n){const r=this;let i=0;return o;function o(c){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),a(c)}function a(c){return c===35&&i++<6?(e.consume(c),a):c===null||vt(c)?(e.exit("atxHeadingSequence"),r.interrupt?t(c):s(c)):n(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||he(c)?(e.exit("atxHeading"),t(c)):st(c)?Le(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||vt(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const _O=["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"],$5=["pre","script","style","textarea"],yO={name:"htmlFlow",tokenize:AO,resolveTo:SO,concrete:!0},CO={tokenize:bO,partial:!0};function SO(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 AO(e,t,n){const r=this;let i,o,a,s,l;return u;function u(k){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(k),c}function c(k){return k===33?(e.consume(k),d):k===47?(e.consume(k),h):k===63?(e.consume(k),i=3,r.interrupt?t:W):Mn(k)?(e.consume(k),a=String.fromCharCode(k),o=!0,v):n(k)}function d(k){return k===45?(e.consume(k),i=2,f):k===91?(e.consume(k),i=5,a="CDATA[",s=0,p):Mn(k)?(e.consume(k),i=4,r.interrupt?t:W):n(k)}function f(k){return k===45?(e.consume(k),r.interrupt?t:W):n(k)}function p(k){return k===a.charCodeAt(s++)?(e.consume(k),s===a.length?r.interrupt?t:L:p):n(k)}function h(k){return Mn(k)?(e.consume(k),a=String.fromCharCode(k),v):n(k)}function v(k){return k===null||k===47||k===62||vt(k)?k!==47&&o&&$5.includes(a.toLowerCase())?(i=1,r.interrupt?t(k):L(k)):_O.includes(a.toLowerCase())?(i=6,k===47?(e.consume(k),y):r.interrupt?t(k):L(k)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(k):o?T(k):m(k)):k===45||er(k)?(e.consume(k),a+=String.fromCharCode(k),v):n(k)}function y(k){return k===62?(e.consume(k),r.interrupt?t:L):n(k)}function m(k){return st(k)?(e.consume(k),m):M(k)}function T(k){return k===47?(e.consume(k),M):k===58||k===95||Mn(k)?(e.consume(k),_):st(k)?(e.consume(k),T):M(k)}function _(k){return k===45||k===46||k===58||k===95||er(k)?(e.consume(k),_):C(k)}function C(k){return k===61?(e.consume(k),F):st(k)?(e.consume(k),C):T(k)}function F(k){return k===null||k===60||k===61||k===62||k===96?n(k):k===34||k===39?(e.consume(k),l=k,A):st(k)?(e.consume(k),F):(l=null,S(k))}function A(k){return k===null||he(k)?n(k):k===l?(e.consume(k),D):(e.consume(k),A)}function S(k){return k===null||k===34||k===39||k===60||k===61||k===62||k===96||vt(k)?C(k):(e.consume(k),S)}function D(k){return k===47||k===62||st(k)?T(k):n(k)}function M(k){return k===62?(e.consume(k),I):n(k)}function I(k){return st(k)?(e.consume(k),I):k===null||he(k)?L(k):n(k)}function L(k){return k===45&&i===2?(e.consume(k),U):k===60&&i===1?(e.consume(k),K):k===62&&i===4?(e.consume(k),V):k===63&&i===3?(e.consume(k),W):k===93&&i===5?(e.consume(k),P):he(k)&&(i===6||i===7)?e.check(CO,V,O)(k):k===null||he(k)?O(k):(e.consume(k),L)}function O(k){return e.exit("htmlFlowData"),X(k)}function X(k){return k===null?b(k):he(k)?e.attempt({tokenize:H,partial:!0},X,b)(k):(e.enter("htmlFlowData"),L(k))}function H(k,me,we){return ut;function ut(Ue){return k.enter("lineEnding"),k.consume(Ue),k.exit("lineEnding"),Se}function Se(Ue){return r.parser.lazy[r.now().line]?we(Ue):me(Ue)}}function U(k){return k===45?(e.consume(k),W):L(k)}function K(k){return k===47?(e.consume(k),a="",ne):L(k)}function ne(k){return k===62&&$5.includes(a.toLowerCase())?(e.consume(k),V):Mn(k)&&a.length<8?(e.consume(k),a+=String.fromCharCode(k),ne):L(k)}function P(k){return k===93?(e.consume(k),W):L(k)}function W(k){return k===62?(e.consume(k),V):k===45&&i===2?(e.consume(k),W):L(k)}function V(k){return k===null||he(k)?(e.exit("htmlFlowData"),b(k)):(e.consume(k),V)}function b(k){return e.exit("htmlFlow"),t(k)}}function bO(e,t,n){return r;function r(i){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),e.attempt(_1,t,n)}}const kO={name:"htmlText",tokenize:IO};function IO(e,t,n){const r=this;let i,o,a,s;return l;function l(b){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(b),u}function u(b){return b===33?(e.consume(b),c):b===47?(e.consume(b),S):b===63?(e.consume(b),F):Mn(b)?(e.consume(b),I):n(b)}function c(b){return b===45?(e.consume(b),d):b===91?(e.consume(b),o="CDATA[",a=0,y):Mn(b)?(e.consume(b),C):n(b)}function d(b){return b===45?(e.consume(b),f):n(b)}function f(b){return b===null||b===62?n(b):b===45?(e.consume(b),p):h(b)}function p(b){return b===null||b===62?n(b):h(b)}function h(b){return b===null?n(b):b===45?(e.consume(b),v):he(b)?(s=h,P(b)):(e.consume(b),h)}function v(b){return b===45?(e.consume(b),V):h(b)}function y(b){return b===o.charCodeAt(a++)?(e.consume(b),a===o.length?m:y):n(b)}function m(b){return b===null?n(b):b===93?(e.consume(b),T):he(b)?(s=m,P(b)):(e.consume(b),m)}function T(b){return b===93?(e.consume(b),_):m(b)}function _(b){return b===62?V(b):b===93?(e.consume(b),_):m(b)}function C(b){return b===null||b===62?V(b):he(b)?(s=C,P(b)):(e.consume(b),C)}function F(b){return b===null?n(b):b===63?(e.consume(b),A):he(b)?(s=F,P(b)):(e.consume(b),F)}function A(b){return b===62?V(b):F(b)}function S(b){return Mn(b)?(e.consume(b),D):n(b)}function D(b){return b===45||er(b)?(e.consume(b),D):M(b)}function M(b){return he(b)?(s=M,P(b)):st(b)?(e.consume(b),M):V(b)}function I(b){return b===45||er(b)?(e.consume(b),I):b===47||b===62||vt(b)?L(b):n(b)}function L(b){return b===47?(e.consume(b),V):b===58||b===95||Mn(b)?(e.consume(b),O):he(b)?(s=L,P(b)):st(b)?(e.consume(b),L):V(b)}function O(b){return b===45||b===46||b===58||b===95||er(b)?(e.consume(b),O):X(b)}function X(b){return b===61?(e.consume(b),H):he(b)?(s=X,P(b)):st(b)?(e.consume(b),X):L(b)}function H(b){return b===null||b===60||b===61||b===62||b===96?n(b):b===34||b===39?(e.consume(b),i=b,U):he(b)?(s=H,P(b)):st(b)?(e.consume(b),H):(e.consume(b),i=void 0,ne)}function U(b){return b===i?(e.consume(b),K):b===null?n(b):he(b)?(s=U,P(b)):(e.consume(b),U)}function K(b){return b===62||b===47||vt(b)?L(b):n(b)}function ne(b){return b===null||b===34||b===39||b===60||b===61||b===96?n(b):b===62||vt(b)?L(b):(e.consume(b),ne)}function P(b){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),Le(e,W,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function W(b){return e.enter("htmlTextData"),s(b)}function V(b){return b===62?(e.consume(b),e.exit("htmlTextData"),e.exit("htmlText"),t):n(b)}}const Fg={name:"labelEnd",tokenize:RO,resolveTo:wO,resolveAll:DO},FO={tokenize:OO},xO={tokenize:MO},NO={tokenize:PO};function DO(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 aM(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 _M=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function xC(e){return e.replace(_M,yM)}function yM(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return FC(n.slice(o?2:1),o?16:10)}return Ig(n)||e}const NC={}.hasOwnProperty,CM=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),SM(n)(TM(EM(n).document().write(vM()(e,t,!0))))};function SM(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Ot),autolinkProtocol:L,autolinkEmail:L,atxHeading:s(ve),blockQuote:s(ct),characterEscape:L,characterReference:L,codeFenced:s(Vt),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(Vt,l),codeText:s(sn,l),codeTextData:L,data:L,codeFlowValue:L,definition:s(Yt),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(ie),hardBreakEscape:s(ce),hardBreakTrailing:s(ce),htmlFlow:s($e,l),htmlFlowData:L,htmlText:s($e,l),htmlTextData:L,image:s(Ve),label:l,link:s(Ot),listItem:s(yt),listItemValue:h,listOrdered:s(Ee,p),listUnordered:s(Ee),paragraph:s(qt),reference:ut,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(ve),strong:s(Wn),thematicBreak:s(Qt)},exit:{atxHeading:c(),atxHeadingSequence:S,autolink:c(),autolinkEmail:We,autolinkProtocol:_t,blockQuote:c(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:Ue,characterReferenceMarkerNumeric:Ue,characterReferenceValue:St,codeFenced:c(T),codeFencedFence:m,codeFencedFenceInfo:v,codeFencedFenceMeta:y,codeFlowValue:O,codeIndented:c(_),codeText:c(ne),codeTextData:O,data:O,definition:c(),definitionDestinationString:A,definitionLabelString:C,definitionTitleString:F,emphasis:c(),hardBreakEscape:c(H),hardBreakTrailing:c(H),htmlFlow:c(U),htmlFlowData:O,htmlText:c(K),htmlTextData:O,image:c(W),label:b,labelText:V,lineEnding:X,link:c(P),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:Se,resourceDestinationString:k,resourceTitleString:me,resource:we,setextHeading:c(I),setextHeadingLineSequence:M,setextHeadingText:D,strong:c(),thematicBreak:c()}};DC(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(z){let Y={type:"root",children:[]};const se={stack:[Y],tokenStack:[],config:t,enter:u,exit:d,buffer:l,resume:f,setData:o,getData:a},pe=[];let q=-1;for(;++q0){const Re=se.tokenStack[se.tokenStack.length-1];(Re[1]||q5).call(se,void 0,Re[0])}for(Y.position={start:_o(z.length>0?z[0][1].start:{line:1,column:1,offset:0}),end:_o(z.length>0?z[z.length-2][1].end:{line:1,column:1,offset:0})},q=-1;++q{const r=this.data("settings");return CM(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}const rn=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},Qc={}.hasOwnProperty;function kM(e,t){const n=t.data||{};return"value"in t&&!(Qc.call(n,"hName")||Qc.call(n,"hProperties")||Qc.call(n,"hChildren"))?e.augment(t,rn("text",t.value)):e(t,"div",Gn(e,t))}function wC(e,t,n){const r=t&&t.type;let i;if(!r)throw new Error("Expected node, got `"+t+"`");return Qc.call(e.handlers,r)?i=e.handlers[r]:e.passThrough&&e.passThrough.includes(r)?i=IM:i=e.unknownHandler,(typeof i=="function"?i:kM)(e,t,n)}function IM(e,t){return"children"in t?{...t,children:Gn(e,t)}:t}function Gn(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=OM(n(s,u)),f[0]===Q5))return f;if(s.children&&f[0]!==RM)for(h=(r?s.children.length:-1)+o,v=u.concat(s);h>-1&&h-1?r.offset:null}}}function MM(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 X5={}.hasOwnProperty;function PM(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return al(e,"definition",r=>{const i=Z5(r.identifier);i&&!X5.call(t,i)&&(t[i]=r)}),n;function n(r){const i=Z5(r);return i&&X5.call(t,i)?t[i]:null}}function Z5(e){return String(e||"").toUpperCase()}function MC(e,t){return e(t,"hr")}function Uo(e,t){const n=[];let r=-1;for(t&&n.push(rn("text",` +`;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 sM={[42]:jn,[43]:jn,[45]:jn,[48]:jn,[49]:jn,[50]:jn,[51]:jn,[52]:jn,[53]:jn,[54]:jn,[55]:jn,[56]:jn,[57]:jn,[62]:TC},lM={[91]:dO},uM={[-2]:Jh,[-1]:Jh,[32]:Jh},cM={[35]:EO,[42]:qc,[45]:[V5,qc],[60]:yO,[61]:V5,[95]:qc,[96]:j5,[126]:j5},dM={[38]:yC,[92]:_C},fM={[-5]:em,[-4]:em,[-3]:em,[33]:LO,[38]:yC,[42]:$0,[60]:[WR,kO],[91]:HO,[92]:[pO,_C],[93]:Fg,[95]:$0,[96]:tO},hM={null:[$0,eM]},mM={null:[42,95]},pM={null:[]},gM=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:mM,contentInitial:lM,disable:pM,document:sM,flow:cM,flowInitial:uM,insideSpan:hM,string:dM,text:fM},Symbol.toStringTag,{value:"Module"}));function EM(e={}){const t=vC([gM].concat(e.extensions||[])),n={defined:[],lazy:{},constructs:t,content:r(PR),document:r(BR),flow:r(ZO),string:r(tM),text:r(nM)};return n;function r(i){return o;function o(a){return iM(n,i,a)}}}const Y5=/[\0\t\n\r]/g;function vM(){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 _M=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function xC(e){return e.replace(_M,yM)}function yM(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return FC(n.slice(o?2:1),o?16:10)}return Ig(n)||e}const NC={}.hasOwnProperty,CM=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),SM(n)(TM(EM(n).document().write(vM()(e,t,!0))))};function SM(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Ot),autolinkProtocol:L,autolinkEmail:L,atxHeading:s(Ee),blockQuote:s(ct),characterEscape:L,characterReference:L,codeFenced:s(Vt),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(Vt,l),codeText:s(sn,l),codeTextData:L,data:L,codeFlowValue:L,definition:s(Yt),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(ie),hardBreakEscape:s(le),hardBreakTrailing:s(le),htmlFlow:s($e,l),htmlFlowData:L,htmlText:s($e,l),htmlTextData:L,image:s(Ve),label:l,link:s(Ot),listItem:s(yt),listItemValue:h,listOrdered:s(ve,p),listUnordered:s(ve),paragraph:s(qt),reference:ut,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(Ee),strong:s(Wn),thematicBreak:s(Qt)},exit:{atxHeading:c(),atxHeadingSequence:S,autolink:c(),autolinkEmail:We,autolinkProtocol:_t,blockQuote:c(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:Ue,characterReferenceMarkerNumeric:Ue,characterReferenceValue:St,codeFenced:c(T),codeFencedFence:m,codeFencedFenceInfo:v,codeFencedFenceMeta:y,codeFlowValue:O,codeIndented:c(_),codeText:c(ne),codeTextData:O,data:O,definition:c(),definitionDestinationString:A,definitionLabelString:C,definitionTitleString:F,emphasis:c(),hardBreakEscape:c(H),hardBreakTrailing:c(H),htmlFlow:c(U),htmlFlowData:O,htmlText:c(K),htmlTextData:O,image:c(W),label:b,labelText:V,lineEnding:X,link:c(P),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:Se,resourceDestinationString:k,resourceTitleString:me,resource:we,setextHeading:c(I),setextHeadingLineSequence:M,setextHeadingText:D,strong:c(),thematicBreak:c()}};DC(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(z){let Y={type:"root",children:[]};const se={stack:[Y],tokenStack:[],config:t,enter:u,exit:d,buffer:l,resume:f,setData:o,getData:a},pe=[];let q=-1;for(;++q0){const Re=se.tokenStack[se.tokenStack.length-1];(Re[1]||q5).call(se,void 0,Re[0])}for(Y.position={start:_o(z.length>0?z[0][1].start:{line:1,column:1,offset:0}),end:_o(z.length>0?z[z.length-2][1].end:{line:1,column:1,offset:0})},q=-1;++q{const r=this.data("settings");return CM(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}const rn=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},Qc={}.hasOwnProperty;function kM(e,t){const n=t.data||{};return"value"in t&&!(Qc.call(n,"hName")||Qc.call(n,"hProperties")||Qc.call(n,"hChildren"))?e.augment(t,rn("text",t.value)):e(t,"div",Gn(e,t))}function wC(e,t,n){const r=t&&t.type;let i;if(!r)throw new Error("Expected node, got `"+t+"`");return Qc.call(e.handlers,r)?i=e.handlers[r]:e.passThrough&&e.passThrough.includes(r)?i=IM:i=e.unknownHandler,(typeof i=="function"?i:kM)(e,t,n)}function IM(e,t){return"children"in t?{...t,children:Gn(e,t)}:t}function Gn(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=OM(n(s,u)),f[0]===Q5))return f;if(s.children&&f[0]!==RM)for(h=(r?s.children.length:-1)+o,v=u.concat(s);h>-1&&h-1?r.offset:null}}}function MM(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 X5={}.hasOwnProperty;function PM(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return al(e,"definition",r=>{const i=Z5(r.identifier);i&&!X5.call(t,i)&&(t[i]=r)}),n;function n(r){const i=Z5(r);return i&&X5.call(t,i)?t[i]:null}}function Z5(e){return String(e||"").toUpperCase()}function MC(e,t){return e(t,"hr")}function Uo(e,t){const n=[];let r=-1;for(t&&n.push(rn("text",` `));++r0&&n.push(rn("text",` `)),n}function PC(e,t){const n={},r=t.ordered?"ol":"ul",i=Gn(e,t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++o0?Nn.createElement(f,s,c):Nn.createElement(f,s)}function tL(e){let t=-1;for(;++tString(t)).join("")}const uv={}.hasOwnProperty,aL="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",dc={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 Df(e){for(const o in dc)if(uv.call(dc,o)&&uv.call(e,o)){const a=dc[o];console.warn(`[react-markdown] Warning: please ${a.to?`use \`${a.to}\` instead of`:"remove"} \`${o}\` (see <${aL}#${a.id}> for more info)`),delete dc[o]}const t=AR().use(bM).use(e.remarkPlugins||e.plugins||[]).use(uP,{allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(bP,e),n=new hC;typeof e.children=="string"?n.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=t.runSync(t.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let i=Nn.createElement(Nn.Fragment,{},i8({options:e,schema:C1,listDepth:0},r));return e.className&&(i=Nn.createElement("div",{className:e.className},i)),i}Df.defaultProps={transformLinkUri:cR};Df.propTypes={children:Fe.string,className:Fe.string,allowElement:Fe.func,allowedElements:Fe.arrayOf(Fe.string),disallowedElements:Fe.arrayOf(Fe.string),unwrapDisallowed:Fe.bool,remarkPlugins:Fe.arrayOf(Fe.oneOfType([Fe.object,Fe.func,Fe.arrayOf(Fe.oneOfType([Fe.object,Fe.func]))])),rehypePlugins:Fe.arrayOf(Fe.oneOfType([Fe.object,Fe.func,Fe.arrayOf(Fe.oneOfType([Fe.object,Fe.func]))])),sourcePos:Fe.bool,rawSourcePos:Fe.bool,skipHtml:Fe.bool,includeElementIndex:Fe.bool,transformLinkUri:Fe.oneOfType([Fe.func,Fe.bool]),linkTarget:Fe.oneOfType([Fe.func,Fe.string]),transformImageUri:Fe.func,components:Fe.object};const sL={tokenize:hL,partial:!0},o8={tokenize:mL,partial:!0},a8={tokenize:pL,partial:!0},s8={tokenize:gL,partial:!0},lL={tokenize:EL,partial:!0},l8={tokenize:dL,previous:c8},u8={tokenize:fL,previous:d8},po={tokenize:cL,previous:f8},Bi={},uL={text:Bi};let ga=48;for(;ga<123;)Bi[ga]=po,ga++,ga===58?ga=65:ga===91&&(ga=97);Bi[43]=po;Bi[45]=po;Bi[46]=po;Bi[95]=po;Bi[72]=[po,u8];Bi[104]=[po,u8];Bi[87]=[po,l8];Bi[119]=[po,l8];function cL(e,t,n){const r=this;let i,o;return a;function a(d){return!Q0(d)||!f8.call(r,r.previous)||Rg(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return Q0(d)?(e.consume(d),s):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(lL,c,u)(d):d===45||d===95||er(d)?(o=!0,e.consume(d),l):c(d)}function u(d){return e.consume(d),i=!0,l}function c(d){return o&&i&&Mn(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function dL(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!c8.call(r,r.previous)||Rg(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(sL,e.attempt(o8,e.attempt(a8,o),n),n)(a))}function o(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function fL(e,t,n){const r=this;let i="",o=!1;return a;function a(d){return(d===72||d===104)&&d8.call(r,r.previous)&&!Rg(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),s):n(d)}function s(d){if(Mn(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),s;if(d===58){const f=i.toLowerCase();if(f==="http"||f==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),o?u:(o=!0,l)):n(d)}function u(d){return d===null||Gd(d)||vt(d)||ja(d)||Cf(d)?n(d):e.attempt(o8,e.attempt(a8,c),n)(d)}function c(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function hL(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 mL(e,t,n){let r,i,o;return a;function a(u){return u===46||u===95?e.check(s8,l,s)(u):u===null||vt(u)||ja(u)||u!==45&&Cf(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 pL(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 vL={tokenize:kL,partial:!0};function TL(){return{document:{[91]:{tokenize:SL,continuation:{tokenize:AL},exit:bL}},text:{[91]:{tokenize:CL},[93]:{add:"after",tokenize:_L,resolveTo:yL}}}}function _L(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return n(l);const u=si(r.sliceSerialize({start:a.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function yL(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 CL(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,a;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(o>999||d===93&&!a||d===null||d===91||vt(d))return n(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(si(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return vt(d)||(a=!0),o++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),o++,u):u(d)}}function SL(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,s;return l;function l(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(h)}function c(h){if(a>999||h===93&&!s||h===null||h===91||vt(h))return n(h);if(h===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return o=si(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return vt(h)||(s=!0),a++,e.consume(h),h===92?d:c}function d(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}function f(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),i.includes(o)||i.push(o),Le(e,p,"gfmFootnoteDefinitionWhitespace")):n(h)}function p(h){return t(h)}}function AL(e,t,n){return e.check(_1,t,e.attempt(vL,t,n))}function bL(e){e.exit("gfmFootnoteDefinition")}function kL(e,t,n){const r=this;return Le(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(o):n(o)}}function IL(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 y=a.exit("strikethroughSequenceTemporary"),m=Wd(h);return y._open=!m||m===2&&Boolean(v),y._close=!v||v===2&&Boolean(m),s(h)}}}class FL{constructor(){this.map=[]}add(t,n,r){xL(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 xL(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const H=r.events[L][1].type;if(H==="lineEnding"||H==="linePrefix")L--;else break}const O=L>-1?r.events[L][1].type:null,X=O==="tableHead"||O==="tableRow"?A:l;return X===A&&r.parser.lazy[r.now().line]?n(I):X(I)}function l(I){return e.enter("tableHead"),e.enter("tableRow"),u(I)}function u(I){return I===124||(a=!0,o+=1),c(I)}function c(I){return I===null?n(I):he(I)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),p):n(I):st(I)?Le(e,c,"whitespace")(I):(o+=1,a&&(a=!1,i+=1),I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),a=!0,c):(e.enter("data"),d(I)))}function d(I){return I===null||I===124||vt(I)?(e.exit("data"),c(I)):(e.consume(I),I===92?f:d)}function f(I){return I===92||I===124?(e.consume(I),d):d(I)}function p(I){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(I):(e.enter("tableDelimiterRow"),a=!1,st(I)?Le(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):h(I))}function h(I){return I===45||I===58?y(I):I===124?(a=!0,e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),v):F(I)}function v(I){return st(I)?Le(e,y,"whitespace")(I):y(I)}function y(I){return I===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),m):I===45?(o+=1,m(I)):I===null||he(I)?C(I):F(I)}function m(I){return I===45?(e.enter("tableDelimiterFiller"),T(I)):F(I)}function T(I){return I===45?(e.consume(I),T):I===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(I))}function _(I){return st(I)?Le(e,C,"whitespace")(I):C(I)}function C(I){return I===124?h(I):I===null||he(I)?!a||i!==o?F(I):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(I)):F(I)}function F(I){return n(I)}function A(I){return e.enter("tableRow"),S(I)}function S(I){return I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),S):I===null||he(I)?(e.exit("tableRow"),t(I)):st(I)?Le(e,S,"whitespace")(I):(e.enter("data"),D(I))}function D(I){return I===null||I===124||vt(I)?(e.exit("data"),S(I)):(e.consume(I),I===92?M:D)}function M(I){return I===92||I===124?(e.consume(I),D):D(I)}}function RL(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 FL;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({},Es(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function cv(e,t,n,r,i){const o=[],a=Es(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 Es(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const OL={tokenize:PL},ML={text:{[91]:OL}};function PL(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return vt(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return he(l)?t(l):st(l)?e.check({tokenize:LL},t,n)(l):n(l)}}function LL(e,t,n){return Le(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function BL(e){return vC([uL,TL(),IL(e),DL,ML])}function dv(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 HL(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const UL={}.hasOwnProperty,zL=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=xg(i.ignore||[]),s=GL(o);let l=-1;for(;++l0?{type:"text",value:S}:void 0),S!==!1&&(y!==F&&_.push({type:"text",value:d.value.slice(y,F)}),Array.isArray(S)?_.push(...S):S&&_.push(S),y=F+C[0].length,T=!0),!h.global)break;C=h.exec(d.value)}return T?(ye}const rm="phrasing",im=["autolink","link","image","label"],WL={transforms:[QL],enter:{literalAutolink:jL,literalAutolinkEmail:om,literalAutolinkHttp:om,literalAutolinkWww:om},exit:{literalAutolink:qL,literalAutolinkEmail:YL,literalAutolinkHttp:$L,literalAutolinkWww:VL}},KL={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:rm,notInConstruct:im},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:rm,notInConstruct:im},{character:":",before:"[ps]",after:"\\/",inConstruct:rm,notInConstruct:im}]};function jL(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function om(e){this.config.enter.autolinkProtocol.call(this,e)}function $L(e){this.config.exit.autolinkProtocol.call(this,e)}function VL(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function YL(e){this.config.exit.autolinkEmail.call(this,e)}function qL(e){this.exit(e)}function QL(e){zL(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,XL],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,ZL]],{ignore:["link","linkReference"]})}function XL(e,t,n,r,i){let o="";if(!h8(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!JL(n)))return!1;const a=eB(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 ZL(e,t,n,r){return!h8(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function JL(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 eB(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=dv(e,"(");let o=dv(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 h8(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||ja(n)||Cf(n))&&(!t||n!==47)}function m8(e){return e.label||!e.identifier?e.label||"":xC(e.identifier)}function tB(e,t,n){const r=t.indexStack,i=e.children||[],o=t.createTracker(n),a=[];let s=-1;for(r.push(-1);++s0?Dn.createElement(f,s,c):Dn.createElement(f,s)}function tL(e){let t=-1;for(;++tString(t)).join("")}const uv={}.hasOwnProperty,aL="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",dc={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 Df(e){for(const o in dc)if(uv.call(dc,o)&&uv.call(e,o)){const a=dc[o];console.warn(`[react-markdown] Warning: please ${a.to?`use \`${a.to}\` instead of`:"remove"} \`${o}\` (see <${aL}#${a.id}> for more info)`),delete dc[o]}const t=AR().use(bM).use(e.remarkPlugins||e.plugins||[]).use(uP,{allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(bP,e),n=new hC;typeof e.children=="string"?n.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=t.runSync(t.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let i=Dn.createElement(Dn.Fragment,{},i8({options:e,schema:C1,listDepth:0},r));return e.className&&(i=Dn.createElement("div",{className:e.className},i)),i}Df.defaultProps={transformLinkUri:cR};Df.propTypes={children:Fe.string,className:Fe.string,allowElement:Fe.func,allowedElements:Fe.arrayOf(Fe.string),disallowedElements:Fe.arrayOf(Fe.string),unwrapDisallowed:Fe.bool,remarkPlugins:Fe.arrayOf(Fe.oneOfType([Fe.object,Fe.func,Fe.arrayOf(Fe.oneOfType([Fe.object,Fe.func]))])),rehypePlugins:Fe.arrayOf(Fe.oneOfType([Fe.object,Fe.func,Fe.arrayOf(Fe.oneOfType([Fe.object,Fe.func]))])),sourcePos:Fe.bool,rawSourcePos:Fe.bool,skipHtml:Fe.bool,includeElementIndex:Fe.bool,transformLinkUri:Fe.oneOfType([Fe.func,Fe.bool]),linkTarget:Fe.oneOfType([Fe.func,Fe.string]),transformImageUri:Fe.func,components:Fe.object};const sL={tokenize:hL,partial:!0},o8={tokenize:mL,partial:!0},a8={tokenize:pL,partial:!0},s8={tokenize:gL,partial:!0},lL={tokenize:EL,partial:!0},l8={tokenize:dL,previous:c8},u8={tokenize:fL,previous:d8},po={tokenize:cL,previous:f8},Bi={},uL={text:Bi};let ga=48;for(;ga<123;)Bi[ga]=po,ga++,ga===58?ga=65:ga===91&&(ga=97);Bi[43]=po;Bi[45]=po;Bi[46]=po;Bi[95]=po;Bi[72]=[po,u8];Bi[104]=[po,u8];Bi[87]=[po,l8];Bi[119]=[po,l8];function cL(e,t,n){const r=this;let i,o;return a;function a(d){return!Q0(d)||!f8.call(r,r.previous)||Rg(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return Q0(d)?(e.consume(d),s):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(lL,c,u)(d):d===45||d===95||er(d)?(o=!0,e.consume(d),l):c(d)}function u(d){return e.consume(d),i=!0,l}function c(d){return o&&i&&Mn(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function dL(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!c8.call(r,r.previous)||Rg(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(sL,e.attempt(o8,e.attempt(a8,o),n),n)(a))}function o(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function fL(e,t,n){const r=this;let i="",o=!1;return a;function a(d){return(d===72||d===104)&&d8.call(r,r.previous)&&!Rg(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),s):n(d)}function s(d){if(Mn(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),s;if(d===58){const f=i.toLowerCase();if(f==="http"||f==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),o?u:(o=!0,l)):n(d)}function u(d){return d===null||Gd(d)||vt(d)||ja(d)||Cf(d)?n(d):e.attempt(o8,e.attempt(a8,c),n)(d)}function c(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function hL(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 mL(e,t,n){let r,i,o;return a;function a(u){return u===46||u===95?e.check(s8,l,s)(u):u===null||vt(u)||ja(u)||u!==45&&Cf(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 pL(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 vL={tokenize:kL,partial:!0};function TL(){return{document:{[91]:{tokenize:SL,continuation:{tokenize:AL},exit:bL}},text:{[91]:{tokenize:CL},[93]:{add:"after",tokenize:_L,resolveTo:yL}}}}function _L(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return n(l);const u=si(r.sliceSerialize({start:a.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function yL(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 CL(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,a;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(o>999||d===93&&!a||d===null||d===91||vt(d))return n(d);if(d===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return i.includes(si(r.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return vt(d)||(a=!0),o++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),o++,u):u(d)}}function SL(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,s;return l;function l(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(h)}function c(h){if(a>999||h===93&&!s||h===null||h===91||vt(h))return n(h);if(h===93){e.exit("chunkString");const v=e.exit("gfmFootnoteDefinitionLabelString");return o=si(r.sliceSerialize(v)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return vt(h)||(s=!0),a++,e.consume(h),h===92?d:c}function d(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}function f(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),i.includes(o)||i.push(o),Le(e,p,"gfmFootnoteDefinitionWhitespace")):n(h)}function p(h){return t(h)}}function AL(e,t,n){return e.check(_1,t,e.attempt(vL,t,n))}function bL(e){e.exit("gfmFootnoteDefinition")}function kL(e,t,n){const r=this;return Le(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(o):n(o)}}function IL(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 y=a.exit("strikethroughSequenceTemporary"),m=Wd(h);return y._open=!m||m===2&&Boolean(v),y._close=!v||v===2&&Boolean(m),s(h)}}}class FL{constructor(){this.map=[]}add(t,n,r){xL(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 xL(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const H=r.events[L][1].type;if(H==="lineEnding"||H==="linePrefix")L--;else break}const O=L>-1?r.events[L][1].type:null,X=O==="tableHead"||O==="tableRow"?A:l;return X===A&&r.parser.lazy[r.now().line]?n(I):X(I)}function l(I){return e.enter("tableHead"),e.enter("tableRow"),u(I)}function u(I){return I===124||(a=!0,o+=1),c(I)}function c(I){return I===null?n(I):he(I)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),p):n(I):st(I)?Le(e,c,"whitespace")(I):(o+=1,a&&(a=!1,i+=1),I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),a=!0,c):(e.enter("data"),d(I)))}function d(I){return I===null||I===124||vt(I)?(e.exit("data"),c(I)):(e.consume(I),I===92?f:d)}function f(I){return I===92||I===124?(e.consume(I),d):d(I)}function p(I){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(I):(e.enter("tableDelimiterRow"),a=!1,st(I)?Le(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):h(I))}function h(I){return I===45||I===58?y(I):I===124?(a=!0,e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),v):F(I)}function v(I){return st(I)?Le(e,y,"whitespace")(I):y(I)}function y(I){return I===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),m):I===45?(o+=1,m(I)):I===null||he(I)?C(I):F(I)}function m(I){return I===45?(e.enter("tableDelimiterFiller"),T(I)):F(I)}function T(I){return I===45?(e.consume(I),T):I===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(I))}function _(I){return st(I)?Le(e,C,"whitespace")(I):C(I)}function C(I){return I===124?h(I):I===null||he(I)?!a||i!==o?F(I):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(I)):F(I)}function F(I){return n(I)}function A(I){return e.enter("tableRow"),S(I)}function S(I){return I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),S):I===null||he(I)?(e.exit("tableRow"),t(I)):st(I)?Le(e,S,"whitespace")(I):(e.enter("data"),D(I))}function D(I){return I===null||I===124||vt(I)?(e.exit("data"),S(I)):(e.consume(I),I===92?M:D)}function M(I){return I===92||I===124?(e.consume(I),D):D(I)}}function RL(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 FL;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({},Es(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function cv(e,t,n,r,i){const o=[],a=Es(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 Es(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const OL={tokenize:PL},ML={text:{[91]:OL}};function PL(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return vt(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return he(l)?t(l):st(l)?e.check({tokenize:LL},t,n)(l):n(l)}}function LL(e,t,n){return Le(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function BL(e){return vC([uL,TL(),IL(e),DL,ML])}function dv(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 HL(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const UL={}.hasOwnProperty,zL=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=xg(i.ignore||[]),s=GL(o);let l=-1;for(;++l0?{type:"text",value:S}:void 0),S!==!1&&(y!==F&&_.push({type:"text",value:d.value.slice(y,F)}),Array.isArray(S)?_.push(...S):S&&_.push(S),y=F+C[0].length,T=!0),!h.global)break;C=h.exec(d.value)}return T?(ye}const rm="phrasing",im=["autolink","link","image","label"],WL={transforms:[QL],enter:{literalAutolink:jL,literalAutolinkEmail:om,literalAutolinkHttp:om,literalAutolinkWww:om},exit:{literalAutolink:qL,literalAutolinkEmail:YL,literalAutolinkHttp:$L,literalAutolinkWww:VL}},KL={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:rm,notInConstruct:im},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:rm,notInConstruct:im},{character:":",before:"[ps]",after:"\\/",inConstruct:rm,notInConstruct:im}]};function jL(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function om(e){this.config.enter.autolinkProtocol.call(this,e)}function $L(e){this.config.exit.autolinkProtocol.call(this,e)}function VL(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function YL(e){this.config.exit.autolinkEmail.call(this,e)}function qL(e){this.exit(e)}function QL(e){zL(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,XL],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,ZL]],{ignore:["link","linkReference"]})}function XL(e,t,n,r,i){let o="";if(!h8(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!JL(n)))return!1;const a=eB(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 ZL(e,t,n,r){return!h8(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function JL(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 eB(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=dv(e,"(");let o=dv(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 h8(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||ja(n)||Cf(n))&&(!t||n!==47)}function m8(e){return e.label||!e.identifier?e.label||"":xC(e.identifier)}function tB(e,t,n){const r=t.indexStack,i=e.children||[],o=t.createTracker(n),a=[];let s=-1;for(r.push(-1);++s-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 UB={exit:{taskListCheckValueChecked:vv,taskListCheckValueUnchecked:vv,paragraph:GB}},zB={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:WB}};function vv(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function GB(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};fi.isSurrogatePair=function(e){return e>=56320&&e<=57343};fi.getSurrogatePairCodePoint=function(e,t){return(e-55296)*1024+9216+t};fi.isControlCodePoint=function(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159};fi.isUndefinedCodePoint=function(e){return e>=64976&&e<=65007||$B.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 vs=fi,sm=Og,Ea=vs.CODE_POINTS,VB=1<<16;let YB=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=VB}_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(vs.isSurrogatePair(n))return this.pos++,this._addGap(),vs.getSurrogatePairCodePoint(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,Ea.EOF;return this._err(sm.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,vs.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){vs.isControlCodePoint(t)?this._err(sm.controlCharacterInInputStream):vs.isUndefinedCodePoint(t)&&this._err(sm.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};var qB=YB,QB=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 XB=qB,et=fi,Ra=QB,$=Og,N=et.CODE_POINTS,va=et.CODE_POINT_SEQUENCES,ZB={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},C8=1<<0,S8=1<<1,A8=1<<2,JB=C8|S8|A8,De="DATA_STATE",Ts="RCDATA_STATE",iu="RAWTEXT_STATE",qi="SCRIPT_DATA_STATE",b8="PLAINTEXT_STATE",Tv="TAG_OPEN_STATE",_v="END_TAG_OPEN_STATE",lm="TAG_NAME_STATE",yv="RCDATA_LESS_THAN_SIGN_STATE",Cv="RCDATA_END_TAG_OPEN_STATE",Sv="RCDATA_END_TAG_NAME_STATE",Av="RAWTEXT_LESS_THAN_SIGN_STATE",bv="RAWTEXT_END_TAG_OPEN_STATE",kv="RAWTEXT_END_TAG_NAME_STATE",Iv="SCRIPT_DATA_LESS_THAN_SIGN_STATE",Fv="SCRIPT_DATA_END_TAG_OPEN_STATE",xv="SCRIPT_DATA_END_TAG_NAME_STATE",Nv="SCRIPT_DATA_ESCAPE_START_STATE",Dv="SCRIPT_DATA_ESCAPE_START_DASH_STATE",Qr="SCRIPT_DATA_ESCAPED_STATE",wv="SCRIPT_DATA_ESCAPED_DASH_STATE",um="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",hc="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",Rv="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",Ov="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",Mv="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",Wi="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",Pv="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",Lv="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",mc="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",Bv="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",vi="BEFORE_ATTRIBUTE_NAME_STATE",pc="ATTRIBUTE_NAME_STATE",cm="AFTER_ATTRIBUTE_NAME_STATE",dm="BEFORE_ATTRIBUTE_VALUE_STATE",gc="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",Ec="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",vc="ATTRIBUTE_VALUE_UNQUOTED_STATE",fm="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",yo="SELF_CLOSING_START_TAG_STATE",zl="BOGUS_COMMENT_STATE",Hv="MARKUP_DECLARATION_OPEN_STATE",Uv="COMMENT_START_STATE",zv="COMMENT_START_DASH_STATE",Co="COMMENT_STATE",Gv="COMMENT_LESS_THAN_SIGN_STATE",Wv="COMMENT_LESS_THAN_SIGN_BANG_STATE",Kv="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",jv="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",Tc="COMMENT_END_DASH_STATE",_c="COMMENT_END_STATE",$v="COMMENT_END_BANG_STATE",Vv="DOCTYPE_STATE",yc="BEFORE_DOCTYPE_NAME_STATE",Cc="DOCTYPE_NAME_STATE",Yv="AFTER_DOCTYPE_NAME_STATE",qv="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",Qv="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",hm="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",mm="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",pm="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Xv="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",Zv="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",Jv="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Gl="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",Wl="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",gm="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Ki="BOGUS_DOCTYPE_STATE",Sc="CDATA_SECTION_STATE",eT="CDATA_SECTION_BRACKET_STATE",tT="CDATA_SECTION_END_STATE",fs="CHARACTER_REFERENCE_STATE",nT="NAMED_CHARACTER_REFERENCE_STATE",rT="AMBIGUOS_AMPERSAND_STATE",iT="NUMERIC_CHARACTER_REFERENCE_STATE",oT="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",aT="DECIMAL_CHARACTER_REFERENCE_START_STATE",sT="HEXADEMICAL_CHARACTER_REFERENCE_STATE",lT="DECIMAL_CHARACTER_REFERENCE_STATE",Kl="NUMERIC_CHARACTER_REFERENCE_END_STATE";function ft(e){return e===N.SPACE||e===N.LINE_FEED||e===N.TABULATION||e===N.FORM_FEED}function _u(e){return e>=N.DIGIT_0&&e<=N.DIGIT_9}function Xr(e){return e>=N.LATIN_CAPITAL_A&&e<=N.LATIN_CAPITAL_Z}function Ca(e){return e>=N.LATIN_SMALL_A&&e<=N.LATIN_SMALL_Z}function bo(e){return Ca(e)||Xr(e)}function Em(e){return bo(e)||_u(e)}function k8(e){return e>=N.LATIN_CAPITAL_A&&e<=N.LATIN_CAPITAL_F}function I8(e){return e>=N.LATIN_SMALL_A&&e<=N.LATIN_SMALL_F}function eH(e){return _u(e)||k8(e)||I8(e)}function Xc(e){return e+32}function Dt(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(e>>>10&1023|55296)+String.fromCharCode(56320|e&1023))}function So(e){return String.fromCharCode(Xc(e))}function uT(e,t){const n=Ra[++e];let r=++e,i=r+n-1;for(;r<=i;){const o=r+i>>>1,a=Ra[o];if(at)i=o-1;else return Ra[o+n]}return-1}let jr=class $n{constructor(){this.preprocessor=new XB,this.tokenQueue=[],this.allowCDATA=!1,this.state=De,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:$n.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===N.EOF){o=!1;break}if(u=t[s],l!==u&&(r||l!==Xc(u))){o=!1;break}}if(!o)for(;i--;)this._unconsume();return o}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==va.SCRIPT_STRING.length)return!1;for(let t=0;t0&&this._err($.endTagWithAttributes),t.selfClosing&&this._err($.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=$n.CHARACTER_TOKEN;ft(t)?n=$n.WHITESPACE_CHARACTER_TOKEN:t===N.NULL&&(n=$n.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(n,Dt(t))}_emitSeveralCodePoints(t){for(let n=0;n-1;){const o=Ra[i],a=o")):t===N.NULL?(this._err($.unexpectedNullCharacter),this.state=Qr,this._emitChars(et.REPLACEMENT_CHARACTER)):t===N.EOF?(this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Qr,this._emitCodePoint(t))}[hc](t){t===N.SOLIDUS?(this.tempBuff=[],this.state=Rv):bo(t)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(Mv)):(this._emitChars("<"),this._reconsumeInState(Qr))}[Rv](t){bo(t)?(this._createEndTagToken(),this._reconsumeInState(Ov)):(this._emitChars("")):t===N.NULL?(this._err($.unexpectedNullCharacter),this.state=Wi,this._emitChars(et.REPLACEMENT_CHARACTER)):t===N.EOF?(this._err($.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Wi,this._emitCodePoint(t))}[mc](t){t===N.SOLIDUS?(this.tempBuff=[],this.state=Bv,this._emitChars("/")):this._reconsumeInState(Wi)}[Bv](t){ft(t)||t===N.SOLIDUS||t===N.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?Qr:Wi,this._emitCodePoint(t)):Xr(t)?(this.tempBuff.push(Xc(t)),this._emitCodePoint(t)):Ca(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState(Wi)}[vi](t){ft(t)||(t===N.SOLIDUS||t===N.GREATER_THAN_SIGN||t===N.EOF?this._reconsumeInState(cm):t===N.EQUALS_SIGN?(this._err($.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=pc):(this._createAttr(""),this._reconsumeInState(pc)))}[pc](t){ft(t)||t===N.SOLIDUS||t===N.GREATER_THAN_SIGN||t===N.EOF?(this._leaveAttrName(cm),this._unconsume()):t===N.EQUALS_SIGN?this._leaveAttrName(dm):Xr(t)?this.currentAttr.name+=So(t):t===N.QUOTATION_MARK||t===N.APOSTROPHE||t===N.LESS_THAN_SIGN?(this._err($.unexpectedCharacterInAttributeName),this.currentAttr.name+=Dt(t)):t===N.NULL?(this._err($.unexpectedNullCharacter),this.currentAttr.name+=et.REPLACEMENT_CHARACTER):this.currentAttr.name+=Dt(t)}[cm](t){ft(t)||(t===N.SOLIDUS?this.state=yo:t===N.EQUALS_SIGN?this.state=dm:t===N.GREATER_THAN_SIGN?(this.state=De,this._emitCurrentToken()):t===N.EOF?(this._err($.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(pc)))}[dm](t){ft(t)||(t===N.QUOTATION_MARK?this.state=gc:t===N.APOSTROPHE?this.state=Ec:t===N.GREATER_THAN_SIGN?(this._err($.missingAttributeValue),this.state=De,this._emitCurrentToken()):this._reconsumeInState(vc))}[gc](t){t===N.QUOTATION_MARK?this.state=fm:t===N.AMPERSAND?(this.returnState=gc,this.state=fs):t===N.NULL?(this._err($.unexpectedNullCharacter),this.currentAttr.value+=et.REPLACEMENT_CHARACTER):t===N.EOF?(this._err($.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Dt(t)}[Ec](t){t===N.APOSTROPHE?this.state=fm:t===N.AMPERSAND?(this.returnState=Ec,this.state=fs):t===N.NULL?(this._err($.unexpectedNullCharacter),this.currentAttr.value+=et.REPLACEMENT_CHARACTER):t===N.EOF?(this._err($.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Dt(t)}[vc](t){ft(t)?this._leaveAttrValue(vi):t===N.AMPERSAND?(this.returnState=vc,this.state=fs):t===N.GREATER_THAN_SIGN?(this._leaveAttrValue(De),this._emitCurrentToken()):t===N.NULL?(this._err($.unexpectedNullCharacter),this.currentAttr.value+=et.REPLACEMENT_CHARACTER):t===N.QUOTATION_MARK||t===N.APOSTROPHE||t===N.LESS_THAN_SIGN||t===N.EQUALS_SIGN||t===N.GRAVE_ACCENT?(this._err($.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=Dt(t)):t===N.EOF?(this._err($.eofInTag),this._emitEOFToken()):this.currentAttr.value+=Dt(t)}[fm](t){ft(t)?this._leaveAttrValue(vi):t===N.SOLIDUS?this._leaveAttrValue(yo):t===N.GREATER_THAN_SIGN?(this._leaveAttrValue(De),this._emitCurrentToken()):t===N.EOF?(this._err($.eofInTag),this._emitEOFToken()):(this._err($.missingWhitespaceBetweenAttributes),this._reconsumeInState(vi))}[yo](t){t===N.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=De,this._emitCurrentToken()):t===N.EOF?(this._err($.eofInTag),this._emitEOFToken()):(this._err($.unexpectedSolidusInTag),this._reconsumeInState(vi))}[zl](t){t===N.GREATER_THAN_SIGN?(this.state=De,this._emitCurrentToken()):t===N.EOF?(this._emitCurrentToken(),this._emitEOFToken()):t===N.NULL?(this._err($.unexpectedNullCharacter),this.currentToken.data+=et.REPLACEMENT_CHARACTER):this.currentToken.data+=Dt(t)}[Hv](t){this._consumeSequenceIfMatch(va.DASH_DASH_STRING,t,!0)?(this._createCommentToken(),this.state=Uv):this._consumeSequenceIfMatch(va.DOCTYPE_STRING,t,!1)?this.state=Vv:this._consumeSequenceIfMatch(va.CDATA_START_STRING,t,!0)?this.allowCDATA?this.state=Sc:(this._err($.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=zl):this._ensureHibernation()||(this._err($.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(zl))}[Uv](t){t===N.HYPHEN_MINUS?this.state=zv:t===N.GREATER_THAN_SIGN?(this._err($.abruptClosingOfEmptyComment),this.state=De,this._emitCurrentToken()):this._reconsumeInState(Co)}[zv](t){t===N.HYPHEN_MINUS?this.state=_c:t===N.GREATER_THAN_SIGN?(this._err($.abruptClosingOfEmptyComment),this.state=De,this._emitCurrentToken()):t===N.EOF?(this._err($.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Co))}[Co](t){t===N.HYPHEN_MINUS?this.state=Tc:t===N.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=Gv):t===N.NULL?(this._err($.unexpectedNullCharacter),this.currentToken.data+=et.REPLACEMENT_CHARACTER):t===N.EOF?(this._err($.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=Dt(t)}[Gv](t){t===N.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=Wv):t===N.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(Co)}[Wv](t){t===N.HYPHEN_MINUS?this.state=Kv:this._reconsumeInState(Co)}[Kv](t){t===N.HYPHEN_MINUS?this.state=jv:this._reconsumeInState(Tc)}[jv](t){t!==N.GREATER_THAN_SIGN&&t!==N.EOF&&this._err($.nestedComment),this._reconsumeInState(_c)}[Tc](t){t===N.HYPHEN_MINUS?this.state=_c:t===N.EOF?(this._err($.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(Co))}[_c](t){t===N.GREATER_THAN_SIGN?(this.state=De,this._emitCurrentToken()):t===N.EXCLAMATION_MARK?this.state=$v:t===N.HYPHEN_MINUS?this.currentToken.data+="-":t===N.EOF?(this._err($.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(Co))}[$v](t){t===N.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=Tc):t===N.GREATER_THAN_SIGN?(this._err($.incorrectlyClosedComment),this.state=De,this._emitCurrentToken()):t===N.EOF?(this._err($.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(Co))}[Vv](t){ft(t)?this.state=yc:t===N.GREATER_THAN_SIGN?this._reconsumeInState(yc):t===N.EOF?(this._err($.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err($.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(yc))}[yc](t){ft(t)||(Xr(t)?(this._createDoctypeToken(So(t)),this.state=Cc):t===N.NULL?(this._err($.unexpectedNullCharacter),this._createDoctypeToken(et.REPLACEMENT_CHARACTER),this.state=Cc):t===N.GREATER_THAN_SIGN?(this._err($.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=De):t===N.EOF?(this._err($.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(Dt(t)),this.state=Cc))}[Cc](t){ft(t)?this.state=Yv:t===N.GREATER_THAN_SIGN?(this.state=De,this._emitCurrentToken()):Xr(t)?this.currentToken.name+=So(t):t===N.NULL?(this._err($.unexpectedNullCharacter),this.currentToken.name+=et.REPLACEMENT_CHARACTER):t===N.EOF?(this._err($.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=Dt(t)}[Yv](t){ft(t)||(t===N.GREATER_THAN_SIGN?(this.state=De,this._emitCurrentToken()):t===N.EOF?(this._err($.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(va.PUBLIC_STRING,t,!1)?this.state=qv:this._consumeSequenceIfMatch(va.SYSTEM_STRING,t,!1)?this.state=Zv:this._ensureHibernation()||(this._err($.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ki)))}[qv](t){ft(t)?this.state=Qv:t===N.QUOTATION_MARK?(this._err($.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=hm):t===N.APOSTROPHE?(this._err($.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=mm):t===N.GREATER_THAN_SIGN?(this._err($.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=De,this._emitCurrentToken()):t===N.EOF?(this._err($.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err($.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ki))}[Qv](t){ft(t)||(t===N.QUOTATION_MARK?(this.currentToken.publicId="",this.state=hm):t===N.APOSTROPHE?(this.currentToken.publicId="",this.state=mm):t===N.GREATER_THAN_SIGN?(this._err($.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=De,this._emitCurrentToken()):t===N.EOF?(this._err($.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err($.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ki)))}[hm](t){t===N.QUOTATION_MARK?this.state=pm:t===N.NULL?(this._err($.unexpectedNullCharacter),this.currentToken.publicId+=et.REPLACEMENT_CHARACTER):t===N.GREATER_THAN_SIGN?(this._err($.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=De):t===N.EOF?(this._err($.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Dt(t)}[mm](t){t===N.APOSTROPHE?this.state=pm:t===N.NULL?(this._err($.unexpectedNullCharacter),this.currentToken.publicId+=et.REPLACEMENT_CHARACTER):t===N.GREATER_THAN_SIGN?(this._err($.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=De):t===N.EOF?(this._err($.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=Dt(t)}[pm](t){ft(t)?this.state=Xv:t===N.GREATER_THAN_SIGN?(this.state=De,this._emitCurrentToken()):t===N.QUOTATION_MARK?(this._err($.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Gl):t===N.APOSTROPHE?(this._err($.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=Wl):t===N.EOF?(this._err($.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err($.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ki))}[Xv](t){ft(t)||(t===N.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=De):t===N.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Gl):t===N.APOSTROPHE?(this.currentToken.systemId="",this.state=Wl):t===N.EOF?(this._err($.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err($.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ki)))}[Zv](t){ft(t)?this.state=Jv:t===N.QUOTATION_MARK?(this._err($.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Gl):t===N.APOSTROPHE?(this._err($.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=Wl):t===N.GREATER_THAN_SIGN?(this._err($.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=De,this._emitCurrentToken()):t===N.EOF?(this._err($.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err($.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ki))}[Jv](t){ft(t)||(t===N.QUOTATION_MARK?(this.currentToken.systemId="",this.state=Gl):t===N.APOSTROPHE?(this.currentToken.systemId="",this.state=Wl):t===N.GREATER_THAN_SIGN?(this._err($.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=De,this._emitCurrentToken()):t===N.EOF?(this._err($.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err($.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Ki)))}[Gl](t){t===N.QUOTATION_MARK?this.state=gm:t===N.NULL?(this._err($.unexpectedNullCharacter),this.currentToken.systemId+=et.REPLACEMENT_CHARACTER):t===N.GREATER_THAN_SIGN?(this._err($.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=De):t===N.EOF?(this._err($.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Dt(t)}[Wl](t){t===N.APOSTROPHE?this.state=gm:t===N.NULL?(this._err($.unexpectedNullCharacter),this.currentToken.systemId+=et.REPLACEMENT_CHARACTER):t===N.GREATER_THAN_SIGN?(this._err($.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=De):t===N.EOF?(this._err($.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=Dt(t)}[gm](t){ft(t)||(t===N.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=De):t===N.EOF?(this._err($.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err($.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(Ki)))}[Ki](t){t===N.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=De):t===N.NULL?this._err($.unexpectedNullCharacter):t===N.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[Sc](t){t===N.RIGHT_SQUARE_BRACKET?this.state=eT:t===N.EOF?(this._err($.eofInCdata),this._emitEOFToken()):this._emitCodePoint(t)}[eT](t){t===N.RIGHT_SQUARE_BRACKET?this.state=tT:(this._emitChars("]"),this._reconsumeInState(Sc))}[tT](t){t===N.GREATER_THAN_SIGN?this.state=De:t===N.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(Sc))}[fs](t){this.tempBuff=[N.AMPERSAND],t===N.NUMBER_SIGN?(this.tempBuff.push(t),this.state=iT):Em(t)?this._reconsumeInState(nT):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[nT](t){const n=this._matchNamedCharacterReference(t);if(this._ensureHibernation())this.tempBuff=[N.AMPERSAND];else if(n){const r=this.tempBuff[this.tempBuff.length-1]===N.SEMICOLON;this._isCharacterReferenceAttributeQuirk(r)||(r||this._errOnNextCodePoint($.missingSemicolonAfterCharacterReference),this.tempBuff=n),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=rT}[rT](t){Em(t)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=Dt(t):this._emitCodePoint(t):(t===N.SEMICOLON&&this._err($.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[iT](t){this.charRefCode=0,t===N.LATIN_SMALL_X||t===N.LATIN_CAPITAL_X?(this.tempBuff.push(t),this.state=oT):this._reconsumeInState(aT)}[oT](t){eH(t)?this._reconsumeInState(sT):(this._err($.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[aT](t){_u(t)?this._reconsumeInState(lT):(this._err($.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[sT](t){k8(t)?this.charRefCode=this.charRefCode*16+t-55:I8(t)?this.charRefCode=this.charRefCode*16+t-87:_u(t)?this.charRefCode=this.charRefCode*16+t-48:t===N.SEMICOLON?this.state=Kl:(this._err($.missingSemicolonAfterCharacterReference),this._reconsumeInState(Kl))}[lT](t){_u(t)?this.charRefCode=this.charRefCode*10+t-48:t===N.SEMICOLON?this.state=Kl:(this._err($.missingSemicolonAfterCharacterReference),this._reconsumeInState(Kl))}[Kl](){if(this.charRefCode===N.NULL)this._err($.nullCharacterReference),this.charRefCode=N.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err($.characterReferenceOutsideUnicodeRange),this.charRefCode=N.REPLACEMENT_CHARACTER;else if(et.isSurrogate(this.charRefCode))this._err($.surrogateCharacterReference),this.charRefCode=N.REPLACEMENT_CHARACTER;else if(et.isUndefinedCodePoint(this.charRefCode))this._err($.noncharacterCharacterReference);else if(et.isControlCodePoint(this.charRefCode)||this.charRefCode===N.CARRIAGE_RETURN){this._err($.controlCharacterReference);const t=ZB[this.charRefCode];t&&(this.charRefCode=t)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};jr.CHARACTER_TOKEN="CHARACTER_TOKEN";jr.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";jr.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";jr.START_TAG_TOKEN="START_TAG_TOKEN";jr.END_TAG_TOKEN="END_TAG_TOKEN";jr.COMMENT_TOKEN="COMMENT_TOKEN";jr.DOCTYPE_TOKEN="DOCTYPE_TOKEN";jr.EOF_TOKEN="EOF_TOKEN";jr.HIBERNATION_TOKEN="HIBERNATION_TOKEN";jr.MODE={DATA:De,RCDATA:Ts,RAWTEXT:iu,SCRIPT_DATA:qi,PLAINTEXT:b8};jr.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 Rf=jr,hi={};const vm=hi.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/"};hi.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};hi.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};const J=hi.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"};hi.SPECIAL_ELEMENTS={[vm.HTML]:{[J.ADDRESS]:!0,[J.APPLET]:!0,[J.AREA]:!0,[J.ARTICLE]:!0,[J.ASIDE]:!0,[J.BASE]:!0,[J.BASEFONT]:!0,[J.BGSOUND]:!0,[J.BLOCKQUOTE]:!0,[J.BODY]:!0,[J.BR]:!0,[J.BUTTON]:!0,[J.CAPTION]:!0,[J.CENTER]:!0,[J.COL]:!0,[J.COLGROUP]:!0,[J.DD]:!0,[J.DETAILS]:!0,[J.DIR]:!0,[J.DIV]:!0,[J.DL]:!0,[J.DT]:!0,[J.EMBED]:!0,[J.FIELDSET]:!0,[J.FIGCAPTION]:!0,[J.FIGURE]:!0,[J.FOOTER]:!0,[J.FORM]:!0,[J.FRAME]:!0,[J.FRAMESET]:!0,[J.H1]:!0,[J.H2]:!0,[J.H3]:!0,[J.H4]:!0,[J.H5]:!0,[J.H6]:!0,[J.HEAD]:!0,[J.HEADER]:!0,[J.HGROUP]:!0,[J.HR]:!0,[J.HTML]:!0,[J.IFRAME]:!0,[J.IMG]:!0,[J.INPUT]:!0,[J.LI]:!0,[J.LINK]:!0,[J.LISTING]:!0,[J.MAIN]:!0,[J.MARQUEE]:!0,[J.MENU]:!0,[J.META]:!0,[J.NAV]:!0,[J.NOEMBED]:!0,[J.NOFRAMES]:!0,[J.NOSCRIPT]:!0,[J.OBJECT]:!0,[J.OL]:!0,[J.P]:!0,[J.PARAM]:!0,[J.PLAINTEXT]:!0,[J.PRE]:!0,[J.SCRIPT]:!0,[J.SECTION]:!0,[J.SELECT]:!0,[J.SOURCE]:!0,[J.STYLE]:!0,[J.SUMMARY]:!0,[J.TABLE]:!0,[J.TBODY]:!0,[J.TD]:!0,[J.TEMPLATE]:!0,[J.TEXTAREA]:!0,[J.TFOOT]:!0,[J.TH]:!0,[J.THEAD]:!0,[J.TITLE]:!0,[J.TR]:!0,[J.TRACK]:!0,[J.UL]:!0,[J.WBR]:!0,[J.XMP]:!0},[vm.MATHML]:{[J.MI]:!0,[J.MO]:!0,[J.MN]:!0,[J.MS]:!0,[J.MTEXT]:!0,[J.ANNOTATION_XML]:!0},[vm.SVG]:{[J.TITLE]:!0,[J.FOREIGN_OBJECT]:!0,[J.DESC]:!0}};const F8=hi,te=F8.TAG_NAMES,tt=F8.NAMESPACES;function cT(e){switch(e.length){case 1:return e===te.P;case 2:return e===te.RB||e===te.RP||e===te.RT||e===te.DD||e===te.DT||e===te.LI;case 3:return e===te.RTC;case 6:return e===te.OPTION;case 8:return e===te.OPTGROUP}return!1}function tH(e){switch(e.length){case 1:return e===te.P;case 2:return e===te.RB||e===te.RP||e===te.RT||e===te.DD||e===te.DT||e===te.LI||e===te.TD||e===te.TH||e===te.TR;case 3:return e===te.RTC;case 5:return e===te.TBODY||e===te.TFOOT||e===te.THEAD;case 6:return e===te.OPTION;case 7:return e===te.CAPTION;case 8:return e===te.OPTGROUP||e===te.COLGROUP}return!1}function Ac(e,t){switch(e.length){case 2:if(e===te.TD||e===te.TH)return t===tt.HTML;if(e===te.MI||e===te.MO||e===te.MN||e===te.MS)return t===tt.MATHML;break;case 4:if(e===te.HTML)return t===tt.HTML;if(e===te.DESC)return t===tt.SVG;break;case 5:if(e===te.TABLE)return t===tt.HTML;if(e===te.MTEXT)return t===tt.MATHML;if(e===te.TITLE)return t===tt.SVG;break;case 6:return(e===te.APPLET||e===te.OBJECT)&&t===tt.HTML;case 7:return(e===te.CAPTION||e===te.MARQUEE)&&t===tt.HTML;case 8:return e===te.TEMPLATE&&t===tt.HTML;case 13:return e===te.FOREIGN_OBJECT&&t===tt.SVG;case 14:return e===te.ANNOTATION_XML&&t===tt.MATHML}return!1}let nH=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===te.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===tt.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(t){this.items[++this.stackTop]=t,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&this._updateCurrentElement()}insertAfter(t,n){const r=this._indexOf(t)+1;this.items.splice(r,0,n),r===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(t){for(;this.stackTop>-1;){const n=this.currentTagName,r=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),n===t&&r===tt.HTML)break}}popUntilElementPopped(t){for(;this.stackTop>-1;){const n=this.current;if(this.pop(),n===t)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===te.H1||t===te.H2||t===te.H3||t===te.H4||t===te.H5||t===te.H6&&n===tt.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){const t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===te.TD||t===te.TH&&n===tt.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==te.TABLE&&this.currentTagName!==te.TEMPLATE&&this.currentTagName!==te.HTML||this.treeAdapter.getNamespaceURI(this.current)!==tt.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==te.TBODY&&this.currentTagName!==te.TFOOT&&this.currentTagName!==te.THEAD&&this.currentTagName!==te.TEMPLATE&&this.currentTagName!==te.HTML||this.treeAdapter.getNamespaceURI(this.current)!==tt.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==te.TR&&this.currentTagName!==te.TEMPLATE&&this.currentTagName!==te.HTML||this.treeAdapter.getNamespaceURI(this.current)!==tt.HTML;)this.pop()}remove(t){for(let n=this.stackTop;n>=0;n--)if(this.items[n]===t){this.items.splice(n,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){const t=this.items[1];return t&&this.treeAdapter.getTagName(t)===te.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===te.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===tt.HTML)return!0;if(Ac(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===te.H1||n===te.H2||n===te.H3||n===te.H4||n===te.H5||n===te.H6)&&r===tt.HTML)return!0;if(Ac(n,r))return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===tt.HTML)return!0;if((r===te.UL||r===te.OL)&&i===tt.HTML||Ac(r,i))return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]),i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===tt.HTML)return!0;if(r===te.BUTTON&&i===tt.HTML||Ac(r,i))return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===tt.HTML){if(r===t)return!0;if(r===te.TABLE||r===te.TEMPLATE||r===te.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===tt.HTML){if(n===te.TBODY||n===te.THEAD||n===te.TFOOT)return!0;if(n===te.TABLE||n===te.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.treeAdapter.getTagName(this.items[n]);if(this.treeAdapter.getNamespaceURI(this.items[n])===tt.HTML){if(r===t)return!0;if(r!==te.OPTION&&r!==te.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;cT(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;tH(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;cT(this.currentTagName)&&this.currentTagName!==t;)this.pop()}};var rH=nH;const bc=3;let Mg=class ko{constructor(t){this.length=0,this.entries=[],this.treeAdapter=t,this.bookmark=null}_getNoahArkConditionCandidates(t){const n=[];if(this.length>=bc){const r=this.treeAdapter.getAttrList(t).length,i=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t);for(let a=this.length-1;a>=0;a--){const s=this.entries[a];if(s.type===ko.MARKER_ENTRY)break;const l=s.element,u=this.treeAdapter.getAttrList(l);this.treeAdapter.getTagName(l)===i&&this.treeAdapter.getNamespaceURI(l)===o&&u.length===r&&n.push({idx:a,attrs:u})}}return n.length=bc-1;s--)this.entries.splice(n[s].idx,1),this.length--}}insertMarker(){this.entries.push({type:ko.MARKER_ENTRY}),this.length++}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.push({type:ko.ELEMENT_ENTRY,element:t,token:n}),this.length++}insertElementAfterBookmark(t,n){let r=this.length-1;for(;r>=0&&this.entries[r]!==this.bookmark;r--);this.entries.splice(r+1,0,{type:ko.ELEMENT_ENTRY,element:t,token:n}),this.length++}removeEntry(t){for(let n=this.length-1;n>=0;n--)if(this.entries[n]===t){this.entries.splice(n,1),this.length--;break}}clearToLastMarker(){for(;this.length;){const t=this.entries.pop();if(this.length--,t.type===ko.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===ko.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(r.element)===t)return r}return null}getElementEntry(t){for(let n=this.length-1;n>=0;n--){const r=this.entries[n];if(r.type===ko.ELEMENT_ENTRY&&r.element===t)return r}return null}};Mg.MARKER_ENTRY="MARKER_ENTRY";Mg.ELEMENT_ENTRY="ELEMENT_ENTRY";var iH=Mg;let x8=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")}};x8.install=function(e,t,n){e.__mixins||(e.__mixins=[]);for(let i=0;i{const o=Tm.MODE[i];r[o]=function(a){t.ctLoc=t._getCurrentLocation(),n[o].call(this,a)}}),r}};var D8=lH;const uH=go;let cH=class extends uH{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 dH=cH;const _m=go,fT=Rf,fH=D8,hH=dH,mH=hi,ym=mH.TAG_NAMES;let pH=class extends _m{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===fT.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=_m.install(this.tokenizer,fH);t.posTracker=o.posTracker,_m.install(this.openElements,hH,{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===fT.END_TAG_TOKEN&&(r.tagName===ym.HTML||r.tagName===ym.BODY&&this.openElements.hasInScope(ym.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))},Of={};const{DOCUMENT_MODE:hs}=hi,O8="html",LH="about:legacy-compat",BH="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",M8=["+//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//"],HH=M8.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),UH=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],P8=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],zH=P8.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function mT(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function pT(e,t){for(let n=0;n-1)return hs.QUIRKS;let r=t===null?HH:M8;if(pT(n,r))return hs.QUIRKS;if(r=t===null?P8:zH,pT(n,r))return hs.LIMITED_QUIRKS}return hs.NO_QUIRKS};Of.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+mT(t):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+mT(n)),r};var aa={};const Cm=Rf,Lg=hi,ue=Lg.TAG_NAMES,cn=Lg.NAMESPACES,Zc=Lg.ATTRS,gT={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},GH="definitionurl",WH="definitionURL",KH={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"},jH={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:cn.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:cn.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:cn.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:cn.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:cn.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:cn.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:cn.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:cn.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:cn.XML},"xml:space":{prefix:"xml",name:"space",namespace:cn.XML},xmlns:{prefix:"",name:"xmlns",namespace:cn.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:cn.XMLNS}},$H=aa.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"},VH={[ue.B]:!0,[ue.BIG]:!0,[ue.BLOCKQUOTE]:!0,[ue.BODY]:!0,[ue.BR]:!0,[ue.CENTER]:!0,[ue.CODE]:!0,[ue.DD]:!0,[ue.DIV]:!0,[ue.DL]:!0,[ue.DT]:!0,[ue.EM]:!0,[ue.EMBED]:!0,[ue.H1]:!0,[ue.H2]:!0,[ue.H3]:!0,[ue.H4]:!0,[ue.H5]:!0,[ue.H6]:!0,[ue.HEAD]:!0,[ue.HR]:!0,[ue.I]:!0,[ue.IMG]:!0,[ue.LI]:!0,[ue.LISTING]:!0,[ue.MENU]:!0,[ue.META]:!0,[ue.NOBR]:!0,[ue.OL]:!0,[ue.P]:!0,[ue.PRE]:!0,[ue.RUBY]:!0,[ue.S]:!0,[ue.SMALL]:!0,[ue.SPAN]:!0,[ue.STRONG]:!0,[ue.STRIKE]:!0,[ue.SUB]:!0,[ue.SUP]:!0,[ue.TABLE]:!0,[ue.TT]:!0,[ue.U]:!0,[ue.UL]:!0,[ue.VAR]:!0};aa.causesExit=function(e){const t=e.tagName;return t===ue.FONT&&(Cm.getTokenAttr(e,Zc.COLOR)!==null||Cm.getTokenAttr(e,Zc.SIZE)!==null||Cm.getTokenAttr(e,Zc.FACE)!==null)?!0:VH[t]};aa.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=oU[i];if(o){this.insertionMode=o;break}else if(!n&&(i===g.TD||i===g.TH)){this.insertionMode=Bf;break}else if(!n&&i===g.HEAD){this.insertionMode=Tl;break}else if(i===g.SELECT){this._resetInsertionModeForSelect(t);break}else if(i===g.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(i===g.HTML){this.insertionMode=this.headElement?Pf:Mf;break}else if(n){this.insertionMode=Ri;break}}}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r);if(i===g.TEMPLATE)break;if(i===g.TABLE){this.insertionMode=Ug;return}}this.insertionMode=Hg}_pushTmplInsertionMode(t){this.tmplInsertionModeStack.push(t),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=t}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(t){const n=this.treeAdapter.getTagName(t);return n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const t={parent:null,beforeElement:null};for(let n=this.openElements.stackTop;n>=0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r),o=this.treeAdapter.getNamespaceURI(r);if(i===g.TEMPLATE&&o===ae.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(i===g.TABLE){t.parent=this.treeAdapter.getParentNode(r),t.parent?t.beforeElement=r:t.parent=this.openElements.items[n-1];break}}return t.parent||(t.parent=this.openElements.items[0]),t}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_fosterParentText(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertTextBefore(n.parent,t,n.beforeElement):this.treeAdapter.insertText(n.parent,t)}_isSpecialElement(t){const n=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t);return Ja.SPECIAL_ELEMENTS[r][n]}}var lU=sU;function uU(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Zr(e,t),n}function cU(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 dU(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>=iU;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(a)):(a=fU(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function fU(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 hU(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===g.TEMPLATE&&i===ae.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function mU(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o)}function wo(e,t){let n;for(let r=0;r0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==g.TEMPLATE&&e._err(fn.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(fn.endTagWithoutMatchingOpenElement)}function Su(e,t){e.openElements.pop(),e.insertionMode=Pf,e._processToken(t)}function yU(e,t){const n=t.tagName;n===g.HTML?ir(e,t):n===g.BASEFONT||n===g.BGSOUND||n===g.HEAD||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.STYLE?tn(e,t):n===g.NOSCRIPT?e._err(fn.nestedNoscriptInHead):Au(e,t)}function CU(e,t){const n=t.tagName;n===g.NOSCRIPT?(e.openElements.pop(),e.insertionMode=Tl):n===g.BR?Au(e,t):e._err(fn.endTagWithoutMatchingOpenElement)}function Au(e,t){const n=t.type===w.EOF_TOKEN?fn.openElementsLeftAfterEof:fn.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=Tl,e._processToken(t)}function SU(e,t){const n=t.tagName;n===g.HTML?ir(e,t):n===g.BODY?(e._insertElement(t,ae.HTML),e.framesetOk=!1,e.insertionMode=Ri):n===g.FRAMESET?(e._insertElement(t,ae.HTML),e.insertionMode=Hf):n===g.BASE||n===g.BASEFONT||n===g.BGSOUND||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.SCRIPT||n===g.STYLE||n===g.TEMPLATE||n===g.TITLE?(e._err(fn.abandonedHeadElementChild),e.openElements.push(e.headElement),tn(e,t),e.openElements.remove(e.headElement)):n===g.HEAD?e._err(fn.misplacedStartTagForHeadElement):bu(e,t)}function AU(e,t){const n=t.tagName;n===g.BODY||n===g.HTML||n===g.BR?bu(e,t):n===g.TEMPLATE?es(e,t):e._err(fn.endTagWithoutMatchingOpenElement)}function bu(e,t){e._insertFakeElement(g.BODY),e.insertionMode=Ri,e._processToken(t)}function Ta(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Ic(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function bU(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function kU(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function IU(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,ae.HTML),e.insertionMode=Hf)}function ji(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,ae.HTML)}function FU(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===g.H1||n===g.H2||n===g.H3||n===g.H4||n===g.H5||n===g.H6)&&e.openElements.pop(),e._insertElement(t,ae.HTML)}function CT(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,ae.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function xU(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,ae.HTML),n||(e.formElement=e.openElements.current))}function NU(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r],o=e.treeAdapter.getTagName(i);let a=null;if(n===g.LI&&o===g.LI?a=g.LI:(n===g.DD||n===g.DT)&&(o===g.DD||o===g.DT)&&(a=o),a){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(o!==g.ADDRESS&&o!==g.DIV&&o!==g.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,ae.HTML)}function DU(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,ae.HTML),e.tokenizer.state=w.MODE.PLAINTEXT}function wU(e,t){e.openElements.hasInScope(g.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.framesetOk=!1}function RU(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(g.A);n&&(wo(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ms(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function OU(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(g.NOBR)&&(wo(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,ae.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ST(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function MU(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ja.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,ae.HTML),e.framesetOk=!1,e.insertionMode=_n}function _s(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ae.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function PU(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ae.HTML);const n=w.getTokenAttr(t,L8.TYPE);(!n||n.toLowerCase()!==B8)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function AT(e,t){e._appendElement(t,ae.HTML),t.ackSelfClosing=!0}function LU(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._appendElement(t,ae.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function BU(e,t){t.tagName=g.IMG,_s(e,t)}function HU(e,t){e._insertElement(t,ae.HTML),e.skipNextNewLine=!0,e.tokenizer.state=w.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Kd}function UU(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,w.MODE.RAWTEXT)}function zU(e,t){e.framesetOk=!1,e._switchToTextParsing(t,w.MODE.RAWTEXT)}function bT(e,t){e._switchToTextParsing(t,w.MODE.RAWTEXT)}function GU(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.framesetOk=!1,e.insertionMode===_n||e.insertionMode===Lf||e.insertionMode===Br||e.insertionMode===co||e.insertionMode===Bf?e.insertionMode=Ug:e.insertionMode=Hg}function kT(e,t){e.openElements.currentTagName===g.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML)}function IT(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,ae.HTML)}function WU(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(g.RTC),e._insertElement(t,ae.HTML)}function KU(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,ae.HTML)}function jU(e,t){e._reconstructActiveFormattingElements(),Ii.adjustTokenMathMLAttrs(t),Ii.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,ae.MATHML):e._insertElement(t,ae.MATHML),t.ackSelfClosing=!0}function $U(e,t){e._reconstructActiveFormattingElements(),Ii.adjustTokenSVGAttrs(t),Ii.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,ae.SVG):e._insertElement(t,ae.SVG),t.ackSelfClosing=!0}function kr(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML)}function ir(e,t){const n=t.tagName;switch(n.length){case 1:n===g.I||n===g.S||n===g.B||n===g.U?ms(e,t):n===g.P?ji(e,t):n===g.A?RU(e,t):kr(e,t);break;case 2:n===g.DL||n===g.OL||n===g.UL?ji(e,t):n===g.H1||n===g.H2||n===g.H3||n===g.H4||n===g.H5||n===g.H6?FU(e,t):n===g.LI||n===g.DD||n===g.DT?NU(e,t):n===g.EM||n===g.TT?ms(e,t):n===g.BR?_s(e,t):n===g.HR?LU(e,t):n===g.RB?IT(e,t):n===g.RT||n===g.RP?WU(e,t):n!==g.TH&&n!==g.TD&&n!==g.TR&&kr(e,t);break;case 3:n===g.DIV||n===g.DIR||n===g.NAV?ji(e,t):n===g.PRE?CT(e,t):n===g.BIG?ms(e,t):n===g.IMG||n===g.WBR?_s(e,t):n===g.XMP?UU(e,t):n===g.SVG?$U(e,t):n===g.RTC?IT(e,t):n!==g.COL&&kr(e,t);break;case 4:n===g.HTML?bU(e,t):n===g.BASE||n===g.LINK||n===g.META?tn(e,t):n===g.BODY?kU(e,t):n===g.MAIN||n===g.MENU?ji(e,t):n===g.FORM?xU(e,t):n===g.CODE||n===g.FONT?ms(e,t):n===g.NOBR?OU(e,t):n===g.AREA?_s(e,t):n===g.MATH?jU(e,t):n===g.MENU?KU(e,t):n!==g.HEAD&&kr(e,t);break;case 5:n===g.STYLE||n===g.TITLE?tn(e,t):n===g.ASIDE?ji(e,t):n===g.SMALL?ms(e,t):n===g.TABLE?MU(e,t):n===g.EMBED?_s(e,t):n===g.INPUT?PU(e,t):n===g.PARAM||n===g.TRACK?AT(e,t):n===g.IMAGE?BU(e,t):n!==g.FRAME&&n!==g.TBODY&&n!==g.TFOOT&&n!==g.THEAD&&kr(e,t);break;case 6:n===g.SCRIPT?tn(e,t):n===g.CENTER||n===g.FIGURE||n===g.FOOTER||n===g.HEADER||n===g.HGROUP||n===g.DIALOG?ji(e,t):n===g.BUTTON?wU(e,t):n===g.STRIKE||n===g.STRONG?ms(e,t):n===g.APPLET||n===g.OBJECT?ST(e,t):n===g.KEYGEN?_s(e,t):n===g.SOURCE?AT(e,t):n===g.IFRAME?zU(e,t):n===g.SELECT?GU(e,t):n===g.OPTION?kT(e,t):kr(e,t);break;case 7:n===g.BGSOUND?tn(e,t):n===g.DETAILS||n===g.ADDRESS||n===g.ARTICLE||n===g.SECTION||n===g.SUMMARY?ji(e,t):n===g.LISTING?CT(e,t):n===g.MARQUEE?ST(e,t):n===g.NOEMBED?bT(e,t):n!==g.CAPTION&&kr(e,t);break;case 8:n===g.BASEFONT?tn(e,t):n===g.FRAMESET?IU(e,t):n===g.FIELDSET?ji(e,t):n===g.TEXTAREA?HU(e,t):n===g.TEMPLATE?tn(e,t):n===g.NOSCRIPT?e.options.scriptingEnabled?bT(e,t):kr(e,t):n===g.OPTGROUP?kT(e,t):n!==g.COLGROUP&&kr(e,t);break;case 9:n===g.PLAINTEXT?DU(e,t):kr(e,t);break;case 10:n===g.BLOCKQUOTE||n===g.FIGCAPTION?ji(e,t):kr(e,t);break;default:kr(e,t)}}function VU(e){e.openElements.hasInScope(g.BODY)&&(e.insertionMode=zg)}function YU(e,t){e.openElements.hasInScope(g.BODY)&&(e.insertionMode=zg,e._processToken(t))}function Ao(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function qU(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(g.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(g.FORM):e.openElements.remove(n))}function QU(e){e.openElements.hasInButtonScope(g.P)||e._insertFakeElement(g.P),e._closePElement()}function XU(e){e.openElements.hasInListItemScope(g.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(g.LI),e.openElements.popUntilTagNamePopped(g.LI))}function ZU(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function JU(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function FT(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function ez(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(g.BR),e.openElements.pop(),e.framesetOk=!1}function Zr(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getTagName(i)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(i);break}if(e._isSpecialElement(i))break}}function Gg(e,t){const n=t.tagName;switch(n.length){case 1:n===g.A||n===g.B||n===g.I||n===g.S||n===g.U?wo(e,t):n===g.P?QU(e):Zr(e,t);break;case 2:n===g.DL||n===g.UL||n===g.OL?Ao(e,t):n===g.LI?XU(e):n===g.DD||n===g.DT?ZU(e,t):n===g.H1||n===g.H2||n===g.H3||n===g.H4||n===g.H5||n===g.H6?JU(e):n===g.BR?ez(e):n===g.EM||n===g.TT?wo(e,t):Zr(e,t);break;case 3:n===g.BIG?wo(e,t):n===g.DIR||n===g.DIV||n===g.NAV||n===g.PRE?Ao(e,t):Zr(e,t);break;case 4:n===g.BODY?VU(e):n===g.HTML?YU(e,t):n===g.FORM?qU(e):n===g.CODE||n===g.FONT||n===g.NOBR?wo(e,t):n===g.MAIN||n===g.MENU?Ao(e,t):Zr(e,t);break;case 5:n===g.ASIDE?Ao(e,t):n===g.SMALL?wo(e,t):Zr(e,t);break;case 6:n===g.CENTER||n===g.FIGURE||n===g.FOOTER||n===g.HEADER||n===g.HGROUP||n===g.DIALOG?Ao(e,t):n===g.APPLET||n===g.OBJECT?FT(e,t):n===g.STRIKE||n===g.STRONG?wo(e,t):Zr(e,t);break;case 7:n===g.ADDRESS||n===g.ARTICLE||n===g.DETAILS||n===g.SECTION||n===g.SUMMARY||n===g.LISTING?Ao(e,t):n===g.MARQUEE?FT(e,t):Zr(e,t);break;case 8:n===g.FIELDSET?Ao(e,t):n===g.TEMPLATE?es(e,t):Zr(e,t);break;case 10:n===g.BLOCKQUOTE||n===g.FIGCAPTION?Ao(e,t):Zr(e,t);break;default:Zr(e,t)}}function $i(e,t){e.tmplInsertionModeStackTop>-1?V8(e,t):e.stopped=!0}function tz(e,t){t.tagName===g.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function nz(e,t){e._err(fn.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Vi(e,t){const n=e.openElements.currentTagName;n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=z8,e._processToken(t)):Fr(e,t)}function rz(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,ae.HTML),e.insertionMode=Lf}function iz(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ae.HTML),e.insertionMode=w1}function oz(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(g.COLGROUP),e.insertionMode=w1,e._processToken(t)}function az(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ae.HTML),e.insertionMode=Br}function sz(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(g.TBODY),e.insertionMode=Br,e._processToken(t)}function lz(e,t){e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode(),e._processToken(t))}function uz(e,t){const n=w.getTokenAttr(t,L8.TYPE);n&&n.toLowerCase()===B8?e._appendElement(t,ae.HTML):Fr(e,t),t.ackSelfClosing=!0}function cz(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,ae.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Wg(e,t){const n=t.tagName;switch(n.length){case 2:n===g.TD||n===g.TH||n===g.TR?sz(e,t):Fr(e,t);break;case 3:n===g.COL?oz(e,t):Fr(e,t);break;case 4:n===g.FORM?cz(e,t):Fr(e,t);break;case 5:n===g.TABLE?lz(e,t):n===g.STYLE?tn(e,t):n===g.TBODY||n===g.TFOOT||n===g.THEAD?az(e,t):n===g.INPUT?uz(e,t):Fr(e,t);break;case 6:n===g.SCRIPT?tn(e,t):Fr(e,t);break;case 7:n===g.CAPTION?rz(e,t):Fr(e,t);break;case 8:n===g.COLGROUP?iz(e,t):n===g.TEMPLATE?tn(e,t):Fr(e,t);break;default:Fr(e,t)}}function Kg(e,t){const n=t.tagName;n===g.TABLE?e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode()):n===g.TEMPLATE?es(e,t):n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP&&n!==g.HTML&&n!==g.TBODY&&n!==g.TD&&n!==g.TFOOT&&n!==g.TH&&n!==g.THEAD&&n!==g.TR&&Fr(e,t)}function Fr(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function dz(e,t){e.pendingCharacterTokens.push(t)}function fz(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Vl(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0?(e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function Iz(e,t){t.tagName===g.HTML?ir(e,t):Vd(e,t)}function Fz(e,t){t.tagName===g.HTML?e.fragmentContext||(e.insertionMode=W8):Vd(e,t)}function Vd(e,t){e.insertionMode=Ri,e._processToken(t)}function xz(e,t){const n=t.tagName;n===g.HTML?ir(e,t):n===g.FRAMESET?e._insertElement(t,ae.HTML):n===g.FRAME?(e._appendElement(t,ae.HTML),t.ackSelfClosing=!0):n===g.NOFRAMES&&tn(e,t)}function Nz(e,t){t.tagName===g.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==g.FRAMESET&&(e.insertionMode=G8))}function Dz(e,t){const n=t.tagName;n===g.HTML?ir(e,t):n===g.NOFRAMES&&tn(e,t)}function wz(e,t){t.tagName===g.HTML&&(e.insertionMode=K8)}function Rz(e,t){t.tagName===g.HTML?ir(e,t):Jc(e,t)}function Jc(e,t){e.insertionMode=Ri,e._processToken(t)}function Oz(e,t){const n=t.tagName;n===g.HTML?ir(e,t):n===g.NOFRAMES&&tn(e,t)}function Mz(e,t){t.chars=tU.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function Pz(e,t){e._insertCharacters(t),e.framesetOk=!1}function Lz(e,t){if(Ii.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==ae.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===ae.MATHML?Ii.adjustTokenMathMLAttrs(t):r===ae.SVG&&(Ii.adjustTokenSVGTagName(t),Ii.adjustTokenSVGAttrs(t)),Ii.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Bz(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===ae.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const xT=/[#.]/g;function Hz(e,t){const n=e||"",r={};let i=0,o,a;for(;i-1&&aa)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a}}return{line:void 0,column:void 0,offset:void 0}}function o(a){const s=a&&a.line,l=a&&a.column;if(typeof s=="number"&&typeof l=="number"&&!Number.isNaN(s)&&!Number.isNaN(l)&&s-1 in n){const u=(n[s-2]||0)+l-1||0;if(u>-1&&u{const I=S;if(I.value.stitch&&M!==null&&D!==null)return M.children[D]=I.value.stitch,D}),e.type!=="root"&&d.type==="root"&&d.children.length===1)return d.children[0];return d;function f(){const S={nodeName:"template",tagName:"template",attrs:[],namespaceURI:r1.html,childNodes:[]},D={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:r1.html,childNodes:[]},M={nodeName:"#document-fragment",childNodes:[]};if(i._bootstrap(D,S),i._pushTmplInsertionMode(cG),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return l=s.preprocessor,c=s.__mixins[0],u=c.posTracker,o(e),A(),i._adoptNodes(D.childNodes[0],M),M}function p(){const S=i.treeAdapter.createDocument();if(i._bootstrap(S,void 0),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return l=s.preprocessor,c=s.__mixins[0],u=c.posTracker,o(e),A(),S}function h(S){let D=-1;if(S)for(;++DJ8(t,n,e)}function bG(){const e=["a","b","c","d","e","f","0","1","2","3","4","5","6","7","8","9"];let t=[];for(let n=0;n<36;n++)n===8||n===13||n===18||n===23?t[n]="-":t[n]=e[Math.ceil(Math.random()*e.length-1)];return t.join("")}var Yi=bG,kG=typeof global=="object"&&global&&global.Object===Object&&global;const eS=kG;var IG=typeof self=="object"&&self&&self.Object===Object&&self,FG=eS||IG||Function("return this")();const Hi=FG;var xG=Hi.Symbol;const sl=xG;var tS=Object.prototype,NG=tS.hasOwnProperty,DG=tS.toString,Yl=sl?sl.toStringTag:void 0;function wG(e){var t=NG.call(e,Yl),n=e[Yl];try{e[Yl]=void 0;var r=!0}catch{}var i=DG.call(e);return r&&(t?e[Yl]=n:delete e[Yl]),i}var RG=Object.prototype,OG=RG.toString;function MG(e){return OG.call(e)}var PG="[object Null]",LG="[object Undefined]",RT=sl?sl.toStringTag:void 0;function R1(e){return e==null?e===void 0?LG:PG:RT&&RT in Object(e)?wG(e):MG(e)}function O1(e){return e!=null&&typeof e=="object"}var BG=Array.isArray;const Uf=BG;function M1(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var HG="[object AsyncFunction]",UG="[object Function]",zG="[object GeneratorFunction]",GG="[object Proxy]";function nS(e){if(!M1(e))return!1;var t=R1(e);return t==UG||t==zG||t==HG||t==GG}var WG=Hi["__core-js_shared__"];const Sm=WG;var OT=function(){var e=/[^.]+$/.exec(Sm&&Sm.keys&&Sm.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function KG(e){return!!OT&&OT in e}var jG=Function.prototype,$G=jG.toString;function ts(e){if(e!=null){try{return $G.call(e)}catch{}try{return e+""}catch{}}return""}var VG=/[\\^$.*+?()[\]{}|]/g,YG=/^\[object .+?Constructor\]$/,qG=Function.prototype,QG=Object.prototype,XG=qG.toString,ZG=QG.hasOwnProperty,JG=RegExp("^"+XG.call(ZG).replace(VG,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function eW(e){if(!M1(e)||KG(e))return!1;var t=nS(e)?JG:YG;return t.test(ts(e))}function tW(e,t){return e==null?void 0:e[t]}function ns(e,t){var n=tW(e,t);return eW(n)?n:void 0}var nW=ns(Hi,"WeakMap");const J0=nW;var MT=Object.create,rW=function(){function e(){}return function(t){if(!M1(t))return{};if(MT)return MT(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const iW=rW;function oW(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n-1&&e%1==0&&e-1&&e%1==0&&e<=hW}function Vg(e){return e!=null&&aS(e.length)&&!nS(e)}var mW=Object.prototype;function Gf(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||mW;return e===n}function pW(e,t){for(var n=-1,r=Array(e);++n-1}function kK(e,t){var n=this.__data__,r=Wf(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Eo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:nd;t_&&t_(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const o=n(i);o!==i&&(I$(t)||(t[r]=o),i=o)}e[i]=!0}return e}function R$(e){for(let t=0;t/gm),B$=ci(/\${[\w\W]*}/gm),H$=ci(/^data-[\-\w.\u00B7-\uFFFF]/),U$=ci(/^aria-[\-\w]+$/),kS=ci(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),z$=ci(/^(?:\w+script|data):/i),G$=ci(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),IS=ci(/^html$/i);var s_=Object.freeze({__proto__:null,MUSTACHE_EXPR:P$,ERB_EXPR:L$,TMPLIT_EXPR:B$,DATA_ATTR:H$,ARIA_ATTR:U$,IS_ALLOWED_URI:kS,IS_SCRIPT_OR_DATA:z$,ATTR_WHITESPACE:G$,DOCTYPE_NAME:IS});const W$=function(){return typeof window>"u"?null:window},K$=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function FS(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:W$();const t=G=>FS(G);if(t.version="3.0.8",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:a,Node:s,Element:l,NodeFilter:u,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:p}=e,h=l.prototype,v=xc(h,"cloneNode"),y=xc(h,"nextSibling"),m=xc(h,"childNodes"),T=xc(h,"parentNode");if(typeof a=="function"){const G=n.createElement("template");G.content&&G.content.ownerDocument&&(n=G.content.ownerDocument)}let _,C="";const{implementation:F,createNodeIterator:A,createDocumentFragment:S,getElementsByTagName:D}=n,{importNode:M}=r;let I={};t.isSupported=typeof AS=="function"&&typeof T=="function"&&F&&F.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:L,ERB_EXPR:O,TMPLIT_EXPR:X,DATA_ATTR:H,ARIA_ATTR:U,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:ne}=s_;let{IS_ALLOWED_URI:P}=s_,W=null;const V=xe({},[...r_,...km,...Im,...Fm,...i_]);let b=null;const k=xe({},[...o_,...xm,...a_,...Nc]);let me=Object.seal(bS(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),we=null,ut=null,Se=!0,Ue=!0,St=!1,_t=!0,We=!1,ct=!1,Vt=!1,sn=!1,Yt=!1,ie=!1,ve=!1,ce=!0,$e=!1;const Ve="user-content-";let Ot=!0,Ee=!1,yt={},qt=null;const Wn=xe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let At=null;const Qt=xe({},["audio","video","img","source","image","track"]);let z=null;const Y=xe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),se="http://www.w3.org/1998/Math/MathML",pe="http://www.w3.org/2000/svg",q="http://www.w3.org/1999/xhtml";let Re=q,Oe=!1,Ze=null;const ze=xe({},[se,pe,q],bm);let ke=null;const Ce=["application/xhtml+xml","text/html"],or="text/html";let ye=null,Sn=null;const ar=n.createElement("form"),sa=function(R){return R instanceof RegExp||R instanceof Function},la=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Sn&&Sn===R)){if((!R||typeof R!="object")&&(R={}),R=Aa(R),ke=Ce.indexOf(R.PARSER_MEDIA_TYPE)===-1?or:R.PARSER_MEDIA_TYPE,ye=ke==="application/xhtml+xml"?bm:nd,W="ALLOWED_TAGS"in R?xe({},R.ALLOWED_TAGS,ye):V,b="ALLOWED_ATTR"in R?xe({},R.ALLOWED_ATTR,ye):k,Ze="ALLOWED_NAMESPACES"in R?xe({},R.ALLOWED_NAMESPACES,bm):ze,z="ADD_URI_SAFE_ATTR"in R?xe(Aa(Y),R.ADD_URI_SAFE_ATTR,ye):Y,At="ADD_DATA_URI_TAGS"in R?xe(Aa(Qt),R.ADD_DATA_URI_TAGS,ye):Qt,qt="FORBID_CONTENTS"in R?xe({},R.FORBID_CONTENTS,ye):Wn,we="FORBID_TAGS"in R?xe({},R.FORBID_TAGS,ye):{},ut="FORBID_ATTR"in R?xe({},R.FORBID_ATTR,ye):{},yt="USE_PROFILES"in R?R.USE_PROFILES:!1,Se=R.ALLOW_ARIA_ATTR!==!1,Ue=R.ALLOW_DATA_ATTR!==!1,St=R.ALLOW_UNKNOWN_PROTOCOLS||!1,_t=R.ALLOW_SELF_CLOSE_IN_ATTR!==!1,We=R.SAFE_FOR_TEMPLATES||!1,ct=R.WHOLE_DOCUMENT||!1,Yt=R.RETURN_DOM||!1,ie=R.RETURN_DOM_FRAGMENT||!1,ve=R.RETURN_TRUSTED_TYPE||!1,sn=R.FORCE_BODY||!1,ce=R.SANITIZE_DOM!==!1,$e=R.SANITIZE_NAMED_PROPS||!1,Ot=R.KEEP_CONTENT!==!1,Ee=R.IN_PLACE||!1,P=R.ALLOWED_URI_REGEXP||kS,Re=R.NAMESPACE||q,me=R.CUSTOM_ELEMENT_HANDLING||{},R.CUSTOM_ELEMENT_HANDLING&&sa(R.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(me.tagNameCheck=R.CUSTOM_ELEMENT_HANDLING.tagNameCheck),R.CUSTOM_ELEMENT_HANDLING&&sa(R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(me.attributeNameCheck=R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),R.CUSTOM_ELEMENT_HANDLING&&typeof R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(me.allowCustomizedBuiltInElements=R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),We&&(Ue=!1),ie&&(Yt=!0),yt&&(W=xe({},i_),b=[],yt.html===!0&&(xe(W,r_),xe(b,o_)),yt.svg===!0&&(xe(W,km),xe(b,xm),xe(b,Nc)),yt.svgFilters===!0&&(xe(W,Im),xe(b,xm),xe(b,Nc)),yt.mathMl===!0&&(xe(W,Fm),xe(b,a_),xe(b,Nc))),R.ADD_TAGS&&(W===V&&(W=Aa(W)),xe(W,R.ADD_TAGS,ye)),R.ADD_ATTR&&(b===k&&(b=Aa(b)),xe(b,R.ADD_ATTR,ye)),R.ADD_URI_SAFE_ATTR&&xe(z,R.ADD_URI_SAFE_ATTR,ye),R.FORBID_CONTENTS&&(qt===Wn&&(qt=Aa(qt)),xe(qt,R.FORBID_CONTENTS,ye)),Ot&&(W["#text"]=!0),ct&&xe(W,["html","head","body"]),W.table&&(xe(W,["tbody"]),delete we.tbody),R.TRUSTED_TYPES_POLICY){if(typeof R.TRUSTED_TYPES_POLICY.createHTML!="function")throw Zl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof R.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Zl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=R.TRUSTED_TYPES_POLICY,C=_.createHTML("")}else _===void 0&&(_=K$(p,i)),_!==null&&typeof C=="string"&&(C=_.createHTML(""));Hn&&Hn(R),Sn=R}},rs=xe({},["mi","mo","mn","ms","mtext"]),ua=xe({},["foreignobject","desc","title","annotation-xml"]),Sr=xe({},["title","style","font","a","script"]),ca=xe({},[...km,...Im,...O$]),Ye=xe({},[...Fm,...M$]),Te=function(R){let j=T(R);(!j||!j.tagName)&&(j={namespaceURI:Re,tagName:"template"});const ee=nd(R.tagName),Ae=nd(j.tagName);return Ze[R.namespaceURI]?R.namespaceURI===pe?j.namespaceURI===q?ee==="svg":j.namespaceURI===se?ee==="svg"&&(Ae==="annotation-xml"||rs[Ae]):Boolean(ca[ee]):R.namespaceURI===se?j.namespaceURI===q?ee==="math":j.namespaceURI===pe?ee==="math"&&ua[Ae]:Boolean(Ye[ee]):R.namespaceURI===q?j.namespaceURI===pe&&!ua[Ae]||j.namespaceURI===se&&!rs[Ae]?!1:!Ye[ee]&&(Sr[ee]||!ca[ee]):!!(ke==="application/xhtml+xml"&&Ze[R.namespaceURI]):!1},Mt=function(R){Ql(t.removed,{element:R});try{R.parentNode.removeChild(R)}catch{R.remove()}},Ar=function(R,j){try{Ql(t.removed,{attribute:j.getAttributeNode(R),from:j})}catch{Ql(t.removed,{attribute:null,from:j})}if(j.removeAttribute(R),R==="is"&&!b[R])if(Yt||ie)try{Mt(j)}catch{}else try{j.setAttribute(R,"")}catch{}},$r=function(R){let j=null,ee=null;if(sn)R=""+R;else{const _e=x$(R,/^[\r\n\t ]+/);ee=_e&&_e[0]}ke==="application/xhtml+xml"&&Re===q&&(R=''+R+"");const Ae=_?_.createHTML(R):R;if(Re===q)try{j=new f().parseFromString(Ae,ke)}catch{}if(!j||!j.documentElement){j=F.createDocument(Re,"template",null);try{j.documentElement.innerHTML=Oe?C:Ae}catch{}}const Ke=j.body||j.documentElement;return R&&ee&&Ke.insertBefore(n.createTextNode(ee),Ke.childNodes[0]||null),Re===q?D.call(j,ct?"html":"body")[0]:ct?j.documentElement:Ke},Xt=function(R){return A.call(R.ownerDocument||R,R,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null)},$f=function(R){return R instanceof d&&(typeof R.nodeName!="string"||typeof R.textContent!="string"||typeof R.removeChild!="function"||!(R.attributes instanceof c)||typeof R.removeAttribute!="function"||typeof R.setAttribute!="function"||typeof R.namespaceURI!="string"||typeof R.insertBefore!="function"||typeof R.hasChildNodes!="function")},Sl=function(R){return typeof s=="function"&&R instanceof s},br=function(R,j,ee){I[R]&&Fc(I[R],Ae=>{Ae.call(t,j,ee,Sn)})},is=function(R){let j=null;if(br("beforeSanitizeElements",R,null),$f(R))return Mt(R),!0;const ee=ye(R.nodeName);if(br("uponSanitizeElement",R,{tagName:ee,allowedTags:W}),R.hasChildNodes()&&!Sl(R.firstElementChild)&&lr(/<[/\w]/g,R.innerHTML)&&lr(/<[/\w]/g,R.textContent))return Mt(R),!0;if(!W[ee]||we[ee]){if(!we[ee]&&da(ee)&&(me.tagNameCheck instanceof RegExp&&lr(me.tagNameCheck,ee)||me.tagNameCheck instanceof Function&&me.tagNameCheck(ee)))return!1;if(Ot&&!qt[ee]){const Ae=T(R)||R.parentNode,Ke=m(R)||R.childNodes;if(Ke&&Ae){const _e=Ke.length;for(let Je=_e-1;Je>=0;--Je)Ae.insertBefore(v(Ke[Je],!0),y(R))}}return Mt(R),!0}return R instanceof l&&!Te(R)||(ee==="noscript"||ee==="noembed"||ee==="noframes")&&lr(/<\/no(script|embed|frames)/i,R.innerHTML)?(Mt(R),!0):(We&&R.nodeType===3&&(j=R.textContent,Fc([L,O,X],Ae=>{j=Xl(j,Ae," ")}),R.textContent!==j&&(Ql(t.removed,{element:R.cloneNode()}),R.textContent=j)),br("afterSanitizeElements",R,null),!1)},Al=function(R,j,ee){if(ce&&(j==="id"||j==="name")&&(ee in n||ee in ar))return!1;if(!(Ue&&!ut[j]&&lr(H,j))){if(!(Se&&lr(U,j))){if(!b[j]||ut[j]){if(!(da(R)&&(me.tagNameCheck instanceof RegExp&&lr(me.tagNameCheck,R)||me.tagNameCheck instanceof Function&&me.tagNameCheck(R))&&(me.attributeNameCheck instanceof RegExp&&lr(me.attributeNameCheck,j)||me.attributeNameCheck instanceof Function&&me.attributeNameCheck(j))||j==="is"&&me.allowCustomizedBuiltInElements&&(me.tagNameCheck instanceof RegExp&&lr(me.tagNameCheck,ee)||me.tagNameCheck instanceof Function&&me.tagNameCheck(ee))))return!1}else if(!z[j]){if(!lr(P,Xl(ee,ne,""))){if(!((j==="src"||j==="xlink:href"||j==="href")&&R!=="script"&&N$(ee,"data:")===0&&At[R])){if(!(St&&!lr(K,Xl(ee,ne,"")))){if(ee)return!1}}}}}}return!0},da=function(R){return R.indexOf("-")>0},P1=function(R){br("beforeSanitizeAttributes",R,null);const{attributes:j}=R;if(!j)return;const ee={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:b};let Ae=j.length;for(;Ae--;){const Ke=j[Ae],{name:_e,namespaceURI:Je,value:je}=Ke,Ut=ye(_e);let dt=_e==="value"?je:D$(je);if(ee.attrName=Ut,ee.attrValue=dt,ee.keepAttr=!0,ee.forceKeepAttr=void 0,br("uponSanitizeAttribute",R,ee),dt=ee.attrValue,ee.forceKeepAttr||(Ar(_e,R),!ee.keepAttr))continue;if(!_t&&lr(/\/>/i,dt)){Ar(_e,R);continue}We&&Fc([L,O,X],fa=>{dt=Xl(dt,fa," ")});const mi=ye(R.nodeName);if(Al(mi,Ut,dt)){if($e&&(Ut==="id"||Ut==="name")&&(Ar(_e,R),dt=Ve+dt),_&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Je)switch(p.getAttributeType(mi,Ut)){case"TrustedHTML":{dt=_.createHTML(dt);break}case"TrustedScriptURL":{dt=_.createScriptURL(dt);break}}try{Je?R.setAttributeNS(Je,_e,dt):R.setAttribute(_e,dt),n_(t.removed)}catch{}}}br("afterSanitizeAttributes",R,null)},Vf=function G(R){let j=null;const ee=Xt(R);for(br("beforeSanitizeShadowDOM",R,null);j=ee.nextNode();)br("uponSanitizeShadowNode",j,null),!is(j)&&(j.content instanceof o&&G(j.content),P1(j));br("afterSanitizeShadowDOM",R,null)};return t.sanitize=function(G){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=null,ee=null,Ae=null,Ke=null;if(Oe=!G,Oe&&(G=""),typeof G!="string"&&!Sl(G))if(typeof G.toString=="function"){if(G=G.toString(),typeof G!="string")throw Zl("dirty is not a string, aborting")}else throw Zl("toString is not a function");if(!t.isSupported)return G;if(Vt||la(R),t.removed=[],typeof G=="string"&&(Ee=!1),Ee){if(G.nodeName){const je=ye(G.nodeName);if(!W[je]||we[je])throw Zl("root node is forbidden and cannot be sanitized in-place")}}else if(G instanceof s)j=$r(""),ee=j.ownerDocument.importNode(G,!0),ee.nodeType===1&&ee.nodeName==="BODY"||ee.nodeName==="HTML"?j=ee:j.appendChild(ee);else{if(!Yt&&!We&&!ct&&G.indexOf("<")===-1)return _&&ve?_.createHTML(G):G;if(j=$r(G),!j)return Yt?null:ve?C:""}j&&sn&&Mt(j.firstChild);const _e=Xt(Ee?G:j);for(;Ae=_e.nextNode();)is(Ae)||(Ae.content instanceof o&&Vf(Ae.content),P1(Ae));if(Ee)return G;if(Yt){if(ie)for(Ke=S.call(j.ownerDocument);j.firstChild;)Ke.appendChild(j.firstChild);else Ke=j;return(b.shadowroot||b.shadowrootmode)&&(Ke=M.call(r,Ke,!0)),Ke}let Je=ct?j.outerHTML:j.innerHTML;return ct&&W["!doctype"]&&j.ownerDocument&&j.ownerDocument.doctype&&j.ownerDocument.doctype.name&&lr(IS,j.ownerDocument.doctype.name)&&(Je=" -`+Je),We&&Fc([L,O,X],je=>{Je=Xl(Je,je," ")}),_&&ve?_.createHTML(Je):Je},t.setConfig=function(){let G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};la(G),Vt=!0},t.clearConfig=function(){Sn=null,Vt=!1},t.isValidAttribute=function(G,R,j){Sn||la({});const ee=ye(G),Ae=ye(R);return Al(ee,Ae,j)},t.addHook=function(G,R){typeof R=="function"&&(I[G]=I[G]||[],Ql(I[G],R))},t.removeHook=function(G){if(I[G])return n_(I[G])},t.removeHooks=function(G){I[G]&&(I[G]=[])},t.removeAllHooks=function(){I={}},t}var xS=FS();const j$="_container_8t6sx_1",$$="_chatRoot_8t6sx_8",V$="_chatContainer_8t6sx_18",Y$="_chatEmptyState_8t6sx_30",q$="_chatEmptyStateTitle_8t6sx_38",Q$="_chatEmptyStateSubtitle_8t6sx_50",X$="_chatIcon_8t6sx_63",Z$="_chatMessageStream_8t6sx_68",J$="_chatMessageUser_8t6sx_80",eV="_chatMessageUserMessage_8t6sx_86",tV="_chatMessageGpt_8t6sx_104",nV="_chatMessageError_8t6sx_110",rV="_chatMessageErrorContent_8t6sx_122",iV="_chatInput_8t6sx_134",oV="_clearChatBroom_8t6sx_147",aV="_clearChatBroomNoCosmos_8t6sx_163",sV="_newChatIcon_8t6sx_179",lV="_stopGeneratingContainer_8t6sx_195",uV="_stopGeneratingIcon_8t6sx_212",cV="_stopGeneratingText_8t6sx_218",dV="_citationPanel_8t6sx_233",fV="_citationPanelHeaderContainer_8t6sx_251",hV="_citationPanelHeader_8t6sx_251",mV="_citationPanelDismiss_8t6sx_266",pV="_citationPanelTitle_8t6sx_277",gV="_citationPanelContent_8t6sx_292",EV="_viewSourceButton_8t6sx_309",Be={container:j$,chatRoot:$$,chatContainer:V$,chatEmptyState:Y$,chatEmptyStateTitle:q$,chatEmptyStateSubtitle:Q$,chatIcon:X$,chatMessageStream:Z$,chatMessageUser:J$,chatMessageUserMessage:eV,chatMessageGpt:tV,chatMessageError:nV,chatMessageErrorContent:rV,chatInput:iV,clearChatBroom:oV,clearChatBroomNoCosmos:aV,newChatIcon:sV,stopGeneratingContainer:lV,stopGeneratingIcon:uV,stopGeneratingText:cV,citationPanel:dV,citationPanelHeaderContainer:fV,citationPanelHeader:hV,citationPanelDismiss:mV,citationPanelTitle:pV,citationPanelContent:gV,viewSourceButton:EV},NS=["iframe","a","img","svg","h1","h2","h3","h4","h5","h6","div","p","span","small","del","img","pictrue","embed","video","audio","i","u","sup","sub","strong","strike","code","pre","body","section","article","footer","table","tr","td","th","thead","tbody","tfooter","ul","ol","li"],vV="_answerContainer_1xeyy_1",TV="_answerText_1xeyy_12",_V="_answerHeader_1xeyy_29",yV="_answerFooter_1xeyy_33",CV="_answerDisclaimerContainer_1xeyy_42",SV="_answerDisclaimer_1xeyy_42",AV="_citationContainer_1xeyy_62",bV="_citation_1xeyy_62",kV="_accordionIcon_1xeyy_112",IV="_accordionTitle_1xeyy_127",FV="_clickableSup_1xeyy_143",Ti={answerContainer:vV,answerText:TV,answerHeader:_V,answerFooter:yV,answerDisclaimerContainer:CV,answerDisclaimer:SV,citationContainer:AV,citation:bV,accordionIcon:kV,accordionTitle:IV,clickableSup:FV};function xV(e){let t=e.answer;const n=t.match(/\[(doc\d\d?\d?)]/g),r=4;let i=[],o=0;return n==null||n.forEach(a=>{let s=a.slice(r,a.length-1),l=C$(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 NV(){return e=>{al(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)}),al(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 l_=({answer:e,onCitationClicked:t})=>{var O,X;const n=H=>{if(H.message_id!=null&&H.feedback!=null)return H.feedback.split(",").length>1?Ne.Negative:Object.values(Ne).includes(H.feedback)?H.feedback:Ne.Neutral},[r,{toggle:i}]=g1(!1),o=50,a=E.useMemo(()=>xV(e),[e]),[s,l]=E.useState(r),[u,c]=E.useState(n(e)),[d,f]=E.useState(!1),[p,h]=E.useState(!1),[v,y]=E.useState([]),m=E.useContext(ia),T=((O=m==null?void 0:m.state.frontendSettings)==null?void 0:O.feedback_enabled)&&((X=m==null?void 0:m.state.isCosmosDBAvailable)==null?void 0:X.cosmosDB),_=()=>{l(!s),i()};E.useEffect(()=>{l(r)},[r]),E.useEffect(()=>{if(e.message_id==null)return;let H;m!=null&&m.state.feedbackState&&(m!=null&&m.state.feedbackState[e.message_id])?H=m==null?void 0:m.state.feedbackState[e.message_id]:H=n(e),c(H)},[m==null?void 0:m.state.feedbackState,u,e.message_id]);const C=(H,U,K=!1)=>{let ne="";if(H.filepath&&H.chunk_id)if(K&&H.filepath.length>o){const P=H.filepath.length;ne=`${H.filepath.substring(0,20)}...${H.filepath.substring(P-20)} - Part ${parseInt(H.chunk_id)+1}`}else ne=`${H.filepath} - Part ${parseInt(H.chunk_id)+1}`;else H.filepath&&H.reindex_id?ne=`${H.filepath} - Part ${H.reindex_id}`:ne=`Citation ${U}`;return ne},F=async()=>{if(e.message_id==null)return;let H=u;u==Ne.Positive?H=Ne.Neutral:H=Ne.Positive,m==null||m.dispatch({type:"SET_FEEDBACK_STATE",payload:{answerId:e.message_id,feedback:H}}),c(H),await $h(e.message_id,H)},A=async()=>{if(e.message_id==null)return;let H=u;u===void 0||u===Ne.Neutral||u===Ne.Positive?(H=Ne.Negative,c(H),f(!0)):(H=Ne.Neutral,c(H),await $h(e.message_id,Ne.Neutral)),m==null||m.dispatch({type:"SET_FEEDBACK_STATE",payload:{answerId:e.message_id,feedback:H}})},S=(H,U)=>{var P;if(e.message_id==null)return;let K=(P=H==null?void 0:H.target)==null?void 0:P.id,ne=v.slice();U?ne.push(K):ne=ne.filter(W=>W!==K),y(ne)},D=async()=>{e.message_id!=null&&(await $h(e.message_id,v.join(",")),M())},M=()=>{f(!1),h(!1),y([])},I=()=>fe(ro,{children:[B("div",{children:"Why wasn't this response helpful?"}),fe(ge,{tokens:{childrenGap:4},children:[B(Ei,{label:"Citations are missing",id:Ne.MissingCitation,defaultChecked:v.includes(Ne.MissingCitation),onChange:S}),B(Ei,{label:"Citations are wrong",id:Ne.WrongCitation,defaultChecked:v.includes(Ne.WrongCitation),onChange:S}),B(Ei,{label:"The response is not from my data",id:Ne.OutOfScope,defaultChecked:v.includes(Ne.OutOfScope),onChange:S}),B(Ei,{label:"Inaccurate or irrelevant",id:Ne.InaccurateOrIrrelevant,defaultChecked:v.includes(Ne.InaccurateOrIrrelevant),onChange:S}),B(Ei,{label:"Other",id:Ne.OtherUnhelpful,defaultChecked:v.includes(Ne.OtherUnhelpful),onChange:S})]}),B("div",{onClick:()=>h(!0),style:{color:"#115EA3",cursor:"pointer"},children:"Report inappropriate content"})]}),L=()=>fe(ro,{children:[fe("div",{children:["The content is ",B("span",{style:{color:"red"},children:"*"})]}),fe(ge,{tokens:{childrenGap:4},children:[B(Ei,{label:"Hate speech, stereotyping, demeaning",id:Ne.HateSpeech,defaultChecked:v.includes(Ne.HateSpeech),onChange:S}),B(Ei,{label:"Violent: glorification of violence, self-harm",id:Ne.Violent,defaultChecked:v.includes(Ne.Violent),onChange:S}),B(Ei,{label:"Sexual: explicit content, grooming",id:Ne.Sexual,defaultChecked:v.includes(Ne.Sexual),onChange:S}),B(Ei,{label:"Manipulative: devious, emotional, pushy, bullying",defaultChecked:v.includes(Ne.Manipulative),id:Ne.Manipulative,onChange:S}),B(Ei,{label:"Other",id:Ne.OtherHarmful,defaultChecked:v.includes(Ne.OtherHarmful),onChange:S})]})]});return fe(ro,{children:[fe(ge,{className:Ti.answerContainer,tabIndex:0,children:[B(ge.Item,{children:fe(ge,{horizontal:!0,grow:!0,children:[B(ge.Item,{grow:!0,children:B(Df,{linkTarget:"_blank",remarkPlugins:[y8,NV],children:xS.sanitize(a.markdownFormatText,{ALLOWED_TAGS:NS}),className:Ti.answerText})}),B(ge.Item,{className:Ti.answerHeader,children:T&&e.message_id!==void 0&&fe(ge,{horizontal:!0,horizontalAlign:"space-between",children:[B($w,{"aria-hidden":"false","aria-label":"Like this response",onClick:()=>F(),style:u===Ne.Positive||(m==null?void 0:m.state.feedbackState[e.message_id])===Ne.Positive?{color:"darkgreen",cursor:"pointer"}:{color:"slategray",cursor:"pointer"}}),B(Kw,{"aria-hidden":"false","aria-label":"Dislike this response",onClick:()=>A(),style:u!==Ne.Positive&&u!==Ne.Neutral&&u!==void 0?{color:"darkred",cursor:"pointer"}:{color:"slategray",cursor:"pointer"}})]})})]})}),fe(ge,{horizontal:!0,className:Ti.answerFooter,children:[!!a.citations.length&&B(ge.Item,{onKeyDown:H=>H.key==="Enter"||H.key===" "?i():null,children:B(ge,{style:{width:"100%"},children:fe(ge,{horizontal:!0,horizontalAlign:"start",verticalAlign:"center",children:[B(Ho,{className:Ti.accordionTitle,onClick:i,"aria-label":"Open references",tabIndex:0,role:"button",children:B("span",{children:a.citations.length>1?a.citations.length+" references":"1 reference"})}),B(Ud,{className:Ti.accordionIcon,onClick:_,iconName:s?"ChevronDown":"ChevronRight"})]})})}),B(ge.Item,{className:Ti.answerDisclaimerContainer,children:B("span",{className:Ti.answerDisclaimer,children:"AI-generated content may be incorrect"})})]}),s&&B("div",{style:{marginTop:8,display:"flex",flexFlow:"wrap column",maxHeight:"150px",gap:"4px"},children:a.citations.map((H,U)=>fe("span",{title:C(H,++U),tabIndex:0,role:"link",onClick:()=>t(H),onKeyDown:K=>K.key==="Enter"||K.key===" "?t(H):null,className:Ti.citationContainer,"aria-label":C(H,U),children:[B("div",{className:Ti.citation,children:U}),C(H,U,!0)]},U))})]}),B(gl,{onDismiss:()=>{M(),c(Ne.Neutral)},hidden:!d,styles:{main:[{selectors:{["@media (min-width: 480px)"]:{maxWidth:"600px",background:"#FFFFFF",boxShadow:"0px 14px 28.8px rgba(0, 0, 0, 0.24), 0px 0px 8px rgba(0, 0, 0, 0.2)",borderRadius:"8px",maxHeight:"600px",minHeight:"100px"}}}]},dialogContentProps:{title:"Submit Feedback",showCloseButton:!0},children:fe(ge,{tokens:{childrenGap:4},children:[B("div",{children:"Your feedback will improve this experience."}),p?B(L,{}):B(I,{}),B("div",{children:"By pressing submit, your feedback will be visible to the application owner."}),B(v1,{disabled:v.length<1,onClick:D,children:"Submit"})]})})]})},DV="/assets/Send-d0601aaa.svg",wV="_questionInputContainer_pe9s7_1",RV="_questionInputTextArea_pe9s7_13",OV="_questionInputSendButtonContainer_pe9s7_22",MV="_questionInputSendButton_pe9s7_22",PV="_questionInputSendButtonDisabled_pe9s7_33",LV="_questionInputBottomBorder_pe9s7_41",BV="_questionInputOptionsButton_pe9s7_52",ps={questionInputContainer:wV,questionInputTextArea:RV,questionInputSendButtonContainer:OV,questionInputSendButton:MV,questionInputSendButtonDisabled:PV,questionInputBottomBorder:LV,questionInputOptionsButton:BV},HV=({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(ge,{horizontal:!0,className:ps.questionInputContainer,children:[B(yg,{className:ps.questionInputTextArea,placeholder:n,multiline:!0,resizable:!1,borderless:!0,value:o,onChange:u,onKeyDown:l}),B("div",{className:ps.questionInputSendButtonContainer,role:"button",tabIndex:0,"aria-label":"Ask question button",onClick:s,onKeyDown:d=>d.key==="Enter"||d.key===" "?s():null,children:c?B(Bw,{className:ps.questionInputSendButtonDisabled}):B("img",{src:DV,className:ps.questionInputSendButton})}),B("div",{className:ps.questionInputBottomBorder})]})},UV="_container_1qjpx_1",zV="_listContainer_1qjpx_7",GV="_itemCell_1qjpx_12",WV="_itemButton_1qjpx_29",KV="_chatGroup_1qjpx_46",jV="_spinnerContainer_1qjpx_51",$V="_chatList_1qjpx_58",VV="_chatMonth_1qjpx_62",YV="_chatTitle_1qjpx_69",Rr={container:UV,listContainer:zV,itemCell:GV,itemButton:WV,chatGroup:KV,spinnerContainer:jV,chatList:$V,chatMonth:VV,chatTitle:YV},qV=e=>{const n=new Date().getFullYear(),[r,i]=e.split(" ");return parseInt(i)===n?r:e},QV=({item:e,onSelect:t})=>{var U,K,ne;const[n,r]=E.useState(!1),[i,o]=E.useState(!1),[a,s]=E.useState(""),[l,{toggle:u}]=g1(!0),[c,d]=E.useState(!1),[f,p]=E.useState(!1),[h,v]=E.useState(void 0),[y,m]=E.useState(!1),T=E.useRef(null),_=E.useContext(ia),C=(e==null?void 0:e.id)===((U=_==null?void 0:_.state.currentChat)==null?void 0:U.id),F={type:xi.close,title:"Are you sure you want to delete this item?",closeButtonAriaLabel:"Close",subText:"The history of this chat session will permanently removed."},A={titleAriaId:"labelId",subtitleAriaId:"subTextId",isBlocking:!0,styles:{main:{maxWidth:450}}};if(!e)return null;E.useEffect(()=>{y&&T.current&&(T.current.focus(),m(!1))},[y]),E.useEffect(()=>{var P;((P=_==null?void 0:_.state.currentChat)==null?void 0:P.id)!==(e==null?void 0:e.id)&&(o(!1),s(""))},[(K=_==null?void 0:_.state.currentChat)==null?void 0:K.id,e==null?void 0:e.id]);const S=async()=>{(await eR(e.id)).ok?_==null||_.dispatch({type:"DELETE_CHAT_ENTRY",payload:e.id}):(d(!0),setTimeout(()=>{d(!1)},5e3)),u()},D=()=>{o(!0),m(!0),s(e==null?void 0:e.title)},M=()=>{t(e),_==null||_.dispatch({type:"UPDATE_CURRENT_CHAT",payload:e})},I=((ne=e==null?void 0:e.title)==null?void 0:ne.length)>28?`${e.title.substring(0,28)} ...`:e.title,L=async P=>{if(P.preventDefault(),h||f)return;if(a==e.title){v("Error: Enter a new title to proceed."),setTimeout(()=>{v(void 0),m(!0),T.current&&T.current.focus()},5e3);return}p(!0),(await rR(e.id,a)).ok?(p(!1),o(!1),_==null||_.dispatch({type:"UPDATE_CHAT_TITLE",payload:{...e,title:a}}),s("")):(v("Error: could not rename item"),setTimeout(()=>{m(!0),v(void 0),T.current&&T.current.focus()},5e3))},O=P=>{s(P.target.value)},X=()=>{o(!1),s("")},H=P=>{if(P.key==="Enter")return L(P);if(P.key==="Escape"){X();return}};return fe(ge,{tabIndex:0,"aria-label":"chat history item",className:Rr.itemCell,onClick:()=>M(),onKeyDown:P=>P.key==="Enter"||P.key===" "?M():null,verticalAlign:"center",onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),styles:{root:{backgroundColor:C?"#e6e6e6":"transparent"}},children:[i?B(ro,{children:B(ge.Item,{style:{width:"100%"},children:fe("form",{"aria-label":"edit title form",onSubmit:P=>L(P),style:{padding:"5px 0px"},children:[fe(ge,{horizontal:!0,verticalAlign:"start",children:[B(ge.Item,{children:B(yg,{componentRef:T,autoFocus:y,value:a,placeholder:e.title,onChange:O,onKeyDown:H,disabled:!!h})}),a&&B(ge.Item,{children:fe(ge,{"aria-label":"action button group",horizontal:!0,verticalAlign:"center",children:[B(wa,{role:"button",disabled:h!==void 0,onKeyDown:P=>P.key===" "||P.key==="Enter"?L(P):null,onClick:P=>L(P),"aria-label":"confirm new title",iconProps:{iconName:"CheckMark"},styles:{root:{color:"green",marginLeft:"5px"}}}),B(wa,{role:"button",disabled:h!==void 0,onKeyDown:P=>P.key===" "||P.key==="Enter"?X():null,onClick:()=>X(),"aria-label":"cancel edit title",iconProps:{iconName:"Cancel"},styles:{root:{color:"red",marginLeft:"5px"}}})]})})]}),h&&B(Ho,{role:"alert","aria-label":h,style:{fontSize:12,fontWeight:400,color:"rgb(164,38,44)"},children:h})]})})}):B(ro,{children:fe(ge,{horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[B("div",{className:Rr.chatTitle,children:I}),(C||n)&&fe(ge,{horizontal:!0,horizontalAlign:"end",children:[B(wa,{className:Rr.itemButton,iconProps:{iconName:"Delete"},title:"Delete",onClick:u,onKeyDown:P=>P.key===" "?u():null}),B(wa,{className:Rr.itemButton,iconProps:{iconName:"Edit"},title:"Edit",onClick:D,onKeyDown:P=>P.key===" "?D():null})]})]})}),c&&B(Ho,{styles:{root:{color:"red",marginTop:5,fontSize:14}},children:"Error: could not delete item"}),B(gl,{hidden:l,onDismiss:u,dialogContentProps:F,modalProps:A,children:fe(Cg,{children:[B(Q2,{onClick:S,text:"Delete"}),B(v1,{onClick:u,text:"Cancel"})]})})]},e.id)},XV=({groupedChatHistory:e})=>{const t=E.useContext(ia),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(QV,{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 dC(i).then(v=>{const y=h&&v&&h.concat(...v);return v?t==null||t.dispatch({type:"FETCH_CHAT_HISTORY",payload:y||v}):t==null||t.dispatch({type:"FETCH_CHAT_HISTORY",payload:null}),u(!1),v})};return E.useEffect(()=>{const h=new IntersectionObserver(v=>{v[0].isIntersecting&&s(y=>y+=1)},{threshold:1});return n.current&&h.observe(n.current),()=>{n.current&&h.unobserve(n.current)}},[n]),fe("div",{className:Rr.listContainer,"data-is-scrollable":!0,children:[e.map(h=>h.entries.length>0&&fe(ge,{horizontalAlign:"start",verticalAlign:"center",className:Rr.chatGroup,"aria-label":`chat history group: ${h.month}`,children:[B(ge,{"aria-label":h.month,className:Rr.chatMonth,children:qV(h.month)}),B(kN,{"aria-label":"chat history list",items:h.entries,onRenderCell:f,className:Rr.chatList}),B("div",{ref:n}),B(rC,{styles:{root:{width:"100%",position:"relative","::before":{backgroundColor:"#d6d6d6"}}}})]},h.month)),l&&B("div",{className:Rr.spinnerContainer,children:B(J2,{size:ii.small,"aria-label":"loading more chat history",className:Rr.spinner})})]})},ZV=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},JV=()=>{const e=E.useContext(ia),t=e==null?void 0:e.state.chatHistory;Nn.useEffect(()=>{},[e==null?void 0:e.state.chatHistory]);let n;if(t&&t.length>0)n=ZV(t);else return B(ge,{horizontal:!0,horizontalAlign:"center",verticalAlign:"center",style:{width:"100%",marginTop:10},children:B(Mo,{children:B(Ho,{style:{alignSelf:"center",fontWeight:"400",fontSize:14},children:B("span",{children:"No chat history."})})})});return B(XV,{groupedChatHistory:n})},u_={root:{padding:"0",display:"flex",justifyContent:"center",backgroundColor:"transparent"}},eY={root:{height:"50px"}};function tY(e){var T,_,C;const t=E.useContext(ia),[n,r]=Nn.useState(!1),[i,{toggle:o}]=g1(!0),[a,s]=Nn.useState(!1),[l,u]=Nn.useState(!1),c={type:xi.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=Nn.useCallback(F=>{F.preventDefault(),r(!0)},[]),v=Nn.useCallback(()=>r(!1),[]),y=async()=>{s(!0),(await tR()).ok?(t==null||t.dispatch({type:"DELETE_CHAT_HISTORY"}),o()):u(!0),s(!1)},m=()=>{o(),setTimeout(()=>{u(!1)},2e3)};return Nn.useEffect(()=>{},[t==null?void 0:t.state.chatHistory,l]),fe("section",{className:Rr.container,"data-is-scrollable":!0,"aria-label":"chat history panel",children:[fe(ge,{horizontal:!0,horizontalAlign:"space-between",verticalAlign:"center",wrap:!0,"aria-label":"chat history header",children:[B(Mo,{children:B(Ho,{role:"heading","aria-level":2,style:{alignSelf:"center",fontWeight:"600",fontSize:"18px",marginRight:"auto",paddingLeft:"20px"},children:"Chat history"})}),B(ge,{verticalAlign:"start",children:fe(ge,{horizontal:!0,styles:eY,children:[B(t1,{iconProps:{iconName:"More"},title:"Clear all chat history",onClick:h,"aria-label":"clear all chat history",styles:u_,role:"button",id:"moreButton"}),B(zd,{items:f,hidden:!n,target:"#moreButton",onItemClick:o,onDismiss:v}),B(t1,{iconProps:{iconName:"Cancel"},title:"Hide",onClick:p,"aria-label":"hide button",styles:u_,role:"button"})]})})]}),B(ge,{"aria-label":"chat history panel content",styles:{root:{display:"flex",flexGrow:1,flexDirection:"column",paddingTop:"2.5px",maxWidth:"100%"}},style:{display:"flex",flexGrow:1,flexDirection:"column",flexWrap:"wrap",padding:"1px"},children:fe(ge,{className:Rr.chatHistoryListContainer,children:[(t==null?void 0:t.state.chatHistoryLoadingState)===xn.Success&&(t==null?void 0:t.state.isCosmosDBAvailable.cosmosDB)&&B(JV,{}),(t==null?void 0:t.state.chatHistoryLoadingState)===xn.Fail&&(t==null?void 0:t.state.isCosmosDBAvailable)&&B(ro,{children:B(ge,{children:fe(ge,{horizontalAlign:"center",verticalAlign:"center",style:{width:"100%",marginTop:10},children:[B(Mo,{children:fe(Ho,{style:{alignSelf:"center",fontWeight:"400",fontSize:16},children:[((T=t==null?void 0:t.state.isCosmosDBAvailable)==null?void 0:T.status)&&B("span",{children:(_=t==null?void 0:t.state.isCosmosDBAvailable)==null?void 0:_.status}),!((C=t==null?void 0:t.state.isCosmosDBAvailable)!=null&&C.status)&&B("span",{children:"Error loading chat history"})]})}),B(Mo,{children:B(Ho,{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)===xn.Loading&&B(ro,{children:B(ge,{children:fe(ge,{horizontal:!0,horizontalAlign:"center",verticalAlign:"center",style:{width:"100%",marginTop:10},children:[B(Mo,{style:{justifyContent:"center",alignItems:"center"},children:B(J2,{style:{alignSelf:"flex-start",height:"100%",marginRight:"5px"},size:ii.medium})}),B(Mo,{children:B(Ho,{style:{alignSelf:"center",fontWeight:"400",fontSize:14},children:B("span",{style:{whiteSpace:"pre-wrap"},children:"Loading chat history"})})})]})})})]})}),B(gl,{hidden:i,onDismiss:a?()=>{}:m,dialogContentProps:c,modalProps:d,children:fe(Cg,{children:[!l&&B(Q2,{onClick:y,disabled:a,text:"Clear All"}),B(v1,{onClick:m,disabled:a,text:l?"Close":"Cancel"})]})})]})}const nY=()=>{var St,_t,We,ct,Vt,sn,Yt;const e=E.useContext(ia),t=(St=e==null?void 0:e.state.frontendSettings)==null?void 0:St.auth_enabled,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([]),[y,m]=E.useState("Not Running"),[T,_]=E.useState(!1),[C,{toggle:F}]=g1(!0),[A,S]=E.useState(),D={type:xi.close,title:A==null?void 0:A.title,closeButtonAriaLabel:"Close",subText:A==null?void 0:A.subtitle},M={titleAriaId:"labelId",subtitleAriaId:"subTextId",isBlocking:!0,styles:{main:{maxWidth:450}}},[I,L,O]=["assistant","tool","error"];E.useEffect(()=>{var ie;if(((ie=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:ie.status)!==On.Working&&(e==null?void 0:e.state.chatHistoryLoadingState)===xn.Fail&&C){let ve=`${e.state.isCosmosDBAvailable.status}. Please contact the site administrator.`;S({title:"Chat history is not enabled",subtitle:ve}),F()}},[e==null?void 0:e.state.isCosmosDBAvailable]);const X=()=>{F(),setTimeout(()=>{S(null)},500)};E.useEffect(()=>{i((e==null?void 0:e.state.chatHistoryLoadingState)===xn.Loading)},[e==null?void 0:e.state.chatHistoryLoadingState]);const H=async()=>{if(!t){p(!1);return}(await Xw()).length===0&&window.location.hostname!=="127.0.0.1"?p(!0):p(!1)};let U={},K={},ne="";const P=(ie,ve,ce)=>{ie.role===I&&(ne+=ie.content,U=ie,U.content=ne,ie.context&&(K={id:Yi(),role:L,content:ie.context,date:new Date().toISOString()})),ie.role===L&&(K=ie),ce?ql(K)?v([...h,U]):v([...h,K,U]):ql(K)?v([...h,ve,U]):v([...h,ve,K,U])},W=async(ie,ve)=>{var qt,Wn;i(!0),a(!0);const ce=new AbortController;d.current.unshift(ce);const $e={id:Yi(),role:"user",content:ie,date:new Date().toISOString()};let Ve;if(!ve)Ve={id:ve??Yi(),title:ie,messages:[$e],date:new Date().toISOString()};else if(Ve=(qt=e==null?void 0:e.state)==null?void 0:qt.currentChat,Ve)Ve.messages.push($e);else{console.error("Conversation not found."),i(!1),a(!1),d.current=d.current.filter(At=>At!==ce);return}e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Ve}),v(Ve.messages);const Ot={messages:[...Ve.messages.filter(At=>At.role!==O)]};let Ee={};try{const At=await Qw(Ot,ce.signal);if(At!=null&&At.body){const Qt=At.body.getReader();for(;;){m("Processing");const{done:z,value:Y}=await Qt.read();if(z)break;var yt=new TextDecoder("utf-8").decode(Y);yt.split(` -`).forEach(pe=>{var q;try{if(pe!==""&&pe!=="{}"){if(Ee=JSON.parse(pe),((q=Ee.choices)==null?void 0:q.length)>0)Ee.choices[0].messages.forEach(Re=>{Re.id=Ee.id,Re.date=new Date().toISOString()}),a(!1),Ee.choices[0].messages.forEach(Re=>{P(Re,$e,ve)});else if(Ee.error)throw Error(Ee.error)}}catch(Re){throw console.error(Re),Re}})}Ve.messages.push(K,U),e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Ve}),v([...h,K,U])}}catch{if(ce.signal.aborted)v([...h,$e]);else{let Qt="An error occurred. Please try again. If the problem persists, please contact the site administrator.";(Wn=Ee.error)!=null&&Wn.message?Qt=Ee.error.message:typeof Ee.error=="string"&&(Qt=Ee.error);let z={id:Yi(),role:O,content:Qt,date:new Date().toISOString()};Ve.messages.push(z),e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Ve}),v([...h,z])}}finally{i(!1),a(!1),d.current=d.current.filter(At=>At!==ce),m("Done")}return ce.abort()},V=async(ie,ve)=>{var Wn,At,Qt,z,Y,se,pe,q,Re;i(!0),a(!0);const ce=new AbortController;d.current.unshift(ce);const $e={id:Yi(),role:"user",content:ie,date:new Date().toISOString()};let Ve,Ot;if(ve)if(Ot=(At=(Wn=e==null?void 0:e.state)==null?void 0:Wn.chatHistory)==null?void 0:At.find(Oe=>Oe.id===ve),Ot)Ot.messages.push($e),Ve={messages:[...Ot.messages.filter(Oe=>Oe.role!==O)]};else{console.error("Conversation not found."),i(!1),a(!1),d.current=d.current.filter(Oe=>Oe!==ce);return}else Ve={messages:[$e].filter(Oe=>Oe.role!==O)},v(Ve.messages);let Ee={};try{const Oe=ve?await S5(Ve,ce.signal,ve):await S5(Ve,ce.signal);if(!(Oe!=null&&Oe.ok)){const Ze=await Oe.json();var yt=Ze.error===void 0?"Please try again. If the problem persists, please contact the site administrator.":Ze.error;let ze={id:Yi(),role:O,content:`There was an error generating a response. Chat history can't be saved at this time. ${yt}`,date:new Date().toISOString()},ke;if(ve){if(ke=(z=(Qt=e==null?void 0:e.state)==null?void 0:Qt.chatHistory)==null?void 0:z.find(Ce=>Ce.id===ve),!ke){console.error("Conversation not found."),i(!1),a(!1),d.current=d.current.filter(Ce=>Ce!==ce);return}ke.messages.push(ze)}else{v([...h,$e,ze]),i(!1),a(!1),d.current=d.current.filter(Ce=>Ce!==ce);return}e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:ke}),v([...ke.messages]);return}if(Oe!=null&&Oe.body){const Ze=Oe.body.getReader();for(;;){m("Processing");const{done:ke,value:Ce}=await Ze.read();if(ke)break;var qt=new TextDecoder("utf-8").decode(Ce);qt.split(` -`).forEach(ye=>{var Sn;try{if(ye!==""&&ye!=="{}")Ee=JSON.parse(ye),((Sn=Ee.choices)==null?void 0:Sn.length)>0&&(Ee.choices[0].messages.forEach(ar=>{ar.id=Ee.id,ar.date=new Date().toISOString()}),a(!1),Ee.choices[0].messages.forEach(ar=>{P(ar,$e,ve)}));else if(Ee.error)throw Error(Ee.error)}catch(ar){throw console.error(ar),ar}})}let ze;if(ve){if(ze=(se=(Y=e==null?void 0:e.state)==null?void 0:Y.chatHistory)==null?void 0:se.find(ke=>ke.id===ve),!ze){console.error("Conversation not found."),i(!1),a(!1),d.current=d.current.filter(ke=>ke!==ce);return}ql(K)?ze.messages.push(U):ze.messages.push(K,U)}else ze={id:Ee.history_metadata.conversation_id,title:Ee.history_metadata.title,messages:[$e],date:Ee.history_metadata.date},ql(K)?ze.messages.push(U):ze.messages.push(K,U);if(!ze){i(!1),a(!1),d.current=d.current.filter(ke=>ke!==ce);return}e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:ze}),ql(K)?v([...h,U]):v([...h,K,U])}}catch{if(ce.signal.aborted)v([...h,$e]);else{let Ze=`An error occurred. ${yt}`;(pe=Ee.error)!=null&&pe.message?Ze=Ee.error.message:typeof Ee.error=="string"&&(Ze=Ee.error);let ze={id:Yi(),role:O,content:Ze,date:new Date().toISOString()},ke;if(ve){if(ke=(Re=(q=e==null?void 0:e.state)==null?void 0:q.chatHistory)==null?void 0:Re.find(Ce=>Ce.id===ve),!ke){console.error("Conversation not found."),i(!1),a(!1),d.current=d.current.filter(Ce=>Ce!==ce);return}ke.messages.push(ze)}else{if(!Ee.history_metadata){console.error("Error retrieving data.",Ee),console.log("errorMessage",Ze);let Ce={id:Yi(),role:O,content:Ze,date:new Date().toISOString()};v([...h,$e,Ce]),i(!1),a(!1),d.current=d.current.filter(or=>or!==ce);return}ke={id:Ee.history_metadata.conversation_id,title:Ee.history_metadata.title,messages:[$e],date:Ee.history_metadata.date},ke.messages.push(ze)}if(!ke){i(!1),a(!1),d.current=d.current.filter(Ce=>Ce!==ce);return}e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:ke}),v([...h,ze])}}finally{i(!1),a(!1),d.current=d.current.filter(Oe=>Oe!==ce),m("Done")}return ce.abort()},b=async()=>{var ie;_(!0),(ie=e==null?void 0:e.state.currentChat)!=null&&ie.id&&(e!=null&&e.state.isCosmosDBAvailable.cosmosDB)&&((await nR(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([])):(S({title:"Error clearing current chat",subtitle:"Please try again. If the problem persists, please contact the site administrator."}),F())),_(!1)},k=()=>{m("Processing"),v([]),c(!1),l(void 0),e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:null}),m("Done")},me=()=>{d.current.forEach(ie=>ie.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 ve;const ie=async(ce,$e)=>await Jw(ce,$e);if(e&&e.state.currentChat&&y==="Done"){if(e.state.isCosmosDBAvailable.cosmosDB){if(!((ve=e==null?void 0:e.state.currentChat)!=null&&ve.messages)){console.error("Failure fetching current chat state.");return}ie(e.state.currentChat.messages,e.state.currentChat.id).then(ce=>{var $e,Ve;if(!ce.ok){let Ot="An error occurred. Answers can't be saved at this time. If the problem persists, please contact the site administrator.",Ee={id:Yi(),role:O,content:Ot,date:new Date().toISOString()};if(!(($e=e==null?void 0:e.state.currentChat)!=null&&$e.messages))throw{...new Error,message:"Failure fetching current chat state."};v([...(Ve=e==null?void 0:e.state.currentChat)==null?void 0:Ve.messages,Ee])}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}),v(e.state.currentChat.messages),m("Not Running")}},[y]),E.useEffect(()=>{t!==void 0&&H()},[t]),E.useLayoutEffect(()=>{var ie;(ie=n.current)==null||ie.scrollIntoView({behavior:"smooth"})},[o,y]);const we=ie=>{l(ie),c(!0)},ut=ie=>{ie.url&&!ie.url.includes("blob.core")&&window.open(ie.url,"_blank")},Se=ie=>{if(ie!=null&&ie.role&&(ie==null?void 0:ie.role)==="tool")try{return JSON.parse(ie.content).citations}catch{return[]}return[]},Ue=()=>r||h&&h.length===0||T||(e==null?void 0:e.state.chatHistoryLoadingState)===xn.Loading;return B("div",{className:Be.container,role:"main",children:f?fe(ge,{className:Be.chatEmptyState,children:[B(Uw,{className:Be.chatIcon,style:{color:"darkorange",height:"200px",width:"200px"}}),B("h1",{className:Be.chatEmptyStateTitle,children:"Authentication Not Configured"}),fe("h2",{className:Be.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:Be.chatEmptyStateSubtitle,style:{fontSize:"20px"},children:B("strong",{children:"Authentication configuration takes a few minutes to apply. "})}),B("h2",{className:Be.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(ge,{horizontal:!0,className:Be.chatRoot,children:[fe("div",{className:Be.chatContainer,children:[!h||h.length<1?fe(ge,{className:Be.chatEmptyState,children:[B("img",{src:lC,className:Be.chatIcon,"aria-hidden":"true"}),B("h1",{className:Be.chatEmptyStateTitle,children:"Start chatting"}),B("h2",{className:Be.chatEmptyStateSubtitle,children:"This chatbot is configured to answer your questions"})]}):fe("div",{className:Be.chatMessageStream,style:{marginBottom:r?"40px":"0px"},role:"log",children:[h.map((ie,ve)=>B(ro,{children:ie.role==="user"?B("div",{className:Be.chatMessageUser,tabIndex:0,children:B("div",{className:Be.chatMessageUserMessage,children:ie.content})}):ie.role==="assistant"?B("div",{className:Be.chatMessageGpt,children:B(l_,{answer:{answer:ie.content,citations:Se(h[ve-1]),message_id:ie.id,feedback:ie.feedback},onCitationClicked:ce=>we(ce)})}):ie.role===O?fe("div",{className:Be.chatMessageError,children:[fe(ge,{horizontal:!0,className:Be.chatMessageErrorContent,children:[B(Pw,{className:Be.errorIcon,style:{color:"rgba(182, 52, 67, 1)"}}),B("span",{children:"Error"})]}),B("span",{className:Be.chatMessageErrorContent,children:ie.content})]}):null})),o&&B(ro,{children:B("div",{className:Be.chatMessageGpt,children:B(l_,{answer:{answer:"Generating answer...",citations:[]},onCitationClicked:()=>null})})}),B("div",{ref:n})]}),fe(ge,{horizontal:!0,className:Be.chatInput,children:[r&&fe(ge,{horizontal:!0,className:Be.stopGeneratingContainer,role:"button","aria-label":"Stop generating",tabIndex:0,onClick:me,onKeyDown:ie=>ie.key==="Enter"||ie.key===" "?me():null,children:[B(Gw,{className:Be.stopGeneratingIcon,"aria-hidden":"true"}),B("span",{className:Be.stopGeneratingText,"aria-hidden":"true",children:"Stop generating"})]}),fe(ge,{children:[((_t=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:_t.status)!==On.NotConfigured&&B(t1,{role:"button",styles:{icon:{color:"#FFFFFF"},iconDisabled:{color:"#BDBDBD !important"},root:{color:"#FFFFFF",background:"radial-gradient(109.81% 107.82% at 100.1% 90.19%, #0F6CBD 33.63%, #2D87C3 70.31%, #8DDDD8 100%)"},rootDisabled:{background:"#F0F0F0"}},className:Be.newChatIcon,iconProps:{iconName:"Add"},onClick:k,disabled:Ue(),"aria-label":"start a new chat button"}),B(t1,{role:"button",styles:{icon:{color:"#FFFFFF"},iconDisabled:{color:"#BDBDBD !important"},root:{color:"#FFFFFF",background:"radial-gradient(109.81% 107.82% at 100.1% 90.19%, #0F6CBD 33.63%, #2D87C3 70.31%, #8DDDD8 100%)"},rootDisabled:{background:"#F0F0F0"}},className:((We=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:We.status)!==On.NotConfigured?Be.clearChatBroom:Be.clearChatBroomNoCosmos,iconProps:{iconName:"Broom"},onClick:((ct=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:ct.status)!==On.NotConfigured?b:k,disabled:Ue(),"aria-label":"clear chat button"}),B(gl,{hidden:C,onDismiss:X,dialogContentProps:D,modalProps:M})]}),B(HV,{clearOnSend:!0,placeholder:"Type a new question...",disabled:r,onSend:(ie,ve)=>{var ce;(ce=e==null?void 0:e.state.isCosmosDBAvailable)!=null&&ce.cosmosDB?V(ie,ve):W(ie,ve)},conversationId:(Vt=e==null?void 0:e.state.currentChat)!=null&&Vt.id?(sn=e==null?void 0:e.state.currentChat)==null?void 0:sn.id:void 0})]})]}),h&&h.length>0&&u&&s&&fe(ge.Item,{className:Be.citationPanel,tabIndex:0,role:"tabpanel","aria-label":"Citations Panel",children:[fe(ge,{"aria-label":"Citations Panel Header Container",horizontal:!0,className:Be.citationPanelHeaderContainer,horizontalAlign:"space-between",verticalAlign:"center",children:[B("span",{"aria-label":"Citations",className:Be.citationPanelHeader,children:"Citations"}),B(wa,{iconProps:{iconName:"Cancel"},"aria-label":"Close citations panel",onClick:()=>c(!1)})]}),B("h5",{className:Be.citationPanelTitle,tabIndex:0,title:s.url&&!s.url.includes("blob.core")?s.url:s.title??"",onClick:()=>ut(s),children:s.title}),B("div",{tabIndex:0,children:B(Df,{linkTarget:"_blank",className:Be.citationPanelContent,children:xS.sanitize(s.content,{ALLOWED_TAGS:NS}),remarkPlugins:[y8],rehypePlugins:[AG]})})]}),(e==null?void 0:e.state.isChatHistoryOpen)&&((Yt=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:Yt.status)!==On.NotConfigured&&B(tY,{})]})})};ND();function rY(){return B(sR,{children:B(f7,{children:B(s7,{children:fe(Wc,{path:"/",element:B(lR,{}),children:[B(Wc,{index:!0,element:B(nY,{})}),B(Wc,{path:"*",element:B(uR,{})})]})})})})}Nm.createRoot(document.getElementById("root")).render(B(Nn.StrictMode,{children:B(rY,{})}))});export default iY(); -//# sourceMappingURL=index-81f496aa.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 N8=aH;const dT=go,Tm=Rf,sH=N8;let lH=class extends dT{constructor(t){super(t),this.tokenizer=t,this.posTracker=dT.install(t.preprocessor,sH),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===Tm.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(Tm.MODE).forEach(i=>{const o=Tm.MODE[i];r[o]=function(a){t.ctLoc=t._getCurrentLocation(),n[o].call(this,a)}}),r}};var D8=lH;const uH=go;let cH=class extends uH{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 dH=cH;const _m=go,fT=Rf,fH=D8,hH=dH,mH=hi,ym=mH.TAG_NAMES;let pH=class extends _m{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===fT.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=_m.install(this.tokenizer,fH);t.posTracker=o.posTracker,_m.install(this.openElements,hH,{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===fT.END_TAG_TOKEN&&(r.tagName===ym.HTML||r.tagName===ym.BODY&&this.openElements.hasInScope(ym.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))},Of={};const{DOCUMENT_MODE:hs}=hi,O8="html",LH="about:legacy-compat",BH="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",M8=["+//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//"],HH=M8.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),UH=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],P8=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],zH=P8.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function mT(e){const t=e.indexOf('"')!==-1?"'":'"';return t+e+t}function pT(e,t){for(let n=0;n-1)return hs.QUIRKS;let r=t===null?HH:M8;if(pT(n,r))return hs.QUIRKS;if(r=t===null?P8:zH,pT(n,r))return hs.LIMITED_QUIRKS}return hs.NO_QUIRKS};Of.serializeContent=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=" PUBLIC "+mT(t):n&&(r+=" SYSTEM"),n!==null&&(r+=" "+mT(n)),r};var aa={};const Cm=Rf,Lg=hi,ce=Lg.TAG_NAMES,cn=Lg.NAMESPACES,Zc=Lg.ATTRS,gT={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},GH="definitionurl",WH="definitionURL",KH={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"},jH={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:cn.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:cn.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:cn.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:cn.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:cn.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:cn.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:cn.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:cn.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:cn.XML},"xml:space":{prefix:"xml",name:"space",namespace:cn.XML},xmlns:{prefix:"",name:"xmlns",namespace:cn.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:cn.XMLNS}},$H=aa.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"},VH={[ce.B]:!0,[ce.BIG]:!0,[ce.BLOCKQUOTE]:!0,[ce.BODY]:!0,[ce.BR]:!0,[ce.CENTER]:!0,[ce.CODE]:!0,[ce.DD]:!0,[ce.DIV]:!0,[ce.DL]:!0,[ce.DT]:!0,[ce.EM]:!0,[ce.EMBED]:!0,[ce.H1]:!0,[ce.H2]:!0,[ce.H3]:!0,[ce.H4]:!0,[ce.H5]:!0,[ce.H6]:!0,[ce.HEAD]:!0,[ce.HR]:!0,[ce.I]:!0,[ce.IMG]:!0,[ce.LI]:!0,[ce.LISTING]:!0,[ce.MENU]:!0,[ce.META]:!0,[ce.NOBR]:!0,[ce.OL]:!0,[ce.P]:!0,[ce.PRE]:!0,[ce.RUBY]:!0,[ce.S]:!0,[ce.SMALL]:!0,[ce.SPAN]:!0,[ce.STRONG]:!0,[ce.STRIKE]:!0,[ce.SUB]:!0,[ce.SUP]:!0,[ce.TABLE]:!0,[ce.TT]:!0,[ce.U]:!0,[ce.UL]:!0,[ce.VAR]:!0};aa.causesExit=function(e){const t=e.tagName;return t===ce.FONT&&(Cm.getTokenAttr(e,Zc.COLOR)!==null||Cm.getTokenAttr(e,Zc.SIZE)!==null||Cm.getTokenAttr(e,Zc.FACE)!==null)?!0:VH[t]};aa.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=oU[i];if(o){this.insertionMode=o;break}else if(!n&&(i===g.TD||i===g.TH)){this.insertionMode=Bf;break}else if(!n&&i===g.HEAD){this.insertionMode=Tl;break}else if(i===g.SELECT){this._resetInsertionModeForSelect(t);break}else if(i===g.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(i===g.HTML){this.insertionMode=this.headElement?Pf:Mf;break}else if(n){this.insertionMode=Ri;break}}}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r);if(i===g.TEMPLATE)break;if(i===g.TABLE){this.insertionMode=Ug;return}}this.insertionMode=Hg}_pushTmplInsertionMode(t){this.tmplInsertionModeStack.push(t),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=t}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(t){const n=this.treeAdapter.getTagName(t);return n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){const t={parent:null,beforeElement:null};for(let n=this.openElements.stackTop;n>=0;n--){const r=this.openElements.items[n],i=this.treeAdapter.getTagName(r),o=this.treeAdapter.getNamespaceURI(r);if(i===g.TEMPLATE&&o===ae.HTML){t.parent=this.treeAdapter.getTemplateContent(r);break}else if(i===g.TABLE){t.parent=this.treeAdapter.getParentNode(r),t.parent?t.beforeElement=r:t.parent=this.openElements.items[n-1];break}}return t.parent||(t.parent=this.openElements.items[0]),t}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_fosterParentText(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertTextBefore(n.parent,t,n.beforeElement):this.treeAdapter.insertText(n.parent,t)}_isSpecialElement(t){const n=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t);return Ja.SPECIAL_ELEMENTS[r][n]}}var lU=sU;function uU(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagName)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Zr(e,t),n}function cU(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 dU(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>=iU;!s||l?(l&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(a)):(a=fU(e,s),r===t&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function fU(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 hU(e,t,n){if(e._isElementCausesFosterParenting(t))e._fosterParentElement(n);else{const r=e.treeAdapter.getTagName(t),i=e.treeAdapter.getNamespaceURI(t);r===g.TEMPLATE&&i===ae.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function mU(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),i=n.token,o=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,n.token),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o)}function wo(e,t){let n;for(let r=0;r0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagName!==g.TEMPLATE&&e._err(fn.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode()):e._err(fn.endTagWithoutMatchingOpenElement)}function Su(e,t){e.openElements.pop(),e.insertionMode=Pf,e._processToken(t)}function yU(e,t){const n=t.tagName;n===g.HTML?ir(e,t):n===g.BASEFONT||n===g.BGSOUND||n===g.HEAD||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.STYLE?tn(e,t):n===g.NOSCRIPT?e._err(fn.nestedNoscriptInHead):Au(e,t)}function CU(e,t){const n=t.tagName;n===g.NOSCRIPT?(e.openElements.pop(),e.insertionMode=Tl):n===g.BR?Au(e,t):e._err(fn.endTagWithoutMatchingOpenElement)}function Au(e,t){const n=t.type===w.EOF_TOKEN?fn.openElementsLeftAfterEof:fn.disallowedContentInNoscriptInHead;e._err(n),e.openElements.pop(),e.insertionMode=Tl,e._processToken(t)}function SU(e,t){const n=t.tagName;n===g.HTML?ir(e,t):n===g.BODY?(e._insertElement(t,ae.HTML),e.framesetOk=!1,e.insertionMode=Ri):n===g.FRAMESET?(e._insertElement(t,ae.HTML),e.insertionMode=Hf):n===g.BASE||n===g.BASEFONT||n===g.BGSOUND||n===g.LINK||n===g.META||n===g.NOFRAMES||n===g.SCRIPT||n===g.STYLE||n===g.TEMPLATE||n===g.TITLE?(e._err(fn.abandonedHeadElementChild),e.openElements.push(e.headElement),tn(e,t),e.openElements.remove(e.headElement)):n===g.HEAD?e._err(fn.misplacedStartTagForHeadElement):bu(e,t)}function AU(e,t){const n=t.tagName;n===g.BODY||n===g.HTML||n===g.BR?bu(e,t):n===g.TEMPLATE?es(e,t):e._err(fn.endTagWithoutMatchingOpenElement)}function bu(e,t){e._insertFakeElement(g.BODY),e.insertionMode=Ri,e._processToken(t)}function Ta(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Ic(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function bU(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function kU(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function IU(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,ae.HTML),e.insertionMode=Hf)}function ji(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,ae.HTML)}function FU(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement();const n=e.openElements.currentTagName;(n===g.H1||n===g.H2||n===g.H3||n===g.H4||n===g.H5||n===g.H6)&&e.openElements.pop(),e._insertElement(t,ae.HTML)}function CT(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,ae.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function xU(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,ae.HTML),n||(e.formElement=e.openElements.current))}function NU(e,t){e.framesetOk=!1;const n=t.tagName;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.items[r],o=e.treeAdapter.getTagName(i);let a=null;if(n===g.LI&&o===g.LI?a=g.LI:(n===g.DD||n===g.DT)&&(o===g.DD||o===g.DT)&&(a=o),a){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(o!==g.ADDRESS&&o!==g.DIV&&o!==g.P&&e._isSpecialElement(i))break}e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,ae.HTML)}function DU(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,ae.HTML),e.tokenizer.state=w.MODE.PLAINTEXT}function wU(e,t){e.openElements.hasInScope(g.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(g.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.framesetOk=!1}function RU(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(g.A);n&&(wo(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ms(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function OU(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(g.NOBR)&&(wo(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,ae.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ST(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function MU(e,t){e.treeAdapter.getDocumentMode(e.document)!==Ja.DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,ae.HTML),e.framesetOk=!1,e.insertionMode=yn}function _s(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ae.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function PU(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ae.HTML);const n=w.getTokenAttr(t,L8.TYPE);(!n||n.toLowerCase()!==B8)&&(e.framesetOk=!1),t.ackSelfClosing=!0}function AT(e,t){e._appendElement(t,ae.HTML),t.ackSelfClosing=!0}function LU(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._appendElement(t,ae.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function BU(e,t){t.tagName=g.IMG,_s(e,t)}function HU(e,t){e._insertElement(t,ae.HTML),e.skipNextNewLine=!0,e.tokenizer.state=w.MODE.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Kd}function UU(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,w.MODE.RAWTEXT)}function zU(e,t){e.framesetOk=!1,e._switchToTextParsing(t,w.MODE.RAWTEXT)}function bT(e,t){e._switchToTextParsing(t,w.MODE.RAWTEXT)}function GU(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML),e.framesetOk=!1,e.insertionMode===yn||e.insertionMode===Lf||e.insertionMode===Br||e.insertionMode===co||e.insertionMode===Bf?e.insertionMode=Ug:e.insertionMode=Hg}function kT(e,t){e.openElements.currentTagName===g.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML)}function IT(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,ae.HTML)}function WU(e,t){e.openElements.hasInScope(g.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(g.RTC),e._insertElement(t,ae.HTML)}function KU(e,t){e.openElements.hasInButtonScope(g.P)&&e._closePElement(),e._insertElement(t,ae.HTML)}function jU(e,t){e._reconstructActiveFormattingElements(),Ii.adjustTokenMathMLAttrs(t),Ii.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,ae.MATHML):e._insertElement(t,ae.MATHML),t.ackSelfClosing=!0}function $U(e,t){e._reconstructActiveFormattingElements(),Ii.adjustTokenSVGAttrs(t),Ii.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,ae.SVG):e._insertElement(t,ae.SVG),t.ackSelfClosing=!0}function kr(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ae.HTML)}function ir(e,t){const n=t.tagName;switch(n.length){case 1:n===g.I||n===g.S||n===g.B||n===g.U?ms(e,t):n===g.P?ji(e,t):n===g.A?RU(e,t):kr(e,t);break;case 2:n===g.DL||n===g.OL||n===g.UL?ji(e,t):n===g.H1||n===g.H2||n===g.H3||n===g.H4||n===g.H5||n===g.H6?FU(e,t):n===g.LI||n===g.DD||n===g.DT?NU(e,t):n===g.EM||n===g.TT?ms(e,t):n===g.BR?_s(e,t):n===g.HR?LU(e,t):n===g.RB?IT(e,t):n===g.RT||n===g.RP?WU(e,t):n!==g.TH&&n!==g.TD&&n!==g.TR&&kr(e,t);break;case 3:n===g.DIV||n===g.DIR||n===g.NAV?ji(e,t):n===g.PRE?CT(e,t):n===g.BIG?ms(e,t):n===g.IMG||n===g.WBR?_s(e,t):n===g.XMP?UU(e,t):n===g.SVG?$U(e,t):n===g.RTC?IT(e,t):n!==g.COL&&kr(e,t);break;case 4:n===g.HTML?bU(e,t):n===g.BASE||n===g.LINK||n===g.META?tn(e,t):n===g.BODY?kU(e,t):n===g.MAIN||n===g.MENU?ji(e,t):n===g.FORM?xU(e,t):n===g.CODE||n===g.FONT?ms(e,t):n===g.NOBR?OU(e,t):n===g.AREA?_s(e,t):n===g.MATH?jU(e,t):n===g.MENU?KU(e,t):n!==g.HEAD&&kr(e,t);break;case 5:n===g.STYLE||n===g.TITLE?tn(e,t):n===g.ASIDE?ji(e,t):n===g.SMALL?ms(e,t):n===g.TABLE?MU(e,t):n===g.EMBED?_s(e,t):n===g.INPUT?PU(e,t):n===g.PARAM||n===g.TRACK?AT(e,t):n===g.IMAGE?BU(e,t):n!==g.FRAME&&n!==g.TBODY&&n!==g.TFOOT&&n!==g.THEAD&&kr(e,t);break;case 6:n===g.SCRIPT?tn(e,t):n===g.CENTER||n===g.FIGURE||n===g.FOOTER||n===g.HEADER||n===g.HGROUP||n===g.DIALOG?ji(e,t):n===g.BUTTON?wU(e,t):n===g.STRIKE||n===g.STRONG?ms(e,t):n===g.APPLET||n===g.OBJECT?ST(e,t):n===g.KEYGEN?_s(e,t):n===g.SOURCE?AT(e,t):n===g.IFRAME?zU(e,t):n===g.SELECT?GU(e,t):n===g.OPTION?kT(e,t):kr(e,t);break;case 7:n===g.BGSOUND?tn(e,t):n===g.DETAILS||n===g.ADDRESS||n===g.ARTICLE||n===g.SECTION||n===g.SUMMARY?ji(e,t):n===g.LISTING?CT(e,t):n===g.MARQUEE?ST(e,t):n===g.NOEMBED?bT(e,t):n!==g.CAPTION&&kr(e,t);break;case 8:n===g.BASEFONT?tn(e,t):n===g.FRAMESET?IU(e,t):n===g.FIELDSET?ji(e,t):n===g.TEXTAREA?HU(e,t):n===g.TEMPLATE?tn(e,t):n===g.NOSCRIPT?e.options.scriptingEnabled?bT(e,t):kr(e,t):n===g.OPTGROUP?kT(e,t):n!==g.COLGROUP&&kr(e,t);break;case 9:n===g.PLAINTEXT?DU(e,t):kr(e,t);break;case 10:n===g.BLOCKQUOTE||n===g.FIGCAPTION?ji(e,t):kr(e,t);break;default:kr(e,t)}}function VU(e){e.openElements.hasInScope(g.BODY)&&(e.insertionMode=zg)}function YU(e,t){e.openElements.hasInScope(g.BODY)&&(e.insertionMode=zg,e._processToken(t))}function Ao(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function qU(e){const t=e.openElements.tmplCount>0,n=e.formElement;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(g.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(g.FORM):e.openElements.remove(n))}function QU(e){e.openElements.hasInButtonScope(g.P)||e._insertFakeElement(g.P),e._closePElement()}function XU(e){e.openElements.hasInListItemScope(g.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(g.LI),e.openElements.popUntilTagNamePopped(g.LI))}function ZU(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function JU(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function FT(e,t){const n=t.tagName;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function ez(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(g.BR),e.openElements.pop(),e.framesetOk=!1}function Zr(e,t){const n=t.tagName;for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getTagName(i)===n){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilElementPopped(i);break}if(e._isSpecialElement(i))break}}function Gg(e,t){const n=t.tagName;switch(n.length){case 1:n===g.A||n===g.B||n===g.I||n===g.S||n===g.U?wo(e,t):n===g.P?QU(e):Zr(e,t);break;case 2:n===g.DL||n===g.UL||n===g.OL?Ao(e,t):n===g.LI?XU(e):n===g.DD||n===g.DT?ZU(e,t):n===g.H1||n===g.H2||n===g.H3||n===g.H4||n===g.H5||n===g.H6?JU(e):n===g.BR?ez(e):n===g.EM||n===g.TT?wo(e,t):Zr(e,t);break;case 3:n===g.BIG?wo(e,t):n===g.DIR||n===g.DIV||n===g.NAV||n===g.PRE?Ao(e,t):Zr(e,t);break;case 4:n===g.BODY?VU(e):n===g.HTML?YU(e,t):n===g.FORM?qU(e):n===g.CODE||n===g.FONT||n===g.NOBR?wo(e,t):n===g.MAIN||n===g.MENU?Ao(e,t):Zr(e,t);break;case 5:n===g.ASIDE?Ao(e,t):n===g.SMALL?wo(e,t):Zr(e,t);break;case 6:n===g.CENTER||n===g.FIGURE||n===g.FOOTER||n===g.HEADER||n===g.HGROUP||n===g.DIALOG?Ao(e,t):n===g.APPLET||n===g.OBJECT?FT(e,t):n===g.STRIKE||n===g.STRONG?wo(e,t):Zr(e,t);break;case 7:n===g.ADDRESS||n===g.ARTICLE||n===g.DETAILS||n===g.SECTION||n===g.SUMMARY||n===g.LISTING?Ao(e,t):n===g.MARQUEE?FT(e,t):Zr(e,t);break;case 8:n===g.FIELDSET?Ao(e,t):n===g.TEMPLATE?es(e,t):Zr(e,t);break;case 10:n===g.BLOCKQUOTE||n===g.FIGCAPTION?Ao(e,t):Zr(e,t);break;default:Zr(e,t)}}function $i(e,t){e.tmplInsertionModeStackTop>-1?V8(e,t):e.stopped=!0}function tz(e,t){t.tagName===g.SCRIPT&&(e.pendingScript=e.openElements.current),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function nz(e,t){e._err(fn.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e._processToken(t)}function Vi(e,t){const n=e.openElements.currentTagName;n===g.TABLE||n===g.TBODY||n===g.TFOOT||n===g.THEAD||n===g.TR?(e.pendingCharacterTokens=[],e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=z8,e._processToken(t)):Fr(e,t)}function rz(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,ae.HTML),e.insertionMode=Lf}function iz(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ae.HTML),e.insertionMode=w1}function oz(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(g.COLGROUP),e.insertionMode=w1,e._processToken(t)}function az(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ae.HTML),e.insertionMode=Br}function sz(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(g.TBODY),e.insertionMode=Br,e._processToken(t)}function lz(e,t){e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode(),e._processToken(t))}function uz(e,t){const n=w.getTokenAttr(t,L8.TYPE);n&&n.toLowerCase()===B8?e._appendElement(t,ae.HTML):Fr(e,t),t.ackSelfClosing=!0}function cz(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,ae.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Wg(e,t){const n=t.tagName;switch(n.length){case 2:n===g.TD||n===g.TH||n===g.TR?sz(e,t):Fr(e,t);break;case 3:n===g.COL?oz(e,t):Fr(e,t);break;case 4:n===g.FORM?cz(e,t):Fr(e,t);break;case 5:n===g.TABLE?lz(e,t):n===g.STYLE?tn(e,t):n===g.TBODY||n===g.TFOOT||n===g.THEAD?az(e,t):n===g.INPUT?uz(e,t):Fr(e,t);break;case 6:n===g.SCRIPT?tn(e,t):Fr(e,t);break;case 7:n===g.CAPTION?rz(e,t):Fr(e,t);break;case 8:n===g.COLGROUP?iz(e,t):n===g.TEMPLATE?tn(e,t):Fr(e,t);break;default:Fr(e,t)}}function Kg(e,t){const n=t.tagName;n===g.TABLE?e.openElements.hasInTableScope(g.TABLE)&&(e.openElements.popUntilTagNamePopped(g.TABLE),e._resetInsertionMode()):n===g.TEMPLATE?es(e,t):n!==g.BODY&&n!==g.CAPTION&&n!==g.COL&&n!==g.COLGROUP&&n!==g.HTML&&n!==g.TBODY&&n!==g.TD&&n!==g.TFOOT&&n!==g.TH&&n!==g.THEAD&&n!==g.TR&&Fr(e,t)}function Fr(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,e._processTokenInBodyMode(t),e.fosterParentingEnabled=n}function dz(e,t){e.pendingCharacterTokens.push(t)}function fz(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Vl(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0?(e.openElements.popUntilTagNamePopped(g.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e._popTmplInsertionMode(),e._resetInsertionMode(),e._processToken(t)):e.stopped=!0}function Iz(e,t){t.tagName===g.HTML?ir(e,t):Vd(e,t)}function Fz(e,t){t.tagName===g.HTML?e.fragmentContext||(e.insertionMode=W8):Vd(e,t)}function Vd(e,t){e.insertionMode=Ri,e._processToken(t)}function xz(e,t){const n=t.tagName;n===g.HTML?ir(e,t):n===g.FRAMESET?e._insertElement(t,ae.HTML):n===g.FRAME?(e._appendElement(t,ae.HTML),t.ackSelfClosing=!0):n===g.NOFRAMES&&tn(e,t)}function Nz(e,t){t.tagName===g.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagName!==g.FRAMESET&&(e.insertionMode=G8))}function Dz(e,t){const n=t.tagName;n===g.HTML?ir(e,t):n===g.NOFRAMES&&tn(e,t)}function wz(e,t){t.tagName===g.HTML&&(e.insertionMode=K8)}function Rz(e,t){t.tagName===g.HTML?ir(e,t):Jc(e,t)}function Jc(e,t){e.insertionMode=Ri,e._processToken(t)}function Oz(e,t){const n=t.tagName;n===g.HTML?ir(e,t):n===g.NOFRAMES&&tn(e,t)}function Mz(e,t){t.chars=tU.REPLACEMENT_CHARACTER,e._insertCharacters(t)}function Pz(e,t){e._insertCharacters(t),e.framesetOk=!1}function Lz(e,t){if(Ii.causesExit(t)&&!e.fragmentContext){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==ae.HTML&&!e._isIntegrationPoint(e.openElements.current);)e.openElements.pop();e._processToken(t)}else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===ae.MATHML?Ii.adjustTokenMathMLAttrs(t):r===ae.SVG&&(Ii.adjustTokenSVGTagName(t),Ii.adjustTokenSVGAttrs(t)),Ii.adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Bz(e,t){for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===ae.HTML){e._processToken(t);break}if(e.treeAdapter.getTagName(r).toLowerCase()===t.tagName){e.openElements.popUntilElementPopped(r);break}}}const xT=/[#.]/g;function Hz(e,t){const n=e||"",r={};let i=0,o,a;for(;i-1&&aa)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a}}return{line:void 0,column:void 0,offset:void 0}}function o(a){const s=a&&a.line,l=a&&a.column;if(typeof s=="number"&&typeof l=="number"&&!Number.isNaN(s)&&!Number.isNaN(l)&&s-1 in n){const u=(n[s-2]||0)+l-1||0;if(u>-1&&u{const I=S;if(I.value.stitch&&M!==null&&D!==null)return M.children[D]=I.value.stitch,D}),e.type!=="root"&&d.type==="root"&&d.children.length===1)return d.children[0];return d;function f(){const S={nodeName:"template",tagName:"template",attrs:[],namespaceURI:r1.html,childNodes:[]},D={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:r1.html,childNodes:[]},M={nodeName:"#document-fragment",childNodes:[]};if(i._bootstrap(D,S),i._pushTmplInsertionMode(cG),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return l=s.preprocessor,c=s.__mixins[0],u=c.posTracker,o(e),A(),i._adoptNodes(D.childNodes[0],M),M}function p(){const S=i.treeAdapter.createDocument();if(i._bootstrap(S,void 0),s=i.tokenizer,!s)throw new Error("Expected `tokenizer`");return l=s.preprocessor,c=s.__mixins[0],u=c.posTracker,o(e),A(),S}function h(S){let D=-1;if(S)for(;++DJ8(t,n,e)}function bG(){const e=["a","b","c","d","e","f","0","1","2","3","4","5","6","7","8","9"];let t=[];for(let n=0;n<36;n++)n===8||n===13||n===18||n===23?t[n]="-":t[n]=e[Math.ceil(Math.random()*e.length-1)];return t.join("")}var Yi=bG,kG=typeof global=="object"&&global&&global.Object===Object&&global;const eS=kG;var IG=typeof self=="object"&&self&&self.Object===Object&&self,FG=eS||IG||Function("return this")();const Hi=FG;var xG=Hi.Symbol;const sl=xG;var tS=Object.prototype,NG=tS.hasOwnProperty,DG=tS.toString,Yl=sl?sl.toStringTag:void 0;function wG(e){var t=NG.call(e,Yl),n=e[Yl];try{e[Yl]=void 0;var r=!0}catch{}var i=DG.call(e);return r&&(t?e[Yl]=n:delete e[Yl]),i}var RG=Object.prototype,OG=RG.toString;function MG(e){return OG.call(e)}var PG="[object Null]",LG="[object Undefined]",RT=sl?sl.toStringTag:void 0;function R1(e){return e==null?e===void 0?LG:PG:RT&&RT in Object(e)?wG(e):MG(e)}function O1(e){return e!=null&&typeof e=="object"}var BG=Array.isArray;const Uf=BG;function M1(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var HG="[object AsyncFunction]",UG="[object Function]",zG="[object GeneratorFunction]",GG="[object Proxy]";function nS(e){if(!M1(e))return!1;var t=R1(e);return t==UG||t==zG||t==HG||t==GG}var WG=Hi["__core-js_shared__"];const Sm=WG;var OT=function(){var e=/[^.]+$/.exec(Sm&&Sm.keys&&Sm.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function KG(e){return!!OT&&OT in e}var jG=Function.prototype,$G=jG.toString;function ts(e){if(e!=null){try{return $G.call(e)}catch{}try{return e+""}catch{}}return""}var VG=/[\\^$.*+?()[\]{}|]/g,YG=/^\[object .+?Constructor\]$/,qG=Function.prototype,QG=Object.prototype,XG=qG.toString,ZG=QG.hasOwnProperty,JG=RegExp("^"+XG.call(ZG).replace(VG,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function eW(e){if(!M1(e)||KG(e))return!1;var t=nS(e)?JG:YG;return t.test(ts(e))}function tW(e,t){return e==null?void 0:e[t]}function ns(e,t){var n=tW(e,t);return eW(n)?n:void 0}var nW=ns(Hi,"WeakMap");const J0=nW;var MT=Object.create,rW=function(){function e(){}return function(t){if(!M1(t))return{};if(MT)return MT(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const iW=rW;function oW(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n-1&&e%1==0&&e-1&&e%1==0&&e<=hW}function Vg(e){return e!=null&&aS(e.length)&&!nS(e)}var mW=Object.prototype;function Gf(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||mW;return e===n}function pW(e,t){for(var n=-1,r=Array(e);++n-1}function kK(e,t){var n=this.__data__,r=Wf(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Eo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t1?n-1:0),i=1;i2&&arguments[2]!==void 0?arguments[2]:nd;t_&&t_(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i=="string"){const o=n(i);o!==i&&(I$(t)||(t[r]=o),i=o)}e[i]=!0}return e}function R$(e){for(let t=0;t/gm),B$=ci(/\${[\w\W]*}/gm),H$=ci(/^data-[\-\w.\u00B7-\uFFFF]/),U$=ci(/^aria-[\-\w]+$/),kS=ci(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),z$=ci(/^(?:\w+script|data):/i),G$=ci(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),IS=ci(/^html$/i);var s_=Object.freeze({__proto__:null,MUSTACHE_EXPR:P$,ERB_EXPR:L$,TMPLIT_EXPR:B$,DATA_ATTR:H$,ARIA_ATTR:U$,IS_ALLOWED_URI:kS,IS_SCRIPT_OR_DATA:z$,ATTR_WHITESPACE:G$,DOCTYPE_NAME:IS});const W$=function(){return typeof window>"u"?null:window},K$=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function FS(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:W$();const t=G=>FS(G);if(t.version="3.0.8",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;let{document:n}=e;const r=n,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:a,Node:s,Element:l,NodeFilter:u,NamedNodeMap:c=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:p}=e,h=l.prototype,v=xc(h,"cloneNode"),y=xc(h,"nextSibling"),m=xc(h,"childNodes"),T=xc(h,"parentNode");if(typeof a=="function"){const G=n.createElement("template");G.content&&G.content.ownerDocument&&(n=G.content.ownerDocument)}let _,C="";const{implementation:F,createNodeIterator:A,createDocumentFragment:S,getElementsByTagName:D}=n,{importNode:M}=r;let I={};t.isSupported=typeof AS=="function"&&typeof T=="function"&&F&&F.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:L,ERB_EXPR:O,TMPLIT_EXPR:X,DATA_ATTR:H,ARIA_ATTR:U,IS_SCRIPT_OR_DATA:K,ATTR_WHITESPACE:ne}=s_;let{IS_ALLOWED_URI:P}=s_,W=null;const V=xe({},[...r_,...km,...Im,...Fm,...i_]);let b=null;const k=xe({},[...o_,...xm,...a_,...Nc]);let me=Object.seal(bS(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),we=null,ut=null,Se=!0,Ue=!0,St=!1,_t=!0,We=!1,ct=!1,Vt=!1,sn=!1,Yt=!1,ie=!1,Ee=!1,le=!0,$e=!1;const Ve="user-content-";let Ot=!0,ve=!1,yt={},qt=null;const Wn=xe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let At=null;const Qt=xe({},["audio","video","img","source","image","track"]);let z=null;const Y=xe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),se="http://www.w3.org/1998/Math/MathML",pe="http://www.w3.org/2000/svg",q="http://www.w3.org/1999/xhtml";let Re=q,Oe=!1,Ze=null;const ze=xe({},[se,pe,q],bm);let ke=null;const Ce=["application/xhtml+xml","text/html"],or="text/html";let ye=null,An=null;const ar=n.createElement("form"),sa=function(R){return R instanceof RegExp||R instanceof Function},la=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(An&&An===R)){if((!R||typeof R!="object")&&(R={}),R=Aa(R),ke=Ce.indexOf(R.PARSER_MEDIA_TYPE)===-1?or:R.PARSER_MEDIA_TYPE,ye=ke==="application/xhtml+xml"?bm:nd,W="ALLOWED_TAGS"in R?xe({},R.ALLOWED_TAGS,ye):V,b="ALLOWED_ATTR"in R?xe({},R.ALLOWED_ATTR,ye):k,Ze="ALLOWED_NAMESPACES"in R?xe({},R.ALLOWED_NAMESPACES,bm):ze,z="ADD_URI_SAFE_ATTR"in R?xe(Aa(Y),R.ADD_URI_SAFE_ATTR,ye):Y,At="ADD_DATA_URI_TAGS"in R?xe(Aa(Qt),R.ADD_DATA_URI_TAGS,ye):Qt,qt="FORBID_CONTENTS"in R?xe({},R.FORBID_CONTENTS,ye):Wn,we="FORBID_TAGS"in R?xe({},R.FORBID_TAGS,ye):{},ut="FORBID_ATTR"in R?xe({},R.FORBID_ATTR,ye):{},yt="USE_PROFILES"in R?R.USE_PROFILES:!1,Se=R.ALLOW_ARIA_ATTR!==!1,Ue=R.ALLOW_DATA_ATTR!==!1,St=R.ALLOW_UNKNOWN_PROTOCOLS||!1,_t=R.ALLOW_SELF_CLOSE_IN_ATTR!==!1,We=R.SAFE_FOR_TEMPLATES||!1,ct=R.WHOLE_DOCUMENT||!1,Yt=R.RETURN_DOM||!1,ie=R.RETURN_DOM_FRAGMENT||!1,Ee=R.RETURN_TRUSTED_TYPE||!1,sn=R.FORCE_BODY||!1,le=R.SANITIZE_DOM!==!1,$e=R.SANITIZE_NAMED_PROPS||!1,Ot=R.KEEP_CONTENT!==!1,ve=R.IN_PLACE||!1,P=R.ALLOWED_URI_REGEXP||kS,Re=R.NAMESPACE||q,me=R.CUSTOM_ELEMENT_HANDLING||{},R.CUSTOM_ELEMENT_HANDLING&&sa(R.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(me.tagNameCheck=R.CUSTOM_ELEMENT_HANDLING.tagNameCheck),R.CUSTOM_ELEMENT_HANDLING&&sa(R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(me.attributeNameCheck=R.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),R.CUSTOM_ELEMENT_HANDLING&&typeof R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(me.allowCustomizedBuiltInElements=R.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),We&&(Ue=!1),ie&&(Yt=!0),yt&&(W=xe({},i_),b=[],yt.html===!0&&(xe(W,r_),xe(b,o_)),yt.svg===!0&&(xe(W,km),xe(b,xm),xe(b,Nc)),yt.svgFilters===!0&&(xe(W,Im),xe(b,xm),xe(b,Nc)),yt.mathMl===!0&&(xe(W,Fm),xe(b,a_),xe(b,Nc))),R.ADD_TAGS&&(W===V&&(W=Aa(W)),xe(W,R.ADD_TAGS,ye)),R.ADD_ATTR&&(b===k&&(b=Aa(b)),xe(b,R.ADD_ATTR,ye)),R.ADD_URI_SAFE_ATTR&&xe(z,R.ADD_URI_SAFE_ATTR,ye),R.FORBID_CONTENTS&&(qt===Wn&&(qt=Aa(qt)),xe(qt,R.FORBID_CONTENTS,ye)),Ot&&(W["#text"]=!0),ct&&xe(W,["html","head","body"]),W.table&&(xe(W,["tbody"]),delete we.tbody),R.TRUSTED_TYPES_POLICY){if(typeof R.TRUSTED_TYPES_POLICY.createHTML!="function")throw Zl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof R.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Zl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=R.TRUSTED_TYPES_POLICY,C=_.createHTML("")}else _===void 0&&(_=K$(p,i)),_!==null&&typeof C=="string"&&(C=_.createHTML(""));Hn&&Hn(R),An=R}},rs=xe({},["mi","mo","mn","ms","mtext"]),ua=xe({},["foreignobject","desc","title","annotation-xml"]),Sr=xe({},["title","style","font","a","script"]),ca=xe({},[...km,...Im,...O$]),Ye=xe({},[...Fm,...M$]),Te=function(R){let j=T(R);(!j||!j.tagName)&&(j={namespaceURI:Re,tagName:"template"});const ee=nd(R.tagName),Ae=nd(j.tagName);return Ze[R.namespaceURI]?R.namespaceURI===pe?j.namespaceURI===q?ee==="svg":j.namespaceURI===se?ee==="svg"&&(Ae==="annotation-xml"||rs[Ae]):Boolean(ca[ee]):R.namespaceURI===se?j.namespaceURI===q?ee==="math":j.namespaceURI===pe?ee==="math"&&ua[Ae]:Boolean(Ye[ee]):R.namespaceURI===q?j.namespaceURI===pe&&!ua[Ae]||j.namespaceURI===se&&!rs[Ae]?!1:!Ye[ee]&&(Sr[ee]||!ca[ee]):!!(ke==="application/xhtml+xml"&&Ze[R.namespaceURI]):!1},Mt=function(R){Ql(t.removed,{element:R});try{R.parentNode.removeChild(R)}catch{R.remove()}},Ar=function(R,j){try{Ql(t.removed,{attribute:j.getAttributeNode(R),from:j})}catch{Ql(t.removed,{attribute:null,from:j})}if(j.removeAttribute(R),R==="is"&&!b[R])if(Yt||ie)try{Mt(j)}catch{}else try{j.setAttribute(R,"")}catch{}},$r=function(R){let j=null,ee=null;if(sn)R=""+R;else{const _e=x$(R,/^[\r\n\t ]+/);ee=_e&&_e[0]}ke==="application/xhtml+xml"&&Re===q&&(R=''+R+"");const Ae=_?_.createHTML(R):R;if(Re===q)try{j=new f().parseFromString(Ae,ke)}catch{}if(!j||!j.documentElement){j=F.createDocument(Re,"template",null);try{j.documentElement.innerHTML=Oe?C:Ae}catch{}}const Ke=j.body||j.documentElement;return R&&ee&&Ke.insertBefore(n.createTextNode(ee),Ke.childNodes[0]||null),Re===q?D.call(j,ct?"html":"body")[0]:ct?j.documentElement:Ke},Xt=function(R){return A.call(R.ownerDocument||R,R,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null)},$f=function(R){return R instanceof d&&(typeof R.nodeName!="string"||typeof R.textContent!="string"||typeof R.removeChild!="function"||!(R.attributes instanceof c)||typeof R.removeAttribute!="function"||typeof R.setAttribute!="function"||typeof R.namespaceURI!="string"||typeof R.insertBefore!="function"||typeof R.hasChildNodes!="function")},Sl=function(R){return typeof s=="function"&&R instanceof s},br=function(R,j,ee){I[R]&&Fc(I[R],Ae=>{Ae.call(t,j,ee,An)})},is=function(R){let j=null;if(br("beforeSanitizeElements",R,null),$f(R))return Mt(R),!0;const ee=ye(R.nodeName);if(br("uponSanitizeElement",R,{tagName:ee,allowedTags:W}),R.hasChildNodes()&&!Sl(R.firstElementChild)&&lr(/<[/\w]/g,R.innerHTML)&&lr(/<[/\w]/g,R.textContent))return Mt(R),!0;if(!W[ee]||we[ee]){if(!we[ee]&&da(ee)&&(me.tagNameCheck instanceof RegExp&&lr(me.tagNameCheck,ee)||me.tagNameCheck instanceof Function&&me.tagNameCheck(ee)))return!1;if(Ot&&!qt[ee]){const Ae=T(R)||R.parentNode,Ke=m(R)||R.childNodes;if(Ke&&Ae){const _e=Ke.length;for(let Je=_e-1;Je>=0;--Je)Ae.insertBefore(v(Ke[Je],!0),y(R))}}return Mt(R),!0}return R instanceof l&&!Te(R)||(ee==="noscript"||ee==="noembed"||ee==="noframes")&&lr(/<\/no(script|embed|frames)/i,R.innerHTML)?(Mt(R),!0):(We&&R.nodeType===3&&(j=R.textContent,Fc([L,O,X],Ae=>{j=Xl(j,Ae," ")}),R.textContent!==j&&(Ql(t.removed,{element:R.cloneNode()}),R.textContent=j)),br("afterSanitizeElements",R,null),!1)},Al=function(R,j,ee){if(le&&(j==="id"||j==="name")&&(ee in n||ee in ar))return!1;if(!(Ue&&!ut[j]&&lr(H,j))){if(!(Se&&lr(U,j))){if(!b[j]||ut[j]){if(!(da(R)&&(me.tagNameCheck instanceof RegExp&&lr(me.tagNameCheck,R)||me.tagNameCheck instanceof Function&&me.tagNameCheck(R))&&(me.attributeNameCheck instanceof RegExp&&lr(me.attributeNameCheck,j)||me.attributeNameCheck instanceof Function&&me.attributeNameCheck(j))||j==="is"&&me.allowCustomizedBuiltInElements&&(me.tagNameCheck instanceof RegExp&&lr(me.tagNameCheck,ee)||me.tagNameCheck instanceof Function&&me.tagNameCheck(ee))))return!1}else if(!z[j]){if(!lr(P,Xl(ee,ne,""))){if(!((j==="src"||j==="xlink:href"||j==="href")&&R!=="script"&&N$(ee,"data:")===0&&At[R])){if(!(St&&!lr(K,Xl(ee,ne,"")))){if(ee)return!1}}}}}}return!0},da=function(R){return R.indexOf("-")>0},P1=function(R){br("beforeSanitizeAttributes",R,null);const{attributes:j}=R;if(!j)return;const ee={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:b};let Ae=j.length;for(;Ae--;){const Ke=j[Ae],{name:_e,namespaceURI:Je,value:je}=Ke,Ut=ye(_e);let dt=_e==="value"?je:D$(je);if(ee.attrName=Ut,ee.attrValue=dt,ee.keepAttr=!0,ee.forceKeepAttr=void 0,br("uponSanitizeAttribute",R,ee),dt=ee.attrValue,ee.forceKeepAttr||(Ar(_e,R),!ee.keepAttr))continue;if(!_t&&lr(/\/>/i,dt)){Ar(_e,R);continue}We&&Fc([L,O,X],fa=>{dt=Xl(dt,fa," ")});const mi=ye(R.nodeName);if(Al(mi,Ut,dt)){if($e&&(Ut==="id"||Ut==="name")&&(Ar(_e,R),dt=Ve+dt),_&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Je)switch(p.getAttributeType(mi,Ut)){case"TrustedHTML":{dt=_.createHTML(dt);break}case"TrustedScriptURL":{dt=_.createScriptURL(dt);break}}try{Je?R.setAttributeNS(Je,_e,dt):R.setAttribute(_e,dt),n_(t.removed)}catch{}}}br("afterSanitizeAttributes",R,null)},Vf=function G(R){let j=null;const ee=Xt(R);for(br("beforeSanitizeShadowDOM",R,null);j=ee.nextNode();)br("uponSanitizeShadowNode",j,null),!is(j)&&(j.content instanceof o&&G(j.content),P1(j));br("afterSanitizeShadowDOM",R,null)};return t.sanitize=function(G){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=null,ee=null,Ae=null,Ke=null;if(Oe=!G,Oe&&(G=""),typeof G!="string"&&!Sl(G))if(typeof G.toString=="function"){if(G=G.toString(),typeof G!="string")throw Zl("dirty is not a string, aborting")}else throw Zl("toString is not a function");if(!t.isSupported)return G;if(Vt||la(R),t.removed=[],typeof G=="string"&&(ve=!1),ve){if(G.nodeName){const je=ye(G.nodeName);if(!W[je]||we[je])throw Zl("root node is forbidden and cannot be sanitized in-place")}}else if(G instanceof s)j=$r(""),ee=j.ownerDocument.importNode(G,!0),ee.nodeType===1&&ee.nodeName==="BODY"||ee.nodeName==="HTML"?j=ee:j.appendChild(ee);else{if(!Yt&&!We&&!ct&&G.indexOf("<")===-1)return _&&Ee?_.createHTML(G):G;if(j=$r(G),!j)return Yt?null:Ee?C:""}j&&sn&&Mt(j.firstChild);const _e=Xt(ve?G:j);for(;Ae=_e.nextNode();)is(Ae)||(Ae.content instanceof o&&Vf(Ae.content),P1(Ae));if(ve)return G;if(Yt){if(ie)for(Ke=S.call(j.ownerDocument);j.firstChild;)Ke.appendChild(j.firstChild);else Ke=j;return(b.shadowroot||b.shadowrootmode)&&(Ke=M.call(r,Ke,!0)),Ke}let Je=ct?j.outerHTML:j.innerHTML;return ct&&W["!doctype"]&&j.ownerDocument&&j.ownerDocument.doctype&&j.ownerDocument.doctype.name&&lr(IS,j.ownerDocument.doctype.name)&&(Je=" +`+Je),We&&Fc([L,O,X],je=>{Je=Xl(Je,je," ")}),_&&Ee?_.createHTML(Je):Je},t.setConfig=function(){let G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};la(G),Vt=!0},t.clearConfig=function(){An=null,Vt=!1},t.isValidAttribute=function(G,R,j){An||la({});const ee=ye(G),Ae=ye(R);return Al(ee,Ae,j)},t.addHook=function(G,R){typeof R=="function"&&(I[G]=I[G]||[],Ql(I[G],R))},t.removeHook=function(G){if(I[G])return n_(I[G])},t.removeHooks=function(G){I[G]&&(I[G]=[])},t.removeAllHooks=function(){I={}},t}var xS=FS();const j$="_container_8t6sx_1",$$="_chatRoot_8t6sx_8",V$="_chatContainer_8t6sx_18",Y$="_chatEmptyState_8t6sx_30",q$="_chatEmptyStateTitle_8t6sx_38",Q$="_chatEmptyStateSubtitle_8t6sx_50",X$="_chatIcon_8t6sx_63",Z$="_chatMessageStream_8t6sx_68",J$="_chatMessageUser_8t6sx_80",eV="_chatMessageUserMessage_8t6sx_86",tV="_chatMessageGpt_8t6sx_104",nV="_chatMessageError_8t6sx_110",rV="_chatMessageErrorContent_8t6sx_122",iV="_chatInput_8t6sx_134",oV="_clearChatBroom_8t6sx_147",aV="_clearChatBroomNoCosmos_8t6sx_163",sV="_newChatIcon_8t6sx_179",lV="_stopGeneratingContainer_8t6sx_195",uV="_stopGeneratingIcon_8t6sx_212",cV="_stopGeneratingText_8t6sx_218",dV="_citationPanel_8t6sx_233",fV="_citationPanelHeaderContainer_8t6sx_251",hV="_citationPanelHeader_8t6sx_251",mV="_citationPanelDismiss_8t6sx_266",pV="_citationPanelTitle_8t6sx_277",gV="_citationPanelContent_8t6sx_292",EV="_viewSourceButton_8t6sx_309",Be={container:j$,chatRoot:$$,chatContainer:V$,chatEmptyState:Y$,chatEmptyStateTitle:q$,chatEmptyStateSubtitle:Q$,chatIcon:X$,chatMessageStream:Z$,chatMessageUser:J$,chatMessageUserMessage:eV,chatMessageGpt:tV,chatMessageError:nV,chatMessageErrorContent:rV,chatInput:iV,clearChatBroom:oV,clearChatBroomNoCosmos:aV,newChatIcon:sV,stopGeneratingContainer:lV,stopGeneratingIcon:uV,stopGeneratingText:cV,citationPanel:dV,citationPanelHeaderContainer:fV,citationPanelHeader:hV,citationPanelDismiss:mV,citationPanelTitle:pV,citationPanelContent:gV,viewSourceButton:EV},NS=["iframe","a","img","svg","h1","h2","h3","h4","h5","h6","div","p","span","small","del","img","pictrue","embed","video","audio","i","u","sup","sub","strong","strike","code","pre","body","section","article","footer","table","tr","td","th","thead","tbody","tfooter","ul","ol","li"],vV="_answerContainer_1xeyy_1",TV="_answerText_1xeyy_12",_V="_answerHeader_1xeyy_29",yV="_answerFooter_1xeyy_33",CV="_answerDisclaimerContainer_1xeyy_42",SV="_answerDisclaimer_1xeyy_42",AV="_citationContainer_1xeyy_62",bV="_citation_1xeyy_62",kV="_accordionIcon_1xeyy_112",IV="_accordionTitle_1xeyy_127",FV="_clickableSup_1xeyy_143",Ti={answerContainer:vV,answerText:TV,answerHeader:_V,answerFooter:yV,answerDisclaimerContainer:CV,answerDisclaimer:SV,citationContainer:AV,citation:bV,accordionIcon:kV,accordionTitle:IV,clickableSup:FV};function xV(e){let t=e.answer;const n=t.match(/\[(doc\d\d?\d?)]/g),r=4;let i=[],o=0;return n==null||n.forEach(a=>{let s=a.slice(r,a.length-1),l=C$(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 NV(){return e=>{al(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)}),al(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 l_=({answer:e,onCitationClicked:t})=>{var O,X;const n=H=>{if(H.message_id!=null&&H.feedback!=null)return H.feedback.split(",").length>1?Ne.Negative:Object.values(Ne).includes(H.feedback)?H.feedback:Ne.Neutral},[r,{toggle:i}]=g1(!1),o=50,a=E.useMemo(()=>xV(e),[e]),[s,l]=E.useState(r),[u,c]=E.useState(n(e)),[d,f]=E.useState(!1),[p,h]=E.useState(!1),[v,y]=E.useState([]),m=E.useContext(ia),T=((O=m==null?void 0:m.state.frontendSettings)==null?void 0:O.feedback_enabled)&&((X=m==null?void 0:m.state.isCosmosDBAvailable)==null?void 0:X.cosmosDB),_=()=>{l(!s),i()};E.useEffect(()=>{l(r)},[r]),E.useEffect(()=>{if(e.message_id==null)return;let H;m!=null&&m.state.feedbackState&&(m!=null&&m.state.feedbackState[e.message_id])?H=m==null?void 0:m.state.feedbackState[e.message_id]:H=n(e),c(H)},[m==null?void 0:m.state.feedbackState,u,e.message_id]);const C=(H,U,K=!1)=>{let ne="";if(H.filepath&&H.chunk_id)if(K&&H.filepath.length>o){const P=H.filepath.length;ne=`${H.filepath.substring(0,20)}...${H.filepath.substring(P-20)} - Part ${parseInt(H.chunk_id)+1}`}else ne=`${H.filepath} - Part ${parseInt(H.chunk_id)+1}`;else H.filepath&&H.reindex_id?ne=`${H.filepath} - Part ${H.reindex_id}`:ne=`Citation ${U}`;return ne},F=async()=>{if(e.message_id==null)return;let H=u;u==Ne.Positive?H=Ne.Neutral:H=Ne.Positive,m==null||m.dispatch({type:"SET_FEEDBACK_STATE",payload:{answerId:e.message_id,feedback:H}}),c(H),await $h(e.message_id,H)},A=async()=>{if(e.message_id==null)return;let H=u;u===void 0||u===Ne.Neutral||u===Ne.Positive?(H=Ne.Negative,c(H),f(!0)):(H=Ne.Neutral,c(H),await $h(e.message_id,Ne.Neutral)),m==null||m.dispatch({type:"SET_FEEDBACK_STATE",payload:{answerId:e.message_id,feedback:H}})},S=(H,U)=>{var P;if(e.message_id==null)return;let K=(P=H==null?void 0:H.target)==null?void 0:P.id,ne=v.slice();U?ne.push(K):ne=ne.filter(W=>W!==K),y(ne)},D=async()=>{e.message_id!=null&&(await $h(e.message_id,v.join(",")),M())},M=()=>{f(!1),h(!1),y([])},I=()=>fe(ro,{children:[B("div",{children:"Why wasn't this response helpful?"}),fe(ge,{tokens:{childrenGap:4},children:[B(Ei,{label:"Citations are missing",id:Ne.MissingCitation,defaultChecked:v.includes(Ne.MissingCitation),onChange:S}),B(Ei,{label:"Citations are wrong",id:Ne.WrongCitation,defaultChecked:v.includes(Ne.WrongCitation),onChange:S}),B(Ei,{label:"The response is not from my data",id:Ne.OutOfScope,defaultChecked:v.includes(Ne.OutOfScope),onChange:S}),B(Ei,{label:"Inaccurate or irrelevant",id:Ne.InaccurateOrIrrelevant,defaultChecked:v.includes(Ne.InaccurateOrIrrelevant),onChange:S}),B(Ei,{label:"Other",id:Ne.OtherUnhelpful,defaultChecked:v.includes(Ne.OtherUnhelpful),onChange:S})]}),B("div",{onClick:()=>h(!0),style:{color:"#115EA3",cursor:"pointer"},children:"Report inappropriate content"})]}),L=()=>fe(ro,{children:[fe("div",{children:["The content is ",B("span",{style:{color:"red"},children:"*"})]}),fe(ge,{tokens:{childrenGap:4},children:[B(Ei,{label:"Hate speech, stereotyping, demeaning",id:Ne.HateSpeech,defaultChecked:v.includes(Ne.HateSpeech),onChange:S}),B(Ei,{label:"Violent: glorification of violence, self-harm",id:Ne.Violent,defaultChecked:v.includes(Ne.Violent),onChange:S}),B(Ei,{label:"Sexual: explicit content, grooming",id:Ne.Sexual,defaultChecked:v.includes(Ne.Sexual),onChange:S}),B(Ei,{label:"Manipulative: devious, emotional, pushy, bullying",defaultChecked:v.includes(Ne.Manipulative),id:Ne.Manipulative,onChange:S}),B(Ei,{label:"Other",id:Ne.OtherHarmful,defaultChecked:v.includes(Ne.OtherHarmful),onChange:S})]})]});return fe(ro,{children:[fe(ge,{className:Ti.answerContainer,tabIndex:0,children:[B(ge.Item,{children:fe(ge,{horizontal:!0,grow:!0,children:[B(ge.Item,{grow:!0,children:B(Df,{linkTarget:"_blank",remarkPlugins:[y8,NV],children:xS.sanitize(a.markdownFormatText,{ALLOWED_TAGS:NS}),className:Ti.answerText})}),B(ge.Item,{className:Ti.answerHeader,children:T&&e.message_id!==void 0&&fe(ge,{horizontal:!0,horizontalAlign:"space-between",children:[B($w,{"aria-hidden":"false","aria-label":"Like this response",onClick:()=>F(),style:u===Ne.Positive||(m==null?void 0:m.state.feedbackState[e.message_id])===Ne.Positive?{color:"darkgreen",cursor:"pointer"}:{color:"slategray",cursor:"pointer"}}),B(Kw,{"aria-hidden":"false","aria-label":"Dislike this response",onClick:()=>A(),style:u!==Ne.Positive&&u!==Ne.Neutral&&u!==void 0?{color:"darkred",cursor:"pointer"}:{color:"slategray",cursor:"pointer"}})]})})]})}),fe(ge,{horizontal:!0,className:Ti.answerFooter,children:[!!a.citations.length&&B(ge.Item,{onKeyDown:H=>H.key==="Enter"||H.key===" "?i():null,children:B(ge,{style:{width:"100%"},children:fe(ge,{horizontal:!0,horizontalAlign:"start",verticalAlign:"center",children:[B(Ho,{className:Ti.accordionTitle,onClick:i,"aria-label":"Open references",tabIndex:0,role:"button",children:B("span",{children:a.citations.length>1?a.citations.length+" references":"1 reference"})}),B(Ud,{className:Ti.accordionIcon,onClick:_,iconName:s?"ChevronDown":"ChevronRight"})]})})}),B(ge.Item,{className:Ti.answerDisclaimerContainer,children:B("span",{className:Ti.answerDisclaimer,children:"AI-generated content may be incorrect"})})]}),s&&B("div",{style:{marginTop:8,display:"flex",flexFlow:"wrap column",maxHeight:"150px",gap:"4px"},children:a.citations.map((H,U)=>fe("span",{title:C(H,++U),tabIndex:0,role:"link",onClick:()=>t(H),onKeyDown:K=>K.key==="Enter"||K.key===" "?t(H):null,className:Ti.citationContainer,"aria-label":C(H,U),children:[B("div",{className:Ti.citation,children:U}),C(H,U,!0)]},U))})]}),B(gl,{onDismiss:()=>{M(),c(Ne.Neutral)},hidden:!d,styles:{main:[{selectors:{["@media (min-width: 480px)"]:{maxWidth:"600px",background:"#FFFFFF",boxShadow:"0px 14px 28.8px rgba(0, 0, 0, 0.24), 0px 0px 8px rgba(0, 0, 0, 0.2)",borderRadius:"8px",maxHeight:"600px",minHeight:"100px"}}}]},dialogContentProps:{title:"Submit Feedback",showCloseButton:!0},children:fe(ge,{tokens:{childrenGap:4},children:[B("div",{children:"Your feedback will improve this experience."}),p?B(L,{}):B(I,{}),B("div",{children:"By pressing submit, your feedback will be visible to the application owner."}),B(v1,{disabled:v.length<1,onClick:D,children:"Submit"})]})})]})},DV="/assets/Send-d0601aaa.svg",wV="_questionInputContainer_pe9s7_1",RV="_questionInputTextArea_pe9s7_13",OV="_questionInputSendButtonContainer_pe9s7_22",MV="_questionInputSendButton_pe9s7_22",PV="_questionInputSendButtonDisabled_pe9s7_33",LV="_questionInputBottomBorder_pe9s7_41",BV="_questionInputOptionsButton_pe9s7_52",ps={questionInputContainer:wV,questionInputTextArea:RV,questionInputSendButtonContainer:OV,questionInputSendButton:MV,questionInputSendButtonDisabled:PV,questionInputBottomBorder:LV,questionInputOptionsButton:BV},HV=({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(ge,{horizontal:!0,className:ps.questionInputContainer,children:[B(yg,{className:ps.questionInputTextArea,placeholder:n,multiline:!0,resizable:!1,borderless:!0,value:o,onChange:u,onKeyDown:l}),B("div",{className:ps.questionInputSendButtonContainer,role:"button",tabIndex:0,"aria-label":"Ask question button",onClick:s,onKeyDown:d=>d.key==="Enter"||d.key===" "?s():null,children:c?B(Bw,{className:ps.questionInputSendButtonDisabled}):B("img",{src:DV,className:ps.questionInputSendButton})}),B("div",{className:ps.questionInputBottomBorder})]})},UV="_container_1qjpx_1",zV="_listContainer_1qjpx_7",GV="_itemCell_1qjpx_12",WV="_itemButton_1qjpx_29",KV="_chatGroup_1qjpx_46",jV="_spinnerContainer_1qjpx_51",$V="_chatList_1qjpx_58",VV="_chatMonth_1qjpx_62",YV="_chatTitle_1qjpx_69",Rr={container:UV,listContainer:zV,itemCell:GV,itemButton:WV,chatGroup:KV,spinnerContainer:jV,chatList:$V,chatMonth:VV,chatTitle:YV},qV=e=>{const n=new Date().getFullYear(),[r,i]=e.split(" ");return parseInt(i)===n?r:e},QV=({item:e,onSelect:t})=>{var U,K,ne;const[n,r]=E.useState(!1),[i,o]=E.useState(!1),[a,s]=E.useState(""),[l,{toggle:u}]=g1(!0),[c,d]=E.useState(!1),[f,p]=E.useState(!1),[h,v]=E.useState(void 0),[y,m]=E.useState(!1),T=E.useRef(null),_=E.useContext(ia),C=(e==null?void 0:e.id)===((U=_==null?void 0:_.state.currentChat)==null?void 0:U.id),F={type:xi.close,title:"Are you sure you want to delete this item?",closeButtonAriaLabel:"Close",subText:"The history of this chat session will permanently removed."},A={titleAriaId:"labelId",subtitleAriaId:"subTextId",isBlocking:!0,styles:{main:{maxWidth:450}}};if(!e)return null;E.useEffect(()=>{y&&T.current&&(T.current.focus(),m(!1))},[y]),E.useEffect(()=>{var P;((P=_==null?void 0:_.state.currentChat)==null?void 0:P.id)!==(e==null?void 0:e.id)&&(o(!1),s(""))},[(K=_==null?void 0:_.state.currentChat)==null?void 0:K.id,e==null?void 0:e.id]);const S=async()=>{(await eR(e.id)).ok?_==null||_.dispatch({type:"DELETE_CHAT_ENTRY",payload:e.id}):(d(!0),setTimeout(()=>{d(!1)},5e3)),u()},D=()=>{o(!0),m(!0),s(e==null?void 0:e.title)},M=()=>{t(e),_==null||_.dispatch({type:"UPDATE_CURRENT_CHAT",payload:e})},I=((ne=e==null?void 0:e.title)==null?void 0:ne.length)>28?`${e.title.substring(0,28)} ...`:e.title,L=async P=>{if(P.preventDefault(),h||f)return;if(a==e.title){v("Error: Enter a new title to proceed."),setTimeout(()=>{v(void 0),m(!0),T.current&&T.current.focus()},5e3);return}p(!0),(await rR(e.id,a)).ok?(p(!1),o(!1),_==null||_.dispatch({type:"UPDATE_CHAT_TITLE",payload:{...e,title:a}}),s("")):(v("Error: could not rename item"),setTimeout(()=>{m(!0),v(void 0),T.current&&T.current.focus()},5e3))},O=P=>{s(P.target.value)},X=()=>{o(!1),s("")},H=P=>{if(P.key==="Enter")return L(P);if(P.key==="Escape"){X();return}};return fe(ge,{tabIndex:0,"aria-label":"chat history item",className:Rr.itemCell,onClick:()=>M(),onKeyDown:P=>P.key==="Enter"||P.key===" "?M():null,verticalAlign:"center",onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),styles:{root:{backgroundColor:C?"#e6e6e6":"transparent"}},children:[i?B(ro,{children:B(ge.Item,{style:{width:"100%"},children:fe("form",{"aria-label":"edit title form",onSubmit:P=>L(P),style:{padding:"5px 0px"},children:[fe(ge,{horizontal:!0,verticalAlign:"start",children:[B(ge.Item,{children:B(yg,{componentRef:T,autoFocus:y,value:a,placeholder:e.title,onChange:O,onKeyDown:H,disabled:!!h})}),a&&B(ge.Item,{children:fe(ge,{"aria-label":"action button group",horizontal:!0,verticalAlign:"center",children:[B(wa,{role:"button",disabled:h!==void 0,onKeyDown:P=>P.key===" "||P.key==="Enter"?L(P):null,onClick:P=>L(P),"aria-label":"confirm new title",iconProps:{iconName:"CheckMark"},styles:{root:{color:"green",marginLeft:"5px"}}}),B(wa,{role:"button",disabled:h!==void 0,onKeyDown:P=>P.key===" "||P.key==="Enter"?X():null,onClick:()=>X(),"aria-label":"cancel edit title",iconProps:{iconName:"Cancel"},styles:{root:{color:"red",marginLeft:"5px"}}})]})})]}),h&&B(Ho,{role:"alert","aria-label":h,style:{fontSize:12,fontWeight:400,color:"rgb(164,38,44)"},children:h})]})})}):B(ro,{children:fe(ge,{horizontal:!0,verticalAlign:"center",style:{width:"100%"},children:[B("div",{className:Rr.chatTitle,children:I}),(C||n)&&fe(ge,{horizontal:!0,horizontalAlign:"end",children:[B(wa,{className:Rr.itemButton,iconProps:{iconName:"Delete"},title:"Delete",onClick:u,onKeyDown:P=>P.key===" "?u():null}),B(wa,{className:Rr.itemButton,iconProps:{iconName:"Edit"},title:"Edit",onClick:D,onKeyDown:P=>P.key===" "?D():null})]})]})}),c&&B(Ho,{styles:{root:{color:"red",marginTop:5,fontSize:14}},children:"Error: could not delete item"}),B(gl,{hidden:l,onDismiss:u,dialogContentProps:F,modalProps:A,children:fe(Cg,{children:[B(Q2,{onClick:S,text:"Delete"}),B(v1,{onClick:u,text:"Cancel"})]})})]},e.id)},XV=({groupedChatHistory:e})=>{const t=E.useContext(ia),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(QV,{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 dC(i).then(v=>{const y=h&&v&&h.concat(...v);return v?t==null||t.dispatch({type:"FETCH_CHAT_HISTORY",payload:y||v}):t==null||t.dispatch({type:"FETCH_CHAT_HISTORY",payload:null}),u(!1),v})};return E.useEffect(()=>{const h=new IntersectionObserver(v=>{v[0].isIntersecting&&s(y=>y+=1)},{threshold:1});return n.current&&h.observe(n.current),()=>{n.current&&h.unobserve(n.current)}},[n]),fe("div",{className:Rr.listContainer,"data-is-scrollable":!0,children:[e.map(h=>h.entries.length>0&&fe(ge,{horizontalAlign:"start",verticalAlign:"center",className:Rr.chatGroup,"aria-label":`chat history group: ${h.month}`,children:[B(ge,{"aria-label":h.month,className:Rr.chatMonth,children:qV(h.month)}),B(kN,{"aria-label":"chat history list",items:h.entries,onRenderCell:f,className:Rr.chatList}),B("div",{ref:n}),B(rC,{styles:{root:{width:"100%",position:"relative","::before":{backgroundColor:"#d6d6d6"}}}})]},h.month)),l&&B("div",{className:Rr.spinnerContainer,children:B(J2,{size:ii.small,"aria-label":"loading more chat history",className:Rr.spinner})})]})},ZV=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},JV=()=>{const e=E.useContext(ia),t=e==null?void 0:e.state.chatHistory;Dn.useEffect(()=>{},[e==null?void 0:e.state.chatHistory]);let n;if(t&&t.length>0)n=ZV(t);else return B(ge,{horizontal:!0,horizontalAlign:"center",verticalAlign:"center",style:{width:"100%",marginTop:10},children:B(Mo,{children:B(Ho,{style:{alignSelf:"center",fontWeight:"400",fontSize:14},children:B("span",{children:"No chat history."})})})});return B(XV,{groupedChatHistory:n})},u_={root:{padding:"0",display:"flex",justifyContent:"center",backgroundColor:"transparent"}},eY={root:{height:"50px"}};function tY(e){var T,_,C;const t=E.useContext(ia),[n,r]=Dn.useState(!1),[i,{toggle:o}]=g1(!0),[a,s]=Dn.useState(!1),[l,u]=Dn.useState(!1),c={type:xi.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=Dn.useCallback(F=>{F.preventDefault(),r(!0)},[]),v=Dn.useCallback(()=>r(!1),[]),y=async()=>{s(!0),(await tR()).ok?(t==null||t.dispatch({type:"DELETE_CHAT_HISTORY"}),o()):u(!0),s(!1)},m=()=>{o(),setTimeout(()=>{u(!1)},2e3)};return Dn.useEffect(()=>{},[t==null?void 0:t.state.chatHistory,l]),fe("section",{className:Rr.container,"data-is-scrollable":!0,"aria-label":"chat history panel",children:[fe(ge,{horizontal:!0,horizontalAlign:"space-between",verticalAlign:"center",wrap:!0,"aria-label":"chat history header",children:[B(Mo,{children:B(Ho,{role:"heading","aria-level":2,style:{alignSelf:"center",fontWeight:"600",fontSize:"18px",marginRight:"auto",paddingLeft:"20px"},children:"Chat history"})}),B(ge,{verticalAlign:"start",children:fe(ge,{horizontal:!0,styles:eY,children:[B(t1,{iconProps:{iconName:"More"},title:"Clear all chat history",onClick:h,"aria-label":"clear all chat history",styles:u_,role:"button",id:"moreButton"}),B(zd,{items:f,hidden:!n,target:"#moreButton",onItemClick:o,onDismiss:v}),B(t1,{iconProps:{iconName:"Cancel"},title:"Hide",onClick:p,"aria-label":"hide button",styles:u_,role:"button"})]})})]}),B(ge,{"aria-label":"chat history panel content",styles:{root:{display:"flex",flexGrow:1,flexDirection:"column",paddingTop:"2.5px",maxWidth:"100%"}},style:{display:"flex",flexGrow:1,flexDirection:"column",flexWrap:"wrap",padding:"1px"},children:fe(ge,{className:Rr.chatHistoryListContainer,children:[(t==null?void 0:t.state.chatHistoryLoadingState)===Nn.Success&&(t==null?void 0:t.state.isCosmosDBAvailable.cosmosDB)&&B(JV,{}),(t==null?void 0:t.state.chatHistoryLoadingState)===Nn.Fail&&(t==null?void 0:t.state.isCosmosDBAvailable)&&B(ro,{children:B(ge,{children:fe(ge,{horizontalAlign:"center",verticalAlign:"center",style:{width:"100%",marginTop:10},children:[B(Mo,{children:fe(Ho,{style:{alignSelf:"center",fontWeight:"400",fontSize:16},children:[((T=t==null?void 0:t.state.isCosmosDBAvailable)==null?void 0:T.status)&&B("span",{children:(_=t==null?void 0:t.state.isCosmosDBAvailable)==null?void 0:_.status}),!((C=t==null?void 0:t.state.isCosmosDBAvailable)!=null&&C.status)&&B("span",{children:"Error loading chat history"})]})}),B(Mo,{children:B(Ho,{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)===Nn.Loading&&B(ro,{children:B(ge,{children:fe(ge,{horizontal:!0,horizontalAlign:"center",verticalAlign:"center",style:{width:"100%",marginTop:10},children:[B(Mo,{style:{justifyContent:"center",alignItems:"center"},children:B(J2,{style:{alignSelf:"flex-start",height:"100%",marginRight:"5px"},size:ii.medium})}),B(Mo,{children:B(Ho,{style:{alignSelf:"center",fontWeight:"400",fontSize:14},children:B("span",{style:{whiteSpace:"pre-wrap"},children:"Loading chat history"})})})]})})})]})}),B(gl,{hidden:i,onDismiss:a?()=>{}:m,dialogContentProps:c,modalProps:d,children:fe(Cg,{children:[!l&&B(Q2,{onClick:y,disabled:a,text:"Clear All"}),B(v1,{onClick:m,disabled:a,text:l?"Close":"Cancel"})]})})]})}const nY=()=>{var St,_t,We,ct,Vt,sn,Yt;const e=E.useContext(ia),t=(St=e==null?void 0:e.state.frontendSettings)==null?void 0:St.auth_enabled,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([]),[y,m]=E.useState("Not Running"),[T,_]=E.useState(!1),[C,{toggle:F}]=g1(!0),[A,S]=E.useState(),D={type:xi.close,title:A==null?void 0:A.title,closeButtonAriaLabel:"Close",subText:A==null?void 0:A.subtitle},M={titleAriaId:"labelId",subtitleAriaId:"subTextId",isBlocking:!0,styles:{main:{maxWidth:450}}},[I,L,O]=["assistant","tool","error"];E.useEffect(()=>{var ie,Ee;if(((ie=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:ie.status)!==_n.Working&&((Ee=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:Ee.status)!==_n.NotConfigured&&(e==null?void 0:e.state.chatHistoryLoadingState)===Nn.Fail&&C){let le=`${e.state.isCosmosDBAvailable.status}. Please contact the site administrator.`;S({title:"Chat history is not enabled",subtitle:le}),F()}},[e==null?void 0:e.state.isCosmosDBAvailable]);const X=()=>{F(),setTimeout(()=>{S(null)},500)};E.useEffect(()=>{i((e==null?void 0:e.state.chatHistoryLoadingState)===Nn.Loading)},[e==null?void 0:e.state.chatHistoryLoadingState]);const H=async()=>{if(!t){p(!1);return}(await Xw()).length===0&&window.location.hostname!=="127.0.0.1"?p(!0):p(!1)};let U={},K={},ne="";const P=(ie,Ee,le)=>{ie.role===I&&(ne+=ie.content,U=ie,U.content=ne,ie.context&&(K={id:Yi(),role:L,content:ie.context,date:new Date().toISOString()})),ie.role===L&&(K=ie),le?ql(K)?v([...h,U]):v([...h,K,U]):ql(K)?v([...h,Ee,U]):v([...h,Ee,K,U])},W=async(ie,Ee)=>{var qt,Wn;i(!0),a(!0);const le=new AbortController;d.current.unshift(le);const $e={id:Yi(),role:"user",content:ie,date:new Date().toISOString()};let Ve;if(!Ee)Ve={id:Ee??Yi(),title:ie,messages:[$e],date:new Date().toISOString()};else if(Ve=(qt=e==null?void 0:e.state)==null?void 0:qt.currentChat,Ve)Ve.messages.push($e);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:Ve}),v(Ve.messages);const Ot={messages:[...Ve.messages.filter(At=>At.role!==O)]};let ve={};try{const At=await Qw(Ot,le.signal);if(At!=null&&At.body){const Qt=At.body.getReader();for(;;){m("Processing");const{done:z,value:Y}=await Qt.read();if(z)break;var yt=new TextDecoder("utf-8").decode(Y);yt.split(` +`).forEach(pe=>{var q;try{if(pe!==""&&pe!=="{}"){if(ve=JSON.parse(pe),((q=ve.choices)==null?void 0:q.length)>0)ve.choices[0].messages.forEach(Re=>{Re.id=ve.id,Re.date=new Date().toISOString()}),a(!1),ve.choices[0].messages.forEach(Re=>{P(Re,$e,Ee)});else if(ve.error)throw Error(ve.error)}}catch(Re){throw console.error(Re),Re}})}Ve.messages.push(K,U),e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Ve}),v([...h,K,U])}}catch{if(le.signal.aborted)v([...h,$e]);else{let Qt="An error occurred. Please try again. If the problem persists, please contact the site administrator.";(Wn=ve.error)!=null&&Wn.message?Qt=ve.error.message:typeof ve.error=="string"&&(Qt=ve.error);let z={id:Yi(),role:O,content:Qt,date:new Date().toISOString()};Ve.messages.push(z),e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:Ve}),v([...h,z])}}finally{i(!1),a(!1),d.current=d.current.filter(At=>At!==le),m("Done")}return le.abort()},V=async(ie,Ee)=>{var Wn,At,Qt,z,Y,se,pe,q,Re;i(!0),a(!0);const le=new AbortController;d.current.unshift(le);const $e={id:Yi(),role:"user",content:ie,date:new Date().toISOString()};let Ve,Ot;if(Ee)if(Ot=(At=(Wn=e==null?void 0:e.state)==null?void 0:Wn.chatHistory)==null?void 0:At.find(Oe=>Oe.id===Ee),Ot)Ot.messages.push($e),Ve={messages:[...Ot.messages.filter(Oe=>Oe.role!==O)]};else{console.error("Conversation not found."),i(!1),a(!1),d.current=d.current.filter(Oe=>Oe!==le);return}else Ve={messages:[$e].filter(Oe=>Oe.role!==O)},v(Ve.messages);let ve={};try{const Oe=Ee?await S5(Ve,le.signal,Ee):await S5(Ve,le.signal);if(!(Oe!=null&&Oe.ok)){const Ze=await Oe.json();var yt=Ze.error===void 0?"Please try again. If the problem persists, please contact the site administrator.":Ze.error;let ze={id:Yi(),role:O,content:`There was an error generating a response. Chat history can't be saved at this time. ${yt}`,date:new Date().toISOString()},ke;if(Ee){if(ke=(z=(Qt=e==null?void 0:e.state)==null?void 0:Qt.chatHistory)==null?void 0:z.find(Ce=>Ce.id===Ee),!ke){console.error("Conversation not found."),i(!1),a(!1),d.current=d.current.filter(Ce=>Ce!==le);return}ke.messages.push(ze)}else{v([...h,$e,ze]),i(!1),a(!1),d.current=d.current.filter(Ce=>Ce!==le);return}e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:ke}),v([...ke.messages]);return}if(Oe!=null&&Oe.body){const Ze=Oe.body.getReader();for(;;){m("Processing");const{done:ke,value:Ce}=await Ze.read();if(ke)break;var qt=new TextDecoder("utf-8").decode(Ce);qt.split(` +`).forEach(ye=>{var An;try{if(ye!==""&&ye!=="{}")ve=JSON.parse(ye),((An=ve.choices)==null?void 0:An.length)>0&&(ve.choices[0].messages.forEach(ar=>{ar.id=ve.id,ar.date=new Date().toISOString()}),a(!1),ve.choices[0].messages.forEach(ar=>{P(ar,$e,Ee)}));else if(ve.error)throw Error(ve.error)}catch(ar){throw console.error(ar),ar}})}let ze;if(Ee){if(ze=(se=(Y=e==null?void 0:e.state)==null?void 0:Y.chatHistory)==null?void 0:se.find(ke=>ke.id===Ee),!ze){console.error("Conversation not found."),i(!1),a(!1),d.current=d.current.filter(ke=>ke!==le);return}ql(K)?ze.messages.push(U):ze.messages.push(K,U)}else ze={id:ve.history_metadata.conversation_id,title:ve.history_metadata.title,messages:[$e],date:ve.history_metadata.date},ql(K)?ze.messages.push(U):ze.messages.push(K,U);if(!ze){i(!1),a(!1),d.current=d.current.filter(ke=>ke!==le);return}e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:ze}),ql(K)?v([...h,U]):v([...h,K,U])}}catch{if(le.signal.aborted)v([...h,$e]);else{let Ze=`An error occurred. ${yt}`;(pe=ve.error)!=null&&pe.message?Ze=ve.error.message:typeof ve.error=="string"&&(Ze=ve.error);let ze={id:Yi(),role:O,content:Ze,date:new Date().toISOString()},ke;if(Ee){if(ke=(Re=(q=e==null?void 0:e.state)==null?void 0:q.chatHistory)==null?void 0:Re.find(Ce=>Ce.id===Ee),!ke){console.error("Conversation not found."),i(!1),a(!1),d.current=d.current.filter(Ce=>Ce!==le);return}ke.messages.push(ze)}else{if(!ve.history_metadata){console.error("Error retrieving data.",ve),console.log("errorMessage",Ze);let Ce={id:Yi(),role:O,content:Ze,date:new Date().toISOString()};v([...h,$e,Ce]),i(!1),a(!1),d.current=d.current.filter(or=>or!==le);return}ke={id:ve.history_metadata.conversation_id,title:ve.history_metadata.title,messages:[$e],date:ve.history_metadata.date},ke.messages.push(ze)}if(!ke){i(!1),a(!1),d.current=d.current.filter(Ce=>Ce!==le);return}e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:ke}),v([...h,ze])}}finally{i(!1),a(!1),d.current=d.current.filter(Oe=>Oe!==le),m("Done")}return le.abort()},b=async()=>{var ie;_(!0),(ie=e==null?void 0:e.state.currentChat)!=null&&ie.id&&(e!=null&&e.state.isCosmosDBAvailable.cosmosDB)&&((await nR(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([])):(S({title:"Error clearing current chat",subtitle:"Please try again. If the problem persists, please contact the site administrator."}),F())),_(!1)},k=()=>{m("Processing"),v([]),c(!1),l(void 0),e==null||e.dispatch({type:"UPDATE_CURRENT_CHAT",payload:null}),m("Done")},me=()=>{d.current.forEach(ie=>ie.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 Ee;const ie=async(le,$e)=>await Jw(le,$e);if(e&&e.state.currentChat&&y==="Done"){if(e.state.isCosmosDBAvailable.cosmosDB){if(!((Ee=e==null?void 0:e.state.currentChat)!=null&&Ee.messages)){console.error("Failure fetching current chat state.");return}ie(e.state.currentChat.messages,e.state.currentChat.id).then(le=>{var $e,Ve;if(!le.ok){let Ot="An error occurred. Answers can't be saved at this time. If the problem persists, please contact the site administrator.",ve={id:Yi(),role:O,content:Ot,date:new Date().toISOString()};if(!(($e=e==null?void 0:e.state.currentChat)!=null&&$e.messages))throw{...new Error,message:"Failure fetching current chat state."};v([...(Ve=e==null?void 0:e.state.currentChat)==null?void 0:Ve.messages,ve])}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),m("Not Running")}},[y]),E.useEffect(()=>{t!==void 0&&H()},[t]),E.useLayoutEffect(()=>{var ie;(ie=n.current)==null||ie.scrollIntoView({behavior:"smooth"})},[o,y]);const we=ie=>{l(ie),c(!0)},ut=ie=>{ie.url&&!ie.url.includes("blob.core")&&window.open(ie.url,"_blank")},Se=ie=>{if(ie!=null&&ie.role&&(ie==null?void 0:ie.role)==="tool")try{return JSON.parse(ie.content).citations}catch{return[]}return[]},Ue=()=>r||h&&h.length===0||T||(e==null?void 0:e.state.chatHistoryLoadingState)===Nn.Loading;return B("div",{className:Be.container,role:"main",children:f?fe(ge,{className:Be.chatEmptyState,children:[B(Uw,{className:Be.chatIcon,style:{color:"darkorange",height:"200px",width:"200px"}}),B("h1",{className:Be.chatEmptyStateTitle,children:"Authentication Not Configured"}),fe("h2",{className:Be.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:Be.chatEmptyStateSubtitle,style:{fontSize:"20px"},children:B("strong",{children:"Authentication configuration takes a few minutes to apply. "})}),B("h2",{className:Be.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(ge,{horizontal:!0,className:Be.chatRoot,children:[fe("div",{className:Be.chatContainer,children:[!h||h.length<1?fe(ge,{className:Be.chatEmptyState,children:[B("img",{src:lC,className:Be.chatIcon,"aria-hidden":"true"}),B("h1",{className:Be.chatEmptyStateTitle,children:"Start chatting"}),B("h2",{className:Be.chatEmptyStateSubtitle,children:"This chatbot is configured to answer your questions"})]}):fe("div",{className:Be.chatMessageStream,style:{marginBottom:r?"40px":"0px"},role:"log",children:[h.map((ie,Ee)=>B(ro,{children:ie.role==="user"?B("div",{className:Be.chatMessageUser,tabIndex:0,children:B("div",{className:Be.chatMessageUserMessage,children:ie.content})}):ie.role==="assistant"?B("div",{className:Be.chatMessageGpt,children:B(l_,{answer:{answer:ie.content,citations:Se(h[Ee-1]),message_id:ie.id,feedback:ie.feedback},onCitationClicked:le=>we(le)})}):ie.role===O?fe("div",{className:Be.chatMessageError,children:[fe(ge,{horizontal:!0,className:Be.chatMessageErrorContent,children:[B(Pw,{className:Be.errorIcon,style:{color:"rgba(182, 52, 67, 1)"}}),B("span",{children:"Error"})]}),B("span",{className:Be.chatMessageErrorContent,children:ie.content})]}):null})),o&&B(ro,{children:B("div",{className:Be.chatMessageGpt,children:B(l_,{answer:{answer:"Generating answer...",citations:[]},onCitationClicked:()=>null})})}),B("div",{ref:n})]}),fe(ge,{horizontal:!0,className:Be.chatInput,children:[r&&fe(ge,{horizontal:!0,className:Be.stopGeneratingContainer,role:"button","aria-label":"Stop generating",tabIndex:0,onClick:me,onKeyDown:ie=>ie.key==="Enter"||ie.key===" "?me():null,children:[B(Gw,{className:Be.stopGeneratingIcon,"aria-hidden":"true"}),B("span",{className:Be.stopGeneratingText,"aria-hidden":"true",children:"Stop generating"})]}),fe(ge,{children:[((_t=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:_t.status)!==_n.NotConfigured&&B(t1,{role:"button",styles:{icon:{color:"#FFFFFF"},iconDisabled:{color:"#BDBDBD !important"},root:{color:"#FFFFFF",background:"radial-gradient(109.81% 107.82% at 100.1% 90.19%, #0F6CBD 33.63%, #2D87C3 70.31%, #8DDDD8 100%)"},rootDisabled:{background:"#F0F0F0"}},className:Be.newChatIcon,iconProps:{iconName:"Add"},onClick:k,disabled:Ue(),"aria-label":"start a new chat button"}),B(t1,{role:"button",styles:{icon:{color:"#FFFFFF"},iconDisabled:{color:"#BDBDBD !important"},root:{color:"#FFFFFF",background:"radial-gradient(109.81% 107.82% at 100.1% 90.19%, #0F6CBD 33.63%, #2D87C3 70.31%, #8DDDD8 100%)"},rootDisabled:{background:"#F0F0F0"}},className:((We=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:We.status)!==_n.NotConfigured?Be.clearChatBroom:Be.clearChatBroomNoCosmos,iconProps:{iconName:"Broom"},onClick:((ct=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:ct.status)!==_n.NotConfigured?b:k,disabled:Ue(),"aria-label":"clear chat button"}),B(gl,{hidden:C,onDismiss:X,dialogContentProps:D,modalProps:M})]}),B(HV,{clearOnSend:!0,placeholder:"Type a new question...",disabled:r,onSend:(ie,Ee)=>{var le;(le=e==null?void 0:e.state.isCosmosDBAvailable)!=null&&le.cosmosDB?V(ie,Ee):W(ie,Ee)},conversationId:(Vt=e==null?void 0:e.state.currentChat)!=null&&Vt.id?(sn=e==null?void 0:e.state.currentChat)==null?void 0:sn.id:void 0})]})]}),h&&h.length>0&&u&&s&&fe(ge.Item,{className:Be.citationPanel,tabIndex:0,role:"tabpanel","aria-label":"Citations Panel",children:[fe(ge,{"aria-label":"Citations Panel Header Container",horizontal:!0,className:Be.citationPanelHeaderContainer,horizontalAlign:"space-between",verticalAlign:"center",children:[B("span",{"aria-label":"Citations",className:Be.citationPanelHeader,children:"Citations"}),B(wa,{iconProps:{iconName:"Cancel"},"aria-label":"Close citations panel",onClick:()=>c(!1)})]}),B("h5",{className:Be.citationPanelTitle,tabIndex:0,title:s.url&&!s.url.includes("blob.core")?s.url:s.title??"",onClick:()=>ut(s),children:s.title}),B("div",{tabIndex:0,children:B(Df,{linkTarget:"_blank",className:Be.citationPanelContent,children:xS.sanitize(s.content,{ALLOWED_TAGS:NS}),remarkPlugins:[y8],rehypePlugins:[AG]})})]}),(e==null?void 0:e.state.isChatHistoryOpen)&&((Yt=e==null?void 0:e.state.isCosmosDBAvailable)==null?void 0:Yt.status)!==_n.NotConfigured&&B(tY,{})]})})};ND();function rY(){return B(sR,{children:B(f7,{children:B(s7,{children:fe(Wc,{path:"/",element:B(lR,{}),children:[B(Wc,{index:!0,element:B(nY,{})}),B(Wc,{path:"*",element:B(uR,{})})]})})})})}Nm.createRoot(document.getElementById("root")).render(B(Dn.StrictMode,{children:B(rY,{})}))});export default iY(); +//# sourceMappingURL=index-f7facd89.js.map diff --git a/static/assets/index-81f496aa.js.map b/static/assets/index-f7facd89.js.map similarity index 82% rename from static/assets/index-81f496aa.js.map rename to static/assets/index-f7facd89.js.map index ee78961784..64c7137c7e 100644 --- a/static/assets/index-81f496aa.js.map +++ b/static/assets/index-f7facd89.js.map @@ -1 +1 @@ -{"version":3,"file":"index-81f496aa.js","sources":["../../frontend/node_modules/react/cjs/react.production.min.js","../../frontend/node_modules/react/index.js","../../frontend/node_modules/react/cjs/react-jsx-runtime.production.min.js","../../frontend/node_modules/react/jsx-runtime.js","../../frontend/node_modules/scheduler/cjs/scheduler.production.min.js","../../frontend/node_modules/scheduler/index.js","../../frontend/node_modules/react-dom/cjs/react-dom.production.min.js","../../frontend/node_modules/react-dom/index.js","../../frontend/node_modules/react-dom/client.js","../../frontend/node_modules/@remix-run/router/dist/router.js","../../frontend/node_modules/react-router/dist/index.js","../../frontend/node_modules/react-router-dom/dist/index.js","../../frontend/node_modules/@fluentui/set-version/lib/setVersion.js","../../frontend/node_modules/@fluentui/set-version/lib/index.js","../../frontend/node_modules/tslib/tslib.es6.js","../../frontend/node_modules/@fluentui/merge-styles/lib/Stylesheet.js","../../frontend/node_modules/@fluentui/merge-styles/lib/extractStyleParts.js","../../frontend/node_modules/@fluentui/merge-styles/lib/StyleOptionsState.js","../../frontend/node_modules/@fluentui/merge-styles/lib/transforms/kebabRules.js","../../frontend/node_modules/@fluentui/merge-styles/lib/getVendorSettings.js","../../frontend/node_modules/@fluentui/merge-styles/lib/transforms/prefixRules.js","../../frontend/node_modules/@fluentui/merge-styles/lib/transforms/provideUnits.js","../../frontend/node_modules/@fluentui/merge-styles/lib/transforms/rtlifyRules.js","../../frontend/node_modules/@fluentui/merge-styles/lib/tokenizeWithParentheses.js","../../frontend/node_modules/@fluentui/merge-styles/lib/styleToClassName.js","../../frontend/node_modules/@fluentui/merge-styles/lib/mergeStyles.js","../../frontend/node_modules/@fluentui/merge-styles/lib/concatStyleSets.js","../../frontend/node_modules/@fluentui/merge-styles/lib/mergeStyleSets.js","../../frontend/node_modules/@fluentui/merge-styles/lib/concatStyleSetsWithProps.js","../../frontend/node_modules/@fluentui/merge-styles/lib/fontFace.js","../../frontend/node_modules/@fluentui/merge-styles/lib/keyframes.js","../../frontend/node_modules/@fluentui/style-utilities/lib/utilities/buildClassMap.js","../../frontend/node_modules/@fluentui/utilities/lib/dom/canUseDOM.js","../../frontend/node_modules/@fluentui/utilities/lib/dom/getWindow.js","../../frontend/node_modules/@fluentui/utilities/lib/Async.js","../../frontend/node_modules/@fluentui/utilities/lib/object.js","../../frontend/node_modules/@fluentui/utilities/lib/EventGroup.js","../../frontend/node_modules/@fluentui/utilities/lib/dom/getDocument.js","../../frontend/node_modules/@fluentui/utilities/lib/scroll.js","../../frontend/node_modules/@fluentui/utilities/lib/warn/warn.js","../../frontend/node_modules/@fluentui/utilities/lib/warn/warnConditionallyRequiredProps.js","../../frontend/node_modules/@fluentui/utilities/lib/BaseComponent.js","../../frontend/node_modules/@fluentui/utilities/lib/DelayedRender.js","../../frontend/node_modules/@fluentui/utilities/lib/GlobalSettings.js","../../frontend/node_modules/@fluentui/utilities/lib/KeyCodes.js","../../frontend/node_modules/@fluentui/utilities/lib/Rectangle.js","../../frontend/node_modules/@fluentui/utilities/lib/appendFunction.js","../../frontend/node_modules/@fluentui/utilities/lib/aria.js","../../frontend/node_modules/@fluentui/utilities/lib/array.js","../../frontend/node_modules/@fluentui/utilities/lib/sessionStorage.js","../../frontend/node_modules/@fluentui/utilities/lib/rtl.js","../../frontend/node_modules/@fluentui/dom-utilities/lib/isVirtualElement.js","../../frontend/node_modules/@fluentui/dom-utilities/lib/getVirtualParent.js","../../frontend/node_modules/@fluentui/dom-utilities/lib/getParent.js","../../frontend/node_modules/@fluentui/dom-utilities/lib/elementContains.js","../../frontend/node_modules/@fluentui/dom-utilities/lib/findElementRecursive.js","../../frontend/node_modules/@fluentui/dom-utilities/lib/elementContainsAttribute.js","../../frontend/node_modules/@fluentui/dom-utilities/lib/setPortalAttribute.js","../../frontend/node_modules/@fluentui/dom-utilities/lib/portalContainsElement.js","../../frontend/node_modules/@fluentui/dom-utilities/lib/setVirtualParent.js","../../frontend/node_modules/@fluentui/utilities/lib/focus.js","../../frontend/node_modules/@fluentui/utilities/lib/dom/on.js","../../frontend/node_modules/@fluentui/utilities/lib/classNamesFunction.js","../../frontend/node_modules/@fluentui/utilities/lib/memoize.js","../../frontend/node_modules/@fluentui/utilities/lib/componentAs/composeComponentAs.js","../../frontend/node_modules/@fluentui/utilities/lib/controlled.js","../../frontend/node_modules/@fluentui/utilities/lib/css.js","../../frontend/node_modules/@fluentui/utilities/lib/customizations/Customizations.js","../../frontend/node_modules/@fluentui/utilities/lib/customizations/CustomizerContext.js","../../frontend/node_modules/@fluentui/utilities/lib/customizations/mergeSettings.js","../../frontend/node_modules/@fluentui/utilities/lib/customizations/mergeCustomizations.js","../../frontend/node_modules/@fluentui/utilities/lib/customizations/Customizer.js","../../frontend/node_modules/@fluentui/utilities/lib/hoistStatics.js","../../frontend/node_modules/@fluentui/utilities/lib/customizations/customizable.js","../../frontend/node_modules/@fluentui/utilities/lib/customizations/useCustomizationSettings.js","../../frontend/node_modules/@fluentui/utilities/lib/extendComponent.js","../../frontend/node_modules/@fluentui/utilities/lib/getId.js","../../frontend/node_modules/@fluentui/utilities/lib/properties.js","../../frontend/node_modules/@fluentui/utilities/lib/hoist.js","../../frontend/node_modules/@fluentui/utilities/lib/initializeComponentRef.js","../../frontend/node_modules/@fluentui/utilities/lib/keyboard.js","../../frontend/node_modules/@fluentui/utilities/lib/setFocusVisibility.js","../../frontend/node_modules/@fluentui/utilities/lib/useFocusRects.js","../../frontend/node_modules/@fluentui/utilities/lib/FocusRectsProvider.js","../../frontend/node_modules/@fluentui/utilities/lib/localStorage.js","../../frontend/node_modules/@fluentui/utilities/lib/language.js","../../frontend/node_modules/@fluentui/utilities/lib/merge.js","../../frontend/node_modules/@fluentui/utilities/lib/mobileDetector.js","../../frontend/node_modules/@fluentui/utilities/lib/modalize.js","../../frontend/node_modules/@fluentui/utilities/lib/osDetector.js","../../frontend/node_modules/@fluentui/utilities/lib/renderFunction/composeRenderFunction.js","../../frontend/node_modules/@fluentui/utilities/lib/styled.js","../../frontend/node_modules/@fluentui/utilities/lib/ie11Detector.js","../../frontend/node_modules/@fluentui/utilities/lib/getPropsWithDefaults.js","../../frontend/node_modules/@fluentui/utilities/lib/createMergedRef.js","../../frontend/node_modules/@fluentui/utilities/lib/useIsomorphicLayoutEffect.js","../../frontend/node_modules/@fluentui/style-utilities/lib/utilities/icons.js","../../frontend/node_modules/@fluentui/theme/lib/utilities/makeSemanticColors.js","../../frontend/node_modules/@fluentui/theme/lib/mergeThemes.js","../../frontend/node_modules/@fluentui/theme/lib/colors/DefaultPalette.js","../../frontend/node_modules/@fluentui/theme/lib/effects/FluentDepths.js","../../frontend/node_modules/@fluentui/theme/lib/effects/DefaultEffects.js","../../frontend/node_modules/@fluentui/theme/lib/spacing/DefaultSpacing.js","../../frontend/node_modules/@fluentui/theme/lib/motion/AnimationStyles.js","../../frontend/node_modules/@fluentui/theme/lib/fonts/FluentFonts.js","../../frontend/node_modules/@fluentui/theme/lib/fonts/createFontStyles.js","../../frontend/node_modules/@fluentui/theme/lib/fonts/DefaultFontStyles.js","../../frontend/node_modules/@fluentui/theme/lib/createTheme.js","../../frontend/node_modules/@fluentui/style-utilities/lib/styles/CommonStyles.js","../../frontend/node_modules/@fluentui/style-utilities/lib/styles/zIndexes.js","../../frontend/node_modules/@fluentui/style-utilities/lib/styles/getFocusStyle.js","../../frontend/node_modules/@fluentui/style-utilities/lib/styles/hiddenContentStyle.js","../../frontend/node_modules/@fluentui/style-utilities/lib/styles/getGlobalClassNames.js","../../frontend/node_modules/@microsoft/load-themed-styles/lib-es6/index.js","../../frontend/node_modules/@fluentui/style-utilities/lib/styles/theme.js","../../frontend/node_modules/@fluentui/style-utilities/lib/styles/GeneralStyles.js","../../frontend/node_modules/@fluentui/style-utilities/lib/styles/getPlaceholderStyles.js","../../frontend/node_modules/@fluentui/style-utilities/lib/classNames/AnimationClassNames.js","../../frontend/node_modules/@fluentui/style-utilities/lib/version.js","../../frontend/node_modules/@fluentui/style-utilities/lib/index.js","../../frontend/node_modules/@fluentui/react/lib/common/DirectionalHint.js","../../frontend/node_modules/@fluentui/react/lib/utilities/positioning/positioning.types.js","../../frontend/node_modules/@fluentui/react/lib/utilities/positioning/positioning.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useAsync.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useConst.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useBoolean.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useControllableValue.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useEventCallback.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useId.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useMergedRefs.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useOnEvent.js","../../frontend/node_modules/@fluentui/react-hooks/lib/usePrevious.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useSetTimeout.js","../../frontend/node_modules/@fluentui/react-window-provider/lib/WindowProvider.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useTarget.js","../../frontend/node_modules/@fluentui/react-hooks/lib/useUnmount.js","../../frontend/node_modules/@fluentui/react/lib/components/Popup/Popup.js","../../frontend/node_modules/@fluentui/react/lib/components/Callout/CalloutContent.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Callout/CalloutContent.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Callout/CalloutContent.js","../../frontend/node_modules/@fluentui/react-portal-compat-context/lib/PortalCompatContext.js","../../frontend/node_modules/@fluentui/react/lib/components/Fabric/Fabric.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Fabric/Fabric.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Fabric/Fabric.js","../../frontend/node_modules/@fluentui/react/lib/components/Layer/Layer.notification.js","../../frontend/node_modules/@fluentui/react/lib/components/Layer/Layer.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Layer/Layer.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Layer/Layer.js","../../frontend/node_modules/@fluentui/react/lib/components/Callout/Callout.js","../../frontend/node_modules/@fluentui/react/lib/components/FocusTrapZone/FocusTrapZone.js","../../frontend/node_modules/@fluentui/react/lib/components/Icon/Icon.types.js","../../frontend/node_modules/@fluentui/react/lib/components/Image/Image.types.js","../../frontend/node_modules/@fluentui/react/lib/components/Image/Image.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Image/Image.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Image/Image.js","../../frontend/node_modules/@fluentui/react/lib/components/Icon/Icon.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Icon/FontIcon.js","../../frontend/node_modules/@fluentui/react/lib/components/Icon/Icon.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Icon/Icon.js","../../frontend/node_modules/@fluentui/react/lib/components/Icon/ImageIcon.js","../../frontend/node_modules/@fluentui/react-focus/lib/components/FocusZone/FocusZone.types.js","../../frontend/node_modules/@fluentui/react-focus/lib/components/FocusZone/FocusZone.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.types.js","../../frontend/node_modules/@fluentui/react/lib/utilities/contextualMenu/contextualMenuUtility.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItem.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Divider/VerticalDivider.classNames.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.cnstyles.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.classNames.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItem.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuItemWrapper.js","../../frontend/node_modules/@fluentui/react/lib/utilities/keytips/KeytipConstants.js","../../frontend/node_modules/@fluentui/react/lib/utilities/keytips/KeytipManager.js","../../frontend/node_modules/@fluentui/react/lib/utilities/keytips/KeytipUtils.js","../../frontend/node_modules/@fluentui/react/lib/components/KeytipData/useKeytipData.js","../../frontend/node_modules/@fluentui/react/lib/components/KeytipData/KeytipData.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuAnchor.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuButton.js","../../frontend/node_modules/@fluentui/react/lib/components/Divider/VerticalDivider.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Divider/VerticalDivider.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Divider/VerticalDivider.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuSplitButton.js","../../frontend/node_modules/@fluentui/react/lib/utilities/decorators/BaseDecorator.js","../../frontend/node_modules/@fluentui/react/lib/utilities/decorators/withResponsiveMode.js","../../frontend/node_modules/@fluentui/react/lib/utilities/hooks/useResponsiveMode.js","../../frontend/node_modules/@fluentui/react/lib/utilities/MenuContext/MenuContext.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.base.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/BaseButton.classNames.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/SplitButton/SplitButton.classNames.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/BaseButton.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/BaseButton.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/SplitButton/SplitButton.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/ButtonThemes.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/DefaultButton/DefaultButton.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/DefaultButton/DefaultButton.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/IconButton/IconButton.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/IconButton/IconButton.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/PrimaryButton/PrimaryButton.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/CommandBarButton/CommandBarButton.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Button/CommandBarButton/CommandBarButton.js","../../frontend/node_modules/@fluentui/react/lib/components/Checkbox/Checkbox.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Checkbox/Checkbox.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Checkbox/Checkbox.js","../../frontend/node_modules/@fluentui/react/lib/components/Label/Label.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Label/Label.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Label/Label.js","../../frontend/node_modules/@fluentui/react/lib/components/TextField/TextField.base.js","../../frontend/node_modules/@fluentui/react/lib/components/TextField/TextField.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/TextField/TextField.js","../../frontend/node_modules/@fluentui/react/lib/components/List/List.types.js","../../frontend/node_modules/@fluentui/react/lib/components/List/utils/scroll.js","../../frontend/node_modules/@fluentui/react/lib/components/List/List.js","../../frontend/node_modules/@fluentui/react/lib/components/Spinner/Spinner.types.js","../../frontend/node_modules/@fluentui/react/lib/components/Spinner/Spinner.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Spinner/Spinner.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Spinner/Spinner.js","../../frontend/node_modules/@fluentui/react/lib/components/Dialog/DialogContent.types.js","../../frontend/node_modules/@fluentui/react/lib/components/Modal/Modal.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Overlay/Overlay.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Overlay/Overlay.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Overlay/Overlay.js","../../frontend/node_modules/@fluentui/react/lib/utilities/DraggableZone/DraggableZone.styles.js","../../frontend/node_modules/@fluentui/react/lib/utilities/DraggableZone/DraggableZone.js","../../frontend/node_modules/@fluentui/react/lib/components/Modal/Modal.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Modal/Modal.js","../../frontend/node_modules/@fluentui/react/lib/components/Dialog/DialogFooter.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Dialog/DialogFooter.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Dialog/DialogFooter.js","../../frontend/node_modules/@fluentui/react/lib/components/Dialog/DialogContent.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Dialog/DialogContent.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Dialog/DialogContent.js","../../frontend/node_modules/@fluentui/react/lib/components/Dialog/Dialog.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Dialog/Dialog.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Dialog/Dialog.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-0.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-1.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-2.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-3.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-4.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-5.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-6.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-7.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-8.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-9.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-10.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-11.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-12.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-13.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-14.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-15.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-16.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/fabric-icons-17.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/iconAliases.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/version.js","../../frontend/node_modules/@fluentui/font-icons-mdl2/lib/index.js","../../frontend/node_modules/@fluentui/react/lib/components/Separator/Separator.base.js","../../frontend/node_modules/@fluentui/react/lib/components/Separator/Separator.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Separator/Separator.js","../../frontend/node_modules/@fluentui/foundation-legacy/lib/utilities.js","../../frontend/node_modules/@fluentui/foundation-legacy/lib/slots.js","../../frontend/node_modules/@fluentui/foundation-legacy/lib/createComponent.js","../../frontend/node_modules/@fluentui/react/lib/components/Stack/StackItem/StackItem.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Stack/StackItem/StackItem.js","../../frontend/node_modules/@fluentui/react/lib/components/Stack/StackUtils.js","../../frontend/node_modules/@fluentui/react/lib/components/Stack/Stack.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Stack/Stack.js","../../frontend/node_modules/@fluentui/react/lib/components/Text/Text.view.js","../../frontend/node_modules/@fluentui/react/lib/components/Text/Text.styles.js","../../frontend/node_modules/@fluentui/react/lib/components/Text/Text.js","../../frontend/src/assets/Contoso.svg","../../frontend/node_modules/@griffel/core/constants.esm.js","../../frontend/node_modules/@emotion/hash/dist/emotion-hash.esm.js","../../frontend/node_modules/@griffel/core/runtime/utils/hashSequence.esm.js","../../frontend/node_modules/@griffel/core/runtime/reduceToClassNameForSlots.esm.js","../../frontend/node_modules/@griffel/core/mergeClasses.esm.js","../../frontend/node_modules/@griffel/core/runtime/utils/normalizeCSSBucketEntry.esm.js","../../frontend/node_modules/@griffel/core/renderer/createIsomorphicStyleSheet.esm.js","../../frontend/node_modules/@griffel/core/renderer/getStyleSheetForBucket.esm.js","../../frontend/node_modules/@griffel/core/renderer/createDOMRenderer.esm.js","../../frontend/node_modules/@griffel/core/__styles.esm.js","../../frontend/node_modules/@griffel/react/RendererContext.esm.js","../../frontend/node_modules/@griffel/react/TextDirectionContext.esm.js","../../frontend/node_modules/@griffel/react/__styles.esm.js","../../frontend/node_modules/@fluentui/react-icons/lib/utils/useIconState.js","../../frontend/node_modules/@fluentui/react-icons/lib/utils/wrapIcon.js","../../frontend/node_modules/@fluentui/react-icons/lib/icons/chunk-2.js","../../frontend/node_modules/@fluentui/react-icons/lib/icons/chunk-3.js","../../frontend/node_modules/@fluentui/react-icons/lib/icons/chunk-6.js","../../frontend/node_modules/@fluentui/react-icons/lib/sizedIcons/chunk-24.js","../../frontend/src/components/common/Button.tsx","../../frontend/src/state/AppReducer.tsx","../../frontend/src/api/models.ts","../../frontend/src/api/api.ts","../../frontend/src/state/AppProvider.tsx","../../frontend/src/pages/layout/Layout.tsx","../../frontend/src/pages/NoPage.tsx","../../frontend/node_modules/react-markdown/lib/uri-transformer.js","../../frontend/node_modules/is-buffer/index.js","../../frontend/node_modules/unist-util-stringify-position/lib/index.js","../../frontend/node_modules/vfile-message/lib/index.js","../../frontend/node_modules/vfile/lib/minpath.browser.js","../../frontend/node_modules/vfile/lib/minproc.browser.js","../../frontend/node_modules/vfile/lib/minurl.shared.js","../../frontend/node_modules/vfile/lib/minurl.browser.js","../../frontend/node_modules/vfile/lib/index.js","../../frontend/node_modules/bail/index.js","../../frontend/node_modules/extend/index.js","../../frontend/node_modules/is-plain-obj/index.js","../../frontend/node_modules/trough/index.js","../../frontend/node_modules/unified/lib/index.js","../../frontend/node_modules/mdast-util-to-string/lib/index.js","../../frontend/node_modules/micromark-util-chunked/index.js","../../frontend/node_modules/micromark-util-combine-extensions/index.js","../../frontend/node_modules/micromark-util-character/lib/unicode-punctuation-regex.js","../../frontend/node_modules/micromark-util-character/index.js","../../frontend/node_modules/micromark-factory-space/index.js","../../frontend/node_modules/micromark/lib/initialize/content.js","../../frontend/node_modules/micromark/lib/initialize/document.js","../../frontend/node_modules/micromark-util-classify-character/index.js","../../frontend/node_modules/micromark-util-resolve-all/index.js","../../frontend/node_modules/micromark-core-commonmark/lib/attention.js","../../frontend/node_modules/micromark-core-commonmark/lib/autolink.js","../../frontend/node_modules/micromark-core-commonmark/lib/blank-line.js","../../frontend/node_modules/micromark-core-commonmark/lib/block-quote.js","../../frontend/node_modules/micromark-core-commonmark/lib/character-escape.js","../../frontend/node_modules/decode-named-character-reference/index.dom.js","../../frontend/node_modules/micromark-core-commonmark/lib/character-reference.js","../../frontend/node_modules/micromark-core-commonmark/lib/code-fenced.js","../../frontend/node_modules/micromark-core-commonmark/lib/code-indented.js","../../frontend/node_modules/micromark-core-commonmark/lib/code-text.js","../../frontend/node_modules/micromark-util-subtokenize/index.js","../../frontend/node_modules/micromark-core-commonmark/lib/content.js","../../frontend/node_modules/micromark-factory-destination/index.js","../../frontend/node_modules/micromark-factory-label/index.js","../../frontend/node_modules/micromark-factory-title/index.js","../../frontend/node_modules/micromark-factory-whitespace/index.js","../../frontend/node_modules/micromark-util-normalize-identifier/index.js","../../frontend/node_modules/micromark-core-commonmark/lib/definition.js","../../frontend/node_modules/micromark-core-commonmark/lib/hard-break-escape.js","../../frontend/node_modules/micromark-core-commonmark/lib/heading-atx.js","../../frontend/node_modules/micromark-util-html-tag-name/index.js","../../frontend/node_modules/micromark-core-commonmark/lib/html-flow.js","../../frontend/node_modules/micromark-core-commonmark/lib/html-text.js","../../frontend/node_modules/micromark-core-commonmark/lib/label-end.js","../../frontend/node_modules/micromark-core-commonmark/lib/label-start-image.js","../../frontend/node_modules/micromark-core-commonmark/lib/label-start-link.js","../../frontend/node_modules/micromark-core-commonmark/lib/line-ending.js","../../frontend/node_modules/micromark-core-commonmark/lib/thematic-break.js","../../frontend/node_modules/micromark-core-commonmark/lib/list.js","../../frontend/node_modules/micromark-core-commonmark/lib/setext-underline.js","../../frontend/node_modules/micromark/lib/initialize/flow.js","../../frontend/node_modules/micromark/lib/initialize/text.js","../../frontend/node_modules/micromark/lib/create-tokenizer.js","../../frontend/node_modules/micromark/lib/constructs.js","../../frontend/node_modules/micromark/lib/parse.js","../../frontend/node_modules/micromark/lib/preprocess.js","../../frontend/node_modules/micromark/lib/postprocess.js","../../frontend/node_modules/micromark-util-decode-numeric-character-reference/index.js","../../frontend/node_modules/micromark-util-decode-string/index.js","../../frontend/node_modules/mdast-util-from-markdown/lib/index.js","../../frontend/node_modules/remark-parse/lib/index.js","../../frontend/node_modules/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/node_modules/dompurify/dist/purify.es.mjs","../../frontend/src/constants/xssAllowTags.ts","../../frontend/src/components/Answer/AnswerParser.tsx","../../frontend/node_modules/remark-supersub/lib/index.js","../../frontend/src/components/Answer/Answer.tsx","../../frontend/src/assets/Send.svg","../../frontend/src/components/QuestionInput/QuestionInput.tsx","../../frontend/src/components/ChatHistory/ChatHistoryListItem.tsx","../../frontend/src/components/ChatHistory/ChatHistoryList.tsx","../../frontend/src/components/ChatHistory/ChatHistoryPanel.tsx","../../frontend/src/pages/chat/Chat.tsx","../../frontend/src/index.tsx"],"sourcesContent":["/**\n * @license React\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var l=Symbol.for(\"react.element\"),n=Symbol.for(\"react.portal\"),p=Symbol.for(\"react.fragment\"),q=Symbol.for(\"react.strict_mode\"),r=Symbol.for(\"react.profiler\"),t=Symbol.for(\"react.provider\"),u=Symbol.for(\"react.context\"),v=Symbol.for(\"react.forward_ref\"),w=Symbol.for(\"react.suspense\"),x=Symbol.for(\"react.memo\"),y=Symbol.for(\"react.lazy\"),z=Symbol.iterator;function A(a){if(null===a||\"object\"!==typeof a)return null;a=z&&a[z]||a[\"@@iterator\"];return\"function\"===typeof a?a:null}\nvar B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}E.prototype.isReactComponent={};\nE.prototype.setState=function(a,b){if(\"object\"!==typeof a&&\"function\"!==typeof a&&null!=a)throw Error(\"setState(...): takes an object of state variables to update or a function which returns an object of state variables.\");this.updater.enqueueSetState(this,a,b,\"setState\")};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,\"forceUpdate\")};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B}var H=G.prototype=new F;\nH.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};\nfunction M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=\"\"+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1>>1,e=a[d];if(0>>1;dg(C,c))ng(x,C)?(a[d]=x,a[n]=c,d=n):(a[d]=C,a[m]=c,d=m);else if(ng(x,c))a[d]=x,a[n]=c,d=n;else break a}}return b}\nfunction g(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}if(\"object\"===typeof performance&&\"function\"===typeof performance.now){var l=performance;exports.unstable_now=function(){return l.now()}}else{var p=Date,q=p.now();exports.unstable_now=function(){return p.now()-q}}var r=[],t=[],u=1,v=null,y=3,z=!1,A=!1,B=!1,D=\"function\"===typeof setTimeout?setTimeout:null,E=\"function\"===typeof clearTimeout?clearTimeout:null,F=\"undefined\"!==typeof setImmediate?setImmediate:null;\n\"undefined\"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function G(a){for(var b=h(t);null!==b;){if(null===b.callback)k(t);else if(b.startTime<=a)k(t),b.sortIndex=b.expirationTime,f(r,b);else break;b=h(t)}}function H(a){B=!1;G(a);if(!A)if(null!==h(r))A=!0,I(J);else{var b=h(t);null!==b&&K(H,b.startTime-a)}}\nfunction J(a,b){A=!1;B&&(B=!1,E(L),L=-1);z=!0;var c=y;try{G(b);for(v=h(r);null!==v&&(!(v.expirationTime>b)||a&&!M());){var d=v.callback;if(\"function\"===typeof d){v.callback=null;y=v.priorityLevel;var e=d(v.expirationTime<=b);b=exports.unstable_now();\"function\"===typeof e?v.callback=e:v===h(r)&&k(r);G(b)}else k(r);v=h(r)}if(null!==v)var w=!0;else{var m=h(t);null!==m&&K(H,m.startTime-b);w=!1}return w}finally{v=null,y=c,z=!1}}var N=!1,O=null,L=-1,P=5,Q=-1;\nfunction M(){return exports.unstable_now()-Qa||125d?(a.sortIndex=c,f(t,a),null===h(r)&&a===h(t)&&(B?(E(L),L=-1):B=!0,K(H,c-d))):(a.sortIndex=e,f(r,a),A||z||(A=!0,I(J)));return a};\nexports.unstable_shouldYield=M;exports.unstable_wrapCallback=function(a){var b=y;return function(){var c=y;y=b;try{return a.apply(this,arguments)}finally{y=c}}};\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/scheduler.production.min.js');\n} else {\n module.exports = require('./cjs/scheduler.development.js');\n}\n","/**\n * @license React\n * react-dom.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n/*\n Modernizr 3.0.0pre (Custom Build) | MIT\n*/\n'use strict';var aa=require(\"react\"),ca=require(\"scheduler\");function p(a){for(var b=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=1;cb}return!1}function v(a,b,c,d,e,f,g){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f;this.removeEmptyString=g}var z={};\n\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(a){z[a]=new v(a,0,!1,a,null,!1,!1)});[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(a){var b=a[0];z[b]=new v(b,1,!1,a[1],null,!1,!1)});[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(a){z[a]=new v(a,2,!1,a.toLowerCase(),null,!1,!1)});\n[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach(function(a){z[a]=new v(a,2,!1,a,null,!1,!1)});\"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach(function(a){z[a]=new v(a,3,!1,a.toLowerCase(),null,!1,!1)});\n[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(a){z[a]=new v(a,3,!0,a,null,!1,!1)});[\"capture\",\"download\"].forEach(function(a){z[a]=new v(a,4,!1,a,null,!1,!1)});[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(a){z[a]=new v(a,6,!1,a,null,!1,!1)});[\"rowSpan\",\"start\"].forEach(function(a){z[a]=new v(a,5,!1,a.toLowerCase(),null,!1,!1)});var ra=/[\\-:]([a-z])/g;function sa(a){return a[1].toUpperCase()}\n\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height\".split(\" \").forEach(function(a){var b=a.replace(ra,\nsa);z[b]=new v(b,1,!1,a,null,!1,!1)});\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,\"http://www.w3.org/1999/xlink\",!1,!1)});[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(a){var b=a.replace(ra,sa);z[b]=new v(b,1,!1,a,\"http://www.w3.org/XML/1998/namespace\",!1,!1)});[\"tabIndex\",\"crossOrigin\"].forEach(function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!1,!1)});\nz.xlinkHref=new v(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0,!1);[\"src\",\"href\",\"action\",\"formAction\"].forEach(function(a){z[a]=new v(a,1,!1,a.toLowerCase(),null,!0,!0)});\nfunction ta(a,b,c,d){var e=z.hasOwnProperty(b)?z[b]:null;if(null!==e?0!==e.type:d||!(2h||e[g]!==f[h]){var k=\"\\n\"+e[g].replace(\" at new \",\" at \");a.displayName&&k.includes(\"\")&&(k=k.replace(\"\",a.displayName));return k}while(1<=g&&0<=h)}break}}}finally{Na=!1,Error.prepareStackTrace=c}return(a=a?a.displayName||a.name:\"\")?Ma(a):\"\"}\nfunction Pa(a){switch(a.tag){case 5:return Ma(a.type);case 16:return Ma(\"Lazy\");case 13:return Ma(\"Suspense\");case 19:return Ma(\"SuspenseList\");case 0:case 2:case 15:return a=Oa(a.type,!1),a;case 11:return a=Oa(a.type.render,!1),a;case 1:return a=Oa(a.type,!0),a;default:return\"\"}}\nfunction Qa(a){if(null==a)return null;if(\"function\"===typeof a)return a.displayName||a.name||null;if(\"string\"===typeof a)return a;switch(a){case ya:return\"Fragment\";case wa:return\"Portal\";case Aa:return\"Profiler\";case za:return\"StrictMode\";case Ea:return\"Suspense\";case Fa:return\"SuspenseList\"}if(\"object\"===typeof a)switch(a.$$typeof){case Ca:return(a.displayName||\"Context\")+\".Consumer\";case Ba:return(a._context.displayName||\"Context\")+\".Provider\";case Da:var b=a.render;a=a.displayName;a||(a=b.displayName||\nb.name||\"\",a=\"\"!==a?\"ForwardRef(\"+a+\")\":\"ForwardRef\");return a;case Ga:return b=a.displayName||null,null!==b?b:Qa(a.type)||\"Memo\";case Ha:b=a._payload;a=a._init;try{return Qa(a(b))}catch(c){}}return null}\nfunction Ra(a){var b=a.type;switch(a.tag){case 24:return\"Cache\";case 9:return(b.displayName||\"Context\")+\".Consumer\";case 10:return(b._context.displayName||\"Context\")+\".Provider\";case 18:return\"DehydratedFragment\";case 11:return a=b.render,a=a.displayName||a.name||\"\",b.displayName||(\"\"!==a?\"ForwardRef(\"+a+\")\":\"ForwardRef\");case 7:return\"Fragment\";case 5:return b;case 4:return\"Portal\";case 3:return\"Root\";case 6:return\"Text\";case 16:return Qa(b);case 8:return b===za?\"StrictMode\":\"Mode\";case 22:return\"Offscreen\";\ncase 12:return\"Profiler\";case 21:return\"Scope\";case 13:return\"Suspense\";case 19:return\"SuspenseList\";case 25:return\"TracingMarker\";case 1:case 0:case 17:case 2:case 14:case 15:if(\"function\"===typeof b)return b.displayName||b.name||null;if(\"string\"===typeof b)return b}return null}function Sa(a){switch(typeof a){case \"boolean\":case \"number\":case \"string\":case \"undefined\":return a;case \"object\":return a;default:return\"\"}}\nfunction Ta(a){var b=a.type;return(a=a.nodeName)&&\"input\"===a.toLowerCase()&&(\"checkbox\"===b||\"radio\"===b)}\nfunction Ua(a){var b=Ta(a)?\"checked\":\"value\",c=Object.getOwnPropertyDescriptor(a.constructor.prototype,b),d=\"\"+a[b];if(!a.hasOwnProperty(b)&&\"undefined\"!==typeof c&&\"function\"===typeof c.get&&\"function\"===typeof c.set){var e=c.get,f=c.set;Object.defineProperty(a,b,{configurable:!0,get:function(){return e.call(this)},set:function(a){d=\"\"+a;f.call(this,a)}});Object.defineProperty(a,b,{enumerable:c.enumerable});return{getValue:function(){return d},setValue:function(a){d=\"\"+a},stopTracking:function(){a._valueTracker=\nnull;delete a[b]}}}}function Va(a){a._valueTracker||(a._valueTracker=Ua(a))}function Wa(a){if(!a)return!1;var b=a._valueTracker;if(!b)return!0;var c=b.getValue();var d=\"\";a&&(d=Ta(a)?a.checked?\"true\":\"false\":a.value);a=d;return a!==c?(b.setValue(a),!0):!1}function Xa(a){a=a||(\"undefined\"!==typeof document?document:void 0);if(\"undefined\"===typeof a)return null;try{return a.activeElement||a.body}catch(b){return a.body}}\nfunction Ya(a,b){var c=b.checked;return A({},b,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=c?c:a._wrapperState.initialChecked})}function Za(a,b){var c=null==b.defaultValue?\"\":b.defaultValue,d=null!=b.checked?b.checked:b.defaultChecked;c=Sa(null!=b.value?b.value:c);a._wrapperState={initialChecked:d,initialValue:c,controlled:\"checkbox\"===b.type||\"radio\"===b.type?null!=b.checked:null!=b.value}}function ab(a,b){b=b.checked;null!=b&&ta(a,\"checked\",b,!1)}\nfunction bb(a,b){ab(a,b);var c=Sa(b.value),d=b.type;if(null!=c)if(\"number\"===d){if(0===c&&\"\"===a.value||a.value!=c)a.value=\"\"+c}else a.value!==\"\"+c&&(a.value=\"\"+c);else if(\"submit\"===d||\"reset\"===d){a.removeAttribute(\"value\");return}b.hasOwnProperty(\"value\")?cb(a,b.type,c):b.hasOwnProperty(\"defaultValue\")&&cb(a,b.type,Sa(b.defaultValue));null==b.checked&&null!=b.defaultChecked&&(a.defaultChecked=!!b.defaultChecked)}\nfunction db(a,b,c){if(b.hasOwnProperty(\"value\")||b.hasOwnProperty(\"defaultValue\")){var d=b.type;if(!(\"submit\"!==d&&\"reset\"!==d||void 0!==b.value&&null!==b.value))return;b=\"\"+a._wrapperState.initialValue;c||b===a.value||(a.value=b);a.defaultValue=b}c=a.name;\"\"!==c&&(a.name=\"\");a.defaultChecked=!!a._wrapperState.initialChecked;\"\"!==c&&(a.name=c)}\nfunction cb(a,b,c){if(\"number\"!==b||Xa(a.ownerDocument)!==a)null==c?a.defaultValue=\"\"+a._wrapperState.initialValue:a.defaultValue!==\"\"+c&&(a.defaultValue=\"\"+c)}var eb=Array.isArray;\nfunction fb(a,b,c,d){a=a.options;if(b){b={};for(var e=0;e\"+b.valueOf().toString()+\"\";for(b=mb.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;b.firstChild;)a.appendChild(b.firstChild)}});\nfunction ob(a,b){if(b){var c=a.firstChild;if(c&&c===a.lastChild&&3===c.nodeType){c.nodeValue=b;return}}a.textContent=b}\nvar pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,\nzoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=[\"Webkit\",\"ms\",\"Moz\",\"O\"];Object.keys(pb).forEach(function(a){qb.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);pb[b]=pb[a]})});function rb(a,b,c){return null==b||\"boolean\"===typeof b||\"\"===b?\"\":c||\"number\"!==typeof b||0===b||pb.hasOwnProperty(a)&&pb[a]?(\"\"+b).trim():b+\"px\"}\nfunction sb(a,b){a=a.style;for(var c in b)if(b.hasOwnProperty(c)){var d=0===c.indexOf(\"--\"),e=rb(c,b[c],d);\"float\"===c&&(c=\"cssFloat\");d?a.setProperty(c,e):a[c]=e}}var tb=A({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});\nfunction ub(a,b){if(b){if(tb[a]&&(null!=b.children||null!=b.dangerouslySetInnerHTML))throw Error(p(137,a));if(null!=b.dangerouslySetInnerHTML){if(null!=b.children)throw Error(p(60));if(\"object\"!==typeof b.dangerouslySetInnerHTML||!(\"__html\"in b.dangerouslySetInnerHTML))throw Error(p(61));}if(null!=b.style&&\"object\"!==typeof b.style)throw Error(p(62));}}\nfunction vb(a,b){if(-1===a.indexOf(\"-\"))return\"string\"===typeof b.is;switch(a){case \"annotation-xml\":case \"color-profile\":case \"font-face\":case \"font-face-src\":case \"font-face-uri\":case \"font-face-format\":case \"font-face-name\":case \"missing-glyph\":return!1;default:return!0}}var wb=null;function xb(a){a=a.target||a.srcElement||window;a.correspondingUseElement&&(a=a.correspondingUseElement);return 3===a.nodeType?a.parentNode:a}var yb=null,zb=null,Ab=null;\nfunction Bb(a){if(a=Cb(a)){if(\"function\"!==typeof yb)throw Error(p(280));var b=a.stateNode;b&&(b=Db(b),yb(a.stateNode,a.type,b))}}function Eb(a){zb?Ab?Ab.push(a):Ab=[a]:zb=a}function Fb(){if(zb){var a=zb,b=Ab;Ab=zb=null;Bb(a);if(b)for(a=0;a>>=0;return 0===a?32:31-(pc(a)/qc|0)|0}var rc=64,sc=4194304;\nfunction tc(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;\ndefault:return a}}function uc(a,b){var c=a.pendingLanes;if(0===c)return 0;var d=0,e=a.suspendedLanes,f=a.pingedLanes,g=c&268435455;if(0!==g){var h=g&~e;0!==h?d=tc(h):(f&=g,0!==f&&(d=tc(f)))}else g=c&~e,0!==g?d=tc(g):0!==f&&(d=tc(f));if(0===d)return 0;if(0!==b&&b!==d&&0===(b&e)&&(e=d&-d,f=b&-b,e>=f||16===e&&0!==(f&4194240)))return b;0!==(d&4)&&(d|=c&16);b=a.entangledLanes;if(0!==b)for(a=a.entanglements,b&=d;0c;c++)b.push(a);return b}\nfunction Ac(a,b,c){a.pendingLanes|=b;536870912!==b&&(a.suspendedLanes=0,a.pingedLanes=0);a=a.eventTimes;b=31-oc(b);a[b]=c}function Bc(a,b){var c=a.pendingLanes&~b;a.pendingLanes=b;a.suspendedLanes=0;a.pingedLanes=0;a.expiredLanes&=b;a.mutableReadLanes&=b;a.entangledLanes&=b;b=a.entanglements;var d=a.eventTimes;for(a=a.expirationTimes;0=be),ee=String.fromCharCode(32),fe=!1;\nfunction ge(a,b){switch(a){case \"keyup\":return-1!==$d.indexOf(b.keyCode);case \"keydown\":return 229!==b.keyCode;case \"keypress\":case \"mousedown\":case \"focusout\":return!0;default:return!1}}function he(a){a=a.detail;return\"object\"===typeof a&&\"data\"in a?a.data:null}var ie=!1;function je(a,b){switch(a){case \"compositionend\":return he(b);case \"keypress\":if(32!==b.which)return null;fe=!0;return ee;case \"textInput\":return a=b.data,a===ee&&fe?null:a;default:return null}}\nfunction ke(a,b){if(ie)return\"compositionend\"===a||!ae&&ge(a,b)?(a=nd(),md=ld=kd=null,ie=!1,a):null;switch(a){case \"paste\":return null;case \"keypress\":if(!(b.ctrlKey||b.altKey||b.metaKey)||b.ctrlKey&&b.altKey){if(b.char&&1=b)return{node:c,offset:b-a};a=d}a:{for(;c;){if(c.nextSibling){c=c.nextSibling;break a}c=c.parentNode}c=void 0}c=Je(c)}}function Le(a,b){return a&&b?a===b?!0:a&&3===a.nodeType?!1:b&&3===b.nodeType?Le(a,b.parentNode):\"contains\"in a?a.contains(b):a.compareDocumentPosition?!!(a.compareDocumentPosition(b)&16):!1:!1}\nfunction Me(){for(var a=window,b=Xa();b instanceof a.HTMLIFrameElement;){try{var c=\"string\"===typeof b.contentWindow.location.href}catch(d){c=!1}if(c)a=b.contentWindow;else break;b=Xa(a.document)}return b}function Ne(a){var b=a&&a.nodeName&&a.nodeName.toLowerCase();return b&&(\"input\"===b&&(\"text\"===a.type||\"search\"===a.type||\"tel\"===a.type||\"url\"===a.type||\"password\"===a.type)||\"textarea\"===b||\"true\"===a.contentEditable)}\nfunction Oe(a){var b=Me(),c=a.focusedElem,d=a.selectionRange;if(b!==c&&c&&c.ownerDocument&&Le(c.ownerDocument.documentElement,c)){if(null!==d&&Ne(c))if(b=d.start,a=d.end,void 0===a&&(a=b),\"selectionStart\"in c)c.selectionStart=b,c.selectionEnd=Math.min(a,c.value.length);else if(a=(b=c.ownerDocument||document)&&b.defaultView||window,a.getSelection){a=a.getSelection();var e=c.textContent.length,f=Math.min(d.start,e);d=void 0===d.end?f:Math.min(d.end,e);!a.extend&&f>d&&(e=d,d=f,f=e);e=Ke(c,f);var g=Ke(c,\nd);e&&g&&(1!==a.rangeCount||a.anchorNode!==e.node||a.anchorOffset!==e.offset||a.focusNode!==g.node||a.focusOffset!==g.offset)&&(b=b.createRange(),b.setStart(e.node,e.offset),a.removeAllRanges(),f>d?(a.addRange(b),a.extend(g.node,g.offset)):(b.setEnd(g.node,g.offset),a.addRange(b)))}b=[];for(a=c;a=a.parentNode;)1===a.nodeType&&b.push({element:a,left:a.scrollLeft,top:a.scrollTop});\"function\"===typeof c.focus&&c.focus();for(c=0;c=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;\nfunction Ue(a,b,c){var d=c.window===c?c.document:9===c.nodeType?c:c.ownerDocument;Te||null==Qe||Qe!==Xa(d)||(d=Qe,\"selectionStart\"in d&&Ne(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Se&&Ie(Se,d)||(Se=d,d=oe(Re,\"onSelect\"),0Tf||(a.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G(a,b){Tf++;Sf[Tf]=a.current;a.current=b}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(a,b){var c=a.type.contextTypes;if(!c)return Vf;var d=a.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===b)return d.__reactInternalMemoizedMaskedChildContext;var e={},f;for(f in c)e[f]=b[f];d&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=b,a.__reactInternalMemoizedMaskedChildContext=e);return e}\nfunction Zf(a){a=a.childContextTypes;return null!==a&&void 0!==a}function $f(){E(Wf);E(H)}function ag(a,b,c){if(H.current!==Vf)throw Error(p(168));G(H,b);G(Wf,c)}function bg(a,b,c){var d=a.stateNode;b=b.childContextTypes;if(\"function\"!==typeof d.getChildContext)return c;d=d.getChildContext();for(var e in d)if(!(e in b))throw Error(p(108,Ra(a)||\"Unknown\",e));return A({},c,d)}\nfunction cg(a){a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||Vf;Xf=H.current;G(H,a);G(Wf,Wf.current);return!0}function dg(a,b,c){var d=a.stateNode;if(!d)throw Error(p(169));c?(a=bg(a,b,Xf),d.__reactInternalMemoizedMergedChildContext=a,E(Wf),E(H),G(H,a)):E(Wf);G(Wf,c)}var eg=null,fg=!1,gg=!1;function hg(a){null===eg?eg=[a]:eg.push(a)}function ig(a){fg=!0;hg(a)}\nfunction jg(){if(!gg&&null!==eg){gg=!0;var a=0,b=C;try{var c=eg;for(C=1;a>=g;e-=g;rg=1<<32-oc(b)+e|c<w?(x=u,u=null):x=u.sibling;var n=r(e,u,h[w],k);if(null===n){null===u&&(u=x);break}a&&u&&null===n.alternate&&b(e,u);g=f(n,g,w);null===m?l=n:m.sibling=n;m=n;u=x}if(w===h.length)return c(e,u),I&&tg(e,w),l;if(null===u){for(;ww?(x=m,m=null):x=m.sibling;var t=r(e,m,n.value,k);if(null===t){null===m&&(m=x);break}a&&m&&null===t.alternate&&b(e,m);g=f(t,g,w);null===u?l=t:u.sibling=t;u=t;m=x}if(n.done)return c(e,\nm),I&&tg(e,w),l;if(null===m){for(;!n.done;w++,n=h.next())n=q(e,n.value,k),null!==n&&(g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);I&&tg(e,w);return l}for(m=d(e,m);!n.done;w++,n=h.next())n=y(m,e,w,n.value,k),null!==n&&(a&&null!==n.alternate&&m.delete(null===n.key?w:n.key),g=f(n,g,w),null===u?l=n:u.sibling=n,u=n);a&&m.forEach(function(a){return b(e,a)});I&&tg(e,w);return l}function J(a,d,f,h){\"object\"===typeof f&&null!==f&&f.type===ya&&null===f.key&&(f=f.props.children);if(\"object\"===typeof f&&null!==f){switch(f.$$typeof){case va:a:{for(var k=\nf.key,l=d;null!==l;){if(l.key===k){k=f.type;if(k===ya){if(7===l.tag){c(a,l.sibling);d=e(l,f.props.children);d.return=a;a=d;break a}}else if(l.elementType===k||\"object\"===typeof k&&null!==k&&k.$$typeof===Ha&&uh(k)===l.type){c(a,l.sibling);d=e(l,f.props);d.ref=sh(a,l,f);d.return=a;a=d;break a}c(a,l);break}else b(a,l);l=l.sibling}f.type===ya?(d=Ah(f.props.children,a.mode,h,f.key),d.return=a,a=d):(h=yh(f.type,f.key,f.props,null,a.mode,h),h.ref=sh(a,d,f),h.return=a,a=h)}return g(a);case wa:a:{for(l=f.key;null!==\nd;){if(d.key===l)if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){c(a,d.sibling);d=e(d,f.children||[]);d.return=a;a=d;break a}else{c(a,d);break}else b(a,d);d=d.sibling}d=zh(f,a.mode,h);d.return=a;a=d}return g(a);case Ha:return l=f._init,J(a,d,l(f._payload),h)}if(eb(f))return n(a,d,f,h);if(Ka(f))return t(a,d,f,h);th(a,f)}return\"string\"===typeof f&&\"\"!==f||\"number\"===typeof f?(f=\"\"+f,null!==d&&6===d.tag?(c(a,d.sibling),d=e(d,f),d.return=a,a=d):\n(c(a,d),d=xh(f,a.mode,h),d.return=a,a=d),g(a)):c(a,d)}return J}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(a){if(a===Dh)throw Error(p(174));return a}function Ih(a,b){G(Gh,b);G(Fh,a);G(Eh,Dh);a=b.nodeType;switch(a){case 9:case 11:b=(b=b.documentElement)?b.namespaceURI:lb(null,\"\");break;default:a=8===a?b.parentNode:b,b=a.namespaceURI||null,a=a.tagName,b=lb(b,a)}E(Eh);G(Eh,b)}function Jh(){E(Eh);E(Fh);E(Gh)}\nfunction Kh(a){Hh(Gh.current);var b=Hh(Eh.current);var c=lb(b,a.type);b!==c&&(G(Fh,a),G(Eh,c))}function Lh(a){Fh.current===a&&(E(Eh),E(Fh))}var M=Uf(0);\nfunction Mh(a){for(var b=a;null!==b;){if(13===b.tag){var c=b.memoizedState;if(null!==c&&(c=c.dehydrated,null===c||\"$?\"===c.data||\"$!\"===c.data))return b}else if(19===b.tag&&void 0!==b.memoizedProps.revealOrder){if(0!==(b.flags&128))return b}else if(null!==b.child){b.child.return=b;b=b.child;continue}if(b===a)break;for(;null===b.sibling;){if(null===b.return||b.return===a)return null;b=b.return}b.sibling.return=b.return;b=b.sibling}return null}var Nh=[];\nfunction Oh(){for(var a=0;ac?c:4;a(!0);var d=Qh.transition;Qh.transition={};try{a(!1),b()}finally{C=c,Qh.transition=d}}function Fi(){return di().memoizedState}\nfunction Gi(a,b,c){var d=lh(a);c={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(b,c);else if(c=Yg(a,b,c,d),null!==c){var e=L();mh(c,a,d,e);Ji(c,b,d)}}\nfunction ri(a,b,c){var d=lh(a),e={lane:d,action:c,hasEagerState:!1,eagerState:null,next:null};if(Hi(a))Ii(b,e);else{var f=a.alternate;if(0===a.lanes&&(null===f||0===f.lanes)&&(f=b.lastRenderedReducer,null!==f))try{var g=b.lastRenderedState,h=f(g,c);e.hasEagerState=!0;e.eagerState=h;if(He(h,g)){var k=b.interleaved;null===k?(e.next=e,Xg(b)):(e.next=k.next,k.next=e);b.interleaved=e;return}}catch(l){}finally{}c=Yg(a,b,e,d);null!==c&&(e=L(),mh(c,a,d,e),Ji(c,b,d))}}\nfunction Hi(a){var b=a.alternate;return a===N||null!==b&&b===N}function Ii(a,b){Th=Sh=!0;var c=a.pending;null===c?b.next=b:(b.next=c.next,c.next=b);a.pending=b}function Ji(a,b,c){if(0!==(c&4194240)){var d=b.lanes;d&=a.pendingLanes;c|=d;b.lanes=c;Cc(a,c)}}\nvar ai={readContext:Vg,useCallback:Q,useContext:Q,useEffect:Q,useImperativeHandle:Q,useInsertionEffect:Q,useLayoutEffect:Q,useMemo:Q,useReducer:Q,useRef:Q,useState:Q,useDebugValue:Q,useDeferredValue:Q,useTransition:Q,useMutableSource:Q,useSyncExternalStore:Q,useId:Q,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(a,b){ci().memoizedState=[a,void 0===b?null:b];return a},useContext:Vg,useEffect:vi,useImperativeHandle:function(a,b,c){c=null!==c&&void 0!==c?c.concat([a]):null;return ti(4194308,\n4,yi.bind(null,b,a),c)},useLayoutEffect:function(a,b){return ti(4194308,4,a,b)},useInsertionEffect:function(a,b){return ti(4,2,a,b)},useMemo:function(a,b){var c=ci();b=void 0===b?null:b;a=a();c.memoizedState=[a,b];return a},useReducer:function(a,b,c){var d=ci();b=void 0!==c?c(b):b;d.memoizedState=d.baseState=b;a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:b};d.queue=a;a=a.dispatch=Gi.bind(null,N,a);return[d.memoizedState,a]},useRef:function(a){var b=\nci();a={current:a};return b.memoizedState=a},useState:qi,useDebugValue:Ai,useDeferredValue:function(a){return ci().memoizedState=a},useTransition:function(){var a=qi(!1),b=a[0];a=Ei.bind(null,a[1]);ci().memoizedState=a;return[b,a]},useMutableSource:function(){},useSyncExternalStore:function(a,b,c){var d=N,e=ci();if(I){if(void 0===c)throw Error(p(407));c=c()}else{c=b();if(null===R)throw Error(p(349));0!==(Rh&30)||ni(d,b,c)}e.memoizedState=c;var f={value:c,getSnapshot:b};e.queue=f;vi(ki.bind(null,d,\nf,a),[a]);d.flags|=2048;li(9,mi.bind(null,d,f,c,b),void 0,null);return c},useId:function(){var a=ci(),b=R.identifierPrefix;if(I){var c=sg;var d=rg;c=(d&~(1<<32-oc(d)-1)).toString(32)+c;b=\":\"+b+\"R\"+c;c=Uh++;0\\x3c/script>\",a=a.removeChild(a.firstChild)):\n\"string\"===typeof d.is?a=g.createElement(c,{is:d.is}):(a=g.createElement(c),\"select\"===c&&(g=a,d.multiple?g.multiple=!0:d.size&&(g.size=d.size))):a=g.createElementNS(a,c);a[Of]=b;a[Pf]=d;Aj(a,b,!1,!1);b.stateNode=a;a:{g=vb(c,d);switch(c){case \"dialog\":D(\"cancel\",a);D(\"close\",a);e=d;break;case \"iframe\":case \"object\":case \"embed\":D(\"load\",a);e=d;break;case \"video\":case \"audio\":for(e=0;eHj&&(b.flags|=128,d=!0,Ej(f,!1),b.lanes=4194304)}else{if(!d)if(a=Mh(g),null!==a){if(b.flags|=128,d=!0,c=a.updateQueue,null!==c&&(b.updateQueue=c,b.flags|=4),Ej(f,!0),null===f.tail&&\"hidden\"===f.tailMode&&!g.alternate&&!I)return S(b),null}else 2*B()-f.renderingStartTime>Hj&&1073741824!==c&&(b.flags|=128,d=!0,Ej(f,!1),b.lanes=4194304);f.isBackwards?(g.sibling=b.child,b.child=g):(c=f.last,null!==c?c.sibling=g:b.child=g,f.last=g)}if(null!==f.tail)return b=f.tail,f.rendering=\nb,f.tail=b.sibling,f.renderingStartTime=B(),b.sibling=null,c=M.current,G(M,d?c&1|2:c&1),b;S(b);return null;case 22:case 23:return Ij(),d=null!==b.memoizedState,null!==a&&null!==a.memoizedState!==d&&(b.flags|=8192),d&&0!==(b.mode&1)?0!==(gj&1073741824)&&(S(b),b.subtreeFlags&6&&(b.flags|=8192)):S(b),null;case 24:return null;case 25:return null}throw Error(p(156,b.tag));}\nfunction Jj(a,b){wg(b);switch(b.tag){case 1:return Zf(b.type)&&$f(),a=b.flags,a&65536?(b.flags=a&-65537|128,b):null;case 3:return Jh(),E(Wf),E(H),Oh(),a=b.flags,0!==(a&65536)&&0===(a&128)?(b.flags=a&-65537|128,b):null;case 5:return Lh(b),null;case 13:E(M);a=b.memoizedState;if(null!==a&&null!==a.dehydrated){if(null===b.alternate)throw Error(p(340));Ig()}a=b.flags;return a&65536?(b.flags=a&-65537|128,b):null;case 19:return E(M),null;case 4:return Jh(),null;case 10:return Rg(b.type._context),null;case 22:case 23:return Ij(),\nnull;case 24:return null;default:return null}}var Kj=!1,U=!1,Lj=\"function\"===typeof WeakSet?WeakSet:Set,V=null;function Mj(a,b){var c=a.ref;if(null!==c)if(\"function\"===typeof c)try{c(null)}catch(d){W(a,b,d)}else c.current=null}function Nj(a,b,c){try{c()}catch(d){W(a,b,d)}}var Oj=!1;\nfunction Pj(a,b){Cf=dd;a=Me();if(Ne(a)){if(\"selectionStart\"in a)var c={start:a.selectionStart,end:a.selectionEnd};else a:{c=(c=a.ownerDocument)&&c.defaultView||window;var d=c.getSelection&&c.getSelection();if(d&&0!==d.rangeCount){c=d.anchorNode;var e=d.anchorOffset,f=d.focusNode;d=d.focusOffset;try{c.nodeType,f.nodeType}catch(F){c=null;break a}var g=0,h=-1,k=-1,l=0,m=0,q=a,r=null;b:for(;;){for(var y;;){q!==c||0!==e&&3!==q.nodeType||(h=g+e);q!==f||0!==d&&3!==q.nodeType||(k=g+d);3===q.nodeType&&(g+=\nq.nodeValue.length);if(null===(y=q.firstChild))break;r=q;q=y}for(;;){if(q===a)break b;r===c&&++l===e&&(h=g);r===f&&++m===d&&(k=g);if(null!==(y=q.nextSibling))break;q=r;r=q.parentNode}q=y}c=-1===h||-1===k?null:{start:h,end:k}}else c=null}c=c||{start:0,end:0}}else c=null;Df={focusedElem:a,selectionRange:c};dd=!1;for(V=b;null!==V;)if(b=V,a=b.child,0!==(b.subtreeFlags&1028)&&null!==a)a.return=b,V=a;else for(;null!==V;){b=V;try{var n=b.alternate;if(0!==(b.flags&1024))switch(b.tag){case 0:case 11:case 15:break;\ncase 1:if(null!==n){var t=n.memoizedProps,J=n.memoizedState,x=b.stateNode,w=x.getSnapshotBeforeUpdate(b.elementType===b.type?t:Lg(b.type,t),J);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var u=b.stateNode.containerInfo;1===u.nodeType?u.textContent=\"\":9===u.nodeType&&u.documentElement&&u.removeChild(u.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p(163));}}catch(F){W(b,b.return,F)}a=b.sibling;if(null!==a){a.return=b.return;V=a;break}V=b.return}n=Oj;Oj=!1;return n}\nfunction Qj(a,b,c){var d=b.updateQueue;d=null!==d?d.lastEffect:null;if(null!==d){var e=d=d.next;do{if((e.tag&a)===a){var f=e.destroy;e.destroy=void 0;void 0!==f&&Nj(b,c,f)}e=e.next}while(e!==d)}}function Rj(a,b){b=b.updateQueue;b=null!==b?b.lastEffect:null;if(null!==b){var c=b=b.next;do{if((c.tag&a)===a){var d=c.create;c.destroy=d()}c=c.next}while(c!==b)}}function Sj(a){var b=a.ref;if(null!==b){var c=a.stateNode;switch(a.tag){case 5:a=c;break;default:a=c}\"function\"===typeof b?b(a):b.current=a}}\nfunction Tj(a){var b=a.alternate;null!==b&&(a.alternate=null,Tj(b));a.child=null;a.deletions=null;a.sibling=null;5===a.tag&&(b=a.stateNode,null!==b&&(delete b[Of],delete b[Pf],delete b[of],delete b[Qf],delete b[Rf]));a.stateNode=null;a.return=null;a.dependencies=null;a.memoizedProps=null;a.memoizedState=null;a.pendingProps=null;a.stateNode=null;a.updateQueue=null}function Uj(a){return 5===a.tag||3===a.tag||4===a.tag}\nfunction Vj(a){a:for(;;){for(;null===a.sibling;){if(null===a.return||Uj(a.return))return null;a=a.return}a.sibling.return=a.return;for(a=a.sibling;5!==a.tag&&6!==a.tag&&18!==a.tag;){if(a.flags&2)continue a;if(null===a.child||4===a.tag)continue a;else a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}\nfunction Wj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?8===c.nodeType?c.parentNode.insertBefore(a,b):c.insertBefore(a,b):(8===c.nodeType?(b=c.parentNode,b.insertBefore(a,c)):(b=c,b.appendChild(a)),c=c._reactRootContainer,null!==c&&void 0!==c||null!==b.onclick||(b.onclick=Bf));else if(4!==d&&(a=a.child,null!==a))for(Wj(a,b,c),a=a.sibling;null!==a;)Wj(a,b,c),a=a.sibling}\nfunction Xj(a,b,c){var d=a.tag;if(5===d||6===d)a=a.stateNode,b?c.insertBefore(a,b):c.appendChild(a);else if(4!==d&&(a=a.child,null!==a))for(Xj(a,b,c),a=a.sibling;null!==a;)Xj(a,b,c),a=a.sibling}var X=null,Yj=!1;function Zj(a,b,c){for(c=c.child;null!==c;)ak(a,b,c),c=c.sibling}\nfunction ak(a,b,c){if(lc&&\"function\"===typeof lc.onCommitFiberUnmount)try{lc.onCommitFiberUnmount(kc,c)}catch(h){}switch(c.tag){case 5:U||Mj(c,b);case 6:var d=X,e=Yj;X=null;Zj(a,b,c);X=d;Yj=e;null!==X&&(Yj?(a=X,c=c.stateNode,8===a.nodeType?a.parentNode.removeChild(c):a.removeChild(c)):X.removeChild(c.stateNode));break;case 18:null!==X&&(Yj?(a=X,c=c.stateNode,8===a.nodeType?Kf(a.parentNode,c):1===a.nodeType&&Kf(a,c),bd(a)):Kf(X,c.stateNode));break;case 4:d=X;e=Yj;X=c.stateNode.containerInfo;Yj=!0;\nZj(a,b,c);X=d;Yj=e;break;case 0:case 11:case 14:case 15:if(!U&&(d=c.updateQueue,null!==d&&(d=d.lastEffect,null!==d))){e=d=d.next;do{var f=e,g=f.destroy;f=f.tag;void 0!==g&&(0!==(f&2)?Nj(c,b,g):0!==(f&4)&&Nj(c,b,g));e=e.next}while(e!==d)}Zj(a,b,c);break;case 1:if(!U&&(Mj(c,b),d=c.stateNode,\"function\"===typeof d.componentWillUnmount))try{d.props=c.memoizedProps,d.state=c.memoizedState,d.componentWillUnmount()}catch(h){W(c,b,h)}Zj(a,b,c);break;case 21:Zj(a,b,c);break;case 22:c.mode&1?(U=(d=U)||null!==\nc.memoizedState,Zj(a,b,c),U=d):Zj(a,b,c);break;default:Zj(a,b,c)}}function bk(a){var b=a.updateQueue;if(null!==b){a.updateQueue=null;var c=a.stateNode;null===c&&(c=a.stateNode=new Lj);b.forEach(function(b){var d=ck.bind(null,a,b);c.has(b)||(c.add(b),b.then(d,d))})}}\nfunction dk(a,b){var c=b.deletions;if(null!==c)for(var d=0;de&&(e=g);d&=~f}d=e;d=B()-d;d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3E3>d?3E3:4320>d?4320:1960*mk(d/1960))-d;if(10a?16:a;if(null===xk)var d=!1;else{a=xk;xk=null;yk=0;if(0!==(K&6))throw Error(p(331));var e=K;K|=4;for(V=a.current;null!==V;){var f=V,g=f.child;if(0!==(V.flags&16)){var h=f.deletions;if(null!==h){for(var k=0;kB()-gk?Lk(a,0):sk|=c);Ek(a,b)}function Zk(a,b){0===b&&(0===(a.mode&1)?b=1:(b=sc,sc<<=1,0===(sc&130023424)&&(sc=4194304)));var c=L();a=Zg(a,b);null!==a&&(Ac(a,b,c),Ek(a,c))}function vj(a){var b=a.memoizedState,c=0;null!==b&&(c=b.retryLane);Zk(a,c)}\nfunction ck(a,b){var c=0;switch(a.tag){case 13:var d=a.stateNode;var e=a.memoizedState;null!==e&&(c=e.retryLane);break;case 19:d=a.stateNode;break;default:throw Error(p(314));}null!==d&&d.delete(b);Zk(a,c)}var Wk;\nWk=function(a,b,c){if(null!==a)if(a.memoizedProps!==b.pendingProps||Wf.current)Ug=!0;else{if(0===(a.lanes&c)&&0===(b.flags&128))return Ug=!1,zj(a,b,c);Ug=0!==(a.flags&131072)?!0:!1}else Ug=!1,I&&0!==(b.flags&1048576)&&ug(b,ng,b.index);b.lanes=0;switch(b.tag){case 2:var d=b.type;jj(a,b);a=b.pendingProps;var e=Yf(b,H.current);Tg(b,c);e=Xh(null,b,d,a,e,c);var f=bi();b.flags|=1;\"object\"===typeof e&&null!==e&&\"function\"===typeof e.render&&void 0===e.$$typeof?(b.tag=1,b.memoizedState=null,b.updateQueue=\nnull,Zf(d)?(f=!0,cg(b)):f=!1,b.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,ah(b),e.updater=nh,b.stateNode=e,e._reactInternals=b,rh(b,d,a,c),b=kj(null,b,d,!0,f,c)):(b.tag=0,I&&f&&vg(b),Yi(null,b,e,c),b=b.child);return b;case 16:d=b.elementType;a:{jj(a,b);a=b.pendingProps;e=d._init;d=e(d._payload);b.type=d;e=b.tag=$k(d);a=Lg(d,a);switch(e){case 0:b=dj(null,b,d,a,c);break a;case 1:b=ij(null,b,d,a,c);break a;case 11:b=Zi(null,b,d,a,c);break a;case 14:b=aj(null,b,d,Lg(d.type,a),c);break a}throw Error(p(306,\nd,\"\"));}return b;case 0:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),dj(a,b,d,e,c);case 1:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),ij(a,b,d,e,c);case 3:a:{lj(b);if(null===a)throw Error(p(387));d=b.pendingProps;f=b.memoizedState;e=f.element;bh(a,b);gh(b,d,null,c);var g=b.memoizedState;d=g.element;if(f.isDehydrated)if(f={element:d,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},b.updateQueue.baseState=\nf,b.memoizedState=f,b.flags&256){e=Ki(Error(p(423)),b);b=mj(a,b,d,c,e);break a}else if(d!==e){e=Ki(Error(p(424)),b);b=mj(a,b,d,c,e);break a}else for(yg=Lf(b.stateNode.containerInfo.firstChild),xg=b,I=!0,zg=null,c=Ch(b,null,d,c),b.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{Ig();if(d===e){b=$i(a,b,c);break a}Yi(a,b,d,c)}b=b.child}return b;case 5:return Kh(b),null===a&&Eg(b),d=b.type,e=b.pendingProps,f=null!==a?a.memoizedProps:null,g=e.children,Ef(d,e)?g=null:null!==f&&Ef(d,f)&&(b.flags|=32),\nhj(a,b),Yi(a,b,g,c),b.child;case 6:return null===a&&Eg(b),null;case 13:return pj(a,b,c);case 4:return Ih(b,b.stateNode.containerInfo),d=b.pendingProps,null===a?b.child=Bh(b,null,d,c):Yi(a,b,d,c),b.child;case 11:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),Zi(a,b,d,e,c);case 7:return Yi(a,b,b.pendingProps,c),b.child;case 8:return Yi(a,b,b.pendingProps.children,c),b.child;case 12:return Yi(a,b,b.pendingProps.children,c),b.child;case 10:a:{d=b.type._context;e=b.pendingProps;f=b.memoizedProps;\ng=e.value;G(Mg,d._currentValue);d._currentValue=g;if(null!==f)if(He(f.value,g)){if(f.children===e.children&&!Wf.current){b=$i(a,b,c);break a}}else for(f=b.child,null!==f&&(f.return=b);null!==f;){var h=f.dependencies;if(null!==h){g=f.child;for(var k=h.firstContext;null!==k;){if(k.context===d){if(1===f.tag){k=ch(-1,c&-c);k.tag=2;var l=f.updateQueue;if(null!==l){l=l.shared;var m=l.pending;null===m?k.next=k:(k.next=m.next,m.next=k);l.pending=k}}f.lanes|=c;k=f.alternate;null!==k&&(k.lanes|=c);Sg(f.return,\nc,b);h.lanes|=c;break}k=k.next}}else if(10===f.tag)g=f.type===b.type?null:f.child;else if(18===f.tag){g=f.return;if(null===g)throw Error(p(341));g.lanes|=c;h=g.alternate;null!==h&&(h.lanes|=c);Sg(g,c,b);g=f.sibling}else g=f.child;if(null!==g)g.return=f;else for(g=f;null!==g;){if(g===b){g=null;break}f=g.sibling;if(null!==f){f.return=g.return;g=f;break}g=g.return}f=g}Yi(a,b,e.children,c);b=b.child}return b;case 9:return e=b.type,d=b.pendingProps.children,Tg(b,c),e=Vg(e),d=d(e),b.flags|=1,Yi(a,b,d,c),\nb.child;case 14:return d=b.type,e=Lg(d,b.pendingProps),e=Lg(d.type,e),aj(a,b,d,e,c);case 15:return cj(a,b,b.type,b.pendingProps,c);case 17:return d=b.type,e=b.pendingProps,e=b.elementType===d?e:Lg(d,e),jj(a,b),b.tag=1,Zf(d)?(a=!0,cg(b)):a=!1,Tg(b,c),ph(b,d,e),rh(b,d,e,c),kj(null,b,d,!0,a,c);case 19:return yj(a,b,c);case 22:return ej(a,b,c)}throw Error(p(156,b.tag));};function Gk(a,b){return ac(a,b)}\nfunction al(a,b,c,d){this.tag=a;this.key=c;this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null;this.index=0;this.ref=null;this.pendingProps=b;this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=d;this.subtreeFlags=this.flags=0;this.deletions=null;this.childLanes=this.lanes=0;this.alternate=null}function Bg(a,b,c,d){return new al(a,b,c,d)}function bj(a){a=a.prototype;return!(!a||!a.isReactComponent)}\nfunction $k(a){if(\"function\"===typeof a)return bj(a)?1:0;if(void 0!==a&&null!==a){a=a.$$typeof;if(a===Da)return 11;if(a===Ga)return 14}return 2}\nfunction wh(a,b){var c=a.alternate;null===c?(c=Bg(a.tag,b,a.key,a.mode),c.elementType=a.elementType,c.type=a.type,c.stateNode=a.stateNode,c.alternate=a,a.alternate=c):(c.pendingProps=b,c.type=a.type,c.flags=0,c.subtreeFlags=0,c.deletions=null);c.flags=a.flags&14680064;c.childLanes=a.childLanes;c.lanes=a.lanes;c.child=a.child;c.memoizedProps=a.memoizedProps;c.memoizedState=a.memoizedState;c.updateQueue=a.updateQueue;b=a.dependencies;c.dependencies=null===b?null:{lanes:b.lanes,firstContext:b.firstContext};\nc.sibling=a.sibling;c.index=a.index;c.ref=a.ref;return c}\nfunction yh(a,b,c,d,e,f){var g=2;d=a;if(\"function\"===typeof a)bj(a)&&(g=1);else if(\"string\"===typeof a)g=5;else a:switch(a){case ya:return Ah(c.children,e,f,b);case za:g=8;e|=8;break;case Aa:return a=Bg(12,c,b,e|2),a.elementType=Aa,a.lanes=f,a;case Ea:return a=Bg(13,c,b,e),a.elementType=Ea,a.lanes=f,a;case Fa:return a=Bg(19,c,b,e),a.elementType=Fa,a.lanes=f,a;case Ia:return qj(c,e,f,b);default:if(\"object\"===typeof a&&null!==a)switch(a.$$typeof){case Ba:g=10;break a;case Ca:g=9;break a;case Da:g=11;\nbreak a;case Ga:g=14;break a;case Ha:g=16;d=null;break a}throw Error(p(130,null==a?a:typeof a,\"\"));}b=Bg(g,c,b,e);b.elementType=a;b.type=d;b.lanes=f;return b}function Ah(a,b,c,d){a=Bg(7,a,d,b);a.lanes=c;return a}function qj(a,b,c,d){a=Bg(22,a,d,b);a.elementType=Ia;a.lanes=c;a.stateNode={isHidden:!1};return a}function xh(a,b,c){a=Bg(6,a,null,b);a.lanes=c;return a}\nfunction zh(a,b,c){b=Bg(4,null!==a.children?a.children:[],a.key,b);b.lanes=c;b.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation};return b}\nfunction bl(a,b,c,d,e){this.tag=b;this.containerInfo=a;this.finishedWork=this.pingCache=this.current=this.pendingChildren=null;this.timeoutHandle=-1;this.callbackNode=this.pendingContext=this.context=null;this.callbackPriority=0;this.eventTimes=zc(0);this.expirationTimes=zc(-1);this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0;this.entanglements=zc(0);this.identifierPrefix=d;this.onRecoverableError=e;this.mutableSourceEagerHydrationData=\nnull}function cl(a,b,c,d,e,f,g,h,k){a=new bl(a,b,c,h,k);1===b?(b=1,!0===f&&(b|=8)):b=0;f=Bg(3,null,null,b);a.current=f;f.stateNode=a;f.memoizedState={element:d,isDehydrated:c,cache:null,transitions:null,pendingSuspenseBoundaries:null};ah(f);return a}function dl(a,b,c){var d=3 createMemoryLocation(entry, typeof entry === \"string\" ? null : entry.state, index === 0 ? \"default\" : undefined));\n let index = clampIndex(initialIndex == null ? entries.length - 1 : initialIndex);\n let action = Action.Pop;\n let listener = null;\n\n function clampIndex(n) {\n return Math.min(Math.max(n, 0), entries.length - 1);\n }\n\n function getCurrentLocation() {\n return entries[index];\n }\n\n function createMemoryLocation(to, state, key) {\n if (state === void 0) {\n state = null;\n }\n\n let location = createLocation(entries ? getCurrentLocation().pathname : \"/\", to, state, key);\n warning$1(location.pathname.charAt(0) === \"/\", \"relative pathnames are not supported in memory history: \" + JSON.stringify(to));\n return location;\n }\n\n function createHref(to) {\n return typeof to === \"string\" ? to : createPath(to);\n }\n\n let history = {\n get index() {\n return index;\n },\n\n get action() {\n return action;\n },\n\n get location() {\n return getCurrentLocation();\n },\n\n createHref,\n\n createURL(to) {\n return new URL(createHref(to), \"http://localhost\");\n },\n\n encodeLocation(to) {\n let path = typeof to === \"string\" ? parsePath(to) : to;\n return {\n pathname: path.pathname || \"\",\n search: path.search || \"\",\n hash: path.hash || \"\"\n };\n },\n\n push(to, state) {\n action = Action.Push;\n let nextLocation = createMemoryLocation(to, state);\n index += 1;\n entries.splice(index, entries.length, nextLocation);\n\n if (v5Compat && listener) {\n listener({\n action,\n location: nextLocation,\n delta: 1\n });\n }\n },\n\n replace(to, state) {\n action = Action.Replace;\n let nextLocation = createMemoryLocation(to, state);\n entries[index] = nextLocation;\n\n if (v5Compat && listener) {\n listener({\n action,\n location: nextLocation,\n delta: 0\n });\n }\n },\n\n go(delta) {\n action = Action.Pop;\n let nextIndex = clampIndex(index + delta);\n let nextLocation = entries[nextIndex];\n index = nextIndex;\n\n if (listener) {\n listener({\n action,\n location: nextLocation,\n delta\n });\n }\n },\n\n listen(fn) {\n listener = fn;\n return () => {\n listener = null;\n };\n }\n\n };\n return history;\n}\n/**\n * Browser history stores the location in regular URLs. This is the standard for\n * most web apps, but it requires some configuration on the server to ensure you\n * serve the same app at multiple URLs.\n *\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createbrowserhistory\n */\n\nfunction createBrowserHistory(options) {\n if (options === void 0) {\n options = {};\n }\n\n function createBrowserLocation(window, globalHistory) {\n let {\n pathname,\n search,\n hash\n } = window.location;\n return createLocation(\"\", {\n pathname,\n search,\n hash\n }, // state defaults to `null` because `window.history.state` does\n globalHistory.state && globalHistory.state.usr || null, globalHistory.state && globalHistory.state.key || \"default\");\n }\n\n function createBrowserHref(window, to) {\n return typeof to === \"string\" ? to : createPath(to);\n }\n\n return getUrlBasedHistory(createBrowserLocation, createBrowserHref, null, options);\n}\n/**\n * Hash history stores the location in window.location.hash. This makes it ideal\n * for situations where you don't want to send the location to the server for\n * some reason, either because you do cannot configure it or the URL space is\n * reserved for something else.\n *\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createhashhistory\n */\n\nfunction createHashHistory(options) {\n if (options === void 0) {\n options = {};\n }\n\n function createHashLocation(window, globalHistory) {\n let {\n pathname = \"/\",\n search = \"\",\n hash = \"\"\n } = parsePath(window.location.hash.substr(1));\n return createLocation(\"\", {\n pathname,\n search,\n hash\n }, // state defaults to `null` because `window.history.state` does\n globalHistory.state && globalHistory.state.usr || null, globalHistory.state && globalHistory.state.key || \"default\");\n }\n\n function createHashHref(window, to) {\n let base = window.document.querySelector(\"base\");\n let href = \"\";\n\n if (base && base.getAttribute(\"href\")) {\n let url = window.location.href;\n let hashIndex = url.indexOf(\"#\");\n href = hashIndex === -1 ? url : url.slice(0, hashIndex);\n }\n\n return href + \"#\" + (typeof to === \"string\" ? to : createPath(to));\n }\n\n function validateHashLocation(location, to) {\n warning$1(location.pathname.charAt(0) === \"/\", \"relative pathnames are not supported in hash history.push(\" + JSON.stringify(to) + \")\");\n }\n\n return getUrlBasedHistory(createHashLocation, createHashHref, validateHashLocation, options);\n}\nfunction invariant(value, message) {\n if (value === false || value === null || typeof value === \"undefined\") {\n throw new Error(message);\n }\n}\n\nfunction warning$1(cond, message) {\n if (!cond) {\n // eslint-disable-next-line no-console\n if (typeof console !== \"undefined\") console.warn(message);\n\n try {\n // Welcome to debugging history!\n //\n // This error is thrown as a convenience so you can more easily\n // find the source for a warning that appears in the console by\n // enabling \"pause on exceptions\" in your JavaScript debugger.\n throw new Error(message); // eslint-disable-next-line no-empty\n } catch (e) {}\n }\n}\n\nfunction createKey() {\n return Math.random().toString(36).substr(2, 8);\n}\n/**\n * For browser-based histories, we combine the state and key into an object\n */\n\n\nfunction getHistoryState(location, index) {\n return {\n usr: location.state,\n key: location.key,\n idx: index\n };\n}\n/**\n * Creates a Location object with a unique key from the given Path\n */\n\n\nfunction createLocation(current, to, state, key) {\n if (state === void 0) {\n state = null;\n }\n\n let location = _extends({\n pathname: typeof current === \"string\" ? current : current.pathname,\n search: \"\",\n hash: \"\"\n }, typeof to === \"string\" ? parsePath(to) : to, {\n state,\n // TODO: This could be cleaned up. push/replace should probably just take\n // full Locations now and avoid the need to run through this flow at all\n // But that's a pretty big refactor to the current test suite so going to\n // keep as is for the time being and just let any incoming keys take precedence\n key: to && to.key || key || createKey()\n });\n\n return location;\n}\n/**\n * Creates a string URL path from the given pathname, search, and hash components.\n */\n\nfunction createPath(_ref) {\n let {\n pathname = \"/\",\n search = \"\",\n hash = \"\"\n } = _ref;\n if (search && search !== \"?\") pathname += search.charAt(0) === \"?\" ? search : \"?\" + search;\n if (hash && hash !== \"#\") pathname += hash.charAt(0) === \"#\" ? hash : \"#\" + hash;\n return pathname;\n}\n/**\n * Parses a string URL path into its separate pathname, search, and hash components.\n */\n\nfunction parsePath(path) {\n let parsedPath = {};\n\n if (path) {\n let hashIndex = path.indexOf(\"#\");\n\n if (hashIndex >= 0) {\n parsedPath.hash = path.substr(hashIndex);\n path = path.substr(0, hashIndex);\n }\n\n let searchIndex = path.indexOf(\"?\");\n\n if (searchIndex >= 0) {\n parsedPath.search = path.substr(searchIndex);\n path = path.substr(0, searchIndex);\n }\n\n if (path) {\n parsedPath.pathname = path;\n }\n }\n\n return parsedPath;\n}\n\nfunction getUrlBasedHistory(getLocation, createHref, validateLocation, options) {\n if (options === void 0) {\n options = {};\n }\n\n let {\n window = document.defaultView,\n v5Compat = false\n } = options;\n let globalHistory = window.history;\n let action = Action.Pop;\n let listener = null;\n let index = getIndex(); // Index should only be null when we initialize. If not, it's because the\n // user called history.pushState or history.replaceState directly, in which\n // case we should log a warning as it will result in bugs.\n\n if (index == null) {\n index = 0;\n globalHistory.replaceState(_extends({}, globalHistory.state, {\n idx: index\n }), \"\");\n }\n\n function getIndex() {\n let state = globalHistory.state || {\n idx: null\n };\n return state.idx;\n }\n\n function handlePop() {\n action = Action.Pop;\n let nextIndex = getIndex();\n let delta = nextIndex == null ? null : nextIndex - index;\n index = nextIndex;\n\n if (listener) {\n listener({\n action,\n location: history.location,\n delta\n });\n }\n }\n\n function push(to, state) {\n action = Action.Push;\n let location = createLocation(history.location, to, state);\n if (validateLocation) validateLocation(location, to);\n index = getIndex() + 1;\n let historyState = getHistoryState(location, index);\n let url = history.createHref(location); // try...catch because iOS limits us to 100 pushState calls :/\n\n try {\n globalHistory.pushState(historyState, \"\", url);\n } catch (error) {\n // They are going to lose state here, but there is no real\n // way to warn them about it since the page will refresh...\n window.location.assign(url);\n }\n\n if (v5Compat && listener) {\n listener({\n action,\n location: history.location,\n delta: 1\n });\n }\n }\n\n function replace(to, state) {\n action = Action.Replace;\n let location = createLocation(history.location, to, state);\n if (validateLocation) validateLocation(location, to);\n index = getIndex();\n let historyState = getHistoryState(location, index);\n let url = history.createHref(location);\n globalHistory.replaceState(historyState, \"\", url);\n\n if (v5Compat && listener) {\n listener({\n action,\n location: history.location,\n delta: 0\n });\n }\n }\n\n function createURL(to) {\n // window.location.origin is \"null\" (the literal string value) in Firefox\n // under certain conditions, notably when serving from a local HTML file\n // See https://bugzilla.mozilla.org/show_bug.cgi?id=878297\n let base = window.location.origin !== \"null\" ? window.location.origin : window.location.href;\n let href = typeof to === \"string\" ? to : createPath(to);\n invariant(base, \"No window.location.(origin|href) available to create URL for href: \" + href);\n return new URL(href, base);\n }\n\n let history = {\n get action() {\n return action;\n },\n\n get location() {\n return getLocation(window, globalHistory);\n },\n\n listen(fn) {\n if (listener) {\n throw new Error(\"A history only accepts one active listener\");\n }\n\n window.addEventListener(PopStateEventType, handlePop);\n listener = fn;\n return () => {\n window.removeEventListener(PopStateEventType, handlePop);\n listener = null;\n };\n },\n\n createHref(to) {\n return createHref(window, to);\n },\n\n createURL,\n\n encodeLocation(to) {\n // Encode a Location the same way window.location would\n let url = createURL(to);\n return {\n pathname: url.pathname,\n search: url.search,\n hash: url.hash\n };\n },\n\n push,\n replace,\n\n go(n) {\n return globalHistory.go(n);\n }\n\n };\n return history;\n} //#endregion\n\nvar ResultType;\n\n(function (ResultType) {\n ResultType[\"data\"] = \"data\";\n ResultType[\"deferred\"] = \"deferred\";\n ResultType[\"redirect\"] = \"redirect\";\n ResultType[\"error\"] = \"error\";\n})(ResultType || (ResultType = {}));\n\nfunction isIndexRoute(route) {\n return route.index === true;\n} // Walk the route tree generating unique IDs where necessary so we are working\n// solely with AgnosticDataRouteObject's within the Router\n\n\nfunction convertRoutesToDataRoutes(routes, parentPath, allIds) {\n if (parentPath === void 0) {\n parentPath = [];\n }\n\n if (allIds === void 0) {\n allIds = new Set();\n }\n\n return routes.map((route, index) => {\n let treePath = [...parentPath, index];\n let id = typeof route.id === \"string\" ? route.id : treePath.join(\"-\");\n invariant(route.index !== true || !route.children, \"Cannot specify children on an index route\");\n invariant(!allIds.has(id), \"Found a route id collision on id \\\"\" + id + \"\\\". Route \" + \"id's must be globally unique within Data Router usages\");\n allIds.add(id);\n\n if (isIndexRoute(route)) {\n let indexRoute = _extends({}, route, {\n id\n });\n\n return indexRoute;\n } else {\n let pathOrLayoutRoute = _extends({}, route, {\n id,\n children: route.children ? convertRoutesToDataRoutes(route.children, treePath, allIds) : undefined\n });\n\n return pathOrLayoutRoute;\n }\n });\n}\n/**\n * Matches the given routes to a location and returns the match data.\n *\n * @see https://reactrouter.com/utils/match-routes\n */\n\nfunction matchRoutes(routes, locationArg, basename) {\n if (basename === void 0) {\n basename = \"/\";\n }\n\n let location = typeof locationArg === \"string\" ? parsePath(locationArg) : locationArg;\n let pathname = stripBasename(location.pathname || \"/\", basename);\n\n if (pathname == null) {\n return null;\n }\n\n let branches = flattenRoutes(routes);\n rankRouteBranches(branches);\n let matches = null;\n\n for (let i = 0; matches == null && i < branches.length; ++i) {\n matches = matchRouteBranch(branches[i], // Incoming pathnames are generally encoded from either window.location\n // or from router.navigate, but we want to match against the unencoded\n // paths in the route definitions. Memory router locations won't be\n // encoded here but there also shouldn't be anything to decode so this\n // should be a safe operation. This avoids needing matchRoutes to be\n // history-aware.\n safelyDecodeURI(pathname));\n }\n\n return matches;\n}\n\nfunction flattenRoutes(routes, branches, parentsMeta, parentPath) {\n if (branches === void 0) {\n branches = [];\n }\n\n if (parentsMeta === void 0) {\n parentsMeta = [];\n }\n\n if (parentPath === void 0) {\n parentPath = \"\";\n }\n\n let flattenRoute = (route, index, relativePath) => {\n let meta = {\n relativePath: relativePath === undefined ? route.path || \"\" : relativePath,\n caseSensitive: route.caseSensitive === true,\n childrenIndex: index,\n route\n };\n\n if (meta.relativePath.startsWith(\"/\")) {\n invariant(meta.relativePath.startsWith(parentPath), \"Absolute route path \\\"\" + meta.relativePath + \"\\\" nested under path \" + (\"\\\"\" + parentPath + \"\\\" is not valid. An absolute child route path \") + \"must start with the combined path of all its parent routes.\");\n meta.relativePath = meta.relativePath.slice(parentPath.length);\n }\n\n let path = joinPaths([parentPath, meta.relativePath]);\n let routesMeta = parentsMeta.concat(meta); // Add the children before adding this route to the array so we traverse the\n // route tree depth-first and child routes appear before their parents in\n // the \"flattened\" version.\n\n if (route.children && route.children.length > 0) {\n invariant( // Our types know better, but runtime JS may not!\n // @ts-expect-error\n route.index !== true, \"Index routes must not have child routes. Please remove \" + (\"all child routes from route path \\\"\" + path + \"\\\".\"));\n flattenRoutes(route.children, branches, routesMeta, path);\n } // Routes without a path shouldn't ever match by themselves unless they are\n // index routes, so don't add them to the list of possible branches.\n\n\n if (route.path == null && !route.index) {\n return;\n }\n\n branches.push({\n path,\n score: computeScore(path, route.index),\n routesMeta\n });\n };\n\n routes.forEach((route, index) => {\n var _route$path;\n\n // coarse-grain check for optional params\n if (route.path === \"\" || !((_route$path = route.path) != null && _route$path.includes(\"?\"))) {\n flattenRoute(route, index);\n } else {\n for (let exploded of explodeOptionalSegments(route.path)) {\n flattenRoute(route, index, exploded);\n }\n }\n });\n return branches;\n}\n/**\n * Computes all combinations of optional path segments for a given path,\n * excluding combinations that are ambiguous and of lower priority.\n *\n * For example, `/one/:two?/three/:four?/:five?` explodes to:\n * - `/one/three`\n * - `/one/:two/three`\n * - `/one/three/:four`\n * - `/one/three/:five`\n * - `/one/:two/three/:four`\n * - `/one/:two/three/:five`\n * - `/one/three/:four/:five`\n * - `/one/:two/three/:four/:five`\n */\n\n\nfunction explodeOptionalSegments(path) {\n let segments = path.split(\"/\");\n if (segments.length === 0) return [];\n let [first, ...rest] = segments; // Optional path segments are denoted by a trailing `?`\n\n let isOptional = first.endsWith(\"?\"); // Compute the corresponding required segment: `foo?` -> `foo`\n\n let required = first.replace(/\\?$/, \"\");\n\n if (rest.length === 0) {\n // Intepret empty string as omitting an optional segment\n // `[\"one\", \"\", \"three\"]` corresponds to omitting `:two` from `/one/:two?/three` -> `/one/three`\n return isOptional ? [required, \"\"] : [required];\n }\n\n let restExploded = explodeOptionalSegments(rest.join(\"/\"));\n let result = []; // All child paths with the prefix. Do this for all children before the\n // optional version for all children so we get consistent ordering where the\n // parent optional aspect is preferred as required. Otherwise, we can get\n // child sections interspersed where deeper optional segments are higher than\n // parent optional segments, where for example, /:two would explodes _earlier_\n // then /:one. By always including the parent as required _for all children_\n // first, we avoid this issue\n\n result.push(...restExploded.map(subpath => subpath === \"\" ? required : [required, subpath].join(\"/\"))); // Then if this is an optional value, add all child versions without\n\n if (isOptional) {\n result.push(...restExploded);\n } // for absolute paths, ensure `/` instead of empty segment\n\n\n return result.map(exploded => path.startsWith(\"/\") && exploded === \"\" ? \"/\" : exploded);\n}\n\nfunction rankRouteBranches(branches) {\n branches.sort((a, b) => a.score !== b.score ? b.score - a.score // Higher score first\n : compareIndexes(a.routesMeta.map(meta => meta.childrenIndex), b.routesMeta.map(meta => meta.childrenIndex)));\n}\n\nconst paramRe = /^:\\w+$/;\nconst dynamicSegmentValue = 3;\nconst indexRouteValue = 2;\nconst emptySegmentValue = 1;\nconst staticSegmentValue = 10;\nconst splatPenalty = -2;\n\nconst isSplat = s => s === \"*\";\n\nfunction computeScore(path, index) {\n let segments = path.split(\"/\");\n let initialScore = segments.length;\n\n if (segments.some(isSplat)) {\n initialScore += splatPenalty;\n }\n\n if (index) {\n initialScore += indexRouteValue;\n }\n\n return segments.filter(s => !isSplat(s)).reduce((score, segment) => score + (paramRe.test(segment) ? dynamicSegmentValue : segment === \"\" ? emptySegmentValue : staticSegmentValue), initialScore);\n}\n\nfunction compareIndexes(a, b) {\n let siblings = a.length === b.length && a.slice(0, -1).every((n, i) => n === b[i]);\n return siblings ? // If two routes are siblings, we should try to match the earlier sibling\n // first. This allows people to have fine-grained control over the matching\n // behavior by simply putting routes with identical paths in the order they\n // want them tried.\n a[a.length - 1] - b[b.length - 1] : // Otherwise, it doesn't really make sense to rank non-siblings by index,\n // so they sort equally.\n 0;\n}\n\nfunction matchRouteBranch(branch, pathname) {\n let {\n routesMeta\n } = branch;\n let matchedParams = {};\n let matchedPathname = \"/\";\n let matches = [];\n\n for (let i = 0; i < routesMeta.length; ++i) {\n let meta = routesMeta[i];\n let end = i === routesMeta.length - 1;\n let remainingPathname = matchedPathname === \"/\" ? pathname : pathname.slice(matchedPathname.length) || \"/\";\n let match = matchPath({\n path: meta.relativePath,\n caseSensitive: meta.caseSensitive,\n end\n }, remainingPathname);\n if (!match) return null;\n Object.assign(matchedParams, match.params);\n let route = meta.route;\n matches.push({\n // TODO: Can this as be avoided?\n params: matchedParams,\n pathname: joinPaths([matchedPathname, match.pathname]),\n pathnameBase: normalizePathname(joinPaths([matchedPathname, match.pathnameBase])),\n route\n });\n\n if (match.pathnameBase !== \"/\") {\n matchedPathname = joinPaths([matchedPathname, match.pathnameBase]);\n }\n }\n\n return matches;\n}\n/**\n * Returns a path with params interpolated.\n *\n * @see https://reactrouter.com/utils/generate-path\n */\n\n\nfunction generatePath(originalPath, params) {\n if (params === void 0) {\n params = {};\n }\n\n let path = originalPath;\n\n if (path.endsWith(\"*\") && path !== \"*\" && !path.endsWith(\"/*\")) {\n warning(false, \"Route path \\\"\" + path + \"\\\" will be treated as if it were \" + (\"\\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\" because the `*` character must \") + \"always follow a `/` in the pattern. To get rid of this warning, \" + (\"please change the route path to \\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\".\"));\n path = path.replace(/\\*$/, \"/*\");\n }\n\n return path.replace(/^:(\\w+)(\\??)/g, (_, key, optional) => {\n let param = params[key];\n\n if (optional === \"?\") {\n return param == null ? \"\" : param;\n }\n\n if (param == null) {\n invariant(false, \"Missing \\\":\" + key + \"\\\" param\");\n }\n\n return param;\n }).replace(/\\/:(\\w+)(\\??)/g, (_, key, optional) => {\n let param = params[key];\n\n if (optional === \"?\") {\n return param == null ? \"\" : \"/\" + param;\n }\n\n if (param == null) {\n invariant(false, \"Missing \\\":\" + key + \"\\\" param\");\n }\n\n return \"/\" + param;\n }) // Remove any optional markers from optional static segments\n .replace(/\\?/g, \"\").replace(/(\\/?)\\*/, (_, prefix, __, str) => {\n const star = \"*\";\n\n if (params[star] == null) {\n // If no splat was provided, trim the trailing slash _unless_ it's\n // the entire path\n return str === \"/*\" ? \"/\" : \"\";\n } // Apply the splat\n\n\n return \"\" + prefix + params[star];\n });\n}\n/**\n * Performs pattern matching on a URL pathname and returns information about\n * the match.\n *\n * @see https://reactrouter.com/utils/match-path\n */\n\nfunction matchPath(pattern, pathname) {\n if (typeof pattern === \"string\") {\n pattern = {\n path: pattern,\n caseSensitive: false,\n end: true\n };\n }\n\n let [matcher, paramNames] = compilePath(pattern.path, pattern.caseSensitive, pattern.end);\n let match = pathname.match(matcher);\n if (!match) return null;\n let matchedPathname = match[0];\n let pathnameBase = matchedPathname.replace(/(.)\\/+$/, \"$1\");\n let captureGroups = match.slice(1);\n let params = paramNames.reduce((memo, paramName, index) => {\n // We need to compute the pathnameBase here using the raw splat value\n // instead of using params[\"*\"] later because it will be decoded then\n if (paramName === \"*\") {\n let splatValue = captureGroups[index] || \"\";\n pathnameBase = matchedPathname.slice(0, matchedPathname.length - splatValue.length).replace(/(.)\\/+$/, \"$1\");\n }\n\n memo[paramName] = safelyDecodeURIComponent(captureGroups[index] || \"\", paramName);\n return memo;\n }, {});\n return {\n params,\n pathname: matchedPathname,\n pathnameBase,\n pattern\n };\n}\n\nfunction compilePath(path, caseSensitive, end) {\n if (caseSensitive === void 0) {\n caseSensitive = false;\n }\n\n if (end === void 0) {\n end = true;\n }\n\n warning(path === \"*\" || !path.endsWith(\"*\") || path.endsWith(\"/*\"), \"Route path \\\"\" + path + \"\\\" will be treated as if it were \" + (\"\\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\" because the `*` character must \") + \"always follow a `/` in the pattern. To get rid of this warning, \" + (\"please change the route path to \\\"\" + path.replace(/\\*$/, \"/*\") + \"\\\".\"));\n let paramNames = [];\n let regexpSource = \"^\" + path.replace(/\\/*\\*?$/, \"\") // Ignore trailing / and /*, we'll handle it below\n .replace(/^\\/*/, \"/\") // Make sure it has a leading /\n .replace(/[\\\\.*+^$?{}|()[\\]]/g, \"\\\\$&\") // Escape special regex chars\n .replace(/\\/:(\\w+)/g, (_, paramName) => {\n paramNames.push(paramName);\n return \"/([^\\\\/]+)\";\n });\n\n if (path.endsWith(\"*\")) {\n paramNames.push(\"*\");\n regexpSource += path === \"*\" || path === \"/*\" ? \"(.*)$\" // Already matched the initial /, just match the rest\n : \"(?:\\\\/(.+)|\\\\/*)$\"; // Don't include the / in params[\"*\"]\n } else if (end) {\n // When matching to the end, ignore trailing slashes\n regexpSource += \"\\\\/*$\";\n } else if (path !== \"\" && path !== \"/\") {\n // If our path is non-empty and contains anything beyond an initial slash,\n // then we have _some_ form of path in our regex so we should expect to\n // match only if we find the end of this path segment. Look for an optional\n // non-captured trailing slash (to match a portion of the URL) or the end\n // of the path (if we've matched to the end). We used to do this with a\n // word boundary but that gives false positives on routes like\n // /user-preferences since `-` counts as a word boundary.\n regexpSource += \"(?:(?=\\\\/|$))\";\n } else ;\n\n let matcher = new RegExp(regexpSource, caseSensitive ? undefined : \"i\");\n return [matcher, paramNames];\n}\n\nfunction safelyDecodeURI(value) {\n try {\n return decodeURI(value);\n } catch (error) {\n warning(false, \"The URL path \\\"\" + value + \"\\\" could not be decoded because it is is a \" + \"malformed URL segment. This is probably due to a bad percent \" + (\"encoding (\" + error + \").\"));\n return value;\n }\n}\n\nfunction safelyDecodeURIComponent(value, paramName) {\n try {\n return decodeURIComponent(value);\n } catch (error) {\n warning(false, \"The value for the URL param \\\"\" + paramName + \"\\\" will not be decoded because\" + (\" the string \\\"\" + value + \"\\\" is a malformed URL segment. This is probably\") + (\" due to a bad percent encoding (\" + error + \").\"));\n return value;\n }\n}\n/**\n * @private\n */\n\n\nfunction stripBasename(pathname, basename) {\n if (basename === \"/\") return pathname;\n\n if (!pathname.toLowerCase().startsWith(basename.toLowerCase())) {\n return null;\n } // We want to leave trailing slash behavior in the user's control, so if they\n // specify a basename with a trailing slash, we should support it\n\n\n let startIndex = basename.endsWith(\"/\") ? basename.length - 1 : basename.length;\n let nextChar = pathname.charAt(startIndex);\n\n if (nextChar && nextChar !== \"/\") {\n // pathname does not start with basename/\n return null;\n }\n\n return pathname.slice(startIndex) || \"/\";\n}\n/**\n * @private\n */\n\nfunction warning(cond, message) {\n if (!cond) {\n // eslint-disable-next-line no-console\n if (typeof console !== \"undefined\") console.warn(message);\n\n try {\n // Welcome to debugging @remix-run/router!\n //\n // This error is thrown as a convenience so you can more easily\n // find the source for a warning that appears in the console by\n // enabling \"pause on exceptions\" in your JavaScript debugger.\n throw new Error(message); // eslint-disable-next-line no-empty\n } catch (e) {}\n }\n}\n/**\n * Returns a resolved path object relative to the given pathname.\n *\n * @see https://reactrouter.com/utils/resolve-path\n */\n\nfunction resolvePath(to, fromPathname) {\n if (fromPathname === void 0) {\n fromPathname = \"/\";\n }\n\n let {\n pathname: toPathname,\n search = \"\",\n hash = \"\"\n } = typeof to === \"string\" ? parsePath(to) : to;\n let pathname = toPathname ? toPathname.startsWith(\"/\") ? toPathname : resolvePathname(toPathname, fromPathname) : fromPathname;\n return {\n pathname,\n search: normalizeSearch(search),\n hash: normalizeHash(hash)\n };\n}\n\nfunction resolvePathname(relativePath, fromPathname) {\n let segments = fromPathname.replace(/\\/+$/, \"\").split(\"/\");\n let relativeSegments = relativePath.split(\"/\");\n relativeSegments.forEach(segment => {\n if (segment === \"..\") {\n // Keep the root \"\" segment so the pathname starts at /\n if (segments.length > 1) segments.pop();\n } else if (segment !== \".\") {\n segments.push(segment);\n }\n });\n return segments.length > 1 ? segments.join(\"/\") : \"/\";\n}\n\nfunction getInvalidPathError(char, field, dest, path) {\n return \"Cannot include a '\" + char + \"' character in a manually specified \" + (\"`to.\" + field + \"` field [\" + JSON.stringify(path) + \"]. Please separate it out to the \") + (\"`to.\" + dest + \"` field. Alternatively you may provide the full path as \") + \"a string in and the router will parse it for you.\";\n}\n/**\n * @private\n *\n * When processing relative navigation we want to ignore ancestor routes that\n * do not contribute to the path, such that index/pathless layout routes don't\n * interfere.\n *\n * For example, when moving a route element into an index route and/or a\n * pathless layout route, relative link behavior contained within should stay\n * the same. Both of the following examples should link back to the root:\n *\n * \n * \n * \n *\n * \n * \n * }> // <-- Does not contribute\n * // <-- Does not contribute\n * \n * \n */\n\n\nfunction getPathContributingMatches(matches) {\n return matches.filter((match, index) => index === 0 || match.route.path && match.route.path.length > 0);\n}\n/**\n * @private\n */\n\nfunction resolveTo(toArg, routePathnames, locationPathname, isPathRelative) {\n if (isPathRelative === void 0) {\n isPathRelative = false;\n }\n\n let to;\n\n if (typeof toArg === \"string\") {\n to = parsePath(toArg);\n } else {\n to = _extends({}, toArg);\n invariant(!to.pathname || !to.pathname.includes(\"?\"), getInvalidPathError(\"?\", \"pathname\", \"search\", to));\n invariant(!to.pathname || !to.pathname.includes(\"#\"), getInvalidPathError(\"#\", \"pathname\", \"hash\", to));\n invariant(!to.search || !to.search.includes(\"#\"), getInvalidPathError(\"#\", \"search\", \"hash\", to));\n }\n\n let isEmptyPath = toArg === \"\" || to.pathname === \"\";\n let toPathname = isEmptyPath ? \"/\" : to.pathname;\n let from; // Routing is relative to the current pathname if explicitly requested.\n //\n // If a pathname is explicitly provided in `to`, it should be relative to the\n // route context. This is explained in `Note on `` values` in our\n // migration guide from v5 as a means of disambiguation between `to` values\n // that begin with `/` and those that do not. However, this is problematic for\n // `to` values that do not provide a pathname. `to` can simply be a search or\n // hash string, in which case we should assume that the navigation is relative\n // to the current location's pathname and *not* the route pathname.\n\n if (isPathRelative || toPathname == null) {\n from = locationPathname;\n } else {\n let routePathnameIndex = routePathnames.length - 1;\n\n if (toPathname.startsWith(\"..\")) {\n let toSegments = toPathname.split(\"/\"); // Each leading .. segment means \"go up one route\" instead of \"go up one\n // URL segment\". This is a key difference from how works and a\n // major reason we call this a \"to\" value instead of a \"href\".\n\n while (toSegments[0] === \"..\") {\n toSegments.shift();\n routePathnameIndex -= 1;\n }\n\n to.pathname = toSegments.join(\"/\");\n } // If there are more \"..\" segments than parent routes, resolve relative to\n // the root / URL.\n\n\n from = routePathnameIndex >= 0 ? routePathnames[routePathnameIndex] : \"/\";\n }\n\n let path = resolvePath(to, from); // Ensure the pathname has a trailing slash if the original \"to\" had one\n\n let hasExplicitTrailingSlash = toPathname && toPathname !== \"/\" && toPathname.endsWith(\"/\"); // Or if this was a link to the current path which has a trailing slash\n\n let hasCurrentTrailingSlash = (isEmptyPath || toPathname === \".\") && locationPathname.endsWith(\"/\");\n\n if (!path.pathname.endsWith(\"/\") && (hasExplicitTrailingSlash || hasCurrentTrailingSlash)) {\n path.pathname += \"/\";\n }\n\n return path;\n}\n/**\n * @private\n */\n\nfunction getToPathname(to) {\n // Empty strings should be treated the same as / paths\n return to === \"\" || to.pathname === \"\" ? \"/\" : typeof to === \"string\" ? parsePath(to).pathname : to.pathname;\n}\n/**\n * @private\n */\n\nconst joinPaths = paths => paths.join(\"/\").replace(/\\/\\/+/g, \"/\");\n/**\n * @private\n */\n\nconst normalizePathname = pathname => pathname.replace(/\\/+$/, \"\").replace(/^\\/*/, \"/\");\n/**\n * @private\n */\n\nconst normalizeSearch = search => !search || search === \"?\" ? \"\" : search.startsWith(\"?\") ? search : \"?\" + search;\n/**\n * @private\n */\n\nconst normalizeHash = hash => !hash || hash === \"#\" ? \"\" : hash.startsWith(\"#\") ? hash : \"#\" + hash;\n/**\n * This is a shortcut for creating `application/json` responses. Converts `data`\n * to JSON and sets the `Content-Type` header.\n */\n\nconst json = function json(data, init) {\n if (init === void 0) {\n init = {};\n }\n\n let responseInit = typeof init === \"number\" ? {\n status: init\n } : init;\n let headers = new Headers(responseInit.headers);\n\n if (!headers.has(\"Content-Type\")) {\n headers.set(\"Content-Type\", \"application/json; charset=utf-8\");\n }\n\n return new Response(JSON.stringify(data), _extends({}, responseInit, {\n headers\n }));\n};\nclass AbortedDeferredError extends Error {}\nclass DeferredData {\n constructor(data, responseInit) {\n this.pendingKeysSet = new Set();\n this.subscribers = new Set();\n this.deferredKeys = [];\n invariant(data && typeof data === \"object\" && !Array.isArray(data), \"defer() only accepts plain objects\"); // Set up an AbortController + Promise we can race against to exit early\n // cancellation\n\n let reject;\n this.abortPromise = new Promise((_, r) => reject = r);\n this.controller = new AbortController();\n\n let onAbort = () => reject(new AbortedDeferredError(\"Deferred data aborted\"));\n\n this.unlistenAbortSignal = () => this.controller.signal.removeEventListener(\"abort\", onAbort);\n\n this.controller.signal.addEventListener(\"abort\", onAbort);\n this.data = Object.entries(data).reduce((acc, _ref) => {\n let [key, value] = _ref;\n return Object.assign(acc, {\n [key]: this.trackPromise(key, value)\n });\n }, {});\n\n if (this.done) {\n // All incoming values were resolved\n this.unlistenAbortSignal();\n }\n\n this.init = responseInit;\n }\n\n trackPromise(key, value) {\n if (!(value instanceof Promise)) {\n return value;\n }\n\n this.deferredKeys.push(key);\n this.pendingKeysSet.add(key); // We store a little wrapper promise that will be extended with\n // _data/_error props upon resolve/reject\n\n let promise = Promise.race([value, this.abortPromise]).then(data => this.onSettle(promise, key, null, data), error => this.onSettle(promise, key, error)); // Register rejection listeners to avoid uncaught promise rejections on\n // errors or aborted deferred values\n\n promise.catch(() => {});\n Object.defineProperty(promise, \"_tracked\", {\n get: () => true\n });\n return promise;\n }\n\n onSettle(promise, key, error, data) {\n if (this.controller.signal.aborted && error instanceof AbortedDeferredError) {\n this.unlistenAbortSignal();\n Object.defineProperty(promise, \"_error\", {\n get: () => error\n });\n return Promise.reject(error);\n }\n\n this.pendingKeysSet.delete(key);\n\n if (this.done) {\n // Nothing left to abort!\n this.unlistenAbortSignal();\n }\n\n if (error) {\n Object.defineProperty(promise, \"_error\", {\n get: () => error\n });\n this.emit(false, key);\n return Promise.reject(error);\n }\n\n Object.defineProperty(promise, \"_data\", {\n get: () => data\n });\n this.emit(false, key);\n return data;\n }\n\n emit(aborted, settledKey) {\n this.subscribers.forEach(subscriber => subscriber(aborted, settledKey));\n }\n\n subscribe(fn) {\n this.subscribers.add(fn);\n return () => this.subscribers.delete(fn);\n }\n\n cancel() {\n this.controller.abort();\n this.pendingKeysSet.forEach((v, k) => this.pendingKeysSet.delete(k));\n this.emit(true);\n }\n\n async resolveData(signal) {\n let aborted = false;\n\n if (!this.done) {\n let onAbort = () => this.cancel();\n\n signal.addEventListener(\"abort\", onAbort);\n aborted = await new Promise(resolve => {\n this.subscribe(aborted => {\n signal.removeEventListener(\"abort\", onAbort);\n\n if (aborted || this.done) {\n resolve(aborted);\n }\n });\n });\n }\n\n return aborted;\n }\n\n get done() {\n return this.pendingKeysSet.size === 0;\n }\n\n get unwrappedData() {\n invariant(this.data !== null && this.done, \"Can only unwrap data on initialized and settled deferreds\");\n return Object.entries(this.data).reduce((acc, _ref2) => {\n let [key, value] = _ref2;\n return Object.assign(acc, {\n [key]: unwrapTrackedPromise(value)\n });\n }, {});\n }\n\n get pendingKeys() {\n return Array.from(this.pendingKeysSet);\n }\n\n}\n\nfunction isTrackedPromise(value) {\n return value instanceof Promise && value._tracked === true;\n}\n\nfunction unwrapTrackedPromise(value) {\n if (!isTrackedPromise(value)) {\n return value;\n }\n\n if (value._error) {\n throw value._error;\n }\n\n return value._data;\n}\n\nconst defer = function defer(data, init) {\n if (init === void 0) {\n init = {};\n }\n\n let responseInit = typeof init === \"number\" ? {\n status: init\n } : init;\n return new DeferredData(data, responseInit);\n};\n/**\n * A redirect response. Sets the status code and the `Location` header.\n * Defaults to \"302 Found\".\n */\n\nconst redirect = function redirect(url, init) {\n if (init === void 0) {\n init = 302;\n }\n\n let responseInit = init;\n\n if (typeof responseInit === \"number\") {\n responseInit = {\n status: responseInit\n };\n } else if (typeof responseInit.status === \"undefined\") {\n responseInit.status = 302;\n }\n\n let headers = new Headers(responseInit.headers);\n headers.set(\"Location\", url);\n return new Response(null, _extends({}, responseInit, {\n headers\n }));\n};\n/**\n * @private\n * Utility class we use to hold auto-unwrapped 4xx/5xx Response bodies\n */\n\nclass ErrorResponse {\n constructor(status, statusText, data, internal) {\n if (internal === void 0) {\n internal = false;\n }\n\n this.status = status;\n this.statusText = statusText || \"\";\n this.internal = internal;\n\n if (data instanceof Error) {\n this.data = data.toString();\n this.error = data;\n } else {\n this.data = data;\n }\n }\n\n}\n/**\n * Check if the given error is an ErrorResponse generated from a 4xx/5xx\n * Response thrown from an action/loader\n */\n\nfunction isRouteErrorResponse(error) {\n return error != null && typeof error.status === \"number\" && typeof error.statusText === \"string\" && typeof error.internal === \"boolean\" && \"data\" in error;\n}\n\nconst validMutationMethodsArr = [\"post\", \"put\", \"patch\", \"delete\"];\nconst validMutationMethods = new Set(validMutationMethodsArr);\nconst validRequestMethodsArr = [\"get\", ...validMutationMethodsArr];\nconst validRequestMethods = new Set(validRequestMethodsArr);\nconst redirectStatusCodes = new Set([301, 302, 303, 307, 308]);\nconst redirectPreserveMethodStatusCodes = new Set([307, 308]);\nconst IDLE_NAVIGATION = {\n state: \"idle\",\n location: undefined,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined\n};\nconst IDLE_FETCHER = {\n state: \"idle\",\n data: undefined,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined\n};\nconst IDLE_BLOCKER = {\n state: \"unblocked\",\n proceed: undefined,\n reset: undefined,\n location: undefined\n};\nconst ABSOLUTE_URL_REGEX = /^(?:[a-z][a-z0-9+.-]*:|\\/\\/)/i;\nconst isBrowser = typeof window !== \"undefined\" && typeof window.document !== \"undefined\" && typeof window.document.createElement !== \"undefined\";\nconst isServer = !isBrowser; //#endregion\n////////////////////////////////////////////////////////////////////////////////\n//#region createRouter\n////////////////////////////////////////////////////////////////////////////////\n\n/**\n * Create a router and listen to history POP navigations\n */\n\nfunction createRouter(init) {\n invariant(init.routes.length > 0, \"You must provide a non-empty routes array to createRouter\");\n let dataRoutes = convertRoutesToDataRoutes(init.routes); // Cleanup function for history\n\n let unlistenHistory = null; // Externally-provided functions to call on all state changes\n\n let subscribers = new Set(); // Externally-provided object to hold scroll restoration locations during routing\n\n let savedScrollPositions = null; // Externally-provided function to get scroll restoration keys\n\n let getScrollRestorationKey = null; // Externally-provided function to get current scroll position\n\n let getScrollPosition = null; // One-time flag to control the initial hydration scroll restoration. Because\n // we don't get the saved positions from until _after_\n // the initial render, we need to manually trigger a separate updateState to\n // send along the restoreScrollPosition\n // Set to true if we have `hydrationData` since we assume we were SSR'd and that\n // SSR did the initial scroll restoration.\n\n let initialScrollRestored = init.hydrationData != null;\n let initialMatches = matchRoutes(dataRoutes, init.history.location, init.basename);\n let initialErrors = null;\n\n if (initialMatches == null) {\n // If we do not match a user-provided-route, fall back to the root\n // to allow the error boundary to take over\n let error = getInternalRouterError(404, {\n pathname: init.history.location.pathname\n });\n let {\n matches,\n route\n } = getShortCircuitMatches(dataRoutes);\n initialMatches = matches;\n initialErrors = {\n [route.id]: error\n };\n }\n\n let initialized = !initialMatches.some(m => m.route.loader) || init.hydrationData != null;\n let router;\n let state = {\n historyAction: init.history.action,\n location: init.history.location,\n matches: initialMatches,\n initialized,\n navigation: IDLE_NAVIGATION,\n // Don't restore on initial updateState() if we were SSR'd\n restoreScrollPosition: init.hydrationData != null ? false : null,\n preventScrollReset: false,\n revalidation: \"idle\",\n loaderData: init.hydrationData && init.hydrationData.loaderData || {},\n actionData: init.hydrationData && init.hydrationData.actionData || null,\n errors: init.hydrationData && init.hydrationData.errors || initialErrors,\n fetchers: new Map(),\n blockers: new Map()\n }; // -- Stateful internal variables to manage navigations --\n // Current navigation in progress (to be committed in completeNavigation)\n\n let pendingAction = Action.Pop; // Should the current navigation prevent the scroll reset if scroll cannot\n // be restored?\n\n let pendingPreventScrollReset = false; // AbortController for the active navigation\n\n let pendingNavigationController; // We use this to avoid touching history in completeNavigation if a\n // revalidation is entirely uninterrupted\n\n let isUninterruptedRevalidation = false; // Use this internal flag to force revalidation of all loaders:\n // - submissions (completed or interrupted)\n // - useRevalidate()\n // - X-Remix-Revalidate (from redirect)\n\n let isRevalidationRequired = false; // Use this internal array to capture routes that require revalidation due\n // to a cancelled deferred on action submission\n\n let cancelledDeferredRoutes = []; // Use this internal array to capture fetcher loads that were cancelled by an\n // action navigation and require revalidation\n\n let cancelledFetcherLoads = []; // AbortControllers for any in-flight fetchers\n\n let fetchControllers = new Map(); // Track loads based on the order in which they started\n\n let incrementingLoadId = 0; // Track the outstanding pending navigation data load to be compared against\n // the globally incrementing load when a fetcher load lands after a completed\n // navigation\n\n let pendingNavigationLoadId = -1; // Fetchers that triggered data reloads as a result of their actions\n\n let fetchReloadIds = new Map(); // Fetchers that triggered redirect navigations from their actions\n\n let fetchRedirectIds = new Set(); // Most recent href/match for fetcher.load calls for fetchers\n\n let fetchLoadMatches = new Map(); // Store DeferredData instances for active route matches. When a\n // route loader returns defer() we stick one in here. Then, when a nested\n // promise resolves we update loaderData. If a new navigation starts we\n // cancel active deferreds for eliminated routes.\n\n let activeDeferreds = new Map(); // Store blocker functions in a separate Map outside of router state since\n // we don't need to update UI state if they change\n\n let blockerFunctions = new Map(); // Flag to ignore the next history update, so we can revert the URL change on\n // a POP navigation that was blocked by the user without touching router state\n\n let ignoreNextHistoryUpdate = false; // Initialize the router, all side effects should be kicked off from here.\n // Implemented as a Fluent API for ease of:\n // let router = createRouter(init).initialize();\n\n function initialize() {\n // If history informs us of a POP navigation, start the navigation but do not update\n // state. We'll update our own state once the navigation completes\n unlistenHistory = init.history.listen(_ref => {\n let {\n action: historyAction,\n location,\n delta\n } = _ref;\n\n // Ignore this event if it was just us resetting the URL from a\n // blocked POP navigation\n if (ignoreNextHistoryUpdate) {\n ignoreNextHistoryUpdate = false;\n return;\n }\n\n warning(blockerFunctions.size === 0 || delta != null, \"You are trying to use a blocker on a POP navigation to a location \" + \"that was not created by @remix-run/router. This will fail silently in \" + \"production. This can happen if you are navigating outside the router \" + \"via `window.history.pushState`/`window.location.hash` instead of using \" + \"router navigation APIs. This can also happen if you are using \" + \"createHashRouter and the user manually changes the URL.\");\n let blockerKey = shouldBlockNavigation({\n currentLocation: state.location,\n nextLocation: location,\n historyAction\n });\n\n if (blockerKey && delta != null) {\n // Restore the URL to match the current UI, but don't update router state\n ignoreNextHistoryUpdate = true;\n init.history.go(delta * -1); // Put the blocker into a blocked state\n\n updateBlocker(blockerKey, {\n state: \"blocked\",\n location,\n\n proceed() {\n updateBlocker(blockerKey, {\n state: \"proceeding\",\n proceed: undefined,\n reset: undefined,\n location\n }); // Re-do the same POP navigation we just blocked\n\n init.history.go(delta);\n },\n\n reset() {\n deleteBlocker(blockerKey);\n updateState({\n blockers: new Map(router.state.blockers)\n });\n }\n\n });\n return;\n }\n\n return startNavigation(historyAction, location);\n }); // Kick off initial data load if needed. Use Pop to avoid modifying history\n\n if (!state.initialized) {\n startNavigation(Action.Pop, state.location);\n }\n\n return router;\n } // Clean up a router and it's side effects\n\n\n function dispose() {\n if (unlistenHistory) {\n unlistenHistory();\n }\n\n subscribers.clear();\n pendingNavigationController && pendingNavigationController.abort();\n state.fetchers.forEach((_, key) => deleteFetcher(key));\n state.blockers.forEach((_, key) => deleteBlocker(key));\n } // Subscribe to state updates for the router\n\n\n function subscribe(fn) {\n subscribers.add(fn);\n return () => subscribers.delete(fn);\n } // Update our state and notify the calling context of the change\n\n\n function updateState(newState) {\n state = _extends({}, state, newState);\n subscribers.forEach(subscriber => subscriber(state));\n } // Complete a navigation returning the state.navigation back to the IDLE_NAVIGATION\n // and setting state.[historyAction/location/matches] to the new route.\n // - Location is a required param\n // - Navigation will always be set to IDLE_NAVIGATION\n // - Can pass any other state in newState\n\n\n function completeNavigation(location, newState) {\n var _location$state, _location$state2;\n\n // Deduce if we're in a loading/actionReload state:\n // - We have committed actionData in the store\n // - The current navigation was a mutation submission\n // - We're past the submitting state and into the loading state\n // - The location being loaded is not the result of a redirect\n let isActionReload = state.actionData != null && state.navigation.formMethod != null && isMutationMethod(state.navigation.formMethod) && state.navigation.state === \"loading\" && ((_location$state = location.state) == null ? void 0 : _location$state._isRedirect) !== true;\n let actionData;\n\n if (newState.actionData) {\n if (Object.keys(newState.actionData).length > 0) {\n actionData = newState.actionData;\n } else {\n // Empty actionData -> clear prior actionData due to an action error\n actionData = null;\n }\n } else if (isActionReload) {\n // Keep the current data if we're wrapping up the action reload\n actionData = state.actionData;\n } else {\n // Clear actionData on any other completed navigations\n actionData = null;\n } // Always preserve any existing loaderData from re-used routes\n\n\n let loaderData = newState.loaderData ? mergeLoaderData(state.loaderData, newState.loaderData, newState.matches || [], newState.errors) : state.loaderData; // On a successful navigation we can assume we got through all blockers\n // so we can start fresh\n\n for (let [key] of blockerFunctions) {\n deleteBlocker(key);\n } // Always respect the user flag. Otherwise don't reset on mutation\n // submission navigations unless they redirect\n\n\n let preventScrollReset = pendingPreventScrollReset === true || state.navigation.formMethod != null && isMutationMethod(state.navigation.formMethod) && ((_location$state2 = location.state) == null ? void 0 : _location$state2._isRedirect) !== true;\n updateState(_extends({}, newState, {\n actionData,\n loaderData,\n historyAction: pendingAction,\n location,\n initialized: true,\n navigation: IDLE_NAVIGATION,\n revalidation: \"idle\",\n restoreScrollPosition: getSavedScrollPosition(location, newState.matches || state.matches),\n preventScrollReset,\n blockers: new Map(state.blockers)\n }));\n\n if (isUninterruptedRevalidation) ; else if (pendingAction === Action.Pop) ; else if (pendingAction === Action.Push) {\n init.history.push(location, location.state);\n } else if (pendingAction === Action.Replace) {\n init.history.replace(location, location.state);\n } // Reset stateful navigation vars\n\n\n pendingAction = Action.Pop;\n pendingPreventScrollReset = false;\n isUninterruptedRevalidation = false;\n isRevalidationRequired = false;\n cancelledDeferredRoutes = [];\n cancelledFetcherLoads = [];\n } // Trigger a navigation event, which can either be a numerical POP or a PUSH\n // replace with an optional submission\n\n\n async function navigate(to, opts) {\n if (typeof to === \"number\") {\n init.history.go(to);\n return;\n }\n\n let {\n path,\n submission,\n error\n } = normalizeNavigateOptions(to, opts);\n let currentLocation = state.location;\n let nextLocation = createLocation(state.location, path, opts && opts.state); // When using navigate as a PUSH/REPLACE we aren't reading an already-encoded\n // URL from window.location, so we need to encode it here so the behavior\n // remains the same as POP and non-data-router usages. new URL() does all\n // the same encoding we'd get from a history.pushState/window.location read\n // without having to touch history\n\n nextLocation = _extends({}, nextLocation, init.history.encodeLocation(nextLocation));\n let userReplace = opts && opts.replace != null ? opts.replace : undefined;\n let historyAction = Action.Push;\n\n if (userReplace === true) {\n historyAction = Action.Replace;\n } else if (userReplace === false) ; else if (submission != null && isMutationMethod(submission.formMethod) && submission.formAction === state.location.pathname + state.location.search) {\n // By default on submissions to the current location we REPLACE so that\n // users don't have to double-click the back button to get to the prior\n // location. If the user redirects to a different location from the\n // action/loader this will be ignored and the redirect will be a PUSH\n historyAction = Action.Replace;\n }\n\n let preventScrollReset = opts && \"preventScrollReset\" in opts ? opts.preventScrollReset === true : undefined;\n let blockerKey = shouldBlockNavigation({\n currentLocation,\n nextLocation,\n historyAction\n });\n\n if (blockerKey) {\n // Put the blocker into a blocked state\n updateBlocker(blockerKey, {\n state: \"blocked\",\n location: nextLocation,\n\n proceed() {\n updateBlocker(blockerKey, {\n state: \"proceeding\",\n proceed: undefined,\n reset: undefined,\n location: nextLocation\n }); // Send the same navigation through\n\n navigate(to, opts);\n },\n\n reset() {\n deleteBlocker(blockerKey);\n updateState({\n blockers: new Map(state.blockers)\n });\n }\n\n });\n return;\n }\n\n return await startNavigation(historyAction, nextLocation, {\n submission,\n // Send through the formData serialization error if we have one so we can\n // render at the right error boundary after we match routes\n pendingError: error,\n preventScrollReset,\n replace: opts && opts.replace\n });\n } // Revalidate all current loaders. If a navigation is in progress or if this\n // is interrupted by a navigation, allow this to \"succeed\" by calling all\n // loaders during the next loader round\n\n\n function revalidate() {\n interruptActiveLoads();\n updateState({\n revalidation: \"loading\"\n }); // If we're currently submitting an action, we don't need to start a new\n // navigation, we'll just let the follow up loader execution call all loaders\n\n if (state.navigation.state === \"submitting\") {\n return;\n } // If we're currently in an idle state, start a new navigation for the current\n // action/location and mark it as uninterrupted, which will skip the history\n // update in completeNavigation\n\n\n if (state.navigation.state === \"idle\") {\n startNavigation(state.historyAction, state.location, {\n startUninterruptedRevalidation: true\n });\n return;\n } // Otherwise, if we're currently in a loading state, just start a new\n // navigation to the navigation.location but do not trigger an uninterrupted\n // revalidation so that history correctly updates once the navigation completes\n\n\n startNavigation(pendingAction || state.historyAction, state.navigation.location, {\n overrideNavigation: state.navigation\n });\n } // Start a navigation to the given action/location. Can optionally provide a\n // overrideNavigation which will override the normalLoad in the case of a redirect\n // navigation\n\n\n async function startNavigation(historyAction, location, opts) {\n // Abort any in-progress navigations and start a new one. Unset any ongoing\n // uninterrupted revalidations unless told otherwise, since we want this\n // new navigation to update history normally\n pendingNavigationController && pendingNavigationController.abort();\n pendingNavigationController = null;\n pendingAction = historyAction;\n isUninterruptedRevalidation = (opts && opts.startUninterruptedRevalidation) === true; // Save the current scroll position every time we start a new navigation,\n // and track whether we should reset scroll on completion\n\n saveScrollPosition(state.location, state.matches);\n pendingPreventScrollReset = (opts && opts.preventScrollReset) === true;\n let loadingNavigation = opts && opts.overrideNavigation;\n let matches = matchRoutes(dataRoutes, location, init.basename); // Short circuit with a 404 on the root error boundary if we match nothing\n\n if (!matches) {\n let error = getInternalRouterError(404, {\n pathname: location.pathname\n });\n let {\n matches: notFoundMatches,\n route\n } = getShortCircuitMatches(dataRoutes); // Cancel all pending deferred on 404s since we don't keep any routes\n\n cancelActiveDeferreds();\n completeNavigation(location, {\n matches: notFoundMatches,\n loaderData: {},\n errors: {\n [route.id]: error\n }\n });\n return;\n } // Short circuit if it's only a hash change and not a mutation submission\n // For example, on /page#hash and submit a
which will\n // default to a navigation to /page\n\n\n if (isHashChangeOnly(state.location, location) && !(opts && opts.submission && isMutationMethod(opts.submission.formMethod))) {\n completeNavigation(location, {\n matches\n });\n return;\n } // Create a controller/Request for this navigation\n\n\n pendingNavigationController = new AbortController();\n let request = createClientSideRequest(init.history, location, pendingNavigationController.signal, opts && opts.submission);\n let pendingActionData;\n let pendingError;\n\n if (opts && opts.pendingError) {\n // If we have a pendingError, it means the user attempted a GET submission\n // with binary FormData so assign here and skip to handleLoaders. That\n // way we handle calling loaders above the boundary etc. It's not really\n // different from an actionError in that sense.\n pendingError = {\n [findNearestBoundary(matches).route.id]: opts.pendingError\n };\n } else if (opts && opts.submission && isMutationMethod(opts.submission.formMethod)) {\n // Call action if we received an action submission\n let actionOutput = await handleAction(request, location, opts.submission, matches, {\n replace: opts.replace\n });\n\n if (actionOutput.shortCircuited) {\n return;\n }\n\n pendingActionData = actionOutput.pendingActionData;\n pendingError = actionOutput.pendingActionError;\n\n let navigation = _extends({\n state: \"loading\",\n location\n }, opts.submission);\n\n loadingNavigation = navigation; // Create a GET request for the loaders\n\n request = new Request(request.url, {\n signal: request.signal\n });\n } // Call loaders\n\n\n let {\n shortCircuited,\n loaderData,\n errors\n } = await handleLoaders(request, location, matches, loadingNavigation, opts && opts.submission, opts && opts.replace, pendingActionData, pendingError);\n\n if (shortCircuited) {\n return;\n } // Clean up now that the action/loaders have completed. Don't clean up if\n // we short circuited because pendingNavigationController will have already\n // been assigned to a new controller for the next navigation\n\n\n pendingNavigationController = null;\n completeNavigation(location, _extends({\n matches\n }, pendingActionData ? {\n actionData: pendingActionData\n } : {}, {\n loaderData,\n errors\n }));\n } // Call the action matched by the leaf route for this navigation and handle\n // redirects/errors\n\n\n async function handleAction(request, location, submission, matches, opts) {\n interruptActiveLoads(); // Put us in a submitting state\n\n let navigation = _extends({\n state: \"submitting\",\n location\n }, submission);\n\n updateState({\n navigation\n }); // Call our action and get the result\n\n let result;\n let actionMatch = getTargetMatch(matches, location);\n\n if (!actionMatch.route.action) {\n result = {\n type: ResultType.error,\n error: getInternalRouterError(405, {\n method: request.method,\n pathname: location.pathname,\n routeId: actionMatch.route.id\n })\n };\n } else {\n result = await callLoaderOrAction(\"action\", request, actionMatch, matches, router.basename);\n\n if (request.signal.aborted) {\n return {\n shortCircuited: true\n };\n }\n }\n\n if (isRedirectResult(result)) {\n let replace;\n\n if (opts && opts.replace != null) {\n replace = opts.replace;\n } else {\n // If the user didn't explicity indicate replace behavior, replace if\n // we redirected to the exact same location we're currently at to avoid\n // double back-buttons\n replace = result.location === state.location.pathname + state.location.search;\n }\n\n await startRedirectNavigation(state, result, {\n submission,\n replace\n });\n return {\n shortCircuited: true\n };\n }\n\n if (isErrorResult(result)) {\n // Store off the pending error - we use it to determine which loaders\n // to call and will commit it when we complete the navigation\n let boundaryMatch = findNearestBoundary(matches, actionMatch.route.id); // By default, all submissions are REPLACE navigations, but if the\n // action threw an error that'll be rendered in an errorElement, we fall\n // back to PUSH so that the user can use the back button to get back to\n // the pre-submission form location to try again\n\n if ((opts && opts.replace) !== true) {\n pendingAction = Action.Push;\n }\n\n return {\n // Send back an empty object we can use to clear out any prior actionData\n pendingActionData: {},\n pendingActionError: {\n [boundaryMatch.route.id]: result.error\n }\n };\n }\n\n if (isDeferredResult(result)) {\n throw getInternalRouterError(400, {\n type: \"defer-action\"\n });\n }\n\n return {\n pendingActionData: {\n [actionMatch.route.id]: result.data\n }\n };\n } // Call all applicable loaders for the given matches, handling redirects,\n // errors, etc.\n\n\n async function handleLoaders(request, location, matches, overrideNavigation, submission, replace, pendingActionData, pendingError) {\n // Figure out the right navigation we want to use for data loading\n let loadingNavigation = overrideNavigation;\n\n if (!loadingNavigation) {\n let navigation = _extends({\n state: \"loading\",\n location,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined\n }, submission);\n\n loadingNavigation = navigation;\n } // If this was a redirect from an action we don't have a \"submission\" but\n // we have it on the loading navigation so use that if available\n\n\n let activeSubmission = submission ? submission : loadingNavigation.formMethod && loadingNavigation.formAction && loadingNavigation.formData && loadingNavigation.formEncType ? {\n formMethod: loadingNavigation.formMethod,\n formAction: loadingNavigation.formAction,\n formData: loadingNavigation.formData,\n formEncType: loadingNavigation.formEncType\n } : undefined;\n let [matchesToLoad, revalidatingFetchers] = getMatchesToLoad(init.history, state, matches, activeSubmission, location, isRevalidationRequired, cancelledDeferredRoutes, cancelledFetcherLoads, pendingActionData, pendingError, fetchLoadMatches); // Cancel pending deferreds for no-longer-matched routes or routes we're\n // about to reload. Note that if this is an action reload we would have\n // already cancelled all pending deferreds so this would be a no-op\n\n cancelActiveDeferreds(routeId => !(matches && matches.some(m => m.route.id === routeId)) || matchesToLoad && matchesToLoad.some(m => m.route.id === routeId)); // Short circuit if we have no loaders to run\n\n if (matchesToLoad.length === 0 && revalidatingFetchers.length === 0) {\n completeNavigation(location, _extends({\n matches,\n loaderData: {},\n // Commit pending error if we're short circuiting\n errors: pendingError || null\n }, pendingActionData ? {\n actionData: pendingActionData\n } : {}));\n return {\n shortCircuited: true\n };\n } // If this is an uninterrupted revalidation, we remain in our current idle\n // state. If not, we need to switch to our loading state and load data,\n // preserving any new action data or existing action data (in the case of\n // a revalidation interrupting an actionReload)\n\n\n if (!isUninterruptedRevalidation) {\n revalidatingFetchers.forEach(rf => {\n let fetcher = state.fetchers.get(rf.key);\n let revalidatingFetcher = {\n state: \"loading\",\n data: fetcher && fetcher.data,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n \" _hasFetcherDoneAnything \": true\n };\n state.fetchers.set(rf.key, revalidatingFetcher);\n });\n let actionData = pendingActionData || state.actionData;\n updateState(_extends({\n navigation: loadingNavigation\n }, actionData ? Object.keys(actionData).length === 0 ? {\n actionData: null\n } : {\n actionData\n } : {}, revalidatingFetchers.length > 0 ? {\n fetchers: new Map(state.fetchers)\n } : {}));\n }\n\n pendingNavigationLoadId = ++incrementingLoadId;\n revalidatingFetchers.forEach(rf => fetchControllers.set(rf.key, pendingNavigationController));\n let {\n results,\n loaderResults,\n fetcherResults\n } = await callLoadersAndMaybeResolveData(state.matches, matches, matchesToLoad, revalidatingFetchers, request);\n\n if (request.signal.aborted) {\n return {\n shortCircuited: true\n };\n } // Clean up _after_ loaders have completed. Don't clean up if we short\n // circuited because fetchControllers would have been aborted and\n // reassigned to new controllers for the next navigation\n\n\n revalidatingFetchers.forEach(rf => fetchControllers.delete(rf.key)); // If any loaders returned a redirect Response, start a new REPLACE navigation\n\n let redirect = findRedirect(results);\n\n if (redirect) {\n await startRedirectNavigation(state, redirect, {\n replace\n });\n return {\n shortCircuited: true\n };\n } // Process and commit output from loaders\n\n\n let {\n loaderData,\n errors\n } = processLoaderData(state, matches, matchesToLoad, loaderResults, pendingError, revalidatingFetchers, fetcherResults, activeDeferreds); // Wire up subscribers to update loaderData as promises settle\n\n activeDeferreds.forEach((deferredData, routeId) => {\n deferredData.subscribe(aborted => {\n // Note: No need to updateState here since the TrackedPromise on\n // loaderData is stable across resolve/reject\n // Remove this instance if we were aborted or if promises have settled\n if (aborted || deferredData.done) {\n activeDeferreds.delete(routeId);\n }\n });\n });\n markFetchRedirectsDone();\n let didAbortFetchLoads = abortStaleFetchLoads(pendingNavigationLoadId);\n return _extends({\n loaderData,\n errors\n }, didAbortFetchLoads || revalidatingFetchers.length > 0 ? {\n fetchers: new Map(state.fetchers)\n } : {});\n }\n\n function getFetcher(key) {\n return state.fetchers.get(key) || IDLE_FETCHER;\n } // Trigger a fetcher load/submit for the given fetcher key\n\n\n function fetch(key, routeId, href, opts) {\n if (isServer) {\n throw new Error(\"router.fetch() was called during the server render, but it shouldn't be. \" + \"You are likely calling a useFetcher() method in the body of your component. \" + \"Try moving it to a useEffect or a callback.\");\n }\n\n if (fetchControllers.has(key)) abortFetcher(key);\n let matches = matchRoutes(dataRoutes, href, init.basename);\n\n if (!matches) {\n setFetcherError(key, routeId, getInternalRouterError(404, {\n pathname: href\n }));\n return;\n }\n\n let {\n path,\n submission\n } = normalizeNavigateOptions(href, opts, true);\n let match = getTargetMatch(matches, path);\n pendingPreventScrollReset = (opts && opts.preventScrollReset) === true;\n\n if (submission && isMutationMethod(submission.formMethod)) {\n handleFetcherAction(key, routeId, path, match, matches, submission);\n return;\n } // Store off the match so we can call it's shouldRevalidate on subsequent\n // revalidations\n\n\n fetchLoadMatches.set(key, {\n routeId,\n path,\n match,\n matches\n });\n handleFetcherLoader(key, routeId, path, match, matches, submission);\n } // Call the action for the matched fetcher.submit(), and then handle redirects,\n // errors, and revalidation\n\n\n async function handleFetcherAction(key, routeId, path, match, requestMatches, submission) {\n interruptActiveLoads();\n fetchLoadMatches.delete(key);\n\n if (!match.route.action) {\n let error = getInternalRouterError(405, {\n method: submission.formMethod,\n pathname: path,\n routeId: routeId\n });\n setFetcherError(key, routeId, error);\n return;\n } // Put this fetcher into it's submitting state\n\n\n let existingFetcher = state.fetchers.get(key);\n\n let fetcher = _extends({\n state: \"submitting\"\n }, submission, {\n data: existingFetcher && existingFetcher.data,\n \" _hasFetcherDoneAnything \": true\n });\n\n state.fetchers.set(key, fetcher);\n updateState({\n fetchers: new Map(state.fetchers)\n }); // Call the action for the fetcher\n\n let abortController = new AbortController();\n let fetchRequest = createClientSideRequest(init.history, path, abortController.signal, submission);\n fetchControllers.set(key, abortController);\n let actionResult = await callLoaderOrAction(\"action\", fetchRequest, match, requestMatches, router.basename);\n\n if (fetchRequest.signal.aborted) {\n // We can delete this so long as we weren't aborted by ou our own fetcher\n // re-submit which would have put _new_ controller is in fetchControllers\n if (fetchControllers.get(key) === abortController) {\n fetchControllers.delete(key);\n }\n\n return;\n }\n\n if (isRedirectResult(actionResult)) {\n fetchControllers.delete(key);\n fetchRedirectIds.add(key);\n\n let loadingFetcher = _extends({\n state: \"loading\"\n }, submission, {\n data: undefined,\n \" _hasFetcherDoneAnything \": true\n });\n\n state.fetchers.set(key, loadingFetcher);\n updateState({\n fetchers: new Map(state.fetchers)\n });\n return startRedirectNavigation(state, actionResult, {\n isFetchActionRedirect: true\n });\n } // Process any non-redirect errors thrown\n\n\n if (isErrorResult(actionResult)) {\n setFetcherError(key, routeId, actionResult.error);\n return;\n }\n\n if (isDeferredResult(actionResult)) {\n throw getInternalRouterError(400, {\n type: \"defer-action\"\n });\n } // Start the data load for current matches, or the next location if we're\n // in the middle of a navigation\n\n\n let nextLocation = state.navigation.location || state.location;\n let revalidationRequest = createClientSideRequest(init.history, nextLocation, abortController.signal);\n let matches = state.navigation.state !== \"idle\" ? matchRoutes(dataRoutes, state.navigation.location, init.basename) : state.matches;\n invariant(matches, \"Didn't find any matches after fetcher action\");\n let loadId = ++incrementingLoadId;\n fetchReloadIds.set(key, loadId);\n\n let loadFetcher = _extends({\n state: \"loading\",\n data: actionResult.data\n }, submission, {\n \" _hasFetcherDoneAnything \": true\n });\n\n state.fetchers.set(key, loadFetcher);\n let [matchesToLoad, revalidatingFetchers] = getMatchesToLoad(init.history, state, matches, submission, nextLocation, isRevalidationRequired, cancelledDeferredRoutes, cancelledFetcherLoads, {\n [match.route.id]: actionResult.data\n }, undefined, // No need to send through errors since we short circuit above\n fetchLoadMatches); // Put all revalidating fetchers into the loading state, except for the\n // current fetcher which we want to keep in it's current loading state which\n // contains it's action submission info + action data\n\n revalidatingFetchers.filter(rf => rf.key !== key).forEach(rf => {\n let staleKey = rf.key;\n let existingFetcher = state.fetchers.get(staleKey);\n let revalidatingFetcher = {\n state: \"loading\",\n data: existingFetcher && existingFetcher.data,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n \" _hasFetcherDoneAnything \": true\n };\n state.fetchers.set(staleKey, revalidatingFetcher);\n fetchControllers.set(staleKey, abortController);\n });\n updateState({\n fetchers: new Map(state.fetchers)\n });\n let {\n results,\n loaderResults,\n fetcherResults\n } = await callLoadersAndMaybeResolveData(state.matches, matches, matchesToLoad, revalidatingFetchers, revalidationRequest);\n\n if (abortController.signal.aborted) {\n return;\n }\n\n fetchReloadIds.delete(key);\n fetchControllers.delete(key);\n revalidatingFetchers.forEach(r => fetchControllers.delete(r.key));\n let redirect = findRedirect(results);\n\n if (redirect) {\n return startRedirectNavigation(state, redirect);\n } // Process and commit output from loaders\n\n\n let {\n loaderData,\n errors\n } = processLoaderData(state, state.matches, matchesToLoad, loaderResults, undefined, revalidatingFetchers, fetcherResults, activeDeferreds);\n let doneFetcher = {\n state: \"idle\",\n data: actionResult.data,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n \" _hasFetcherDoneAnything \": true\n };\n state.fetchers.set(key, doneFetcher);\n let didAbortFetchLoads = abortStaleFetchLoads(loadId); // If we are currently in a navigation loading state and this fetcher is\n // more recent than the navigation, we want the newer data so abort the\n // navigation and complete it with the fetcher data\n\n if (state.navigation.state === \"loading\" && loadId > pendingNavigationLoadId) {\n invariant(pendingAction, \"Expected pending action\");\n pendingNavigationController && pendingNavigationController.abort();\n completeNavigation(state.navigation.location, {\n matches,\n loaderData,\n errors,\n fetchers: new Map(state.fetchers)\n });\n } else {\n // otherwise just update with the fetcher data, preserving any existing\n // loaderData for loaders that did not need to reload. We have to\n // manually merge here since we aren't going through completeNavigation\n updateState(_extends({\n errors,\n loaderData: mergeLoaderData(state.loaderData, loaderData, matches, errors)\n }, didAbortFetchLoads ? {\n fetchers: new Map(state.fetchers)\n } : {}));\n isRevalidationRequired = false;\n }\n } // Call the matched loader for fetcher.load(), handling redirects, errors, etc.\n\n\n async function handleFetcherLoader(key, routeId, path, match, matches, submission) {\n let existingFetcher = state.fetchers.get(key); // Put this fetcher into it's loading state\n\n let loadingFetcher = _extends({\n state: \"loading\",\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined\n }, submission, {\n data: existingFetcher && existingFetcher.data,\n \" _hasFetcherDoneAnything \": true\n });\n\n state.fetchers.set(key, loadingFetcher);\n updateState({\n fetchers: new Map(state.fetchers)\n }); // Call the loader for this fetcher route match\n\n let abortController = new AbortController();\n let fetchRequest = createClientSideRequest(init.history, path, abortController.signal);\n fetchControllers.set(key, abortController);\n let result = await callLoaderOrAction(\"loader\", fetchRequest, match, matches, router.basename); // Deferred isn't supported for fetcher loads, await everything and treat it\n // as a normal load. resolveDeferredData will return undefined if this\n // fetcher gets aborted, so we just leave result untouched and short circuit\n // below if that happens\n\n if (isDeferredResult(result)) {\n result = (await resolveDeferredData(result, fetchRequest.signal, true)) || result;\n } // We can delete this so long as we weren't aborted by ou our own fetcher\n // re-load which would have put _new_ controller is in fetchControllers\n\n\n if (fetchControllers.get(key) === abortController) {\n fetchControllers.delete(key);\n }\n\n if (fetchRequest.signal.aborted) {\n return;\n } // If the loader threw a redirect Response, start a new REPLACE navigation\n\n\n if (isRedirectResult(result)) {\n await startRedirectNavigation(state, result);\n return;\n } // Process any non-redirect errors thrown\n\n\n if (isErrorResult(result)) {\n let boundaryMatch = findNearestBoundary(state.matches, routeId);\n state.fetchers.delete(key); // TODO: In remix, this would reset to IDLE_NAVIGATION if it was a catch -\n // do we need to behave any differently with our non-redirect errors?\n // What if it was a non-redirect Response?\n\n updateState({\n fetchers: new Map(state.fetchers),\n errors: {\n [boundaryMatch.route.id]: result.error\n }\n });\n return;\n }\n\n invariant(!isDeferredResult(result), \"Unhandled fetcher deferred data\"); // Put the fetcher back into an idle state\n\n let doneFetcher = {\n state: \"idle\",\n data: result.data,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n \" _hasFetcherDoneAnything \": true\n };\n state.fetchers.set(key, doneFetcher);\n updateState({\n fetchers: new Map(state.fetchers)\n });\n }\n /**\n * Utility function to handle redirects returned from an action or loader.\n * Normally, a redirect \"replaces\" the navigation that triggered it. So, for\n * example:\n *\n * - user is on /a\n * - user clicks a link to /b\n * - loader for /b redirects to /c\n *\n * In a non-JS app the browser would track the in-flight navigation to /b and\n * then replace it with /c when it encountered the redirect response. In\n * the end it would only ever update the URL bar with /c.\n *\n * In client-side routing using pushState/replaceState, we aim to emulate\n * this behavior and we also do not update history until the end of the\n * navigation (including processed redirects). This means that we never\n * actually touch history until we've processed redirects, so we just use\n * the history action from the original navigation (PUSH or REPLACE).\n */\n\n\n async function startRedirectNavigation(state, redirect, _temp) {\n var _window;\n\n let {\n submission,\n replace,\n isFetchActionRedirect\n } = _temp === void 0 ? {} : _temp;\n\n if (redirect.revalidate) {\n isRevalidationRequired = true;\n }\n\n let redirectLocation = createLocation(state.location, redirect.location, // TODO: This can be removed once we get rid of useTransition in Remix v2\n _extends({\n _isRedirect: true\n }, isFetchActionRedirect ? {\n _isFetchActionRedirect: true\n } : {}));\n invariant(redirectLocation, \"Expected a location on the redirect navigation\"); // Check if this an absolute external redirect that goes to a new origin\n\n if (ABSOLUTE_URL_REGEX.test(redirect.location) && isBrowser && typeof ((_window = window) == null ? void 0 : _window.location) !== \"undefined\") {\n let newOrigin = init.history.createURL(redirect.location).origin;\n\n if (window.location.origin !== newOrigin) {\n if (replace) {\n window.location.replace(redirect.location);\n } else {\n window.location.assign(redirect.location);\n }\n\n return;\n }\n } // There's no need to abort on redirects, since we don't detect the\n // redirect until the action/loaders have settled\n\n\n pendingNavigationController = null;\n let redirectHistoryAction = replace === true ? Action.Replace : Action.Push; // Use the incoming submission if provided, fallback on the active one in\n // state.navigation\n\n let {\n formMethod,\n formAction,\n formEncType,\n formData\n } = state.navigation;\n\n if (!submission && formMethod && formAction && formData && formEncType) {\n submission = {\n formMethod,\n formAction,\n formEncType,\n formData\n };\n } // If this was a 307/308 submission we want to preserve the HTTP method and\n // re-submit the GET/POST/PUT/PATCH/DELETE as a submission navigation to the\n // redirected location\n\n\n if (redirectPreserveMethodStatusCodes.has(redirect.status) && submission && isMutationMethod(submission.formMethod)) {\n await startNavigation(redirectHistoryAction, redirectLocation, {\n submission: _extends({}, submission, {\n formAction: redirect.location\n }),\n // Preserve this flag across redirects\n preventScrollReset: pendingPreventScrollReset\n });\n } else {\n // Otherwise, we kick off a new loading navigation, preserving the\n // submission info for the duration of this navigation\n await startNavigation(redirectHistoryAction, redirectLocation, {\n overrideNavigation: {\n state: \"loading\",\n location: redirectLocation,\n formMethod: submission ? submission.formMethod : undefined,\n formAction: submission ? submission.formAction : undefined,\n formEncType: submission ? submission.formEncType : undefined,\n formData: submission ? submission.formData : undefined\n },\n // Preserve this flag across redirects\n preventScrollReset: pendingPreventScrollReset\n });\n }\n }\n\n async function callLoadersAndMaybeResolveData(currentMatches, matches, matchesToLoad, fetchersToLoad, request) {\n // Call all navigation loaders and revalidating fetcher loaders in parallel,\n // then slice off the results into separate arrays so we can handle them\n // accordingly\n let results = await Promise.all([...matchesToLoad.map(match => callLoaderOrAction(\"loader\", request, match, matches, router.basename)), ...fetchersToLoad.map(f => callLoaderOrAction(\"loader\", createClientSideRequest(init.history, f.path, request.signal), f.match, f.matches, router.basename))]);\n let loaderResults = results.slice(0, matchesToLoad.length);\n let fetcherResults = results.slice(matchesToLoad.length);\n await Promise.all([resolveDeferredResults(currentMatches, matchesToLoad, loaderResults, request.signal, false, state.loaderData), resolveDeferredResults(currentMatches, fetchersToLoad.map(f => f.match), fetcherResults, request.signal, true)]);\n return {\n results,\n loaderResults,\n fetcherResults\n };\n }\n\n function interruptActiveLoads() {\n // Every interruption triggers a revalidation\n isRevalidationRequired = true; // Cancel pending route-level deferreds and mark cancelled routes for\n // revalidation\n\n cancelledDeferredRoutes.push(...cancelActiveDeferreds()); // Abort in-flight fetcher loads\n\n fetchLoadMatches.forEach((_, key) => {\n if (fetchControllers.has(key)) {\n cancelledFetcherLoads.push(key);\n abortFetcher(key);\n }\n });\n }\n\n function setFetcherError(key, routeId, error) {\n let boundaryMatch = findNearestBoundary(state.matches, routeId);\n deleteFetcher(key);\n updateState({\n errors: {\n [boundaryMatch.route.id]: error\n },\n fetchers: new Map(state.fetchers)\n });\n }\n\n function deleteFetcher(key) {\n if (fetchControllers.has(key)) abortFetcher(key);\n fetchLoadMatches.delete(key);\n fetchReloadIds.delete(key);\n fetchRedirectIds.delete(key);\n state.fetchers.delete(key);\n }\n\n function abortFetcher(key) {\n let controller = fetchControllers.get(key);\n invariant(controller, \"Expected fetch controller: \" + key);\n controller.abort();\n fetchControllers.delete(key);\n }\n\n function markFetchersDone(keys) {\n for (let key of keys) {\n let fetcher = getFetcher(key);\n let doneFetcher = {\n state: \"idle\",\n data: fetcher.data,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n \" _hasFetcherDoneAnything \": true\n };\n state.fetchers.set(key, doneFetcher);\n }\n }\n\n function markFetchRedirectsDone() {\n let doneKeys = [];\n\n for (let key of fetchRedirectIds) {\n let fetcher = state.fetchers.get(key);\n invariant(fetcher, \"Expected fetcher: \" + key);\n\n if (fetcher.state === \"loading\") {\n fetchRedirectIds.delete(key);\n doneKeys.push(key);\n }\n }\n\n markFetchersDone(doneKeys);\n }\n\n function abortStaleFetchLoads(landedId) {\n let yeetedKeys = [];\n\n for (let [key, id] of fetchReloadIds) {\n if (id < landedId) {\n let fetcher = state.fetchers.get(key);\n invariant(fetcher, \"Expected fetcher: \" + key);\n\n if (fetcher.state === \"loading\") {\n abortFetcher(key);\n fetchReloadIds.delete(key);\n yeetedKeys.push(key);\n }\n }\n }\n\n markFetchersDone(yeetedKeys);\n return yeetedKeys.length > 0;\n }\n\n function getBlocker(key, fn) {\n let blocker = state.blockers.get(key) || IDLE_BLOCKER;\n\n if (blockerFunctions.get(key) !== fn) {\n blockerFunctions.set(key, fn);\n }\n\n return blocker;\n }\n\n function deleteBlocker(key) {\n state.blockers.delete(key);\n blockerFunctions.delete(key);\n } // Utility function to update blockers, ensuring valid state transitions\n\n\n function updateBlocker(key, newBlocker) {\n let blocker = state.blockers.get(key) || IDLE_BLOCKER; // Poor mans state machine :)\n // https://mermaid.live/edit#pako:eNqVkc9OwzAMxl8l8nnjAYrEtDIOHEBIgwvKJTReGy3_lDpIqO27k6awMG0XcrLlnz87nwdonESogKXXBuE79rq75XZO3-yHds0RJVuv70YrPlUrCEe2HfrORS3rubqZfuhtpg5C9wk5tZ4VKcRUq88q9Z8RS0-48cE1iHJkL0ugbHuFLus9L6spZy8nX9MP2CNdomVaposqu3fGayT8T8-jJQwhepo_UtpgBQaDEUom04dZhAN1aJBDlUKJBxE1ceB2Smj0Mln-IBW5AFU2dwUiktt_2Qaq2dBfaKdEup85UV7Yd-dKjlnkabl2Pvr0DTkTreM\n\n invariant(blocker.state === \"unblocked\" && newBlocker.state === \"blocked\" || blocker.state === \"blocked\" && newBlocker.state === \"blocked\" || blocker.state === \"blocked\" && newBlocker.state === \"proceeding\" || blocker.state === \"blocked\" && newBlocker.state === \"unblocked\" || blocker.state === \"proceeding\" && newBlocker.state === \"unblocked\", \"Invalid blocker state transition: \" + blocker.state + \" -> \" + newBlocker.state);\n state.blockers.set(key, newBlocker);\n updateState({\n blockers: new Map(state.blockers)\n });\n }\n\n function shouldBlockNavigation(_ref2) {\n let {\n currentLocation,\n nextLocation,\n historyAction\n } = _ref2;\n\n if (blockerFunctions.size === 0) {\n return;\n } // We ony support a single active blocker at the moment since we don't have\n // any compelling use cases for multi-blocker yet\n\n\n if (blockerFunctions.size > 1) {\n warning(false, \"A router only supports one blocker at a time\");\n }\n\n let entries = Array.from(blockerFunctions.entries());\n let [blockerKey, blockerFunction] = entries[entries.length - 1];\n let blocker = state.blockers.get(blockerKey);\n\n if (blocker && blocker.state === \"proceeding\") {\n // If the blocker is currently proceeding, we don't need to re-check\n // it and can let this navigation continue\n return;\n } // At this point, we know we're unblocked/blocked so we need to check the\n // user-provided blocker function\n\n\n if (blockerFunction({\n currentLocation,\n nextLocation,\n historyAction\n })) {\n return blockerKey;\n }\n }\n\n function cancelActiveDeferreds(predicate) {\n let cancelledRouteIds = [];\n activeDeferreds.forEach((dfd, routeId) => {\n if (!predicate || predicate(routeId)) {\n // Cancel the deferred - but do not remove from activeDeferreds here -\n // we rely on the subscribers to do that so our tests can assert proper\n // cleanup via _internalActiveDeferreds\n dfd.cancel();\n cancelledRouteIds.push(routeId);\n activeDeferreds.delete(routeId);\n }\n });\n return cancelledRouteIds;\n } // Opt in to capturing and reporting scroll positions during navigations,\n // used by the component\n\n\n function enableScrollRestoration(positions, getPosition, getKey) {\n savedScrollPositions = positions;\n getScrollPosition = getPosition;\n\n getScrollRestorationKey = getKey || (location => location.key); // Perform initial hydration scroll restoration, since we miss the boat on\n // the initial updateState() because we've not yet rendered \n // and therefore have no savedScrollPositions available\n\n\n if (!initialScrollRestored && state.navigation === IDLE_NAVIGATION) {\n initialScrollRestored = true;\n let y = getSavedScrollPosition(state.location, state.matches);\n\n if (y != null) {\n updateState({\n restoreScrollPosition: y\n });\n }\n }\n\n return () => {\n savedScrollPositions = null;\n getScrollPosition = null;\n getScrollRestorationKey = null;\n };\n }\n\n function saveScrollPosition(location, matches) {\n if (savedScrollPositions && getScrollRestorationKey && getScrollPosition) {\n let userMatches = matches.map(m => createUseMatchesMatch(m, state.loaderData));\n let key = getScrollRestorationKey(location, userMatches) || location.key;\n savedScrollPositions[key] = getScrollPosition();\n }\n }\n\n function getSavedScrollPosition(location, matches) {\n if (savedScrollPositions && getScrollRestorationKey && getScrollPosition) {\n let userMatches = matches.map(m => createUseMatchesMatch(m, state.loaderData));\n let key = getScrollRestorationKey(location, userMatches) || location.key;\n let y = savedScrollPositions[key];\n\n if (typeof y === \"number\") {\n return y;\n }\n }\n\n return null;\n }\n\n router = {\n get basename() {\n return init.basename;\n },\n\n get state() {\n return state;\n },\n\n get routes() {\n return dataRoutes;\n },\n\n initialize,\n subscribe,\n enableScrollRestoration,\n navigate,\n fetch,\n revalidate,\n // Passthrough to history-aware createHref used by useHref so we get proper\n // hash-aware URLs in DOM paths\n createHref: to => init.history.createHref(to),\n encodeLocation: to => init.history.encodeLocation(to),\n getFetcher,\n deleteFetcher,\n dispose,\n getBlocker,\n deleteBlocker,\n _internalFetchControllers: fetchControllers,\n _internalActiveDeferreds: activeDeferreds\n };\n return router;\n} //#endregion\n////////////////////////////////////////////////////////////////////////////////\n//#region createStaticHandler\n////////////////////////////////////////////////////////////////////////////////\n\nconst UNSAFE_DEFERRED_SYMBOL = Symbol(\"deferred\");\nfunction createStaticHandler(routes, opts) {\n invariant(routes.length > 0, \"You must provide a non-empty routes array to createStaticHandler\");\n let dataRoutes = convertRoutesToDataRoutes(routes);\n let basename = (opts ? opts.basename : null) || \"/\";\n /**\n * The query() method is intended for document requests, in which we want to\n * call an optional action and potentially multiple loaders for all nested\n * routes. It returns a StaticHandlerContext object, which is very similar\n * to the router state (location, loaderData, actionData, errors, etc.) and\n * also adds SSR-specific information such as the statusCode and headers\n * from action/loaders Responses.\n *\n * It _should_ never throw and should report all errors through the\n * returned context.errors object, properly associating errors to their error\n * boundary. Additionally, it tracks _deepestRenderedBoundaryId which can be\n * used to emulate React error boundaries during SSr by performing a second\n * pass only down to the boundaryId.\n *\n * The one exception where we do not return a StaticHandlerContext is when a\n * redirect response is returned or thrown from any action/loader. We\n * propagate that out and return the raw Response so the HTTP server can\n * return it directly.\n */\n\n async function query(request, _temp2) {\n let {\n requestContext\n } = _temp2 === void 0 ? {} : _temp2;\n let url = new URL(request.url);\n let method = request.method.toLowerCase();\n let location = createLocation(\"\", createPath(url), null, \"default\");\n let matches = matchRoutes(dataRoutes, location, basename); // SSR supports HEAD requests while SPA doesn't\n\n if (!isValidMethod(method) && method !== \"head\") {\n let error = getInternalRouterError(405, {\n method\n });\n let {\n matches: methodNotAllowedMatches,\n route\n } = getShortCircuitMatches(dataRoutes);\n return {\n basename,\n location,\n matches: methodNotAllowedMatches,\n loaderData: {},\n actionData: null,\n errors: {\n [route.id]: error\n },\n statusCode: error.status,\n loaderHeaders: {},\n actionHeaders: {},\n activeDeferreds: null\n };\n } else if (!matches) {\n let error = getInternalRouterError(404, {\n pathname: location.pathname\n });\n let {\n matches: notFoundMatches,\n route\n } = getShortCircuitMatches(dataRoutes);\n return {\n basename,\n location,\n matches: notFoundMatches,\n loaderData: {},\n actionData: null,\n errors: {\n [route.id]: error\n },\n statusCode: error.status,\n loaderHeaders: {},\n actionHeaders: {},\n activeDeferreds: null\n };\n }\n\n let result = await queryImpl(request, location, matches, requestContext);\n\n if (isResponse(result)) {\n return result;\n } // When returning StaticHandlerContext, we patch back in the location here\n // since we need it for React Context. But this helps keep our submit and\n // loadRouteData operating on a Request instead of a Location\n\n\n return _extends({\n location,\n basename\n }, result);\n }\n /**\n * The queryRoute() method is intended for targeted route requests, either\n * for fetch ?_data requests or resource route requests. In this case, we\n * are only ever calling a single action or loader, and we are returning the\n * returned value directly. In most cases, this will be a Response returned\n * from the action/loader, but it may be a primitive or other value as well -\n * and in such cases the calling context should handle that accordingly.\n *\n * We do respect the throw/return differentiation, so if an action/loader\n * throws, then this method will throw the value. This is important so we\n * can do proper boundary identification in Remix where a thrown Response\n * must go to the Catch Boundary but a returned Response is happy-path.\n *\n * One thing to note is that any Router-initiated Errors that make sense\n * to associate with a status code will be thrown as an ErrorResponse\n * instance which include the raw Error, such that the calling context can\n * serialize the error as they see fit while including the proper response\n * code. Examples here are 404 and 405 errors that occur prior to reaching\n * any user-defined loaders.\n */\n\n\n async function queryRoute(request, _temp3) {\n let {\n routeId,\n requestContext\n } = _temp3 === void 0 ? {} : _temp3;\n let url = new URL(request.url);\n let method = request.method.toLowerCase();\n let location = createLocation(\"\", createPath(url), null, \"default\");\n let matches = matchRoutes(dataRoutes, location, basename); // SSR supports HEAD requests while SPA doesn't\n\n if (!isValidMethod(method) && method !== \"head\" && method !== \"options\") {\n throw getInternalRouterError(405, {\n method\n });\n } else if (!matches) {\n throw getInternalRouterError(404, {\n pathname: location.pathname\n });\n }\n\n let match = routeId ? matches.find(m => m.route.id === routeId) : getTargetMatch(matches, location);\n\n if (routeId && !match) {\n throw getInternalRouterError(403, {\n pathname: location.pathname,\n routeId\n });\n } else if (!match) {\n // This should never hit I don't think?\n throw getInternalRouterError(404, {\n pathname: location.pathname\n });\n }\n\n let result = await queryImpl(request, location, matches, requestContext, match);\n\n if (isResponse(result)) {\n return result;\n }\n\n let error = result.errors ? Object.values(result.errors)[0] : undefined;\n\n if (error !== undefined) {\n // If we got back result.errors, that means the loader/action threw\n // _something_ that wasn't a Response, but it's not guaranteed/required\n // to be an `instanceof Error` either, so we have to use throw here to\n // preserve the \"error\" state outside of queryImpl.\n throw error;\n } // Pick off the right state value to return\n\n\n if (result.actionData) {\n return Object.values(result.actionData)[0];\n }\n\n if (result.loaderData) {\n var _result$activeDeferre;\n\n let data = Object.values(result.loaderData)[0];\n\n if ((_result$activeDeferre = result.activeDeferreds) != null && _result$activeDeferre[match.route.id]) {\n data[UNSAFE_DEFERRED_SYMBOL] = result.activeDeferreds[match.route.id];\n }\n\n return data;\n }\n\n return undefined;\n }\n\n async function queryImpl(request, location, matches, requestContext, routeMatch) {\n invariant(request.signal, \"query()/queryRoute() requests must contain an AbortController signal\");\n\n try {\n if (isMutationMethod(request.method.toLowerCase())) {\n let result = await submit(request, matches, routeMatch || getTargetMatch(matches, location), requestContext, routeMatch != null);\n return result;\n }\n\n let result = await loadRouteData(request, matches, requestContext, routeMatch);\n return isResponse(result) ? result : _extends({}, result, {\n actionData: null,\n actionHeaders: {}\n });\n } catch (e) {\n // If the user threw/returned a Response in callLoaderOrAction, we throw\n // it to bail out and then return or throw here based on whether the user\n // returned or threw\n if (isQueryRouteResponse(e)) {\n if (e.type === ResultType.error && !isRedirectResponse(e.response)) {\n throw e.response;\n }\n\n return e.response;\n } // Redirects are always returned since they don't propagate to catch\n // boundaries\n\n\n if (isRedirectResponse(e)) {\n return e;\n }\n\n throw e;\n }\n }\n\n async function submit(request, matches, actionMatch, requestContext, isRouteRequest) {\n let result;\n\n if (!actionMatch.route.action) {\n let error = getInternalRouterError(405, {\n method: request.method,\n pathname: new URL(request.url).pathname,\n routeId: actionMatch.route.id\n });\n\n if (isRouteRequest) {\n throw error;\n }\n\n result = {\n type: ResultType.error,\n error\n };\n } else {\n result = await callLoaderOrAction(\"action\", request, actionMatch, matches, basename, true, isRouteRequest, requestContext);\n\n if (request.signal.aborted) {\n let method = isRouteRequest ? \"queryRoute\" : \"query\";\n throw new Error(method + \"() call aborted\");\n }\n }\n\n if (isRedirectResult(result)) {\n // Uhhhh - this should never happen, we should always throw these from\n // callLoaderOrAction, but the type narrowing here keeps TS happy and we\n // can get back on the \"throw all redirect responses\" train here should\n // this ever happen :/\n throw new Response(null, {\n status: result.status,\n headers: {\n Location: result.location\n }\n });\n }\n\n if (isDeferredResult(result)) {\n let error = getInternalRouterError(400, {\n type: \"defer-action\"\n });\n\n if (isRouteRequest) {\n throw error;\n }\n\n result = {\n type: ResultType.error,\n error\n };\n }\n\n if (isRouteRequest) {\n // Note: This should only be non-Response values if we get here, since\n // isRouteRequest should throw any Response received in callLoaderOrAction\n if (isErrorResult(result)) {\n throw result.error;\n }\n\n return {\n matches: [actionMatch],\n loaderData: {},\n actionData: {\n [actionMatch.route.id]: result.data\n },\n errors: null,\n // Note: statusCode + headers are unused here since queryRoute will\n // return the raw Response or value\n statusCode: 200,\n loaderHeaders: {},\n actionHeaders: {},\n activeDeferreds: null\n };\n }\n\n if (isErrorResult(result)) {\n // Store off the pending error - we use it to determine which loaders\n // to call and will commit it when we complete the navigation\n let boundaryMatch = findNearestBoundary(matches, actionMatch.route.id);\n let context = await loadRouteData(request, matches, requestContext, undefined, {\n [boundaryMatch.route.id]: result.error\n }); // action status codes take precedence over loader status codes\n\n return _extends({}, context, {\n statusCode: isRouteErrorResponse(result.error) ? result.error.status : 500,\n actionData: null,\n actionHeaders: _extends({}, result.headers ? {\n [actionMatch.route.id]: result.headers\n } : {})\n });\n } // Create a GET request for the loaders\n\n\n let loaderRequest = new Request(request.url, {\n headers: request.headers,\n redirect: request.redirect,\n signal: request.signal\n });\n let context = await loadRouteData(loaderRequest, matches, requestContext);\n return _extends({}, context, result.statusCode ? {\n statusCode: result.statusCode\n } : {}, {\n actionData: {\n [actionMatch.route.id]: result.data\n },\n actionHeaders: _extends({}, result.headers ? {\n [actionMatch.route.id]: result.headers\n } : {})\n });\n }\n\n async function loadRouteData(request, matches, requestContext, routeMatch, pendingActionError) {\n let isRouteRequest = routeMatch != null; // Short circuit if we have no loaders to run (queryRoute())\n\n if (isRouteRequest && !(routeMatch != null && routeMatch.route.loader)) {\n throw getInternalRouterError(400, {\n method: request.method,\n pathname: new URL(request.url).pathname,\n routeId: routeMatch == null ? void 0 : routeMatch.route.id\n });\n }\n\n let requestMatches = routeMatch ? [routeMatch] : getLoaderMatchesUntilBoundary(matches, Object.keys(pendingActionError || {})[0]);\n let matchesToLoad = requestMatches.filter(m => m.route.loader); // Short circuit if we have no loaders to run (query())\n\n if (matchesToLoad.length === 0) {\n return {\n matches,\n // Add a null for all matched routes for proper revalidation on the client\n loaderData: matches.reduce((acc, m) => Object.assign(acc, {\n [m.route.id]: null\n }), {}),\n errors: pendingActionError || null,\n statusCode: 200,\n loaderHeaders: {},\n activeDeferreds: null\n };\n }\n\n let results = await Promise.all([...matchesToLoad.map(match => callLoaderOrAction(\"loader\", request, match, matches, basename, true, isRouteRequest, requestContext))]);\n\n if (request.signal.aborted) {\n let method = isRouteRequest ? \"queryRoute\" : \"query\";\n throw new Error(method + \"() call aborted\");\n } // Process and commit output from loaders\n\n\n let activeDeferreds = new Map();\n let context = processRouteLoaderData(matches, matchesToLoad, results, pendingActionError, activeDeferreds); // Add a null for any non-loader matches for proper revalidation on the client\n\n let executedLoaders = new Set(matchesToLoad.map(match => match.route.id));\n matches.forEach(match => {\n if (!executedLoaders.has(match.route.id)) {\n context.loaderData[match.route.id] = null;\n }\n });\n return _extends({}, context, {\n matches,\n activeDeferreds: activeDeferreds.size > 0 ? Object.fromEntries(activeDeferreds.entries()) : null\n });\n }\n\n return {\n dataRoutes,\n query,\n queryRoute\n };\n} //#endregion\n////////////////////////////////////////////////////////////////////////////////\n//#region Helpers\n////////////////////////////////////////////////////////////////////////////////\n\n/**\n * Given an existing StaticHandlerContext and an error thrown at render time,\n * provide an updated StaticHandlerContext suitable for a second SSR render\n */\n\nfunction getStaticContextFromError(routes, context, error) {\n let newContext = _extends({}, context, {\n statusCode: 500,\n errors: {\n [context._deepestRenderedBoundaryId || routes[0].id]: error\n }\n });\n\n return newContext;\n}\n\nfunction isSubmissionNavigation(opts) {\n return opts != null && \"formData\" in opts;\n} // Normalize navigation options by converting formMethod=GET formData objects to\n// URLSearchParams so they behave identically to links with query params\n\n\nfunction normalizeNavigateOptions(to, opts, isFetcher) {\n if (isFetcher === void 0) {\n isFetcher = false;\n }\n\n let path = typeof to === \"string\" ? to : createPath(to); // Return location verbatim on non-submission navigations\n\n if (!opts || !isSubmissionNavigation(opts)) {\n return {\n path\n };\n }\n\n if (opts.formMethod && !isValidMethod(opts.formMethod)) {\n return {\n path,\n error: getInternalRouterError(405, {\n method: opts.formMethod\n })\n };\n } // Create a Submission on non-GET navigations\n\n\n let submission;\n\n if (opts.formData) {\n submission = {\n formMethod: opts.formMethod || \"get\",\n formAction: stripHashFromPath(path),\n formEncType: opts && opts.formEncType || \"application/x-www-form-urlencoded\",\n formData: opts.formData\n };\n\n if (isMutationMethod(submission.formMethod)) {\n return {\n path,\n submission\n };\n }\n } // Flatten submission onto URLSearchParams for GET submissions\n\n\n let parsedPath = parsePath(path);\n let searchParams = convertFormDataToSearchParams(opts.formData); // Since fetcher GET submissions only run a single loader (as opposed to\n // navigation GET submissions which run all loaders), we need to preserve\n // any incoming ?index params\n\n if (isFetcher && parsedPath.search && hasNakedIndexQuery(parsedPath.search)) {\n searchParams.append(\"index\", \"\");\n }\n\n parsedPath.search = \"?\" + searchParams;\n return {\n path: createPath(parsedPath),\n submission\n };\n} // Filter out all routes below any caught error as they aren't going to\n// render so we don't need to load them\n\n\nfunction getLoaderMatchesUntilBoundary(matches, boundaryId) {\n let boundaryMatches = matches;\n\n if (boundaryId) {\n let index = matches.findIndex(m => m.route.id === boundaryId);\n\n if (index >= 0) {\n boundaryMatches = matches.slice(0, index);\n }\n }\n\n return boundaryMatches;\n}\n\nfunction getMatchesToLoad(history, state, matches, submission, location, isRevalidationRequired, cancelledDeferredRoutes, cancelledFetcherLoads, pendingActionData, pendingError, fetchLoadMatches) {\n let actionResult = pendingError ? Object.values(pendingError)[0] : pendingActionData ? Object.values(pendingActionData)[0] : undefined;\n let currentUrl = history.createURL(state.location);\n let nextUrl = history.createURL(location);\n let defaultShouldRevalidate = // Forced revalidation due to submission, useRevalidate, or X-Remix-Revalidate\n isRevalidationRequired || // Clicked the same link, resubmitted a GET form\n currentUrl.toString() === nextUrl.toString() || // Search params affect all loaders\n currentUrl.search !== nextUrl.search; // Pick navigation matches that are net-new or qualify for revalidation\n\n let boundaryId = pendingError ? Object.keys(pendingError)[0] : undefined;\n let boundaryMatches = getLoaderMatchesUntilBoundary(matches, boundaryId);\n let navigationMatches = boundaryMatches.filter((match, index) => {\n if (match.route.loader == null) {\n return false;\n } // Always call the loader on new route instances and pending defer cancellations\n\n\n if (isNewLoader(state.loaderData, state.matches[index], match) || cancelledDeferredRoutes.some(id => id === match.route.id)) {\n return true;\n } // This is the default implementation for when we revalidate. If the route\n // provides it's own implementation, then we give them full control but\n // provide this value so they can leverage it if needed after they check\n // their own specific use cases\n\n\n let currentRouteMatch = state.matches[index];\n let nextRouteMatch = match;\n return shouldRevalidateLoader(match, _extends({\n currentUrl,\n currentParams: currentRouteMatch.params,\n nextUrl,\n nextParams: nextRouteMatch.params\n }, submission, {\n actionResult,\n defaultShouldRevalidate: defaultShouldRevalidate || isNewRouteInstance(currentRouteMatch, nextRouteMatch)\n }));\n }); // Pick fetcher.loads that need to be revalidated\n\n let revalidatingFetchers = [];\n fetchLoadMatches && fetchLoadMatches.forEach((f, key) => {\n if (!matches.some(m => m.route.id === f.routeId)) {\n // This fetcher is not going to be present in the subsequent render so\n // there's no need to revalidate it\n return;\n } else if (cancelledFetcherLoads.includes(key)) {\n // This fetcher was cancelled from a prior action submission - force reload\n revalidatingFetchers.push(_extends({\n key\n }, f));\n } else {\n // Revalidating fetchers are decoupled from the route matches since they\n // hit a static href, so they _always_ check shouldRevalidate and the\n // default is strictly if a revalidation is explicitly required (action\n // submissions, useRevalidator, X-Remix-Revalidate).\n let shouldRevalidate = shouldRevalidateLoader(f.match, _extends({\n currentUrl,\n currentParams: state.matches[state.matches.length - 1].params,\n nextUrl,\n nextParams: matches[matches.length - 1].params\n }, submission, {\n actionResult,\n defaultShouldRevalidate\n }));\n\n if (shouldRevalidate) {\n revalidatingFetchers.push(_extends({\n key\n }, f));\n }\n }\n });\n return [navigationMatches, revalidatingFetchers];\n}\n\nfunction isNewLoader(currentLoaderData, currentMatch, match) {\n let isNew = // [a] -> [a, b]\n !currentMatch || // [a, b] -> [a, c]\n match.route.id !== currentMatch.route.id; // Handle the case that we don't have data for a re-used route, potentially\n // from a prior error or from a cancelled pending deferred\n\n let isMissingData = currentLoaderData[match.route.id] === undefined; // Always load if this is a net-new route or we don't yet have data\n\n return isNew || isMissingData;\n}\n\nfunction isNewRouteInstance(currentMatch, match) {\n let currentPath = currentMatch.route.path;\n return (// param change for this match, /users/123 -> /users/456\n currentMatch.pathname !== match.pathname || // splat param changed, which is not present in match.path\n // e.g. /files/images/avatar.jpg -> files/finances.xls\n currentPath != null && currentPath.endsWith(\"*\") && currentMatch.params[\"*\"] !== match.params[\"*\"]\n );\n}\n\nfunction shouldRevalidateLoader(loaderMatch, arg) {\n if (loaderMatch.route.shouldRevalidate) {\n let routeChoice = loaderMatch.route.shouldRevalidate(arg);\n\n if (typeof routeChoice === \"boolean\") {\n return routeChoice;\n }\n }\n\n return arg.defaultShouldRevalidate;\n}\n\nasync function callLoaderOrAction(type, request, match, matches, basename, isStaticRequest, isRouteRequest, requestContext) {\n if (basename === void 0) {\n basename = \"/\";\n }\n\n if (isStaticRequest === void 0) {\n isStaticRequest = false;\n }\n\n if (isRouteRequest === void 0) {\n isRouteRequest = false;\n }\n\n let resultType;\n let result; // Setup a promise we can race against so that abort signals short circuit\n\n let reject;\n let abortPromise = new Promise((_, r) => reject = r);\n\n let onReject = () => reject();\n\n request.signal.addEventListener(\"abort\", onReject);\n\n try {\n let handler = match.route[type];\n invariant(handler, \"Could not find the \" + type + \" to run on the \\\"\" + match.route.id + \"\\\" route\");\n result = await Promise.race([handler({\n request,\n params: match.params,\n context: requestContext\n }), abortPromise]);\n invariant(result !== undefined, \"You defined \" + (type === \"action\" ? \"an action\" : \"a loader\") + \" for route \" + (\"\\\"\" + match.route.id + \"\\\" but didn't return anything from your `\" + type + \"` \") + \"function. Please return a value or `null`.\");\n } catch (e) {\n resultType = ResultType.error;\n result = e;\n } finally {\n request.signal.removeEventListener(\"abort\", onReject);\n }\n\n if (isResponse(result)) {\n let status = result.status; // Process redirects\n\n if (redirectStatusCodes.has(status)) {\n let location = result.headers.get(\"Location\");\n invariant(location, \"Redirects returned/thrown from loaders/actions must have a Location header\"); // Support relative routing in internal redirects\n\n if (!ABSOLUTE_URL_REGEX.test(location)) {\n let activeMatches = matches.slice(0, matches.indexOf(match) + 1);\n let routePathnames = getPathContributingMatches(activeMatches).map(match => match.pathnameBase);\n let resolvedLocation = resolveTo(location, routePathnames, new URL(request.url).pathname);\n invariant(createPath(resolvedLocation), \"Unable to resolve redirect location: \" + location); // Prepend the basename to the redirect location if we have one\n\n if (basename) {\n let path = resolvedLocation.pathname;\n resolvedLocation.pathname = path === \"/\" ? basename : joinPaths([basename, path]);\n }\n\n location = createPath(resolvedLocation);\n } else if (!isStaticRequest) {\n // Strip off the protocol+origin for same-origin absolute redirects.\n // If this is a static reques, we can let it go back to the browser\n // as-is\n let currentUrl = new URL(request.url);\n let url = location.startsWith(\"//\") ? new URL(currentUrl.protocol + location) : new URL(location);\n\n if (url.origin === currentUrl.origin) {\n location = url.pathname + url.search + url.hash;\n }\n } // Don't process redirects in the router during static requests requests.\n // Instead, throw the Response and let the server handle it with an HTTP\n // redirect. We also update the Location header in place in this flow so\n // basename and relative routing is taken into account\n\n\n if (isStaticRequest) {\n result.headers.set(\"Location\", location);\n throw result;\n }\n\n return {\n type: ResultType.redirect,\n status,\n location,\n revalidate: result.headers.get(\"X-Remix-Revalidate\") !== null\n };\n } // For SSR single-route requests, we want to hand Responses back directly\n // without unwrapping. We do this with the QueryRouteResponse wrapper\n // interface so we can know whether it was returned or thrown\n\n\n if (isRouteRequest) {\n // eslint-disable-next-line no-throw-literal\n throw {\n type: resultType || ResultType.data,\n response: result\n };\n }\n\n let data;\n let contentType = result.headers.get(\"Content-Type\"); // Check between word boundaries instead of startsWith() due to the last\n // paragraph of https://httpwg.org/specs/rfc9110.html#field.content-type\n\n if (contentType && /\\bapplication\\/json\\b/.test(contentType)) {\n data = await result.json();\n } else {\n data = await result.text();\n }\n\n if (resultType === ResultType.error) {\n return {\n type: resultType,\n error: new ErrorResponse(status, result.statusText, data),\n headers: result.headers\n };\n }\n\n return {\n type: ResultType.data,\n data,\n statusCode: result.status,\n headers: result.headers\n };\n }\n\n if (resultType === ResultType.error) {\n return {\n type: resultType,\n error: result\n };\n }\n\n if (result instanceof DeferredData) {\n return {\n type: ResultType.deferred,\n deferredData: result\n };\n }\n\n return {\n type: ResultType.data,\n data: result\n };\n} // Utility method for creating the Request instances for loaders/actions during\n// client-side navigations and fetches. During SSR we will always have a\n// Request instance from the static handler (query/queryRoute)\n\n\nfunction createClientSideRequest(history, location, signal, submission) {\n let url = history.createURL(stripHashFromPath(location)).toString();\n let init = {\n signal\n };\n\n if (submission && isMutationMethod(submission.formMethod)) {\n let {\n formMethod,\n formEncType,\n formData\n } = submission;\n init.method = formMethod.toUpperCase();\n init.body = formEncType === \"application/x-www-form-urlencoded\" ? convertFormDataToSearchParams(formData) : formData;\n } // Content-Type is inferred (https://fetch.spec.whatwg.org/#dom-request)\n\n\n return new Request(url, init);\n}\n\nfunction convertFormDataToSearchParams(formData) {\n let searchParams = new URLSearchParams();\n\n for (let [key, value] of formData.entries()) {\n // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#converting-an-entry-list-to-a-list-of-name-value-pairs\n searchParams.append(key, value instanceof File ? value.name : value);\n }\n\n return searchParams;\n}\n\nfunction processRouteLoaderData(matches, matchesToLoad, results, pendingError, activeDeferreds) {\n // Fill in loaderData/errors from our loaders\n let loaderData = {};\n let errors = null;\n let statusCode;\n let foundError = false;\n let loaderHeaders = {}; // Process loader results into state.loaderData/state.errors\n\n results.forEach((result, index) => {\n let id = matchesToLoad[index].route.id;\n invariant(!isRedirectResult(result), \"Cannot handle redirect results in processLoaderData\");\n\n if (isErrorResult(result)) {\n // Look upwards from the matched route for the closest ancestor\n // error boundary, defaulting to the root match\n let boundaryMatch = findNearestBoundary(matches, id);\n let error = result.error; // If we have a pending action error, we report it at the highest-route\n // that throws a loader error, and then clear it out to indicate that\n // it was consumed\n\n if (pendingError) {\n error = Object.values(pendingError)[0];\n pendingError = undefined;\n }\n\n errors = errors || {}; // Prefer higher error values if lower errors bubble to the same boundary\n\n if (errors[boundaryMatch.route.id] == null) {\n errors[boundaryMatch.route.id] = error;\n } // Clear our any prior loaderData for the throwing route\n\n\n loaderData[id] = undefined; // Once we find our first (highest) error, we set the status code and\n // prevent deeper status codes from overriding\n\n if (!foundError) {\n foundError = true;\n statusCode = isRouteErrorResponse(result.error) ? result.error.status : 500;\n }\n\n if (result.headers) {\n loaderHeaders[id] = result.headers;\n }\n } else {\n if (isDeferredResult(result)) {\n activeDeferreds.set(id, result.deferredData);\n loaderData[id] = result.deferredData.data;\n } else {\n loaderData[id] = result.data;\n } // Error status codes always override success status codes, but if all\n // loaders are successful we take the deepest status code.\n\n\n if (result.statusCode != null && result.statusCode !== 200 && !foundError) {\n statusCode = result.statusCode;\n }\n\n if (result.headers) {\n loaderHeaders[id] = result.headers;\n }\n }\n }); // If we didn't consume the pending action error (i.e., all loaders\n // resolved), then consume it here. Also clear out any loaderData for the\n // throwing route\n\n if (pendingError) {\n errors = pendingError;\n loaderData[Object.keys(pendingError)[0]] = undefined;\n }\n\n return {\n loaderData,\n errors,\n statusCode: statusCode || 200,\n loaderHeaders\n };\n}\n\nfunction processLoaderData(state, matches, matchesToLoad, results, pendingError, revalidatingFetchers, fetcherResults, activeDeferreds) {\n let {\n loaderData,\n errors\n } = processRouteLoaderData(matches, matchesToLoad, results, pendingError, activeDeferreds); // Process results from our revalidating fetchers\n\n for (let index = 0; index < revalidatingFetchers.length; index++) {\n let {\n key,\n match\n } = revalidatingFetchers[index];\n invariant(fetcherResults !== undefined && fetcherResults[index] !== undefined, \"Did not find corresponding fetcher result\");\n let result = fetcherResults[index]; // Process fetcher non-redirect errors\n\n if (isErrorResult(result)) {\n let boundaryMatch = findNearestBoundary(state.matches, match.route.id);\n\n if (!(errors && errors[boundaryMatch.route.id])) {\n errors = _extends({}, errors, {\n [boundaryMatch.route.id]: result.error\n });\n }\n\n state.fetchers.delete(key);\n } else if (isRedirectResult(result)) {\n // Should never get here, redirects should get processed above, but we\n // keep this to type narrow to a success result in the else\n invariant(false, \"Unhandled fetcher revalidation redirect\");\n } else if (isDeferredResult(result)) {\n // Should never get here, deferred data should be awaited for fetchers\n // in resolveDeferredResults\n invariant(false, \"Unhandled fetcher deferred data\");\n } else {\n let doneFetcher = {\n state: \"idle\",\n data: result.data,\n formMethod: undefined,\n formAction: undefined,\n formEncType: undefined,\n formData: undefined,\n \" _hasFetcherDoneAnything \": true\n };\n state.fetchers.set(key, doneFetcher);\n }\n }\n\n return {\n loaderData,\n errors\n };\n}\n\nfunction mergeLoaderData(loaderData, newLoaderData, matches, errors) {\n let mergedLoaderData = _extends({}, newLoaderData);\n\n for (let match of matches) {\n let id = match.route.id;\n\n if (newLoaderData.hasOwnProperty(id)) {\n if (newLoaderData[id] !== undefined) {\n mergedLoaderData[id] = newLoaderData[id];\n }\n } else if (loaderData[id] !== undefined) {\n mergedLoaderData[id] = loaderData[id];\n }\n\n if (errors && errors.hasOwnProperty(id)) {\n // Don't keep any loader data below the boundary\n break;\n }\n }\n\n return mergedLoaderData;\n} // Find the nearest error boundary, looking upwards from the leaf route (or the\n// route specified by routeId) for the closest ancestor error boundary,\n// defaulting to the root match\n\n\nfunction findNearestBoundary(matches, routeId) {\n let eligibleMatches = routeId ? matches.slice(0, matches.findIndex(m => m.route.id === routeId) + 1) : [...matches];\n return eligibleMatches.reverse().find(m => m.route.hasErrorBoundary === true) || matches[0];\n}\n\nfunction getShortCircuitMatches(routes) {\n // Prefer a root layout route if present, otherwise shim in a route object\n let route = routes.find(r => r.index || !r.path || r.path === \"/\") || {\n id: \"__shim-error-route__\"\n };\n return {\n matches: [{\n params: {},\n pathname: \"\",\n pathnameBase: \"\",\n route\n }],\n route\n };\n}\n\nfunction getInternalRouterError(status, _temp4) {\n let {\n pathname,\n routeId,\n method,\n type\n } = _temp4 === void 0 ? {} : _temp4;\n let statusText = \"Unknown Server Error\";\n let errorMessage = \"Unknown @remix-run/router error\";\n\n if (status === 400) {\n statusText = \"Bad Request\";\n\n if (method && pathname && routeId) {\n errorMessage = \"You made a \" + method + \" request to \\\"\" + pathname + \"\\\" but \" + (\"did not provide a `loader` for route \\\"\" + routeId + \"\\\", \") + \"so there is no way to handle the request.\";\n } else if (type === \"defer-action\") {\n errorMessage = \"defer() is not supported in actions\";\n }\n } else if (status === 403) {\n statusText = \"Forbidden\";\n errorMessage = \"Route \\\"\" + routeId + \"\\\" does not match URL \\\"\" + pathname + \"\\\"\";\n } else if (status === 404) {\n statusText = \"Not Found\";\n errorMessage = \"No route matches URL \\\"\" + pathname + \"\\\"\";\n } else if (status === 405) {\n statusText = \"Method Not Allowed\";\n\n if (method && pathname && routeId) {\n errorMessage = \"You made a \" + method.toUpperCase() + \" request to \\\"\" + pathname + \"\\\" but \" + (\"did not provide an `action` for route \\\"\" + routeId + \"\\\", \") + \"so there is no way to handle the request.\";\n } else if (method) {\n errorMessage = \"Invalid request method \\\"\" + method.toUpperCase() + \"\\\"\";\n }\n }\n\n return new ErrorResponse(status || 500, statusText, new Error(errorMessage), true);\n} // Find any returned redirect errors, starting from the lowest match\n\n\nfunction findRedirect(results) {\n for (let i = results.length - 1; i >= 0; i--) {\n let result = results[i];\n\n if (isRedirectResult(result)) {\n return result;\n }\n }\n}\n\nfunction stripHashFromPath(path) {\n let parsedPath = typeof path === \"string\" ? parsePath(path) : path;\n return createPath(_extends({}, parsedPath, {\n hash: \"\"\n }));\n}\n\nfunction isHashChangeOnly(a, b) {\n return a.pathname === b.pathname && a.search === b.search && a.hash !== b.hash;\n}\n\nfunction isDeferredResult(result) {\n return result.type === ResultType.deferred;\n}\n\nfunction isErrorResult(result) {\n return result.type === ResultType.error;\n}\n\nfunction isRedirectResult(result) {\n return (result && result.type) === ResultType.redirect;\n}\n\nfunction isResponse(value) {\n return value != null && typeof value.status === \"number\" && typeof value.statusText === \"string\" && typeof value.headers === \"object\" && typeof value.body !== \"undefined\";\n}\n\nfunction isRedirectResponse(result) {\n if (!isResponse(result)) {\n return false;\n }\n\n let status = result.status;\n let location = result.headers.get(\"Location\");\n return status >= 300 && status <= 399 && location != null;\n}\n\nfunction isQueryRouteResponse(obj) {\n return obj && isResponse(obj.response) && (obj.type === ResultType.data || ResultType.error);\n}\n\nfunction isValidMethod(method) {\n return validRequestMethods.has(method);\n}\n\nfunction isMutationMethod(method) {\n return validMutationMethods.has(method);\n}\n\nasync function resolveDeferredResults(currentMatches, matchesToLoad, results, signal, isFetcher, currentLoaderData) {\n for (let index = 0; index < results.length; index++) {\n let result = results[index];\n let match = matchesToLoad[index];\n let currentMatch = currentMatches.find(m => m.route.id === match.route.id);\n let isRevalidatingLoader = currentMatch != null && !isNewRouteInstance(currentMatch, match) && (currentLoaderData && currentLoaderData[match.route.id]) !== undefined;\n\n if (isDeferredResult(result) && (isFetcher || isRevalidatingLoader)) {\n // Note: we do not have to touch activeDeferreds here since we race them\n // against the signal in resolveDeferredData and they'll get aborted\n // there if needed\n await resolveDeferredData(result, signal, isFetcher).then(result => {\n if (result) {\n results[index] = result || results[index];\n }\n });\n }\n }\n}\n\nasync function resolveDeferredData(result, signal, unwrap) {\n if (unwrap === void 0) {\n unwrap = false;\n }\n\n let aborted = await result.deferredData.resolveData(signal);\n\n if (aborted) {\n return;\n }\n\n if (unwrap) {\n try {\n return {\n type: ResultType.data,\n data: result.deferredData.unwrappedData\n };\n } catch (e) {\n // Handle any TrackedPromise._error values encountered while unwrapping\n return {\n type: ResultType.error,\n error: e\n };\n }\n }\n\n return {\n type: ResultType.data,\n data: result.deferredData.data\n };\n}\n\nfunction hasNakedIndexQuery(search) {\n return new URLSearchParams(search).getAll(\"index\").some(v => v === \"\");\n} // Note: This should match the format exported by useMatches, so if you change\n// this please also change that :) Eventually we'll DRY this up\n\n\nfunction createUseMatchesMatch(match, loaderData) {\n let {\n route,\n pathname,\n params\n } = match;\n return {\n id: route.id,\n pathname,\n params,\n data: loaderData[route.id],\n handle: route.handle\n };\n}\n\nfunction getTargetMatch(matches, location) {\n let search = typeof location === \"string\" ? parsePath(location).search : location.search;\n\n if (matches[matches.length - 1].route.index && hasNakedIndexQuery(search || \"\")) {\n // Return the leaf index route when index is present\n return matches[matches.length - 1];\n } // Otherwise grab the deepest \"path contributing\" match (ignoring index and\n // pathless layout routes)\n\n\n let pathMatches = getPathContributingMatches(matches);\n return pathMatches[pathMatches.length - 1];\n} //#endregion\n\nexport { AbortedDeferredError, Action, ErrorResponse, IDLE_BLOCKER, IDLE_FETCHER, IDLE_NAVIGATION, UNSAFE_DEFERRED_SYMBOL, DeferredData as UNSAFE_DeferredData, convertRoutesToDataRoutes as UNSAFE_convertRoutesToDataRoutes, getPathContributingMatches as UNSAFE_getPathContributingMatches, createBrowserHistory, createHashHistory, createMemoryHistory, createPath, createRouter, createStaticHandler, defer, generatePath, getStaticContextFromError, getToPathname, invariant, isRouteErrorResponse, joinPaths, json, matchPath, matchRoutes, normalizePathname, parsePath, redirect, resolvePath, resolveTo, stripBasename, warning };\n//# sourceMappingURL=router.js.map\n","/**\n * React Router v6.8.1\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\nimport { invariant, joinPaths, matchPath, UNSAFE_getPathContributingMatches, warning, resolveTo, parsePath, matchRoutes, Action, isRouteErrorResponse, createMemoryHistory, stripBasename, AbortedDeferredError, createRouter } from '@remix-run/router';\nexport { AbortedDeferredError, Action as NavigationType, createPath, defer, generatePath, isRouteErrorResponse, json, matchPath, matchRoutes, parsePath, redirect, resolvePath } from '@remix-run/router';\nimport * as React from 'react';\n\nfunction _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n return _extends.apply(this, arguments);\n}\n\n/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n/**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n\nfunction isPolyfill(x, y) {\n return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y // eslint-disable-line no-self-compare\n ;\n}\n\nconst is = typeof Object.is === \"function\" ? Object.is : isPolyfill; // Intentionally not using named imports because Rollup uses dynamic\n// dispatch for CommonJS interop named imports.\n\nconst {\n useState,\n useEffect,\n useLayoutEffect,\n useDebugValue\n} = React;\nlet didWarnOld18Alpha = false;\nlet didWarnUncachedGetSnapshot = false; // Disclaimer: This shim breaks many of the rules of React, and only works\n// because of a very particular set of implementation details and assumptions\n// -- change any one of them and it will break. The most important assumption\n// is that updates are always synchronous, because concurrent rendering is\n// only available in versions of React that also have a built-in\n// useSyncExternalStore API. And we only use this shim when the built-in API\n// does not exist.\n//\n// Do not assume that the clever hacks used by this hook also work in general.\n// The point of this shim is to replace the need for hacks by other libraries.\n\nfunction useSyncExternalStore$2(subscribe, getSnapshot, // Note: The shim does not use getServerSnapshot, because pre-18 versions of\n// React do not expose a way to check if we're hydrating. So users of the shim\n// will need to track that themselves and return the correct value\n// from `getSnapshot`.\ngetServerSnapshot) {\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnOld18Alpha) {\n if (\"startTransition\" in React) {\n didWarnOld18Alpha = true;\n console.error(\"You are using an outdated, pre-release alpha of React 18 that \" + \"does not support useSyncExternalStore. The \" + \"use-sync-external-store shim will not work correctly. Upgrade \" + \"to a newer pre-release.\");\n }\n }\n } // Read the current snapshot from the store on every render. Again, this\n // breaks the rules of React, and only works here because of specific\n // implementation details, most importantly that updates are\n // always synchronous.\n\n\n const value = getSnapshot();\n\n if (process.env.NODE_ENV !== \"production\") {\n if (!didWarnUncachedGetSnapshot) {\n const cachedValue = getSnapshot();\n\n if (!is(value, cachedValue)) {\n console.error(\"The result of getSnapshot should be cached to avoid an infinite loop\");\n didWarnUncachedGetSnapshot = true;\n }\n }\n } // Because updates are synchronous, we don't queue them. Instead we force a\n // re-render whenever the subscribed state changes by updating an some\n // arbitrary useState hook. Then, during render, we call getSnapshot to read\n // the current value.\n //\n // Because we don't actually use the state returned by the useState hook, we\n // can save a bit of memory by storing other stuff in that slot.\n //\n // To implement the early bailout, we need to track some things on a mutable\n // object. Usually, we would put that in a useRef hook, but we can stash it in\n // our useState hook instead.\n //\n // To force a re-render, we call forceUpdate({inst}). That works because the\n // new object always fails an equality check.\n\n\n const [{\n inst\n }, forceUpdate] = useState({\n inst: {\n value,\n getSnapshot\n }\n }); // Track the latest getSnapshot function with a ref. This needs to be updated\n // in the layout phase so we can access it during the tearing check that\n // happens on subscribe.\n\n useLayoutEffect(() => {\n inst.value = value;\n inst.getSnapshot = getSnapshot; // Whenever getSnapshot or subscribe changes, we need to check in the\n // commit phase if there was an interleaved mutation. In concurrent mode\n // this can happen all the time, but even in synchronous mode, an earlier\n // effect may have mutated the store.\n\n if (checkIfSnapshotChanged(inst)) {\n // Force a re-render.\n forceUpdate({\n inst\n });\n } // eslint-disable-next-line react-hooks/exhaustive-deps\n\n }, [subscribe, value, getSnapshot]);\n useEffect(() => {\n // Check for changes right before subscribing. Subsequent changes will be\n // detected in the subscription handler.\n if (checkIfSnapshotChanged(inst)) {\n // Force a re-render.\n forceUpdate({\n inst\n });\n }\n\n const handleStoreChange = () => {\n // TODO: Because there is no cross-renderer API for batching updates, it's\n // up to the consumer of this library to wrap their subscription event\n // with unstable_batchedUpdates. Should we try to detect when this isn't\n // the case and print a warning in development?\n // The store changed. Check if the snapshot changed since the last time we\n // read from the store.\n if (checkIfSnapshotChanged(inst)) {\n // Force a re-render.\n forceUpdate({\n inst\n });\n }\n }; // Subscribe to the store and return a clean-up function.\n\n\n return subscribe(handleStoreChange); // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [subscribe]);\n useDebugValue(value);\n return value;\n}\n\nfunction checkIfSnapshotChanged(inst) {\n const latestGetSnapshot = inst.getSnapshot;\n const prevValue = inst.value;\n\n try {\n const nextValue = latestGetSnapshot();\n return !is(prevValue, nextValue);\n } catch (error) {\n return true;\n }\n}\n\n/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @flow\n */\nfunction useSyncExternalStore$1(subscribe, getSnapshot, getServerSnapshot) {\n // Note: The shim does not use getServerSnapshot, because pre-18 versions of\n // React do not expose a way to check if we're hydrating. So users of the shim\n // will need to track that themselves and return the correct value\n // from `getSnapshot`.\n return getSnapshot();\n}\n\n/**\n * Inlined into the react-router repo since use-sync-external-store does not\n * provide a UMD-compatible package, so we need this to be able to distribute\n * UMD react-router bundles\n */\nconst canUseDOM = !!(typeof window !== \"undefined\" && typeof window.document !== \"undefined\" && typeof window.document.createElement !== \"undefined\");\nconst isServerEnvironment = !canUseDOM;\nconst shim = isServerEnvironment ? useSyncExternalStore$1 : useSyncExternalStore$2;\nconst useSyncExternalStore = \"useSyncExternalStore\" in React ? (module => module.useSyncExternalStore)(React) : shim;\n\nconst DataRouterContext = /*#__PURE__*/React.createContext(null);\n\nif (process.env.NODE_ENV !== \"production\") {\n DataRouterContext.displayName = \"DataRouter\";\n}\n\nconst DataRouterStateContext = /*#__PURE__*/React.createContext(null);\n\nif (process.env.NODE_ENV !== \"production\") {\n DataRouterStateContext.displayName = \"DataRouterState\";\n}\n\nconst AwaitContext = /*#__PURE__*/React.createContext(null);\n\nif (process.env.NODE_ENV !== \"production\") {\n AwaitContext.displayName = \"Await\";\n}\n\nconst NavigationContext = /*#__PURE__*/React.createContext(null);\n\nif (process.env.NODE_ENV !== \"production\") {\n NavigationContext.displayName = \"Navigation\";\n}\n\nconst LocationContext = /*#__PURE__*/React.createContext(null);\n\nif (process.env.NODE_ENV !== \"production\") {\n LocationContext.displayName = \"Location\";\n}\n\nconst RouteContext = /*#__PURE__*/React.createContext({\n outlet: null,\n matches: []\n});\n\nif (process.env.NODE_ENV !== \"production\") {\n RouteContext.displayName = \"Route\";\n}\n\nconst RouteErrorContext = /*#__PURE__*/React.createContext(null);\n\nif (process.env.NODE_ENV !== \"production\") {\n RouteErrorContext.displayName = \"RouteError\";\n}\n\n/**\n * Returns the full href for the given \"to\" value. This is useful for building\n * custom links that are also accessible and preserve right-click behavior.\n *\n * @see https://reactrouter.com/hooks/use-href\n */\n\nfunction useHref(to, _temp) {\n let {\n relative\n } = _temp === void 0 ? {} : _temp;\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useHref() may be used only in the context of a component.\") : invariant(false) : void 0;\n let {\n basename,\n navigator\n } = React.useContext(NavigationContext);\n let {\n hash,\n pathname,\n search\n } = useResolvedPath(to, {\n relative\n });\n let joinedPathname = pathname; // If we're operating within a basename, prepend it to the pathname prior\n // to creating the href. If this is a root navigation, then just use the raw\n // basename which allows the basename to have full control over the presence\n // of a trailing slash on root links\n\n if (basename !== \"/\") {\n joinedPathname = pathname === \"/\" ? basename : joinPaths([basename, pathname]);\n }\n\n return navigator.createHref({\n pathname: joinedPathname,\n search,\n hash\n });\n}\n/**\n * Returns true if this component is a descendant of a .\n *\n * @see https://reactrouter.com/hooks/use-in-router-context\n */\n\nfunction useInRouterContext() {\n return React.useContext(LocationContext) != null;\n}\n/**\n * Returns the current location object, which represents the current URL in web\n * browsers.\n *\n * Note: If you're using this it may mean you're doing some of your own\n * \"routing\" in your app, and we'd like to know what your use case is. We may\n * be able to provide something higher-level to better suit your needs.\n *\n * @see https://reactrouter.com/hooks/use-location\n */\n\nfunction useLocation() {\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useLocation() may be used only in the context of a component.\") : invariant(false) : void 0;\n return React.useContext(LocationContext).location;\n}\n/**\n * Returns the current navigation action which describes how the router came to\n * the current location, either by a pop, push, or replace on the history stack.\n *\n * @see https://reactrouter.com/hooks/use-navigation-type\n */\n\nfunction useNavigationType() {\n return React.useContext(LocationContext).navigationType;\n}\n/**\n * Returns a PathMatch object if the given pattern matches the current URL.\n * This is useful for components that need to know \"active\" state, e.g.\n * .\n *\n * @see https://reactrouter.com/hooks/use-match\n */\n\nfunction useMatch(pattern) {\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useMatch() may be used only in the context of a component.\") : invariant(false) : void 0;\n let {\n pathname\n } = useLocation();\n return React.useMemo(() => matchPath(pattern, pathname), [pathname, pattern]);\n}\n/**\n * The interface for the navigate() function returned from useNavigate().\n */\n\n/**\n * Returns an imperative method for changing the location. Used by s, but\n * may also be used by other elements to change the location.\n *\n * @see https://reactrouter.com/hooks/use-navigate\n */\nfunction useNavigate() {\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useNavigate() may be used only in the context of a component.\") : invariant(false) : void 0;\n let {\n basename,\n navigator\n } = React.useContext(NavigationContext);\n let {\n matches\n } = React.useContext(RouteContext);\n let {\n pathname: locationPathname\n } = useLocation();\n let routePathnamesJson = JSON.stringify(UNSAFE_getPathContributingMatches(matches).map(match => match.pathnameBase));\n let activeRef = React.useRef(false);\n React.useEffect(() => {\n activeRef.current = true;\n });\n let navigate = React.useCallback(function (to, options) {\n if (options === void 0) {\n options = {};\n }\n\n process.env.NODE_ENV !== \"production\" ? warning(activeRef.current, \"You should call navigate() in a React.useEffect(), not when \" + \"your component is first rendered.\") : void 0;\n if (!activeRef.current) return;\n\n if (typeof to === \"number\") {\n navigator.go(to);\n return;\n }\n\n let path = resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, options.relative === \"path\"); // If we're operating within a basename, prepend it to the pathname prior\n // to handing off to history. If this is a root navigation, then we\n // navigate to the raw basename which allows the basename to have full\n // control over the presence of a trailing slash on root links\n\n if (basename !== \"/\") {\n path.pathname = path.pathname === \"/\" ? basename : joinPaths([basename, path.pathname]);\n }\n\n (!!options.replace ? navigator.replace : navigator.push)(path, options.state, options);\n }, [basename, navigator, routePathnamesJson, locationPathname]);\n return navigate;\n}\nconst OutletContext = /*#__PURE__*/React.createContext(null);\n/**\n * Returns the context (if provided) for the child route at this level of the route\n * hierarchy.\n * @see https://reactrouter.com/hooks/use-outlet-context\n */\n\nfunction useOutletContext() {\n return React.useContext(OutletContext);\n}\n/**\n * Returns the element for the child route at this level of the route\n * hierarchy. Used internally by to render child routes.\n *\n * @see https://reactrouter.com/hooks/use-outlet\n */\n\nfunction useOutlet(context) {\n let outlet = React.useContext(RouteContext).outlet;\n\n if (outlet) {\n return /*#__PURE__*/React.createElement(OutletContext.Provider, {\n value: context\n }, outlet);\n }\n\n return outlet;\n}\n/**\n * Returns an object of key/value pairs of the dynamic params from the current\n * URL that were matched by the route path.\n *\n * @see https://reactrouter.com/hooks/use-params\n */\n\nfunction useParams() {\n let {\n matches\n } = React.useContext(RouteContext);\n let routeMatch = matches[matches.length - 1];\n return routeMatch ? routeMatch.params : {};\n}\n/**\n * Resolves the pathname of the given `to` value against the current location.\n *\n * @see https://reactrouter.com/hooks/use-resolved-path\n */\n\nfunction useResolvedPath(to, _temp2) {\n let {\n relative\n } = _temp2 === void 0 ? {} : _temp2;\n let {\n matches\n } = React.useContext(RouteContext);\n let {\n pathname: locationPathname\n } = useLocation();\n let routePathnamesJson = JSON.stringify(UNSAFE_getPathContributingMatches(matches).map(match => match.pathnameBase));\n return React.useMemo(() => resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, relative === \"path\"), [to, routePathnamesJson, locationPathname, relative]);\n}\n/**\n * Returns the element of the route that matched the current location, prepared\n * with the correct context to render the remainder of the route tree. Route\n * elements in the tree must render an to render their child route's\n * element.\n *\n * @see https://reactrouter.com/hooks/use-routes\n */\n\nfunction useRoutes(routes, locationArg) {\n !useInRouterContext() ? process.env.NODE_ENV !== \"production\" ? invariant(false, // TODO: This error is probably because they somehow have 2 versions of the\n // router loaded. We can help them understand how to avoid that.\n \"useRoutes() may be used only in the context of a component.\") : invariant(false) : void 0;\n let {\n navigator\n } = React.useContext(NavigationContext);\n let dataRouterStateContext = React.useContext(DataRouterStateContext);\n let {\n matches: parentMatches\n } = React.useContext(RouteContext);\n let routeMatch = parentMatches[parentMatches.length - 1];\n let parentParams = routeMatch ? routeMatch.params : {};\n let parentPathname = routeMatch ? routeMatch.pathname : \"/\";\n let parentPathnameBase = routeMatch ? routeMatch.pathnameBase : \"/\";\n let parentRoute = routeMatch && routeMatch.route;\n\n if (process.env.NODE_ENV !== \"production\") {\n // You won't get a warning about 2 different under a \n // without a trailing *, but this is a best-effort warning anyway since we\n // cannot even give the warning unless they land at the parent route.\n //\n // Example:\n //\n // \n // {/* This route path MUST end with /* because otherwise\n // it will never match /blog/post/123 */}\n // } />\n // } />\n // \n //\n // function Blog() {\n // return (\n // \n // } />\n // \n // );\n // }\n let parentPath = parentRoute && parentRoute.path || \"\";\n warningOnce(parentPathname, !parentRoute || parentPath.endsWith(\"*\"), \"You rendered descendant (or called `useRoutes()`) at \" + (\"\\\"\" + parentPathname + \"\\\" (under ) but the \") + \"parent route path has no trailing \\\"*\\\". This means if you navigate \" + \"deeper, the parent won't match anymore and therefore the child \" + \"routes will never render.\\n\\n\" + (\"Please change the parent to .\"));\n }\n\n let locationFromContext = useLocation();\n let location;\n\n if (locationArg) {\n var _parsedLocationArg$pa;\n\n let parsedLocationArg = typeof locationArg === \"string\" ? parsePath(locationArg) : locationArg;\n !(parentPathnameBase === \"/\" || ((_parsedLocationArg$pa = parsedLocationArg.pathname) == null ? void 0 : _parsedLocationArg$pa.startsWith(parentPathnameBase))) ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"When overriding the location using `` or `useRoutes(routes, location)`, \" + \"the location pathname must begin with the portion of the URL pathname that was \" + (\"matched by all parent routes. The current pathname base is \\\"\" + parentPathnameBase + \"\\\" \") + (\"but pathname \\\"\" + parsedLocationArg.pathname + \"\\\" was given in the `location` prop.\")) : invariant(false) : void 0;\n location = parsedLocationArg;\n } else {\n location = locationFromContext;\n }\n\n let pathname = location.pathname || \"/\";\n let remainingPathname = parentPathnameBase === \"/\" ? pathname : pathname.slice(parentPathnameBase.length) || \"/\";\n let matches = matchRoutes(routes, {\n pathname: remainingPathname\n });\n\n if (process.env.NODE_ENV !== \"production\") {\n process.env.NODE_ENV !== \"production\" ? warning(parentRoute || matches != null, \"No routes matched location \\\"\" + location.pathname + location.search + location.hash + \"\\\" \") : void 0;\n process.env.NODE_ENV !== \"production\" ? warning(matches == null || matches[matches.length - 1].route.element !== undefined, \"Matched leaf route at location \\\"\" + location.pathname + location.search + location.hash + \"\\\" does not have an element. \" + \"This means it will render an with a null value by default resulting in an \\\"empty\\\" page.\") : void 0;\n }\n\n let renderedMatches = _renderMatches(matches && matches.map(match => Object.assign({}, match, {\n params: Object.assign({}, parentParams, match.params),\n pathname: joinPaths([parentPathnameBase, // Re-encode pathnames that were decoded inside matchRoutes\n navigator.encodeLocation ? navigator.encodeLocation(match.pathname).pathname : match.pathname]),\n pathnameBase: match.pathnameBase === \"/\" ? parentPathnameBase : joinPaths([parentPathnameBase, // Re-encode pathnames that were decoded inside matchRoutes\n navigator.encodeLocation ? navigator.encodeLocation(match.pathnameBase).pathname : match.pathnameBase])\n })), parentMatches, dataRouterStateContext || undefined); // When a user passes in a `locationArg`, the associated routes need to\n // be wrapped in a new `LocationContext.Provider` in order for `useLocation`\n // to use the scoped location instead of the global location.\n\n\n if (locationArg && renderedMatches) {\n return /*#__PURE__*/React.createElement(LocationContext.Provider, {\n value: {\n location: _extends({\n pathname: \"/\",\n search: \"\",\n hash: \"\",\n state: null,\n key: \"default\"\n }, location),\n navigationType: Action.Pop\n }\n }, renderedMatches);\n }\n\n return renderedMatches;\n}\n\nfunction DefaultErrorElement() {\n let error = useRouteError();\n let message = isRouteErrorResponse(error) ? error.status + \" \" + error.statusText : error instanceof Error ? error.message : JSON.stringify(error);\n let stack = error instanceof Error ? error.stack : null;\n let lightgrey = \"rgba(200,200,200, 0.5)\";\n let preStyles = {\n padding: \"0.5rem\",\n backgroundColor: lightgrey\n };\n let codeStyles = {\n padding: \"2px 4px\",\n backgroundColor: lightgrey\n };\n let devInfo = null;\n\n if (process.env.NODE_ENV !== \"production\") {\n devInfo = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"p\", null, \"\\uD83D\\uDCBF Hey developer \\uD83D\\uDC4B\"), /*#__PURE__*/React.createElement(\"p\", null, \"You can provide a way better UX than this when your app throws errors by providing your own\\xA0\", /*#__PURE__*/React.createElement(\"code\", {\n style: codeStyles\n }, \"errorElement\"), \" props on\\xA0\", /*#__PURE__*/React.createElement(\"code\", {\n style: codeStyles\n }, \"\")));\n }\n\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"h2\", null, \"Unexpected Application Error!\"), /*#__PURE__*/React.createElement(\"h3\", {\n style: {\n fontStyle: \"italic\"\n }\n }, message), stack ? /*#__PURE__*/React.createElement(\"pre\", {\n style: preStyles\n }, stack) : null, devInfo);\n}\n\nclass RenderErrorBoundary extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n location: props.location,\n error: props.error\n };\n }\n\n static getDerivedStateFromError(error) {\n return {\n error: error\n };\n }\n\n static getDerivedStateFromProps(props, state) {\n // When we get into an error state, the user will likely click \"back\" to the\n // previous page that didn't have an error. Because this wraps the entire\n // application, that will have no effect--the error page continues to display.\n // This gives us a mechanism to recover from the error when the location changes.\n //\n // Whether we're in an error state or not, we update the location in state\n // so that when we are in an error state, it gets reset when a new location\n // comes in and the user recovers from the error.\n if (state.location !== props.location) {\n return {\n error: props.error,\n location: props.location\n };\n } // If we're not changing locations, preserve the location but still surface\n // any new errors that may come through. We retain the existing error, we do\n // this because the error provided from the app state may be cleared without\n // the location changing.\n\n\n return {\n error: props.error || state.error,\n location: state.location\n };\n }\n\n componentDidCatch(error, errorInfo) {\n console.error(\"React Router caught the following error during render\", error, errorInfo);\n }\n\n render() {\n return this.state.error ? /*#__PURE__*/React.createElement(RouteContext.Provider, {\n value: this.props.routeContext\n }, /*#__PURE__*/React.createElement(RouteErrorContext.Provider, {\n value: this.state.error,\n children: this.props.component\n })) : this.props.children;\n }\n\n}\n\nfunction RenderedRoute(_ref) {\n let {\n routeContext,\n match,\n children\n } = _ref;\n let dataRouterContext = React.useContext(DataRouterContext); // Track how deep we got in our render pass to emulate SSR componentDidCatch\n // in a DataStaticRouter\n\n if (dataRouterContext && dataRouterContext.static && dataRouterContext.staticContext && match.route.errorElement) {\n dataRouterContext.staticContext._deepestRenderedBoundaryId = match.route.id;\n }\n\n return /*#__PURE__*/React.createElement(RouteContext.Provider, {\n value: routeContext\n }, children);\n}\n\nfunction _renderMatches(matches, parentMatches, dataRouterState) {\n if (parentMatches === void 0) {\n parentMatches = [];\n }\n\n if (matches == null) {\n if (dataRouterState != null && dataRouterState.errors) {\n // Don't bail if we have data router errors so we can render them in the\n // boundary. Use the pre-matched (or shimmed) matches\n matches = dataRouterState.matches;\n } else {\n return null;\n }\n }\n\n let renderedMatches = matches; // If we have data errors, trim matches to the highest error boundary\n\n let errors = dataRouterState == null ? void 0 : dataRouterState.errors;\n\n if (errors != null) {\n let errorIndex = renderedMatches.findIndex(m => m.route.id && (errors == null ? void 0 : errors[m.route.id]));\n !(errorIndex >= 0) ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"Could not find a matching route for the current errors: \" + errors) : invariant(false) : void 0;\n renderedMatches = renderedMatches.slice(0, Math.min(renderedMatches.length, errorIndex + 1));\n }\n\n return renderedMatches.reduceRight((outlet, match, index) => {\n let error = match.route.id ? errors == null ? void 0 : errors[match.route.id] : null; // Only data routers handle errors\n\n let errorElement = dataRouterState ? match.route.errorElement || /*#__PURE__*/React.createElement(DefaultErrorElement, null) : null;\n let matches = parentMatches.concat(renderedMatches.slice(0, index + 1));\n\n let getChildren = () => /*#__PURE__*/React.createElement(RenderedRoute, {\n match: match,\n routeContext: {\n outlet,\n matches\n }\n }, error ? errorElement : match.route.element !== undefined ? match.route.element : outlet); // Only wrap in an error boundary within data router usages when we have an\n // errorElement on this route. Otherwise let it bubble up to an ancestor\n // errorElement\n\n\n return dataRouterState && (match.route.errorElement || index === 0) ? /*#__PURE__*/React.createElement(RenderErrorBoundary, {\n location: dataRouterState.location,\n component: errorElement,\n error: error,\n children: getChildren(),\n routeContext: {\n outlet: null,\n matches\n }\n }) : getChildren();\n }, null);\n}\nvar DataRouterHook;\n\n(function (DataRouterHook) {\n DataRouterHook[\"UseBlocker\"] = \"useBlocker\";\n DataRouterHook[\"UseRevalidator\"] = \"useRevalidator\";\n})(DataRouterHook || (DataRouterHook = {}));\n\nvar DataRouterStateHook;\n\n(function (DataRouterStateHook) {\n DataRouterStateHook[\"UseLoaderData\"] = \"useLoaderData\";\n DataRouterStateHook[\"UseActionData\"] = \"useActionData\";\n DataRouterStateHook[\"UseRouteError\"] = \"useRouteError\";\n DataRouterStateHook[\"UseNavigation\"] = \"useNavigation\";\n DataRouterStateHook[\"UseRouteLoaderData\"] = \"useRouteLoaderData\";\n DataRouterStateHook[\"UseMatches\"] = \"useMatches\";\n DataRouterStateHook[\"UseRevalidator\"] = \"useRevalidator\";\n})(DataRouterStateHook || (DataRouterStateHook = {}));\n\nfunction getDataRouterConsoleError(hookName) {\n return hookName + \" must be used within a data router. See https://reactrouter.com/routers/picking-a-router.\";\n}\n\nfunction useDataRouterContext(hookName) {\n let ctx = React.useContext(DataRouterContext);\n !ctx ? process.env.NODE_ENV !== \"production\" ? invariant(false, getDataRouterConsoleError(hookName)) : invariant(false) : void 0;\n return ctx;\n}\n\nfunction useDataRouterState(hookName) {\n let state = React.useContext(DataRouterStateContext);\n !state ? process.env.NODE_ENV !== \"production\" ? invariant(false, getDataRouterConsoleError(hookName)) : invariant(false) : void 0;\n return state;\n}\n\nfunction useRouteContext(hookName) {\n let route = React.useContext(RouteContext);\n !route ? process.env.NODE_ENV !== \"production\" ? invariant(false, getDataRouterConsoleError(hookName)) : invariant(false) : void 0;\n return route;\n}\n\nfunction useCurrentRouteId(hookName) {\n let route = useRouteContext(hookName);\n let thisRoute = route.matches[route.matches.length - 1];\n !thisRoute.route.id ? process.env.NODE_ENV !== \"production\" ? invariant(false, hookName + \" can only be used on routes that contain a unique \\\"id\\\"\") : invariant(false) : void 0;\n return thisRoute.route.id;\n}\n/**\n * Returns the current navigation, defaulting to an \"idle\" navigation when\n * no navigation is in progress\n */\n\n\nfunction useNavigation() {\n let state = useDataRouterState(DataRouterStateHook.UseNavigation);\n return state.navigation;\n}\n/**\n * Returns a revalidate function for manually triggering revalidation, as well\n * as the current state of any manual revalidations\n */\n\nfunction useRevalidator() {\n let dataRouterContext = useDataRouterContext(DataRouterHook.UseRevalidator);\n let state = useDataRouterState(DataRouterStateHook.UseRevalidator);\n return {\n revalidate: dataRouterContext.router.revalidate,\n state: state.revalidation\n };\n}\n/**\n * Returns the active route matches, useful for accessing loaderData for\n * parent/child routes or the route \"handle\" property\n */\n\nfunction useMatches() {\n let {\n matches,\n loaderData\n } = useDataRouterState(DataRouterStateHook.UseMatches);\n return React.useMemo(() => matches.map(match => {\n let {\n pathname,\n params\n } = match; // Note: This structure matches that created by createUseMatchesMatch\n // in the @remix-run/router , so if you change this please also change\n // that :) Eventually we'll DRY this up\n\n return {\n id: match.route.id,\n pathname,\n params,\n data: loaderData[match.route.id],\n handle: match.route.handle\n };\n }), [matches, loaderData]);\n}\n/**\n * Returns the loader data for the nearest ancestor Route loader\n */\n\nfunction useLoaderData() {\n let state = useDataRouterState(DataRouterStateHook.UseLoaderData);\n let routeId = useCurrentRouteId(DataRouterStateHook.UseLoaderData);\n\n if (state.errors && state.errors[routeId] != null) {\n console.error(\"You cannot `useLoaderData` in an errorElement (routeId: \" + routeId + \")\");\n return undefined;\n }\n\n return state.loaderData[routeId];\n}\n/**\n * Returns the loaderData for the given routeId\n */\n\nfunction useRouteLoaderData(routeId) {\n let state = useDataRouterState(DataRouterStateHook.UseRouteLoaderData);\n return state.loaderData[routeId];\n}\n/**\n * Returns the action data for the nearest ancestor Route action\n */\n\nfunction useActionData() {\n let state = useDataRouterState(DataRouterStateHook.UseActionData);\n let route = React.useContext(RouteContext);\n !route ? process.env.NODE_ENV !== \"production\" ? invariant(false, \"useActionData must be used inside a RouteContext\") : invariant(false) : void 0;\n return Object.values((state == null ? void 0 : state.actionData) || {})[0];\n}\n/**\n * Returns the nearest ancestor Route error, which could be a loader/action\n * error or a render error. This is intended to be called from your\n * errorElement to display a proper error message.\n */\n\nfunction useRouteError() {\n var _state$errors;\n\n let error = React.useContext(RouteErrorContext);\n let state = useDataRouterState(DataRouterStateHook.UseRouteError);\n let routeId = useCurrentRouteId(DataRouterStateHook.UseRouteError); // If this was a render error, we put it in a RouteError context inside\n // of RenderErrorBoundary\n\n if (error) {\n return error;\n } // Otherwise look for errors from our data router state\n\n\n return (_state$errors = state.errors) == null ? void 0 : _state$errors[routeId];\n}\n/**\n * Returns the happy-path data from the nearest ancestor value\n */\n\nfunction useAsyncValue() {\n let value = React.useContext(AwaitContext);\n return value == null ? void 0 : value._data;\n}\n/**\n * Returns the error from the nearest ancestor value\n */\n\nfunction useAsyncError() {\n let value = React.useContext(AwaitContext);\n return value == null ? void 0 : value._error;\n}\nlet blockerId = 0;\n/**\n * Allow the application to block navigations within the SPA and present the\n * user a confirmation dialog to confirm the navigation. Mostly used to avoid\n * using half-filled form data. This does not handle hard-reloads or\n * cross-origin navigations.\n */\n\nfunction useBlocker(shouldBlock) {\n let {\n router\n } = useDataRouterContext(DataRouterHook.UseBlocker);\n let [blockerKey] = React.useState(() => String(++blockerId));\n let blockerFunction = React.useCallback(args => {\n return typeof shouldBlock === \"function\" ? !!shouldBlock(args) : !!shouldBlock;\n }, [shouldBlock]);\n let blocker = router.getBlocker(blockerKey, blockerFunction); // Cleanup on unmount\n\n React.useEffect(() => () => router.deleteBlocker(blockerKey), [router, blockerKey]);\n return blocker;\n}\nconst alreadyWarned = {};\n\nfunction warningOnce(key, cond, message) {\n if (!cond && !alreadyWarned[key]) {\n alreadyWarned[key] = true;\n process.env.NODE_ENV !== \"production\" ? warning(false, message) : void 0;\n }\n}\n\n/**\n * Given a Remix Router instance, render the appropriate UI\n */\nfunction RouterProvider(_ref) {\n let {\n fallbackElement,\n router\n } = _ref;\n // Sync router state to our component state to force re-renders\n let state = useSyncExternalStore(router.subscribe, () => router.state, // We have to provide this so React@18 doesn't complain during hydration,\n // but we pass our serialized hydration data into the router so state here\n // is already synced with what the server saw\n () => router.state);\n let navigator = React.useMemo(() => {\n return {\n createHref: router.createHref,\n encodeLocation: router.encodeLocation,\n go: n => router.navigate(n),\n push: (to, state, opts) => router.navigate(to, {\n state,\n preventScrollReset: opts == null ? void 0 : opts.preventScrollReset\n }),\n replace: (to, state, opts) => router.navigate(to, {\n replace: true,\n state,\n preventScrollReset: opts == null ? void 0 : opts.preventScrollReset\n })\n };\n }, [router]);\n let basename = router.basename || \"/\"; // The fragment and {null} here are important! We need them to keep React 18's\n // useId happy when we are server-rendering since we may have a +