diff --git a/assets/de-DE-Mw7sAQpV.js b/assets/de-DE-mylWXcAJ.js similarity index 83% rename from assets/de-DE-Mw7sAQpV.js rename to assets/de-DE-mylWXcAJ.js index 24f8a9430..4bf481971 100644 --- a/assets/de-DE-Mw7sAQpV.js +++ b/assets/de-DE-mylWXcAJ.js @@ -1,4 +1,4 @@ -const e={"cutting-button":"Schneiden","finish-button":"Fertigstellen","select-tracks-button":"Spuren","subtitles-button":"Untertitel","thumbnail-button":"Vorschaubild","metadata-button":"Metadaten","keyboard-controls-button":"Tastatursteuerung","tooltip-aria":"Hauptnavigation"},t={"cut-button":"Schneiden","cut-tooltip":"Segment an der aktuellen Position der Zeitleiste teilen. Hotkey: {{hotkeyName}}","cut-tooltip-aria":"Schneiden. Teilt das Segment an der aktuellen Position des Zeitmarkers. Hotkey: {{hotkeyName}}.","delete-button":"Löschen","delete-restore-tooltip":"Markieren oder entfernen Sie das Segment an der aktuellen Position zur Löschung. Hotkey: {{hotkeyName}}","delete-restore-tooltip-aria":"Löschen und Wiederherstellen. Markieren oder entfernen Sie das Segment an der aktuellen Position zur Löschung. Hotkey: {{hotKeyName}}.","merge-all-button":"Alle zusammenführen","merge-all-tooltip":"Alle Segmente in ein einziges Segment zusammenführen.","merge-all-tooltip-aria":"Alle Segmente in ein einziges Segment zusammenführen.","restore-button":"Wiederherstellen","mergeLeft-button":"Links zusammenfügen","mergeLeft-tooltip":"Verbinde das aktuell aktive Segment mit dem Segment auf der linken Seite. Hotkey: {{hotkeyName}}","mergeLeft-tooltip-aria":"Links zusammenfügen. Verbinden Sie das aktuell aktive Segment mit dem Segment auf der linken Seite. Hotkey: {{hotkeyName}}.","mergeRight-button":"Rechts zusammenfügen","mergeRight-tooltip":"Verbinde das aktuell aktive Segment mit dem Segment auf der rechten Seite. Hotkey: {{hotkeyName}}","mergeRight-tooltip-aria":"Rechts zusammenfügen. Verbinden Sie das aktuell aktive Segment mit dem Segment auf der rechten Seite. Hotkey: {{hotkeyName}}."},n={previewButton:"Vorschaumodus","previewButton-tooltip":"Überspringt gelöschte Segmente bei der Wiedergabe des Videos. Derzeit {{status}}. Hotkey: {{hotkeyName}}","previewButton-aria":"Vorschaumodus aktivieren oder deaktivieren. Hotkey: {{hotkeyName}}.","playButton-tooltip":"Video wiedergeben","pauseButton-tooltip":"Video pausieren","current-time-tooltip":"Aktuelle Zeit","time-duration-tooltip":"Videodauer","duration-aria":"Dauer","time-aria":"Aktuelle Zeit","mutebutton-tooltip":"Video stumm schalten","unmutebutton-tooltip":"Videoton aktivieren","volume-tooltip":"Lautstärke anpassen: {{current}}%","volumeSlider-aria":"Lautstärke des Videos anpassen.","comError-text":"Bei der Kommunikation mit Opencast ist ein Problem aufgetreten.","loadError-text":"Beim Laden des Videos ist ein Fehler aufgetreten.","durationError-text":"Opencast konnte die Video-Dauer nicht angeben.","title-tooltip":"Videotitel","presenter-tooltip":"Vortragende"},i={"save-button":"Änderungen speichern","start-button":"Save and process changes","discard-button":"Änderungen verwerfen"},r={"headline-text":"Aktuelles Projekt speichern","confirm-button":"Ja, Änderungen speichern","confirmButton-attempting-tooltip":"Versuche zu speichern","confirmButton-success-tooltip":"Erfolgreich gespeichert","confirmButton-failed-tooltip":"Speichern fehlgeschlagen","info-text":"Das Video wird nicht verarbeitet, aber alle Schnittinformationen werden in Opencast gespeichert. Sie können Ihre Bearbeitung später fortsetzen.","success-text":"Änderungen erfolgreich gespeichert! Sie können den Editor nun schließen oder weiter arbeiten.","success-tooltip-aria":"Erfolgreich gespeichert","saveArea-tooltip":"Speicherbereich","confirm-success":"Okay","cancel-save":"Nicht speichern"},o={"headline-text":"Änderungen verwerfen","confirm-button":"Ja, Änderungen verwerfen","info-text":"Sind Sie sicher, dass Sie diese Änderung verwerfen möchten? Dies kann nicht rückgängig gemacht werden!"},a={"discarded-text":"Ihre Änderungen wurden verworfen. Sie können den Editor nun schließen.","startOver-button":"Von neuem beginnen!","startOver-tooltip":"Seite neu laden, um neu zu starten","info-text":`Änderungen erfolgreich in Opencast gespeichert. Die Bearbeitung Ihrer Änderungen kann einige Zeit dauern, bitte haben Sie etwas Geduld. Sie können nun den Editor schließen. +const e={"cutting-button":"Schneiden","finish-button":"Fertigstellen","select-tracks-button":"Spuren","subtitles-button":"Untertitel","thumbnail-button":"Vorschaubild","metadata-button":"Metadaten","keyboard-controls-button":"Tastatursteuerung","tooltip-aria":"Hauptnavigation"},t={"cut-button":"Schneiden","cut-tooltip":"Segment an der aktuellen Position der Zeitleiste teilen. Hotkey: {{hotkeyName}}","cut-tooltip-aria":"Schneiden. Teilt das Segment an der aktuellen Position des Zeitmarkers. Hotkey: {{hotkeyName}}.","delete-button":"Löschen","delete-restore-tooltip":"Markieren oder entfernen Sie das Segment an der aktuellen Position zur Löschung. Hotkey: {{hotkeyName}}","delete-restore-tooltip-aria":"Löschen und Wiederherstellen. Markieren oder entfernen Sie das Segment an der aktuellen Position zur Löschung. Hotkey: {{hotKeyName}}.","merge-all-button":"Alle zusammenführen","merge-all-tooltip":"Alle Segmente in ein einziges Segment zusammenführen.","merge-all-tooltip-aria":"Alle Segmente in ein einziges Segment zusammenführen.","restore-button":"Wiederherstellen","mergeLeft-button":"Links zusammenfügen","mergeLeft-tooltip":"Verbinde das aktuell aktive Segment mit dem Segment auf der linken Seite. Hotkey: {{hotkeyName}}","mergeLeft-tooltip-aria":"Links zusammenfügen. Verbinden Sie das aktuell aktive Segment mit dem Segment auf der linken Seite. Hotkey: {{hotkeyName}}.","mergeRight-button":"Rechts zusammenfügen","mergeRight-tooltip":"Verbinde das aktuell aktive Segment mit dem Segment auf der rechten Seite. Hotkey: {{hotkeyName}}","mergeRight-tooltip-aria":"Rechts zusammenfügen. Verbinden Sie das aktuell aktive Segment mit dem Segment auf der rechten Seite. Hotkey: {{hotkeyName}}."},n={previewButton:"Vorschaumodus","previewButton-tooltip":"Überspringt gelöschte Segmente bei der Wiedergabe des Videos. Derzeit {{status}}. Hotkey: {{hotkeyName}}","previewButton-aria":"Vorschaumodus aktivieren oder deaktivieren. Hotkey: {{hotkeyName}}.","playButton-tooltip":"Video wiedergeben","pauseButton-tooltip":"Video pausieren",previousButton:"Zurück","previousButton-tooltip":"Zurück. Hotkey: {{hotkeyName}}.",nextButton:"Weiter","nextButton-tooltip":"Weiter. Hotkey: {{hotkeyName}}.","current-time-tooltip":"Aktuelle Zeit","time-duration-tooltip":"Videodauer","duration-aria":"Dauer","time-aria":"Aktuelle Zeit","mutebutton-tooltip":"Video stumm schalten","unmutebutton-tooltip":"Videoton aktivieren","volume-tooltip":"Lautstärke anpassen: {{current}}%","volumeSlider-aria":"Lautstärke des Videos anpassen.","comError-text":"Bei der Kommunikation mit Opencast ist ein Problem aufgetreten.","loadError-text":"Beim Laden des Videos ist ein Fehler aufgetreten.","durationError-text":"Opencast konnte die Video-Dauer nicht angeben.","title-tooltip":"Videotitel","presenter-tooltip":"Vortragende"},i={"save-button":"Änderungen speichern","start-button":"Save and process changes","discard-button":"Änderungen verwerfen"},r={"headline-text":"Aktuelles Projekt speichern","confirm-button":"Ja, Änderungen speichern","confirmButton-attempting-tooltip":"Versuche zu speichern","confirmButton-success-tooltip":"Erfolgreich gespeichert","confirmButton-failed-tooltip":"Speichern fehlgeschlagen","info-text":"Das Video wird nicht verarbeitet, aber alle Schnittinformationen werden in Opencast gespeichert. Sie können Ihre Bearbeitung später fortsetzen.","success-text":"Änderungen erfolgreich gespeichert! Sie können den Editor nun schließen oder weiter arbeiten.","success-tooltip-aria":"Erfolgreich gespeichert","saveArea-tooltip":"Speicherbereich","confirm-success":"Okay","cancel-save":"Nicht speichern"},o={"headline-text":"Änderungen verwerfen","confirm-button":"Ja, Änderungen verwerfen","info-text":"Sind Sie sicher, dass Sie diese Änderung verwerfen möchten? Dies kann nicht rückgängig gemacht werden!"},a={"discarded-text":"Ihre Änderungen wurden verworfen. Sie können den Editor nun schließen.","startOver-button":"Von neuem beginnen!","startOver-tooltip":"Seite neu laden, um neu zu starten","info-text":`Änderungen erfolgreich in Opencast gespeichert. Die Bearbeitung Ihrer Änderungen kann einige Zeit dauern, bitte haben Sie etwas Geduld. Sie können nun den Editor schließen. `},s={"saveAndProcess-text":"Speichern & verarbeiten","selectWF-text":"Workflow wählen","noWorkflows-text":`Es gibt keine Workflows zum Verarbeiten Ihrer Änderungen. Bitte speichern Sie Ihre Änderungen und kontaktieren Sie einen Administrator. `,"oneWorkflow-text":`The changes will be saved and the video will be cut and processed with the workflow "{{workflow}}". <3/> This will take some time. `,"manyWorkflows-text":"Wählen Sie aus, welchen Workflow Opencast für die Verarbeitung verwenden soll.","startProcessing-button":"Verarbeitung starten","back-button":"Zurück","selectWF-button":"Klicken, um diesen Workflow auszuwählen","selectWF-button-aria":`Klicken, um den Workflow auszuwählen: {{stateName}} diff --git a/assets/en-US-hIPrZ761.js b/assets/en-US-Z6VL3BtW.js similarity index 83% rename from assets/en-US-hIPrZ761.js rename to assets/en-US-Z6VL3BtW.js index d2f3e01bd..b6a6a096a 100644 --- a/assets/en-US-hIPrZ761.js +++ b/assets/en-US-Z6VL3BtW.js @@ -1,4 +1,4 @@ -const e={"cutting-button":"Cutting","finish-button":"Finish","select-tracks-button":"Tracks","subtitles-button":"Subtitles","thumbnail-button":"Thumbnail","metadata-button":"Metadata","keyboard-controls-button":"Keyboard Controls","tooltip-aria":"Main Navigation"},t={"cut-button":"Cut","cut-tooltip":"Split the segment at the current timeline marker position. Hotkey: {{hotkeyName}}","cut-tooltip-aria":"Cut. Split the segment at the current timeline marker position. Hotkey: {{hotkeyName}}.","delete-button":"Delete","delete-restore-tooltip":"Mark or unmark the segment at the current position as to be deleted. Hotkey: {{hotkeyName}}","delete-restore-tooltip-aria":"Delete and Restore. Mark or unmark the segment at the current position as to be deleted. Hotkey: {{hotkeyName}}.","merge-all-button":"Merge All","merge-all-tooltip":"Combine all segments into a single segment.","merge-all-tooltip-aria":"Merge All. Combine all segments into a single segment.","restore-button":"Restore","mergeLeft-button":"Merge Left","mergeLeft-tooltip":"Combine the currently active segment with the segment to its left. Hotkey: {{hotkeyName}}","mergeLeft-tooltip-aria":"Merge Left. Combine the currently active segment with the segment to its left. Hotkey: {{hotkeyName}}.","mergeRight-button":"Merge Right","mergeRight-tooltip":"Combine the currently active segment with the segment to its right. Hotkey: {{hotkeyName}}","mergeRight-tooltip-aria":"Merge Right. Combine the currently active segment with the segment to its right. Hotkey: {{hotkeyName}}."},o={previewButton:"Preview Mode","previewButton-tooltip":"Skips deleted segments when playing the video. Currently {{status}}. Hotkey: {{hotkeyName}}","previewButton-aria":"Enable or disable preview mode. Hotkey: {{hotkeyName}}.","playButton-tooltip":"Play video","pauseButton-tooltip":"Pause video","current-time-tooltip":"Current time","time-duration-tooltip":"Video duration","duration-aria":"Duration","time-aria":"Current time","mutebutton-tooltip":"Mute video","unmutebutton-tooltip":"Unmute video","volume-tooltip":"Adjust volume: {{current}}%","volumeSlider-aria":"Adjust the volume level of the video.","comError-text":"A problem occurred during communication with Opencast.","loadError-text":"An error has occurred loading this video.","durationError-text":"Opencast failed to provide the video duration.","title-tooltip":"Video Title","presenter-tooltip":"Video Presenters"},i={"save-button":"Save changes","start-button":"Save and process changes","discard-button":"Discard changes"},a={"headline-text":"Save current project","confirm-button":"Yes, save changes","confirmButton-attempting-tooltip":"Attempting to save","confirmButton-success-tooltip":"Saved successfully","confirmButton-failed-tooltip":"Save failed","info-text":"The video will not be processed but all cutting information will be stored in Opencast. You can continue your edit later.","success-text":"Changes saved successfully! You can now close the editor or continue working.","success-tooltip-aria":"Saved successfully","saveArea-tooltip":"Save Area","confirm-success":"Okay","cancel-save":"Don't save"},n={"headline-text":"Discard changes","confirm-button":"Yes, discard changes","info-text":"Are you sure you want to discard your changes? This cannot be undone!"},r={"discarded-text":"Your changes have been discarded. You can now close the editor.","startOver-button":"Let me start over!","startOver-tooltip":"Reload the page to start over","info-text":`Changes successfully saved to Opencast. Processing your changes may take quite some time so please be patient. You can now close the editor. +const e={"cutting-button":"Cutting","finish-button":"Finish","select-tracks-button":"Tracks","subtitles-button":"Subtitles","thumbnail-button":"Thumbnail","metadata-button":"Metadata","keyboard-controls-button":"Keyboard Controls","tooltip-aria":"Main Navigation"},t={"cut-button":"Cut","cut-tooltip":"Split the segment at the current timeline marker position. Hotkey: {{hotkeyName}}","cut-tooltip-aria":"Cut. Split the segment at the current timeline marker position. Hotkey: {{hotkeyName}}.","delete-button":"Delete","delete-restore-tooltip":"Mark or unmark the segment at the current position as to be deleted. Hotkey: {{hotkeyName}}","delete-restore-tooltip-aria":"Delete and Restore. Mark or unmark the segment at the current position as to be deleted. Hotkey: {{hotkeyName}}.","merge-all-button":"Merge All","merge-all-tooltip":"Combine all segments into a single segment.","merge-all-tooltip-aria":"Merge All. Combine all segments into a single segment.","restore-button":"Restore","mergeLeft-button":"Merge Left","mergeLeft-tooltip":"Combine the currently active segment with the segment to its left. Hotkey: {{hotkeyName}}","mergeLeft-tooltip-aria":"Merge Left. Combine the currently active segment with the segment to its left. Hotkey: {{hotkeyName}}.","mergeRight-button":"Merge Right","mergeRight-tooltip":"Combine the currently active segment with the segment to its right. Hotkey: {{hotkeyName}}","mergeRight-tooltip-aria":"Merge Right. Combine the currently active segment with the segment to its right. Hotkey: {{hotkeyName}}."},o={previewButton:"Preview Mode","previewButton-tooltip":"Skips deleted segments when playing the video. Currently {{status}}. Hotkey: {{hotkeyName}}","previewButton-aria":"Enable or disable preview mode. Hotkey: {{hotkeyName}}.","playButton-tooltip":"Play video","pauseButton-tooltip":"Pause video",previousButton:"Back","previousButton-tooltip":"Back. Hotkey: {{hotkeyName}}.",nextButton:"Forward","nextButton-tooltip":"Forward. Hotkey: {{hotkeyName}}.","current-time-tooltip":"Current time","time-duration-tooltip":"Video duration","duration-aria":"Duration","time-aria":"Current time","mutebutton-tooltip":"Mute video","unmutebutton-tooltip":"Unmute video","volume-tooltip":"Adjust volume: {{current}}%","volumeSlider-aria":"Adjust the volume level of the video.","comError-text":"A problem occurred during communication with Opencast.","loadError-text":"An error has occurred loading this video.","durationError-text":"Opencast failed to provide the video duration.","title-tooltip":"Video Title","presenter-tooltip":"Video Presenters"},i={"save-button":"Save changes","start-button":"Save and process changes","discard-button":"Discard changes"},a={"headline-text":"Save current project","confirm-button":"Yes, save changes","confirmButton-attempting-tooltip":"Attempting to save","confirmButton-success-tooltip":"Saved successfully","confirmButton-failed-tooltip":"Save failed","info-text":"The video will not be processed but all cutting information will be stored in Opencast. You can continue your edit later.","success-text":"Changes saved successfully! You can now close the editor or continue working.","success-tooltip-aria":"Saved successfully","saveArea-tooltip":"Save Area","confirm-success":"Okay","cancel-save":"Don't save"},n={"headline-text":"Discard changes","confirm-button":"Yes, discard changes","info-text":"Are you sure you want to discard your changes? This cannot be undone!"},r={"discarded-text":"Your changes have been discarded. You can now close the editor.","startOver-button":"Let me start over!","startOver-tooltip":"Reload the page to start over","info-text":`Changes successfully saved to Opencast. Processing your changes may take quite some time so please be patient. You can now close the editor. `},s={"saveAndProcess-text":"Save and Process","selectWF-text":"Select a workflow","noWorkflows-text":`There are no workflows to process your changes with. Please save your changes and contact an administrator. `,"oneWorkflow-text":`The changes will be saved and the video will be cut and processed with the workflow "{{workflow}}". <3/> This will take some time. `,"manyWorkflows-text":"Select which workflow Opencast should use for processing.","startProcessing-button":"Start processing","back-button":"Take me back","selectWF-button":"Click to select this workflow","selectWF-button-aria":`Press to select the workflow: {{stateName}} diff --git a/assets/index-9-qUqwEW.js b/assets/index--qukRoZc.js similarity index 79% rename from assets/index-9-qUqwEW.js rename to assets/index--qukRoZc.js index 4ceb8e3f9..71d5c23eb 100644 --- a/assets/index-9-qUqwEW.js +++ b/assets/index--qukRoZc.js @@ -1,4 +1,4 @@ -var v_=Object.defineProperty;var y_=($,_e,et)=>_e in $?v_($,_e,{enumerable:!0,configurable:!0,writable:!0,value:et}):$[_e]=et;var Wu=($,_e,et)=>(y_($,typeof _e!="symbol"?_e+"":_e,et),et);function _mergeNamespaces($,_e){for(var et=0;et<_e.length;et++){const tt=_e[et];if(typeof tt!="string"&&!Array.isArray(tt)){for(const nt in tt)if(nt!=="default"&&!(nt in $)){const rt=Object.getOwnPropertyDescriptor(tt,nt);rt&&Object.defineProperty($,nt,rt.get?rt:{enumerable:!0,get:()=>tt[nt]})}}}return Object.freeze(Object.defineProperty($,Symbol.toStringTag,{value:"Module"}))}(function(){const _e=document.createElement("link").relList;if(_e&&_e.supports&&_e.supports("modulepreload"))return;for(const nt of document.querySelectorAll('link[rel="modulepreload"]'))tt(nt);new MutationObserver(nt=>{for(const rt of nt)if(rt.type==="childList")for(const ot of rt.addedNodes)ot.tagName==="LINK"&&ot.rel==="modulepreload"&&tt(ot)}).observe(document,{childList:!0,subtree:!0});function et(nt){const rt={};return nt.integrity&&(rt.integrity=nt.integrity),nt.referrerPolicy&&(rt.referrerPolicy=nt.referrerPolicy),nt.crossOrigin==="use-credentials"?rt.credentials="include":nt.crossOrigin==="anonymous"?rt.credentials="omit":rt.credentials="same-origin",rt}function tt(nt){if(nt.ep)return;nt.ep=!0;const rt=et(nt);fetch(nt.href,rt)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function getDefaultExportFromCjs($){return $&&$.__esModule&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$}function getAugmentedNamespace($){if($.__esModule)return $;var _e=$.default;if(typeof _e=="function"){var et=function tt(){return this instanceof tt?Reflect.construct(_e,arguments,this.constructor):_e.apply(this,arguments)};et.prototype=_e.prototype}else et={};return Object.defineProperty(et,"__esModule",{value:!0}),Object.keys($).forEach(function(tt){var nt=Object.getOwnPropertyDescriptor($,tt);Object.defineProperty(et,tt,nt.get?nt:{enumerable:!0,get:function(){return $[tt]}})}),et}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};/** +var v_=Object.defineProperty;var y_=($,_e,et)=>_e in $?v_($,_e,{enumerable:!0,configurable:!0,writable:!0,value:et}):$[_e]=et;var Bu=($,_e,et)=>(y_($,typeof _e!="symbol"?_e+"":_e,et),et);function _mergeNamespaces($,_e){for(var et=0;et<_e.length;et++){const tt=_e[et];if(typeof tt!="string"&&!Array.isArray(tt)){for(const nt in tt)if(nt!=="default"&&!(nt in $)){const rt=Object.getOwnPropertyDescriptor(tt,nt);rt&&Object.defineProperty($,nt,rt.get?rt:{enumerable:!0,get:()=>tt[nt]})}}}return Object.freeze(Object.defineProperty($,Symbol.toStringTag,{value:"Module"}))}(function(){const _e=document.createElement("link").relList;if(_e&&_e.supports&&_e.supports("modulepreload"))return;for(const nt of document.querySelectorAll('link[rel="modulepreload"]'))tt(nt);new MutationObserver(nt=>{for(const rt of nt)if(rt.type==="childList")for(const ot of rt.addedNodes)ot.tagName==="LINK"&&ot.rel==="modulepreload"&&tt(ot)}).observe(document,{childList:!0,subtree:!0});function et(nt){const rt={};return nt.integrity&&(rt.integrity=nt.integrity),nt.referrerPolicy&&(rt.referrerPolicy=nt.referrerPolicy),nt.crossOrigin==="use-credentials"?rt.credentials="include":nt.crossOrigin==="anonymous"?rt.credentials="omit":rt.credentials="same-origin",rt}function tt(nt){if(nt.ep)return;nt.ep=!0;const rt=et(nt);fetch(nt.href,rt)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function getDefaultExportFromCjs($){return $&&$.__esModule&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$}function getAugmentedNamespace($){if($.__esModule)return $;var _e=$.default;if(typeof _e=="function"){var et=function tt(){return this instanceof tt?Reflect.construct(_e,arguments,this.constructor):_e.apply(this,arguments)};et.prototype=_e.prototype}else et={};return Object.defineProperty(et,"__esModule",{value:!0}),Object.keys($).forEach(function(tt){var nt=Object.getOwnPropertyDescriptor($,tt);Object.defineProperty(et,tt,nt.get?nt:{enumerable:!0,get:function(){return $[tt]}})}),et}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};/** * @license React * react.production.min.js * @@ -14,7 +14,7 @@ var v_=Object.defineProperty;var y_=($,_e,et)=>_e in $?v_($,_e,{enumerable:!0,co * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var f$5=reactExports,k$2=Symbol.for("react.element"),l$5=Symbol.for("react.fragment"),m$3=Object.prototype.hasOwnProperty,n$6=f$5.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p$5={key:!0,ref:!0,__self:!0,__source:!0};function q$3($,_e,et){var tt,nt={},rt=null,ot=null;et!==void 0&&(rt=""+et),_e.key!==void 0&&(rt=""+_e.key),_e.ref!==void 0&&(ot=_e.ref);for(tt in _e)m$3.call(_e,tt)&&!p$5.hasOwnProperty(tt)&&(nt[tt]=_e[tt]);if($&&$.defaultProps)for(tt in _e=$.defaultProps,_e)nt[tt]===void 0&&(nt[tt]=_e[tt]);return{$$typeof:k$2,type:$,key:rt,ref:ot,props:nt,_owner:n$6.current}}reactJsxRuntime_production_min.Fragment=l$5;reactJsxRuntime_production_min.jsx=q$3;reactJsxRuntime_production_min.jsxs=q$3;jsxRuntime.exports=reactJsxRuntime_production_min;var jsxRuntimeExports=jsxRuntime.exports;function sheetForTag($){if($.sheet)return $.sheet;for(var _e=0;_e0?charat(characters,--position):0,column--,character===10&&(column=1,line--),character}function next(){return character=position2||token(character)>3?"":" "}function escaping($,_e){for(;--_e&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice$2($,caret()+(_e<6&&peek$1()==32&&next()==32))}function delimiter($){for(;next();)switch(character){case $:return position;case 34:case 39:$!==34&&$!==39&&delimiter(character);break;case 40:$===41&&delimiter($);break;case 92:next();break}return position}function commenter($,_e){for(;next()&&$+character!==57;)if($+character===84&&peek$1()===47)break;return"/*"+slice$2(_e,position-1)+"*"+from($===47?$:next())}function identifier($){for(;!token(peek$1());)next();return slice$2($,position)}function compile($){return dealloc(parse$1("",null,null,null,[""],$=alloc($),0,[0],$))}function parse$1($,_e,et,tt,nt,rt,ot,it,st){for(var lt=0,ct=0,ft=ot,dt=0,pt=0,ht=0,gt=1,yt=1,vt=1,Et=0,Tt="",Ot=nt,xt=rt,$t=tt,wt=Tt;yt;)switch(ht=Et,Et=next()){case 40:if(ht!=108&&charat(wt,ft-1)==58){indexof(wt+=replace(delimit(Et),"&","&\f"),"&\f")!=-1&&(vt=-1);break}case 34:case 39:case 91:wt+=delimit(Et);break;case 9:case 10:case 13:case 32:wt+=whitespace(ht);break;case 92:wt+=escaping(caret()-1,7);continue;case 47:switch(peek$1()){case 42:case 47:append(comment(commenter(next(),caret()),_e,et),st);break;default:wt+="/"}break;case 123*gt:it[lt++]=strlen(wt)*vt;case 125*gt:case 59:case 0:switch(Et){case 0:case 125:yt=0;case 59+ct:vt==-1&&(wt=replace(wt,/\f/g,"")),pt>0&&strlen(wt)-ft&&append(pt>32?declaration(wt+";",tt,et,ft-1):declaration(replace(wt," ","")+";",tt,et,ft-2),st);break;case 59:wt+=";";default:if(append($t=ruleset(wt,_e,et,lt,ct,nt,it,Tt,Ot=[],xt=[],ft),rt),Et===123)if(ct===0)parse$1(wt,_e,$t,$t,Ot,rt,ft,it,xt);else switch(dt===99&&charat(wt,3)===110?100:dt){case 100:case 108:case 109:case 115:parse$1($,$t,$t,tt&&append(ruleset($,$t,$t,0,0,nt,it,Tt,nt,Ot=[],ft),xt),nt,xt,ft,it,tt?Ot:xt);break;default:parse$1(wt,$t,$t,$t,[""],xt,0,it,xt)}}lt=ct=pt=0,gt=vt=1,Tt=wt="",ft=ot;break;case 58:ft=1+strlen(wt),pt=ht;default:if(gt<1){if(Et==123)--gt;else if(Et==125&>++==0&&prev()==125)continue}switch(wt+=from(Et),Et*gt){case 38:vt=ct>0?1:(wt+="\f",-1);break;case 44:it[lt++]=(strlen(wt)-1)*vt,vt=1;break;case 64:peek$1()===45&&(wt+=delimit(next())),dt=peek$1(),ct=ft=strlen(Tt=wt+=identifier(caret())),Et++;break;case 45:ht===45&&strlen(wt)==2&&(gt=0)}}return rt}function ruleset($,_e,et,tt,nt,rt,ot,it,st,lt,ct){for(var ft=nt-1,dt=nt===0?rt:[""],pt=sizeof(dt),ht=0,gt=0,yt=0;ht0?dt[vt]+" "+Et:replace(Et,/&\f/g,dt[vt])))&&(st[yt++]=Tt);return node$1($,_e,et,nt===0?RULESET:it,st,lt,ct)}function comment($,_e,et){return node$1($,_e,et,COMMENT,from(char()),substr($,2,-2),0)}function declaration($,_e,et,tt){return node$1($,_e,et,DECLARATION,substr($,0,tt),substr($,tt+1,-1),tt)}function serialize($,_e){for(var et="",tt=sizeof($),nt=0;nt6)switch(charat($,_e+1)){case 109:if(charat($,_e+4)!==45)break;case 102:return replace($,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat($,_e+3)==108?"$3":"$2-$3"))+$;case 115:return~indexof($,"stretch")?prefix(replace($,"stretch","fill-available"),_e)+$:$}break;case 4949:if(charat($,_e+1)!==115)break;case 6444:switch(charat($,strlen($)-3-(~indexof($,"!important")&&10))){case 107:return replace($,":",":"+WEBKIT)+$;case 101:return replace($,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat($,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+$}break;case 5936:switch(charat($,_e+11)){case 114:return WEBKIT+$+MS+replace($,/[svh]\w+-[tblr]{2}/,"tb")+$;case 108:return WEBKIT+$+MS+replace($,/[svh]\w+-[tblr]{2}/,"tb-rl")+$;case 45:return WEBKIT+$+MS+replace($,/[svh]\w+-[tblr]{2}/,"lr")+$}return WEBKIT+$+MS+$+$}return $}var prefixer=function(_e,et,tt,nt){if(_e.length>-1&&!_e.return)switch(_e.type){case DECLARATION:_e.return=prefix(_e.value,_e.length);break;case KEYFRAMES:return serialize([copy$1(_e,{value:replace(_e.value,"@","@"+WEBKIT)})],nt);case RULESET:if(_e.length)return combine(_e.props,function(rt){switch(match$2(rt,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy$1(_e,{props:[replace(rt,/:(read-\w+)/,":"+MOZ+"$1")]})],nt);case"::placeholder":return serialize([copy$1(_e,{props:[replace(rt,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy$1(_e,{props:[replace(rt,/:(plac\w+)/,":"+MOZ+"$1")]}),copy$1(_e,{props:[replace(rt,/:(plac\w+)/,MS+"input-$1")]})],nt)}return""})}},defaultStylisPlugins=[prefixer],createCache=function(_e){var et=_e.key;if(et==="css"){var tt=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(tt,function(gt){var yt=gt.getAttribute("data-emotion");yt.indexOf(" ")!==-1&&(document.head.appendChild(gt),gt.setAttribute("data-s",""))})}var nt=_e.stylisPlugins||defaultStylisPlugins,rt={},ot,it=[];ot=_e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+et+' "]'),function(gt){for(var yt=gt.getAttribute("data-emotion").split(" "),vt=1;vt0?charat(characters,--position):0,column--,character===10&&(column=1,line--),character}function next(){return character=position2||token(character)>3?"":" "}function escaping($,_e){for(;--_e&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice$2($,caret()+(_e<6&&peek$1()==32&&next()==32))}function delimiter($){for(;next();)switch(character){case $:return position;case 34:case 39:$!==34&&$!==39&&delimiter(character);break;case 40:$===41&&delimiter($);break;case 92:next();break}return position}function commenter($,_e){for(;next()&&$+character!==57;)if($+character===84&&peek$1()===47)break;return"/*"+slice$2(_e,position-1)+"*"+from($===47?$:next())}function identifier($){for(;!token(peek$1());)next();return slice$2($,position)}function compile($){return dealloc(parse$1("",null,null,null,[""],$=alloc($),0,[0],$))}function parse$1($,_e,et,tt,nt,rt,ot,it,st){for(var lt=0,ct=0,ft=ot,dt=0,pt=0,ht=0,gt=1,yt=1,vt=1,Et=0,Tt="",Ot=nt,wt=rt,$t=tt,xt=Tt;yt;)switch(ht=Et,Et=next()){case 40:if(ht!=108&&charat(xt,ft-1)==58){indexof(xt+=replace(delimit(Et),"&","&\f"),"&\f")!=-1&&(vt=-1);break}case 34:case 39:case 91:xt+=delimit(Et);break;case 9:case 10:case 13:case 32:xt+=whitespace(ht);break;case 92:xt+=escaping(caret()-1,7);continue;case 47:switch(peek$1()){case 42:case 47:append(comment(commenter(next(),caret()),_e,et),st);break;default:xt+="/"}break;case 123*gt:it[lt++]=strlen(xt)*vt;case 125*gt:case 59:case 0:switch(Et){case 0:case 125:yt=0;case 59+ct:vt==-1&&(xt=replace(xt,/\f/g,"")),pt>0&&strlen(xt)-ft&&append(pt>32?declaration(xt+";",tt,et,ft-1):declaration(replace(xt," ","")+";",tt,et,ft-2),st);break;case 59:xt+=";";default:if(append($t=ruleset(xt,_e,et,lt,ct,nt,it,Tt,Ot=[],wt=[],ft),rt),Et===123)if(ct===0)parse$1(xt,_e,$t,$t,Ot,rt,ft,it,wt);else switch(dt===99&&charat(xt,3)===110?100:dt){case 100:case 108:case 109:case 115:parse$1($,$t,$t,tt&&append(ruleset($,$t,$t,0,0,nt,it,Tt,nt,Ot=[],ft),wt),nt,wt,ft,it,tt?Ot:wt);break;default:parse$1(xt,$t,$t,$t,[""],wt,0,it,wt)}}lt=ct=pt=0,gt=vt=1,Tt=xt="",ft=ot;break;case 58:ft=1+strlen(xt),pt=ht;default:if(gt<1){if(Et==123)--gt;else if(Et==125&>++==0&&prev()==125)continue}switch(xt+=from(Et),Et*gt){case 38:vt=ct>0?1:(xt+="\f",-1);break;case 44:it[lt++]=(strlen(xt)-1)*vt,vt=1;break;case 64:peek$1()===45&&(xt+=delimit(next())),dt=peek$1(),ct=ft=strlen(Tt=xt+=identifier(caret())),Et++;break;case 45:ht===45&&strlen(xt)==2&&(gt=0)}}return rt}function ruleset($,_e,et,tt,nt,rt,ot,it,st,lt,ct){for(var ft=nt-1,dt=nt===0?rt:[""],pt=sizeof(dt),ht=0,gt=0,yt=0;ht0?dt[vt]+" "+Et:replace(Et,/&\f/g,dt[vt])))&&(st[yt++]=Tt);return node$1($,_e,et,nt===0?RULESET:it,st,lt,ct)}function comment($,_e,et){return node$1($,_e,et,COMMENT,from(char()),substr($,2,-2),0)}function declaration($,_e,et,tt){return node$1($,_e,et,DECLARATION,substr($,0,tt),substr($,tt+1,-1),tt)}function serialize($,_e){for(var et="",tt=sizeof($),nt=0;nt6)switch(charat($,_e+1)){case 109:if(charat($,_e+4)!==45)break;case 102:return replace($,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat($,_e+3)==108?"$3":"$2-$3"))+$;case 115:return~indexof($,"stretch")?prefix(replace($,"stretch","fill-available"),_e)+$:$}break;case 4949:if(charat($,_e+1)!==115)break;case 6444:switch(charat($,strlen($)-3-(~indexof($,"!important")&&10))){case 107:return replace($,":",":"+WEBKIT)+$;case 101:return replace($,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat($,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+$}break;case 5936:switch(charat($,_e+11)){case 114:return WEBKIT+$+MS+replace($,/[svh]\w+-[tblr]{2}/,"tb")+$;case 108:return WEBKIT+$+MS+replace($,/[svh]\w+-[tblr]{2}/,"tb-rl")+$;case 45:return WEBKIT+$+MS+replace($,/[svh]\w+-[tblr]{2}/,"lr")+$}return WEBKIT+$+MS+$+$}return $}var prefixer=function(_e,et,tt,nt){if(_e.length>-1&&!_e.return)switch(_e.type){case DECLARATION:_e.return=prefix(_e.value,_e.length);break;case KEYFRAMES:return serialize([copy$1(_e,{value:replace(_e.value,"@","@"+WEBKIT)})],nt);case RULESET:if(_e.length)return combine(_e.props,function(rt){switch(match$2(rt,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy$1(_e,{props:[replace(rt,/:(read-\w+)/,":"+MOZ+"$1")]})],nt);case"::placeholder":return serialize([copy$1(_e,{props:[replace(rt,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy$1(_e,{props:[replace(rt,/:(plac\w+)/,":"+MOZ+"$1")]}),copy$1(_e,{props:[replace(rt,/:(plac\w+)/,MS+"input-$1")]})],nt)}return""})}},defaultStylisPlugins=[prefixer],createCache=function(_e){var et=_e.key;if(et==="css"){var tt=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(tt,function(gt){var yt=gt.getAttribute("data-emotion");yt.indexOf(" ")!==-1&&(document.head.appendChild(gt),gt.setAttribute("data-s",""))})}var nt=_e.stylisPlugins||defaultStylisPlugins,rt={},ot,it=[];ot=_e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+et+' "]'),function(gt){for(var yt=gt.getAttribute("data-emotion").split(" "),vt=1;vt_e in $?v_($,_e,{enumerable:!0,co * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function($){function _e(Lt,Dt){var Wt=Lt.length;Lt.push(Dt);e:for(;0>>1,Bt=Lt[Ut];if(0>>1;Utnt(qt,Wt))tnnt(Jt,qt)?(Lt[Ut]=Jt,Lt[tn]=Wt,Ut=tn):(Lt[Ut]=qt,Lt[Gt]=Wt,Ut=Gt);else if(tnnt(Jt,Wt))Lt[Ut]=Jt,Lt[tn]=Wt,Ut=tn;else break e}}return Dt}function nt(Lt,Dt){var Wt=Lt.sortIndex-Dt.sortIndex;return Wt!==0?Wt:Lt.id-Dt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var rt=performance;$.unstable_now=function(){return rt.now()}}else{var ot=Date,it=ot.now();$.unstable_now=function(){return ot.now()-it}}var st=[],lt=[],ct=1,ft=null,dt=3,pt=!1,ht=!1,gt=!1,yt=typeof setTimeout=="function"?setTimeout:null,vt=typeof clearTimeout=="function"?clearTimeout:null,Et=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Tt(Lt){for(var Dt=et(lt);Dt!==null;){if(Dt.callback===null)tt(lt);else if(Dt.startTime<=Lt)tt(lt),Dt.sortIndex=Dt.expirationTime,_e(st,Dt);else break;Dt=et(lt)}}function Ot(Lt){if(gt=!1,Tt(Lt),!ht)if(et(st)!==null)ht=!0,Nt(xt);else{var Dt=et(lt);Dt!==null&&Ft(Ot,Dt.startTime-Lt)}}function xt(Lt,Dt){ht=!1,gt&&(gt=!1,vt(mt),mt=-1),pt=!0;var Wt=dt;try{for(Tt(Dt),ft=et(st);ft!==null&&(!(ft.expirationTime>Dt)||Lt&&!Pt());){var Ut=ft.callback;if(typeof Ut=="function"){ft.callback=null,dt=ft.priorityLevel;var Bt=Ut(ft.expirationTime<=Dt);Dt=$.unstable_now(),typeof Bt=="function"?ft.callback=Bt:ft===et(st)&&tt(st),Tt(Dt)}else tt(st);ft=et(st)}if(ft!==null)var Ht=!0;else{var Gt=et(lt);Gt!==null&&Ft(Ot,Gt.startTime-Dt),Ht=!1}return Ht}finally{ft=null,dt=Wt,pt=!1}}var $t=!1,wt=null,mt=-1,Ct=5,bt=-1;function Pt(){return!($.unstable_now()-btLt||125Ut?(Lt.sortIndex=Wt,_e(lt,Lt),et(st)===null&&Lt===et(lt)&&(gt?(vt(mt),mt=-1):gt=!0,Ft(Ot,Wt-Ut))):(Lt.sortIndex=Bt,_e(st,Lt),ht||pt||(ht=!0,Nt(xt))),Lt},$.unstable_shouldYield=Pt,$.unstable_wrapCallback=function(Lt){var Dt=dt;return function(){var Wt=dt;dt=Dt;try{return Lt.apply(this,arguments)}finally{dt=Wt}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** + */(function($){function _e(Lt,Dt){var Bt=Lt.length;Lt.push(Dt);e:for(;0>>1,Wt=Lt[Ut];if(0>>1;Utnt(qt,Bt))tnnt(Jt,qt)?(Lt[Ut]=Jt,Lt[tn]=Bt,Ut=tn):(Lt[Ut]=qt,Lt[Gt]=Bt,Ut=Gt);else if(tnnt(Jt,Bt))Lt[Ut]=Jt,Lt[tn]=Bt,Ut=tn;else break e}}return Dt}function nt(Lt,Dt){var Bt=Lt.sortIndex-Dt.sortIndex;return Bt!==0?Bt:Lt.id-Dt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var rt=performance;$.unstable_now=function(){return rt.now()}}else{var ot=Date,it=ot.now();$.unstable_now=function(){return ot.now()-it}}var st=[],lt=[],ct=1,ft=null,dt=3,pt=!1,ht=!1,gt=!1,yt=typeof setTimeout=="function"?setTimeout:null,vt=typeof clearTimeout=="function"?clearTimeout:null,Et=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Tt(Lt){for(var Dt=et(lt);Dt!==null;){if(Dt.callback===null)tt(lt);else if(Dt.startTime<=Lt)tt(lt),Dt.sortIndex=Dt.expirationTime,_e(st,Dt);else break;Dt=et(lt)}}function Ot(Lt){if(gt=!1,Tt(Lt),!ht)if(et(st)!==null)ht=!0,Nt(wt);else{var Dt=et(lt);Dt!==null&&Ft(Ot,Dt.startTime-Lt)}}function wt(Lt,Dt){ht=!1,gt&&(gt=!1,vt(mt),mt=-1),pt=!0;var Bt=dt;try{for(Tt(Dt),ft=et(st);ft!==null&&(!(ft.expirationTime>Dt)||Lt&&!Pt());){var Ut=ft.callback;if(typeof Ut=="function"){ft.callback=null,dt=ft.priorityLevel;var Wt=Ut(ft.expirationTime<=Dt);Dt=$.unstable_now(),typeof Wt=="function"?ft.callback=Wt:ft===et(st)&&tt(st),Tt(Dt)}else tt(st);ft=et(st)}if(ft!==null)var Ht=!0;else{var Gt=et(lt);Gt!==null&&Ft(Ot,Gt.startTime-Dt),Ht=!1}return Ht}finally{ft=null,dt=Bt,pt=!1}}var $t=!1,xt=null,mt=-1,Ct=5,bt=-1;function Pt(){return!($.unstable_now()-btLt||125Ut?(Lt.sortIndex=Bt,_e(lt,Lt),et(st)===null&&Lt===et(lt)&&(gt?(vt(mt),mt=-1):gt=!0,Ft(Ot,Bt-Ut))):(Lt.sortIndex=Wt,_e(st,Lt),ht||pt||(ht=!0,Nt(wt))),Lt},$.unstable_shouldYield=Pt,$.unstable_wrapCallback=function(Lt){var Dt=dt;return function(){var Bt=dt;dt=Dt;try{return Lt.apply(this,arguments)}finally{dt=Bt}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** * @license React * react-dom.production.min.js * @@ -41,21 +41,21 @@ var v_=Object.defineProperty;var y_=($,_e,et)=>_e in $?v_($,_e,{enumerable:!0,co `+La+$}var Na=!1;function Oa($,_e){if(!$||Na)return"";Na=!0;var et=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(_e)if(_e=function(){throw Error()},Object.defineProperty(_e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_e,[])}catch(lt){var tt=lt}Reflect.construct($,[],_e)}else{try{_e.call()}catch(lt){tt=lt}$.call(_e.prototype)}else{try{throw Error()}catch(lt){tt=lt}$()}}catch(lt){if(lt&&tt&&typeof lt.stack=="string"){for(var nt=lt.stack.split(` `),rt=tt.stack.split(` `),ot=nt.length-1,it=rt.length-1;1<=ot&&0<=it&&nt[ot]!==rt[it];)it--;for(;1<=ot&&0<=it;ot--,it--)if(nt[ot]!==rt[it]){if(ot!==1||it!==1)do if(ot--,it--,0>it||nt[ot]!==rt[it]){var st=` -`+nt[ot].replace(" at new "," at ");return $.displayName&&st.includes("")&&(st=st.replace("",$.displayName)),st}while(1<=ot&&0<=it);break}}}finally{Na=!1,Error.prepareStackTrace=et}return($=$?$.displayName||$.name:"")?Ma($):""}function Pa($){switch($.tag){case 5:return Ma($.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return $=Oa($.type,!1),$;case 11:return $=Oa($.type.render,!1),$;case 1:return $=Oa($.type,!0),$;default:return""}}function Qa($){if($==null)return null;if(typeof $=="function")return $.displayName||$.name||null;if(typeof $=="string")return $;switch($){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(typeof $=="object")switch($.$$typeof){case Ca:return($.displayName||"Context")+".Consumer";case Ba:return($._context.displayName||"Context")+".Provider";case Da:var _e=$.render;return $=$.displayName,$||($=_e.displayName||_e.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case Ga:return _e=$.displayName||null,_e!==null?_e:Qa($.type)||"Memo";case Ha:_e=$._payload,$=$._init;try{return Qa($(_e))}catch{}}return null}function Ra($){var _e=$.type;switch($.tag){case 24:return"Cache";case 9:return(_e.displayName||"Context")+".Consumer";case 10:return(_e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return $=_e.render,$=$.displayName||$.name||"",_e.displayName||($!==""?"ForwardRef("+$+")":"ForwardRef");case 7:return"Fragment";case 5:return _e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(_e);case 8:return _e===za?"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 _e=="function")return _e.displayName||_e.name||null;if(typeof _e=="string")return _e}return null}function Sa($){switch(typeof $){case"boolean":case"number":case"string":case"undefined":return $;case"object":return $;default:return""}}function Ta($){var _e=$.type;return($=$.nodeName)&&$.toLowerCase()==="input"&&(_e==="checkbox"||_e==="radio")}function Ua($){var _e=Ta($)?"checked":"value",et=Object.getOwnPropertyDescriptor($.constructor.prototype,_e),tt=""+$[_e];if(!$.hasOwnProperty(_e)&&typeof et<"u"&&typeof et.get=="function"&&typeof et.set=="function"){var nt=et.get,rt=et.set;return Object.defineProperty($,_e,{configurable:!0,get:function(){return nt.call(this)},set:function(ot){tt=""+ot,rt.call(this,ot)}}),Object.defineProperty($,_e,{enumerable:et.enumerable}),{getValue:function(){return tt},setValue:function(ot){tt=""+ot},stopTracking:function(){$._valueTracker=null,delete $[_e]}}}}function Va($){$._valueTracker||($._valueTracker=Ua($))}function Wa($){if(!$)return!1;var _e=$._valueTracker;if(!_e)return!0;var et=_e.getValue(),tt="";return $&&(tt=Ta($)?$.checked?"true":"false":$.value),$=tt,$!==et?(_e.setValue($),!0):!1}function Xa($){if($=$||(typeof document<"u"?document:void 0),typeof $>"u")return null;try{return $.activeElement||$.body}catch{return $.body}}function Ya($,_e){var et=_e.checked;return A({},_e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:et??$._wrapperState.initialChecked})}function Za($,_e){var et=_e.defaultValue==null?"":_e.defaultValue,tt=_e.checked!=null?_e.checked:_e.defaultChecked;et=Sa(_e.value!=null?_e.value:et),$._wrapperState={initialChecked:tt,initialValue:et,controlled:_e.type==="checkbox"||_e.type==="radio"?_e.checked!=null:_e.value!=null}}function ab($,_e){_e=_e.checked,_e!=null&&ta($,"checked",_e,!1)}function bb($,_e){ab($,_e);var et=Sa(_e.value),tt=_e.type;if(et!=null)tt==="number"?(et===0&&$.value===""||$.value!=et)&&($.value=""+et):$.value!==""+et&&($.value=""+et);else if(tt==="submit"||tt==="reset"){$.removeAttribute("value");return}_e.hasOwnProperty("value")?cb($,_e.type,et):_e.hasOwnProperty("defaultValue")&&cb($,_e.type,Sa(_e.defaultValue)),_e.checked==null&&_e.defaultChecked!=null&&($.defaultChecked=!!_e.defaultChecked)}function db($,_e,et){if(_e.hasOwnProperty("value")||_e.hasOwnProperty("defaultValue")){var tt=_e.type;if(!(tt!=="submit"&&tt!=="reset"||_e.value!==void 0&&_e.value!==null))return;_e=""+$._wrapperState.initialValue,et||_e===$.value||($.value=_e),$.defaultValue=_e}et=$.name,et!==""&&($.name=""),$.defaultChecked=!!$._wrapperState.initialChecked,et!==""&&($.name=et)}function cb($,_e,et){(_e!=="number"||Xa($.ownerDocument)!==$)&&(et==null?$.defaultValue=""+$._wrapperState.initialValue:$.defaultValue!==""+et&&($.defaultValue=""+et))}var eb=Array.isArray;function fb($,_e,et,tt){if($=$.options,_e){_e={};for(var nt=0;nt"+_e.valueOf().toString()+"",_e=mb.firstChild;$.firstChild;)$.removeChild($.firstChild);for(;_e.firstChild;)$.appendChild(_e.firstChild)}});function ob($,_e){if(_e){var et=$.firstChild;if(et&&et===$.lastChild&&et.nodeType===3){et.nodeValue=_e;return}}$.textContent=_e}var 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,zoom:!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($){qb.forEach(function(_e){_e=_e+$.charAt(0).toUpperCase()+$.substring(1),pb[_e]=pb[$]})});function rb($,_e,et){return _e==null||typeof _e=="boolean"||_e===""?"":et||typeof _e!="number"||_e===0||pb.hasOwnProperty($)&&pb[$]?(""+_e).trim():_e+"px"}function sb($,_e){$=$.style;for(var et in _e)if(_e.hasOwnProperty(et)){var tt=et.indexOf("--")===0,nt=rb(et,_e[et],tt);et==="float"&&(et="cssFloat"),tt?$.setProperty(et,nt):$[et]=nt}}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});function ub($,_e){if(_e){if(tb[$]&&(_e.children!=null||_e.dangerouslySetInnerHTML!=null))throw Error(p$3(137,$));if(_e.dangerouslySetInnerHTML!=null){if(_e.children!=null)throw Error(p$3(60));if(typeof _e.dangerouslySetInnerHTML!="object"||!("__html"in _e.dangerouslySetInnerHTML))throw Error(p$3(61))}if(_e.style!=null&&typeof _e.style!="object")throw Error(p$3(62))}}function vb($,_e){if($.indexOf("-")===-1)return typeof _e.is=="string";switch($){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($){return $=$.target||$.srcElement||window,$.correspondingUseElement&&($=$.correspondingUseElement),$.nodeType===3?$.parentNode:$}var yb=null,zb=null,Ab=null;function Bb($){if($=Cb($)){if(typeof yb!="function")throw Error(p$3(280));var _e=$.stateNode;_e&&(_e=Db(_e),yb($.stateNode,$.type,_e))}}function Eb($){zb?Ab?Ab.push($):Ab=[$]:zb=$}function Fb(){if(zb){var $=zb,_e=Ab;if(Ab=zb=null,Bb($),_e)for($=0;$<_e.length;$++)Bb(_e[$])}}function Gb($,_e){return $(_e)}function Hb(){}var Ib=!1;function Jb($,_e,et){if(Ib)return $(_e,et);Ib=!0;try{return Gb($,_e,et)}finally{Ib=!1,(zb!==null||Ab!==null)&&(Hb(),Fb())}}function Kb($,_e){var et=$.stateNode;if(et===null)return null;var tt=Db(et);if(tt===null)return null;et=tt[_e];e:switch(_e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(tt=!tt.disabled)||($=$.type,tt=!($==="button"||$==="input"||$==="select"||$==="textarea")),$=!tt;break e;default:$=!1}if($)return null;if(et&&typeof et!="function")throw Error(p$3(231,_e,typeof et));return et}var Lb=!1;if(ia)try{var Mb={};Object.defineProperty(Mb,"passive",{get:function(){Lb=!0}}),window.addEventListener("test",Mb,Mb),window.removeEventListener("test",Mb,Mb)}catch{Lb=!1}function Nb($,_e,et,tt,nt,rt,ot,it,st){var lt=Array.prototype.slice.call(arguments,3);try{_e.apply(et,lt)}catch(ct){this.onError(ct)}}var Ob=!1,Pb=null,Qb=!1,Rb=null,Sb={onError:function($){Ob=!0,Pb=$}};function Tb($,_e,et,tt,nt,rt,ot,it,st){Ob=!1,Pb=null,Nb.apply(Sb,arguments)}function Ub($,_e,et,tt,nt,rt,ot,it,st){if(Tb.apply(this,arguments),Ob){if(Ob){var lt=Pb;Ob=!1,Pb=null}else throw Error(p$3(198));Qb||(Qb=!0,Rb=lt)}}function Vb($){var _e=$,et=$;if($.alternate)for(;_e.return;)_e=_e.return;else{$=_e;do _e=$,_e.flags&4098&&(et=_e.return),$=_e.return;while($)}return _e.tag===3?et:null}function Wb($){if($.tag===13){var _e=$.memoizedState;if(_e===null&&($=$.alternate,$!==null&&(_e=$.memoizedState)),_e!==null)return _e.dehydrated}return null}function Xb($){if(Vb($)!==$)throw Error(p$3(188))}function Yb($){var _e=$.alternate;if(!_e){if(_e=Vb($),_e===null)throw Error(p$3(188));return _e!==$?null:$}for(var et=$,tt=_e;;){var nt=et.return;if(nt===null)break;var rt=nt.alternate;if(rt===null){if(tt=nt.return,tt!==null){et=tt;continue}break}if(nt.child===rt.child){for(rt=nt.child;rt;){if(rt===et)return Xb(nt),$;if(rt===tt)return Xb(nt),_e;rt=rt.sibling}throw Error(p$3(188))}if(et.return!==tt.return)et=nt,tt=rt;else{for(var ot=!1,it=nt.child;it;){if(it===et){ot=!0,et=nt,tt=rt;break}if(it===tt){ot=!0,tt=nt,et=rt;break}it=it.sibling}if(!ot){for(it=rt.child;it;){if(it===et){ot=!0,et=rt,tt=nt;break}if(it===tt){ot=!0,tt=rt,et=nt;break}it=it.sibling}if(!ot)throw Error(p$3(189))}}if(et.alternate!==tt)throw Error(p$3(190))}if(et.tag!==3)throw Error(p$3(188));return et.stateNode.current===et?$:_e}function Zb($){return $=Yb($),$!==null?$b($):null}function $b($){if($.tag===5||$.tag===6)return $;for($=$.child;$!==null;){var _e=$b($);if(_e!==null)return _e;$=$.sibling}return null}var ac=ca.unstable_scheduleCallback,bc=ca.unstable_cancelCallback,cc=ca.unstable_shouldYield,dc=ca.unstable_requestPaint,B=ca.unstable_now,ec=ca.unstable_getCurrentPriorityLevel,fc=ca.unstable_ImmediatePriority,gc=ca.unstable_UserBlockingPriority,hc=ca.unstable_NormalPriority,ic=ca.unstable_LowPriority,jc=ca.unstable_IdlePriority,kc=null,lc=null;function mc($){if(lc&&typeof lc.onCommitFiberRoot=="function")try{lc.onCommitFiberRoot(kc,$,void 0,($.current.flags&128)===128)}catch{}}var oc=Math.clz32?Math.clz32:nc,pc=Math.log,qc=Math.LN2;function nc($){return $>>>=0,$===0?32:31-(pc($)/qc|0)|0}var rc=64,sc=4194304;function tc($){switch($&-$){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 $&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return $&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return $}}function uc($,_e){var et=$.pendingLanes;if(et===0)return 0;var tt=0,nt=$.suspendedLanes,rt=$.pingedLanes,ot=et&268435455;if(ot!==0){var it=ot&~nt;it!==0?tt=tc(it):(rt&=ot,rt!==0&&(tt=tc(rt)))}else ot=et&~nt,ot!==0?tt=tc(ot):rt!==0&&(tt=tc(rt));if(tt===0)return 0;if(_e!==0&&_e!==tt&&!(_e&nt)&&(nt=tt&-tt,rt=_e&-_e,nt>=rt||nt===16&&(rt&4194240)!==0))return _e;if(tt&4&&(tt|=et&16),_e=$.entangledLanes,_e!==0)for($=$.entanglements,_e&=tt;0<_e;)et=31-oc(_e),nt=1<et;et++)_e.push($);return _e}function Ac($,_e,et){$.pendingLanes|=_e,_e!==536870912&&($.suspendedLanes=0,$.pingedLanes=0),$=$.eventTimes,_e=31-oc(_e),$[_e]=et}function Bc($,_e){var et=$.pendingLanes&~_e;$.pendingLanes=_e,$.suspendedLanes=0,$.pingedLanes=0,$.expiredLanes&=_e,$.mutableReadLanes&=_e,$.entangledLanes&=_e,_e=$.entanglements;var tt=$.eventTimes;for($=$.expirationTimes;0=be),ee=" ",fe=!1;function ge($,_e){switch($){case"keyup":return $d.indexOf(_e.keyCode)!==-1;case"keydown":return _e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he($){return $=$.detail,typeof $=="object"&&"data"in $?$.data:null}var ie=!1;function je($,_e){switch($){case"compositionend":return he(_e);case"keypress":return _e.which!==32?null:(fe=!0,ee);case"textInput":return $=_e.data,$===ee&&fe?null:$;default:return null}}function ke($,_e){if(ie)return $==="compositionend"||!ae&&ge($,_e)?($=nd(),md=ld=kd=null,ie=!1,$):null;switch($){case"paste":return null;case"keypress":if(!(_e.ctrlKey||_e.altKey||_e.metaKey)||_e.ctrlKey&&_e.altKey){if(_e.char&&1<_e.char.length)return _e.char;if(_e.which)return String.fromCharCode(_e.which)}return null;case"compositionend":return de&&_e.locale!=="ko"?null:_e.data;default:return null}}var le={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function me($){var _e=$&&$.nodeName&&$.nodeName.toLowerCase();return _e==="input"?!!le[$.type]:_e==="textarea"}function ne($,_e,et,tt){Eb(tt),_e=oe(_e,"onChange"),0<_e.length&&(et=new td("onChange","change",null,et,tt),$.push({event:et,listeners:_e}))}var pe=null,qe=null;function re($){se($,0)}function te($){var _e=ue($);if(Wa(_e))return $}function ve($,_e){if($==="change")return _e}var we=!1;if(ia){var xe;if(ia){var ye="oninput"in document;if(!ye){var ze=document.createElement("div");ze.setAttribute("oninput","return;"),ye=typeof ze.oninput=="function"}xe=ye}else xe=!1;we=xe&&(!document.documentMode||9=_e)return{node:et,offset:_e-$};$=tt}e:{for(;et;){if(et.nextSibling){et=et.nextSibling;break e}et=et.parentNode}et=void 0}et=Je(et)}}function Le($,_e){return $&&_e?$===_e?!0:$&&$.nodeType===3?!1:_e&&_e.nodeType===3?Le($,_e.parentNode):"contains"in $?$.contains(_e):$.compareDocumentPosition?!!($.compareDocumentPosition(_e)&16):!1:!1}function Me(){for(var $=window,_e=Xa();_e instanceof $.HTMLIFrameElement;){try{var et=typeof _e.contentWindow.location.href=="string"}catch{et=!1}if(et)$=_e.contentWindow;else break;_e=Xa($.document)}return _e}function Ne($){var _e=$&&$.nodeName&&$.nodeName.toLowerCase();return _e&&(_e==="input"&&($.type==="text"||$.type==="search"||$.type==="tel"||$.type==="url"||$.type==="password")||_e==="textarea"||$.contentEditable==="true")}function Oe($){var _e=Me(),et=$.focusedElem,tt=$.selectionRange;if(_e!==et&&et&&et.ownerDocument&&Le(et.ownerDocument.documentElement,et)){if(tt!==null&&Ne(et)){if(_e=tt.start,$=tt.end,$===void 0&&($=_e),"selectionStart"in et)et.selectionStart=_e,et.selectionEnd=Math.min($,et.value.length);else if($=(_e=et.ownerDocument||document)&&_e.defaultView||window,$.getSelection){$=$.getSelection();var nt=et.textContent.length,rt=Math.min(tt.start,nt);tt=tt.end===void 0?rt:Math.min(tt.end,nt),!$.extend&&rt>tt&&(nt=tt,tt=rt,rt=nt),nt=Ke(et,rt);var ot=Ke(et,tt);nt&&ot&&($.rangeCount!==1||$.anchorNode!==nt.node||$.anchorOffset!==nt.offset||$.focusNode!==ot.node||$.focusOffset!==ot.offset)&&(_e=_e.createRange(),_e.setStart(nt.node,nt.offset),$.removeAllRanges(),rt>tt?($.addRange(_e),$.extend(ot.node,ot.offset)):(_e.setEnd(ot.node,ot.offset),$.addRange(_e)))}}for(_e=[],$=et;$=$.parentNode;)$.nodeType===1&&_e.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof et.focus=="function"&&et.focus(),et=0;et<_e.length;et++)$=_e[et],$.element.scrollLeft=$.left,$.element.scrollTop=$.top}}var Pe=ia&&"documentMode"in document&&11>=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;function Ue($,_e,et){var tt=et.window===et?et.document:et.nodeType===9?et:et.ownerDocument;Te||Qe==null||Qe!==Xa(tt)||(tt=Qe,"selectionStart"in tt&&Ne(tt)?tt={start:tt.selectionStart,end:tt.selectionEnd}:(tt=(tt.ownerDocument&&tt.ownerDocument.defaultView||window).getSelection(),tt={anchorNode:tt.anchorNode,anchorOffset:tt.anchorOffset,focusNode:tt.focusNode,focusOffset:tt.focusOffset}),Se&&Ie(Se,tt)||(Se=tt,tt=oe(Re,"onSelect"),0Tf||($.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G($,_e){Tf++,Sf[Tf]=$.current,$.current=_e}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf($,_e){var et=$.type.contextTypes;if(!et)return Vf;var tt=$.stateNode;if(tt&&tt.__reactInternalMemoizedUnmaskedChildContext===_e)return tt.__reactInternalMemoizedMaskedChildContext;var nt={},rt;for(rt in et)nt[rt]=_e[rt];return tt&&($=$.stateNode,$.__reactInternalMemoizedUnmaskedChildContext=_e,$.__reactInternalMemoizedMaskedChildContext=nt),nt}function Zf($){return $=$.childContextTypes,$!=null}function $f(){E(Wf),E(H)}function ag($,_e,et){if(H.current!==Vf)throw Error(p$3(168));G(H,_e),G(Wf,et)}function bg($,_e,et){var tt=$.stateNode;if(_e=_e.childContextTypes,typeof tt.getChildContext!="function")return et;tt=tt.getChildContext();for(var nt in tt)if(!(nt in _e))throw Error(p$3(108,Ra($)||"Unknown",nt));return A({},et,tt)}function cg($){return $=($=$.stateNode)&&$.__reactInternalMemoizedMergedChildContext||Vf,Xf=H.current,G(H,$),G(Wf,Wf.current),!0}function dg($,_e,et){var tt=$.stateNode;if(!tt)throw Error(p$3(169));et?($=bg($,_e,Xf),tt.__reactInternalMemoizedMergedChildContext=$,E(Wf),E(H),G(H,$)):E(Wf),G(Wf,et)}var eg=null,fg=!1,gg=!1;function hg($){eg===null?eg=[$]:eg.push($)}function ig($){fg=!0,hg($)}function jg(){if(!gg&&eg!==null){gg=!0;var $=0,_e=C;try{var et=eg;for(C=1;$>=ot,nt-=ot,rg=1<<32-oc(_e)+nt|et<mt?(Ct=wt,wt=null):Ct=wt.sibling;var bt=dt(vt,wt,Tt[mt],Ot);if(bt===null){wt===null&&(wt=Ct);break}$&&wt&&bt.alternate===null&&_e(vt,wt),Et=rt(bt,Et,mt),$t===null?xt=bt:$t.sibling=bt,$t=bt,wt=Ct}if(mt===Tt.length)return et(vt,wt),I&&tg(vt,mt),xt;if(wt===null){for(;mtmt?(Ct=wt,wt=null):Ct=wt.sibling;var Pt=dt(vt,wt,bt.value,Ot);if(Pt===null){wt===null&&(wt=Ct);break}$&&wt&&Pt.alternate===null&&_e(vt,wt),Et=rt(Pt,Et,mt),$t===null?xt=Pt:$t.sibling=Pt,$t=Pt,wt=Ct}if(bt.done)return et(vt,wt),I&&tg(vt,mt),xt;if(wt===null){for(;!bt.done;mt++,bt=Tt.next())bt=ft(vt,bt.value,Ot),bt!==null&&(Et=rt(bt,Et,mt),$t===null?xt=bt:$t.sibling=bt,$t=bt);return I&&tg(vt,mt),xt}for(wt=tt(vt,wt);!bt.done;mt++,bt=Tt.next())bt=pt(wt,vt,mt,bt.value,Ot),bt!==null&&($&&bt.alternate!==null&&wt.delete(bt.key===null?mt:bt.key),Et=rt(bt,Et,mt),$t===null?xt=bt:$t.sibling=bt,$t=bt);return $&&wt.forEach(function(It){return _e(vt,It)}),I&&tg(vt,mt),xt}function yt(vt,Et,Tt,Ot){if(typeof Tt=="object"&&Tt!==null&&Tt.type===ya&&Tt.key===null&&(Tt=Tt.props.children),typeof Tt=="object"&&Tt!==null){switch(Tt.$$typeof){case va:e:{for(var xt=Tt.key,$t=Et;$t!==null;){if($t.key===xt){if(xt=Tt.type,xt===ya){if($t.tag===7){et(vt,$t.sibling),Et=nt($t,Tt.props.children),Et.return=vt,vt=Et;break e}}else if($t.elementType===xt||typeof xt=="object"&&xt!==null&&xt.$$typeof===Ha&&uh(xt)===$t.type){et(vt,$t.sibling),Et=nt($t,Tt.props),Et.ref=sh(vt,$t,Tt),Et.return=vt,vt=Et;break e}et(vt,$t);break}else _e(vt,$t);$t=$t.sibling}Tt.type===ya?(Et=Ah(Tt.props.children,vt.mode,Ot,Tt.key),Et.return=vt,vt=Et):(Ot=yh(Tt.type,Tt.key,Tt.props,null,vt.mode,Ot),Ot.ref=sh(vt,Et,Tt),Ot.return=vt,vt=Ot)}return ot(vt);case wa:e:{for($t=Tt.key;Et!==null;){if(Et.key===$t)if(Et.tag===4&&Et.stateNode.containerInfo===Tt.containerInfo&&Et.stateNode.implementation===Tt.implementation){et(vt,Et.sibling),Et=nt(Et,Tt.children||[]),Et.return=vt,vt=Et;break e}else{et(vt,Et);break}else _e(vt,Et);Et=Et.sibling}Et=zh(Tt,vt.mode,Ot),Et.return=vt,vt=Et}return ot(vt);case Ha:return $t=Tt._init,yt(vt,Et,$t(Tt._payload),Ot)}if(eb(Tt))return ht(vt,Et,Tt,Ot);if(Ka(Tt))return gt(vt,Et,Tt,Ot);th(vt,Tt)}return typeof Tt=="string"&&Tt!==""||typeof Tt=="number"?(Tt=""+Tt,Et!==null&&Et.tag===6?(et(vt,Et.sibling),Et=nt(Et,Tt),Et.return=vt,vt=Et):(et(vt,Et),Et=xh(Tt,vt.mode,Ot),Et.return=vt,vt=Et),ot(vt)):et(vt,Et)}return yt}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh($){if($===Dh)throw Error(p$3(174));return $}function Ih($,_e){switch(G(Gh,_e),G(Fh,$),G(Eh,Dh),$=_e.nodeType,$){case 9:case 11:_e=(_e=_e.documentElement)?_e.namespaceURI:lb(null,"");break;default:$=$===8?_e.parentNode:_e,_e=$.namespaceURI||null,$=$.tagName,_e=lb(_e,$)}E(Eh),G(Eh,_e)}function Jh(){E(Eh),E(Fh),E(Gh)}function Kh($){Hh(Gh.current);var _e=Hh(Eh.current),et=lb(_e,$.type);_e!==et&&(G(Fh,$),G(Eh,et))}function Lh($){Fh.current===$&&(E(Eh),E(Fh))}var M=Uf(0);function Mh($){for(var _e=$;_e!==null;){if(_e.tag===13){var et=_e.memoizedState;if(et!==null&&(et=et.dehydrated,et===null||et.data==="$?"||et.data==="$!"))return _e}else if(_e.tag===19&&_e.memoizedProps.revealOrder!==void 0){if(_e.flags&128)return _e}else if(_e.child!==null){_e.child.return=_e,_e=_e.child;continue}if(_e===$)break;for(;_e.sibling===null;){if(_e.return===null||_e.return===$)return null;_e=_e.return}_e.sibling.return=_e.return,_e=_e.sibling}return null}var Nh=[];function Oh(){for(var $=0;$et?et:4,$(!0);var tt=Qh.transition;Qh.transition={};try{$(!1),_e()}finally{C=et,Qh.transition=tt}}function Fi(){return di().memoizedState}function Gi($,_e,et){var tt=lh($);if(et={lane:tt,action:et,hasEagerState:!1,eagerState:null,next:null},Hi($))Ii(_e,et);else if(et=Yg($,_e,et,tt),et!==null){var nt=L();mh(et,$,tt,nt),Ji(et,_e,tt)}}function ri($,_e,et){var tt=lh($),nt={lane:tt,action:et,hasEagerState:!1,eagerState:null,next:null};if(Hi($))Ii(_e,nt);else{var rt=$.alternate;if($.lanes===0&&(rt===null||rt.lanes===0)&&(rt=_e.lastRenderedReducer,rt!==null))try{var ot=_e.lastRenderedState,it=rt(ot,et);if(nt.hasEagerState=!0,nt.eagerState=it,He(it,ot)){var st=_e.interleaved;st===null?(nt.next=nt,Xg(_e)):(nt.next=st.next,st.next=nt),_e.interleaved=nt;return}}catch{}finally{}et=Yg($,_e,nt,tt),et!==null&&(nt=L(),mh(et,$,tt,nt),Ji(et,_e,tt))}}function Hi($){var _e=$.alternate;return $===N||_e!==null&&_e===N}function Ii($,_e){Th=Sh=!0;var et=$.pending;et===null?_e.next=_e:(_e.next=et.next,et.next=_e),$.pending=_e}function Ji($,_e,et){if(et&4194240){var tt=_e.lanes;tt&=$.pendingLanes,et|=tt,_e.lanes=et,Cc($,et)}}var 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($,_e){return ci().memoizedState=[$,_e===void 0?null:_e],$},useContext:Vg,useEffect:vi,useImperativeHandle:function($,_e,et){return et=et!=null?et.concat([$]):null,ti(4194308,4,yi.bind(null,_e,$),et)},useLayoutEffect:function($,_e){return ti(4194308,4,$,_e)},useInsertionEffect:function($,_e){return ti(4,2,$,_e)},useMemo:function($,_e){var et=ci();return _e=_e===void 0?null:_e,$=$(),et.memoizedState=[$,_e],$},useReducer:function($,_e,et){var tt=ci();return _e=et!==void 0?et(_e):_e,tt.memoizedState=tt.baseState=_e,$={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$,lastRenderedState:_e},tt.queue=$,$=$.dispatch=Gi.bind(null,N,$),[tt.memoizedState,$]},useRef:function($){var _e=ci();return $={current:$},_e.memoizedState=$},useState:qi,useDebugValue:Ai,useDeferredValue:function($){return ci().memoizedState=$},useTransition:function(){var $=qi(!1),_e=$[0];return $=Ei.bind(null,$[1]),ci().memoizedState=$,[_e,$]},useMutableSource:function(){},useSyncExternalStore:function($,_e,et){var tt=N,nt=ci();if(I){if(et===void 0)throw Error(p$3(407));et=et()}else{if(et=_e(),R===null)throw Error(p$3(349));Rh&30||ni(tt,_e,et)}nt.memoizedState=et;var rt={value:et,getSnapshot:_e};return nt.queue=rt,vi(ki.bind(null,tt,rt,$),[$]),tt.flags|=2048,li(9,mi.bind(null,tt,rt,et,_e),void 0,null),et},useId:function(){var $=ci(),_e=R.identifierPrefix;if(I){var et=sg,tt=rg;et=(tt&~(1<<32-oc(tt)-1)).toString(32)+et,_e=":"+_e+"R"+et,et=Uh++,0")&&(st=st.replace("",$.displayName)),st}while(1<=ot&&0<=it);break}}}finally{Na=!1,Error.prepareStackTrace=et}return($=$?$.displayName||$.name:"")?Ma($):""}function Pa($){switch($.tag){case 5:return Ma($.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return $=Oa($.type,!1),$;case 11:return $=Oa($.type.render,!1),$;case 1:return $=Oa($.type,!0),$;default:return""}}function Qa($){if($==null)return null;if(typeof $=="function")return $.displayName||$.name||null;if(typeof $=="string")return $;switch($){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(typeof $=="object")switch($.$$typeof){case Ca:return($.displayName||"Context")+".Consumer";case Ba:return($._context.displayName||"Context")+".Provider";case Da:var _e=$.render;return $=$.displayName,$||($=_e.displayName||_e.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case Ga:return _e=$.displayName||null,_e!==null?_e:Qa($.type)||"Memo";case Ha:_e=$._payload,$=$._init;try{return Qa($(_e))}catch{}}return null}function Ra($){var _e=$.type;switch($.tag){case 24:return"Cache";case 9:return(_e.displayName||"Context")+".Consumer";case 10:return(_e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return $=_e.render,$=$.displayName||$.name||"",_e.displayName||($!==""?"ForwardRef("+$+")":"ForwardRef");case 7:return"Fragment";case 5:return _e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(_e);case 8:return _e===za?"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 _e=="function")return _e.displayName||_e.name||null;if(typeof _e=="string")return _e}return null}function Sa($){switch(typeof $){case"boolean":case"number":case"string":case"undefined":return $;case"object":return $;default:return""}}function Ta($){var _e=$.type;return($=$.nodeName)&&$.toLowerCase()==="input"&&(_e==="checkbox"||_e==="radio")}function Ua($){var _e=Ta($)?"checked":"value",et=Object.getOwnPropertyDescriptor($.constructor.prototype,_e),tt=""+$[_e];if(!$.hasOwnProperty(_e)&&typeof et<"u"&&typeof et.get=="function"&&typeof et.set=="function"){var nt=et.get,rt=et.set;return Object.defineProperty($,_e,{configurable:!0,get:function(){return nt.call(this)},set:function(ot){tt=""+ot,rt.call(this,ot)}}),Object.defineProperty($,_e,{enumerable:et.enumerable}),{getValue:function(){return tt},setValue:function(ot){tt=""+ot},stopTracking:function(){$._valueTracker=null,delete $[_e]}}}}function Va($){$._valueTracker||($._valueTracker=Ua($))}function Wa($){if(!$)return!1;var _e=$._valueTracker;if(!_e)return!0;var et=_e.getValue(),tt="";return $&&(tt=Ta($)?$.checked?"true":"false":$.value),$=tt,$!==et?(_e.setValue($),!0):!1}function Xa($){if($=$||(typeof document<"u"?document:void 0),typeof $>"u")return null;try{return $.activeElement||$.body}catch{return $.body}}function Ya($,_e){var et=_e.checked;return A({},_e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:et??$._wrapperState.initialChecked})}function Za($,_e){var et=_e.defaultValue==null?"":_e.defaultValue,tt=_e.checked!=null?_e.checked:_e.defaultChecked;et=Sa(_e.value!=null?_e.value:et),$._wrapperState={initialChecked:tt,initialValue:et,controlled:_e.type==="checkbox"||_e.type==="radio"?_e.checked!=null:_e.value!=null}}function ab($,_e){_e=_e.checked,_e!=null&&ta($,"checked",_e,!1)}function bb($,_e){ab($,_e);var et=Sa(_e.value),tt=_e.type;if(et!=null)tt==="number"?(et===0&&$.value===""||$.value!=et)&&($.value=""+et):$.value!==""+et&&($.value=""+et);else if(tt==="submit"||tt==="reset"){$.removeAttribute("value");return}_e.hasOwnProperty("value")?cb($,_e.type,et):_e.hasOwnProperty("defaultValue")&&cb($,_e.type,Sa(_e.defaultValue)),_e.checked==null&&_e.defaultChecked!=null&&($.defaultChecked=!!_e.defaultChecked)}function db($,_e,et){if(_e.hasOwnProperty("value")||_e.hasOwnProperty("defaultValue")){var tt=_e.type;if(!(tt!=="submit"&&tt!=="reset"||_e.value!==void 0&&_e.value!==null))return;_e=""+$._wrapperState.initialValue,et||_e===$.value||($.value=_e),$.defaultValue=_e}et=$.name,et!==""&&($.name=""),$.defaultChecked=!!$._wrapperState.initialChecked,et!==""&&($.name=et)}function cb($,_e,et){(_e!=="number"||Xa($.ownerDocument)!==$)&&(et==null?$.defaultValue=""+$._wrapperState.initialValue:$.defaultValue!==""+et&&($.defaultValue=""+et))}var eb=Array.isArray;function fb($,_e,et,tt){if($=$.options,_e){_e={};for(var nt=0;nt"+_e.valueOf().toString()+"",_e=mb.firstChild;$.firstChild;)$.removeChild($.firstChild);for(;_e.firstChild;)$.appendChild(_e.firstChild)}});function ob($,_e){if(_e){var et=$.firstChild;if(et&&et===$.lastChild&&et.nodeType===3){et.nodeValue=_e;return}}$.textContent=_e}var 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,zoom:!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($){qb.forEach(function(_e){_e=_e+$.charAt(0).toUpperCase()+$.substring(1),pb[_e]=pb[$]})});function rb($,_e,et){return _e==null||typeof _e=="boolean"||_e===""?"":et||typeof _e!="number"||_e===0||pb.hasOwnProperty($)&&pb[$]?(""+_e).trim():_e+"px"}function sb($,_e){$=$.style;for(var et in _e)if(_e.hasOwnProperty(et)){var tt=et.indexOf("--")===0,nt=rb(et,_e[et],tt);et==="float"&&(et="cssFloat"),tt?$.setProperty(et,nt):$[et]=nt}}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});function ub($,_e){if(_e){if(tb[$]&&(_e.children!=null||_e.dangerouslySetInnerHTML!=null))throw Error(p$3(137,$));if(_e.dangerouslySetInnerHTML!=null){if(_e.children!=null)throw Error(p$3(60));if(typeof _e.dangerouslySetInnerHTML!="object"||!("__html"in _e.dangerouslySetInnerHTML))throw Error(p$3(61))}if(_e.style!=null&&typeof _e.style!="object")throw Error(p$3(62))}}function vb($,_e){if($.indexOf("-")===-1)return typeof _e.is=="string";switch($){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($){return $=$.target||$.srcElement||window,$.correspondingUseElement&&($=$.correspondingUseElement),$.nodeType===3?$.parentNode:$}var yb=null,zb=null,Ab=null;function Bb($){if($=Cb($)){if(typeof yb!="function")throw Error(p$3(280));var _e=$.stateNode;_e&&(_e=Db(_e),yb($.stateNode,$.type,_e))}}function Eb($){zb?Ab?Ab.push($):Ab=[$]:zb=$}function Fb(){if(zb){var $=zb,_e=Ab;if(Ab=zb=null,Bb($),_e)for($=0;$<_e.length;$++)Bb(_e[$])}}function Gb($,_e){return $(_e)}function Hb(){}var Ib=!1;function Jb($,_e,et){if(Ib)return $(_e,et);Ib=!0;try{return Gb($,_e,et)}finally{Ib=!1,(zb!==null||Ab!==null)&&(Hb(),Fb())}}function Kb($,_e){var et=$.stateNode;if(et===null)return null;var tt=Db(et);if(tt===null)return null;et=tt[_e];e:switch(_e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(tt=!tt.disabled)||($=$.type,tt=!($==="button"||$==="input"||$==="select"||$==="textarea")),$=!tt;break e;default:$=!1}if($)return null;if(et&&typeof et!="function")throw Error(p$3(231,_e,typeof et));return et}var Lb=!1;if(ia)try{var Mb={};Object.defineProperty(Mb,"passive",{get:function(){Lb=!0}}),window.addEventListener("test",Mb,Mb),window.removeEventListener("test",Mb,Mb)}catch{Lb=!1}function Nb($,_e,et,tt,nt,rt,ot,it,st){var lt=Array.prototype.slice.call(arguments,3);try{_e.apply(et,lt)}catch(ct){this.onError(ct)}}var Ob=!1,Pb=null,Qb=!1,Rb=null,Sb={onError:function($){Ob=!0,Pb=$}};function Tb($,_e,et,tt,nt,rt,ot,it,st){Ob=!1,Pb=null,Nb.apply(Sb,arguments)}function Ub($,_e,et,tt,nt,rt,ot,it,st){if(Tb.apply(this,arguments),Ob){if(Ob){var lt=Pb;Ob=!1,Pb=null}else throw Error(p$3(198));Qb||(Qb=!0,Rb=lt)}}function Vb($){var _e=$,et=$;if($.alternate)for(;_e.return;)_e=_e.return;else{$=_e;do _e=$,_e.flags&4098&&(et=_e.return),$=_e.return;while($)}return _e.tag===3?et:null}function Wb($){if($.tag===13){var _e=$.memoizedState;if(_e===null&&($=$.alternate,$!==null&&(_e=$.memoizedState)),_e!==null)return _e.dehydrated}return null}function Xb($){if(Vb($)!==$)throw Error(p$3(188))}function Yb($){var _e=$.alternate;if(!_e){if(_e=Vb($),_e===null)throw Error(p$3(188));return _e!==$?null:$}for(var et=$,tt=_e;;){var nt=et.return;if(nt===null)break;var rt=nt.alternate;if(rt===null){if(tt=nt.return,tt!==null){et=tt;continue}break}if(nt.child===rt.child){for(rt=nt.child;rt;){if(rt===et)return Xb(nt),$;if(rt===tt)return Xb(nt),_e;rt=rt.sibling}throw Error(p$3(188))}if(et.return!==tt.return)et=nt,tt=rt;else{for(var ot=!1,it=nt.child;it;){if(it===et){ot=!0,et=nt,tt=rt;break}if(it===tt){ot=!0,tt=nt,et=rt;break}it=it.sibling}if(!ot){for(it=rt.child;it;){if(it===et){ot=!0,et=rt,tt=nt;break}if(it===tt){ot=!0,tt=rt,et=nt;break}it=it.sibling}if(!ot)throw Error(p$3(189))}}if(et.alternate!==tt)throw Error(p$3(190))}if(et.tag!==3)throw Error(p$3(188));return et.stateNode.current===et?$:_e}function Zb($){return $=Yb($),$!==null?$b($):null}function $b($){if($.tag===5||$.tag===6)return $;for($=$.child;$!==null;){var _e=$b($);if(_e!==null)return _e;$=$.sibling}return null}var ac=ca.unstable_scheduleCallback,bc=ca.unstable_cancelCallback,cc=ca.unstable_shouldYield,dc=ca.unstable_requestPaint,B=ca.unstable_now,ec=ca.unstable_getCurrentPriorityLevel,fc=ca.unstable_ImmediatePriority,gc=ca.unstable_UserBlockingPriority,hc=ca.unstable_NormalPriority,ic=ca.unstable_LowPriority,jc=ca.unstable_IdlePriority,kc=null,lc=null;function mc($){if(lc&&typeof lc.onCommitFiberRoot=="function")try{lc.onCommitFiberRoot(kc,$,void 0,($.current.flags&128)===128)}catch{}}var oc=Math.clz32?Math.clz32:nc,pc=Math.log,qc=Math.LN2;function nc($){return $>>>=0,$===0?32:31-(pc($)/qc|0)|0}var rc=64,sc=4194304;function tc($){switch($&-$){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 $&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return $&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return $}}function uc($,_e){var et=$.pendingLanes;if(et===0)return 0;var tt=0,nt=$.suspendedLanes,rt=$.pingedLanes,ot=et&268435455;if(ot!==0){var it=ot&~nt;it!==0?tt=tc(it):(rt&=ot,rt!==0&&(tt=tc(rt)))}else ot=et&~nt,ot!==0?tt=tc(ot):rt!==0&&(tt=tc(rt));if(tt===0)return 0;if(_e!==0&&_e!==tt&&!(_e&nt)&&(nt=tt&-tt,rt=_e&-_e,nt>=rt||nt===16&&(rt&4194240)!==0))return _e;if(tt&4&&(tt|=et&16),_e=$.entangledLanes,_e!==0)for($=$.entanglements,_e&=tt;0<_e;)et=31-oc(_e),nt=1<et;et++)_e.push($);return _e}function Ac($,_e,et){$.pendingLanes|=_e,_e!==536870912&&($.suspendedLanes=0,$.pingedLanes=0),$=$.eventTimes,_e=31-oc(_e),$[_e]=et}function Bc($,_e){var et=$.pendingLanes&~_e;$.pendingLanes=_e,$.suspendedLanes=0,$.pingedLanes=0,$.expiredLanes&=_e,$.mutableReadLanes&=_e,$.entangledLanes&=_e,_e=$.entanglements;var tt=$.eventTimes;for($=$.expirationTimes;0=be),ee=" ",fe=!1;function ge($,_e){switch($){case"keyup":return $d.indexOf(_e.keyCode)!==-1;case"keydown":return _e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he($){return $=$.detail,typeof $=="object"&&"data"in $?$.data:null}var ie=!1;function je($,_e){switch($){case"compositionend":return he(_e);case"keypress":return _e.which!==32?null:(fe=!0,ee);case"textInput":return $=_e.data,$===ee&&fe?null:$;default:return null}}function ke($,_e){if(ie)return $==="compositionend"||!ae&&ge($,_e)?($=nd(),md=ld=kd=null,ie=!1,$):null;switch($){case"paste":return null;case"keypress":if(!(_e.ctrlKey||_e.altKey||_e.metaKey)||_e.ctrlKey&&_e.altKey){if(_e.char&&1<_e.char.length)return _e.char;if(_e.which)return String.fromCharCode(_e.which)}return null;case"compositionend":return de&&_e.locale!=="ko"?null:_e.data;default:return null}}var le={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function me($){var _e=$&&$.nodeName&&$.nodeName.toLowerCase();return _e==="input"?!!le[$.type]:_e==="textarea"}function ne($,_e,et,tt){Eb(tt),_e=oe(_e,"onChange"),0<_e.length&&(et=new td("onChange","change",null,et,tt),$.push({event:et,listeners:_e}))}var pe=null,qe=null;function re($){se($,0)}function te($){var _e=ue($);if(Wa(_e))return $}function ve($,_e){if($==="change")return _e}var we=!1;if(ia){var xe;if(ia){var ye="oninput"in document;if(!ye){var ze=document.createElement("div");ze.setAttribute("oninput","return;"),ye=typeof ze.oninput=="function"}xe=ye}else xe=!1;we=xe&&(!document.documentMode||9=_e)return{node:et,offset:_e-$};$=tt}e:{for(;et;){if(et.nextSibling){et=et.nextSibling;break e}et=et.parentNode}et=void 0}et=Je(et)}}function Le($,_e){return $&&_e?$===_e?!0:$&&$.nodeType===3?!1:_e&&_e.nodeType===3?Le($,_e.parentNode):"contains"in $?$.contains(_e):$.compareDocumentPosition?!!($.compareDocumentPosition(_e)&16):!1:!1}function Me(){for(var $=window,_e=Xa();_e instanceof $.HTMLIFrameElement;){try{var et=typeof _e.contentWindow.location.href=="string"}catch{et=!1}if(et)$=_e.contentWindow;else break;_e=Xa($.document)}return _e}function Ne($){var _e=$&&$.nodeName&&$.nodeName.toLowerCase();return _e&&(_e==="input"&&($.type==="text"||$.type==="search"||$.type==="tel"||$.type==="url"||$.type==="password")||_e==="textarea"||$.contentEditable==="true")}function Oe($){var _e=Me(),et=$.focusedElem,tt=$.selectionRange;if(_e!==et&&et&&et.ownerDocument&&Le(et.ownerDocument.documentElement,et)){if(tt!==null&&Ne(et)){if(_e=tt.start,$=tt.end,$===void 0&&($=_e),"selectionStart"in et)et.selectionStart=_e,et.selectionEnd=Math.min($,et.value.length);else if($=(_e=et.ownerDocument||document)&&_e.defaultView||window,$.getSelection){$=$.getSelection();var nt=et.textContent.length,rt=Math.min(tt.start,nt);tt=tt.end===void 0?rt:Math.min(tt.end,nt),!$.extend&&rt>tt&&(nt=tt,tt=rt,rt=nt),nt=Ke(et,rt);var ot=Ke(et,tt);nt&&ot&&($.rangeCount!==1||$.anchorNode!==nt.node||$.anchorOffset!==nt.offset||$.focusNode!==ot.node||$.focusOffset!==ot.offset)&&(_e=_e.createRange(),_e.setStart(nt.node,nt.offset),$.removeAllRanges(),rt>tt?($.addRange(_e),$.extend(ot.node,ot.offset)):(_e.setEnd(ot.node,ot.offset),$.addRange(_e)))}}for(_e=[],$=et;$=$.parentNode;)$.nodeType===1&&_e.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof et.focus=="function"&&et.focus(),et=0;et<_e.length;et++)$=_e[et],$.element.scrollLeft=$.left,$.element.scrollTop=$.top}}var Pe=ia&&"documentMode"in document&&11>=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;function Ue($,_e,et){var tt=et.window===et?et.document:et.nodeType===9?et:et.ownerDocument;Te||Qe==null||Qe!==Xa(tt)||(tt=Qe,"selectionStart"in tt&&Ne(tt)?tt={start:tt.selectionStart,end:tt.selectionEnd}:(tt=(tt.ownerDocument&&tt.ownerDocument.defaultView||window).getSelection(),tt={anchorNode:tt.anchorNode,anchorOffset:tt.anchorOffset,focusNode:tt.focusNode,focusOffset:tt.focusOffset}),Se&&Ie(Se,tt)||(Se=tt,tt=oe(Re,"onSelect"),0Tf||($.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G($,_e){Tf++,Sf[Tf]=$.current,$.current=_e}var Vf={},H=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf($,_e){var et=$.type.contextTypes;if(!et)return Vf;var tt=$.stateNode;if(tt&&tt.__reactInternalMemoizedUnmaskedChildContext===_e)return tt.__reactInternalMemoizedMaskedChildContext;var nt={},rt;for(rt in et)nt[rt]=_e[rt];return tt&&($=$.stateNode,$.__reactInternalMemoizedUnmaskedChildContext=_e,$.__reactInternalMemoizedMaskedChildContext=nt),nt}function Zf($){return $=$.childContextTypes,$!=null}function $f(){E(Wf),E(H)}function ag($,_e,et){if(H.current!==Vf)throw Error(p$3(168));G(H,_e),G(Wf,et)}function bg($,_e,et){var tt=$.stateNode;if(_e=_e.childContextTypes,typeof tt.getChildContext!="function")return et;tt=tt.getChildContext();for(var nt in tt)if(!(nt in _e))throw Error(p$3(108,Ra($)||"Unknown",nt));return A({},et,tt)}function cg($){return $=($=$.stateNode)&&$.__reactInternalMemoizedMergedChildContext||Vf,Xf=H.current,G(H,$),G(Wf,Wf.current),!0}function dg($,_e,et){var tt=$.stateNode;if(!tt)throw Error(p$3(169));et?($=bg($,_e,Xf),tt.__reactInternalMemoizedMergedChildContext=$,E(Wf),E(H),G(H,$)):E(Wf),G(Wf,et)}var eg=null,fg=!1,gg=!1;function hg($){eg===null?eg=[$]:eg.push($)}function ig($){fg=!0,hg($)}function jg(){if(!gg&&eg!==null){gg=!0;var $=0,_e=C;try{var et=eg;for(C=1;$>=ot,nt-=ot,rg=1<<32-oc(_e)+nt|et<mt?(Ct=xt,xt=null):Ct=xt.sibling;var bt=dt(vt,xt,Tt[mt],Ot);if(bt===null){xt===null&&(xt=Ct);break}$&&xt&&bt.alternate===null&&_e(vt,xt),Et=rt(bt,Et,mt),$t===null?wt=bt:$t.sibling=bt,$t=bt,xt=Ct}if(mt===Tt.length)return et(vt,xt),I&&tg(vt,mt),wt;if(xt===null){for(;mtmt?(Ct=xt,xt=null):Ct=xt.sibling;var Pt=dt(vt,xt,bt.value,Ot);if(Pt===null){xt===null&&(xt=Ct);break}$&&xt&&Pt.alternate===null&&_e(vt,xt),Et=rt(Pt,Et,mt),$t===null?wt=Pt:$t.sibling=Pt,$t=Pt,xt=Ct}if(bt.done)return et(vt,xt),I&&tg(vt,mt),wt;if(xt===null){for(;!bt.done;mt++,bt=Tt.next())bt=ft(vt,bt.value,Ot),bt!==null&&(Et=rt(bt,Et,mt),$t===null?wt=bt:$t.sibling=bt,$t=bt);return I&&tg(vt,mt),wt}for(xt=tt(vt,xt);!bt.done;mt++,bt=Tt.next())bt=pt(xt,vt,mt,bt.value,Ot),bt!==null&&($&&bt.alternate!==null&&xt.delete(bt.key===null?mt:bt.key),Et=rt(bt,Et,mt),$t===null?wt=bt:$t.sibling=bt,$t=bt);return $&&xt.forEach(function(It){return _e(vt,It)}),I&&tg(vt,mt),wt}function yt(vt,Et,Tt,Ot){if(typeof Tt=="object"&&Tt!==null&&Tt.type===ya&&Tt.key===null&&(Tt=Tt.props.children),typeof Tt=="object"&&Tt!==null){switch(Tt.$$typeof){case va:e:{for(var wt=Tt.key,$t=Et;$t!==null;){if($t.key===wt){if(wt=Tt.type,wt===ya){if($t.tag===7){et(vt,$t.sibling),Et=nt($t,Tt.props.children),Et.return=vt,vt=Et;break e}}else if($t.elementType===wt||typeof wt=="object"&&wt!==null&&wt.$$typeof===Ha&&uh(wt)===$t.type){et(vt,$t.sibling),Et=nt($t,Tt.props),Et.ref=sh(vt,$t,Tt),Et.return=vt,vt=Et;break e}et(vt,$t);break}else _e(vt,$t);$t=$t.sibling}Tt.type===ya?(Et=Ah(Tt.props.children,vt.mode,Ot,Tt.key),Et.return=vt,vt=Et):(Ot=yh(Tt.type,Tt.key,Tt.props,null,vt.mode,Ot),Ot.ref=sh(vt,Et,Tt),Ot.return=vt,vt=Ot)}return ot(vt);case wa:e:{for($t=Tt.key;Et!==null;){if(Et.key===$t)if(Et.tag===4&&Et.stateNode.containerInfo===Tt.containerInfo&&Et.stateNode.implementation===Tt.implementation){et(vt,Et.sibling),Et=nt(Et,Tt.children||[]),Et.return=vt,vt=Et;break e}else{et(vt,Et);break}else _e(vt,Et);Et=Et.sibling}Et=zh(Tt,vt.mode,Ot),Et.return=vt,vt=Et}return ot(vt);case Ha:return $t=Tt._init,yt(vt,Et,$t(Tt._payload),Ot)}if(eb(Tt))return ht(vt,Et,Tt,Ot);if(Ka(Tt))return gt(vt,Et,Tt,Ot);th(vt,Tt)}return typeof Tt=="string"&&Tt!==""||typeof Tt=="number"?(Tt=""+Tt,Et!==null&&Et.tag===6?(et(vt,Et.sibling),Et=nt(Et,Tt),Et.return=vt,vt=Et):(et(vt,Et),Et=xh(Tt,vt.mode,Ot),Et.return=vt,vt=Et),ot(vt)):et(vt,Et)}return yt}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh($){if($===Dh)throw Error(p$3(174));return $}function Ih($,_e){switch(G(Gh,_e),G(Fh,$),G(Eh,Dh),$=_e.nodeType,$){case 9:case 11:_e=(_e=_e.documentElement)?_e.namespaceURI:lb(null,"");break;default:$=$===8?_e.parentNode:_e,_e=$.namespaceURI||null,$=$.tagName,_e=lb(_e,$)}E(Eh),G(Eh,_e)}function Jh(){E(Eh),E(Fh),E(Gh)}function Kh($){Hh(Gh.current);var _e=Hh(Eh.current),et=lb(_e,$.type);_e!==et&&(G(Fh,$),G(Eh,et))}function Lh($){Fh.current===$&&(E(Eh),E(Fh))}var M=Uf(0);function Mh($){for(var _e=$;_e!==null;){if(_e.tag===13){var et=_e.memoizedState;if(et!==null&&(et=et.dehydrated,et===null||et.data==="$?"||et.data==="$!"))return _e}else if(_e.tag===19&&_e.memoizedProps.revealOrder!==void 0){if(_e.flags&128)return _e}else if(_e.child!==null){_e.child.return=_e,_e=_e.child;continue}if(_e===$)break;for(;_e.sibling===null;){if(_e.return===null||_e.return===$)return null;_e=_e.return}_e.sibling.return=_e.return,_e=_e.sibling}return null}var Nh=[];function Oh(){for(var $=0;$et?et:4,$(!0);var tt=Qh.transition;Qh.transition={};try{$(!1),_e()}finally{C=et,Qh.transition=tt}}function Fi(){return di().memoizedState}function Gi($,_e,et){var tt=lh($);if(et={lane:tt,action:et,hasEagerState:!1,eagerState:null,next:null},Hi($))Ii(_e,et);else if(et=Yg($,_e,et,tt),et!==null){var nt=L();mh(et,$,tt,nt),Ji(et,_e,tt)}}function ri($,_e,et){var tt=lh($),nt={lane:tt,action:et,hasEagerState:!1,eagerState:null,next:null};if(Hi($))Ii(_e,nt);else{var rt=$.alternate;if($.lanes===0&&(rt===null||rt.lanes===0)&&(rt=_e.lastRenderedReducer,rt!==null))try{var ot=_e.lastRenderedState,it=rt(ot,et);if(nt.hasEagerState=!0,nt.eagerState=it,He(it,ot)){var st=_e.interleaved;st===null?(nt.next=nt,Xg(_e)):(nt.next=st.next,st.next=nt),_e.interleaved=nt;return}}catch{}finally{}et=Yg($,_e,nt,tt),et!==null&&(nt=L(),mh(et,$,tt,nt),Ji(et,_e,tt))}}function Hi($){var _e=$.alternate;return $===N||_e!==null&&_e===N}function Ii($,_e){Th=Sh=!0;var et=$.pending;et===null?_e.next=_e:(_e.next=et.next,et.next=_e),$.pending=_e}function Ji($,_e,et){if(et&4194240){var tt=_e.lanes;tt&=$.pendingLanes,et|=tt,_e.lanes=et,Cc($,et)}}var 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($,_e){return ci().memoizedState=[$,_e===void 0?null:_e],$},useContext:Vg,useEffect:vi,useImperativeHandle:function($,_e,et){return et=et!=null?et.concat([$]):null,ti(4194308,4,yi.bind(null,_e,$),et)},useLayoutEffect:function($,_e){return ti(4194308,4,$,_e)},useInsertionEffect:function($,_e){return ti(4,2,$,_e)},useMemo:function($,_e){var et=ci();return _e=_e===void 0?null:_e,$=$(),et.memoizedState=[$,_e],$},useReducer:function($,_e,et){var tt=ci();return _e=et!==void 0?et(_e):_e,tt.memoizedState=tt.baseState=_e,$={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$,lastRenderedState:_e},tt.queue=$,$=$.dispatch=Gi.bind(null,N,$),[tt.memoizedState,$]},useRef:function($){var _e=ci();return $={current:$},_e.memoizedState=$},useState:qi,useDebugValue:Ai,useDeferredValue:function($){return ci().memoizedState=$},useTransition:function(){var $=qi(!1),_e=$[0];return $=Ei.bind(null,$[1]),ci().memoizedState=$,[_e,$]},useMutableSource:function(){},useSyncExternalStore:function($,_e,et){var tt=N,nt=ci();if(I){if(et===void 0)throw Error(p$3(407));et=et()}else{if(et=_e(),R===null)throw Error(p$3(349));Rh&30||ni(tt,_e,et)}nt.memoizedState=et;var rt={value:et,getSnapshot:_e};return nt.queue=rt,vi(ki.bind(null,tt,rt,$),[$]),tt.flags|=2048,li(9,mi.bind(null,tt,rt,et,_e),void 0,null),et},useId:function(){var $=ci(),_e=R.identifierPrefix;if(I){var et=sg,tt=rg;et=(tt&~(1<<32-oc(tt)-1)).toString(32)+et,_e=":"+_e+"R"+et,et=Uh++,0<\/script>",$=$.removeChild($.firstChild)):typeof tt.is=="string"?$=ot.createElement(et,{is:tt.is}):($=ot.createElement(et),et==="select"&&(ot=$,tt.multiple?ot.multiple=!0:tt.size&&(ot.size=tt.size))):$=ot.createElementNS($,et),$[Of]=_e,$[Pf]=tt,Aj($,_e,!1,!1),_e.stateNode=$;e:{switch(ot=vb(et,tt),et){case"dialog":D("cancel",$),D("close",$),nt=tt;break;case"iframe":case"object":case"embed":D("load",$),nt=tt;break;case"video":case"audio":for(nt=0;ntHj&&(_e.flags|=128,tt=!0,Ej(rt,!1),_e.lanes=4194304)}else{if(!tt)if($=Mh(ot),$!==null){if(_e.flags|=128,tt=!0,et=$.updateQueue,et!==null&&(_e.updateQueue=et,_e.flags|=4),Ej(rt,!0),rt.tail===null&&rt.tailMode==="hidden"&&!ot.alternate&&!I)return S(_e),null}else 2*B()-rt.renderingStartTime>Hj&&et!==1073741824&&(_e.flags|=128,tt=!0,Ej(rt,!1),_e.lanes=4194304);rt.isBackwards?(ot.sibling=_e.child,_e.child=ot):(et=rt.last,et!==null?et.sibling=ot:_e.child=ot,rt.last=ot)}return rt.tail!==null?(_e=rt.tail,rt.rendering=_e,rt.tail=_e.sibling,rt.renderingStartTime=B(),_e.sibling=null,et=M.current,G(M,tt?et&1|2:et&1),_e):(S(_e),null);case 22:case 23:return Ij(),tt=_e.memoizedState!==null,$!==null&&$.memoizedState!==null!==tt&&(_e.flags|=8192),tt&&_e.mode&1?gj&1073741824&&(S(_e),_e.subtreeFlags&6&&(_e.flags|=8192)):S(_e),null;case 24:return null;case 25:return null}throw Error(p$3(156,_e.tag))}function Jj($,_e){switch(wg(_e),_e.tag){case 1:return Zf(_e.type)&&$f(),$=_e.flags,$&65536?(_e.flags=$&-65537|128,_e):null;case 3:return Jh(),E(Wf),E(H),Oh(),$=_e.flags,$&65536&&!($&128)?(_e.flags=$&-65537|128,_e):null;case 5:return Lh(_e),null;case 13:if(E(M),$=_e.memoizedState,$!==null&&$.dehydrated!==null){if(_e.alternate===null)throw Error(p$3(340));Ig()}return $=_e.flags,$&65536?(_e.flags=$&-65537|128,_e):null;case 19:return E(M),null;case 4:return Jh(),null;case 10:return Rg(_e.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V=null;function Mj($,_e){var et=$.ref;if(et!==null)if(typeof et=="function")try{et(null)}catch(tt){W($,_e,tt)}else et.current=null}function Nj($,_e,et){try{et()}catch(tt){W($,_e,tt)}}var Oj=!1;function Pj($,_e){if(Cf=dd,$=Me(),Ne($)){if("selectionStart"in $)var et={start:$.selectionStart,end:$.selectionEnd};else e:{et=(et=$.ownerDocument)&&et.defaultView||window;var tt=et.getSelection&&et.getSelection();if(tt&&tt.rangeCount!==0){et=tt.anchorNode;var nt=tt.anchorOffset,rt=tt.focusNode;tt=tt.focusOffset;try{et.nodeType,rt.nodeType}catch{et=null;break e}var ot=0,it=-1,st=-1,lt=0,ct=0,ft=$,dt=null;t:for(;;){for(var pt;ft!==et||nt!==0&&ft.nodeType!==3||(it=ot+nt),ft!==rt||tt!==0&&ft.nodeType!==3||(st=ot+tt),ft.nodeType===3&&(ot+=ft.nodeValue.length),(pt=ft.firstChild)!==null;)dt=ft,ft=pt;for(;;){if(ft===$)break t;if(dt===et&&++lt===nt&&(it=ot),dt===rt&&++ct===tt&&(st=ot),(pt=ft.nextSibling)!==null)break;ft=dt,dt=ft.parentNode}ft=pt}et=it===-1||st===-1?null:{start:it,end:st}}else et=null}et=et||{start:0,end:0}}else et=null;for(Df={focusedElem:$,selectionRange:et},dd=!1,V=_e;V!==null;)if(_e=V,$=_e.child,(_e.subtreeFlags&1028)!==0&&$!==null)$.return=_e,V=$;else for(;V!==null;){_e=V;try{var ht=_e.alternate;if(_e.flags&1024)switch(_e.tag){case 0:case 11:case 15:break;case 1:if(ht!==null){var gt=ht.memoizedProps,yt=ht.memoizedState,vt=_e.stateNode,Et=vt.getSnapshotBeforeUpdate(_e.elementType===_e.type?gt:Lg(_e.type,gt),yt);vt.__reactInternalSnapshotBeforeUpdate=Et}break;case 3:var Tt=_e.stateNode.containerInfo;Tt.nodeType===1?Tt.textContent="":Tt.nodeType===9&&Tt.documentElement&&Tt.removeChild(Tt.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$3(163))}}catch(Ot){W(_e,_e.return,Ot)}if($=_e.sibling,$!==null){$.return=_e.return,V=$;break}V=_e.return}return ht=Oj,Oj=!1,ht}function Qj($,_e,et){var tt=_e.updateQueue;if(tt=tt!==null?tt.lastEffect:null,tt!==null){var nt=tt=tt.next;do{if((nt.tag&$)===$){var rt=nt.destroy;nt.destroy=void 0,rt!==void 0&&Nj(_e,et,rt)}nt=nt.next}while(nt!==tt)}}function Rj($,_e){if(_e=_e.updateQueue,_e=_e!==null?_e.lastEffect:null,_e!==null){var et=_e=_e.next;do{if((et.tag&$)===$){var tt=et.create;et.destroy=tt()}et=et.next}while(et!==_e)}}function Sj($){var _e=$.ref;if(_e!==null){var et=$.stateNode;switch($.tag){case 5:$=et;break;default:$=et}typeof _e=="function"?_e($):_e.current=$}}function Tj($){var _e=$.alternate;_e!==null&&($.alternate=null,Tj(_e)),$.child=null,$.deletions=null,$.sibling=null,$.tag===5&&(_e=$.stateNode,_e!==null&&(delete _e[Of],delete _e[Pf],delete _e[of],delete _e[Qf],delete _e[Rf])),$.stateNode=null,$.return=null,$.dependencies=null,$.memoizedProps=null,$.memoizedState=null,$.pendingProps=null,$.stateNode=null,$.updateQueue=null}function Uj($){return $.tag===5||$.tag===3||$.tag===4}function Vj($){e:for(;;){for(;$.sibling===null;){if($.return===null||Uj($.return))return null;$=$.return}for($.sibling.return=$.return,$=$.sibling;$.tag!==5&&$.tag!==6&&$.tag!==18;){if($.flags&2||$.child===null||$.tag===4)continue e;$.child.return=$,$=$.child}if(!($.flags&2))return $.stateNode}}function Wj($,_e,et){var tt=$.tag;if(tt===5||tt===6)$=$.stateNode,_e?et.nodeType===8?et.parentNode.insertBefore($,_e):et.insertBefore($,_e):(et.nodeType===8?(_e=et.parentNode,_e.insertBefore($,et)):(_e=et,_e.appendChild($)),et=et._reactRootContainer,et!=null||_e.onclick!==null||(_e.onclick=Bf));else if(tt!==4&&($=$.child,$!==null))for(Wj($,_e,et),$=$.sibling;$!==null;)Wj($,_e,et),$=$.sibling}function Xj($,_e,et){var tt=$.tag;if(tt===5||tt===6)$=$.stateNode,_e?et.insertBefore($,_e):et.appendChild($);else if(tt!==4&&($=$.child,$!==null))for(Xj($,_e,et),$=$.sibling;$!==null;)Xj($,_e,et),$=$.sibling}var X=null,Yj=!1;function Zj($,_e,et){for(et=et.child;et!==null;)ak($,_e,et),et=et.sibling}function ak($,_e,et){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,et)}catch{}switch(et.tag){case 5:U||Mj(et,_e);case 6:var tt=X,nt=Yj;X=null,Zj($,_e,et),X=tt,Yj=nt,X!==null&&(Yj?($=X,et=et.stateNode,$.nodeType===8?$.parentNode.removeChild(et):$.removeChild(et)):X.removeChild(et.stateNode));break;case 18:X!==null&&(Yj?($=X,et=et.stateNode,$.nodeType===8?Kf($.parentNode,et):$.nodeType===1&&Kf($,et),bd($)):Kf(X,et.stateNode));break;case 4:tt=X,nt=Yj,X=et.stateNode.containerInfo,Yj=!0,Zj($,_e,et),X=tt,Yj=nt;break;case 0:case 11:case 14:case 15:if(!U&&(tt=et.updateQueue,tt!==null&&(tt=tt.lastEffect,tt!==null))){nt=tt=tt.next;do{var rt=nt,ot=rt.destroy;rt=rt.tag,ot!==void 0&&(rt&2||rt&4)&&Nj(et,_e,ot),nt=nt.next}while(nt!==tt)}Zj($,_e,et);break;case 1:if(!U&&(Mj(et,_e),tt=et.stateNode,typeof tt.componentWillUnmount=="function"))try{tt.props=et.memoizedProps,tt.state=et.memoizedState,tt.componentWillUnmount()}catch(it){W(et,_e,it)}Zj($,_e,et);break;case 21:Zj($,_e,et);break;case 22:et.mode&1?(U=(tt=U)||et.memoizedState!==null,Zj($,_e,et),U=tt):Zj($,_e,et);break;default:Zj($,_e,et)}}function bk($){var _e=$.updateQueue;if(_e!==null){$.updateQueue=null;var et=$.stateNode;et===null&&(et=$.stateNode=new Lj),_e.forEach(function(tt){var nt=ck.bind(null,$,tt);et.has(tt)||(et.add(tt),tt.then(nt,nt))})}}function dk($,_e){var et=_e.deletions;if(et!==null)for(var tt=0;ttnt&&(nt=ot),tt&=~rt}if(tt=nt,tt=B()-tt,tt=(120>tt?120:480>tt?480:1080>tt?1080:1920>tt?1920:3e3>tt?3e3:4320>tt?4320:1960*mk(tt/1960))-tt,10$?16:$,xk===null)var tt=!1;else{if($=xk,xk=null,yk=0,K&6)throw Error(p$3(331));var nt=K;for(K|=4,V=$.current;V!==null;){var rt=V,ot=rt.child;if(V.flags&16){var it=rt.deletions;if(it!==null){for(var st=0;stB()-gk?Lk($,0):sk|=et),Ek($,_e)}function Zk($,_e){_e===0&&($.mode&1?(_e=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):_e=1);var et=L();$=Zg($,_e),$!==null&&(Ac($,_e,et),Ek($,et))}function vj($){var _e=$.memoizedState,et=0;_e!==null&&(et=_e.retryLane),Zk($,et)}function ck($,_e){var et=0;switch($.tag){case 13:var tt=$.stateNode,nt=$.memoizedState;nt!==null&&(et=nt.retryLane);break;case 19:tt=$.stateNode;break;default:throw Error(p$3(314))}tt!==null&&tt.delete(_e),Zk($,et)}var Wk;Wk=function($,_e,et){if($!==null)if($.memoizedProps!==_e.pendingProps||Wf.current)Ug=!0;else{if(!($.lanes&et)&&!(_e.flags&128))return Ug=!1,zj($,_e,et);Ug=!!($.flags&131072)}else Ug=!1,I&&_e.flags&1048576&&ug(_e,ng,_e.index);switch(_e.lanes=0,_e.tag){case 2:var tt=_e.type;jj($,_e),$=_e.pendingProps;var nt=Yf(_e,H.current);Tg(_e,et),nt=Xh(null,_e,tt,$,nt,et);var rt=bi();return _e.flags|=1,typeof nt=="object"&&nt!==null&&typeof nt.render=="function"&&nt.$$typeof===void 0?(_e.tag=1,_e.memoizedState=null,_e.updateQueue=null,Zf(tt)?(rt=!0,cg(_e)):rt=!1,_e.memoizedState=nt.state!==null&&nt.state!==void 0?nt.state:null,ah(_e),nt.updater=nh,_e.stateNode=nt,nt._reactInternals=_e,rh(_e,tt,$,et),_e=kj(null,_e,tt,!0,rt,et)):(_e.tag=0,I&&rt&&vg(_e),Yi(null,_e,nt,et),_e=_e.child),_e;case 16:tt=_e.elementType;e:{switch(jj($,_e),$=_e.pendingProps,nt=tt._init,tt=nt(tt._payload),_e.type=tt,nt=_e.tag=$k(tt),$=Lg(tt,$),nt){case 0:_e=dj(null,_e,tt,$,et);break e;case 1:_e=ij(null,_e,tt,$,et);break e;case 11:_e=Zi(null,_e,tt,$,et);break e;case 14:_e=aj(null,_e,tt,Lg(tt.type,$),et);break e}throw Error(p$3(306,tt,""))}return _e;case 0:return tt=_e.type,nt=_e.pendingProps,nt=_e.elementType===tt?nt:Lg(tt,nt),dj($,_e,tt,nt,et);case 1:return tt=_e.type,nt=_e.pendingProps,nt=_e.elementType===tt?nt:Lg(tt,nt),ij($,_e,tt,nt,et);case 3:e:{if(lj(_e),$===null)throw Error(p$3(387));tt=_e.pendingProps,rt=_e.memoizedState,nt=rt.element,bh($,_e),gh(_e,tt,null,et);var ot=_e.memoizedState;if(tt=ot.element,rt.isDehydrated)if(rt={element:tt,isDehydrated:!1,cache:ot.cache,pendingSuspenseBoundaries:ot.pendingSuspenseBoundaries,transitions:ot.transitions},_e.updateQueue.baseState=rt,_e.memoizedState=rt,_e.flags&256){nt=Ki(Error(p$3(423)),_e),_e=mj($,_e,tt,et,nt);break e}else if(tt!==nt){nt=Ki(Error(p$3(424)),_e),_e=mj($,_e,tt,et,nt);break e}else for(yg=Lf(_e.stateNode.containerInfo.firstChild),xg=_e,I=!0,zg=null,et=Ch(_e,null,tt,et),_e.child=et;et;)et.flags=et.flags&-3|4096,et=et.sibling;else{if(Ig(),tt===nt){_e=$i($,_e,et);break e}Yi($,_e,tt,et)}_e=_e.child}return _e;case 5:return Kh(_e),$===null&&Eg(_e),tt=_e.type,nt=_e.pendingProps,rt=$!==null?$.memoizedProps:null,ot=nt.children,Ef(tt,nt)?ot=null:rt!==null&&Ef(tt,rt)&&(_e.flags|=32),hj($,_e),Yi($,_e,ot,et),_e.child;case 6:return $===null&&Eg(_e),null;case 13:return pj($,_e,et);case 4:return Ih(_e,_e.stateNode.containerInfo),tt=_e.pendingProps,$===null?_e.child=Bh(_e,null,tt,et):Yi($,_e,tt,et),_e.child;case 11:return tt=_e.type,nt=_e.pendingProps,nt=_e.elementType===tt?nt:Lg(tt,nt),Zi($,_e,tt,nt,et);case 7:return Yi($,_e,_e.pendingProps,et),_e.child;case 8:return Yi($,_e,_e.pendingProps.children,et),_e.child;case 12:return Yi($,_e,_e.pendingProps.children,et),_e.child;case 10:e:{if(tt=_e.type._context,nt=_e.pendingProps,rt=_e.memoizedProps,ot=nt.value,G(Mg,tt._currentValue),tt._currentValue=ot,rt!==null)if(He(rt.value,ot)){if(rt.children===nt.children&&!Wf.current){_e=$i($,_e,et);break e}}else for(rt=_e.child,rt!==null&&(rt.return=_e);rt!==null;){var it=rt.dependencies;if(it!==null){ot=rt.child;for(var st=it.firstContext;st!==null;){if(st.context===tt){if(rt.tag===1){st=ch(-1,et&-et),st.tag=2;var lt=rt.updateQueue;if(lt!==null){lt=lt.shared;var ct=lt.pending;ct===null?st.next=st:(st.next=ct.next,ct.next=st),lt.pending=st}}rt.lanes|=et,st=rt.alternate,st!==null&&(st.lanes|=et),Sg(rt.return,et,_e),it.lanes|=et;break}st=st.next}}else if(rt.tag===10)ot=rt.type===_e.type?null:rt.child;else if(rt.tag===18){if(ot=rt.return,ot===null)throw Error(p$3(341));ot.lanes|=et,it=ot.alternate,it!==null&&(it.lanes|=et),Sg(ot,et,_e),ot=rt.sibling}else ot=rt.child;if(ot!==null)ot.return=rt;else for(ot=rt;ot!==null;){if(ot===_e){ot=null;break}if(rt=ot.sibling,rt!==null){rt.return=ot.return,ot=rt;break}ot=ot.return}rt=ot}Yi($,_e,nt.children,et),_e=_e.child}return _e;case 9:return nt=_e.type,tt=_e.pendingProps.children,Tg(_e,et),nt=Vg(nt),tt=tt(nt),_e.flags|=1,Yi($,_e,tt,et),_e.child;case 14:return tt=_e.type,nt=Lg(tt,_e.pendingProps),nt=Lg(tt.type,nt),aj($,_e,tt,nt,et);case 15:return cj($,_e,_e.type,_e.pendingProps,et);case 17:return tt=_e.type,nt=_e.pendingProps,nt=_e.elementType===tt?nt:Lg(tt,nt),jj($,_e),_e.tag=1,Zf(tt)?($=!0,cg(_e)):$=!1,Tg(_e,et),ph(_e,tt,nt),rh(_e,tt,nt,et),kj(null,_e,tt,!0,$,et);case 19:return yj($,_e,et);case 22:return ej($,_e,et)}throw Error(p$3(156,_e.tag))};function Gk($,_e){return ac($,_e)}function al($,_e,et,tt){this.tag=$,this.key=et,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=_e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=tt,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg($,_e,et,tt){return new al($,_e,et,tt)}function bj($){return $=$.prototype,!(!$||!$.isReactComponent)}function $k($){if(typeof $=="function")return bj($)?1:0;if($!=null){if($=$.$$typeof,$===Da)return 11;if($===Ga)return 14}return 2}function wh($,_e){var et=$.alternate;return et===null?(et=Bg($.tag,_e,$.key,$.mode),et.elementType=$.elementType,et.type=$.type,et.stateNode=$.stateNode,et.alternate=$,$.alternate=et):(et.pendingProps=_e,et.type=$.type,et.flags=0,et.subtreeFlags=0,et.deletions=null),et.flags=$.flags&14680064,et.childLanes=$.childLanes,et.lanes=$.lanes,et.child=$.child,et.memoizedProps=$.memoizedProps,et.memoizedState=$.memoizedState,et.updateQueue=$.updateQueue,_e=$.dependencies,et.dependencies=_e===null?null:{lanes:_e.lanes,firstContext:_e.firstContext},et.sibling=$.sibling,et.index=$.index,et.ref=$.ref,et}function yh($,_e,et,tt,nt,rt){var ot=2;if(tt=$,typeof $=="function")bj($)&&(ot=1);else if(typeof $=="string")ot=5;else e:switch($){case ya:return Ah(et.children,nt,rt,_e);case za:ot=8,nt|=8;break;case Aa:return $=Bg(12,et,_e,nt|2),$.elementType=Aa,$.lanes=rt,$;case Ea:return $=Bg(13,et,_e,nt),$.elementType=Ea,$.lanes=rt,$;case Fa:return $=Bg(19,et,_e,nt),$.elementType=Fa,$.lanes=rt,$;case Ia:return qj(et,nt,rt,_e);default:if(typeof $=="object"&&$!==null)switch($.$$typeof){case Ba:ot=10;break e;case Ca:ot=9;break e;case Da:ot=11;break e;case Ga:ot=14;break e;case Ha:ot=16,tt=null;break e}throw Error(p$3(130,$==null?$:typeof $,""))}return _e=Bg(ot,et,_e,nt),_e.elementType=$,_e.type=tt,_e.lanes=rt,_e}function Ah($,_e,et,tt){return $=Bg(7,$,tt,_e),$.lanes=et,$}function qj($,_e,et,tt){return $=Bg(22,$,tt,_e),$.elementType=Ia,$.lanes=et,$.stateNode={isHidden:!1},$}function xh($,_e,et){return $=Bg(6,$,null,_e),$.lanes=et,$}function zh($,_e,et){return _e=Bg(4,$.children!==null?$.children:[],$.key,_e),_e.lanes=et,_e.stateNode={containerInfo:$.containerInfo,pendingChildren:null,implementation:$.implementation},_e}function bl($,_e,et,tt,nt){this.tag=_e,this.containerInfo=$,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=tt,this.onRecoverableError=nt,this.mutableSourceEagerHydrationData=null}function cl($,_e,et,tt,nt,rt,ot,it,st){return $=new bl($,_e,et,it,st),_e===1?(_e=1,rt===!0&&(_e|=8)):_e=0,rt=Bg(3,null,null,_e),$.current=rt,rt.stateNode=$,rt.memoizedState={element:tt,isDehydrated:et,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(rt),$}function dl($,_e,et){var tt=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch($){console.error($)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs(reactDomExports);var m$1=reactDomExports;client$1.createRoot=m$1.createRoot,client$1.hydrateRoot=m$1.hydrateRoot;var jsx=function(_e,et){var tt=arguments;if(et==null||!hasOwnProperty$2.call(et,"css"))return reactExports.createElement.apply(void 0,tt);var nt=tt.length,rt=new Array(nt);rt[0]=Emotion$1,rt[1]=createEmotionProps(_e,et);for(var ot=2;otreactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-mail",...$},reactExports.createElement("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),reactExports.createElement("polyline",{points:"11 16 18 16"}),reactExports.createElement("polyline",{points:"6 16 8 16"}),reactExports.createElement("polyline",{points:"6 12 13 12"}),reactExports.createElement("polyline",{points:"16 12 18 12"}));function formatProdErrorMessage$1($){return`Minified Redux error #${$}; visit https://redux.js.org/Errors?code=${$} for the full message or use the non-minified dev environment for full errors. `}var $$observable=typeof Symbol=="function"&&Symbol.observable||"@@observable",symbol_observable_default=$$observable,randomString$1=()=>Math.random().toString(36).substring(7).split("").join("."),ActionTypes={INIT:`@@redux/INIT${randomString$1()}`,REPLACE:`@@redux/REPLACE${randomString$1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${randomString$1()}`},actionTypes_default=ActionTypes;function isPlainObject$2($){if(typeof $!="object"||$===null)return!1;let _e=$;for(;Object.getPrototypeOf(_e)!==null;)_e=Object.getPrototypeOf(_e);return Object.getPrototypeOf($)===_e||Object.getPrototypeOf($)===null}function createStore($,_e,et){if(typeof $!="function")throw new Error(formatProdErrorMessage$1(2));if(typeof _e=="function"&&typeof et=="function"||typeof et=="function"&&typeof arguments[3]=="function")throw new Error(formatProdErrorMessage$1(0));if(typeof _e=="function"&&typeof et>"u"&&(et=_e,_e=void 0),typeof et<"u"){if(typeof et!="function")throw new Error(formatProdErrorMessage$1(1));return et(createStore)($,_e)}let tt=$,nt=_e,rt=new Map,ot=rt,it=0,st=!1;function lt(){ot===rt&&(ot=new Map,rt.forEach((yt,vt)=>{ot.set(vt,yt)}))}function ct(){if(st)throw new Error(formatProdErrorMessage$1(3));return nt}function ft(yt){if(typeof yt!="function")throw new Error(formatProdErrorMessage$1(4));if(st)throw new Error(formatProdErrorMessage$1(5));let vt=!0;lt();const Et=it++;return ot.set(Et,yt),function(){if(vt){if(st)throw new Error(formatProdErrorMessage$1(6));vt=!1,lt(),ot.delete(Et),rt=null}}}function dt(yt){if(!isPlainObject$2(yt))throw new Error(formatProdErrorMessage$1(7));if(typeof yt.type>"u")throw new Error(formatProdErrorMessage$1(8));if(typeof yt.type!="string")throw new Error(formatProdErrorMessage$1(17));if(st)throw new Error(formatProdErrorMessage$1(9));try{st=!0,nt=tt(nt,yt)}finally{st=!1}return(rt=ot).forEach(Et=>{Et()}),yt}function pt(yt){if(typeof yt!="function")throw new Error(formatProdErrorMessage$1(10));tt=yt,dt({type:actionTypes_default.REPLACE})}function ht(){const yt=ft;return{subscribe(vt){if(typeof vt!="object"||vt===null)throw new Error(formatProdErrorMessage$1(11));function Et(){const Ot=vt;Ot.next&&Ot.next(ct())}return Et(),{unsubscribe:yt(Et)}},[symbol_observable_default](){return this}}}return dt({type:actionTypes_default.INIT}),{dispatch:dt,subscribe:ft,getState:ct,replaceReducer:pt,[symbol_observable_default]:ht}}function assertReducerShape($){Object.keys($).forEach(_e=>{const et=$[_e];if(typeof et(void 0,{type:actionTypes_default.INIT})>"u")throw new Error(formatProdErrorMessage$1(12));if(typeof et(void 0,{type:actionTypes_default.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(formatProdErrorMessage$1(13))})}function combineReducers($){const _e=Object.keys($),et={};for(let rt=0;rt<_e.length;rt++){const ot=_e[rt];typeof $[ot]=="function"&&(et[ot]=$[ot])}const tt=Object.keys(et);let nt;try{assertReducerShape(et)}catch(rt){nt=rt}return function(ot={},it){if(nt)throw nt;let st=!1;const lt={};for(let ct=0;ct"u")throw it&&it.type,new Error(formatProdErrorMessage$1(14));lt[ft]=ht,st=st||ht!==pt}return st=st||tt.length!==Object.keys(ot).length,st?lt:ot}}function compose$1(...$){return $.length===0?_e=>_e:$.length===1?$[0]:$.reduce((_e,et)=>(...tt)=>_e(et(...tt)))}function applyMiddleware(...$){return _e=>(et,tt)=>{const nt=_e(et,tt);let rt=()=>{throw new Error(formatProdErrorMessage$1(15))};const ot={getState:nt.getState,dispatch:(st,...lt)=>rt(st,...lt)},it=$.map(st=>st(ot));return rt=compose$1(...it)(nt.dispatch),{...nt,dispatch:rt}}}function isAction($){return isPlainObject$2($)&&"type"in $&&typeof $.type=="string"}var NOTHING=Symbol.for("immer-nothing"),DRAFTABLE=Symbol.for("immer-draftable"),DRAFT_STATE=Symbol.for("immer-state");function die($,..._e){throw new Error(`[Immer] minified error nr: ${$}. Full error at: https://bit.ly/3cXEKWf`)}var getPrototypeOf=Object.getPrototypeOf;function isDraft($){return!!$&&!!$[DRAFT_STATE]}function isDraftable($){var _e;return $?isPlainObject$1($)||Array.isArray($)||!!$[DRAFTABLE]||!!((_e=$.constructor)!=null&&_e[DRAFTABLE])||isMap($)||isSet($):!1}var objectCtorString=Object.prototype.constructor.toString();function isPlainObject$1($){if(!$||typeof $!="object")return!1;const _e=getPrototypeOf($);if(_e===null)return!0;const et=Object.hasOwnProperty.call(_e,"constructor")&&_e.constructor;return et===Object?!0:typeof et=="function"&&Function.toString.call(et)===objectCtorString}function each$2($,_e){getArchtype($)===0?Object.entries($).forEach(([et,tt])=>{_e(et,tt,$)}):$.forEach((et,tt)=>_e(tt,et,$))}function getArchtype($){const _e=$[DRAFT_STATE];return _e?_e.type_:Array.isArray($)?1:isMap($)?2:isSet($)?3:0}function has($,_e){return getArchtype($)===2?$.has(_e):Object.prototype.hasOwnProperty.call($,_e)}function set($,_e,et){const tt=getArchtype($);tt===2?$.set(_e,et):tt===3?$.add(et):$[_e]=et}function is$1($,_e){return $===_e?$!==0||1/$===1/_e:$!==$&&_e!==_e}function isMap($){return $ instanceof Map}function isSet($){return $ instanceof Set}function latest($){return $.copy_||$.base_}function shallowCopy($,_e){if(isMap($))return new Map($);if(isSet($))return new Set($);if(Array.isArray($))return Array.prototype.slice.call($);if(!_e&&isPlainObject$1($))return getPrototypeOf($)?{...$}:Object.assign(Object.create(null),$);const et=Object.getOwnPropertyDescriptors($);delete et[DRAFT_STATE];let tt=Reflect.ownKeys(et);for(let nt=0;nt1&&($.set=$.add=$.clear=$.delete=dontMutateFrozenCollections),Object.freeze($),_e&&each$2($,(et,tt)=>freeze(tt,!0))),$}function dontMutateFrozenCollections(){die(2)}function isFrozen($){return Object.isFrozen($)}var plugins={};function getPlugin($){const _e=plugins[$];return _e||die(0,$),_e}var currentScope;function getCurrentScope(){return currentScope}function createScope($,_e){return{drafts_:[],parent_:$,immer_:_e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function usePatchesInScope($,_e){_e&&(getPlugin("Patches"),$.patches_=[],$.inversePatches_=[],$.patchListener_=_e)}function revokeScope($){leaveScope($),$.drafts_.forEach(revokeDraft),$.drafts_=null}function leaveScope($){$===currentScope&&(currentScope=$.parent_)}function enterScope($){return currentScope=createScope(currentScope,$)}function revokeDraft($){const _e=$[DRAFT_STATE];_e.type_===0||_e.type_===1?_e.revoke_():_e.revoked_=!0}function processResult($,_e){_e.unfinalizedDrafts_=_e.drafts_.length;const et=_e.drafts_[0];return $!==void 0&&$!==et?(et[DRAFT_STATE].modified_&&(revokeScope(_e),die(4)),isDraftable($)&&($=finalize(_e,$),_e.parent_||maybeFreeze(_e,$)),_e.patches_&&getPlugin("Patches").generateReplacementPatches_(et[DRAFT_STATE].base_,$,_e.patches_,_e.inversePatches_)):$=finalize(_e,et,[]),revokeScope(_e),_e.patches_&&_e.patchListener_(_e.patches_,_e.inversePatches_),$!==NOTHING?$:void 0}function finalize($,_e,et){if(isFrozen(_e))return _e;const tt=_e[DRAFT_STATE];if(!tt)return each$2(_e,(nt,rt)=>finalizeProperty($,tt,_e,nt,rt,et)),_e;if(tt.scope_!==$)return _e;if(!tt.modified_)return maybeFreeze($,tt.base_,!0),tt.base_;if(!tt.finalized_){tt.finalized_=!0,tt.scope_.unfinalizedDrafts_--;const nt=tt.copy_;let rt=nt,ot=!1;tt.type_===3&&(rt=new Set(nt),nt.clear(),ot=!0),each$2(rt,(it,st)=>finalizeProperty($,tt,nt,it,st,et,ot)),maybeFreeze($,nt,!1),et&&$.patches_&&getPlugin("Patches").generatePatches_(tt,et,$.patches_,$.inversePatches_)}return tt.copy_}function finalizeProperty($,_e,et,tt,nt,rt,ot){if(isDraft(nt)){const it=rt&&_e&&_e.type_!==3&&!has(_e.assigned_,tt)?rt.concat(tt):void 0,st=finalize($,nt,it);if(set(et,tt,st),isDraft(st))$.canAutoFreeze_=!1;else return}else ot&&et.add(nt);if(isDraftable(nt)&&!isFrozen(nt)){if(!$.immer_.autoFreeze_&&$.unfinalizedDrafts_<1)return;finalize($,nt),(!_e||!_e.scope_.parent_)&&maybeFreeze($,nt)}}function maybeFreeze($,_e,et=!1){!$.parent_&&$.immer_.autoFreeze_&&$.canAutoFreeze_&&freeze(_e,et)}function createProxyProxy($,_e){const et=Array.isArray($),tt={type_:et?1:0,scope_:_e?_e.scope_:getCurrentScope(),modified_:!1,finalized_:!1,assigned_:{},parent_:_e,base_:$,draft_:null,copy_:null,revoke_:null,isManual_:!1};let nt=tt,rt=objectTraps;et&&(nt=[tt],rt=arrayTraps);const{revoke:ot,proxy:it}=Proxy.revocable(nt,rt);return tt.draft_=it,tt.revoke_=ot,it}var objectTraps={get($,_e){if(_e===DRAFT_STATE)return $;const et=latest($);if(!has(et,_e))return readPropFromProto($,et,_e);const tt=et[_e];return $.finalized_||!isDraftable(tt)?tt:tt===peek($.base_,_e)?(prepareCopy($),$.copy_[_e]=createProxy(tt,$)):tt},has($,_e){return _e in latest($)},ownKeys($){return Reflect.ownKeys(latest($))},set($,_e,et){const tt=getDescriptorFromProto(latest($),_e);if(tt!=null&&tt.set)return tt.set.call($.draft_,et),!0;if(!$.modified_){const nt=peek(latest($),_e),rt=nt==null?void 0:nt[DRAFT_STATE];if(rt&&rt.base_===et)return $.copy_[_e]=et,$.assigned_[_e]=!1,!0;if(is$1(et,nt)&&(et!==void 0||has($.base_,_e)))return!0;prepareCopy($),markChanged($)}return $.copy_[_e]===et&&(et!==void 0||_e in $.copy_)||Number.isNaN(et)&&Number.isNaN($.copy_[_e])||($.copy_[_e]=et,$.assigned_[_e]=!0),!0},deleteProperty($,_e){return peek($.base_,_e)!==void 0||_e in $.base_?($.assigned_[_e]=!1,prepareCopy($),markChanged($)):delete $.assigned_[_e],$.copy_&&delete $.copy_[_e],!0},getOwnPropertyDescriptor($,_e){const et=latest($),tt=Reflect.getOwnPropertyDescriptor(et,_e);return tt&&{writable:!0,configurable:$.type_!==1||_e!=="length",enumerable:tt.enumerable,value:et[_e]}},defineProperty(){die(11)},getPrototypeOf($){return getPrototypeOf($.base_)},setPrototypeOf(){die(12)}},arrayTraps={};each$2(objectTraps,($,_e)=>{arrayTraps[$]=function(){return arguments[0]=arguments[0][0],_e.apply(this,arguments)}});arrayTraps.deleteProperty=function($,_e){return arrayTraps.set.call(this,$,_e,void 0)};arrayTraps.set=function($,_e,et){return objectTraps.set.call(this,$[0],_e,et,$[0])};function peek($,_e){const et=$[DRAFT_STATE];return(et?latest(et):$)[_e]}function readPropFromProto($,_e,et){var nt;const tt=getDescriptorFromProto(_e,et);return tt?"value"in tt?tt.value:(nt=tt.get)==null?void 0:nt.call($.draft_):void 0}function getDescriptorFromProto($,_e){if(!(_e in $))return;let et=getPrototypeOf($);for(;et;){const tt=Object.getOwnPropertyDescriptor(et,_e);if(tt)return tt;et=getPrototypeOf(et)}}function markChanged($){$.modified_||($.modified_=!0,$.parent_&&markChanged($.parent_))}function prepareCopy($){$.copy_||($.copy_=shallowCopy($.base_,$.scope_.immer_.useStrictShallowCopy_))}var Immer2=class{constructor($){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(_e,et,tt)=>{if(typeof _e=="function"&&typeof et!="function"){const rt=et;et=_e;const ot=this;return function(st=rt,...lt){return ot.produce(st,ct=>et.call(this,ct,...lt))}}typeof et!="function"&&die(6),tt!==void 0&&typeof tt!="function"&&die(7);let nt;if(isDraftable(_e)){const rt=enterScope(this),ot=createProxy(_e,void 0);let it=!0;try{nt=et(ot),it=!1}finally{it?revokeScope(rt):leaveScope(rt)}return usePatchesInScope(rt,tt),processResult(nt,rt)}else if(!_e||typeof _e!="object"){if(nt=et(_e),nt===void 0&&(nt=_e),nt===NOTHING&&(nt=void 0),this.autoFreeze_&&freeze(nt,!0),tt){const rt=[],ot=[];getPlugin("Patches").generateReplacementPatches_(_e,nt,rt,ot),tt(rt,ot)}return nt}else die(1,_e)},this.produceWithPatches=(_e,et)=>{if(typeof _e=="function")return(ot,...it)=>this.produceWithPatches(ot,st=>_e(st,...it));let tt,nt;return[this.produce(_e,et,(ot,it)=>{tt=ot,nt=it}),tt,nt]},typeof($==null?void 0:$.autoFreeze)=="boolean"&&this.setAutoFreeze($.autoFreeze),typeof($==null?void 0:$.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy($.useStrictShallowCopy)}createDraft($){isDraftable($)||die(8),isDraft($)&&($=current($));const _e=enterScope(this),et=createProxy($,void 0);return et[DRAFT_STATE].isManual_=!0,leaveScope(_e),et}finishDraft($,_e){const et=$&&$[DRAFT_STATE];(!et||!et.isManual_)&&die(9);const{scope_:tt}=et;return usePatchesInScope(tt,_e),processResult(void 0,tt)}setAutoFreeze($){this.autoFreeze_=$}setUseStrictShallowCopy($){this.useStrictShallowCopy_=$}applyPatches($,_e){let et;for(et=_e.length-1;et>=0;et--){const nt=_e[et];if(nt.path.length===0&&nt.op==="replace"){$=nt.value;break}}et>-1&&(_e=_e.slice(et+1));const tt=getPlugin("Patches").applyPatches_;return isDraft($)?tt($,_e):this.produce($,nt=>tt(nt,_e))}};function createProxy($,_e){const et=isMap($)?getPlugin("MapSet").proxyMap_($,_e):isSet($)?getPlugin("MapSet").proxySet_($,_e):createProxyProxy($,_e);return(_e?_e.scope_:getCurrentScope()).drafts_.push(et),et}function current($){return isDraft($)||die(10,$),currentImpl($)}function currentImpl($){if(!isDraftable($)||isFrozen($))return $;const _e=$[DRAFT_STATE];let et;if(_e){if(!_e.modified_)return _e.base_;_e.finalized_=!0,et=shallowCopy($,_e.scope_.immer_.useStrictShallowCopy_)}else et=shallowCopy($,!0);return each$2(et,(tt,nt)=>{set(et,tt,currentImpl(nt))}),_e&&(_e.finalized_=!1),et}var immer=new Immer2,produce=immer.produce;immer.produceWithPatches.bind(immer);immer.setAutoFreeze.bind(immer);immer.setUseStrictShallowCopy.bind(immer);immer.applyPatches.bind(immer);immer.createDraft.bind(immer);immer.finishDraft.bind(immer);function assertIsFunction($,_e=`expected a function, instead received ${typeof $}`){if(typeof $!="function")throw new TypeError(_e)}function assertIsObject($,_e=`expected an object, instead received ${typeof $}`){if(typeof $!="object")throw new TypeError(_e)}function assertIsArrayOfFunctions($,_e="expected all items to be functions, instead received the following types: "){if(!$.every(et=>typeof et=="function")){const et=$.map(tt=>typeof tt=="function"?`function ${tt.name||"unnamed"}()`:typeof tt).join(", ");throw new TypeError(`${_e}[${et}]`)}}var ensureIsArray=$=>Array.isArray($)?$:[$];function getDependencies($){const _e=Array.isArray($[0])?$[0]:$;return assertIsArrayOfFunctions(_e,"createSelector expects all input-selectors to be functions, but received the following types: "),_e}function collectInputSelectorResults($,_e){const et=[],{length:tt}=$;for(let nt=0;nt{et=createCacheNode(),ot.resetResultsCount()},ot.resultsCount=()=>rt,ot.resetResultsCount=()=>{rt=0},ot}function createSelectorCreator($,..._e){const et=typeof $=="function"?{memoize:$,memoizeOptions:_e}:$,tt=(...nt)=>{let rt=0,ot=0,it,st={},lt=nt.pop();typeof lt=="object"&&(st=lt,lt=nt.pop()),assertIsFunction(lt,`createSelector expects an output function after the inputs, but received: [${typeof lt}]`);const ct={...et,...st},{memoize:ft,memoizeOptions:dt=[],argsMemoize:pt=weakMapMemoize,argsMemoizeOptions:ht=[],devModeChecks:gt={}}=ct,yt=ensureIsArray(dt),vt=ensureIsArray(ht),Et=getDependencies(nt),Tt=ft(function(){return rt++,lt.apply(null,arguments)},...yt),Ot=pt(function(){ot++;const $t=collectInputSelectorResults(Et,arguments);return it=Tt.apply(null,$t),it},...vt);return Object.assign(Ot,{resultFunc:lt,memoizedResultFunc:Tt,dependencies:Et,dependencyRecomputations:()=>ot,resetDependencyRecomputations:()=>{ot=0},lastResult:()=>it,recomputations:()=>rt,resetRecomputations:()=>{rt=0},memoize:ft,argsMemoize:pt})};return Object.assign(tt,{withTypes:()=>tt}),tt}var createSelector=createSelectorCreator(weakMapMemoize),createStructuredSelector=Object.assign(($,_e=createSelector)=>{assertIsObject($,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof $}`);const et=Object.keys($),tt=et.map(rt=>$[rt]);return _e(tt,(...rt)=>rt.reduce((ot,it,st)=>(ot[et[st]]=it,ot),{}))},{withTypes:()=>createStructuredSelector});function createThunkMiddleware($){return({dispatch:et,getState:tt})=>nt=>rt=>typeof rt=="function"?rt(et,tt,$):nt(rt)}var thunk=createThunkMiddleware(),withExtraArgument=createThunkMiddleware,createDraftSafeSelectorCreator=(...$)=>{const _e=createSelectorCreator(...$);return(...et)=>{const tt=_e(...et),nt=(rt,...ot)=>tt(isDraft(rt)?current(rt):rt,...ot);return Object.assign(nt,tt),nt}};createDraftSafeSelectorCreator(weakMapMemoize);var composeWithDevTools=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?compose$1:compose$1.apply(null,arguments)},hasMatchFunction=$=>$&&typeof $.match=="function";function createAction($,_e){function et(...tt){if(_e){let nt=_e(...tt);if(!nt)throw new Error(formatProdErrorMessage(0));return{type:$,payload:nt.payload,..."meta"in nt&&{meta:nt.meta},..."error"in nt&&{error:nt.error}}}return{type:$,payload:tt[0]}}return et.toString=()=>`${$}`,et.type=$,et.match=tt=>isAction(tt)&&tt.type===$,et}var Tuple=class ws extends Array{constructor(..._e){super(..._e),Object.setPrototypeOf(this,ws.prototype)}static get[Symbol.species](){return ws}concat(..._e){return super.concat.apply(this,_e)}prepend(..._e){return _e.length===1&&Array.isArray(_e[0])?new ws(..._e[0].concat(this)):new ws(..._e.concat(this))}};function freezeDraftable($){return isDraftable($)?produce($,()=>{}):$}function emplace($,_e,et){if($.has(_e)){let nt=$.get(_e);return et.update&&(nt=et.update(nt,_e,$),$.set(_e,nt)),nt}if(!et.insert)throw new Error(formatProdErrorMessage(10));const tt=et.insert(_e,$);return $.set(_e,tt),tt}function isBoolean($){return typeof $=="boolean"}var buildGetDefaultMiddleware=()=>function(_e){const{thunk:et=!0,immutableCheck:tt=!0,serializableCheck:nt=!0,actionCreatorCheck:rt=!0}=_e??{};let ot=new Tuple;return et&&(isBoolean(et)?ot.push(thunk):ot.push(withExtraArgument(et.extraArgument))),ot},SHOULD_AUTOBATCH="RTK_autoBatch",createQueueWithTimer=$=>_e=>{setTimeout(_e,$)},rAF=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:createQueueWithTimer(10),autoBatchEnhancer=($={type:"raf"})=>_e=>(...et)=>{const tt=_e(...et);let nt=!0,rt=!1,ot=!1;const it=new Set,st=$.type==="tick"?queueMicrotask:$.type==="raf"?rAF:$.type==="callback"?$.queueNotification:createQueueWithTimer($.timeout),lt=()=>{ot=!1,rt&&(rt=!1,it.forEach(ct=>ct()))};return Object.assign({},tt,{subscribe(ct){const ft=()=>nt&&ct(),dt=tt.subscribe(ft);return it.add(ct),()=>{dt(),it.delete(ct)}},dispatch(ct){var ft;try{return nt=!((ft=ct==null?void 0:ct.meta)!=null&&ft[SHOULD_AUTOBATCH]),rt=!nt,rt&&(ot||(ot=!0,st(lt))),tt.dispatch(ct)}finally{nt=!0}}})},buildGetDefaultEnhancers=$=>function(et){const{autoBatch:tt=!0}=et??{};let nt=new Tuple($);return tt&&nt.push(autoBatchEnhancer(typeof tt=="object"?tt:void 0)),nt},IS_PRODUCTION=!0;function configureStore($){const _e=buildGetDefaultMiddleware(),{reducer:et=void 0,middleware:tt,devTools:nt=!0,preloadedState:rt=void 0,enhancers:ot=void 0}=$||{};let it;if(typeof et=="function")it=et;else if(isPlainObject$2(et))it=combineReducers(et);else throw new Error(formatProdErrorMessage(1));let st;typeof tt=="function"?st=tt(_e):st=_e();let lt=compose$1;nt&&(lt=composeWithDevTools({trace:!IS_PRODUCTION,...typeof nt=="object"&&nt}));const ct=applyMiddleware(...st),ft=buildGetDefaultEnhancers(ct);let dt=typeof ot=="function"?ot(ft):ft();const pt=lt(...dt);return createStore(it,rt,pt)}function executeReducerBuilderCallback($){const _e={},et=[];let tt;const nt={addCase(rt,ot){const it=typeof rt=="string"?rt:rt.type;if(!it)throw new Error(formatProdErrorMessage(28));if(it in _e)throw new Error(formatProdErrorMessage(29));return _e[it]=ot,nt},addMatcher(rt,ot){return et.push({matcher:rt,reducer:ot}),nt},addDefaultCase(rt){return tt=rt,nt}};return $(nt),[_e,et,tt]}function isStateFunction($){return typeof $=="function"}function createReducer($,_e){let[et,tt,nt]=executeReducerBuilderCallback(_e),rt;if(isStateFunction($))rt=()=>freezeDraftable($());else{const it=freezeDraftable($);rt=()=>it}function ot(it=rt(),st){let lt=[et[st.type],...tt.filter(({matcher:ct})=>ct(st)).map(({reducer:ct})=>ct)];return lt.filter(ct=>!!ct).length===0&&(lt=[nt]),lt.reduce((ct,ft)=>{if(ft)if(isDraft(ct)){const pt=ft(ct,st);return pt===void 0?ct:pt}else{if(isDraftable(ct))return produce(ct,dt=>ft(dt,st));{const dt=ft(ct,st);if(dt===void 0){if(ct===null)return ct;throw new Error(formatProdErrorMessage(9))}return dt}}return ct},it)}return ot.getInitialState=rt,ot}var urlAlphabet="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",nanoid=($=21)=>{let _e="",et=$;for(;et--;)_e+=urlAlphabet[Math.random()*64|0];return _e},matches=($,_e)=>hasMatchFunction($)?$.match(_e):$(_e);function isAnyOf(...$){return _e=>$.some(et=>matches(et,_e))}var commonProperties=["name","message","stack","code"],RejectWithValue=class{constructor($,_e){Wu(this,"_type");this.payload=$,this.meta=_e}},FulfillWithMeta=class{constructor($,_e){Wu(this,"_type");this.payload=$,this.meta=_e}},miniSerializeError=$=>{if(typeof $=="object"&&$!==null){const _e={};for(const et of commonProperties)typeof $[et]=="string"&&(_e[et]=$[et]);return _e}return{message:String($)}},createAsyncThunk=(()=>{function $(_e,et,tt){const nt=createAction(_e+"/fulfilled",(st,lt,ct,ft)=>({payload:st,meta:{...ft||{},arg:ct,requestId:lt,requestStatus:"fulfilled"}})),rt=createAction(_e+"/pending",(st,lt,ct)=>({payload:void 0,meta:{...ct||{},arg:lt,requestId:st,requestStatus:"pending"}})),ot=createAction(_e+"/rejected",(st,lt,ct,ft,dt)=>({payload:ft,error:(tt&&tt.serializeError||miniSerializeError)(st||"Rejected"),meta:{...dt||{},arg:ct,requestId:lt,rejectedWithValue:!!ft,requestStatus:"rejected",aborted:(st==null?void 0:st.name)==="AbortError",condition:(st==null?void 0:st.name)==="ConditionError"}}));function it(st){return(lt,ct,ft)=>{const dt=tt!=null&&tt.idGenerator?tt.idGenerator(st):nanoid(),pt=new AbortController;let ht;function gt(vt){ht=vt,pt.abort()}const yt=async function(){var Tt,Ot;let vt;try{let xt=(Tt=tt==null?void 0:tt.condition)==null?void 0:Tt.call(tt,st,{getState:ct,extra:ft});if(isThenable(xt)&&(xt=await xt),xt===!1||pt.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const $t=new Promise((wt,mt)=>pt.signal.addEventListener("abort",()=>mt({name:"AbortError",message:ht||"Aborted"})));lt(rt(dt,st,(Ot=tt==null?void 0:tt.getPendingMeta)==null?void 0:Ot.call(tt,{requestId:dt,arg:st},{getState:ct,extra:ft}))),vt=await Promise.race([$t,Promise.resolve(et(st,{dispatch:lt,getState:ct,extra:ft,requestId:dt,signal:pt.signal,abort:gt,rejectWithValue:(wt,mt)=>new RejectWithValue(wt,mt),fulfillWithValue:(wt,mt)=>new FulfillWithMeta(wt,mt)})).then(wt=>{if(wt instanceof RejectWithValue)throw wt;return wt instanceof FulfillWithMeta?nt(wt.payload,dt,st,wt.meta):nt(wt,dt,st)})])}catch(xt){vt=xt instanceof RejectWithValue?ot(null,dt,st,xt.payload,xt.meta):ot(xt,dt,st)}return tt&&!tt.dispatchConditionRejection&&ot.match(vt)&&vt.meta.condition||lt(vt),vt}();return Object.assign(yt,{abort:gt,requestId:dt,arg:st,unwrap(){return yt.then(unwrapResult)}})}}return Object.assign(it,{pending:rt,rejected:ot,fulfilled:nt,settled:isAnyOf(ot,nt),typePrefix:_e})}return $.withTypes=()=>$,$})();function unwrapResult($){if($.meta&&$.meta.rejectedWithValue)throw $.payload;if($.error)throw $.error;return $.payload}function isThenable($){return $!==null&&typeof $=="object"&&typeof $.then=="function"}var asyncThunkSymbol=Symbol.for("rtk-slice-createasyncthunk");function getType($,_e){return`${$}/${_e}`}function buildCreateSlice({creators:$}={}){var et;const _e=(et=$==null?void 0:$.asyncThunk)==null?void 0:et[asyncThunkSymbol];return function(nt){const{name:rt,reducerPath:ot=rt}=nt;if(!rt)throw new Error(formatProdErrorMessage(11));typeof process<"u";const it=(typeof nt.reducers=="function"?nt.reducers(buildReducerCreators()):nt.reducers)||{},st=Object.keys(it),lt={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},ct={addCase(yt,vt){const Et=typeof yt=="string"?yt:yt.type;if(!Et)throw new Error(formatProdErrorMessage(12));if(Et in lt.sliceCaseReducersByType)throw new Error(formatProdErrorMessage(13));return lt.sliceCaseReducersByType[Et]=vt,ct},addMatcher(yt,vt){return lt.sliceMatchers.push({matcher:yt,reducer:vt}),ct},exposeAction(yt,vt){return lt.actionCreators[yt]=vt,ct},exposeCaseReducer(yt,vt){return lt.sliceCaseReducersByName[yt]=vt,ct}};st.forEach(yt=>{const vt=it[yt],Et={reducerName:yt,type:getType(rt,yt),createNotation:typeof nt.reducers=="function"};isAsyncThunkSliceReducerDefinition(vt)?handleThunkCaseReducerDefinition(Et,vt,ct,_e):handleNormalReducerDefinition(Et,vt,ct)});function ft(){const[yt={},vt=[],Et=void 0]=typeof nt.extraReducers=="function"?executeReducerBuilderCallback(nt.extraReducers):[nt.extraReducers],Tt={...yt,...lt.sliceCaseReducersByType};return createReducer(nt.initialState,Ot=>{for(let xt in Tt)Ot.addCase(xt,Tt[xt]);for(let xt of lt.sliceMatchers)Ot.addMatcher(xt.matcher,xt.reducer);for(let xt of vt)Ot.addMatcher(xt.matcher,xt.reducer);Et&&Ot.addDefaultCase(Et)})}const dt=yt=>yt,pt=new WeakMap;let ht;const gt={name:rt,reducerPath:ot,reducer(yt,vt){return ht||(ht=ft()),ht(yt,vt)},actions:lt.actionCreators,caseReducers:lt.sliceCaseReducersByName,getInitialState(){return ht||(ht=ft()),ht.getInitialState()},getSelectors(yt=dt){const vt=emplace(pt,this,{insert:()=>new WeakMap});return emplace(vt,yt,{insert:()=>{const Et={};for(const[Tt,Ot]of Object.entries(nt.selectors??{}))Et[Tt]=wrapSelector(this,Ot,yt,this!==gt);return Et}})},selectSlice(yt){let vt=yt[this.reducerPath];return typeof vt>"u"&&this!==gt&&(vt=this.getInitialState()),vt},get selectors(){return this.getSelectors(this.selectSlice)},injectInto(yt,{reducerPath:vt,...Et}={}){const Tt=vt??this.reducerPath;return yt.inject({reducerPath:Tt,reducer:this.reducer},Et),{...this,reducerPath:Tt}}};return gt}}function wrapSelector($,_e,et,tt){function nt(rt,...ot){let it=et.call($,rt);return typeof it>"u"&&tt&&(it=$.getInitialState()),_e(it,...ot)}return nt.unwrapped=_e,nt}var createSlice=buildCreateSlice();function buildReducerCreators(){function $(_e,et){return{_reducerDefinitionType:"asyncThunk",payloadCreator:_e,...et}}return $.withTypes=()=>$,{reducer(_e){return Object.assign({[_e.name](...et){return _e(...et)}}[_e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(_e,et){return{_reducerDefinitionType:"reducerWithPrepare",prepare:_e,reducer:et}},asyncThunk:$}}function handleNormalReducerDefinition({type:$,reducerName:_e,createNotation:et},tt,nt){let rt,ot;if("reducer"in tt){if(et&&!isCaseReducerWithPrepareDefinition(tt))throw new Error(formatProdErrorMessage(17));rt=tt.reducer,ot=tt.prepare}else rt=tt;nt.addCase($,rt).exposeCaseReducer(_e,rt).exposeAction(_e,ot?createAction($,ot):createAction($))}function isAsyncThunkSliceReducerDefinition($){return $._reducerDefinitionType==="asyncThunk"}function isCaseReducerWithPrepareDefinition($){return $._reducerDefinitionType==="reducerWithPrepare"}function handleThunkCaseReducerDefinition({type:$,reducerName:_e},et,tt,nt){if(!nt)throw new Error(formatProdErrorMessage(18));const{payloadCreator:rt,fulfilled:ot,pending:it,rejected:st,settled:lt,options:ct}=et,ft=nt($,rt,ct);tt.exposeAction(_e,ft),ot&&tt.addCase(ft.fulfilled,ot),it&&tt.addCase(ft.pending,it),st&&tt.addCase(ft.rejected,st),lt&&tt.addMatcher(ft.settled,lt),tt.exposeCaseReducer(_e,{fulfilled:ot||noop$4,pending:it||noop$4,rejected:st||noop$4,settled:lt||noop$4})}function noop$4(){}var alm="listenerMiddleware";createAction(`${alm}/add`);createAction(`${alm}/removeAll`);createAction(`${alm}/remove`);function formatProdErrorMessage($){return`Minified Redux Toolkit error #${$}; visit https://redux-toolkit.js.org/Errors?code=${$} for the full message or use the non-minified dev environment for full errors. `}var MainMenuStateNames=($=>($.cutting="mainMenu.cutting-button",$.metadata="mainMenu.metadata-button",$.trackSelection="mainMenu.select-tracks-button",$.subtitles="mainMenu.subtitles-button",$.thumbnail="mainMenu.thumbnail-button",$.finish="mainMenu.finish-button",$.keyboardControls="mainMenu.keyboard-controls-button",$))(MainMenuStateNames||{});const initialState$8={value:MainMenuStateNames.cutting},mainMenuSlice=createSlice({name:"mainMenuState",initialState:initialState$8,reducers:{setState:($,_e)=>{$.value=_e.payload}},selectors:{selectMainMenuState:$=>$.value}}),{setState:setState$1}=mainMenuSlice.actions,{selectMainMenuState}=mainMenuSlice.selectors,mainMenuStateReducer=mainMenuSlice.reducer,initialState$7={value:"Start processing",pageNumber:0},finishSlice=createSlice({name:"finishState",initialState:initialState$7,reducers:{setState:($,_e)=>{$.value=_e.payload},setPageNumber:($,_e)=>{$.pageNumber=_e.payload}},selectors:{selectFinishState:$=>$.value,selectPageNumber:$=>$.pageNumber}}),{setState,setPageNumber}=finishSlice.actions,{selectFinishState,selectPageNumber}=finishSlice.selectors,finishStateReducer=finishSlice.reducer;var tomlParser={exports:{}};const ParserEND=1114112;class ParserError extends Error{constructor(_e,et,tt){super("[ParserError] "+_e,et,tt),this.name="ParserError",this.code="ParserError",Error.captureStackTrace&&Error.captureStackTrace(this,ParserError)}}class State{constructor(_e){this.parser=_e,this.buf="",this.returned=null,this.result=null,this.resultTable=null,this.resultArr=null}}class Parser{constructor(){this.pos=0,this.col=0,this.line=0,this.obj={},this.ctx=this.obj,this.stack=[],this._buf="",this.char=null,this.ii=0,this.state=new State(this.parseStart)}parse(_e){if(_e.length===0||_e.length==null)return;this._buf=String(_e),this.ii=-1,this.char=-1;let et;for(;et===!1||this.nextChar();)et=this.runOne();this._buf=null}nextChar(){return this.char===10&&(++this.line,this.col=-1),++this.ii,this.char=this._buf.codePointAt(this.ii),++this.pos,++this.col,this.haveBuffer()}haveBuffer(){return this.ii{const _e=new Date($);if(isNaN(_e))throw new TypeError("Invalid Datetime");return _e},formatNum=($,_e)=>{for(_e=String(_e);_e.length<$;)_e="0"+_e;return _e};const f$3=formatNum;class FloatingDateTime extends Date{constructor(_e){super(_e+"Z"),this.isFloating=!0}toISOString(){const _e=`${this.getUTCFullYear()}-${f$3(2,this.getUTCMonth()+1)}-${f$3(2,this.getUTCDate())}`,et=`${f$3(2,this.getUTCHours())}:${f$3(2,this.getUTCMinutes())}:${f$3(2,this.getUTCSeconds())}.${f$3(3,this.getUTCMilliseconds())}`;return`${_e}T${et}`}}var createDatetimeFloat=$=>{const _e=new FloatingDateTime($);if(isNaN(_e))throw new TypeError("Invalid Datetime");return _e};const f$2=formatNum,DateTime$1=globalThis.Date;let Date$1=class extends DateTime$1{constructor(_e){super(_e),this.isDate=!0}toISOString(){return`${this.getUTCFullYear()}-${f$2(2,this.getUTCMonth()+1)}-${f$2(2,this.getUTCDate())}`}};var createDate$1=$=>{const _e=new Date$1($);if(isNaN(_e))throw new TypeError("Invalid Datetime");return _e};const f$1=formatNum;class Time extends Date{constructor(_e){super(`0000-01-01T${_e}Z`),this.isTime=!0}toISOString(){return`${f$1(2,this.getUTCHours())}:${f$1(2,this.getUTCMinutes())}:${f$1(2,this.getUTCSeconds())}.${f$1(3,this.getUTCMilliseconds())}`}}var createTime$1=$=>{const _e=new Time($);if(isNaN(_e))throw new TypeError("Invalid Datetime");return _e};tomlParser.exports=makeParserClass(parser$1);tomlParser.exports.makeParserClass=makeParserClass;class TomlError extends Error{constructor(_e){super(_e),this.name="TomlError",Error.captureStackTrace&&Error.captureStackTrace(this,TomlError),this.fromTOML=!0,this.wrapped=null}}TomlError.wrap=$=>{const _e=new TomlError($.message);return _e.code=$.code,_e.wrapped=$,_e};tomlParser.exports.TomlError=TomlError;const createDateTime=createDatetime,createDateTimeFloat=createDatetimeFloat,createDate=createDate$1,createTime=createTime$1,CTRL_I=9,CTRL_J=10,CTRL_M=13,CTRL_CHAR_BOUNDARY=31,CHAR_SP=32,CHAR_QUOT=34,CHAR_NUM=35,CHAR_APOS=39,CHAR_PLUS=43,CHAR_COMMA=44,CHAR_HYPHEN=45,CHAR_PERIOD=46,CHAR_0=48,CHAR_1=49,CHAR_7=55,CHAR_9=57,CHAR_COLON=58,CHAR_EQUALS=61,CHAR_A=65,CHAR_E=69,CHAR_F=70,CHAR_T=84,CHAR_U=85,CHAR_Z=90,CHAR_LOWBAR=95,CHAR_a=97,CHAR_b=98,CHAR_e=101,CHAR_f=102,CHAR_i=105,CHAR_l=108,CHAR_n=110,CHAR_o=111,CHAR_r=114,CHAR_s=115,CHAR_t=116,CHAR_u=117,CHAR_x=120,CHAR_z=122,CHAR_LCUB=123,CHAR_RCUB=125,CHAR_LSQB=91,CHAR_BSOL=92,CHAR_RSQB=93,CHAR_DEL=127,SURROGATE_FIRST=55296,SURROGATE_LAST=57343,escapes={[CHAR_b]:"\b",[CHAR_t]:" ",[CHAR_n]:` +`+rt.stack}return{value:$,source:_e,stack:nt,digest:null}}function Li($,_e,et){return{value:$,source:null,stack:et??null,digest:_e??null}}function Mi($,_e){try{console.error(_e.value)}catch(et){setTimeout(function(){throw et})}}var Ni=typeof WeakMap=="function"?WeakMap:Map;function Oi($,_e,et){et=ch(-1,et),et.tag=3,et.payload={element:null};var tt=_e.value;return et.callback=function(){Pi||(Pi=!0,Qi=tt),Mi($,_e)},et}function Ri($,_e,et){et=ch(-1,et),et.tag=3;var tt=$.type.getDerivedStateFromError;if(typeof tt=="function"){var nt=_e.value;et.payload=function(){return tt(nt)},et.callback=function(){Mi($,_e)}}var rt=$.stateNode;return rt!==null&&typeof rt.componentDidCatch=="function"&&(et.callback=function(){Mi($,_e),typeof tt!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var ot=_e.stack;this.componentDidCatch(_e.value,{componentStack:ot!==null?ot:""})}),et}function Ti($,_e,et){var tt=$.pingCache;if(tt===null){tt=$.pingCache=new Ni;var nt=new Set;tt.set(_e,nt)}else nt=tt.get(_e),nt===void 0&&(nt=new Set,tt.set(_e,nt));nt.has(et)||(nt.add(et),$=Ui.bind(null,$,_e,et),_e.then($,$))}function Vi($){do{var _e;if((_e=$.tag===13)&&(_e=$.memoizedState,_e=_e!==null?_e.dehydrated!==null:!0),_e)return $;$=$.return}while($!==null);return null}function Wi($,_e,et,tt,nt){return $.mode&1?($.flags|=65536,$.lanes=nt,$):($===_e?$.flags|=65536:($.flags|=128,et.flags|=131072,et.flags&=-52805,et.tag===1&&(et.alternate===null?et.tag=17:(_e=ch(-1,1),_e.tag=2,dh(et,_e,1))),et.lanes|=1),$)}var Xi=ua$1.ReactCurrentOwner,Ug=!1;function Yi($,_e,et,tt){_e.child=$===null?Ch(_e,null,et,tt):Bh(_e,$.child,et,tt)}function Zi($,_e,et,tt,nt){et=et.render;var rt=_e.ref;return Tg(_e,nt),tt=Xh($,_e,et,tt,rt,nt),et=bi(),$!==null&&!Ug?(_e.updateQueue=$.updateQueue,_e.flags&=-2053,$.lanes&=~nt,$i($,_e,nt)):(I&&et&&vg(_e),_e.flags|=1,Yi($,_e,tt,nt),_e.child)}function aj($,_e,et,tt,nt){if($===null){var rt=et.type;return typeof rt=="function"&&!bj(rt)&&rt.defaultProps===void 0&&et.compare===null&&et.defaultProps===void 0?(_e.tag=15,_e.type=rt,cj($,_e,rt,tt,nt)):($=yh(et.type,null,tt,_e,_e.mode,nt),$.ref=_e.ref,$.return=_e,_e.child=$)}if(rt=$.child,!($.lanes&nt)){var ot=rt.memoizedProps;if(et=et.compare,et=et!==null?et:Ie,et(ot,tt)&&$.ref===_e.ref)return $i($,_e,nt)}return _e.flags|=1,$=wh(rt,tt),$.ref=_e.ref,$.return=_e,_e.child=$}function cj($,_e,et,tt,nt){if($!==null){var rt=$.memoizedProps;if(Ie(rt,tt)&&$.ref===_e.ref)if(Ug=!1,_e.pendingProps=tt=rt,($.lanes&nt)!==0)$.flags&131072&&(Ug=!0);else return _e.lanes=$.lanes,$i($,_e,nt)}return dj($,_e,et,tt,nt)}function ej($,_e,et){var tt=_e.pendingProps,nt=tt.children,rt=$!==null?$.memoizedState:null;if(tt.mode==="hidden")if(!(_e.mode&1))_e.memoizedState={baseLanes:0,cachePool:null,transitions:null},G(fj,gj),gj|=et;else{if(!(et&1073741824))return $=rt!==null?rt.baseLanes|et:et,_e.lanes=_e.childLanes=1073741824,_e.memoizedState={baseLanes:$,cachePool:null,transitions:null},_e.updateQueue=null,G(fj,gj),gj|=$,null;_e.memoizedState={baseLanes:0,cachePool:null,transitions:null},tt=rt!==null?rt.baseLanes:et,G(fj,gj),gj|=tt}else rt!==null?(tt=rt.baseLanes|et,_e.memoizedState=null):tt=et,G(fj,gj),gj|=tt;return Yi($,_e,nt,et),_e.child}function hj($,_e){var et=_e.ref;($===null&&et!==null||$!==null&&$.ref!==et)&&(_e.flags|=512,_e.flags|=2097152)}function dj($,_e,et,tt,nt){var rt=Zf(et)?Xf:H.current;return rt=Yf(_e,rt),Tg(_e,nt),et=Xh($,_e,et,tt,rt,nt),tt=bi(),$!==null&&!Ug?(_e.updateQueue=$.updateQueue,_e.flags&=-2053,$.lanes&=~nt,$i($,_e,nt)):(I&&tt&&vg(_e),_e.flags|=1,Yi($,_e,et,nt),_e.child)}function ij($,_e,et,tt,nt){if(Zf(et)){var rt=!0;cg(_e)}else rt=!1;if(Tg(_e,nt),_e.stateNode===null)jj($,_e),ph(_e,et,tt),rh(_e,et,tt,nt),tt=!0;else if($===null){var ot=_e.stateNode,it=_e.memoizedProps;ot.props=it;var st=ot.context,lt=et.contextType;typeof lt=="object"&<!==null?lt=Vg(lt):(lt=Zf(et)?Xf:H.current,lt=Yf(_e,lt));var ct=et.getDerivedStateFromProps,ft=typeof ct=="function"||typeof ot.getSnapshotBeforeUpdate=="function";ft||typeof ot.UNSAFE_componentWillReceiveProps!="function"&&typeof ot.componentWillReceiveProps!="function"||(it!==tt||st!==lt)&&qh(_e,ot,tt,lt),$g=!1;var dt=_e.memoizedState;ot.state=dt,gh(_e,tt,ot,nt),st=_e.memoizedState,it!==tt||dt!==st||Wf.current||$g?(typeof ct=="function"&&(kh(_e,et,ct,tt),st=_e.memoizedState),(it=$g||oh(_e,et,it,tt,dt,st,lt))?(ft||typeof ot.UNSAFE_componentWillMount!="function"&&typeof ot.componentWillMount!="function"||(typeof ot.componentWillMount=="function"&&ot.componentWillMount(),typeof ot.UNSAFE_componentWillMount=="function"&&ot.UNSAFE_componentWillMount()),typeof ot.componentDidMount=="function"&&(_e.flags|=4194308)):(typeof ot.componentDidMount=="function"&&(_e.flags|=4194308),_e.memoizedProps=tt,_e.memoizedState=st),ot.props=tt,ot.state=st,ot.context=lt,tt=it):(typeof ot.componentDidMount=="function"&&(_e.flags|=4194308),tt=!1)}else{ot=_e.stateNode,bh($,_e),it=_e.memoizedProps,lt=_e.type===_e.elementType?it:Lg(_e.type,it),ot.props=lt,ft=_e.pendingProps,dt=ot.context,st=et.contextType,typeof st=="object"&&st!==null?st=Vg(st):(st=Zf(et)?Xf:H.current,st=Yf(_e,st));var pt=et.getDerivedStateFromProps;(ct=typeof pt=="function"||typeof ot.getSnapshotBeforeUpdate=="function")||typeof ot.UNSAFE_componentWillReceiveProps!="function"&&typeof ot.componentWillReceiveProps!="function"||(it!==ft||dt!==st)&&qh(_e,ot,tt,st),$g=!1,dt=_e.memoizedState,ot.state=dt,gh(_e,tt,ot,nt);var ht=_e.memoizedState;it!==ft||dt!==ht||Wf.current||$g?(typeof pt=="function"&&(kh(_e,et,pt,tt),ht=_e.memoizedState),(lt=$g||oh(_e,et,lt,tt,dt,ht,st)||!1)?(ct||typeof ot.UNSAFE_componentWillUpdate!="function"&&typeof ot.componentWillUpdate!="function"||(typeof ot.componentWillUpdate=="function"&&ot.componentWillUpdate(tt,ht,st),typeof ot.UNSAFE_componentWillUpdate=="function"&&ot.UNSAFE_componentWillUpdate(tt,ht,st)),typeof ot.componentDidUpdate=="function"&&(_e.flags|=4),typeof ot.getSnapshotBeforeUpdate=="function"&&(_e.flags|=1024)):(typeof ot.componentDidUpdate!="function"||it===$.memoizedProps&&dt===$.memoizedState||(_e.flags|=4),typeof ot.getSnapshotBeforeUpdate!="function"||it===$.memoizedProps&&dt===$.memoizedState||(_e.flags|=1024),_e.memoizedProps=tt,_e.memoizedState=ht),ot.props=tt,ot.state=ht,ot.context=st,tt=lt):(typeof ot.componentDidUpdate!="function"||it===$.memoizedProps&&dt===$.memoizedState||(_e.flags|=4),typeof ot.getSnapshotBeforeUpdate!="function"||it===$.memoizedProps&&dt===$.memoizedState||(_e.flags|=1024),tt=!1)}return kj($,_e,et,tt,rt,nt)}function kj($,_e,et,tt,nt,rt){hj($,_e);var ot=(_e.flags&128)!==0;if(!tt&&!ot)return nt&&dg(_e,et,!1),$i($,_e,rt);tt=_e.stateNode,Xi.current=_e;var it=ot&&typeof et.getDerivedStateFromError!="function"?null:tt.render();return _e.flags|=1,$!==null&&ot?(_e.child=Bh(_e,$.child,null,rt),_e.child=Bh(_e,null,it,rt)):Yi($,_e,it,rt),_e.memoizedState=tt.state,nt&&dg(_e,et,!0),_e.child}function lj($){var _e=$.stateNode;_e.pendingContext?ag($,_e.pendingContext,_e.pendingContext!==_e.context):_e.context&&ag($,_e.context,!1),Ih($,_e.containerInfo)}function mj($,_e,et,tt,nt){return Ig(),Jg(nt),_e.flags|=256,Yi($,_e,et,tt),_e.child}var nj={dehydrated:null,treeContext:null,retryLane:0};function oj($){return{baseLanes:$,cachePool:null,transitions:null}}function pj($,_e,et){var tt=_e.pendingProps,nt=M.current,rt=!1,ot=(_e.flags&128)!==0,it;if((it=ot)||(it=$!==null&&$.memoizedState===null?!1:(nt&2)!==0),it?(rt=!0,_e.flags&=-129):($===null||$.memoizedState!==null)&&(nt|=1),G(M,nt&1),$===null)return Eg(_e),$=_e.memoizedState,$!==null&&($=$.dehydrated,$!==null)?(_e.mode&1?$.data==="$!"?_e.lanes=8:_e.lanes=1073741824:_e.lanes=1,null):(ot=tt.children,$=tt.fallback,rt?(tt=_e.mode,rt=_e.child,ot={mode:"hidden",children:ot},!(tt&1)&&rt!==null?(rt.childLanes=0,rt.pendingProps=ot):rt=qj(ot,tt,0,null),$=Ah($,tt,et,null),rt.return=_e,$.return=_e,rt.sibling=$,_e.child=rt,_e.child.memoizedState=oj(et),_e.memoizedState=nj,$):rj(_e,ot));if(nt=$.memoizedState,nt!==null&&(it=nt.dehydrated,it!==null))return sj($,_e,ot,tt,it,nt,et);if(rt){rt=tt.fallback,ot=_e.mode,nt=$.child,it=nt.sibling;var st={mode:"hidden",children:tt.children};return!(ot&1)&&_e.child!==nt?(tt=_e.child,tt.childLanes=0,tt.pendingProps=st,_e.deletions=null):(tt=wh(nt,st),tt.subtreeFlags=nt.subtreeFlags&14680064),it!==null?rt=wh(it,rt):(rt=Ah(rt,ot,et,null),rt.flags|=2),rt.return=_e,tt.return=_e,tt.sibling=rt,_e.child=tt,tt=rt,rt=_e.child,ot=$.child.memoizedState,ot=ot===null?oj(et):{baseLanes:ot.baseLanes|et,cachePool:null,transitions:ot.transitions},rt.memoizedState=ot,rt.childLanes=$.childLanes&~et,_e.memoizedState=nj,tt}return rt=$.child,$=rt.sibling,tt=wh(rt,{mode:"visible",children:tt.children}),!(_e.mode&1)&&(tt.lanes=et),tt.return=_e,tt.sibling=null,$!==null&&(et=_e.deletions,et===null?(_e.deletions=[$],_e.flags|=16):et.push($)),_e.child=tt,_e.memoizedState=null,tt}function rj($,_e){return _e=qj({mode:"visible",children:_e},$.mode,0,null),_e.return=$,$.child=_e}function tj($,_e,et,tt){return tt!==null&&Jg(tt),Bh(_e,$.child,null,et),$=rj(_e,_e.pendingProps.children),$.flags|=2,_e.memoizedState=null,$}function sj($,_e,et,tt,nt,rt,ot){if(et)return _e.flags&256?(_e.flags&=-257,tt=Li(Error(p$3(422))),tj($,_e,ot,tt)):_e.memoizedState!==null?(_e.child=$.child,_e.flags|=128,null):(rt=tt.fallback,nt=_e.mode,tt=qj({mode:"visible",children:tt.children},nt,0,null),rt=Ah(rt,nt,ot,null),rt.flags|=2,tt.return=_e,rt.return=_e,tt.sibling=rt,_e.child=tt,_e.mode&1&&Bh(_e,$.child,null,ot),_e.child.memoizedState=oj(ot),_e.memoizedState=nj,rt);if(!(_e.mode&1))return tj($,_e,ot,null);if(nt.data==="$!"){if(tt=nt.nextSibling&&nt.nextSibling.dataset,tt)var it=tt.dgst;return tt=it,rt=Error(p$3(419)),tt=Li(rt,tt,void 0),tj($,_e,ot,tt)}if(it=(ot&$.childLanes)!==0,Ug||it){if(tt=R,tt!==null){switch(ot&-ot){case 4:nt=2;break;case 16:nt=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:nt=32;break;case 536870912:nt=268435456;break;default:nt=0}nt=nt&(tt.suspendedLanes|ot)?0:nt,nt!==0&&nt!==rt.retryLane&&(rt.retryLane=nt,Zg($,nt),mh(tt,$,nt,-1))}return uj(),tt=Li(Error(p$3(421))),tj($,_e,ot,tt)}return nt.data==="$?"?(_e.flags|=128,_e.child=$.child,_e=vj.bind(null,$),nt._reactRetry=_e,null):($=rt.treeContext,yg=Lf(nt.nextSibling),xg=_e,I=!0,zg=null,$!==null&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=$.id,sg=$.overflow,qg=_e),_e=rj(_e,tt.children),_e.flags|=4096,_e)}function wj($,_e,et){$.lanes|=_e;var tt=$.alternate;tt!==null&&(tt.lanes|=_e),Sg($.return,_e,et)}function xj($,_e,et,tt,nt){var rt=$.memoizedState;rt===null?$.memoizedState={isBackwards:_e,rendering:null,renderingStartTime:0,last:tt,tail:et,tailMode:nt}:(rt.isBackwards=_e,rt.rendering=null,rt.renderingStartTime=0,rt.last=tt,rt.tail=et,rt.tailMode=nt)}function yj($,_e,et){var tt=_e.pendingProps,nt=tt.revealOrder,rt=tt.tail;if(Yi($,_e,tt.children,et),tt=M.current,tt&2)tt=tt&1|2,_e.flags|=128;else{if($!==null&&$.flags&128)e:for($=_e.child;$!==null;){if($.tag===13)$.memoizedState!==null&&wj($,et,_e);else if($.tag===19)wj($,et,_e);else if($.child!==null){$.child.return=$,$=$.child;continue}if($===_e)break e;for(;$.sibling===null;){if($.return===null||$.return===_e)break e;$=$.return}$.sibling.return=$.return,$=$.sibling}tt&=1}if(G(M,tt),!(_e.mode&1))_e.memoizedState=null;else switch(nt){case"forwards":for(et=_e.child,nt=null;et!==null;)$=et.alternate,$!==null&&Mh($)===null&&(nt=et),et=et.sibling;et=nt,et===null?(nt=_e.child,_e.child=null):(nt=et.sibling,et.sibling=null),xj(_e,!1,nt,et,rt);break;case"backwards":for(et=null,nt=_e.child,_e.child=null;nt!==null;){if($=nt.alternate,$!==null&&Mh($)===null){_e.child=nt;break}$=nt.sibling,nt.sibling=et,et=nt,nt=$}xj(_e,!0,et,null,rt);break;case"together":xj(_e,!1,null,null,void 0);break;default:_e.memoizedState=null}return _e.child}function jj($,_e){!(_e.mode&1)&&$!==null&&($.alternate=null,_e.alternate=null,_e.flags|=2)}function $i($,_e,et){if($!==null&&(_e.dependencies=$.dependencies),hh|=_e.lanes,!(et&_e.childLanes))return null;if($!==null&&_e.child!==$.child)throw Error(p$3(153));if(_e.child!==null){for($=_e.child,et=wh($,$.pendingProps),_e.child=et,et.return=_e;$.sibling!==null;)$=$.sibling,et=et.sibling=wh($,$.pendingProps),et.return=_e;et.sibling=null}return _e.child}function zj($,_e,et){switch(_e.tag){case 3:lj(_e),Ig();break;case 5:Kh(_e);break;case 1:Zf(_e.type)&&cg(_e);break;case 4:Ih(_e,_e.stateNode.containerInfo);break;case 10:var tt=_e.type._context,nt=_e.memoizedProps.value;G(Mg,tt._currentValue),tt._currentValue=nt;break;case 13:if(tt=_e.memoizedState,tt!==null)return tt.dehydrated!==null?(G(M,M.current&1),_e.flags|=128,null):et&_e.child.childLanes?pj($,_e,et):(G(M,M.current&1),$=$i($,_e,et),$!==null?$.sibling:null);G(M,M.current&1);break;case 19:if(tt=(et&_e.childLanes)!==0,$.flags&128){if(tt)return yj($,_e,et);_e.flags|=128}if(nt=_e.memoizedState,nt!==null&&(nt.rendering=null,nt.tail=null,nt.lastEffect=null),G(M,M.current),tt)break;return null;case 22:case 23:return _e.lanes=0,ej($,_e,et)}return $i($,_e,et)}var Aj,Bj,Cj,Dj;Aj=function($,_e){for(var et=_e.child;et!==null;){if(et.tag===5||et.tag===6)$.appendChild(et.stateNode);else if(et.tag!==4&&et.child!==null){et.child.return=et,et=et.child;continue}if(et===_e)break;for(;et.sibling===null;){if(et.return===null||et.return===_e)return;et=et.return}et.sibling.return=et.return,et=et.sibling}};Bj=function(){};Cj=function($,_e,et,tt){var nt=$.memoizedProps;if(nt!==tt){$=_e.stateNode,Hh(Eh.current);var rt=null;switch(et){case"input":nt=Ya($,nt),tt=Ya($,tt),rt=[];break;case"select":nt=A({},nt,{value:void 0}),tt=A({},tt,{value:void 0}),rt=[];break;case"textarea":nt=gb($,nt),tt=gb($,tt),rt=[];break;default:typeof nt.onClick!="function"&&typeof tt.onClick=="function"&&($.onclick=Bf)}ub(et,tt);var ot;et=null;for(lt in nt)if(!tt.hasOwnProperty(lt)&&nt.hasOwnProperty(lt)&&nt[lt]!=null)if(lt==="style"){var it=nt[lt];for(ot in it)it.hasOwnProperty(ot)&&(et||(et={}),et[ot]="")}else lt!=="dangerouslySetInnerHTML"&<!=="children"&<!=="suppressContentEditableWarning"&<!=="suppressHydrationWarning"&<!=="autoFocus"&&(ea.hasOwnProperty(lt)?rt||(rt=[]):(rt=rt||[]).push(lt,null));for(lt in tt){var st=tt[lt];if(it=nt!=null?nt[lt]:void 0,tt.hasOwnProperty(lt)&&st!==it&&(st!=null||it!=null))if(lt==="style")if(it){for(ot in it)!it.hasOwnProperty(ot)||st&&st.hasOwnProperty(ot)||(et||(et={}),et[ot]="");for(ot in st)st.hasOwnProperty(ot)&&it[ot]!==st[ot]&&(et||(et={}),et[ot]=st[ot])}else et||(rt||(rt=[]),rt.push(lt,et)),et=st;else lt==="dangerouslySetInnerHTML"?(st=st?st.__html:void 0,it=it?it.__html:void 0,st!=null&&it!==st&&(rt=rt||[]).push(lt,st)):lt==="children"?typeof st!="string"&&typeof st!="number"||(rt=rt||[]).push(lt,""+st):lt!=="suppressContentEditableWarning"&<!=="suppressHydrationWarning"&&(ea.hasOwnProperty(lt)?(st!=null&<==="onScroll"&&D("scroll",$),rt||it===st||(rt=[])):(rt=rt||[]).push(lt,st))}et&&(rt=rt||[]).push("style",et);var lt=rt;(_e.updateQueue=lt)&&(_e.flags|=4)}};Dj=function($,_e,et,tt){et!==tt&&(_e.flags|=4)};function Ej($,_e){if(!I)switch($.tailMode){case"hidden":_e=$.tail;for(var et=null;_e!==null;)_e.alternate!==null&&(et=_e),_e=_e.sibling;et===null?$.tail=null:et.sibling=null;break;case"collapsed":et=$.tail;for(var tt=null;et!==null;)et.alternate!==null&&(tt=et),et=et.sibling;tt===null?_e||$.tail===null?$.tail=null:$.tail.sibling=null:tt.sibling=null}}function S($){var _e=$.alternate!==null&&$.alternate.child===$.child,et=0,tt=0;if(_e)for(var nt=$.child;nt!==null;)et|=nt.lanes|nt.childLanes,tt|=nt.subtreeFlags&14680064,tt|=nt.flags&14680064,nt.return=$,nt=nt.sibling;else for(nt=$.child;nt!==null;)et|=nt.lanes|nt.childLanes,tt|=nt.subtreeFlags,tt|=nt.flags,nt.return=$,nt=nt.sibling;return $.subtreeFlags|=tt,$.childLanes=et,_e}function Fj($,_e,et){var tt=_e.pendingProps;switch(wg(_e),_e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S(_e),null;case 1:return Zf(_e.type)&&$f(),S(_e),null;case 3:return tt=_e.stateNode,Jh(),E(Wf),E(H),Oh(),tt.pendingContext&&(tt.context=tt.pendingContext,tt.pendingContext=null),($===null||$.child===null)&&(Gg(_e)?_e.flags|=4:$===null||$.memoizedState.isDehydrated&&!(_e.flags&256)||(_e.flags|=1024,zg!==null&&(Gj(zg),zg=null))),Bj($,_e),S(_e),null;case 5:Lh(_e);var nt=Hh(Gh.current);if(et=_e.type,$!==null&&_e.stateNode!=null)Cj($,_e,et,tt,nt),$.ref!==_e.ref&&(_e.flags|=512,_e.flags|=2097152);else{if(!tt){if(_e.stateNode===null)throw Error(p$3(166));return S(_e),null}if($=Hh(Eh.current),Gg(_e)){tt=_e.stateNode,et=_e.type;var rt=_e.memoizedProps;switch(tt[Of]=_e,tt[Pf]=rt,$=(_e.mode&1)!==0,et){case"dialog":D("cancel",tt),D("close",tt);break;case"iframe":case"object":case"embed":D("load",tt);break;case"video":case"audio":for(nt=0;nt<\/script>",$=$.removeChild($.firstChild)):typeof tt.is=="string"?$=ot.createElement(et,{is:tt.is}):($=ot.createElement(et),et==="select"&&(ot=$,tt.multiple?ot.multiple=!0:tt.size&&(ot.size=tt.size))):$=ot.createElementNS($,et),$[Of]=_e,$[Pf]=tt,Aj($,_e,!1,!1),_e.stateNode=$;e:{switch(ot=vb(et,tt),et){case"dialog":D("cancel",$),D("close",$),nt=tt;break;case"iframe":case"object":case"embed":D("load",$),nt=tt;break;case"video":case"audio":for(nt=0;ntHj&&(_e.flags|=128,tt=!0,Ej(rt,!1),_e.lanes=4194304)}else{if(!tt)if($=Mh(ot),$!==null){if(_e.flags|=128,tt=!0,et=$.updateQueue,et!==null&&(_e.updateQueue=et,_e.flags|=4),Ej(rt,!0),rt.tail===null&&rt.tailMode==="hidden"&&!ot.alternate&&!I)return S(_e),null}else 2*B()-rt.renderingStartTime>Hj&&et!==1073741824&&(_e.flags|=128,tt=!0,Ej(rt,!1),_e.lanes=4194304);rt.isBackwards?(ot.sibling=_e.child,_e.child=ot):(et=rt.last,et!==null?et.sibling=ot:_e.child=ot,rt.last=ot)}return rt.tail!==null?(_e=rt.tail,rt.rendering=_e,rt.tail=_e.sibling,rt.renderingStartTime=B(),_e.sibling=null,et=M.current,G(M,tt?et&1|2:et&1),_e):(S(_e),null);case 22:case 23:return Ij(),tt=_e.memoizedState!==null,$!==null&&$.memoizedState!==null!==tt&&(_e.flags|=8192),tt&&_e.mode&1?gj&1073741824&&(S(_e),_e.subtreeFlags&6&&(_e.flags|=8192)):S(_e),null;case 24:return null;case 25:return null}throw Error(p$3(156,_e.tag))}function Jj($,_e){switch(wg(_e),_e.tag){case 1:return Zf(_e.type)&&$f(),$=_e.flags,$&65536?(_e.flags=$&-65537|128,_e):null;case 3:return Jh(),E(Wf),E(H),Oh(),$=_e.flags,$&65536&&!($&128)?(_e.flags=$&-65537|128,_e):null;case 5:return Lh(_e),null;case 13:if(E(M),$=_e.memoizedState,$!==null&&$.dehydrated!==null){if(_e.alternate===null)throw Error(p$3(340));Ig()}return $=_e.flags,$&65536?(_e.flags=$&-65537|128,_e):null;case 19:return E(M),null;case 4:return Jh(),null;case 10:return Rg(_e.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V=null;function Mj($,_e){var et=$.ref;if(et!==null)if(typeof et=="function")try{et(null)}catch(tt){W($,_e,tt)}else et.current=null}function Nj($,_e,et){try{et()}catch(tt){W($,_e,tt)}}var Oj=!1;function Pj($,_e){if(Cf=dd,$=Me(),Ne($)){if("selectionStart"in $)var et={start:$.selectionStart,end:$.selectionEnd};else e:{et=(et=$.ownerDocument)&&et.defaultView||window;var tt=et.getSelection&&et.getSelection();if(tt&&tt.rangeCount!==0){et=tt.anchorNode;var nt=tt.anchorOffset,rt=tt.focusNode;tt=tt.focusOffset;try{et.nodeType,rt.nodeType}catch{et=null;break e}var ot=0,it=-1,st=-1,lt=0,ct=0,ft=$,dt=null;t:for(;;){for(var pt;ft!==et||nt!==0&&ft.nodeType!==3||(it=ot+nt),ft!==rt||tt!==0&&ft.nodeType!==3||(st=ot+tt),ft.nodeType===3&&(ot+=ft.nodeValue.length),(pt=ft.firstChild)!==null;)dt=ft,ft=pt;for(;;){if(ft===$)break t;if(dt===et&&++lt===nt&&(it=ot),dt===rt&&++ct===tt&&(st=ot),(pt=ft.nextSibling)!==null)break;ft=dt,dt=ft.parentNode}ft=pt}et=it===-1||st===-1?null:{start:it,end:st}}else et=null}et=et||{start:0,end:0}}else et=null;for(Df={focusedElem:$,selectionRange:et},dd=!1,V=_e;V!==null;)if(_e=V,$=_e.child,(_e.subtreeFlags&1028)!==0&&$!==null)$.return=_e,V=$;else for(;V!==null;){_e=V;try{var ht=_e.alternate;if(_e.flags&1024)switch(_e.tag){case 0:case 11:case 15:break;case 1:if(ht!==null){var gt=ht.memoizedProps,yt=ht.memoizedState,vt=_e.stateNode,Et=vt.getSnapshotBeforeUpdate(_e.elementType===_e.type?gt:Lg(_e.type,gt),yt);vt.__reactInternalSnapshotBeforeUpdate=Et}break;case 3:var Tt=_e.stateNode.containerInfo;Tt.nodeType===1?Tt.textContent="":Tt.nodeType===9&&Tt.documentElement&&Tt.removeChild(Tt.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$3(163))}}catch(Ot){W(_e,_e.return,Ot)}if($=_e.sibling,$!==null){$.return=_e.return,V=$;break}V=_e.return}return ht=Oj,Oj=!1,ht}function Qj($,_e,et){var tt=_e.updateQueue;if(tt=tt!==null?tt.lastEffect:null,tt!==null){var nt=tt=tt.next;do{if((nt.tag&$)===$){var rt=nt.destroy;nt.destroy=void 0,rt!==void 0&&Nj(_e,et,rt)}nt=nt.next}while(nt!==tt)}}function Rj($,_e){if(_e=_e.updateQueue,_e=_e!==null?_e.lastEffect:null,_e!==null){var et=_e=_e.next;do{if((et.tag&$)===$){var tt=et.create;et.destroy=tt()}et=et.next}while(et!==_e)}}function Sj($){var _e=$.ref;if(_e!==null){var et=$.stateNode;switch($.tag){case 5:$=et;break;default:$=et}typeof _e=="function"?_e($):_e.current=$}}function Tj($){var _e=$.alternate;_e!==null&&($.alternate=null,Tj(_e)),$.child=null,$.deletions=null,$.sibling=null,$.tag===5&&(_e=$.stateNode,_e!==null&&(delete _e[Of],delete _e[Pf],delete _e[of],delete _e[Qf],delete _e[Rf])),$.stateNode=null,$.return=null,$.dependencies=null,$.memoizedProps=null,$.memoizedState=null,$.pendingProps=null,$.stateNode=null,$.updateQueue=null}function Uj($){return $.tag===5||$.tag===3||$.tag===4}function Vj($){e:for(;;){for(;$.sibling===null;){if($.return===null||Uj($.return))return null;$=$.return}for($.sibling.return=$.return,$=$.sibling;$.tag!==5&&$.tag!==6&&$.tag!==18;){if($.flags&2||$.child===null||$.tag===4)continue e;$.child.return=$,$=$.child}if(!($.flags&2))return $.stateNode}}function Wj($,_e,et){var tt=$.tag;if(tt===5||tt===6)$=$.stateNode,_e?et.nodeType===8?et.parentNode.insertBefore($,_e):et.insertBefore($,_e):(et.nodeType===8?(_e=et.parentNode,_e.insertBefore($,et)):(_e=et,_e.appendChild($)),et=et._reactRootContainer,et!=null||_e.onclick!==null||(_e.onclick=Bf));else if(tt!==4&&($=$.child,$!==null))for(Wj($,_e,et),$=$.sibling;$!==null;)Wj($,_e,et),$=$.sibling}function Xj($,_e,et){var tt=$.tag;if(tt===5||tt===6)$=$.stateNode,_e?et.insertBefore($,_e):et.appendChild($);else if(tt!==4&&($=$.child,$!==null))for(Xj($,_e,et),$=$.sibling;$!==null;)Xj($,_e,et),$=$.sibling}var X=null,Yj=!1;function Zj($,_e,et){for(et=et.child;et!==null;)ak($,_e,et),et=et.sibling}function ak($,_e,et){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,et)}catch{}switch(et.tag){case 5:U||Mj(et,_e);case 6:var tt=X,nt=Yj;X=null,Zj($,_e,et),X=tt,Yj=nt,X!==null&&(Yj?($=X,et=et.stateNode,$.nodeType===8?$.parentNode.removeChild(et):$.removeChild(et)):X.removeChild(et.stateNode));break;case 18:X!==null&&(Yj?($=X,et=et.stateNode,$.nodeType===8?Kf($.parentNode,et):$.nodeType===1&&Kf($,et),bd($)):Kf(X,et.stateNode));break;case 4:tt=X,nt=Yj,X=et.stateNode.containerInfo,Yj=!0,Zj($,_e,et),X=tt,Yj=nt;break;case 0:case 11:case 14:case 15:if(!U&&(tt=et.updateQueue,tt!==null&&(tt=tt.lastEffect,tt!==null))){nt=tt=tt.next;do{var rt=nt,ot=rt.destroy;rt=rt.tag,ot!==void 0&&(rt&2||rt&4)&&Nj(et,_e,ot),nt=nt.next}while(nt!==tt)}Zj($,_e,et);break;case 1:if(!U&&(Mj(et,_e),tt=et.stateNode,typeof tt.componentWillUnmount=="function"))try{tt.props=et.memoizedProps,tt.state=et.memoizedState,tt.componentWillUnmount()}catch(it){W(et,_e,it)}Zj($,_e,et);break;case 21:Zj($,_e,et);break;case 22:et.mode&1?(U=(tt=U)||et.memoizedState!==null,Zj($,_e,et),U=tt):Zj($,_e,et);break;default:Zj($,_e,et)}}function bk($){var _e=$.updateQueue;if(_e!==null){$.updateQueue=null;var et=$.stateNode;et===null&&(et=$.stateNode=new Lj),_e.forEach(function(tt){var nt=ck.bind(null,$,tt);et.has(tt)||(et.add(tt),tt.then(nt,nt))})}}function dk($,_e){var et=_e.deletions;if(et!==null)for(var tt=0;ttnt&&(nt=ot),tt&=~rt}if(tt=nt,tt=B()-tt,tt=(120>tt?120:480>tt?480:1080>tt?1080:1920>tt?1920:3e3>tt?3e3:4320>tt?4320:1960*mk(tt/1960))-tt,10$?16:$,xk===null)var tt=!1;else{if($=xk,xk=null,yk=0,K&6)throw Error(p$3(331));var nt=K;for(K|=4,V=$.current;V!==null;){var rt=V,ot=rt.child;if(V.flags&16){var it=rt.deletions;if(it!==null){for(var st=0;stB()-gk?Lk($,0):sk|=et),Ek($,_e)}function Zk($,_e){_e===0&&($.mode&1?(_e=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):_e=1);var et=L();$=Zg($,_e),$!==null&&(Ac($,_e,et),Ek($,et))}function vj($){var _e=$.memoizedState,et=0;_e!==null&&(et=_e.retryLane),Zk($,et)}function ck($,_e){var et=0;switch($.tag){case 13:var tt=$.stateNode,nt=$.memoizedState;nt!==null&&(et=nt.retryLane);break;case 19:tt=$.stateNode;break;default:throw Error(p$3(314))}tt!==null&&tt.delete(_e),Zk($,et)}var Wk;Wk=function($,_e,et){if($!==null)if($.memoizedProps!==_e.pendingProps||Wf.current)Ug=!0;else{if(!($.lanes&et)&&!(_e.flags&128))return Ug=!1,zj($,_e,et);Ug=!!($.flags&131072)}else Ug=!1,I&&_e.flags&1048576&&ug(_e,ng,_e.index);switch(_e.lanes=0,_e.tag){case 2:var tt=_e.type;jj($,_e),$=_e.pendingProps;var nt=Yf(_e,H.current);Tg(_e,et),nt=Xh(null,_e,tt,$,nt,et);var rt=bi();return _e.flags|=1,typeof nt=="object"&&nt!==null&&typeof nt.render=="function"&&nt.$$typeof===void 0?(_e.tag=1,_e.memoizedState=null,_e.updateQueue=null,Zf(tt)?(rt=!0,cg(_e)):rt=!1,_e.memoizedState=nt.state!==null&&nt.state!==void 0?nt.state:null,ah(_e),nt.updater=nh,_e.stateNode=nt,nt._reactInternals=_e,rh(_e,tt,$,et),_e=kj(null,_e,tt,!0,rt,et)):(_e.tag=0,I&&rt&&vg(_e),Yi(null,_e,nt,et),_e=_e.child),_e;case 16:tt=_e.elementType;e:{switch(jj($,_e),$=_e.pendingProps,nt=tt._init,tt=nt(tt._payload),_e.type=tt,nt=_e.tag=$k(tt),$=Lg(tt,$),nt){case 0:_e=dj(null,_e,tt,$,et);break e;case 1:_e=ij(null,_e,tt,$,et);break e;case 11:_e=Zi(null,_e,tt,$,et);break e;case 14:_e=aj(null,_e,tt,Lg(tt.type,$),et);break e}throw Error(p$3(306,tt,""))}return _e;case 0:return tt=_e.type,nt=_e.pendingProps,nt=_e.elementType===tt?nt:Lg(tt,nt),dj($,_e,tt,nt,et);case 1:return tt=_e.type,nt=_e.pendingProps,nt=_e.elementType===tt?nt:Lg(tt,nt),ij($,_e,tt,nt,et);case 3:e:{if(lj(_e),$===null)throw Error(p$3(387));tt=_e.pendingProps,rt=_e.memoizedState,nt=rt.element,bh($,_e),gh(_e,tt,null,et);var ot=_e.memoizedState;if(tt=ot.element,rt.isDehydrated)if(rt={element:tt,isDehydrated:!1,cache:ot.cache,pendingSuspenseBoundaries:ot.pendingSuspenseBoundaries,transitions:ot.transitions},_e.updateQueue.baseState=rt,_e.memoizedState=rt,_e.flags&256){nt=Ki(Error(p$3(423)),_e),_e=mj($,_e,tt,et,nt);break e}else if(tt!==nt){nt=Ki(Error(p$3(424)),_e),_e=mj($,_e,tt,et,nt);break e}else for(yg=Lf(_e.stateNode.containerInfo.firstChild),xg=_e,I=!0,zg=null,et=Ch(_e,null,tt,et),_e.child=et;et;)et.flags=et.flags&-3|4096,et=et.sibling;else{if(Ig(),tt===nt){_e=$i($,_e,et);break e}Yi($,_e,tt,et)}_e=_e.child}return _e;case 5:return Kh(_e),$===null&&Eg(_e),tt=_e.type,nt=_e.pendingProps,rt=$!==null?$.memoizedProps:null,ot=nt.children,Ef(tt,nt)?ot=null:rt!==null&&Ef(tt,rt)&&(_e.flags|=32),hj($,_e),Yi($,_e,ot,et),_e.child;case 6:return $===null&&Eg(_e),null;case 13:return pj($,_e,et);case 4:return Ih(_e,_e.stateNode.containerInfo),tt=_e.pendingProps,$===null?_e.child=Bh(_e,null,tt,et):Yi($,_e,tt,et),_e.child;case 11:return tt=_e.type,nt=_e.pendingProps,nt=_e.elementType===tt?nt:Lg(tt,nt),Zi($,_e,tt,nt,et);case 7:return Yi($,_e,_e.pendingProps,et),_e.child;case 8:return Yi($,_e,_e.pendingProps.children,et),_e.child;case 12:return Yi($,_e,_e.pendingProps.children,et),_e.child;case 10:e:{if(tt=_e.type._context,nt=_e.pendingProps,rt=_e.memoizedProps,ot=nt.value,G(Mg,tt._currentValue),tt._currentValue=ot,rt!==null)if(He(rt.value,ot)){if(rt.children===nt.children&&!Wf.current){_e=$i($,_e,et);break e}}else for(rt=_e.child,rt!==null&&(rt.return=_e);rt!==null;){var it=rt.dependencies;if(it!==null){ot=rt.child;for(var st=it.firstContext;st!==null;){if(st.context===tt){if(rt.tag===1){st=ch(-1,et&-et),st.tag=2;var lt=rt.updateQueue;if(lt!==null){lt=lt.shared;var ct=lt.pending;ct===null?st.next=st:(st.next=ct.next,ct.next=st),lt.pending=st}}rt.lanes|=et,st=rt.alternate,st!==null&&(st.lanes|=et),Sg(rt.return,et,_e),it.lanes|=et;break}st=st.next}}else if(rt.tag===10)ot=rt.type===_e.type?null:rt.child;else if(rt.tag===18){if(ot=rt.return,ot===null)throw Error(p$3(341));ot.lanes|=et,it=ot.alternate,it!==null&&(it.lanes|=et),Sg(ot,et,_e),ot=rt.sibling}else ot=rt.child;if(ot!==null)ot.return=rt;else for(ot=rt;ot!==null;){if(ot===_e){ot=null;break}if(rt=ot.sibling,rt!==null){rt.return=ot.return,ot=rt;break}ot=ot.return}rt=ot}Yi($,_e,nt.children,et),_e=_e.child}return _e;case 9:return nt=_e.type,tt=_e.pendingProps.children,Tg(_e,et),nt=Vg(nt),tt=tt(nt),_e.flags|=1,Yi($,_e,tt,et),_e.child;case 14:return tt=_e.type,nt=Lg(tt,_e.pendingProps),nt=Lg(tt.type,nt),aj($,_e,tt,nt,et);case 15:return cj($,_e,_e.type,_e.pendingProps,et);case 17:return tt=_e.type,nt=_e.pendingProps,nt=_e.elementType===tt?nt:Lg(tt,nt),jj($,_e),_e.tag=1,Zf(tt)?($=!0,cg(_e)):$=!1,Tg(_e,et),ph(_e,tt,nt),rh(_e,tt,nt,et),kj(null,_e,tt,!0,$,et);case 19:return yj($,_e,et);case 22:return ej($,_e,et)}throw Error(p$3(156,_e.tag))};function Gk($,_e){return ac($,_e)}function al($,_e,et,tt){this.tag=$,this.key=et,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=_e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=tt,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg($,_e,et,tt){return new al($,_e,et,tt)}function bj($){return $=$.prototype,!(!$||!$.isReactComponent)}function $k($){if(typeof $=="function")return bj($)?1:0;if($!=null){if($=$.$$typeof,$===Da)return 11;if($===Ga)return 14}return 2}function wh($,_e){var et=$.alternate;return et===null?(et=Bg($.tag,_e,$.key,$.mode),et.elementType=$.elementType,et.type=$.type,et.stateNode=$.stateNode,et.alternate=$,$.alternate=et):(et.pendingProps=_e,et.type=$.type,et.flags=0,et.subtreeFlags=0,et.deletions=null),et.flags=$.flags&14680064,et.childLanes=$.childLanes,et.lanes=$.lanes,et.child=$.child,et.memoizedProps=$.memoizedProps,et.memoizedState=$.memoizedState,et.updateQueue=$.updateQueue,_e=$.dependencies,et.dependencies=_e===null?null:{lanes:_e.lanes,firstContext:_e.firstContext},et.sibling=$.sibling,et.index=$.index,et.ref=$.ref,et}function yh($,_e,et,tt,nt,rt){var ot=2;if(tt=$,typeof $=="function")bj($)&&(ot=1);else if(typeof $=="string")ot=5;else e:switch($){case ya:return Ah(et.children,nt,rt,_e);case za:ot=8,nt|=8;break;case Aa:return $=Bg(12,et,_e,nt|2),$.elementType=Aa,$.lanes=rt,$;case Ea:return $=Bg(13,et,_e,nt),$.elementType=Ea,$.lanes=rt,$;case Fa:return $=Bg(19,et,_e,nt),$.elementType=Fa,$.lanes=rt,$;case Ia:return qj(et,nt,rt,_e);default:if(typeof $=="object"&&$!==null)switch($.$$typeof){case Ba:ot=10;break e;case Ca:ot=9;break e;case Da:ot=11;break e;case Ga:ot=14;break e;case Ha:ot=16,tt=null;break e}throw Error(p$3(130,$==null?$:typeof $,""))}return _e=Bg(ot,et,_e,nt),_e.elementType=$,_e.type=tt,_e.lanes=rt,_e}function Ah($,_e,et,tt){return $=Bg(7,$,tt,_e),$.lanes=et,$}function qj($,_e,et,tt){return $=Bg(22,$,tt,_e),$.elementType=Ia,$.lanes=et,$.stateNode={isHidden:!1},$}function xh($,_e,et){return $=Bg(6,$,null,_e),$.lanes=et,$}function zh($,_e,et){return _e=Bg(4,$.children!==null?$.children:[],$.key,_e),_e.lanes=et,_e.stateNode={containerInfo:$.containerInfo,pendingChildren:null,implementation:$.implementation},_e}function bl($,_e,et,tt,nt){this.tag=_e,this.containerInfo=$,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=tt,this.onRecoverableError=nt,this.mutableSourceEagerHydrationData=null}function cl($,_e,et,tt,nt,rt,ot,it,st){return $=new bl($,_e,et,it,st),_e===1?(_e=1,rt===!0&&(_e|=8)):_e=0,rt=Bg(3,null,null,_e),$.current=rt,rt.stateNode=$,rt.memoizedState={element:tt,isDehydrated:et,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(rt),$}function dl($,_e,et){var tt=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch($){console.error($)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs(reactDomExports);var m$1=reactDomExports;client$1.createRoot=m$1.createRoot,client$1.hydrateRoot=m$1.hydrateRoot;var jsx=function(_e,et){var tt=arguments;if(et==null||!hasOwnProperty$2.call(et,"css"))return reactExports.createElement.apply(void 0,tt);var nt=tt.length,rt=new Array(nt);rt[0]=Emotion$1,rt[1]=createEmotionProps(_e,et);for(var ot=2;otreactExports.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-mail",...$},reactExports.createElement("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),reactExports.createElement("polyline",{points:"11 16 18 16"}),reactExports.createElement("polyline",{points:"6 16 8 16"}),reactExports.createElement("polyline",{points:"6 12 13 12"}),reactExports.createElement("polyline",{points:"16 12 18 12"}));function formatProdErrorMessage$1($){return`Minified Redux error #${$}; visit https://redux.js.org/Errors?code=${$} for the full message or use the non-minified dev environment for full errors. `}var $$observable=typeof Symbol=="function"&&Symbol.observable||"@@observable",symbol_observable_default=$$observable,randomString$1=()=>Math.random().toString(36).substring(7).split("").join("."),ActionTypes={INIT:`@@redux/INIT${randomString$1()}`,REPLACE:`@@redux/REPLACE${randomString$1()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${randomString$1()}`},actionTypes_default=ActionTypes;function isPlainObject$2($){if(typeof $!="object"||$===null)return!1;let _e=$;for(;Object.getPrototypeOf(_e)!==null;)_e=Object.getPrototypeOf(_e);return Object.getPrototypeOf($)===_e||Object.getPrototypeOf($)===null}function createStore($,_e,et){if(typeof $!="function")throw new Error(formatProdErrorMessage$1(2));if(typeof _e=="function"&&typeof et=="function"||typeof et=="function"&&typeof arguments[3]=="function")throw new Error(formatProdErrorMessage$1(0));if(typeof _e=="function"&&typeof et>"u"&&(et=_e,_e=void 0),typeof et<"u"){if(typeof et!="function")throw new Error(formatProdErrorMessage$1(1));return et(createStore)($,_e)}let tt=$,nt=_e,rt=new Map,ot=rt,it=0,st=!1;function lt(){ot===rt&&(ot=new Map,rt.forEach((yt,vt)=>{ot.set(vt,yt)}))}function ct(){if(st)throw new Error(formatProdErrorMessage$1(3));return nt}function ft(yt){if(typeof yt!="function")throw new Error(formatProdErrorMessage$1(4));if(st)throw new Error(formatProdErrorMessage$1(5));let vt=!0;lt();const Et=it++;return ot.set(Et,yt),function(){if(vt){if(st)throw new Error(formatProdErrorMessage$1(6));vt=!1,lt(),ot.delete(Et),rt=null}}}function dt(yt){if(!isPlainObject$2(yt))throw new Error(formatProdErrorMessage$1(7));if(typeof yt.type>"u")throw new Error(formatProdErrorMessage$1(8));if(typeof yt.type!="string")throw new Error(formatProdErrorMessage$1(17));if(st)throw new Error(formatProdErrorMessage$1(9));try{st=!0,nt=tt(nt,yt)}finally{st=!1}return(rt=ot).forEach(Et=>{Et()}),yt}function pt(yt){if(typeof yt!="function")throw new Error(formatProdErrorMessage$1(10));tt=yt,dt({type:actionTypes_default.REPLACE})}function ht(){const yt=ft;return{subscribe(vt){if(typeof vt!="object"||vt===null)throw new Error(formatProdErrorMessage$1(11));function Et(){const Ot=vt;Ot.next&&Ot.next(ct())}return Et(),{unsubscribe:yt(Et)}},[symbol_observable_default](){return this}}}return dt({type:actionTypes_default.INIT}),{dispatch:dt,subscribe:ft,getState:ct,replaceReducer:pt,[symbol_observable_default]:ht}}function assertReducerShape($){Object.keys($).forEach(_e=>{const et=$[_e];if(typeof et(void 0,{type:actionTypes_default.INIT})>"u")throw new Error(formatProdErrorMessage$1(12));if(typeof et(void 0,{type:actionTypes_default.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(formatProdErrorMessage$1(13))})}function combineReducers($){const _e=Object.keys($),et={};for(let rt=0;rt<_e.length;rt++){const ot=_e[rt];typeof $[ot]=="function"&&(et[ot]=$[ot])}const tt=Object.keys(et);let nt;try{assertReducerShape(et)}catch(rt){nt=rt}return function(ot={},it){if(nt)throw nt;let st=!1;const lt={};for(let ct=0;ct"u")throw it&&it.type,new Error(formatProdErrorMessage$1(14));lt[ft]=ht,st=st||ht!==pt}return st=st||tt.length!==Object.keys(ot).length,st?lt:ot}}function compose$1(...$){return $.length===0?_e=>_e:$.length===1?$[0]:$.reduce((_e,et)=>(...tt)=>_e(et(...tt)))}function applyMiddleware(...$){return _e=>(et,tt)=>{const nt=_e(et,tt);let rt=()=>{throw new Error(formatProdErrorMessage$1(15))};const ot={getState:nt.getState,dispatch:(st,...lt)=>rt(st,...lt)},it=$.map(st=>st(ot));return rt=compose$1(...it)(nt.dispatch),{...nt,dispatch:rt}}}function isAction($){return isPlainObject$2($)&&"type"in $&&typeof $.type=="string"}var NOTHING=Symbol.for("immer-nothing"),DRAFTABLE=Symbol.for("immer-draftable"),DRAFT_STATE=Symbol.for("immer-state");function die($,..._e){throw new Error(`[Immer] minified error nr: ${$}. Full error at: https://bit.ly/3cXEKWf`)}var getPrototypeOf=Object.getPrototypeOf;function isDraft($){return!!$&&!!$[DRAFT_STATE]}function isDraftable($){var _e;return $?isPlainObject$1($)||Array.isArray($)||!!$[DRAFTABLE]||!!((_e=$.constructor)!=null&&_e[DRAFTABLE])||isMap($)||isSet($):!1}var objectCtorString=Object.prototype.constructor.toString();function isPlainObject$1($){if(!$||typeof $!="object")return!1;const _e=getPrototypeOf($);if(_e===null)return!0;const et=Object.hasOwnProperty.call(_e,"constructor")&&_e.constructor;return et===Object?!0:typeof et=="function"&&Function.toString.call(et)===objectCtorString}function each$2($,_e){getArchtype($)===0?Object.entries($).forEach(([et,tt])=>{_e(et,tt,$)}):$.forEach((et,tt)=>_e(tt,et,$))}function getArchtype($){const _e=$[DRAFT_STATE];return _e?_e.type_:Array.isArray($)?1:isMap($)?2:isSet($)?3:0}function has($,_e){return getArchtype($)===2?$.has(_e):Object.prototype.hasOwnProperty.call($,_e)}function set($,_e,et){const tt=getArchtype($);tt===2?$.set(_e,et):tt===3?$.add(et):$[_e]=et}function is$1($,_e){return $===_e?$!==0||1/$===1/_e:$!==$&&_e!==_e}function isMap($){return $ instanceof Map}function isSet($){return $ instanceof Set}function latest($){return $.copy_||$.base_}function shallowCopy($,_e){if(isMap($))return new Map($);if(isSet($))return new Set($);if(Array.isArray($))return Array.prototype.slice.call($);if(!_e&&isPlainObject$1($))return getPrototypeOf($)?{...$}:Object.assign(Object.create(null),$);const et=Object.getOwnPropertyDescriptors($);delete et[DRAFT_STATE];let tt=Reflect.ownKeys(et);for(let nt=0;nt1&&($.set=$.add=$.clear=$.delete=dontMutateFrozenCollections),Object.freeze($),_e&&each$2($,(et,tt)=>freeze(tt,!0))),$}function dontMutateFrozenCollections(){die(2)}function isFrozen($){return Object.isFrozen($)}var plugins={};function getPlugin($){const _e=plugins[$];return _e||die(0,$),_e}var currentScope;function getCurrentScope(){return currentScope}function createScope($,_e){return{drafts_:[],parent_:$,immer_:_e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function usePatchesInScope($,_e){_e&&(getPlugin("Patches"),$.patches_=[],$.inversePatches_=[],$.patchListener_=_e)}function revokeScope($){leaveScope($),$.drafts_.forEach(revokeDraft),$.drafts_=null}function leaveScope($){$===currentScope&&(currentScope=$.parent_)}function enterScope($){return currentScope=createScope(currentScope,$)}function revokeDraft($){const _e=$[DRAFT_STATE];_e.type_===0||_e.type_===1?_e.revoke_():_e.revoked_=!0}function processResult($,_e){_e.unfinalizedDrafts_=_e.drafts_.length;const et=_e.drafts_[0];return $!==void 0&&$!==et?(et[DRAFT_STATE].modified_&&(revokeScope(_e),die(4)),isDraftable($)&&($=finalize(_e,$),_e.parent_||maybeFreeze(_e,$)),_e.patches_&&getPlugin("Patches").generateReplacementPatches_(et[DRAFT_STATE].base_,$,_e.patches_,_e.inversePatches_)):$=finalize(_e,et,[]),revokeScope(_e),_e.patches_&&_e.patchListener_(_e.patches_,_e.inversePatches_),$!==NOTHING?$:void 0}function finalize($,_e,et){if(isFrozen(_e))return _e;const tt=_e[DRAFT_STATE];if(!tt)return each$2(_e,(nt,rt)=>finalizeProperty($,tt,_e,nt,rt,et)),_e;if(tt.scope_!==$)return _e;if(!tt.modified_)return maybeFreeze($,tt.base_,!0),tt.base_;if(!tt.finalized_){tt.finalized_=!0,tt.scope_.unfinalizedDrafts_--;const nt=tt.copy_;let rt=nt,ot=!1;tt.type_===3&&(rt=new Set(nt),nt.clear(),ot=!0),each$2(rt,(it,st)=>finalizeProperty($,tt,nt,it,st,et,ot)),maybeFreeze($,nt,!1),et&&$.patches_&&getPlugin("Patches").generatePatches_(tt,et,$.patches_,$.inversePatches_)}return tt.copy_}function finalizeProperty($,_e,et,tt,nt,rt,ot){if(isDraft(nt)){const it=rt&&_e&&_e.type_!==3&&!has(_e.assigned_,tt)?rt.concat(tt):void 0,st=finalize($,nt,it);if(set(et,tt,st),isDraft(st))$.canAutoFreeze_=!1;else return}else ot&&et.add(nt);if(isDraftable(nt)&&!isFrozen(nt)){if(!$.immer_.autoFreeze_&&$.unfinalizedDrafts_<1)return;finalize($,nt),(!_e||!_e.scope_.parent_)&&maybeFreeze($,nt)}}function maybeFreeze($,_e,et=!1){!$.parent_&&$.immer_.autoFreeze_&&$.canAutoFreeze_&&freeze(_e,et)}function createProxyProxy($,_e){const et=Array.isArray($),tt={type_:et?1:0,scope_:_e?_e.scope_:getCurrentScope(),modified_:!1,finalized_:!1,assigned_:{},parent_:_e,base_:$,draft_:null,copy_:null,revoke_:null,isManual_:!1};let nt=tt,rt=objectTraps;et&&(nt=[tt],rt=arrayTraps);const{revoke:ot,proxy:it}=Proxy.revocable(nt,rt);return tt.draft_=it,tt.revoke_=ot,it}var objectTraps={get($,_e){if(_e===DRAFT_STATE)return $;const et=latest($);if(!has(et,_e))return readPropFromProto($,et,_e);const tt=et[_e];return $.finalized_||!isDraftable(tt)?tt:tt===peek($.base_,_e)?(prepareCopy($),$.copy_[_e]=createProxy(tt,$)):tt},has($,_e){return _e in latest($)},ownKeys($){return Reflect.ownKeys(latest($))},set($,_e,et){const tt=getDescriptorFromProto(latest($),_e);if(tt!=null&&tt.set)return tt.set.call($.draft_,et),!0;if(!$.modified_){const nt=peek(latest($),_e),rt=nt==null?void 0:nt[DRAFT_STATE];if(rt&&rt.base_===et)return $.copy_[_e]=et,$.assigned_[_e]=!1,!0;if(is$1(et,nt)&&(et!==void 0||has($.base_,_e)))return!0;prepareCopy($),markChanged($)}return $.copy_[_e]===et&&(et!==void 0||_e in $.copy_)||Number.isNaN(et)&&Number.isNaN($.copy_[_e])||($.copy_[_e]=et,$.assigned_[_e]=!0),!0},deleteProperty($,_e){return peek($.base_,_e)!==void 0||_e in $.base_?($.assigned_[_e]=!1,prepareCopy($),markChanged($)):delete $.assigned_[_e],$.copy_&&delete $.copy_[_e],!0},getOwnPropertyDescriptor($,_e){const et=latest($),tt=Reflect.getOwnPropertyDescriptor(et,_e);return tt&&{writable:!0,configurable:$.type_!==1||_e!=="length",enumerable:tt.enumerable,value:et[_e]}},defineProperty(){die(11)},getPrototypeOf($){return getPrototypeOf($.base_)},setPrototypeOf(){die(12)}},arrayTraps={};each$2(objectTraps,($,_e)=>{arrayTraps[$]=function(){return arguments[0]=arguments[0][0],_e.apply(this,arguments)}});arrayTraps.deleteProperty=function($,_e){return arrayTraps.set.call(this,$,_e,void 0)};arrayTraps.set=function($,_e,et){return objectTraps.set.call(this,$[0],_e,et,$[0])};function peek($,_e){const et=$[DRAFT_STATE];return(et?latest(et):$)[_e]}function readPropFromProto($,_e,et){var nt;const tt=getDescriptorFromProto(_e,et);return tt?"value"in tt?tt.value:(nt=tt.get)==null?void 0:nt.call($.draft_):void 0}function getDescriptorFromProto($,_e){if(!(_e in $))return;let et=getPrototypeOf($);for(;et;){const tt=Object.getOwnPropertyDescriptor(et,_e);if(tt)return tt;et=getPrototypeOf(et)}}function markChanged($){$.modified_||($.modified_=!0,$.parent_&&markChanged($.parent_))}function prepareCopy($){$.copy_||($.copy_=shallowCopy($.base_,$.scope_.immer_.useStrictShallowCopy_))}var Immer2=class{constructor($){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(_e,et,tt)=>{if(typeof _e=="function"&&typeof et!="function"){const rt=et;et=_e;const ot=this;return function(st=rt,...lt){return ot.produce(st,ct=>et.call(this,ct,...lt))}}typeof et!="function"&&die(6),tt!==void 0&&typeof tt!="function"&&die(7);let nt;if(isDraftable(_e)){const rt=enterScope(this),ot=createProxy(_e,void 0);let it=!0;try{nt=et(ot),it=!1}finally{it?revokeScope(rt):leaveScope(rt)}return usePatchesInScope(rt,tt),processResult(nt,rt)}else if(!_e||typeof _e!="object"){if(nt=et(_e),nt===void 0&&(nt=_e),nt===NOTHING&&(nt=void 0),this.autoFreeze_&&freeze(nt,!0),tt){const rt=[],ot=[];getPlugin("Patches").generateReplacementPatches_(_e,nt,rt,ot),tt(rt,ot)}return nt}else die(1,_e)},this.produceWithPatches=(_e,et)=>{if(typeof _e=="function")return(ot,...it)=>this.produceWithPatches(ot,st=>_e(st,...it));let tt,nt;return[this.produce(_e,et,(ot,it)=>{tt=ot,nt=it}),tt,nt]},typeof($==null?void 0:$.autoFreeze)=="boolean"&&this.setAutoFreeze($.autoFreeze),typeof($==null?void 0:$.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy($.useStrictShallowCopy)}createDraft($){isDraftable($)||die(8),isDraft($)&&($=current($));const _e=enterScope(this),et=createProxy($,void 0);return et[DRAFT_STATE].isManual_=!0,leaveScope(_e),et}finishDraft($,_e){const et=$&&$[DRAFT_STATE];(!et||!et.isManual_)&&die(9);const{scope_:tt}=et;return usePatchesInScope(tt,_e),processResult(void 0,tt)}setAutoFreeze($){this.autoFreeze_=$}setUseStrictShallowCopy($){this.useStrictShallowCopy_=$}applyPatches($,_e){let et;for(et=_e.length-1;et>=0;et--){const nt=_e[et];if(nt.path.length===0&&nt.op==="replace"){$=nt.value;break}}et>-1&&(_e=_e.slice(et+1));const tt=getPlugin("Patches").applyPatches_;return isDraft($)?tt($,_e):this.produce($,nt=>tt(nt,_e))}};function createProxy($,_e){const et=isMap($)?getPlugin("MapSet").proxyMap_($,_e):isSet($)?getPlugin("MapSet").proxySet_($,_e):createProxyProxy($,_e);return(_e?_e.scope_:getCurrentScope()).drafts_.push(et),et}function current($){return isDraft($)||die(10,$),currentImpl($)}function currentImpl($){if(!isDraftable($)||isFrozen($))return $;const _e=$[DRAFT_STATE];let et;if(_e){if(!_e.modified_)return _e.base_;_e.finalized_=!0,et=shallowCopy($,_e.scope_.immer_.useStrictShallowCopy_)}else et=shallowCopy($,!0);return each$2(et,(tt,nt)=>{set(et,tt,currentImpl(nt))}),_e&&(_e.finalized_=!1),et}var immer=new Immer2,produce=immer.produce;immer.produceWithPatches.bind(immer);immer.setAutoFreeze.bind(immer);immer.setUseStrictShallowCopy.bind(immer);immer.applyPatches.bind(immer);immer.createDraft.bind(immer);immer.finishDraft.bind(immer);function assertIsFunction($,_e=`expected a function, instead received ${typeof $}`){if(typeof $!="function")throw new TypeError(_e)}function assertIsObject($,_e=`expected an object, instead received ${typeof $}`){if(typeof $!="object")throw new TypeError(_e)}function assertIsArrayOfFunctions($,_e="expected all items to be functions, instead received the following types: "){if(!$.every(et=>typeof et=="function")){const et=$.map(tt=>typeof tt=="function"?`function ${tt.name||"unnamed"}()`:typeof tt).join(", ");throw new TypeError(`${_e}[${et}]`)}}var ensureIsArray=$=>Array.isArray($)?$:[$];function getDependencies($){const _e=Array.isArray($[0])?$[0]:$;return assertIsArrayOfFunctions(_e,"createSelector expects all input-selectors to be functions, but received the following types: "),_e}function collectInputSelectorResults($,_e){const et=[],{length:tt}=$;for(let nt=0;nt{et=createCacheNode(),ot.resetResultsCount()},ot.resultsCount=()=>rt,ot.resetResultsCount=()=>{rt=0},ot}function createSelectorCreator($,..._e){const et=typeof $=="function"?{memoize:$,memoizeOptions:_e}:$,tt=(...nt)=>{let rt=0,ot=0,it,st={},lt=nt.pop();typeof lt=="object"&&(st=lt,lt=nt.pop()),assertIsFunction(lt,`createSelector expects an output function after the inputs, but received: [${typeof lt}]`);const ct={...et,...st},{memoize:ft,memoizeOptions:dt=[],argsMemoize:pt=weakMapMemoize,argsMemoizeOptions:ht=[],devModeChecks:gt={}}=ct,yt=ensureIsArray(dt),vt=ensureIsArray(ht),Et=getDependencies(nt),Tt=ft(function(){return rt++,lt.apply(null,arguments)},...yt),Ot=pt(function(){ot++;const $t=collectInputSelectorResults(Et,arguments);return it=Tt.apply(null,$t),it},...vt);return Object.assign(Ot,{resultFunc:lt,memoizedResultFunc:Tt,dependencies:Et,dependencyRecomputations:()=>ot,resetDependencyRecomputations:()=>{ot=0},lastResult:()=>it,recomputations:()=>rt,resetRecomputations:()=>{rt=0},memoize:ft,argsMemoize:pt})};return Object.assign(tt,{withTypes:()=>tt}),tt}var createSelector=createSelectorCreator(weakMapMemoize),createStructuredSelector=Object.assign(($,_e=createSelector)=>{assertIsObject($,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof $}`);const et=Object.keys($),tt=et.map(rt=>$[rt]);return _e(tt,(...rt)=>rt.reduce((ot,it,st)=>(ot[et[st]]=it,ot),{}))},{withTypes:()=>createStructuredSelector});function createThunkMiddleware($){return({dispatch:et,getState:tt})=>nt=>rt=>typeof rt=="function"?rt(et,tt,$):nt(rt)}var thunk=createThunkMiddleware(),withExtraArgument=createThunkMiddleware,createDraftSafeSelectorCreator=(...$)=>{const _e=createSelectorCreator(...$);return(...et)=>{const tt=_e(...et),nt=(rt,...ot)=>tt(isDraft(rt)?current(rt):rt,...ot);return Object.assign(nt,tt),nt}};createDraftSafeSelectorCreator(weakMapMemoize);var composeWithDevTools=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?compose$1:compose$1.apply(null,arguments)},hasMatchFunction=$=>$&&typeof $.match=="function";function createAction($,_e){function et(...tt){if(_e){let nt=_e(...tt);if(!nt)throw new Error(formatProdErrorMessage(0));return{type:$,payload:nt.payload,..."meta"in nt&&{meta:nt.meta},..."error"in nt&&{error:nt.error}}}return{type:$,payload:tt[0]}}return et.toString=()=>`${$}`,et.type=$,et.match=tt=>isAction(tt)&&tt.type===$,et}var Tuple=class ws extends Array{constructor(..._e){super(..._e),Object.setPrototypeOf(this,ws.prototype)}static get[Symbol.species](){return ws}concat(..._e){return super.concat.apply(this,_e)}prepend(..._e){return _e.length===1&&Array.isArray(_e[0])?new ws(..._e[0].concat(this)):new ws(..._e.concat(this))}};function freezeDraftable($){return isDraftable($)?produce($,()=>{}):$}function emplace($,_e,et){if($.has(_e)){let nt=$.get(_e);return et.update&&(nt=et.update(nt,_e,$),$.set(_e,nt)),nt}if(!et.insert)throw new Error(formatProdErrorMessage(10));const tt=et.insert(_e,$);return $.set(_e,tt),tt}function isBoolean($){return typeof $=="boolean"}var buildGetDefaultMiddleware=()=>function(_e){const{thunk:et=!0,immutableCheck:tt=!0,serializableCheck:nt=!0,actionCreatorCheck:rt=!0}=_e??{};let ot=new Tuple;return et&&(isBoolean(et)?ot.push(thunk):ot.push(withExtraArgument(et.extraArgument))),ot},SHOULD_AUTOBATCH="RTK_autoBatch",createQueueWithTimer=$=>_e=>{setTimeout(_e,$)},rAF=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:createQueueWithTimer(10),autoBatchEnhancer=($={type:"raf"})=>_e=>(...et)=>{const tt=_e(...et);let nt=!0,rt=!1,ot=!1;const it=new Set,st=$.type==="tick"?queueMicrotask:$.type==="raf"?rAF:$.type==="callback"?$.queueNotification:createQueueWithTimer($.timeout),lt=()=>{ot=!1,rt&&(rt=!1,it.forEach(ct=>ct()))};return Object.assign({},tt,{subscribe(ct){const ft=()=>nt&&ct(),dt=tt.subscribe(ft);return it.add(ct),()=>{dt(),it.delete(ct)}},dispatch(ct){var ft;try{return nt=!((ft=ct==null?void 0:ct.meta)!=null&&ft[SHOULD_AUTOBATCH]),rt=!nt,rt&&(ot||(ot=!0,st(lt))),tt.dispatch(ct)}finally{nt=!0}}})},buildGetDefaultEnhancers=$=>function(et){const{autoBatch:tt=!0}=et??{};let nt=new Tuple($);return tt&&nt.push(autoBatchEnhancer(typeof tt=="object"?tt:void 0)),nt},IS_PRODUCTION=!0;function configureStore($){const _e=buildGetDefaultMiddleware(),{reducer:et=void 0,middleware:tt,devTools:nt=!0,preloadedState:rt=void 0,enhancers:ot=void 0}=$||{};let it;if(typeof et=="function")it=et;else if(isPlainObject$2(et))it=combineReducers(et);else throw new Error(formatProdErrorMessage(1));let st;typeof tt=="function"?st=tt(_e):st=_e();let lt=compose$1;nt&&(lt=composeWithDevTools({trace:!IS_PRODUCTION,...typeof nt=="object"&&nt}));const ct=applyMiddleware(...st),ft=buildGetDefaultEnhancers(ct);let dt=typeof ot=="function"?ot(ft):ft();const pt=lt(...dt);return createStore(it,rt,pt)}function executeReducerBuilderCallback($){const _e={},et=[];let tt;const nt={addCase(rt,ot){const it=typeof rt=="string"?rt:rt.type;if(!it)throw new Error(formatProdErrorMessage(28));if(it in _e)throw new Error(formatProdErrorMessage(29));return _e[it]=ot,nt},addMatcher(rt,ot){return et.push({matcher:rt,reducer:ot}),nt},addDefaultCase(rt){return tt=rt,nt}};return $(nt),[_e,et,tt]}function isStateFunction($){return typeof $=="function"}function createReducer($,_e){let[et,tt,nt]=executeReducerBuilderCallback(_e),rt;if(isStateFunction($))rt=()=>freezeDraftable($());else{const it=freezeDraftable($);rt=()=>it}function ot(it=rt(),st){let lt=[et[st.type],...tt.filter(({matcher:ct})=>ct(st)).map(({reducer:ct})=>ct)];return lt.filter(ct=>!!ct).length===0&&(lt=[nt]),lt.reduce((ct,ft)=>{if(ft)if(isDraft(ct)){const pt=ft(ct,st);return pt===void 0?ct:pt}else{if(isDraftable(ct))return produce(ct,dt=>ft(dt,st));{const dt=ft(ct,st);if(dt===void 0){if(ct===null)return ct;throw new Error(formatProdErrorMessage(9))}return dt}}return ct},it)}return ot.getInitialState=rt,ot}var urlAlphabet="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",nanoid=($=21)=>{let _e="",et=$;for(;et--;)_e+=urlAlphabet[Math.random()*64|0];return _e},matches=($,_e)=>hasMatchFunction($)?$.match(_e):$(_e);function isAnyOf(...$){return _e=>$.some(et=>matches(et,_e))}var commonProperties=["name","message","stack","code"],RejectWithValue=class{constructor($,_e){Bu(this,"_type");this.payload=$,this.meta=_e}},FulfillWithMeta=class{constructor($,_e){Bu(this,"_type");this.payload=$,this.meta=_e}},miniSerializeError=$=>{if(typeof $=="object"&&$!==null){const _e={};for(const et of commonProperties)typeof $[et]=="string"&&(_e[et]=$[et]);return _e}return{message:String($)}},createAsyncThunk=(()=>{function $(_e,et,tt){const nt=createAction(_e+"/fulfilled",(st,lt,ct,ft)=>({payload:st,meta:{...ft||{},arg:ct,requestId:lt,requestStatus:"fulfilled"}})),rt=createAction(_e+"/pending",(st,lt,ct)=>({payload:void 0,meta:{...ct||{},arg:lt,requestId:st,requestStatus:"pending"}})),ot=createAction(_e+"/rejected",(st,lt,ct,ft,dt)=>({payload:ft,error:(tt&&tt.serializeError||miniSerializeError)(st||"Rejected"),meta:{...dt||{},arg:ct,requestId:lt,rejectedWithValue:!!ft,requestStatus:"rejected",aborted:(st==null?void 0:st.name)==="AbortError",condition:(st==null?void 0:st.name)==="ConditionError"}}));function it(st){return(lt,ct,ft)=>{const dt=tt!=null&&tt.idGenerator?tt.idGenerator(st):nanoid(),pt=new AbortController;let ht;function gt(vt){ht=vt,pt.abort()}const yt=async function(){var Tt,Ot;let vt;try{let wt=(Tt=tt==null?void 0:tt.condition)==null?void 0:Tt.call(tt,st,{getState:ct,extra:ft});if(isThenable(wt)&&(wt=await wt),wt===!1||pt.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const $t=new Promise((xt,mt)=>pt.signal.addEventListener("abort",()=>mt({name:"AbortError",message:ht||"Aborted"})));lt(rt(dt,st,(Ot=tt==null?void 0:tt.getPendingMeta)==null?void 0:Ot.call(tt,{requestId:dt,arg:st},{getState:ct,extra:ft}))),vt=await Promise.race([$t,Promise.resolve(et(st,{dispatch:lt,getState:ct,extra:ft,requestId:dt,signal:pt.signal,abort:gt,rejectWithValue:(xt,mt)=>new RejectWithValue(xt,mt),fulfillWithValue:(xt,mt)=>new FulfillWithMeta(xt,mt)})).then(xt=>{if(xt instanceof RejectWithValue)throw xt;return xt instanceof FulfillWithMeta?nt(xt.payload,dt,st,xt.meta):nt(xt,dt,st)})])}catch(wt){vt=wt instanceof RejectWithValue?ot(null,dt,st,wt.payload,wt.meta):ot(wt,dt,st)}return tt&&!tt.dispatchConditionRejection&&ot.match(vt)&&vt.meta.condition||lt(vt),vt}();return Object.assign(yt,{abort:gt,requestId:dt,arg:st,unwrap(){return yt.then(unwrapResult)}})}}return Object.assign(it,{pending:rt,rejected:ot,fulfilled:nt,settled:isAnyOf(ot,nt),typePrefix:_e})}return $.withTypes=()=>$,$})();function unwrapResult($){if($.meta&&$.meta.rejectedWithValue)throw $.payload;if($.error)throw $.error;return $.payload}function isThenable($){return $!==null&&typeof $=="object"&&typeof $.then=="function"}var asyncThunkSymbol=Symbol.for("rtk-slice-createasyncthunk");function getType($,_e){return`${$}/${_e}`}function buildCreateSlice({creators:$}={}){var et;const _e=(et=$==null?void 0:$.asyncThunk)==null?void 0:et[asyncThunkSymbol];return function(nt){const{name:rt,reducerPath:ot=rt}=nt;if(!rt)throw new Error(formatProdErrorMessage(11));typeof process<"u";const it=(typeof nt.reducers=="function"?nt.reducers(buildReducerCreators()):nt.reducers)||{},st=Object.keys(it),lt={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},ct={addCase(yt,vt){const Et=typeof yt=="string"?yt:yt.type;if(!Et)throw new Error(formatProdErrorMessage(12));if(Et in lt.sliceCaseReducersByType)throw new Error(formatProdErrorMessage(13));return lt.sliceCaseReducersByType[Et]=vt,ct},addMatcher(yt,vt){return lt.sliceMatchers.push({matcher:yt,reducer:vt}),ct},exposeAction(yt,vt){return lt.actionCreators[yt]=vt,ct},exposeCaseReducer(yt,vt){return lt.sliceCaseReducersByName[yt]=vt,ct}};st.forEach(yt=>{const vt=it[yt],Et={reducerName:yt,type:getType(rt,yt),createNotation:typeof nt.reducers=="function"};isAsyncThunkSliceReducerDefinition(vt)?handleThunkCaseReducerDefinition(Et,vt,ct,_e):handleNormalReducerDefinition(Et,vt,ct)});function ft(){const[yt={},vt=[],Et=void 0]=typeof nt.extraReducers=="function"?executeReducerBuilderCallback(nt.extraReducers):[nt.extraReducers],Tt={...yt,...lt.sliceCaseReducersByType};return createReducer(nt.initialState,Ot=>{for(let wt in Tt)Ot.addCase(wt,Tt[wt]);for(let wt of lt.sliceMatchers)Ot.addMatcher(wt.matcher,wt.reducer);for(let wt of vt)Ot.addMatcher(wt.matcher,wt.reducer);Et&&Ot.addDefaultCase(Et)})}const dt=yt=>yt,pt=new WeakMap;let ht;const gt={name:rt,reducerPath:ot,reducer(yt,vt){return ht||(ht=ft()),ht(yt,vt)},actions:lt.actionCreators,caseReducers:lt.sliceCaseReducersByName,getInitialState(){return ht||(ht=ft()),ht.getInitialState()},getSelectors(yt=dt){const vt=emplace(pt,this,{insert:()=>new WeakMap});return emplace(vt,yt,{insert:()=>{const Et={};for(const[Tt,Ot]of Object.entries(nt.selectors??{}))Et[Tt]=wrapSelector(this,Ot,yt,this!==gt);return Et}})},selectSlice(yt){let vt=yt[this.reducerPath];return typeof vt>"u"&&this!==gt&&(vt=this.getInitialState()),vt},get selectors(){return this.getSelectors(this.selectSlice)},injectInto(yt,{reducerPath:vt,...Et}={}){const Tt=vt??this.reducerPath;return yt.inject({reducerPath:Tt,reducer:this.reducer},Et),{...this,reducerPath:Tt}}};return gt}}function wrapSelector($,_e,et,tt){function nt(rt,...ot){let it=et.call($,rt);return typeof it>"u"&&tt&&(it=$.getInitialState()),_e(it,...ot)}return nt.unwrapped=_e,nt}var createSlice=buildCreateSlice();function buildReducerCreators(){function $(_e,et){return{_reducerDefinitionType:"asyncThunk",payloadCreator:_e,...et}}return $.withTypes=()=>$,{reducer(_e){return Object.assign({[_e.name](...et){return _e(...et)}}[_e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(_e,et){return{_reducerDefinitionType:"reducerWithPrepare",prepare:_e,reducer:et}},asyncThunk:$}}function handleNormalReducerDefinition({type:$,reducerName:_e,createNotation:et},tt,nt){let rt,ot;if("reducer"in tt){if(et&&!isCaseReducerWithPrepareDefinition(tt))throw new Error(formatProdErrorMessage(17));rt=tt.reducer,ot=tt.prepare}else rt=tt;nt.addCase($,rt).exposeCaseReducer(_e,rt).exposeAction(_e,ot?createAction($,ot):createAction($))}function isAsyncThunkSliceReducerDefinition($){return $._reducerDefinitionType==="asyncThunk"}function isCaseReducerWithPrepareDefinition($){return $._reducerDefinitionType==="reducerWithPrepare"}function handleThunkCaseReducerDefinition({type:$,reducerName:_e},et,tt,nt){if(!nt)throw new Error(formatProdErrorMessage(18));const{payloadCreator:rt,fulfilled:ot,pending:it,rejected:st,settled:lt,options:ct}=et,ft=nt($,rt,ct);tt.exposeAction(_e,ft),ot&&tt.addCase(ft.fulfilled,ot),it&&tt.addCase(ft.pending,it),st&&tt.addCase(ft.rejected,st),lt&&tt.addMatcher(ft.settled,lt),tt.exposeCaseReducer(_e,{fulfilled:ot||noop$4,pending:it||noop$4,rejected:st||noop$4,settled:lt||noop$4})}function noop$4(){}var alm="listenerMiddleware";createAction(`${alm}/add`);createAction(`${alm}/removeAll`);createAction(`${alm}/remove`);function formatProdErrorMessage($){return`Minified Redux Toolkit error #${$}; visit https://redux-toolkit.js.org/Errors?code=${$} for the full message or use the non-minified dev environment for full errors. `}var MainMenuStateNames=($=>($.cutting="mainMenu.cutting-button",$.metadata="mainMenu.metadata-button",$.trackSelection="mainMenu.select-tracks-button",$.subtitles="mainMenu.subtitles-button",$.thumbnail="mainMenu.thumbnail-button",$.finish="mainMenu.finish-button",$.keyboardControls="mainMenu.keyboard-controls-button",$))(MainMenuStateNames||{});const initialState$8={value:MainMenuStateNames.cutting},mainMenuSlice=createSlice({name:"mainMenuState",initialState:initialState$8,reducers:{setState:($,_e)=>{$.value=_e.payload}},selectors:{selectMainMenuState:$=>$.value}}),{setState:setState$1}=mainMenuSlice.actions,{selectMainMenuState}=mainMenuSlice.selectors,mainMenuStateReducer=mainMenuSlice.reducer,initialState$7={value:"Start processing",pageNumber:0},finishSlice=createSlice({name:"finishState",initialState:initialState$7,reducers:{setState:($,_e)=>{$.value=_e.payload},setPageNumber:($,_e)=>{$.pageNumber=_e.payload}},selectors:{selectFinishState:$=>$.value,selectPageNumber:$=>$.pageNumber}}),{setState,setPageNumber}=finishSlice.actions,{selectFinishState,selectPageNumber}=finishSlice.selectors,finishStateReducer=finishSlice.reducer;var tomlParser={exports:{}};const ParserEND=1114112;class ParserError extends Error{constructor(_e,et,tt){super("[ParserError] "+_e,et,tt),this.name="ParserError",this.code="ParserError",Error.captureStackTrace&&Error.captureStackTrace(this,ParserError)}}class State{constructor(_e){this.parser=_e,this.buf="",this.returned=null,this.result=null,this.resultTable=null,this.resultArr=null}}class Parser{constructor(){this.pos=0,this.col=0,this.line=0,this.obj={},this.ctx=this.obj,this.stack=[],this._buf="",this.char=null,this.ii=0,this.state=new State(this.parseStart)}parse(_e){if(_e.length===0||_e.length==null)return;this._buf=String(_e),this.ii=-1,this.char=-1;let et;for(;et===!1||this.nextChar();)et=this.runOne();this._buf=null}nextChar(){return this.char===10&&(++this.line,this.col=-1),++this.ii,this.char=this._buf.codePointAt(this.ii),++this.pos,++this.col,this.haveBuffer()}haveBuffer(){return this.ii{const _e=new Date($);if(isNaN(_e))throw new TypeError("Invalid Datetime");return _e},formatNum=($,_e)=>{for(_e=String(_e);_e.length<$;)_e="0"+_e;return _e};const f$3=formatNum;class FloatingDateTime extends Date{constructor(_e){super(_e+"Z"),this.isFloating=!0}toISOString(){const _e=`${this.getUTCFullYear()}-${f$3(2,this.getUTCMonth()+1)}-${f$3(2,this.getUTCDate())}`,et=`${f$3(2,this.getUTCHours())}:${f$3(2,this.getUTCMinutes())}:${f$3(2,this.getUTCSeconds())}.${f$3(3,this.getUTCMilliseconds())}`;return`${_e}T${et}`}}var createDatetimeFloat=$=>{const _e=new FloatingDateTime($);if(isNaN(_e))throw new TypeError("Invalid Datetime");return _e};const f$2=formatNum,DateTime$1=globalThis.Date;let Date$1=class extends DateTime$1{constructor(_e){super(_e),this.isDate=!0}toISOString(){return`${this.getUTCFullYear()}-${f$2(2,this.getUTCMonth()+1)}-${f$2(2,this.getUTCDate())}`}};var createDate$1=$=>{const _e=new Date$1($);if(isNaN(_e))throw new TypeError("Invalid Datetime");return _e};const f$1=formatNum;class Time extends Date{constructor(_e){super(`0000-01-01T${_e}Z`),this.isTime=!0}toISOString(){return`${f$1(2,this.getUTCHours())}:${f$1(2,this.getUTCMinutes())}:${f$1(2,this.getUTCSeconds())}.${f$1(3,this.getUTCMilliseconds())}`}}var createTime$1=$=>{const _e=new Time($);if(isNaN(_e))throw new TypeError("Invalid Datetime");return _e};tomlParser.exports=makeParserClass(parser$1);tomlParser.exports.makeParserClass=makeParserClass;class TomlError extends Error{constructor(_e){super(_e),this.name="TomlError",Error.captureStackTrace&&Error.captureStackTrace(this,TomlError),this.fromTOML=!0,this.wrapped=null}}TomlError.wrap=$=>{const _e=new TomlError($.message);return _e.code=$.code,_e.wrapped=$,_e};tomlParser.exports.TomlError=TomlError;const createDateTime=createDatetime,createDateTimeFloat=createDatetimeFloat,createDate=createDate$1,createTime=createTime$1,CTRL_I=9,CTRL_J=10,CTRL_M=13,CTRL_CHAR_BOUNDARY=31,CHAR_SP=32,CHAR_QUOT=34,CHAR_NUM=35,CHAR_APOS=39,CHAR_PLUS=43,CHAR_COMMA=44,CHAR_HYPHEN=45,CHAR_PERIOD=46,CHAR_0=48,CHAR_1=49,CHAR_7=55,CHAR_9=57,CHAR_COLON=58,CHAR_EQUALS=61,CHAR_A=65,CHAR_E=69,CHAR_F=70,CHAR_T=84,CHAR_U=85,CHAR_Z=90,CHAR_LOWBAR=95,CHAR_a=97,CHAR_b=98,CHAR_e=101,CHAR_f=102,CHAR_i=105,CHAR_l=108,CHAR_n=110,CHAR_o=111,CHAR_r=114,CHAR_s=115,CHAR_t=116,CHAR_u=117,CHAR_x=120,CHAR_z=122,CHAR_LCUB=123,CHAR_RCUB=125,CHAR_LSQB=91,CHAR_BSOL=92,CHAR_RSQB=93,CHAR_DEL=127,SURROGATE_FIRST=55296,SURROGATE_LAST=57343,escapes={[CHAR_b]:"\b",[CHAR_t]:" ",[CHAR_n]:` `,[CHAR_f]:"\f",[CHAR_r]:"\r",[CHAR_QUOT]:'"',[CHAR_BSOL]:"\\"};function isDigit($){return $>=CHAR_0&&$<=CHAR_9}function isHexit($){return $>=CHAR_A&&$<=CHAR_F||$>=CHAR_a&&$<=CHAR_f||$>=CHAR_0&&$<=CHAR_9}function isBit($){return $===CHAR_1||$===CHAR_0}function isOctit($){return $>=CHAR_0&&$<=CHAR_7}function isAlphaNumQuoteHyphen($){return $>=CHAR_A&&$<=CHAR_Z||$>=CHAR_a&&$<=CHAR_z||$>=CHAR_0&&$<=CHAR_9||$===CHAR_APOS||$===CHAR_QUOT||$===CHAR_LOWBAR||$===CHAR_HYPHEN}function isAlphaNumHyphen($){return $>=CHAR_A&&$<=CHAR_Z||$>=CHAR_a&&$<=CHAR_z||$>=CHAR_0&&$<=CHAR_9||$===CHAR_LOWBAR||$===CHAR_HYPHEN}const _type=Symbol("type"),_declared=Symbol("declared"),hasOwnProperty$1=Object.prototype.hasOwnProperty,defineProperty=Object.defineProperty,descriptor={configurable:!0,enumerable:!0,writable:!0,value:void 0};function hasKey($,_e){return hasOwnProperty$1.call($,_e)?!0:(_e==="__proto__"&&defineProperty($,"__proto__",descriptor),!1)}const INLINE_TABLE=Symbol("inline-table");function InlineTable(){return Object.defineProperties({},{[_type]:{value:INLINE_TABLE}})}function isInlineTable($){return $===null||typeof $!="object"?!1:$[_type]===INLINE_TABLE}const TABLE=Symbol("table");function Table(){return Object.defineProperties({},{[_type]:{value:TABLE},[_declared]:{value:!1,writable:!0}})}function isTable($){return $===null||typeof $!="object"?!1:$[_type]===TABLE}const _contentType=Symbol("content-type"),INLINE_LIST=Symbol("inline-list");function InlineList($){return Object.defineProperties([],{[_type]:{value:INLINE_LIST},[_contentType]:{value:$}})}function isInlineList($){return $===null||typeof $!="object"?!1:$[_type]===INLINE_LIST}const LIST=Symbol("list");function List$2(){return Object.defineProperties([],{[_type]:{value:LIST}})}function isList($){return $===null||typeof $!="object"?!1:$[_type]===LIST}let _custom;try{const utilInspect=eval("require('util').inspect");_custom=utilInspect.custom}catch($){}const _inspect=_custom||"inspect";class BoxedBigInt{constructor(_e){try{this.value=globalThis.BigInt.asIntN(64,_e)}catch{this.value=null}Object.defineProperty(this,_type,{value:INTEGER})}isNaN(){return this.value===null}toString(){return String(this.value)}[_inspect](){return`[BigInt: ${this.toString()}]}`}valueOf(){return this.value}}const INTEGER=Symbol("integer");function Integer($){let _e=Number($);return Object.is(_e,-0)&&(_e=0),globalThis.BigInt&&!Number.isSafeInteger(_e)?new BoxedBigInt($):Object.defineProperties(new Number(_e),{isNaN:{value:function(){return isNaN(this)}},[_type]:{value:INTEGER},[_inspect]:{value:()=>`[Integer: ${$}]`}})}function isInteger$1($){return $===null||typeof $!="object"?!1:$[_type]===INTEGER}const FLOAT=Symbol("float");function Float($){return Object.defineProperties(new Number($),{[_type]:{value:FLOAT},[_inspect]:{value:()=>`[Float: ${$}]`}})}function isFloat($){return $===null||typeof $!="object"?!1:$[_type]===FLOAT}function tomlType($){const _e=typeof $;if(_e==="object"){if($===null)return"null";if($ instanceof Date)return"datetime";if(_type in $)switch($[_type]){case INLINE_TABLE:return"inline-table";case INLINE_LIST:return"inline-list";case TABLE:return"table";case LIST:return"list";case FLOAT:return"float";case INTEGER:return"integer"}}return _e}function makeParserClass($){class _e extends ${constructor(){super(),this.ctx=this.obj=Table()}atEndOfWord(){return this.char===CHAR_NUM||this.char===CTRL_I||this.char===CHAR_SP||this.atEndOfLine()}atEndOfLine(){return this.char===$.END||this.char===CTRL_J||this.char===CTRL_M}parseStart(){if(this.char===$.END)return null;if(this.char===CHAR_LSQB)return this.call(this.parseTableOrList);if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(isAlphaNumQuoteHyphen(this.char))return this.callNow(this.parseAssignStatement);throw this.error(new TomlError(`Unknown character "${this.char}"`))}parseWhitespaceToEOL(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M)return null;if(this.char===CHAR_NUM)return this.goto(this.parseComment);if(this.char===$.END||this.char===CTRL_J)return this.return();throw this.error(new TomlError("Unexpected character, expected only whitespace or comments till end of line"))}parseAssignStatement(){return this.callNow(this.parseAssign,this.recordAssignStatement)}recordAssignStatement(tt){let nt=this.ctx,rt=tt.key.pop();for(let ot of tt.key){if(hasKey(nt,ot)&&(!isTable(nt[ot])||nt[ot][_declared]))throw this.error(new TomlError("Can't redefine existing key"));nt=nt[ot]=nt[ot]||Table()}if(hasKey(nt,rt))throw this.error(new TomlError("Can't redefine existing key"));return isInteger$1(tt.value)||isFloat(tt.value)?nt[rt]=tt.value.valueOf():nt[rt]=tt.value,this.goto(this.parseWhitespaceToEOL)}parseAssign(){return this.callNow(this.parseKeyword,this.recordAssignKeyword)}recordAssignKeyword(tt){return this.state.resultTable?this.state.resultTable.push(tt):this.state.resultTable=[tt],this.goto(this.parseAssignKeywordPreDot)}parseAssignKeywordPreDot(){if(this.char===CHAR_PERIOD)return this.next(this.parseAssignKeywordPostDot);if(this.char!==CHAR_SP&&this.char!==CTRL_I)return this.goto(this.parseAssignEqual)}parseAssignKeywordPostDot(){if(this.char!==CHAR_SP&&this.char!==CTRL_I)return this.callNow(this.parseKeyword,this.recordAssignKeyword)}parseAssignEqual(){if(this.char===CHAR_EQUALS)return this.next(this.parseAssignPreValue);throw this.error(new TomlError('Invalid character, expected "="'))}parseAssignPreValue(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseValue,this.recordAssignValue)}recordAssignValue(tt){return this.returnNow({key:this.state.resultTable,value:tt})}parseComment(){do if(this.char===$.END||this.char===CTRL_J)return this.return();while(this.nextChar())}parseTableOrList(){if(this.char===CHAR_LSQB)this.next(this.parseList);else return this.goto(this.parseTable)}parseTable(){return this.ctx=this.obj,this.goto(this.parseTableNext)}parseTableNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseTableMore)}parseTableMore(tt){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,tt)&&(!isTable(this.ctx[tt])||this.ctx[tt][_declared]))throw this.error(new TomlError("Can't redefine existing key"));return this.ctx=this.ctx[tt]=this.ctx[tt]||Table(),this.ctx[_declared]=!0,this.next(this.parseWhitespaceToEOL)}else if(this.char===CHAR_PERIOD){if(!hasKey(this.ctx,tt))this.ctx=this.ctx[tt]=Table();else if(isTable(this.ctx[tt]))this.ctx=this.ctx[tt];else if(isList(this.ctx[tt]))this.ctx=this.ctx[tt][this.ctx[tt].length-1];else throw this.error(new TomlError("Can't redefine existing key"));return this.next(this.parseTableNext)}else throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseList(){return this.ctx=this.obj,this.goto(this.parseListNext)}parseListNext(){return this.char===CHAR_SP||this.char===CTRL_I?null:this.callNow(this.parseKeyword,this.parseListMore)}parseListMore(tt){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CHAR_RSQB){if(hasKey(this.ctx,tt)||(this.ctx[tt]=List$2()),isInlineList(this.ctx[tt]))throw this.error(new TomlError("Can't extend an inline array"));if(isList(this.ctx[tt])){const nt=Table();this.ctx[tt].push(nt),this.ctx=nt}else throw this.error(new TomlError("Can't redefine an existing key"));return this.next(this.parseListEnd)}else if(this.char===CHAR_PERIOD){if(!hasKey(this.ctx,tt))this.ctx=this.ctx[tt]=Table();else{if(isInlineList(this.ctx[tt]))throw this.error(new TomlError("Can't extend an inline array"));if(isInlineTable(this.ctx[tt]))throw this.error(new TomlError("Can't extend an inline table"));if(isList(this.ctx[tt]))this.ctx=this.ctx[tt][this.ctx[tt].length-1];else if(isTable(this.ctx[tt]))this.ctx=this.ctx[tt];else throw this.error(new TomlError("Can't redefine an existing key"))}return this.next(this.parseListNext)}else throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseListEnd(tt){if(this.char===CHAR_RSQB)return this.next(this.parseWhitespaceToEOL);throw this.error(new TomlError("Unexpected character, expected whitespace, . or ]"))}parseValue(){if(this.char===$.END)throw this.error(new TomlError("Key without value"));if(this.char===CHAR_QUOT)return this.next(this.parseDoubleString);if(this.char===CHAR_APOS)return this.next(this.parseSingleString);if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)return this.goto(this.parseNumberSign);if(this.char===CHAR_i)return this.next(this.parseInf);if(this.char===CHAR_n)return this.next(this.parseNan);if(isDigit(this.char))return this.goto(this.parseNumberOrDateTime);if(this.char===CHAR_t||this.char===CHAR_f)return this.goto(this.parseBoolean);if(this.char===CHAR_LSQB)return this.call(this.parseInlineList,this.recordValue);if(this.char===CHAR_LCUB)return this.call(this.parseInlineTable,this.recordValue);throw this.error(new TomlError("Unexpected character, expecting string, number, datetime, boolean, inline array or inline table"))}recordValue(tt){return this.returnNow(tt)}parseInf(){if(this.char===CHAR_n)return this.next(this.parseInf2);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseInf2(){if(this.char===CHAR_f)return this.state.buf==="-"?this.return(-1/0):this.return(1/0);throw this.error(new TomlError('Unexpected character, expected "inf", "+inf" or "-inf"'))}parseNan(){if(this.char===CHAR_a)return this.next(this.parseNan2);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseNan2(){if(this.char===CHAR_n)return this.return(NaN);throw this.error(new TomlError('Unexpected character, expected "nan"'))}parseKeyword(){return this.char===CHAR_QUOT?this.next(this.parseBasicString):this.char===CHAR_APOS?this.next(this.parseLiteralString):this.goto(this.parseBareKey)}parseBareKey(){do{if(this.char===$.END)throw this.error(new TomlError("Key ended without value"));if(isAlphaNumHyphen(this.char))this.consume();else{if(this.state.buf.length===0)throw this.error(new TomlError("Empty bare keys are not allowed"));return this.returnNow()}}while(this.nextChar())}parseSingleString(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiStringMaybe):this.goto(this.parseLiteralString)}parseLiteralString(){do{if(this.char===CHAR_APOS)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiStringMaybe(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiString):this.returnNow()}parseLiteralMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseLiteralMultiStringContent):this.goto(this.parseLiteralMultiStringContent)}parseLiteralMultiStringContent(){do{if(this.char===CHAR_APOS)return this.next(this.parseLiteralMultiEnd);if(this.char===$.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}parseLiteralMultiEnd(){return this.char===CHAR_APOS?this.next(this.parseLiteralMultiEnd2):(this.state.buf+="'",this.goto(this.parseLiteralMultiStringContent))}parseLiteralMultiEnd2(){return this.char===CHAR_APOS?this.return():(this.state.buf+="''",this.goto(this.parseLiteralMultiStringContent))}parseDoubleString(){return this.char===CHAR_QUOT?this.next(this.parseMultiStringMaybe):this.goto(this.parseBasicString)}parseBasicString(){do{if(this.char===CHAR_BSOL)return this.call(this.parseEscape,this.recordEscapeReplacement);if(this.char===CHAR_QUOT)return this.return();if(this.atEndOfLine())throw this.error(new TomlError("Unterminated string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}recordEscapeReplacement(tt){return this.state.buf+=tt,this.goto(this.parseBasicString)}parseMultiStringMaybe(){return this.char===CHAR_QUOT?this.next(this.parseMultiString):this.returnNow()}parseMultiString(){return this.char===CTRL_M?null:this.char===CTRL_J?this.next(this.parseMultiStringContent):this.goto(this.parseMultiStringContent)}parseMultiStringContent(){do{if(this.char===CHAR_BSOL)return this.call(this.parseMultiEscape,this.recordMultiEscapeReplacement);if(this.char===CHAR_QUOT)return this.next(this.parseMultiEnd);if(this.char===$.END)throw this.error(new TomlError("Unterminated multi-line string"));if(this.char===CHAR_DEL||this.char<=CTRL_CHAR_BOUNDARY&&this.char!==CTRL_I&&this.char!==CTRL_J&&this.char!==CTRL_M)throw this.errorControlCharInString();this.consume()}while(this.nextChar())}errorControlCharInString(){let tt="\\u00";return this.char<16&&(tt+="0"),tt+=this.char.toString(16),this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${tt} instead`))}recordMultiEscapeReplacement(tt){return this.state.buf+=tt,this.goto(this.parseMultiStringContent)}parseMultiEnd(){return this.char===CHAR_QUOT?this.next(this.parseMultiEnd2):(this.state.buf+='"',this.goto(this.parseMultiStringContent))}parseMultiEnd2(){return this.char===CHAR_QUOT?this.return():(this.state.buf+='""',this.goto(this.parseMultiStringContent))}parseMultiEscape(){return this.char===CTRL_M||this.char===CTRL_J?this.next(this.parseMultiTrim):this.char===CHAR_SP||this.char===CTRL_I?this.next(this.parsePreMultiTrim):this.goto(this.parseEscape)}parsePreMultiTrim(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===CTRL_M||this.char===CTRL_J)return this.next(this.parseMultiTrim);throw this.error(new TomlError("Can't escape whitespace"))}parseMultiTrim(){return this.char===CTRL_J||this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M?null:this.returnNow()}parseEscape(){if(this.char in escapes)return this.return(escapes[this.char]);if(this.char===CHAR_u)return this.call(this.parseSmallUnicode,this.parseUnicodeReturn);if(this.char===CHAR_U)return this.call(this.parseLargeUnicode,this.parseUnicodeReturn);throw this.error(new TomlError("Unknown escape character: "+this.char))}parseUnicodeReturn(tt){try{const nt=parseInt(tt,16);if(nt>=SURROGATE_FIRST&&nt<=SURROGATE_LAST)throw this.error(new TomlError("Invalid unicode, character in range 0xD800 - 0xDFFF is reserved"));return this.returnNow(String.fromCodePoint(nt))}catch(nt){throw this.error(TomlError.wrap(nt))}}parseSmallUnicode(){if(isHexit(this.char)){if(this.consume(),this.state.buf.length>=4)return this.return()}else throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"))}parseLargeUnicode(){if(isHexit(this.char)){if(this.consume(),this.state.buf.length>=8)return this.return()}else throw this.error(new TomlError("Invalid character in unicode sequence, expected hex"))}parseNumberSign(){return this.consume(),this.next(this.parseMaybeSignedInfOrNan)}parseMaybeSignedInfOrNan(){return this.char===CHAR_i?this.next(this.parseInf):this.char===CHAR_n?this.next(this.parseNan):this.callNow(this.parseNoUnder,this.parseNumberIntegerStart)}parseNumberIntegerStart(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberIntegerExponentOrDecimal)):this.goto(this.parseNumberInteger)}parseNumberIntegerExponentOrDecimal(){return this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Integer(this.state.buf))}parseNumberInteger(){if(isDigit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder);if(this.char===CHAR_E||this.char===CHAR_e)return this.consume(),this.next(this.parseNumberExponentSign);if(this.char===CHAR_PERIOD)return this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat);{const tt=Integer(this.state.buf);if(tt.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(tt)}}}parseNoUnder(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD||this.char===CHAR_E||this.char===CHAR_e)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNoUnderHexOctBinLiteral(){if(this.char===CHAR_LOWBAR||this.char===CHAR_PERIOD)throw this.error(new TomlError("Unexpected character, expected digit"));if(this.atEndOfWord())throw this.error(new TomlError("Incomplete number"));return this.returnNow()}parseNumberFloat(){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder,this.parseNumberFloat);if(isDigit(this.char))this.consume();else return this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.returnNow(Float(this.state.buf))}parseNumberExponentSign(){if(isDigit(this.char))return this.goto(this.parseNumberExponent);if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.call(this.parseNoUnder,this.parseNumberExponent);else throw this.error(new TomlError("Unexpected character, expected -, + or digit"))}parseNumberExponent(){if(isDigit(this.char))this.consume();else return this.char===CHAR_LOWBAR?this.call(this.parseNoUnder):this.returnNow(Float(this.state.buf))}parseNumberOrDateTime(){return this.char===CHAR_0?(this.consume(),this.next(this.parseNumberBaseOrDateTime)):this.goto(this.parseNumberOrDateTimeOnly)}parseNumberOrDateTimeOnly(){if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnder,this.parseNumberInteger);if(isDigit(this.char))this.consume(),this.state.buf.length>4&&this.next(this.parseNumberInteger);else return this.char===CHAR_E||this.char===CHAR_e?(this.consume(),this.next(this.parseNumberExponentSign)):this.char===CHAR_PERIOD?(this.consume(),this.call(this.parseNoUnder,this.parseNumberFloat)):this.char===CHAR_HYPHEN?this.goto(this.parseDateTime):this.char===CHAR_COLON?this.goto(this.parseOnlyTimeHour):this.returnNow(Integer(this.state.buf))}parseDateTimeOnly(){if(this.state.buf.length<4){if(isDigit(this.char))return this.consume();if(this.char===CHAR_COLON)return this.goto(this.parseOnlyTimeHour);throw this.error(new TomlError("Expected digit while parsing year part of a date"))}else{if(this.char===CHAR_HYPHEN)return this.goto(this.parseDateTime);throw this.error(new TomlError("Expected hyphen (-) while parsing year part of date"))}}parseNumberBaseOrDateTime(){return this.char===CHAR_b?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerBin)):this.char===CHAR_o?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerOct)):this.char===CHAR_x?(this.consume(),this.call(this.parseNoUnderHexOctBinLiteral,this.parseIntegerHex)):this.char===CHAR_PERIOD?this.goto(this.parseNumberInteger):isDigit(this.char)?this.goto(this.parseDateTimeOnly):this.returnNow(Integer(this.state.buf))}parseIntegerHex(){if(isHexit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{const tt=Integer(this.state.buf);if(tt.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(tt)}}}parseIntegerOct(){if(isOctit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{const tt=Integer(this.state.buf);if(tt.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(tt)}}}parseIntegerBin(){if(isBit(this.char))this.consume();else{if(this.char===CHAR_LOWBAR)return this.call(this.parseNoUnderHexOctBinLiteral);{const tt=Integer(this.state.buf);if(tt.isNaN())throw this.error(new TomlError("Invalid number"));return this.returnNow(tt)}}}parseDateTime(){if(this.state.buf.length<4)throw this.error(new TomlError("Years less than 1000 must be zero padded to four characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseDateMonth)}parseDateMonth(){if(this.char===CHAR_HYPHEN){if(this.state.buf.length<2)throw this.error(new TomlError("Months less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseDateDay)}else if(isDigit(this.char))this.consume();else throw this.error(new TomlError("Incomplete datetime"))}parseDateDay(){if(this.char===CHAR_T||this.char===CHAR_SP){if(this.state.buf.length<2)throw this.error(new TomlError("Days less than 10 must be zero padded to two characters"));return this.state.result+="-"+this.state.buf,this.state.buf="",this.next(this.parseStartTimeHour)}else{if(this.atEndOfWord())return this.returnNow(createDate(this.state.result+"-"+this.state.buf));if(isDigit(this.char))this.consume();else throw this.error(new TomlError("Incomplete datetime"))}}parseStartTimeHour(){return this.atEndOfWord()?this.returnNow(createDate(this.state.result)):this.goto(this.parseTimeHour)}parseTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result+="T"+this.state.buf,this.state.buf="",this.next(this.parseTimeMin)}else if(isDigit(this.char))this.consume();else throw this.error(new TomlError("Incomplete datetime"))}parseTimeMin(){if(this.state.buf.length<2&&isDigit(this.char))this.consume();else{if(this.state.buf.length===2&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeSec);throw this.error(new TomlError("Incomplete datetime"))}}parseTimeSec(){if(isDigit(this.char)){if(this.consume(),this.state.buf.length===2)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseTimeZoneOrFraction)}else throw this.error(new TomlError("Incomplete datetime"))}parseOnlyTimeHour(){if(this.char===CHAR_COLON){if(this.state.buf.length<2)throw this.error(new TomlError("Hours less than 10 must be zero padded to two characters"));return this.state.result=this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeMin)}else throw this.error(new TomlError("Incomplete time"))}parseOnlyTimeMin(){if(this.state.buf.length<2&&isDigit(this.char))this.consume();else{if(this.state.buf.length===2&&this.char===CHAR_COLON)return this.state.result+=":"+this.state.buf,this.state.buf="",this.next(this.parseOnlyTimeSec);throw this.error(new TomlError("Incomplete time"))}}parseOnlyTimeSec(){if(isDigit(this.char)){if(this.consume(),this.state.buf.length===2)return this.next(this.parseOnlyTimeFractionMaybe)}else throw this.error(new TomlError("Incomplete time"))}parseOnlyTimeFractionMaybe(){if(this.state.result+=":"+this.state.buf,this.char===CHAR_PERIOD)this.state.buf="",this.next(this.parseOnlyTimeFraction);else return this.return(createTime(this.state.result))}parseOnlyTimeFraction(){if(isDigit(this.char))this.consume();else if(this.atEndOfWord()){if(this.state.buf.length===0)throw this.error(new TomlError("Expected digit in milliseconds"));return this.returnNow(createTime(this.state.result+"."+this.state.buf))}else throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}parseTimeZoneOrFraction(){if(this.char===CHAR_PERIOD)this.consume(),this.next(this.parseDateTimeFraction);else if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.next(this.parseTimeZoneHour);else{if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}parseDateTimeFraction(){if(isDigit(this.char))this.consume();else{if(this.state.buf.length===1)throw this.error(new TomlError("Expected digit in milliseconds"));if(this.char===CHAR_HYPHEN||this.char===CHAR_PLUS)this.consume(),this.next(this.parseTimeZoneHour);else{if(this.char===CHAR_Z)return this.consume(),this.return(createDateTime(this.state.result+this.state.buf));if(this.atEndOfWord())return this.returnNow(createDateTimeFloat(this.state.result+this.state.buf));throw this.error(new TomlError("Unexpected character in datetime, expected period (.), minus (-), plus (+) or Z"))}}}parseTimeZoneHour(){if(isDigit(this.char)){if(this.consume(),/\d\d$/.test(this.state.buf))return this.next(this.parseTimeZoneSep)}else throw this.error(new TomlError("Unexpected character in datetime, expected digit"))}parseTimeZoneSep(){if(this.char===CHAR_COLON)this.consume(),this.next(this.parseTimeZoneMin);else throw this.error(new TomlError("Unexpected character in datetime, expected colon"))}parseTimeZoneMin(){if(isDigit(this.char)){if(this.consume(),/\d\d$/.test(this.state.buf))return this.return(createDateTime(this.state.result+this.state.buf))}else throw this.error(new TomlError("Unexpected character in datetime, expected digit"))}parseBoolean(){if(this.char===CHAR_t)return this.consume(),this.next(this.parseTrue_r);if(this.char===CHAR_f)return this.consume(),this.next(this.parseFalse_a)}parseTrue_r(){if(this.char===CHAR_r)return this.consume(),this.next(this.parseTrue_u);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_u(){if(this.char===CHAR_u)return this.consume(),this.next(this.parseTrue_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseTrue_e(){if(this.char===CHAR_e)return this.return(!0);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_a(){if(this.char===CHAR_a)return this.consume(),this.next(this.parseFalse_l);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_l(){if(this.char===CHAR_l)return this.consume(),this.next(this.parseFalse_s);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_s(){if(this.char===CHAR_s)return this.consume(),this.next(this.parseFalse_e);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseFalse_e(){if(this.char===CHAR_e)return this.return(!1);throw this.error(new TomlError("Invalid boolean, expected true or false"))}parseInlineList(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===$.END)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_NUM?this.call(this.parseComment):this.char===CHAR_RSQB?this.return(this.state.resultArr||InlineList()):this.callNow(this.parseValue,this.recordInlineListValue)}recordInlineListValue(tt){if(this.state.resultArr){const nt=this.state.resultArr[_contentType],rt=tomlType(tt);if(nt!==rt)throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${nt} and ${rt}`))}else this.state.resultArr=InlineList(tomlType(tt));return isFloat(tt)||isInteger$1(tt)?this.state.resultArr.push(tt.valueOf()):this.state.resultArr.push(tt),this.goto(this.parseInlineListNext)}parseInlineListNext(){if(this.char===CHAR_SP||this.char===CTRL_I||this.char===CTRL_M||this.char===CTRL_J)return null;if(this.char===CHAR_NUM)return this.call(this.parseComment);if(this.char===CHAR_COMMA)return this.next(this.parseInlineList);if(this.char===CHAR_RSQB)return this.goto(this.parseInlineList);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}parseInlineTable(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===$.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));return this.char===CHAR_RCUB?this.return(this.state.resultTable||InlineTable()):(this.state.resultTable||(this.state.resultTable=InlineTable()),this.callNow(this.parseAssign,this.recordInlineTableValue))}recordInlineTableValue(tt){let nt=this.state.resultTable,rt=tt.key.pop();for(let ot of tt.key){if(hasKey(nt,ot)&&(!isTable(nt[ot])||nt[ot][_declared]))throw this.error(new TomlError("Can't redefine existing key"));nt=nt[ot]=nt[ot]||Table()}if(hasKey(nt,rt))throw this.error(new TomlError("Can't redefine existing key"));return isInteger$1(tt.value)||isFloat(tt.value)?nt[rt]=tt.value.valueOf():nt[rt]=tt.value,this.goto(this.parseInlineTableNext)}parseInlineTableNext(){if(this.char===CHAR_SP||this.char===CTRL_I)return null;if(this.char===$.END||this.char===CHAR_NUM||this.char===CTRL_J||this.char===CTRL_M)throw this.error(new TomlError("Unterminated inline array"));if(this.char===CHAR_COMMA)return this.next(this.parseInlineTable);if(this.char===CHAR_RCUB)return this.goto(this.parseInlineTable);throw this.error(new TomlError("Invalid character, expected whitespace, comma (,) or close bracket (])"))}}return _e}var tomlParserExports=tomlParser.exports,parsePrettyError=prettyError$1;function prettyError$1($,_e){if($.pos==null||$.line==null)return $;let et=$.message;if(et+=` at row ${$.line+1}, col ${$.col+1}, pos ${$.pos}: `,_e&&_e.split){const tt=_e.split(/\n/),nt=String(Math.min(tt.length,$.line+3)).length;let rt=" ";for(;rt.length "+tt[ot]+` `,et+=rt+" ";for(let st=0;st<$.col;++st)et+=" ";et+=`^ `}else et+=it+": "+tt[ot]+` `}}return $.message=et+` -`,$}var parseString_1=parseString;const TOMLParser=tomlParserExports,prettyError=parsePrettyError;function parseString($){globalThis.Buffer&&globalThis.Buffer.isBuffer($)&&($=$.toString("utf8"));const _e=new TOMLParser;try{return _e.parse($),_e.finish()}catch(et){throw prettyError(et,$)}}const parseToml=getDefaultExportFromCjs(parseString_1);var isMergeableObject=function $(_e){return isNonNullObject(_e)&&!isSpecial(_e)};function isNonNullObject($){return!!$&&typeof $=="object"}function isSpecial($){var _e=Object.prototype.toString.call($);return _e==="[object RegExp]"||_e==="[object Date]"||isReactElement($)}var canUseSymbol=typeof Symbol=="function"&&Symbol.for,REACT_ELEMENT_TYPE=canUseSymbol?Symbol.for("react.element"):60103;function isReactElement($){return $.$$typeof===REACT_ELEMENT_TYPE}function emptyTarget($){return Array.isArray($)?[]:{}}function cloneUnlessOtherwiseSpecified($,_e){return _e.clone!==!1&&_e.isMergeableObject($)?deepmerge$1(emptyTarget($),$,_e):$}function defaultArrayMerge($,_e,et){return $.concat(_e).map(function(tt){return cloneUnlessOtherwiseSpecified(tt,et)})}function getMergeFunction($,_e){if(!_e.customMerge)return deepmerge$1;var et=_e.customMerge($);return typeof et=="function"?et:deepmerge$1}function getEnumerableOwnPropertySymbols($){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols($).filter(function(_e){return Object.propertyIsEnumerable.call($,_e)}):[]}function getKeys($){return Object.keys($).concat(getEnumerableOwnPropertySymbols($))}function propertyIsOnObject($,_e){try{return _e in $}catch{return!1}}function propertyIsUnsafe($,_e){return propertyIsOnObject($,_e)&&!(Object.hasOwnProperty.call($,_e)&&Object.propertyIsEnumerable.call($,_e))}function mergeObject($,_e,et){var tt={};return et.isMergeableObject($)&&getKeys($).forEach(function(nt){tt[nt]=cloneUnlessOtherwiseSpecified($[nt],et)}),getKeys(_e).forEach(function(nt){propertyIsUnsafe($,nt)||(propertyIsOnObject($,nt)&&et.isMergeableObject(_e[nt])?tt[nt]=getMergeFunction(nt,et)($[nt],_e[nt],et):tt[nt]=cloneUnlessOtherwiseSpecified(_e[nt],et))}),tt}function deepmerge$1($,_e,et){et=et||{},et.arrayMerge=et.arrayMerge||defaultArrayMerge,et.isMergeableObject=et.isMergeableObject||isMergeableObject,et.cloneUnlessOtherwiseSpecified=cloneUnlessOtherwiseSpecified;var tt=Array.isArray(_e),nt=Array.isArray($),rt=tt===nt;return rt?tt?et.arrayMerge($,_e,et):mergeObject($,_e,et):cloneUnlessOtherwiseSpecified(_e,et)}deepmerge$1.all=function $(_e,et){if(!Array.isArray(_e))throw new Error("first argument should be an array");return _e.reduce(function(tt,nt){return deepmerge$1(tt,nt,et)},{})};var deepmerge_1=deepmerge$1,cjs$1=deepmerge_1;const deepmerge$2=getDefaultExportFromCjs(cjs$1);var define_import_meta_env_default={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1,VITE_GIT_COMMIT_HASH:"ffbcbe050daebba78912eac038c1ebd316f3e2a5",VITE_APP_BUILD_DATE:"2024-05-06T14:53:17.465Z"};const CONTEXT_SETTINGS_FILE="editor-settings.toml",SRC_SERVER="src-server",SRC_URL="src-url",defaultSettings={id:void 0,allowedCallbackPrefixes:[],callbackUrl:void 0,callbackSystem:void 0,opencast:{url:window.location.origin,name:void 0,password:void 0,local:!0},metadata:{show:!0,configureFields:void 0},trackSelection:{show:!0},thumbnail:{show:!1,simpleMode:!1},subtitles:{show:!1,mainFlavor:"captions",languages:{},icons:void 0,defaultVideoFlavor:void 0}};let configFileSettings,urlParameterSettings,settings;const init=async()=>{let $=window.localStorage.getItem("colorScheme");if($===null||!["light","dark","light-high-contrast","dark-high-contrast"].includes($)){const tt=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",nt=window.matchMedia("(prefers-contrast: more)").matches?"-high-contrast":"";$=`${tt}${nt}`}document.documentElement.dataset.colorScheme=$,await loadContextSettings().then(tt=>{configFileSettings=validate(tt,!1,SRC_SERVER,"from server settings file")});const _e=new URLSearchParams(window.location.search),et={};_e.forEach((tt,nt)=>{let rt=et;if(nt.startsWith("opencast.")||nt==="allowedCallbackPrefixes")return;nt==="mediaPackageId"&&(nt="id");const ot=nt.split(".");ot.slice(0,-1).forEach(it=>{it in rt||(rt[it]={}),rt=rt[it]}),rt[ot[ot.length-1]]=tt}),urlParameterSettings=validate(et,!0,SRC_URL,"given as URL GET parameter"),settings=merge$1.all([defaultSettings,configFileSettings,urlParameterSettings]),settings.opencast.local=settings.opencast.local&&settings.opencast.url===window.location.origin,settings.callbackUrl=settings.allowedCallbackPrefixes.some(tt=>{var nt;return(nt=settings.callbackUrl)==null?void 0:nt.startsWith(tt)})?settings.callbackUrl:void 0},loadContextSettings=async()=>{var rt;let $="./";$.endsWith("/")||($+="/");const _e=define_import_meta_env_default.VITE_APP_SETTINGS_PATH||CONTEXT_SETTINGS_FILE,et=_e.startsWith("/")?"":$,tt=new URL(et.concat(_e),window.location.origin);let nt;try{nt=await fetch(tt)}catch(ot){return console.warn(`Could not access "${_e}" due to network error!`,ot||""),null}if(nt.status===404)return console.debug(`"${_e}" returned 404: ignoring`),null;if(!nt.ok)return console.error(`Fetching "${_e}" failed: ${nt.status} ${nt.statusText}`),null;if((rt=nt.headers.get("Content-Type"))!=null&&rt.startsWith("text/html"))return console.warn(`"${_e}" request has "Content-Type: text/html" -> ignoring...`),null;try{return parseToml(await nt.text())}catch(ot){throw console.error(`Could not parse "${_e}" as TOML: `,ot),new SyntaxError(`Could not parse "${_e}" as TOML: ${ot}`)}},validate=($,_e,et,tt)=>{const nt=(it,st,lt)=>typeof it=="function"?rt(it,st,lt):ot(it,st,lt),rt=(it,st,lt)=>{try{const ct=it(st,_e,et);return ct===void 0?st:ct}catch(ct){return console.warn(`Validation of setting "${lt}" (${tt}) with value "${st}" failed: ${ct}. Ignoring.`),null}},ot=(it,st,lt)=>{const ct={};for(const ft in st){const dt=lt?`${lt}.${ft}`:ft;if(ft in it){const pt=nt(it[ft],st[ft],dt);pt!==null&&(ct[ft]=pt)}else console.warn(`"${dt}" (${tt}) is not a valid settings key. Ignoring.`)}return ct};return nt(SCHEMA,$,"")},types={string:($,_e)=>{if(typeof $!="string")throw new Error("is not a string, but should be")},boolean:($,_e)=>{if(typeof $!="boolean")if(_e){if($==="true")return!0;if($==="false")return!1;throw new Error("cant be parsed as boolean")}else throw new Error("is not a boolean")},array:($,_e)=>{if(!Array.isArray($))throw new Error("is not an array, but should be");for(const et in $)if(typeof et!="string")throw new Error("is not a string, but should be")},map:($,_e)=>{for(const et in $){if(typeof et!="string")throw new Error("is not a string, but should be");if(typeof $[et]!="string")throw new Error("is not a string, but should be")}},objectsWithinObjects:($,_e)=>{for(const et in $){if(typeof et!="string")throw new Error("is not a string, but should be");for(const tt in $[et]){if(typeof tt!="string")throw new Error("is not a string, but should be");for(const nt in $[et][tt]){if(typeof nt!="string")throw new Error("is not a string, but should be");if(nt==="show"&&typeof $[et][tt][nt]!="boolean")throw new Error("is not a boolean");if(nt==="readonly"&&typeof $[et][tt][nt]!="boolean")throw new Error("is not a boolean")}}}}},SCHEMA={id:types.string,allowedCallbackPrefixes:types.array,callbackUrl:types.string,callbackSystem:types.string,opencast:{url:types.string,name:types.string,password:types.string},metadata:{show:types.boolean,configureFields:types.objectsWithinObjects},trackSelection:{show:types.boolean},subtitles:{show:types.boolean,mainFlavor:types.string,languages:types.objectsWithinObjects,icons:types.map,defaultVideoFlavor:types.map},thumbnail:{show:types.boolean,simpleMode:types.boolean}},merge$1=($,_e)=>deepmerge$2($,_e,{arrayMerge});merge$1.all=$=>deepmerge$2.all($,{arrayMerge});const arrayMerge=($,_e,et)=>_e;async function client($,{body:_e,...et}={}){const tt={"Content-Type":"application/json"};let nt={};settings.opencast.name&&settings.opencast.password&&(nt={Authorization:`Basic ${btoa(unescape(encodeURIComponent(settings.opencast.name+":"+settings.opencast.password)))}`});const rt={method:_e?"POST":"GET",...et,headers:{...tt,...et.headers,...nt}};_e&&(rt.headers["Content-Type"].includes("urlencoded")?rt.body=_e:rt.body=JSON.stringify(_e));let ot,it,st;try{if(st=await window.fetch($,rt),it=await st.text(),st.url.includes("login.html"))throw new Error("Got redirected to login page, authentification failed.");if(st.ok)return ot=it.length?it:"",ot;throw new Error(st.statusText)}catch(lt){return Promise.reject(st.status?"Status "+st.status+": "+it:lt.message)}}client.get=function($,_e={}){return client($,{..._e,method:"GET"})};client.post=function($,_e,et={}){return client($,{...et,body:_e})};client.delete=function($,_e={}){return client($,{..._e,method:"DELETE"})};var parser={};(function($){(function(){var _e={direction:"horizontal",snapToLines:!0,linePosition:"auto",lineAlign:"start",textPosition:"auto",positionAlign:"auto",size:100,alignment:"center"},et=function(it){it||(it={"&":"&","<":"<",">":">","&lrm":"‎","&rlm":"‏"," ":" "}),this.entities=it,this.parse=function(st,lt){st=st.replace(/\0/g,"�");var ct=/\r\n|\r|\n/,ft=Date.now(),dt=0,pt=st.split(ct),ht=!1,gt=[],yt=[],vt=[];function Et(kt,Nt){vt.push({message:kt,line:dt+1,col:Nt})}var Tt=pt[dt],Ot=Tt.length,xt="WEBVTT",$t=0,wt=xt.length;for(Tt[0]==="\uFEFF"&&($t=1,wt+=1),(Otwt&&Tt[wt]!==" "&&Tt[wt]!==" ")&&Et('No valid signature. (File needs to start with "WEBVTT".)'),dt++;pt[dt]!=""&&pt[dt]!=null;){if(Et("No blank line after the signature."),pt[dt].indexOf("-->")!=-1){ht=!0;break}dt++}for(;pt[dt]!=null;){for(var mt;!ht&&pt[dt]=="";)dt++;if(!ht&&pt[dt]==null)break;mt=Object.assign({},_e,{id:"",startTime:0,endTime:0,pauseOnExit:!1,direction:"horizontal",snapToLines:!0,linePosition:"auto",lineAlign:"start",textPosition:"auto",positionAlign:"auto",size:100,alignment:"center",text:"",tree:null});var Ct=!0;if(pt[dt].indexOf("-->")==-1){if(mt.id=pt[dt],/^NOTE($|[ \t])/.test(mt.id)){for(dt++;pt[dt]!=""&&pt[dt]!=null;)pt[dt].indexOf("-->")!=-1&&Et("Cannot have timestamp in a comment."),dt++;continue}if(/^STYLE($|[ \t])/.test(mt.id)){var bt=[],Pt=!1;for(dt++;pt[dt]!=""&&pt[dt]!=null;)pt[dt].indexOf("-->")!=-1&&(Et("Cannot have timestamp in a style block."),Pt=!0),bt.push(pt[dt]),dt++;if(yt.length){Et("Style blocks cannot appear after the first cue.");continue}Pt||gt.push(bt.join(` +`,$}var parseString_1=parseString;const TOMLParser=tomlParserExports,prettyError=parsePrettyError;function parseString($){globalThis.Buffer&&globalThis.Buffer.isBuffer($)&&($=$.toString("utf8"));const _e=new TOMLParser;try{return _e.parse($),_e.finish()}catch(et){throw prettyError(et,$)}}const parseToml=getDefaultExportFromCjs(parseString_1);var isMergeableObject=function $(_e){return isNonNullObject(_e)&&!isSpecial(_e)};function isNonNullObject($){return!!$&&typeof $=="object"}function isSpecial($){var _e=Object.prototype.toString.call($);return _e==="[object RegExp]"||_e==="[object Date]"||isReactElement($)}var canUseSymbol=typeof Symbol=="function"&&Symbol.for,REACT_ELEMENT_TYPE=canUseSymbol?Symbol.for("react.element"):60103;function isReactElement($){return $.$$typeof===REACT_ELEMENT_TYPE}function emptyTarget($){return Array.isArray($)?[]:{}}function cloneUnlessOtherwiseSpecified($,_e){return _e.clone!==!1&&_e.isMergeableObject($)?deepmerge$1(emptyTarget($),$,_e):$}function defaultArrayMerge($,_e,et){return $.concat(_e).map(function(tt){return cloneUnlessOtherwiseSpecified(tt,et)})}function getMergeFunction($,_e){if(!_e.customMerge)return deepmerge$1;var et=_e.customMerge($);return typeof et=="function"?et:deepmerge$1}function getEnumerableOwnPropertySymbols($){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols($).filter(function(_e){return Object.propertyIsEnumerable.call($,_e)}):[]}function getKeys($){return Object.keys($).concat(getEnumerableOwnPropertySymbols($))}function propertyIsOnObject($,_e){try{return _e in $}catch{return!1}}function propertyIsUnsafe($,_e){return propertyIsOnObject($,_e)&&!(Object.hasOwnProperty.call($,_e)&&Object.propertyIsEnumerable.call($,_e))}function mergeObject($,_e,et){var tt={};return et.isMergeableObject($)&&getKeys($).forEach(function(nt){tt[nt]=cloneUnlessOtherwiseSpecified($[nt],et)}),getKeys(_e).forEach(function(nt){propertyIsUnsafe($,nt)||(propertyIsOnObject($,nt)&&et.isMergeableObject(_e[nt])?tt[nt]=getMergeFunction(nt,et)($[nt],_e[nt],et):tt[nt]=cloneUnlessOtherwiseSpecified(_e[nt],et))}),tt}function deepmerge$1($,_e,et){et=et||{},et.arrayMerge=et.arrayMerge||defaultArrayMerge,et.isMergeableObject=et.isMergeableObject||isMergeableObject,et.cloneUnlessOtherwiseSpecified=cloneUnlessOtherwiseSpecified;var tt=Array.isArray(_e),nt=Array.isArray($),rt=tt===nt;return rt?tt?et.arrayMerge($,_e,et):mergeObject($,_e,et):cloneUnlessOtherwiseSpecified(_e,et)}deepmerge$1.all=function $(_e,et){if(!Array.isArray(_e))throw new Error("first argument should be an array");return _e.reduce(function(tt,nt){return deepmerge$1(tt,nt,et)},{})};var deepmerge_1=deepmerge$1,cjs$1=deepmerge_1;const deepmerge$2=getDefaultExportFromCjs(cjs$1);var define_import_meta_env_default={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1,VITE_GIT_COMMIT_HASH:"fbae57c560a48ba997aa9cf10de3540e3f1d9973",VITE_APP_BUILD_DATE:"2024-05-06T17:19:14.577Z"};const CONTEXT_SETTINGS_FILE="editor-settings.toml",SRC_SERVER="src-server",SRC_URL="src-url",defaultSettings={id:void 0,allowedCallbackPrefixes:[],callbackUrl:void 0,callbackSystem:void 0,opencast:{url:window.location.origin,name:void 0,password:void 0,local:!0},metadata:{show:!0,configureFields:void 0},trackSelection:{show:!0},thumbnail:{show:!1,simpleMode:!1},subtitles:{show:!1,mainFlavor:"captions",languages:{},icons:void 0,defaultVideoFlavor:void 0}};let configFileSettings,urlParameterSettings,settings;const init=async()=>{let $=window.localStorage.getItem("colorScheme");if($===null||!["light","dark","light-high-contrast","dark-high-contrast"].includes($)){const tt=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",nt=window.matchMedia("(prefers-contrast: more)").matches?"-high-contrast":"";$=`${tt}${nt}`}document.documentElement.dataset.colorScheme=$,await loadContextSettings().then(tt=>{configFileSettings=validate(tt,!1,SRC_SERVER,"from server settings file")});const _e=new URLSearchParams(window.location.search),et={};_e.forEach((tt,nt)=>{let rt=et;if(nt.startsWith("opencast.")||nt==="allowedCallbackPrefixes")return;nt==="mediaPackageId"&&(nt="id");const ot=nt.split(".");ot.slice(0,-1).forEach(it=>{it in rt||(rt[it]={}),rt=rt[it]}),rt[ot[ot.length-1]]=tt}),urlParameterSettings=validate(et,!0,SRC_URL,"given as URL GET parameter"),settings=merge$1.all([defaultSettings,configFileSettings,urlParameterSettings]),settings.opencast.local=settings.opencast.local&&settings.opencast.url===window.location.origin,settings.callbackUrl=settings.allowedCallbackPrefixes.some(tt=>{var nt;return(nt=settings.callbackUrl)==null?void 0:nt.startsWith(tt)})?settings.callbackUrl:void 0},loadContextSettings=async()=>{var rt;let $="./";$.endsWith("/")||($+="/");const _e=define_import_meta_env_default.VITE_APP_SETTINGS_PATH||CONTEXT_SETTINGS_FILE,et=_e.startsWith("/")?"":$,tt=new URL(et.concat(_e),window.location.origin);let nt;try{nt=await fetch(tt)}catch(ot){return console.warn(`Could not access "${_e}" due to network error!`,ot||""),null}if(nt.status===404)return console.debug(`"${_e}" returned 404: ignoring`),null;if(!nt.ok)return console.error(`Fetching "${_e}" failed: ${nt.status} ${nt.statusText}`),null;if((rt=nt.headers.get("Content-Type"))!=null&&rt.startsWith("text/html"))return console.warn(`"${_e}" request has "Content-Type: text/html" -> ignoring...`),null;try{return parseToml(await nt.text())}catch(ot){throw console.error(`Could not parse "${_e}" as TOML: `,ot),new SyntaxError(`Could not parse "${_e}" as TOML: ${ot}`)}},validate=($,_e,et,tt)=>{const nt=(it,st,lt)=>typeof it=="function"?rt(it,st,lt):ot(it,st,lt),rt=(it,st,lt)=>{try{const ct=it(st,_e,et);return ct===void 0?st:ct}catch(ct){return console.warn(`Validation of setting "${lt}" (${tt}) with value "${st}" failed: ${ct}. Ignoring.`),null}},ot=(it,st,lt)=>{const ct={};for(const ft in st){const dt=lt?`${lt}.${ft}`:ft;if(ft in it){const pt=nt(it[ft],st[ft],dt);pt!==null&&(ct[ft]=pt)}else console.warn(`"${dt}" (${tt}) is not a valid settings key. Ignoring.`)}return ct};return nt(SCHEMA,$,"")},types={string:($,_e)=>{if(typeof $!="string")throw new Error("is not a string, but should be")},boolean:($,_e)=>{if(typeof $!="boolean")if(_e){if($==="true")return!0;if($==="false")return!1;throw new Error("cant be parsed as boolean")}else throw new Error("is not a boolean")},array:($,_e)=>{if(!Array.isArray($))throw new Error("is not an array, but should be");for(const et in $)if(typeof et!="string")throw new Error("is not a string, but should be")},map:($,_e)=>{for(const et in $){if(typeof et!="string")throw new Error("is not a string, but should be");if(typeof $[et]!="string")throw new Error("is not a string, but should be")}},objectsWithinObjects:($,_e)=>{for(const et in $){if(typeof et!="string")throw new Error("is not a string, but should be");for(const tt in $[et]){if(typeof tt!="string")throw new Error("is not a string, but should be");for(const nt in $[et][tt]){if(typeof nt!="string")throw new Error("is not a string, but should be");if(nt==="show"&&typeof $[et][tt][nt]!="boolean")throw new Error("is not a boolean");if(nt==="readonly"&&typeof $[et][tt][nt]!="boolean")throw new Error("is not a boolean")}}}}},SCHEMA={id:types.string,allowedCallbackPrefixes:types.array,callbackUrl:types.string,callbackSystem:types.string,opencast:{url:types.string,name:types.string,password:types.string},metadata:{show:types.boolean,configureFields:types.objectsWithinObjects},trackSelection:{show:types.boolean},subtitles:{show:types.boolean,mainFlavor:types.string,languages:types.objectsWithinObjects,icons:types.map,defaultVideoFlavor:types.map},thumbnail:{show:types.boolean,simpleMode:types.boolean}},merge$1=($,_e)=>deepmerge$2($,_e,{arrayMerge});merge$1.all=$=>deepmerge$2.all($,{arrayMerge});const arrayMerge=($,_e,et)=>_e;async function client($,{body:_e,...et}={}){const tt={"Content-Type":"application/json"};let nt={};settings.opencast.name&&settings.opencast.password&&(nt={Authorization:`Basic ${btoa(unescape(encodeURIComponent(settings.opencast.name+":"+settings.opencast.password)))}`});const rt={method:_e?"POST":"GET",...et,headers:{...tt,...et.headers,...nt}};_e&&(rt.headers["Content-Type"].includes("urlencoded")?rt.body=_e:rt.body=JSON.stringify(_e));let ot,it,st;try{if(st=await window.fetch($,rt),it=await st.text(),st.url.includes("login.html"))throw new Error("Got redirected to login page, authentification failed.");if(st.ok)return ot=it.length?it:"",ot;throw new Error(st.statusText)}catch(lt){return Promise.reject(st.status?"Status "+st.status+": "+it:lt.message)}}client.get=function($,_e={}){return client($,{..._e,method:"GET"})};client.post=function($,_e,et={}){return client($,{...et,body:_e})};client.delete=function($,_e={}){return client($,{..._e,method:"DELETE"})};var parser={};(function($){(function(){var _e={direction:"horizontal",snapToLines:!0,linePosition:"auto",lineAlign:"start",textPosition:"auto",positionAlign:"auto",size:100,alignment:"center"},et=function(it){it||(it={"&":"&","<":"<",">":">","&lrm":"‎","&rlm":"‏"," ":" "}),this.entities=it,this.parse=function(st,lt){st=st.replace(/\0/g,"�");var ct=/\r\n|\r|\n/,ft=Date.now(),dt=0,pt=st.split(ct),ht=!1,gt=[],yt=[],vt=[];function Et(kt,Nt){vt.push({message:kt,line:dt+1,col:Nt})}var Tt=pt[dt],Ot=Tt.length,wt="WEBVTT",$t=0,xt=wt.length;for(Tt[0]==="\uFEFF"&&($t=1,xt+=1),(Otxt&&Tt[xt]!==" "&&Tt[xt]!==" ")&&Et('No valid signature. (File needs to start with "WEBVTT".)'),dt++;pt[dt]!=""&&pt[dt]!=null;){if(Et("No blank line after the signature."),pt[dt].indexOf("-->")!=-1){ht=!0;break}dt++}for(;pt[dt]!=null;){for(var mt;!ht&&pt[dt]=="";)dt++;if(!ht&&pt[dt]==null)break;mt=Object.assign({},_e,{id:"",startTime:0,endTime:0,pauseOnExit:!1,direction:"horizontal",snapToLines:!0,linePosition:"auto",lineAlign:"start",textPosition:"auto",positionAlign:"auto",size:100,alignment:"center",text:"",tree:null});var Ct=!0;if(pt[dt].indexOf("-->")==-1){if(mt.id=pt[dt],/^NOTE($|[ \t])/.test(mt.id)){for(dt++;pt[dt]!=""&&pt[dt]!=null;)pt[dt].indexOf("-->")!=-1&&Et("Cannot have timestamp in a comment."),dt++;continue}if(/^STYLE($|[ \t])/.test(mt.id)){var bt=[],Pt=!1;for(dt++;pt[dt]!=""&&pt[dt]!=null;)pt[dt].indexOf("-->")!=-1&&(Et("Cannot have timestamp in a style block."),Pt=!0),bt.push(pt[dt]),dt++;if(yt.length){Et("Style blocks cannot appear after the first cue.");continue}Pt||gt.push(bt.join(` `));continue}if(dt++,pt[dt]==""||pt[dt]==null){Et("Cue identifier cannot be standalone.");continue}if(pt[dt].indexOf("-->")==-1){Ct=!1,Et("Cue identifier needs to be followed by timestamp.");continue}}ht=!1;var It=new tt(pt[dt],Et),Mt=0;if(yt.length>0&&(Mt=yt[yt.length-1].startTime),Ct&&!It.parse(mt,Mt)){for(mt=null,dt++;pt[dt]!=""&&pt[dt]!=null;){if(pt[dt].indexOf("-->")!=-1){ht=!0;break}dt++}continue}for(dt++;pt[dt]!=""&&pt[dt]!=null;){if(pt[dt].indexOf("-->")!=-1){Et("Blank line missing before cue."),ht=!0;break}mt.text!=""&&(mt.text+=` -`),mt.text+=pt[dt],dt++}var Rt=new nt(mt.text,Et,lt,it);mt.tree=Rt.parse(mt.startTime,mt.endTime),yt.push(mt)}return yt.sort(function(kt,Nt){return kt.startTimeNt.startTime?1:kt.endTime>Nt.endTime?-1:kt.endTime2||parseInt(Tt,10)>59)&&(Et="hours"),ft[dt]!=":"){pt("No time unit separator found.");return}if(dt++,Ot=gt(/\d/),Ot.length!=2){pt("Must be exactly two digits.");return}if(Et=="hours"||ft[dt]==":"){if(ft[dt]!=":"){pt("No seconds found or minutes is greater than 59.");return}if(dt++,xt=gt(/\d/),xt.length!=2){pt("Must be exactly two digits.");return}}else{if(Tt.length!=2){pt("Must be exactly two digits.");return}xt=Ot,Ot=Tt,Tt="0"}if(ft[dt]!="."){pt('No decimal separator (".") found.');return}if(dt++,$t=gt(/\d/),$t.length!=3){pt("Milliseconds must be given in three digits.");return}if(parseInt(Ot,10)>59){pt("You cannot have more than 59 minutes.");return}if(parseInt(xt,10)>59){pt("You cannot have more than 59 seconds.");return}return parseInt(Tt,10)*60*60+parseInt(Ot,10)*60+parseInt(xt,10)+parseInt($t,10)/1e3}function vt(Et,Tt){for(var Ot=Et.split(lt),xt=[],$t=0;$t100)){pt("Line position cannot be >100%.");continue}if(It===""||isNaN(It)||!isFinite(It)){pt("Line position needs to be a number");continue}if(Pt!==void 0){if(!["start","center","end"].includes(Pt)){pt("Line alignment needs to be one of start, center or end");continue}Tt.lineAlign=Pt}Tt.snapToLines=!Mt,Tt.linePosition=parseFloat(It),parseFloat(It).toString()!==It&&(Tt.nonSerializable=!0)}else if(mt=="position"){if(/,/.test(Ct)){var bt=Ct.split(",");Ct=bt[0];var Rt=bt[1]}if(Ct[Ct.length-1]!="%"){pt("Text position must be a percentage.");continue}if(parseInt(Ct,10)>100||parseInt(Ct,10)<0){pt("Text position needs to be between 0 and 100%.");continue}if(It=Ct.slice(0,Ct.length-1),It===""||isNaN(It)||!isFinite(It)){pt("Line position needs to be a number");continue}if(Rt!==void 0){if(!["line-left","center","line-right"].includes(Rt)){pt("Position alignment needs to be one of line-left, center or line-right");continue}Tt.positionAlign=Rt}Tt.textPosition=parseFloat(It)}else if(mt=="size"){if(Ct[Ct.length-1]!="%"){pt("Size must be a percentage.");continue}if(parseInt(Ct,10)>100){pt("Size cannot be >100%.");continue}var kt=Ct.slice(0,Ct.length-1);if(kt===void 0||kt===""||isNaN(kt)){pt("Size needs to be a number"),kt=100;continue}else if(kt=parseFloat(kt),kt<0||kt>100){pt("Size needs to be between 0 and 100%.");continue}Tt.size=kt}else if(mt=="align"){var Nt=["start","center","end","left","right"];if(Nt.indexOf(Ct)==-1){pt("Alignment can only be set to one of "+Nt.join(", ")+".");continue}Tt.alignment=Ct}else pt("Invalid setting.")}}this.parse=function(Et,Tt){if(ht(lt),Et.startTime=yt(),Et.startTime!=null){if(Et.startTime' by whitespace."),ht(lt),ft[dt]!="-"){pt("No valid timestamp separator found.");return}if(dt++,ft[dt]!="-"){pt("No valid timestamp separator found.");return}if(dt++,ft[dt]!=">"){pt("No valid timestamp separator found.");return}if(dt++,ct.test(ft[dt])&&pt("'-->' not separated from timestamp by whitespace."),ht(lt),Et.endTime=yt(),Et.endTime!=null)return Et.endTime<=Et.startTime&&pt("End timestamp is not greater than start timestamp."),ct.test(ft[dt]),ht(lt),vt(ft.substring(dt),Et),!0}},this.parseTimestamp=function(){var Et=yt();if(ft[dt]!=null){pt("Timestamp must not have trailing characters.");return}return Et}},nt=function(dt,st,lt,ct){this.entities=ct;var ft=this,dt=dt,pt=0,ht=function(yt){lt!="metadata"&&st(yt,pt+1)};this.parse=function(yt,vt){function Et(It){const Mt={...It};return It.children&&(Mt.children=It.children.map(Et)),Mt.parent&&delete Mt.parent,Mt}var Tt={children:[]},Ot=Tt,xt=[];function $t(It){Ot.children.push({type:"object",name:It[1],classes:It[2],children:[],parent:Ot}),Ot=Ot.children[Ot.children.length-1]}function wt(It){for(var Mt=Ot;Mt;){if(Mt.name==It)return!0;Mt=Mt.parent}}for(;dt[pt]!=null;){var mt=gt();if(mt[0]=="text")Ot.children.push({type:"text",value:mt[1],parent:Ot});else if(mt[0]=="start tag"){lt=="chapters"&&ht("Start tags not allowed in chapter title text.");var Ct=mt[1];Ct!="v"&&Ct!="lang"&&mt[3]!=""&&ht("Only and can have an annotation."),Ct=="c"||Ct=="i"||Ct=="b"||Ct=="u"||Ct=="ruby"||Ct=="rt"&&Ot.name=="ruby"?$t(mt):Ct=="v"?(wt("v")&&ht(" cannot be nested inside itself."),$t(mt),Ot.value=mt[3],mt[3]||ht(" requires an annotation.")):Ct=="lang"?($t(mt),Ot.value=mt[3]):ht("Incorrect start tag.")}else if(mt[0]=="end tag")lt=="chapters"&&ht("End tags not allowed in chapter title text."),mt[1]==Ot.name?Ot=Ot.parent:mt[1]=="ruby"&&Ot.name=="rt"?Ot=Ot.parent.parent:ht("Incorrect end tag.");else if(mt[0]=="timestamp"){lt=="chapters"&&ht("Timestamp not allowed in chapter title text.");var bt=new tt(mt[1],ht),Pt=bt.parseTimestamp();Pt!=null&&((Pt<=yt||Pt>=vt)&&ht("Timestamp must be between start timestamp and end timestamp."),xt.length>0&&xt[xt.length-1]>=Pt&&ht("Timestamp must be greater than any previous timestamp."),Ot.children.push({type:"timestamp",value:Pt,parent:Ot}),xt.push(Pt))}}for(;Ot.parent;)Ot.name!="v"&&ht("Required end tag missing."),Ot=Ot.parent;return Et(Tt)};function gt(){for(var yt="data",vt="",Et="",Tt=[];dt[pt-1]!=null||pt==0;){var Ot=dt[pt];if(yt=="data")if(Ot=="&")Et=Ot,yt="escape";else if(Ot=="<"&&vt=="")yt="tag";else{if(Ot=="<"||Ot==null)return["text",vt];vt+=Ot}else if(yt=="escape")if(Ot=="<"||Ot==null){ht("Incorrect escape.");let xt;return(xt=Et.match(/^&#([0-9]+)$/))?vt+=String.fromCharCode(xt[1]):ft.entities[Et]?vt+=ft.entities[Et]:vt+=Et,["text",vt]}else if(Ot=="&")ht("Incorrect escape."),vt+=Et,Et=Ot;else if(/[a-z#0-9]/i.test(Ot))Et+=Ot;else if(Ot==";"){let xt;(xt=Et.match(/^&#(x?[0-9]+)$/))?vt+=String.fromCharCode("0"+xt[1]):ft.entities[Et+Ot]?vt+=ft.entities[Et+Ot]:(xt=Object.keys(ct).find($t=>Et.startsWith($t)))?vt+=ft.entities[xt]+Et.slice(xt.length)+Ot:(ht("Incorrect escape."),vt+=Et+";"),yt="data"}else ht("Incorrect escape."),vt+=Et+Ot,yt="data";else if(yt=="tag")if(Ot==" "||Ot==` +`),mt.text+=pt[dt],dt++}var Rt=new nt(mt.text,Et,lt,it);mt.tree=Rt.parse(mt.startTime,mt.endTime),yt.push(mt)}return yt.sort(function(kt,Nt){return kt.startTimeNt.startTime?1:kt.endTime>Nt.endTime?-1:kt.endTime2||parseInt(Tt,10)>59)&&(Et="hours"),ft[dt]!=":"){pt("No time unit separator found.");return}if(dt++,Ot=gt(/\d/),Ot.length!=2){pt("Must be exactly two digits.");return}if(Et=="hours"||ft[dt]==":"){if(ft[dt]!=":"){pt("No seconds found or minutes is greater than 59.");return}if(dt++,wt=gt(/\d/),wt.length!=2){pt("Must be exactly two digits.");return}}else{if(Tt.length!=2){pt("Must be exactly two digits.");return}wt=Ot,Ot=Tt,Tt="0"}if(ft[dt]!="."){pt('No decimal separator (".") found.');return}if(dt++,$t=gt(/\d/),$t.length!=3){pt("Milliseconds must be given in three digits.");return}if(parseInt(Ot,10)>59){pt("You cannot have more than 59 minutes.");return}if(parseInt(wt,10)>59){pt("You cannot have more than 59 seconds.");return}return parseInt(Tt,10)*60*60+parseInt(Ot,10)*60+parseInt(wt,10)+parseInt($t,10)/1e3}function vt(Et,Tt){for(var Ot=Et.split(lt),wt=[],$t=0;$t100)){pt("Line position cannot be >100%.");continue}if(It===""||isNaN(It)||!isFinite(It)){pt("Line position needs to be a number");continue}if(Pt!==void 0){if(!["start","center","end"].includes(Pt)){pt("Line alignment needs to be one of start, center or end");continue}Tt.lineAlign=Pt}Tt.snapToLines=!Mt,Tt.linePosition=parseFloat(It),parseFloat(It).toString()!==It&&(Tt.nonSerializable=!0)}else if(mt=="position"){if(/,/.test(Ct)){var bt=Ct.split(",");Ct=bt[0];var Rt=bt[1]}if(Ct[Ct.length-1]!="%"){pt("Text position must be a percentage.");continue}if(parseInt(Ct,10)>100||parseInt(Ct,10)<0){pt("Text position needs to be between 0 and 100%.");continue}if(It=Ct.slice(0,Ct.length-1),It===""||isNaN(It)||!isFinite(It)){pt("Line position needs to be a number");continue}if(Rt!==void 0){if(!["line-left","center","line-right"].includes(Rt)){pt("Position alignment needs to be one of line-left, center or line-right");continue}Tt.positionAlign=Rt}Tt.textPosition=parseFloat(It)}else if(mt=="size"){if(Ct[Ct.length-1]!="%"){pt("Size must be a percentage.");continue}if(parseInt(Ct,10)>100){pt("Size cannot be >100%.");continue}var kt=Ct.slice(0,Ct.length-1);if(kt===void 0||kt===""||isNaN(kt)){pt("Size needs to be a number"),kt=100;continue}else if(kt=parseFloat(kt),kt<0||kt>100){pt("Size needs to be between 0 and 100%.");continue}Tt.size=kt}else if(mt=="align"){var Nt=["start","center","end","left","right"];if(Nt.indexOf(Ct)==-1){pt("Alignment can only be set to one of "+Nt.join(", ")+".");continue}Tt.alignment=Ct}else pt("Invalid setting.")}}this.parse=function(Et,Tt){if(ht(lt),Et.startTime=yt(),Et.startTime!=null){if(Et.startTime' by whitespace."),ht(lt),ft[dt]!="-"){pt("No valid timestamp separator found.");return}if(dt++,ft[dt]!="-"){pt("No valid timestamp separator found.");return}if(dt++,ft[dt]!=">"){pt("No valid timestamp separator found.");return}if(dt++,ct.test(ft[dt])&&pt("'-->' not separated from timestamp by whitespace."),ht(lt),Et.endTime=yt(),Et.endTime!=null)return Et.endTime<=Et.startTime&&pt("End timestamp is not greater than start timestamp."),ct.test(ft[dt]),ht(lt),vt(ft.substring(dt),Et),!0}},this.parseTimestamp=function(){var Et=yt();if(ft[dt]!=null){pt("Timestamp must not have trailing characters.");return}return Et}},nt=function(dt,st,lt,ct){this.entities=ct;var ft=this,dt=dt,pt=0,ht=function(yt){lt!="metadata"&&st(yt,pt+1)};this.parse=function(yt,vt){function Et(It){const Mt={...It};return It.children&&(Mt.children=It.children.map(Et)),Mt.parent&&delete Mt.parent,Mt}var Tt={children:[]},Ot=Tt,wt=[];function $t(It){Ot.children.push({type:"object",name:It[1],classes:It[2],children:[],parent:Ot}),Ot=Ot.children[Ot.children.length-1]}function xt(It){for(var Mt=Ot;Mt;){if(Mt.name==It)return!0;Mt=Mt.parent}}for(;dt[pt]!=null;){var mt=gt();if(mt[0]=="text")Ot.children.push({type:"text",value:mt[1],parent:Ot});else if(mt[0]=="start tag"){lt=="chapters"&&ht("Start tags not allowed in chapter title text.");var Ct=mt[1];Ct!="v"&&Ct!="lang"&&mt[3]!=""&&ht("Only and can have an annotation."),Ct=="c"||Ct=="i"||Ct=="b"||Ct=="u"||Ct=="ruby"||Ct=="rt"&&Ot.name=="ruby"?$t(mt):Ct=="v"?(xt("v")&&ht(" cannot be nested inside itself."),$t(mt),Ot.value=mt[3],mt[3]||ht(" requires an annotation.")):Ct=="lang"?($t(mt),Ot.value=mt[3]):ht("Incorrect start tag.")}else if(mt[0]=="end tag")lt=="chapters"&&ht("End tags not allowed in chapter title text."),mt[1]==Ot.name?Ot=Ot.parent:mt[1]=="ruby"&&Ot.name=="rt"?Ot=Ot.parent.parent:ht("Incorrect end tag.");else if(mt[0]=="timestamp"){lt=="chapters"&&ht("Timestamp not allowed in chapter title text.");var bt=new tt(mt[1],ht),Pt=bt.parseTimestamp();Pt!=null&&((Pt<=yt||Pt>=vt)&&ht("Timestamp must be between start timestamp and end timestamp."),wt.length>0&&wt[wt.length-1]>=Pt&&ht("Timestamp must be greater than any previous timestamp."),Ot.children.push({type:"timestamp",value:Pt,parent:Ot}),wt.push(Pt))}}for(;Ot.parent;)Ot.name!="v"&&ht("Required end tag missing."),Ot=Ot.parent;return Et(Tt)};function gt(){for(var yt="data",vt="",Et="",Tt=[];dt[pt-1]!=null||pt==0;){var Ot=dt[pt];if(yt=="data")if(Ot=="&")Et=Ot,yt="escape";else if(Ot=="<"&&vt=="")yt="tag";else{if(Ot=="<"||Ot==null)return["text",vt];vt+=Ot}else if(yt=="escape")if(Ot=="<"||Ot==null){ht("Incorrect escape.");let wt;return(wt=Et.match(/^&#([0-9]+)$/))?vt+=String.fromCharCode(wt[1]):ft.entities[Et]?vt+=ft.entities[Et]:vt+=Et,["text",vt]}else if(Ot=="&")ht("Incorrect escape."),vt+=Et,Et=Ot;else if(/[a-z#0-9]/i.test(Ot))Et+=Ot;else if(Ot==";"){let wt;(wt=Et.match(/^&#(x?[0-9]+)$/))?vt+=String.fromCharCode("0"+wt[1]):ft.entities[Et+Ot]?vt+=ft.entities[Et+Ot]:(wt=Object.keys(ct).find($t=>Et.startsWith($t)))?vt+=ft.entities[wt]+Et.slice(wt.length)+Ot:(ht("Incorrect escape."),vt+=Et+";"),yt="data"}else ht("Incorrect escape."),vt+=Et+Ot,yt="data";else if(yt=="tag")if(Ot==" "||Ot==` `||Ot=="\f"||Ot==" ")yt="start tag annotation";else if(Ot==".")yt="start tag class";else if(Ot=="/")yt="end tag";else if(/\d/.test(Ot))vt=Ot,yt="timestamp tag";else{if(Ot==">"||Ot==null)return Ot==">"&&pt++,["start tag","",[],""];vt=Ot,yt="start tag"}else if(yt=="start tag")if(Ot==" "||Ot=="\f"||Ot==" ")yt="start tag annotation";else if(Ot==` `)Et=Ot,yt="start tag annotation";else if(Ot==".")yt="start tag class";else{if(Ot==">"||Ot==null)return Ot==">"&&pt++,["start tag",vt,[],""];vt+=Ot}else if(yt=="start tag class")if(Ot==" "||Ot=="\f"||Ot==" ")Et&&Tt.push(Et),Et="",yt="start tag annotation";else if(Ot==` -`)Et&&Tt.push(Et),Et=Ot,yt="start tag annotation";else if(Ot==".")Et&&Tt.push(Et),Et="";else{if(Ot==">"||Ot==null)return Ot==">"&&pt++,Et&&Tt.push(Et),["start tag",vt,Tt,""];Et+=Ot}else if(yt=="start tag annotation"){if(Ot==">"||Ot==null)return Ot==">"&&pt++,Et=Et.split(/[\u0020\t\f\r\n]+/).filter(function(xt){if(xt)return!0}).join(" "),["start tag",vt,Tt,Et];Et+=Ot}else if(yt=="end tag"){if(Ot==">"||Ot==null)return Ot==">"&&pt++,["end tag",vt];vt+=Ot}else if(yt=="timestamp tag"){if(Ot==">"||Ot==null)return Ot==">"&&pt++,["timestamp",vt];vt+=Ot}else ht("Never happens.");pt++}}},rt=function(){function it(dt){const pt=("00"+(dt-Math.floor(dt)).toFixed(3)*1e3).slice(-3);let ht=0,gt=0,yt=0;return dt>=3600&&(ht=Math.floor(dt/3600)),gt=Math.floor((dt-3600*ht)/60),yt=Math.floor(dt-3600*ht-60*gt),(ht?ht+":":"")+(""+gt).padStart(2,"0")+":"+(""+yt).padStart(2,"0")+"."+pt}function st(dt){var pt="";const ht=Object.keys(_e).filter(gt=>dt[gt]!==_e[gt]);return ht.includes("direction")&&(pt+=" vertical:"+dt.direction),ht.includes("alignment")&&(pt+=" align:"+dt.alignment),ht.includes("size")&&(pt+=" size:"+dt.size+"%"),(ht.includes("lineAlign")||ht.includes("linePosition"))&&(pt+=" line:"+dt.linePosition+(dt.snapToLines?"":"%")+(dt.lineAlign&&dt.lineAlign!=_e.lineAlign?","+dt.lineAlign:"")),(ht.includes("textPosition")||ht.includes("positionAlign"))&&(pt+=" position:"+dt.textPosition+"%"+(dt.positionAlign&&dt.positionAlign!==_e.positionAlign?","+dt.positionAlign:"")),pt}function lt(dt){for(var pt="",ht=0;ht/g,">");else if(gt.type=="object"){if(pt+="<"+gt.name,gt.classes)for(var yt=0;yt"}else gt.type=="timestamp"?pt+="<"+it(gt.value)+">":pt+="<"+gt.value+">"}return pt}function ct(dt){return(dt.id!==void 0?dt.id+` +`)Et&&Tt.push(Et),Et=Ot,yt="start tag annotation";else if(Ot==".")Et&&Tt.push(Et),Et="";else{if(Ot==">"||Ot==null)return Ot==">"&&pt++,Et&&Tt.push(Et),["start tag",vt,Tt,""];Et+=Ot}else if(yt=="start tag annotation"){if(Ot==">"||Ot==null)return Ot==">"&&pt++,Et=Et.split(/[\u0020\t\f\r\n]+/).filter(function(wt){if(wt)return!0}).join(" "),["start tag",vt,Tt,Et];Et+=Ot}else if(yt=="end tag"){if(Ot==">"||Ot==null)return Ot==">"&&pt++,["end tag",vt];vt+=Ot}else if(yt=="timestamp tag"){if(Ot==">"||Ot==null)return Ot==">"&&pt++,["timestamp",vt];vt+=Ot}else ht("Never happens.");pt++}}},rt=function(){function it(dt){const pt=("00"+(dt-Math.floor(dt)).toFixed(3)*1e3).slice(-3);let ht=0,gt=0,yt=0;return dt>=3600&&(ht=Math.floor(dt/3600)),gt=Math.floor((dt-3600*ht)/60),yt=Math.floor(dt-3600*ht-60*gt),(ht?ht+":":"")+(""+gt).padStart(2,"0")+":"+(""+yt).padStart(2,"0")+"."+pt}function st(dt){var pt="";const ht=Object.keys(_e).filter(gt=>dt[gt]!==_e[gt]);return ht.includes("direction")&&(pt+=" vertical:"+dt.direction),ht.includes("alignment")&&(pt+=" align:"+dt.alignment),ht.includes("size")&&(pt+=" size:"+dt.size+"%"),(ht.includes("lineAlign")||ht.includes("linePosition"))&&(pt+=" line:"+dt.linePosition+(dt.snapToLines?"":"%")+(dt.lineAlign&&dt.lineAlign!=_e.lineAlign?","+dt.lineAlign:"")),(ht.includes("textPosition")||ht.includes("positionAlign"))&&(pt+=" position:"+dt.textPosition+"%"+(dt.positionAlign&&dt.positionAlign!==_e.positionAlign?","+dt.positionAlign:"")),pt}function lt(dt){for(var pt="",ht=0;ht/g,">");else if(gt.type=="object"){if(pt+="<"+gt.name,gt.classes)for(var yt=0;yt"}else gt.type=="timestamp"?pt+="<"+it(gt.value)+">":pt+="<"+gt.value+">"}return pt}function ct(dt){return(dt.id!==void 0?dt.id+` `:"")+it(dt.startTime)+" --> "+it(dt.endTime)+st(dt)+` `+lt(dt.tree.children)+` @@ -65,7 +65,7 @@ Error generating stack: `+rt.message+` `}this.serialize=function(dt,pt){var ht=`WEBVTT `;if(pt)for(var gt=0;gt{const et=Math.pow(10,_e);return Math.round(($+Number.EPSILON)*et)/et},sleep=$=>new Promise((_e,et)=>setTimeout(_e,$)),convertMsToReadableString=$=>{const _e=new Date($||0).toISOString().substr(11,2),et=new Date($||0).toISOString().substr(14,2),tt=new Date($||0).toISOString().substr(17,2),nt=[];return parseInt(_e)>0&&nt.push(_e+" hours, "),(parseInt(et)>0||parseInt(_e)>0)&&nt.push(et+" minutes, "),nt.push(tt+" seconds"),nt.join("")};let flexGapIsSupported;function checkFlexGapSupport(){if(flexGapIsSupported!==void 0)return flexGapIsSupported;const $=document.createElement("div");return $.style.display="flex",$.style.flexDirection="column",$.style.rowGap="1px",$.style.position="absolute",$.appendChild(document.createElement("div")),$.appendChild(document.createElement("div")),document.body.appendChild($),flexGapIsSupported=$.scrollHeight===1,$.parentNode&&$.parentNode.removeChild($),flexGapIsSupported}function serializeSubtitle($){const _e=new parser.WebVTTSerializer;let et=0;const tt=[...$];for(let nt of $)nt={...nt},nt.startTime=nt.startTime/1e3,nt.endTime=nt.endTime/1e3,nt={id:nt.id?nt.id:void 0,idInternal:nt.idInternal,text:nt.text,startTime:nt.startTime,endTime:nt.endTime,tree:nt.tree,alignment:"center",direction:"horizontal",lineAlign:"start",linePosition:"auto",positionAlign:"auto",size:100,textPosition:"auto"},tt[et]=nt,et++;return _e.serialize(tt)}function parseSubtitle($){const et=new parser.WebVTTParser().parse($,"metadata");if(et.errors.length!==0){const nt=[];for(const rt of et.errors)nt.push("On line: "+rt.line+" col: "+rt.col+" error occured: "+rt.message);throw new Error(nt.join(` -`))}let tt=0;for(const nt of et.cues)nt.id||(nt.idInternal=nanoid(),et.cues[tt]=nt),nt.startTime=nt.startTime*1e3,nt.endTime=nt.endTime*1e3,et.cues[tt]=nt,tt++;return et.cues}function languageCodeToName($){if(!$)return;const _e=window.navigator.language,et=new Intl.DisplayNames(_e,{type:"language"});try{return et.of($.trim())}catch{return}}function useInterval($,_e){const et=reactExports.useRef(null);reactExports.useEffect(()=>{et.current=$}),reactExports.useEffect(()=>{function tt(){et.current!==null&&et.current()}if(_e!==null){const nt=setInterval(tt,_e);return()=>{clearInterval(nt)}}},[$,_e])}const initialState$6={isPlaying:!1,isPlayPreview:!0,isMuted:!1,volume:1,currentlyAt:0,segments:[{id:nanoid(),start:0,end:1,deleted:!1}],tracks:[],subtitlesFromOpencast:[],activeSegmentIndex:0,selectedWorkflowId:"",previewTriggered:!1,clickTriggered:!1,aspectRatios:[],hasChanges:!1,waveformImages:[],originalThumbnails:[],videoURLs:[],videoCount:0,duration:0,title:"",presenters:[],workflows:[],lockingActive:!1,lockRefresh:null,lockState:!1,lock:{uuid:"",user:""},status:"idle",error:void 0,errorReason:"unknown"},fetchVideoInformation=createAsyncThunk("video/fetchVideoInformation",async()=>{if(!settings.id)throw new Error("Missing media package identifier");const $=await client.get(`${settings.opencast.url}/editor/${settings.id}/edit.json`);return JSON.parse($)}),updateCurrentlyAt$1=($,_e)=>{$.currentlyAt=roundToDecimalPlace(_e,0),$.currentlyAt<0&&($.currentlyAt=0),$.duration!==0&&$.duration<$.currentlyAt&&($.currentlyAt=$.duration),updateActiveSegment($),skipDeletedSegments($)},videoSlice=createSlice({name:"videoState",initialState:initialState$6,reducers:{setTrackEnabled:($,_e)=>{for(const et of $.tracks)et.id===_e.payload.id&&(et.audio_stream.enabled=_e.payload.enabled,et.video_stream.enabled=_e.payload.enabled);$.hasChanges=!0},setIsPlaying:($,_e)=>{$.isPlaying=_e.payload},setIsPlayPreview:($,_e)=>{$.isPlayPreview=_e.payload},setIsMuted:($,_e)=>{$.isMuted=_e.payload},setVolume:($,_e)=>{$.volume=_e.payload},setPreviewTriggered:($,_e)=>{$.previewTriggered=_e.payload},setClickTriggered:($,_e)=>{$.clickTriggered=_e.payload},setCurrentlyAt:($,_e)=>{updateCurrentlyAt$1($,_e.payload)},setCurrentlyAtInSeconds:($,_e)=>{updateCurrentlyAt$1($,roundToDecimalPlace(_e.payload*1e3,0))},addSegment:($,_e)=>{$.segments.push(_e.payload)},setAspectRatio:($,_e)=>{$.aspectRatios[_e.payload.dataKey]={width:_e.payload.width,height:_e.payload.height}},setHasChanges:($,_e)=>{$.hasChanges=_e.payload},setWaveformImages:($,_e)=>{$.waveformImages=_e.payload},setThumbnail:($,_e)=>{setThumbnailHelper($,_e.payload.id,_e.payload.uri)},setThumbnails:($,_e)=>{for(const et of _e.payload)setThumbnailHelper($,et.id,et.uri)},removeThumbnail:($,_e)=>{const et=$.tracks.findIndex(tt=>tt.id===_e.payload);$.tracks[et].thumbnailUri=void 0},setLock:($,_e)=>{$.lockState=_e.payload},cut:$=>{if($.segments[$.activeSegmentIndex].start===$.currentlyAt||$.segments[$.activeSegmentIndex].end===$.currentlyAt)return;const _e={id:nanoid(),start:$.segments[$.activeSegmentIndex].start,end:$.currentlyAt,deleted:$.segments[$.activeSegmentIndex].deleted},et={id:nanoid(),start:$.currentlyAt,end:$.segments[$.activeSegmentIndex].end,deleted:$.segments[$.activeSegmentIndex].deleted};$.segments.splice($.activeSegmentIndex,1,_e,et),$.hasChanges=!0},markAsDeletedOrAlive:$=>{$.segments[$.activeSegmentIndex].deleted=!$.segments[$.activeSegmentIndex].deleted,$.hasChanges=!0},setSelectedWorkflowIndex:($,_e)=>{$.selectedWorkflowId=_e.payload},mergeLeft:$=>{mergeSegments($,$.activeSegmentIndex,$.activeSegmentIndex-1),$.hasChanges=!0},mergeRight:$=>{mergeSegments($,$.activeSegmentIndex,$.activeSegmentIndex+1),$.hasChanges=!0},mergeAll:$=>{mergeSegments($,$.activeSegmentIndex,0),mergeSegments($,$.activeSegmentIndex,$.segments.length-1),$.hasChanges=!0}},extraReducers:$=>{$.addCase(fetchVideoInformation.pending,(_e,et)=>{_e.status="loading"}),$.addCase(fetchVideoInformation.fulfilled,(_e,et)=>{_e.status="success",et.payload.workflow_active&&(_e.status="failed",_e.errorReason="workflowActive",_e.error="This event is being processed. Please wait until the process is finished."),_e.tracks=et.payload.tracks.sort((nt,rt)=>nt.thumbnailPriority-rt.thumbnailPriority).map(nt=>(et.payload.local&&settings.opencast.local&&(console.debug("Replacing track URL"),nt.uri=nt.uri.replace(/https?:\/\/[^/]*/g,window.location.origin)),nt));const tt=_e.tracks.filter(nt=>nt.video_stream.available===!0);_e.videoURLs=tt.reduce((nt,rt)=>(nt.push(rt.uri),nt),[]),_e.videoCount=_e.videoURLs.length,_e.subtitlesFromOpencast=et.payload.subtitles?_e.subtitlesFromOpencast=et.payload.subtitles:[],_e.duration=et.payload.duration,_e.title=et.payload.title,_e.segments=parseSegments(et.payload.segments,et.payload.duration),_e.workflows=et.payload.workflows,_e.waveformImages=et.payload.waveformURIs?et.payload.waveformURIs:_e.waveformImages,_e.originalThumbnails=_e.tracks.map(nt=>({id:nt.id,uri:nt.thumbnailUri})),_e.aspectRatios=new Array(_e.videoCount),_e.lockingActive=et.payload.locking_active,_e.lockRefresh=et.payload.lock_refresh,_e.lock.uuid=et.payload.lock_uuid,_e.lock.user=et.payload.lock_user}),$.addCase(fetchVideoInformation.rejected,(_e,et)=>{_e.status="failed",_e.error=et.error.message})},selectors:{selectIsPlaying:$=>$.isPlaying,selectIsPlayPreview:$=>$.isPlayPreview,selectIsMuted:$=>$.isMuted,selectVolume:$=>$.volume,selectPreviewTriggered:$=>$.previewTriggered,selectClickTriggered:$=>$.clickTriggered,selectCurrentlyAt:$=>$.currentlyAt,selectCurrentlyAtInSeconds:$=>$.currentlyAt/1e3,selectSegments:$=>$.segments,selectActiveSegmentIndex:$=>$.activeSegmentIndex,selectIsCurrentSegmentAlive:$=>!$.segments[$.activeSegmentIndex].deleted,selectSelectedWorkflowId:$=>$.selectedWorkflowId,selectHasChanges:$=>$.hasChanges,selectWaveformImages:$=>$.waveformImages,selectOriginalThumbnails:$=>$.originalThumbnails,selectVideoURL:$=>$.videoURLs,selectVideoCount:$=>$.videoCount,selectDuration:$=>$.duration,selectDurationInSeconds:$=>$.duration/1e3,selectTitle:$=>$.title,selectTracks:$=>$.tracks,selectWorkflows:$=>$.workflows,selectAspectRatio:$=>calculateTotalAspectRatio($.aspectRatios),selectSubtitlesFromOpencast:$=>$.subtitlesFromOpencast,selectSubtitlesFromOpencastById:($,_e)=>{for(const et of $.subtitlesFromOpencast)if(et.id===_e)return et}}}),updateActiveSegment=$=>{$.activeSegmentIndex=$.segments.findIndex(_e=>_e.start<=$.currentlyAt&&_e.end>=$.currentlyAt),$.activeSegmentIndex<0&&($.activeSegmentIndex=0)},parseSegments=($,_e)=>{const et=[];return $.length===0&&et.push({id:nanoid(),start:0,end:_e,deleted:!1}),$.forEach(tt=>{et.push({id:nanoid(),start:tt.start,end:tt.end,deleted:tt.deleted})}),et},mergeSegments=($,_e,et)=>{et<0||et>$.segments.length-1||($.segments[_e].start=Math.min($.segments[_e].start,$.segments[et].start),$.segments[_e].end=Math.max($.segments[_e].end,$.segments[et].end),$.segments.splice(_e{if($.isPlaying&&$.segments[$.activeSegmentIndex].deleted&&$.isPlayPreview){let _e=$.segments[$.activeSegmentIndex].end;for(let et=$.activeSegmentIndex;et<$.segments.length;et++){if(_e=$.segments[et].end,!$.segments[et].deleted){_e=$.segments[et].start+1;break}if(et+1===$.segments.length){$.isPlaying=!1;for(let tt=0;tt<$.segments.length;tt++)if(!$.segments[tt].deleted){_e=$.segments[tt].start;break}}}$.currentlyAt=_e,$.previewTriggered=!0,updateActiveSegment($)}},calculateTotalAspectRatio=$=>{let _e=Math.min(...$.map(tt=>tt.height)),et=Math.min(...$.map(tt=>tt.width));return(!_e||!et)&&(_e=720,et=1280),et*=$.length,Math.min(_e/et*100,9/32*100)},setThumbnailHelper=($,_e,et)=>{const tt=$.tracks.findIndex(nt=>nt.id===_e);tt>=0&&($.tracks[tt].thumbnailUri=et)},{setTrackEnabled,setIsPlaying:setIsPlaying$1,setIsPlayPreview:setIsPlayPreview$1,setIsMuted,setVolume,setCurrentlyAt:setCurrentlyAt$1,setCurrentlyAtInSeconds:setCurrentlyAtInSeconds$1,addSegment,setAspectRatio:setAspectRatio$1,setHasChanges:setHasChanges$2,setWaveformImages,setThumbnails,setThumbnail,removeThumbnail,setLock,cut,markAsDeletedOrAlive,setSelectedWorkflowIndex,mergeLeft,mergeRight,mergeAll,setPreviewTriggered:setPreviewTriggered$1,setClickTriggered:setClickTriggered$1}=videoSlice.actions,selectVideos=createSelector([$=>$.videoState.tracks],$=>$.filter(_e=>_e.video_stream.available===!0)),{selectIsPlaying:selectIsPlaying$1,selectIsPlayPreview:selectIsPlayPreview$1,selectIsMuted,selectVolume,selectPreviewTriggered:selectPreviewTriggered$1,selectClickTriggered:selectClickTriggered$1,selectCurrentlyAt:selectCurrentlyAt$1,selectCurrentlyAtInSeconds:selectCurrentlyAtInSeconds$1,selectSegments,selectActiveSegmentIndex,selectIsCurrentSegmentAlive,selectSelectedWorkflowId,selectHasChanges:selectHasChanges$2,selectWaveformImages,selectOriginalThumbnails,selectVideoURL,selectVideoCount,selectDuration,selectDurationInSeconds,selectTitle,selectTracks,selectWorkflows,selectAspectRatio:selectAspectRatio$1,selectSubtitlesFromOpencast,selectSubtitlesFromOpencastById}=videoSlice.selectors,videoReducer=videoSlice.reducer,initialState$5={status:"idle",error:void 0,errorReason:"unknown"},postVideoInformation=createAsyncThunk("video/postVideoInformation",async $=>{if(!settings.id)throw new Error("Missing media package id");return await client.post(`${settings.opencast.url}/editor/${settings.id}/edit.json`,{segments:convertSegments($.segments),tracks:$.tracks,subtitles:$.subtitles})}),workflowPostSlice=createSlice({name:"workflowPostState",initialState:initialState$5,reducers:{resetPostRequestState:$=>{$.status="idle"}},extraReducers:$=>{$.addCase(postVideoInformation.pending,(_e,et)=>{_e.status="loading"}),$.addCase(postVideoInformation.fulfilled,(_e,et)=>{_e.status="success"}),$.addCase(postVideoInformation.rejected,(_e,et)=>{_e.status="failed",_e.error=et.error.message})},selectors:{selectStatus:$=>$.status,selectError:$=>$.error}}),convertSegments=$=>{const _e=[];return $.forEach(et=>{_e.push({start:et.start,end:et.end,deleted:et.deleted,selected:!1})}),_e},{resetPostRequestState:resetPostRequestState$1}=workflowPostSlice.actions,{selectStatus:selectStatus$1,selectError:selectError$1}=workflowPostSlice.selectors,workflowPostReducer=workflowPostSlice.reducer,initialState$4={status:"idle",error:void 0,errorReason:"unknown"},postVideoInformationWithWorkflow=createAsyncThunk("video/postVideoInformationWithWorkflow",async $=>{if(!settings.id)throw new Error("Missing media package identifier");return await client.post(`${settings.opencast.url}/editor/${settings.id}/edit.json`,{segments:convertSegments($.segments),tracks:$.tracks,subtitles:$.subtitles,workflows:$.workflow})}),workflowPostAndProcessSlice=createSlice({name:"workflowPostAndProcessState",initialState:initialState$4,reducers:{},extraReducers:$=>{$.addCase(postVideoInformationWithWorkflow.pending,(_e,et)=>{_e.status="loading"}),$.addCase(postVideoInformationWithWorkflow.fulfilled,(_e,et)=>{_e.status="success"}),$.addCase(postVideoInformationWithWorkflow.rejected,(_e,et)=>{_e.status="failed",_e.error=et.error.message})},selectors:{selectStatus:$=>$.status,selectError:$=>$.error}}),{selectStatus,selectError}=workflowPostAndProcessSlice.selectors,workflowPostAndProcessReducer=workflowPostAndProcessSlice.reducer,initialState$3={end:!1,value:"success"},endSlice=createSlice({name:"endState",initialState:initialState$3,reducers:{setEnd:($,_e)=>{$.end=_e.payload.hasEnded,$.value=_e.payload.value}},selectors:{selectIsEnd:$=>$.end,selectEndState:$=>$.value}}),{setEnd}=endSlice.actions,{selectIsEnd,selectEndState}=endSlice.selectors,endReducer=endSlice.reducer,initialState$2={catalogs:[],hasChanges:!1,status:"idle",error:void 0,errorReason:"unknown",postStatus:"idle",postError:void 0,postErrorReason:"unknown"},fetchMetadata=createAsyncThunk("metadata/fetchMetadata",async()=>{if(!settings.id)throw new Error("Missing media package identifier");const $=await client.get(`${settings.opencast.url}/editor/${settings.id}/metadata.json`);return JSON.parse($)}),postMetadata=createAsyncThunk("metadata/postMetadata",async($,{getState:_e})=>{if(!settings.id)throw new Error("Missing media package identifier");const et=_e();await client.post(`${settings.opencast.url}/editor/${settings.id}/metadata.json`,et.metadataState.catalogs)}),metadataSlice=createSlice({name:"metadataState",initialState:initialState$2,reducers:{setFieldValue:($,_e)=>{$.catalogs[_e.payload.catalogIndex].fields[_e.payload.fieldIndex].value=_e.payload.value,$.hasChanges=!0},setFieldReadonly:($,_e)=>{$.catalogs[_e.payload.catalogIndex].fields[_e.payload.fieldIndex].readOnly=_e.payload.value},setHasChanges:($,_e)=>{$.hasChanges=_e.payload},resetPostRequestState:$=>{$.postStatus="idle"}},extraReducers:$=>{$.addCase(fetchMetadata.pending,(_e,et)=>{_e.status="loading"}),$.addCase(fetchMetadata.fulfilled,(_e,et)=>{_e.catalogs=et.payload,_e.status="success"}),$.addCase(fetchMetadata.rejected,(_e,et)=>{_e.status="failed",_e.error=et.error.message}),$.addCase(postMetadata.pending,(_e,et)=>{_e.postStatus="loading"}),$.addCase(postMetadata.fulfilled,(_e,et)=>{_e.postStatus="success"}),$.addCase(postMetadata.rejected,(_e,et)=>{_e.postStatus="failed",_e.postError=et.error.message})},selectors:{selectCatalogs:$=>$.catalogs,selectHasChanges:$=>$.hasChanges,selectGetStatus:$=>$.status,selectGetError:$=>$.error,selectPostStatus:$=>$.postStatus,selectPostError:$=>$.postError,selectTitleFromEpisodeDc:$=>{for(const _e of $.catalogs)if(_e.flavor==="dublincore/episode"){for(const et of _e.fields)if(et.id==="title")return et.value}}}}),{setFieldValue,setHasChanges:setHasChanges$1,setFieldReadonly,resetPostRequestState}=metadataSlice.actions,{selectCatalogs,selectHasChanges:selectHasChanges$1,selectGetStatus,selectGetError,selectPostStatus,selectPostError,selectTitleFromEpisodeDc}=metadataSlice.selectors,metadataReducer=metadataSlice.reducer,initialState$1={isDisplayEditView:!1,isPlaying:!1,isPlayPreview:!0,previewTriggered:!1,currentlyAt:0,clickTriggered:!1,subtitles:{},selectedSubtitleId:"",focusSegmentTriggered:!1,focusSegmentId:"",focusSegmentTriggered2:!1,aspectRatios:[],hasChanges:!1},updateCurrentlyAt=($,_e)=>{$.currentlyAt=roundToDecimalPlace(_e,0),$.currentlyAt<0&&($.currentlyAt=0)},subtitleSlice=createSlice({name:"subtitleState",initialState:initialState$1,reducers:{setIsDisplayEditView:($,_e)=>{$.isDisplayEditView=_e.payload},setIsPlaying:($,_e)=>{$.isPlaying=_e.payload},setIsPlayPreview:($,_e)=>{$.isPlayPreview=_e.payload},setPreviewTriggered:($,_e)=>{$.previewTriggered=_e.payload},setCurrentlyAt:($,_e)=>{updateCurrentlyAt($,_e.payload)},setCurrentlyAtInSeconds:($,_e)=>{updateCurrentlyAt($,roundToDecimalPlace(_e.payload*1e3,0))},setClickTriggered:($,_e)=>{$.clickTriggered=_e.payload},setSubtitle:($,_e)=>{$.subtitles[_e.payload.identifier]=_e.payload.subtitles},setCueAtIndex:($,_e)=>{if(_e.payload.cueIndex<0||_e.payload.cueIndex>=$.subtitles[_e.payload.identifier].cues.length){console.warn("Tried to set segment for subtitle "+_e.payload.identifier+" but was out of range");return}const et=$.subtitles[_e.payload.identifier].cues[_e.payload.cueIndex];et.id=_e.payload.newCue.id,et.idInternal=_e.payload.newCue.idInternal,et.text=_e.payload.newCue.text,et.startTime=Math.round(_e.payload.newCue.startTime),et.endTime=Math.round(_e.payload.newCue.endTime),et.tree.children.length<=0&&(et.tree.children[0]={type:"text",value:_e.payload.newCue.text}),et.tree.children[0].value=_e.payload.newCue.text,$.subtitles[_e.payload.identifier].cues[_e.payload.cueIndex]=et,sortSubtitle($,_e.payload.identifier),$.hasChanges=!0},addCueAtIndex:($,_e)=>{const et=_e.payload.startTime>=0?_e.payload.startTime:0,tt={id:void 0,idInternal:nanoid(),text:_e.payload.text,startTime:Math.round(et),endTime:Math.round(_e.payload.endTime),tree:{children:[{type:"text",value:_e.payload.text}]}};$.focusSegmentTriggered=!0,$.focusSegmentTriggered2=!0,$.focusSegmentId=tt.idInternal,_e.payload.cueIndex<0&&$.subtitles[_e.payload.identifier].cues.splice(0,0,tt),(_e.payload.cueIndex>=0||_e.payload.cueIndex<$.subtitles[_e.payload.identifier].cues.length)&&$.subtitles[_e.payload.identifier].cues.splice(_e.payload.cueIndex,0,tt),_e.payload.cueIndex>=$.subtitles[_e.payload.identifier].cues.length&&$.subtitles[_e.payload.identifier].cues.push(tt),sortSubtitle($,_e.payload.identifier),$.hasChanges=!0},removeCue:($,_e)=>{const et=$.subtitles[_e.payload.identifier].cues.findIndex(tt=>tt.idInternal===_e.payload.cue.idInternal);et>-1&&$.subtitles[_e.payload.identifier].cues.splice(et,1),sortSubtitle($,_e.payload.identifier),$.hasChanges=!0},setSelectedSubtitleId:($,_e)=>{$.selectedSubtitleId=_e.payload},setFocusSegmentTriggered:($,_e)=>{$.focusSegmentTriggered=_e.payload,$.focusSegmentTriggered2=_e.payload},setFocusSegmentId:($,_e)=>{$.focusSegmentId=_e.payload},setFocusSegmentTriggered2:($,_e)=>{$.focusSegmentTriggered2=_e.payload},setFocusToSegmentAboveId:($,_e)=>{let et=$.subtitles[_e.payload.identifier].cues.findIndex(tt=>tt.idInternal===_e.payload.segmentId);et=et-1,et<0&&(et=0),$.focusSegmentId=$.subtitles[_e.payload.identifier].cues[et].idInternal},setFocusToSegmentBelowId:($,_e)=>{let et=$.subtitles[_e.payload.identifier].cues.findIndex(tt=>tt.idInternal===_e.payload.segmentId);et=et+1,et>=$.subtitles[_e.payload.identifier].cues.length&&(et=$.subtitles[_e.payload.identifier].cues.length-1),$.focusSegmentId=$.subtitles[_e.payload.identifier].cues[et].idInternal},setAspectRatio:($,_e)=>{$.aspectRatios[_e.payload.dataKey]={width:_e.payload.width,height:_e.payload.height}},setHasChanges:($,_e)=>{$.hasChanges=_e.payload}},selectors:{selectIsDisplayEditView:$=>$.isDisplayEditView,selectIsPlaying:$=>$.isPlaying,selectIsPlayPreview:$=>$.isPlayPreview,selectPreviewTriggered:$=>$.previewTriggered,selectCurrentlyAt:$=>$.currentlyAt,selectCurrentlyAtInSeconds:$=>$.currentlyAt/1e3,selectClickTriggered:$=>$.clickTriggered,selectFocusSegmentTriggered:$=>$.focusSegmentTriggered,selectFocusSegmentId:$=>$.focusSegmentId,selectFocusSegmentTriggered2:$=>$.focusSegmentTriggered2,selectAspectRatio:()=>50,selectSubtitles:$=>$.subtitles,selectSelectedSubtitleId:$=>$.selectedSubtitleId,selectSelectedSubtitleById:$=>$.subtitles[$.selectedSubtitleId],selectHasChanges:$=>$.hasChanges}}),sortSubtitle=($,_e)=>{$.subtitles[_e].cues.sort((et,tt)=>et.startTime-tt.startTime)},{setIsDisplayEditView,setIsPlaying,setIsPlayPreview,setPreviewTriggered,setCurrentlyAt,setCurrentlyAtInSeconds,setClickTriggered,setSubtitle,setCueAtIndex,addCueAtIndex,removeCue,setSelectedSubtitleId,setFocusSegmentTriggered,setFocusSegmentId,setFocusSegmentTriggered2,setFocusToSegmentAboveId,setFocusToSegmentBelowId,setAspectRatio,setHasChanges}=subtitleSlice.actions,{selectIsDisplayEditView,selectIsPlaying,selectIsPlayPreview,selectPreviewTriggered,selectCurrentlyAt,selectCurrentlyAtInSeconds,selectClickTriggered,selectFocusSegmentTriggered,selectFocusSegmentId,selectFocusSegmentTriggered2,selectAspectRatio,selectSubtitles,selectSelectedSubtitleId,selectSelectedSubtitleById,selectHasChanges}=subtitleSlice.selectors,setCurrentlyAtAndTriggerPreview=createAsyncThunk("subtitleState/setCurrentlyAtAndTriggerPreview",async($,{getState:_e,dispatch:et})=>{$=roundToDecimalPlace($,0),$<0&&($=0);const tt=_e(),nt=tt.videoState.segments;let rt=!1;if(tt.subtitleState.isPlayPreview){for(let ot=0;ot$){if(nt[ot].deleted){$=nt[ot].end+1;for(let it=ot;it{$.error=_e.payload.error,$.errorTitle=_e.payload.errorTitle,$.errorMessage=_e.payload.errorMessage,$.errorDetails=_e.payload.errorDetails,$.errorIcon=_e.payload.errorIcon}},selectors:{selectIsError:$=>$.error,selectErrorTitle:$=>$.errorTitle,selectErrorMessage:$=>$.errorMessage,selectErrorDetails:$=>$.errorDetails,selectErrorIcon:$=>$.errorIcon}}),{setError}=errorSlice.actions,{selectIsError,selectErrorTitle,selectErrorMessage,selectErrorDetails,selectErrorIcon}=errorSlice.selectors,errorReducer=errorSlice.reducer;var withSelector={exports:{}},useSyncExternalStoreWithSelector_production_min={};/** +`))}let tt=0;for(const nt of et.cues)nt.id||(nt.idInternal=nanoid(),et.cues[tt]=nt),nt.startTime=nt.startTime*1e3,nt.endTime=nt.endTime*1e3,et.cues[tt]=nt,tt++;return et.cues}function languageCodeToName($){if(!$)return;const _e=window.navigator.language,et=new Intl.DisplayNames(_e,{type:"language"});try{return et.of($.trim())}catch{return}}function useInterval($,_e){const et=reactExports.useRef(null);reactExports.useEffect(()=>{et.current=$}),reactExports.useEffect(()=>{function tt(){et.current!==null&&et.current()}if(_e!==null){const nt=setInterval(tt,_e);return()=>{clearInterval(nt)}}},[$,_e])}const initialState$6={isPlaying:!1,isPlayPreview:!0,isMuted:!1,volume:1,currentlyAt:0,segments:[{id:nanoid(),start:0,end:1,deleted:!1}],tracks:[],subtitlesFromOpencast:[],activeSegmentIndex:0,selectedWorkflowId:"",previewTriggered:!1,clickTriggered:!1,jumpTriggered:!1,aspectRatios:[],hasChanges:!1,waveformImages:[],originalThumbnails:[],videoURLs:[],videoCount:0,duration:0,title:"",presenters:[],workflows:[],lockingActive:!1,lockRefresh:null,lockState:!1,lock:{uuid:"",user:""},status:"idle",error:void 0,errorReason:"unknown"},fetchVideoInformation=createAsyncThunk("video/fetchVideoInformation",async()=>{if(!settings.id)throw new Error("Missing media package identifier");const $=await client.get(`${settings.opencast.url}/editor/${settings.id}/edit.json`);return JSON.parse($)}),updateCurrentlyAt$1=($,_e)=>{$.currentlyAt=roundToDecimalPlace(_e,0),$.currentlyAt<0&&($.currentlyAt=0),$.duration!==0&&$.duration<$.currentlyAt&&($.currentlyAt=$.duration),updateActiveSegment($),skipDeletedSegments($)},videoSlice=createSlice({name:"videoState",initialState:initialState$6,reducers:{setTrackEnabled:($,_e)=>{for(const et of $.tracks)et.id===_e.payload.id&&(et.audio_stream.enabled=_e.payload.enabled,et.video_stream.enabled=_e.payload.enabled);$.hasChanges=!0},setIsPlaying:($,_e)=>{$.isPlaying=_e.payload},setIsPlayPreview:($,_e)=>{$.isPlayPreview=_e.payload},setIsMuted:($,_e)=>{$.isMuted=_e.payload},setVolume:($,_e)=>{$.volume=_e.payload},setPreviewTriggered:($,_e)=>{$.previewTriggered=_e.payload},setClickTriggered:($,_e)=>{$.clickTriggered=_e.payload},setJumpTriggered:($,_e)=>{$.jumpTriggered=_e.payload},setCurrentlyAt:($,_e)=>{updateCurrentlyAt$1($,_e.payload)},setCurrentlyAtInSeconds:($,_e)=>{updateCurrentlyAt$1($,roundToDecimalPlace(_e.payload*1e3,0))},jumpToPreviousSegment:$=>{let _e=$.activeSegmentIndex-1;$.currentlyAt>=$.segments[$.activeSegmentIndex].start+3e3&&(_e=$.activeSegmentIndex),$.activeSegmentIndex==0&&(_e=$.activeSegmentIndex),updateCurrentlyAt$1($,$.segments[_e].start),$.jumpTriggered=!0},jumpToNextSegment:$=>{let _e=$.activeSegmentIndex+1;$.activeSegmentIndex+1>=$.segments.length&&(_e=$.activeSegmentIndex),updateCurrentlyAt$1($,$.segments[_e].start),$.jumpTriggered=!0},addSegment:($,_e)=>{$.segments.push(_e.payload)},setAspectRatio:($,_e)=>{$.aspectRatios[_e.payload.dataKey]={width:_e.payload.width,height:_e.payload.height}},setHasChanges:($,_e)=>{$.hasChanges=_e.payload},setWaveformImages:($,_e)=>{$.waveformImages=_e.payload},setThumbnail:($,_e)=>{setThumbnailHelper($,_e.payload.id,_e.payload.uri)},setThumbnails:($,_e)=>{for(const et of _e.payload)setThumbnailHelper($,et.id,et.uri)},removeThumbnail:($,_e)=>{const et=$.tracks.findIndex(tt=>tt.id===_e.payload);$.tracks[et].thumbnailUri=void 0},setLock:($,_e)=>{$.lockState=_e.payload},cut:$=>{if($.segments[$.activeSegmentIndex].start===$.currentlyAt||$.segments[$.activeSegmentIndex].end===$.currentlyAt)return;const _e={id:nanoid(),start:$.segments[$.activeSegmentIndex].start,end:$.currentlyAt,deleted:$.segments[$.activeSegmentIndex].deleted},et={id:nanoid(),start:$.currentlyAt,end:$.segments[$.activeSegmentIndex].end,deleted:$.segments[$.activeSegmentIndex].deleted};$.segments.splice($.activeSegmentIndex,1,_e,et),$.hasChanges=!0},markAsDeletedOrAlive:$=>{$.segments[$.activeSegmentIndex].deleted=!$.segments[$.activeSegmentIndex].deleted,$.hasChanges=!0},setSelectedWorkflowIndex:($,_e)=>{$.selectedWorkflowId=_e.payload},mergeLeft:$=>{mergeSegments($,$.activeSegmentIndex,$.activeSegmentIndex-1),$.hasChanges=!0},mergeRight:$=>{mergeSegments($,$.activeSegmentIndex,$.activeSegmentIndex+1),$.hasChanges=!0},mergeAll:$=>{mergeSegments($,$.activeSegmentIndex,0),mergeSegments($,$.activeSegmentIndex,$.segments.length-1),$.hasChanges=!0}},extraReducers:$=>{$.addCase(fetchVideoInformation.pending,(_e,et)=>{_e.status="loading"}),$.addCase(fetchVideoInformation.fulfilled,(_e,et)=>{_e.status="success",et.payload.workflow_active&&(_e.status="failed",_e.errorReason="workflowActive",_e.error="This event is being processed. Please wait until the process is finished."),_e.tracks=et.payload.tracks.sort((nt,rt)=>nt.thumbnailPriority-rt.thumbnailPriority).map(nt=>(et.payload.local&&settings.opencast.local&&(console.debug("Replacing track URL"),nt.uri=nt.uri.replace(/https?:\/\/[^/]*/g,window.location.origin)),nt));const tt=_e.tracks.filter(nt=>nt.video_stream.available===!0);_e.videoURLs=tt.reduce((nt,rt)=>(nt.push(rt.uri),nt),[]),_e.videoCount=_e.videoURLs.length,_e.subtitlesFromOpencast=et.payload.subtitles?_e.subtitlesFromOpencast=et.payload.subtitles:[],_e.duration=et.payload.duration,_e.title=et.payload.title,_e.segments=parseSegments(et.payload.segments,et.payload.duration),_e.workflows=et.payload.workflows,_e.waveformImages=et.payload.waveformURIs?et.payload.waveformURIs:_e.waveformImages,_e.originalThumbnails=_e.tracks.map(nt=>({id:nt.id,uri:nt.thumbnailUri})),_e.aspectRatios=new Array(_e.videoCount),_e.lockingActive=et.payload.locking_active,_e.lockRefresh=et.payload.lock_refresh,_e.lock.uuid=et.payload.lock_uuid,_e.lock.user=et.payload.lock_user}),$.addCase(fetchVideoInformation.rejected,(_e,et)=>{_e.status="failed",_e.error=et.error.message})},selectors:{selectIsPlaying:$=>$.isPlaying,selectIsPlayPreview:$=>$.isPlayPreview,selectIsMuted:$=>$.isMuted,selectVolume:$=>$.volume,selectPreviewTriggered:$=>$.previewTriggered,selectClickTriggered:$=>$.clickTriggered,selectJumpTriggered:$=>$.jumpTriggered,selectCurrentlyAt:$=>$.currentlyAt,selectCurrentlyAtInSeconds:$=>$.currentlyAt/1e3,selectSegments:$=>$.segments,selectActiveSegmentIndex:$=>$.activeSegmentIndex,selectIsCurrentSegmentAlive:$=>!$.segments[$.activeSegmentIndex].deleted,selectSelectedWorkflowId:$=>$.selectedWorkflowId,selectHasChanges:$=>$.hasChanges,selectWaveformImages:$=>$.waveformImages,selectOriginalThumbnails:$=>$.originalThumbnails,selectVideoURL:$=>$.videoURLs,selectVideoCount:$=>$.videoCount,selectDuration:$=>$.duration,selectDurationInSeconds:$=>$.duration/1e3,selectTitle:$=>$.title,selectTracks:$=>$.tracks,selectWorkflows:$=>$.workflows,selectAspectRatio:$=>calculateTotalAspectRatio($.aspectRatios),selectSubtitlesFromOpencast:$=>$.subtitlesFromOpencast,selectSubtitlesFromOpencastById:($,_e)=>{for(const et of $.subtitlesFromOpencast)if(et.id===_e)return et}}}),updateActiveSegment=$=>{$.activeSegmentIndex=$.segments.findLastIndex(_e=>_e.start<=$.currentlyAt&&_e.end>=$.currentlyAt),$.activeSegmentIndex<0&&($.activeSegmentIndex=0)},parseSegments=($,_e)=>{const et=[];return $.length===0&&et.push({id:nanoid(),start:0,end:_e,deleted:!1}),$.forEach(tt=>{et.push({id:nanoid(),start:tt.start,end:tt.end,deleted:tt.deleted})}),et},mergeSegments=($,_e,et)=>{et<0||et>$.segments.length-1||($.segments[_e].start=Math.min($.segments[_e].start,$.segments[et].start),$.segments[_e].end=Math.max($.segments[_e].end,$.segments[et].end),$.segments.splice(_e{if($.isPlaying&&$.segments[$.activeSegmentIndex].deleted&&$.isPlayPreview){let _e=$.segments[$.activeSegmentIndex].end;for(let et=$.activeSegmentIndex;et<$.segments.length;et++){if(_e=$.segments[et].end,!$.segments[et].deleted){_e=$.segments[et].start+1;break}if(et+1===$.segments.length){$.isPlaying=!1;for(let tt=0;tt<$.segments.length;tt++)if(!$.segments[tt].deleted){_e=$.segments[tt].start;break}}}$.currentlyAt=_e,$.previewTriggered=!0,updateActiveSegment($)}},calculateTotalAspectRatio=$=>{let _e=Math.min(...$.map(tt=>tt.height)),et=Math.min(...$.map(tt=>tt.width));return(!_e||!et)&&(_e=720,et=1280),et*=$.length,Math.min(_e/et*100,9/32*100)},setThumbnailHelper=($,_e,et)=>{const tt=$.tracks.findIndex(nt=>nt.id===_e);tt>=0&&($.tracks[tt].thumbnailUri=et)},{setTrackEnabled,setIsPlaying:setIsPlaying$1,setIsPlayPreview:setIsPlayPreview$1,setIsMuted,setVolume,setCurrentlyAt:setCurrentlyAt$1,setCurrentlyAtInSeconds:setCurrentlyAtInSeconds$1,addSegment,setAspectRatio:setAspectRatio$1,setHasChanges:setHasChanges$2,setWaveformImages,setThumbnails,setThumbnail,removeThumbnail,setLock,cut,markAsDeletedOrAlive,setSelectedWorkflowIndex,mergeLeft,mergeRight,mergeAll,setPreviewTriggered:setPreviewTriggered$1,setClickTriggered:setClickTriggered$1,setJumpTriggered,jumpToPreviousSegment,jumpToNextSegment}=videoSlice.actions,selectVideos=createSelector([$=>$.videoState.tracks],$=>$.filter(_e=>_e.video_stream.available===!0)),{selectIsPlaying:selectIsPlaying$1,selectIsPlayPreview:selectIsPlayPreview$1,selectIsMuted,selectVolume,selectPreviewTriggered:selectPreviewTriggered$1,selectClickTriggered:selectClickTriggered$1,selectJumpTriggered,selectCurrentlyAt:selectCurrentlyAt$1,selectCurrentlyAtInSeconds:selectCurrentlyAtInSeconds$1,selectSegments,selectActiveSegmentIndex,selectIsCurrentSegmentAlive,selectSelectedWorkflowId,selectHasChanges:selectHasChanges$2,selectWaveformImages,selectOriginalThumbnails,selectVideoURL,selectVideoCount,selectDuration,selectDurationInSeconds,selectTitle,selectTracks,selectWorkflows,selectAspectRatio:selectAspectRatio$1,selectSubtitlesFromOpencast,selectSubtitlesFromOpencastById}=videoSlice.selectors,videoReducer=videoSlice.reducer,initialState$5={status:"idle",error:void 0,errorReason:"unknown"},postVideoInformation=createAsyncThunk("video/postVideoInformation",async $=>{if(!settings.id)throw new Error("Missing media package id");return await client.post(`${settings.opencast.url}/editor/${settings.id}/edit.json`,{segments:convertSegments($.segments),tracks:$.tracks,subtitles:$.subtitles})}),workflowPostSlice=createSlice({name:"workflowPostState",initialState:initialState$5,reducers:{resetPostRequestState:$=>{$.status="idle"}},extraReducers:$=>{$.addCase(postVideoInformation.pending,(_e,et)=>{_e.status="loading"}),$.addCase(postVideoInformation.fulfilled,(_e,et)=>{_e.status="success"}),$.addCase(postVideoInformation.rejected,(_e,et)=>{_e.status="failed",_e.error=et.error.message})},selectors:{selectStatus:$=>$.status,selectError:$=>$.error}}),convertSegments=$=>{const _e=[];return $.forEach(et=>{_e.push({start:et.start,end:et.end,deleted:et.deleted,selected:!1})}),_e},{resetPostRequestState:resetPostRequestState$1}=workflowPostSlice.actions,{selectStatus:selectStatus$1,selectError:selectError$1}=workflowPostSlice.selectors,workflowPostReducer=workflowPostSlice.reducer,initialState$4={status:"idle",error:void 0,errorReason:"unknown"},postVideoInformationWithWorkflow=createAsyncThunk("video/postVideoInformationWithWorkflow",async $=>{if(!settings.id)throw new Error("Missing media package identifier");return await client.post(`${settings.opencast.url}/editor/${settings.id}/edit.json`,{segments:convertSegments($.segments),tracks:$.tracks,subtitles:$.subtitles,workflows:$.workflow})}),workflowPostAndProcessSlice=createSlice({name:"workflowPostAndProcessState",initialState:initialState$4,reducers:{},extraReducers:$=>{$.addCase(postVideoInformationWithWorkflow.pending,(_e,et)=>{_e.status="loading"}),$.addCase(postVideoInformationWithWorkflow.fulfilled,(_e,et)=>{_e.status="success"}),$.addCase(postVideoInformationWithWorkflow.rejected,(_e,et)=>{_e.status="failed",_e.error=et.error.message})},selectors:{selectStatus:$=>$.status,selectError:$=>$.error}}),{selectStatus,selectError}=workflowPostAndProcessSlice.selectors,workflowPostAndProcessReducer=workflowPostAndProcessSlice.reducer,initialState$3={end:!1,value:"success"},endSlice=createSlice({name:"endState",initialState:initialState$3,reducers:{setEnd:($,_e)=>{$.end=_e.payload.hasEnded,$.value=_e.payload.value}},selectors:{selectIsEnd:$=>$.end,selectEndState:$=>$.value}}),{setEnd}=endSlice.actions,{selectIsEnd,selectEndState}=endSlice.selectors,endReducer=endSlice.reducer,initialState$2={catalogs:[],hasChanges:!1,status:"idle",error:void 0,errorReason:"unknown",postStatus:"idle",postError:void 0,postErrorReason:"unknown"},fetchMetadata=createAsyncThunk("metadata/fetchMetadata",async()=>{if(!settings.id)throw new Error("Missing media package identifier");const $=await client.get(`${settings.opencast.url}/editor/${settings.id}/metadata.json`);return JSON.parse($)}),postMetadata=createAsyncThunk("metadata/postMetadata",async($,{getState:_e})=>{if(!settings.id)throw new Error("Missing media package identifier");const et=_e();await client.post(`${settings.opencast.url}/editor/${settings.id}/metadata.json`,et.metadataState.catalogs)}),metadataSlice=createSlice({name:"metadataState",initialState:initialState$2,reducers:{setFieldValue:($,_e)=>{$.catalogs[_e.payload.catalogIndex].fields[_e.payload.fieldIndex].value=_e.payload.value,$.hasChanges=!0},setFieldReadonly:($,_e)=>{$.catalogs[_e.payload.catalogIndex].fields[_e.payload.fieldIndex].readOnly=_e.payload.value},setHasChanges:($,_e)=>{$.hasChanges=_e.payload},resetPostRequestState:$=>{$.postStatus="idle"}},extraReducers:$=>{$.addCase(fetchMetadata.pending,(_e,et)=>{_e.status="loading"}),$.addCase(fetchMetadata.fulfilled,(_e,et)=>{_e.catalogs=et.payload,_e.status="success"}),$.addCase(fetchMetadata.rejected,(_e,et)=>{_e.status="failed",_e.error=et.error.message}),$.addCase(postMetadata.pending,(_e,et)=>{_e.postStatus="loading"}),$.addCase(postMetadata.fulfilled,(_e,et)=>{_e.postStatus="success"}),$.addCase(postMetadata.rejected,(_e,et)=>{_e.postStatus="failed",_e.postError=et.error.message})},selectors:{selectCatalogs:$=>$.catalogs,selectHasChanges:$=>$.hasChanges,selectGetStatus:$=>$.status,selectGetError:$=>$.error,selectPostStatus:$=>$.postStatus,selectPostError:$=>$.postError,selectTitleFromEpisodeDc:$=>{for(const _e of $.catalogs)if(_e.flavor==="dublincore/episode"){for(const et of _e.fields)if(et.id==="title")return et.value}}}}),{setFieldValue,setHasChanges:setHasChanges$1,setFieldReadonly,resetPostRequestState}=metadataSlice.actions,{selectCatalogs,selectHasChanges:selectHasChanges$1,selectGetStatus,selectGetError,selectPostStatus,selectPostError,selectTitleFromEpisodeDc}=metadataSlice.selectors,metadataReducer=metadataSlice.reducer,initialState$1={isDisplayEditView:!1,isPlaying:!1,isPlayPreview:!0,previewTriggered:!1,currentlyAt:0,clickTriggered:!1,subtitles:{},selectedSubtitleId:"",focusSegmentTriggered:!1,focusSegmentId:"",focusSegmentTriggered2:!1,aspectRatios:[],hasChanges:!1},updateCurrentlyAt=($,_e)=>{$.currentlyAt=roundToDecimalPlace(_e,0),$.currentlyAt<0&&($.currentlyAt=0)},subtitleSlice=createSlice({name:"subtitleState",initialState:initialState$1,reducers:{setIsDisplayEditView:($,_e)=>{$.isDisplayEditView=_e.payload},setIsPlaying:($,_e)=>{$.isPlaying=_e.payload},setIsPlayPreview:($,_e)=>{$.isPlayPreview=_e.payload},setPreviewTriggered:($,_e)=>{$.previewTriggered=_e.payload},setCurrentlyAt:($,_e)=>{updateCurrentlyAt($,_e.payload)},setCurrentlyAtInSeconds:($,_e)=>{updateCurrentlyAt($,roundToDecimalPlace(_e.payload*1e3,0))},setClickTriggered:($,_e)=>{$.clickTriggered=_e.payload},setSubtitle:($,_e)=>{$.subtitles[_e.payload.identifier]=_e.payload.subtitles},setCueAtIndex:($,_e)=>{if(_e.payload.cueIndex<0||_e.payload.cueIndex>=$.subtitles[_e.payload.identifier].cues.length){console.warn("Tried to set segment for subtitle "+_e.payload.identifier+" but was out of range");return}const et=$.subtitles[_e.payload.identifier].cues[_e.payload.cueIndex];et.id=_e.payload.newCue.id,et.idInternal=_e.payload.newCue.idInternal,et.text=_e.payload.newCue.text,et.startTime=Math.round(_e.payload.newCue.startTime),et.endTime=Math.round(_e.payload.newCue.endTime),et.tree.children.length<=0&&(et.tree.children[0]={type:"text",value:_e.payload.newCue.text}),et.tree.children[0].value=_e.payload.newCue.text,$.subtitles[_e.payload.identifier].cues[_e.payload.cueIndex]=et,sortSubtitle($,_e.payload.identifier),$.hasChanges=!0},addCueAtIndex:($,_e)=>{const et=_e.payload.startTime>=0?_e.payload.startTime:0,tt={id:void 0,idInternal:nanoid(),text:_e.payload.text,startTime:Math.round(et),endTime:Math.round(_e.payload.endTime),tree:{children:[{type:"text",value:_e.payload.text}]}};$.focusSegmentTriggered=!0,$.focusSegmentTriggered2=!0,$.focusSegmentId=tt.idInternal,_e.payload.cueIndex<0&&$.subtitles[_e.payload.identifier].cues.splice(0,0,tt),(_e.payload.cueIndex>=0||_e.payload.cueIndex<$.subtitles[_e.payload.identifier].cues.length)&&$.subtitles[_e.payload.identifier].cues.splice(_e.payload.cueIndex,0,tt),_e.payload.cueIndex>=$.subtitles[_e.payload.identifier].cues.length&&$.subtitles[_e.payload.identifier].cues.push(tt),sortSubtitle($,_e.payload.identifier),$.hasChanges=!0},removeCue:($,_e)=>{const et=$.subtitles[_e.payload.identifier].cues.findIndex(tt=>tt.idInternal===_e.payload.cue.idInternal);et>-1&&$.subtitles[_e.payload.identifier].cues.splice(et,1),sortSubtitle($,_e.payload.identifier),$.hasChanges=!0},setSelectedSubtitleId:($,_e)=>{$.selectedSubtitleId=_e.payload},setFocusSegmentTriggered:($,_e)=>{$.focusSegmentTriggered=_e.payload,$.focusSegmentTriggered2=_e.payload},setFocusSegmentId:($,_e)=>{$.focusSegmentId=_e.payload},setFocusSegmentTriggered2:($,_e)=>{$.focusSegmentTriggered2=_e.payload},setFocusToSegmentAboveId:($,_e)=>{let et=$.subtitles[_e.payload.identifier].cues.findIndex(tt=>tt.idInternal===_e.payload.segmentId);et=et-1,et<0&&(et=0),$.focusSegmentId=$.subtitles[_e.payload.identifier].cues[et].idInternal},setFocusToSegmentBelowId:($,_e)=>{let et=$.subtitles[_e.payload.identifier].cues.findIndex(tt=>tt.idInternal===_e.payload.segmentId);et=et+1,et>=$.subtitles[_e.payload.identifier].cues.length&&(et=$.subtitles[_e.payload.identifier].cues.length-1),$.focusSegmentId=$.subtitles[_e.payload.identifier].cues[et].idInternal},setAspectRatio:($,_e)=>{$.aspectRatios[_e.payload.dataKey]={width:_e.payload.width,height:_e.payload.height}},setHasChanges:($,_e)=>{$.hasChanges=_e.payload}},selectors:{selectIsDisplayEditView:$=>$.isDisplayEditView,selectIsPlaying:$=>$.isPlaying,selectIsPlayPreview:$=>$.isPlayPreview,selectPreviewTriggered:$=>$.previewTriggered,selectCurrentlyAt:$=>$.currentlyAt,selectCurrentlyAtInSeconds:$=>$.currentlyAt/1e3,selectClickTriggered:$=>$.clickTriggered,selectFocusSegmentTriggered:$=>$.focusSegmentTriggered,selectFocusSegmentId:$=>$.focusSegmentId,selectFocusSegmentTriggered2:$=>$.focusSegmentTriggered2,selectAspectRatio:()=>50,selectSubtitles:$=>$.subtitles,selectSelectedSubtitleId:$=>$.selectedSubtitleId,selectSelectedSubtitleById:$=>$.subtitles[$.selectedSubtitleId],selectHasChanges:$=>$.hasChanges}}),sortSubtitle=($,_e)=>{$.subtitles[_e].cues.sort((et,tt)=>et.startTime-tt.startTime)},{setIsDisplayEditView,setIsPlaying,setIsPlayPreview,setPreviewTriggered,setCurrentlyAt,setCurrentlyAtInSeconds,setClickTriggered,setSubtitle,setCueAtIndex,addCueAtIndex,removeCue,setSelectedSubtitleId,setFocusSegmentTriggered,setFocusSegmentId,setFocusSegmentTriggered2,setFocusToSegmentAboveId,setFocusToSegmentBelowId,setAspectRatio,setHasChanges}=subtitleSlice.actions,{selectIsDisplayEditView,selectIsPlaying,selectIsPlayPreview,selectPreviewTriggered,selectCurrentlyAt,selectCurrentlyAtInSeconds,selectClickTriggered,selectFocusSegmentTriggered,selectFocusSegmentId,selectFocusSegmentTriggered2,selectAspectRatio,selectSubtitles,selectSelectedSubtitleId,selectSelectedSubtitleById,selectHasChanges}=subtitleSlice.selectors,setCurrentlyAtAndTriggerPreview=createAsyncThunk("subtitleState/setCurrentlyAtAndTriggerPreview",async($,{getState:_e,dispatch:et})=>{$=roundToDecimalPlace($,0),$<0&&($=0);const tt=_e(),nt=tt.videoState.segments;let rt=!1;if(tt.subtitleState.isPlayPreview){for(let ot=0;ot$){if(nt[ot].deleted){$=nt[ot].end+1;for(let it=ot;it{$.error=_e.payload.error,$.errorTitle=_e.payload.errorTitle,$.errorMessage=_e.payload.errorMessage,$.errorDetails=_e.payload.errorDetails,$.errorIcon=_e.payload.errorIcon}},selectors:{selectIsError:$=>$.error,selectErrorTitle:$=>$.errorTitle,selectErrorMessage:$=>$.errorMessage,selectErrorDetails:$=>$.errorDetails,selectErrorIcon:$=>$.errorIcon}}),{setError}=errorSlice.actions,{selectIsError,selectErrorTitle,selectErrorMessage,selectErrorDetails,selectErrorIcon}=errorSlice.selectors,errorReducer=errorSlice.reducer;var withSelector={exports:{}},useSyncExternalStoreWithSelector_production_min={};/** * @license React * use-sync-external-store-with-selector.production.min.js * @@ -220,45 +220,45 @@ template { [hidden] { display: none; } -`]);return et=function(){return ot},ot}function tt(ot,it){return it||(it=ot.slice(0)),Object.freeze(Object.defineProperties(ot,{raw:{value:Object.freeze(it)}}))}var nt=(0,_e.css)(et()),rt=nt;$.default=rt})(dist);const emotionNormalize=getDefaultExportFromCjs(dist);function formatMuiErrorMessage($){let _e="https://mui.com/production-error/?code="+$;for(let et=1;et=0)&&(et[nt]=$[nt]);return et}var reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,isPropValid=memoize$2(function($){return reactPropsRegex.test($)||$.charCodeAt(0)===111&&$.charCodeAt(1)===110&&$.charCodeAt(2)<91}),testOmitPropsOnStringTag=isPropValid,testOmitPropsOnComponent=function $(_e){return _e!=="theme"},getDefaultShouldForwardProp=function $(_e){return typeof _e=="string"&&_e.charCodeAt(0)>96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function $(_e,et,tt){var nt;if(et){var rt=et.shouldForwardProp;nt=_e.__emotion_forwardProp&&rt?function(ot){return _e.__emotion_forwardProp(ot)&&rt(ot)}:rt}return typeof nt!="function"&&tt&&(nt=_e.__emotion_forwardProp),nt},Insertion=function $(_e){var et=_e.cache,tt=_e.serialized,nt=_e.isStringTag;return registerStyles(et,tt,nt),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(et,tt,nt)}),null},createStyled$1=function $(_e,et){var tt=_e.__emotion_real===_e,nt=tt&&_e.__emotion_base||_e,rt,ot;et!==void 0&&(rt=et.label,ot=et.target);var it=composeShouldForwardProps(_e,et,tt),st=it||getDefaultShouldForwardProp(nt),lt=!st("as");return function(){var ct=arguments,ft=tt&&_e.__emotion_styles!==void 0?_e.__emotion_styles.slice(0):[];if(rt!==void 0&&ft.push("label:"+rt+";"),ct[0]==null||ct[0].raw===void 0)ft.push.apply(ft,ct);else{ft.push(ct[0][0]);for(var dt=ct.length,pt=1;pt_e(isEmpty$4(nt)?et:nt):_e;return jsxRuntimeExports.jsx(Global,{styles:tt})}function styled$2($,_e){return newStyled($,_e)}const internal_processStyles=($,_e)=>{Array.isArray($.__emotion_styles)&&($.__emotion_styles=_e($.__emotion_styles))};function isPlainObject($){return $!==null&&typeof $=="object"&&$.constructor===Object}function deepClone($){if(!isPlainObject($))return $;const _e={};return Object.keys($).forEach(et=>{_e[et]=deepClone($[et])}),_e}function deepmerge($,_e,et={clone:!0}){const tt=et.clone?_extends$6({},$):$;return isPlainObject($)&&isPlainObject(_e)&&Object.keys(_e).forEach(nt=>{nt!=="__proto__"&&(isPlainObject(_e[nt])&&nt in $&&isPlainObject($[nt])?tt[nt]=deepmerge($[nt],_e[nt],et):et.clone?tt[nt]=isPlainObject(_e[nt])?deepClone(_e[nt]):_e[nt]:tt[nt]=_e[nt])}),tt}function capitalize$1($){if(typeof $!="string")throw new Error(formatMuiErrorMessage(7));return $.charAt(0).toUpperCase()+$.slice(1)}function createChainedFunction(...$){return $.reduce((_e,et)=>et==null?_e:function(...nt){_e.apply(this,nt),et.apply(this,nt)},()=>{})}function debounce$1($,_e=166){let et;function tt(...nt){const rt=()=>{$.apply(this,nt)};clearTimeout(et),et=setTimeout(rt,_e)}return tt.clear=()=>{clearTimeout(et)},tt}function isMuiElement($,_e){var et,tt;return reactExports.isValidElement($)&&_e.indexOf((et=$.type.muiName)!=null?et:(tt=$.type)==null||(tt=tt._payload)==null||(tt=tt.value)==null?void 0:tt.muiName)!==-1}function ownerDocument($){return $&&$.ownerDocument||document}function ownerWindow($){return ownerDocument($).defaultView||window}function setRef($,_e){typeof $=="function"?$(_e):$&&($.current=_e)}const useEnhancedEffect=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect;let globalId=0;function useGlobalId($){const[_e,et]=reactExports.useState($),tt=$||_e;return reactExports.useEffect(()=>{_e==null&&(globalId+=1,et(`mui-${globalId}`))},[_e]),tt}const maybeReactUseId=React$6.useId;function useId$1($){if(maybeReactUseId!==void 0){const _e=maybeReactUseId();return $??_e}return useGlobalId($)}function useControlled({controlled:$,default:_e,name:et,state:tt="value"}){const{current:nt}=reactExports.useRef($!==void 0),[rt,ot]=reactExports.useState(_e),it=nt?$:rt,st=reactExports.useCallback(lt=>{nt||ot(lt)},[]);return[it,st]}function useEventCallback($){const _e=reactExports.useRef($);return useEnhancedEffect(()=>{_e.current=$}),reactExports.useRef((...et)=>(0,_e.current)(...et)).current}function useForkRef(...$){return reactExports.useMemo(()=>$.every(_e=>_e==null)?null:_e=>{$.forEach(et=>{setRef(et,_e)})},$)}let hadKeyboardEvent=!0,hadFocusVisibleRecently=!1,hadFocusVisibleRecentlyTimeout;const inputTypesWhitelist={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function focusTriggersKeyboardModality($){const{type:_e,tagName:et}=$;return!!(et==="INPUT"&&inputTypesWhitelist[_e]&&!$.readOnly||et==="TEXTAREA"&&!$.readOnly||$.isContentEditable)}function handleKeyDown($){$.metaKey||$.altKey||$.ctrlKey||(hadKeyboardEvent=!0)}function handlePointerDown(){hadKeyboardEvent=!1}function handleVisibilityChange(){this.visibilityState==="hidden"&&hadFocusVisibleRecently&&(hadKeyboardEvent=!0)}function prepare($){$.addEventListener("keydown",handleKeyDown,!0),$.addEventListener("mousedown",handlePointerDown,!0),$.addEventListener("pointerdown",handlePointerDown,!0),$.addEventListener("touchstart",handlePointerDown,!0),$.addEventListener("visibilitychange",handleVisibilityChange,!0)}function isFocusVisible($){const{target:_e}=$;try{return _e.matches(":focus-visible")}catch{}return hadKeyboardEvent||focusTriggersKeyboardModality(_e)}function useIsFocusVisible(){const $=reactExports.useCallback(nt=>{nt!=null&&prepare(nt.ownerDocument)},[]),_e=reactExports.useRef(!1);function et(){return _e.current?(hadFocusVisibleRecently=!0,window.clearTimeout(hadFocusVisibleRecentlyTimeout),hadFocusVisibleRecentlyTimeout=window.setTimeout(()=>{hadFocusVisibleRecently=!1},100),_e.current=!1,!0):!1}function tt(nt){return isFocusVisible(nt)?(_e.current=!0,!0):!1}return{isFocusVisibleRef:_e,onFocus:tt,onBlur:et,ref:$}}function getScrollbarSize$1($){const _e=$.documentElement.clientWidth;return Math.abs(window.innerWidth-_e)}const visuallyHidden={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},visuallyHidden$1=visuallyHidden;function resolveProps($,_e){const et=_extends$6({},_e);return Object.keys($).forEach(tt=>{if(tt.toString().match(/^(components|slots)$/))et[tt]=_extends$6({},$[tt],et[tt]);else if(tt.toString().match(/^(componentsProps|slotProps)$/)){const nt=$[tt]||{},rt=_e[tt];et[tt]={},!rt||!Object.keys(rt)?et[tt]=nt:!nt||!Object.keys(nt)?et[tt]=rt:(et[tt]=_extends$6({},rt),Object.keys(nt).forEach(ot=>{et[tt][ot]=resolveProps(nt[ot],rt[ot])}))}else et[tt]===void 0&&(et[tt]=$[tt])}),et}function composeClasses($,_e,et=void 0){const tt={};return Object.keys($).forEach(nt=>{tt[nt]=$[nt].reduce((rt,ot)=>{if(ot){const it=_e(ot);it!==""&&rt.push(it),et&&et[ot]&&rt.push(et[ot])}return rt},[]).join(" ")}),tt}const defaultGenerator=$=>$,createClassNameGenerator=()=>{let $=defaultGenerator;return{configure(_e){$=_e},generate(_e){return $(_e)},reset(){$=defaultGenerator}}},ClassNameGenerator=createClassNameGenerator(),globalStateClassesMapping={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function generateUtilityClass($,_e,et="Mui"){const tt=globalStateClassesMapping[_e];return tt?`${et}-${tt}`:`${ClassNameGenerator.generate($)}-${_e}`}function generateUtilityClasses($,_e,et="Mui"){const tt={};return _e.forEach(nt=>{tt[nt]=generateUtilityClass($,nt,et)}),tt}const _excluded$T=["values","unit","step"],sortBreakpointsValues=$=>{const _e=Object.keys($).map(et=>({key:et,val:$[et]}))||[];return _e.sort((et,tt)=>et.val-tt.val),_e.reduce((et,tt)=>_extends$6({},et,{[tt.key]:tt.val}),{})};function createBreakpoints($){const{values:_e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:et="px",step:tt=5}=$,nt=_objectWithoutPropertiesLoose$4($,_excluded$T),rt=sortBreakpointsValues(_e),ot=Object.keys(rt);function it(dt){return`@media (min-width:${typeof _e[dt]=="number"?_e[dt]:dt}${et})`}function st(dt){return`@media (max-width:${(typeof _e[dt]=="number"?_e[dt]:dt)-tt/100}${et})`}function lt(dt,pt){const ht=ot.indexOf(pt);return`@media (min-width:${typeof _e[dt]=="number"?_e[dt]:dt}${et}) and (max-width:${(ht!==-1&&typeof _e[ot[ht]]=="number"?_e[ot[ht]]:pt)-tt/100}${et})`}function ct(dt){return ot.indexOf(dt)+1`@media (min-width:${values$1[$]}px)`};function handleBreakpoints($,_e,et){const tt=$.theme||{};if(Array.isArray(_e)){const rt=tt.breakpoints||defaultBreakpoints;return _e.reduce((ot,it,st)=>(ot[rt.up(rt.keys[st])]=et(_e[st]),ot),{})}if(typeof _e=="object"){const rt=tt.breakpoints||defaultBreakpoints;return Object.keys(_e).reduce((ot,it)=>{if(Object.keys(rt.values||values$1).indexOf(it)!==-1){const st=rt.up(it);ot[st]=et(_e[it],it)}else{const st=it;ot[st]=_e[st]}return ot},{})}return et(_e)}function createEmptyBreakpointObject($={}){var _e;return((_e=$.keys)==null?void 0:_e.reduce((tt,nt)=>{const rt=$.up(nt);return tt[rt]={},tt},{}))||{}}function removeUnusedBreakpoints($,_e){return $.reduce((et,tt)=>{const nt=et[tt];return(!nt||Object.keys(nt).length===0)&&delete et[tt],et},_e)}function mergeBreakpointsInOrder($,..._e){const et=createEmptyBreakpointObject($),tt=[et,..._e].reduce((nt,rt)=>deepmerge(nt,rt),{});return removeUnusedBreakpoints(Object.keys(et),tt)}function computeBreakpointsBase($,_e){if(typeof $!="object")return{};const et={},tt=Object.keys(_e);return Array.isArray($)?tt.forEach((nt,rt)=>{rt<$.length&&(et[nt]=!0)}):tt.forEach(nt=>{$[nt]!=null&&(et[nt]=!0)}),et}function resolveBreakpointValues({values:$,breakpoints:_e,base:et}){const tt=et||computeBreakpointsBase($,_e),nt=Object.keys(tt);if(nt.length===0)return $;let rt;return nt.reduce((ot,it,st)=>(Array.isArray($)?(ot[it]=$[st]!=null?$[st]:$[rt],rt=st):typeof $=="object"?(ot[it]=$[it]!=null?$[it]:$[rt],rt=it):ot[it]=$,ot),{})}function getPath$1($,_e,et=!0){if(!_e||typeof _e!="string")return null;if($&&$.vars&&et){const tt=`vars.${_e}`.split(".").reduce((nt,rt)=>nt&&nt[rt]?nt[rt]:null,$);if(tt!=null)return tt}return _e.split(".").reduce((tt,nt)=>tt&&tt[nt]!=null?tt[nt]:null,$)}function getStyleValue$1($,_e,et,tt=et){let nt;return typeof $=="function"?nt=$(et):Array.isArray($)?nt=$[et]||tt:nt=getPath$1($,et)||tt,_e&&(nt=_e(nt,tt,$)),nt}function style$2($){const{prop:_e,cssProperty:et=$.prop,themeKey:tt,transform:nt}=$,rt=ot=>{if(ot[_e]==null)return null;const it=ot[_e],st=ot.theme,lt=getPath$1(st,tt)||{};return handleBreakpoints(ot,it,ft=>{let dt=getStyleValue$1(lt,nt,ft);return ft===dt&&typeof ft=="string"&&(dt=getStyleValue$1(lt,nt,`${_e}${ft==="default"?"":capitalize$1(ft)}`,ft)),et===!1?dt:{[et]:dt}})};return rt.propTypes={},rt.filterProps=[_e],rt}function memoize$1($){const _e={};return et=>(_e[et]===void 0&&(_e[et]=$(et)),_e[et])}const properties={m:"margin",p:"padding"},directions={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},aliases={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},getCssProperties=memoize$1($=>{if($.length>2)if(aliases[$])$=aliases[$];else return[$];const[_e,et]=$.split(""),tt=properties[_e],nt=directions[et]||"";return Array.isArray(nt)?nt.map(rt=>tt+rt):[tt+nt]}),marginKeys=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],paddingKeys=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...marginKeys,...paddingKeys];function createUnaryUnit($,_e,et,tt){var nt;const rt=(nt=getPath$1($,_e,!1))!=null?nt:et;return typeof rt=="number"?ot=>typeof ot=="string"?ot:rt*ot:Array.isArray(rt)?ot=>typeof ot=="string"?ot:rt[ot]:typeof rt=="function"?rt:()=>{}}function createUnarySpacing($){return createUnaryUnit($,"spacing",8)}function getValue$1($,_e){if(typeof _e=="string"||_e==null)return _e;const et=Math.abs(_e),tt=$(et);return _e>=0?tt:typeof tt=="number"?-tt:`-${tt}`}function getStyleFromPropValue($,_e){return et=>$.reduce((tt,nt)=>(tt[nt]=getValue$1(_e,et),tt),{})}function resolveCssProperty($,_e,et,tt){if(_e.indexOf(et)===-1)return null;const nt=getCssProperties(et),rt=getStyleFromPropValue(nt,tt),ot=$[et];return handleBreakpoints($,ot,rt)}function style$1($,_e){const et=createUnarySpacing($.theme);return Object.keys($).map(tt=>resolveCssProperty($,_e,tt,et)).reduce(merge,{})}function margin($){return style$1($,marginKeys)}margin.propTypes={};margin.filterProps=marginKeys;function padding($){return style$1($,paddingKeys)}padding.propTypes={};padding.filterProps=paddingKeys;function createSpacing($=8){if($.mui)return $;const _e=createUnarySpacing({spacing:$}),et=(...tt)=>(tt.length===0?[1]:tt).map(rt=>{const ot=_e(rt);return typeof ot=="number"?`${ot}px`:ot}).join(" ");return et.mui=!0,et}function compose(...$){const _e=$.reduce((tt,nt)=>(nt.filterProps.forEach(rt=>{tt[rt]=nt}),tt),{}),et=tt=>Object.keys(tt).reduce((nt,rt)=>_e[rt]?merge(nt,_e[rt](tt)):nt,{});return et.propTypes={},et.filterProps=$.reduce((tt,nt)=>tt.concat(nt.filterProps),[]),et}function borderTransform($){return typeof $!="number"?$:`${$}px solid`}function createBorderStyle($,_e){return style$2({prop:$,themeKey:"borders",transform:_e})}const border=createBorderStyle("border",borderTransform),borderTop=createBorderStyle("borderTop",borderTransform),borderRight=createBorderStyle("borderRight",borderTransform),borderBottom=createBorderStyle("borderBottom",borderTransform),borderLeft=createBorderStyle("borderLeft",borderTransform),borderColor=createBorderStyle("borderColor"),borderTopColor=createBorderStyle("borderTopColor"),borderRightColor=createBorderStyle("borderRightColor"),borderBottomColor=createBorderStyle("borderBottomColor"),borderLeftColor=createBorderStyle("borderLeftColor"),outline=createBorderStyle("outline",borderTransform),outlineColor=createBorderStyle("outlineColor"),borderRadius$1=$=>{if($.borderRadius!==void 0&&$.borderRadius!==null){const _e=createUnaryUnit($.theme,"shape.borderRadius",4),et=tt=>({borderRadius:getValue$1(_e,tt)});return handleBreakpoints($,$.borderRadius,et)}return null};borderRadius$1.propTypes={};borderRadius$1.filterProps=["borderRadius"];compose(border,borderTop,borderRight,borderBottom,borderLeft,borderColor,borderTopColor,borderRightColor,borderBottomColor,borderLeftColor,borderRadius$1,outline,outlineColor);const gap=$=>{if($.gap!==void 0&&$.gap!==null){const _e=createUnaryUnit($.theme,"spacing",8),et=tt=>({gap:getValue$1(_e,tt)});return handleBreakpoints($,$.gap,et)}return null};gap.propTypes={};gap.filterProps=["gap"];const columnGap=$=>{if($.columnGap!==void 0&&$.columnGap!==null){const _e=createUnaryUnit($.theme,"spacing",8),et=tt=>({columnGap:getValue$1(_e,tt)});return handleBreakpoints($,$.columnGap,et)}return null};columnGap.propTypes={};columnGap.filterProps=["columnGap"];const rowGap=$=>{if($.rowGap!==void 0&&$.rowGap!==null){const _e=createUnaryUnit($.theme,"spacing",8),et=tt=>({rowGap:getValue$1(_e,tt)});return handleBreakpoints($,$.rowGap,et)}return null};rowGap.propTypes={};rowGap.filterProps=["rowGap"];const gridColumn=style$2({prop:"gridColumn"}),gridRow=style$2({prop:"gridRow"}),gridAutoFlow=style$2({prop:"gridAutoFlow"}),gridAutoColumns=style$2({prop:"gridAutoColumns"}),gridAutoRows=style$2({prop:"gridAutoRows"}),gridTemplateColumns=style$2({prop:"gridTemplateColumns"}),gridTemplateRows=style$2({prop:"gridTemplateRows"}),gridTemplateAreas=style$2({prop:"gridTemplateAreas"}),gridArea=style$2({prop:"gridArea"});compose(gap,columnGap,rowGap,gridColumn,gridRow,gridAutoFlow,gridAutoColumns,gridAutoRows,gridTemplateColumns,gridTemplateRows,gridTemplateAreas,gridArea);function paletteTransform($,_e){return _e==="grey"?_e:$}const color=style$2({prop:"color",themeKey:"palette",transform:paletteTransform}),bgcolor=style$2({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:paletteTransform}),backgroundColor=style$2({prop:"backgroundColor",themeKey:"palette",transform:paletteTransform});compose(color,bgcolor,backgroundColor);function sizingTransform($){return $<=1&&$!==0?`${$*100}%`:$}const width=style$2({prop:"width",transform:sizingTransform}),maxWidth=$=>{if($.maxWidth!==void 0&&$.maxWidth!==null){const _e=et=>{var tt,nt;const rt=((tt=$.theme)==null||(tt=tt.breakpoints)==null||(tt=tt.values)==null?void 0:tt[et])||values$1[et];return rt?((nt=$.theme)==null||(nt=nt.breakpoints)==null?void 0:nt.unit)!=="px"?{maxWidth:`${rt}${$.theme.breakpoints.unit}`}:{maxWidth:rt}:{maxWidth:sizingTransform(et)}};return handleBreakpoints($,$.maxWidth,_e)}return null};maxWidth.filterProps=["maxWidth"];const minWidth=style$2({prop:"minWidth",transform:sizingTransform}),height=style$2({prop:"height",transform:sizingTransform}),maxHeight=style$2({prop:"maxHeight",transform:sizingTransform}),minHeight=style$2({prop:"minHeight",transform:sizingTransform});style$2({prop:"size",cssProperty:"width",transform:sizingTransform});style$2({prop:"size",cssProperty:"height",transform:sizingTransform});const boxSizing=style$2({prop:"boxSizing"});compose(width,maxWidth,minWidth,height,maxHeight,minHeight,boxSizing);const defaultSxConfig={border:{themeKey:"borders",transform:borderTransform},borderTop:{themeKey:"borders",transform:borderTransform},borderRight:{themeKey:"borders",transform:borderTransform},borderBottom:{themeKey:"borders",transform:borderTransform},borderLeft:{themeKey:"borders",transform:borderTransform},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:borderTransform},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:borderRadius$1},color:{themeKey:"palette",transform:paletteTransform},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:paletteTransform},backgroundColor:{themeKey:"palette",transform:paletteTransform},p:{style:padding},pt:{style:padding},pr:{style:padding},pb:{style:padding},pl:{style:padding},px:{style:padding},py:{style:padding},padding:{style:padding},paddingTop:{style:padding},paddingRight:{style:padding},paddingBottom:{style:padding},paddingLeft:{style:padding},paddingX:{style:padding},paddingY:{style:padding},paddingInline:{style:padding},paddingInlineStart:{style:padding},paddingInlineEnd:{style:padding},paddingBlock:{style:padding},paddingBlockStart:{style:padding},paddingBlockEnd:{style:padding},m:{style:margin},mt:{style:margin},mr:{style:margin},mb:{style:margin},ml:{style:margin},mx:{style:margin},my:{style:margin},margin:{style:margin},marginTop:{style:margin},marginRight:{style:margin},marginBottom:{style:margin},marginLeft:{style:margin},marginX:{style:margin},marginY:{style:margin},marginInline:{style:margin},marginInlineStart:{style:margin},marginInlineEnd:{style:margin},marginBlock:{style:margin},marginBlockStart:{style:margin},marginBlockEnd:{style:margin},displayPrint:{cssProperty:!1,transform:$=>({"@media print":{display:$}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:gap},rowGap:{style:rowGap},columnGap:{style:columnGap},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sizingTransform},maxWidth:{style:maxWidth},minWidth:{transform:sizingTransform},height:{transform:sizingTransform},maxHeight:{transform:sizingTransform},minHeight:{transform:sizingTransform},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},defaultSxConfig$1=defaultSxConfig;function objectsHaveSameKeys(...$){const _e=$.reduce((tt,nt)=>tt.concat(Object.keys(nt)),[]),et=new Set(_e);return $.every(tt=>et.size===Object.keys(tt).length)}function callIfFn($,_e){return typeof $=="function"?$(_e):$}function unstable_createStyleFunctionSx(){function $(et,tt,nt,rt){const ot={[et]:tt,theme:nt},it=rt[et];if(!it)return{[et]:tt};const{cssProperty:st=et,themeKey:lt,transform:ct,style:ft}=it;if(tt==null)return null;if(lt==="typography"&&tt==="inherit")return{[et]:tt};const dt=getPath$1(nt,lt)||{};return ft?ft(ot):handleBreakpoints(ot,tt,ht=>{let gt=getStyleValue$1(dt,ct,ht);return ht===gt&&typeof ht=="string"&&(gt=getStyleValue$1(dt,ct,`${et}${ht==="default"?"":capitalize$1(ht)}`,ht)),st===!1?gt:{[st]:gt}})}function _e(et){var tt;const{sx:nt,theme:rt={}}=et||{};if(!nt)return null;const ot=(tt=rt.unstable_sxConfig)!=null?tt:defaultSxConfig$1;function it(st){let lt=st;if(typeof st=="function")lt=st(rt);else if(typeof st!="object")return st;if(!lt)return null;const ct=createEmptyBreakpointObject(rt.breakpoints),ft=Object.keys(ct);let dt=ct;return Object.keys(lt).forEach(pt=>{const ht=callIfFn(lt[pt],rt);if(ht!=null)if(typeof ht=="object")if(ot[pt])dt=merge(dt,$(pt,ht,rt,ot));else{const gt=handleBreakpoints({theme:rt},ht,yt=>({[pt]:yt}));objectsHaveSameKeys(gt,ht)?dt[pt]=_e({sx:ht,theme:rt}):dt=merge(dt,gt)}else dt=merge(dt,$(pt,ht,rt,ot))}),removeUnusedBreakpoints(ft,dt)}return Array.isArray(nt)?nt.map(it):it(nt)}return _e}const styleFunctionSx=unstable_createStyleFunctionSx();styleFunctionSx.filterProps=["sx"];const _excluded$S=["breakpoints","palette","spacing","shape"];function createTheme$1($={},..._e){const{breakpoints:et={},palette:tt={},spacing:nt,shape:rt={}}=$,ot=_objectWithoutPropertiesLoose$4($,_excluded$S),it=createBreakpoints(et),st=createSpacing(nt);let lt=deepmerge({breakpoints:it,direction:"ltr",components:{},palette:_extends$6({mode:"light"},tt),spacing:st,shape:_extends$6({},shape$2,rt)},ot);return lt=_e.reduce((ct,ft)=>deepmerge(ct,ft),lt),lt.unstable_sxConfig=_extends$6({},defaultSxConfig$1,ot==null?void 0:ot.unstable_sxConfig),lt.unstable_sx=function(ft){return styleFunctionSx({sx:ft,theme:this})},lt}function isObjectEmpty($){return Object.keys($).length===0}function useTheme$4($=null){const _e=reactExports.useContext(ThemeContext$2);return!_e||isObjectEmpty(_e)?$:_e}const systemDefaultTheme$1=createTheme$1();function useTheme$3($=systemDefaultTheme$1){return useTheme$4($)}function GlobalStyles$1({styles:$,themeId:_e,defaultTheme:et={}}){const tt=useTheme$3(et),nt=typeof $=="function"?$(_e&&tt[_e]||tt):$;return jsxRuntimeExports.jsx(GlobalStyles$2,{styles:nt})}const _excluded$R=["sx"],splitProps=$=>{var _e,et;const tt={systemProps:{},otherProps:{}},nt=(_e=$==null||(et=$.theme)==null?void 0:et.unstable_sxConfig)!=null?_e:defaultSxConfig$1;return Object.keys($).forEach(rt=>{nt[rt]?tt.systemProps[rt]=$[rt]:tt.otherProps[rt]=$[rt]}),tt};function extendSxProp($){const{sx:_e}=$,et=_objectWithoutPropertiesLoose$4($,_excluded$R),{systemProps:tt,otherProps:nt}=splitProps(et);let rt;return Array.isArray(_e)?rt=[tt,..._e]:typeof _e=="function"?rt=(...ot)=>{const it=_e(...ot);return isPlainObject(it)?_extends$6({},tt,it):tt}:rt=_extends$6({},tt,_e),_extends$6({},nt,{sx:rt})}function r$5($){var _e,et,tt="";if(typeof $=="string"||typeof $=="number")tt+=$;else if(typeof $=="object")if(Array.isArray($))for(_e=0;_e<$.length;_e++)$[_e]&&(et=r$5($[_e]))&&(tt&&(tt+=" "),tt+=et);else for(_e in $)$[_e]&&(tt&&(tt+=" "),tt+=_e);return tt}function clsx$3(){for(var $,_e,et=0,tt="";et{nt==="color"?tt+=isEmpty$3(tt)?$[nt]:capitalize$1($[nt]):tt+=`${isEmpty$3(tt)?nt:capitalize$1(nt)}${capitalize$1($[nt].toString())}`}),tt}const _excluded$P=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function isEmpty$2($){return Object.keys($).length===0}function isStringTag($){return typeof $=="string"&&$.charCodeAt(0)>96}const getStyleOverrides=($,_e)=>_e.components&&_e.components[$]&&_e.components[$].styleOverrides?_e.components[$].styleOverrides:null,transformVariants=$=>{let _e=0;const et={};return $&&$.forEach(tt=>{let nt="";typeof tt.props=="function"?(nt=`callback${_e}`,_e+=1):nt=propsToClassKey(tt.props),et[nt]=tt.style}),et},getVariantStyles=($,_e)=>{let et=[];return _e&&_e.components&&_e.components[$]&&_e.components[$].variants&&(et=_e.components[$].variants),transformVariants(et)},variantsResolver=($,_e,et)=>{const{ownerState:tt={}}=$,nt=[];let rt=0;return et&&et.forEach(ot=>{let it=!0;if(typeof ot.props=="function"){const st=_extends$6({},$,tt);it=ot.props(st)}else Object.keys(ot.props).forEach(st=>{tt[st]!==ot.props[st]&&$[st]!==ot.props[st]&&(it=!1)});it&&(typeof ot.props=="function"?nt.push(_e[`callback${rt}`]):nt.push(_e[propsToClassKey(ot.props)])),typeof ot.props=="function"&&(rt+=1)}),nt},themeVariantsResolver=($,_e,et,tt)=>{var nt;const rt=et==null||(nt=et.components)==null||(nt=nt[tt])==null?void 0:nt.variants;return variantsResolver($,_e,rt)};function shouldForwardProp($){return $!=="ownerState"&&$!=="theme"&&$!=="sx"&&$!=="as"}const systemDefaultTheme=createTheme$1(),lowercaseFirstLetter=$=>$&&$.charAt(0).toLowerCase()+$.slice(1);function resolveTheme({defaultTheme:$,theme:_e,themeId:et}){return isEmpty$2(_e)?$:_e[et]||_e}function defaultOverridesResolver($){return $?(_e,et)=>et[$]:null}const muiStyledFunctionResolver=({styledArg:$,props:_e,defaultTheme:et,themeId:tt})=>{const nt=$(_extends$6({},_e,{theme:resolveTheme(_extends$6({},_e,{defaultTheme:et,themeId:tt}))}));let rt;if(nt&&nt.variants&&(rt=nt.variants,delete nt.variants),rt){const ot=variantsResolver(_e,transformVariants(rt),rt);return[nt,...ot]}return nt};function createStyled($={}){const{themeId:_e,defaultTheme:et=systemDefaultTheme,rootShouldForwardProp:tt=shouldForwardProp,slotShouldForwardProp:nt=shouldForwardProp}=$,rt=ot=>styleFunctionSx(_extends$6({},ot,{theme:resolveTheme(_extends$6({},ot,{defaultTheme:et,themeId:_e}))}));return rt.__mui_systemSx=!0,(ot,it={})=>{internal_processStyles(ot,Ot=>Ot.filter(xt=>!(xt!=null&&xt.__mui_systemSx)));const{name:st,slot:lt,skipVariantsResolver:ct,skipSx:ft,overridesResolver:dt=defaultOverridesResolver(lowercaseFirstLetter(lt))}=it,pt=_objectWithoutPropertiesLoose$4(it,_excluded$P),ht=ct!==void 0?ct:lt&<!=="Root"&<!=="root"||!1,gt=ft||!1;let yt,vt=shouldForwardProp;lt==="Root"||lt==="root"?vt=tt:lt?vt=nt:isStringTag(ot)&&(vt=void 0);const Et=styled$2(ot,_extends$6({shouldForwardProp:vt,label:yt},pt)),Tt=(Ot,...xt)=>{const $t=xt?xt.map(bt=>{if(typeof bt=="function"&&bt.__emotion_real!==bt)return Pt=>muiStyledFunctionResolver({styledArg:bt,props:Pt,defaultTheme:et,themeId:_e});if(isPlainObject(bt)){let Pt=bt,It;return bt&&bt.variants&&(It=bt.variants,delete Pt.variants,Pt=Mt=>{let Rt=bt;return variantsResolver(Mt,transformVariants(It),It).forEach(Nt=>{Rt=deepmerge(Rt,Nt)}),Rt}),Pt}return bt}):[];let wt=Ot;if(isPlainObject(Ot)){let bt;Ot&&Ot.variants&&(bt=Ot.variants,delete wt.variants,wt=Pt=>{let It=Ot;return variantsResolver(Pt,transformVariants(bt),bt).forEach(Rt=>{It=deepmerge(It,Rt)}),It})}else typeof Ot=="function"&&Ot.__emotion_real!==Ot&&(wt=bt=>muiStyledFunctionResolver({styledArg:Ot,props:bt,defaultTheme:et,themeId:_e}));st&&dt&&$t.push(bt=>{const Pt=resolveTheme(_extends$6({},bt,{defaultTheme:et,themeId:_e})),It=getStyleOverrides(st,Pt);if(It){const Mt={};return Object.entries(It).forEach(([Rt,kt])=>{Mt[Rt]=typeof kt=="function"?kt(_extends$6({},bt,{theme:Pt})):kt}),dt(bt,Mt)}return null}),st&&!ht&&$t.push(bt=>{const Pt=resolveTheme(_extends$6({},bt,{defaultTheme:et,themeId:_e}));return themeVariantsResolver(bt,getVariantStyles(st,Pt),Pt,st)}),gt||$t.push(rt);const mt=$t.length-xt.length;if(Array.isArray(Ot)&&mt>0){const bt=new Array(mt).fill("");wt=[...Ot,...bt],wt.raw=[...Ot.raw,...bt]}const Ct=Et(wt,...$t);return ot.muiName&&(Ct.muiName=ot.muiName),Ct};return Et.withConfig&&(Tt.withConfig=Et.withConfig),Tt}}const styled$1=createStyled();function getThemeProps($){const{theme:_e,name:et,props:tt}=$;return!_e||!_e.components||!_e.components[et]||!_e.components[et].defaultProps?tt:resolveProps(_e.components[et].defaultProps,tt)}function useThemeProps$1({props:$,name:_e,defaultTheme:et,themeId:tt}){let nt=useTheme$3(et);return tt&&(nt=nt[tt]||nt),getThemeProps({theme:nt,name:_e,props:$})}function clamp$2($,_e=0,et=1){return Math.min(Math.max(_e,$),et)}function hexToRgb($){$=$.slice(1);const _e=new RegExp(`.{1,${$.length>=6?2:1}}`,"g");let et=$.match(_e);return et&&et[0].length===1&&(et=et.map(tt=>tt+tt)),et?`rgb${et.length===4?"a":""}(${et.map((tt,nt)=>nt<3?parseInt(tt,16):Math.round(parseInt(tt,16)/255*1e3)/1e3).join(", ")})`:""}function decomposeColor($){if($.type)return $;if($.charAt(0)==="#")return decomposeColor(hexToRgb($));const _e=$.indexOf("("),et=$.substring(0,_e);if(["rgb","rgba","hsl","hsla","color"].indexOf(et)===-1)throw new Error(formatMuiErrorMessage(9,$));let tt=$.substring(_e+1,$.length-1),nt;if(et==="color"){if(tt=tt.split(" "),nt=tt.shift(),tt.length===4&&tt[3].charAt(0)==="/"&&(tt[3]=tt[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(nt)===-1)throw new Error(formatMuiErrorMessage(10,nt))}else tt=tt.split(",");return tt=tt.map(rt=>parseFloat(rt)),{type:et,values:tt,colorSpace:nt}}function recomposeColor($){const{type:_e,colorSpace:et}=$;let{values:tt}=$;return _e.indexOf("rgb")!==-1?tt=tt.map((nt,rt)=>rt<3?parseInt(nt,10):nt):_e.indexOf("hsl")!==-1&&(tt[1]=`${tt[1]}%`,tt[2]=`${tt[2]}%`),_e.indexOf("color")!==-1?tt=`${et} ${tt.join(" ")}`:tt=`${tt.join(", ")}`,`${_e}(${tt})`}function hslToRgb($){$=decomposeColor($);const{values:_e}=$,et=_e[0],tt=_e[1]/100,nt=_e[2]/100,rt=tt*Math.min(nt,1-nt),ot=(lt,ct=(lt+et/30)%12)=>nt-rt*Math.max(Math.min(ct-3,9-ct,1),-1);let it="rgb";const st=[Math.round(ot(0)*255),Math.round(ot(8)*255),Math.round(ot(4)*255)];return $.type==="hsla"&&(it+="a",st.push(_e[3])),recomposeColor({type:it,values:st})}function getLuminance($){$=decomposeColor($);let _e=$.type==="hsl"||$.type==="hsla"?decomposeColor(hslToRgb($)).values:$.values;return _e=_e.map(et=>($.type!=="color"&&(et/=255),et<=.03928?et/12.92:((et+.055)/1.055)**2.4)),Number((.2126*_e[0]+.7152*_e[1]+.0722*_e[2]).toFixed(3))}function getContrastRatio($,_e){const et=getLuminance($),tt=getLuminance(_e);return(Math.max(et,tt)+.05)/(Math.min(et,tt)+.05)}function alpha($,_e){return $=decomposeColor($),_e=clamp$2(_e),($.type==="rgb"||$.type==="hsl")&&($.type+="a"),$.type==="color"?$.values[3]=`/${_e}`:$.values[3]=_e,recomposeColor($)}function darken($,_e){if($=decomposeColor($),_e=clamp$2(_e),$.type.indexOf("hsl")!==-1)$.values[2]*=1-_e;else if($.type.indexOf("rgb")!==-1||$.type.indexOf("color")!==-1)for(let et=0;et<3;et+=1)$.values[et]*=1-_e;return recomposeColor($)}function lighten($,_e){if($=decomposeColor($),_e=clamp$2(_e),$.type.indexOf("hsl")!==-1)$.values[2]+=(100-$.values[2])*_e;else if($.type.indexOf("rgb")!==-1)for(let et=0;et<3;et+=1)$.values[et]+=(255-$.values[et])*_e;else if($.type.indexOf("color")!==-1)for(let et=0;et<3;et+=1)$.values[et]+=(1-$.values[et])*_e;return recomposeColor($)}const ThemeContext=reactExports.createContext(null),ThemeContext$1=ThemeContext;function useTheme$2(){return reactExports.useContext(ThemeContext$1)}const hasSymbol=typeof Symbol=="function"&&Symbol.for,nested=hasSymbol?Symbol.for("mui.nested"):"__THEME_NESTED__";function mergeOuterLocalTheme($,_e){return typeof _e=="function"?_e($):_extends$6({},$,_e)}function ThemeProvider$2($){const{children:_e,theme:et}=$,tt=useTheme$2(),nt=reactExports.useMemo(()=>{const rt=tt===null?et:mergeOuterLocalTheme(tt,et);return rt!=null&&(rt[nested]=tt!==null),rt},[et,tt]);return jsxRuntimeExports.jsx(ThemeContext$1.Provider,{value:nt,children:_e})}const EMPTY_THEME={};function useThemeScoping($,_e,et,tt=!1){return reactExports.useMemo(()=>{const nt=$&&_e[$]||_e;if(typeof et=="function"){const rt=et(nt),ot=$?_extends$6({},_e,{[$]:rt}):rt;return tt?()=>ot:ot}return $?_extends$6({},_e,{[$]:et}):_extends$6({},_e,et)},[$,_e,et,tt])}function ThemeProvider$1($){const{children:_e,theme:et,themeId:tt}=$,nt=useTheme$4(EMPTY_THEME),rt=useTheme$2()||EMPTY_THEME,ot=useThemeScoping(tt,nt,et),it=useThemeScoping(tt,rt,et,!0);return jsxRuntimeExports.jsx(ThemeProvider$2,{theme:it,children:jsxRuntimeExports.jsx(ThemeContext$2.Provider,{value:ot,children:_e})})}const _excluded$O=["component","direction","spacing","divider","children","className","useFlexGap"],defaultTheme$3=createTheme$1(),defaultCreateStyledComponent=styled$1("div",{name:"MuiStack",slot:"Root",overridesResolver:($,_e)=>_e.root});function useThemePropsDefault($){return useThemeProps$1({props:$,name:"MuiStack",defaultTheme:defaultTheme$3})}function joinChildren($,_e){const et=reactExports.Children.toArray($).filter(Boolean);return et.reduce((tt,nt,rt)=>(tt.push(nt),rt({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[$],style=({ownerState:$,theme:_e})=>{let et=_extends$6({display:"flex",flexDirection:"column"},handleBreakpoints({theme:_e},resolveBreakpointValues({values:$.direction,breakpoints:_e.breakpoints.values}),tt=>({flexDirection:tt})));if($.spacing){const tt=createUnarySpacing(_e),nt=Object.keys(_e.breakpoints.values).reduce((st,lt)=>((typeof $.spacing=="object"&&$.spacing[lt]!=null||typeof $.direction=="object"&&$.direction[lt]!=null)&&(st[lt]=!0),st),{}),rt=resolveBreakpointValues({values:$.direction,base:nt}),ot=resolveBreakpointValues({values:$.spacing,base:nt});typeof rt=="object"&&Object.keys(rt).forEach((st,lt,ct)=>{if(!rt[st]){const dt=lt>0?rt[ct[lt-1]]:"column";rt[st]=dt}}),et=deepmerge(et,handleBreakpoints({theme:_e},ot,(st,lt)=>$.useFlexGap?{gap:getValue$1(tt,st)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${getSideFromDirection(lt?rt[lt]:$.direction)}`]:getValue$1(tt,st)}}))}return et=mergeBreakpointsInOrder(_e.breakpoints,et),et};function createStack($={}){const{createStyledComponent:_e=defaultCreateStyledComponent,useThemeProps:et=useThemePropsDefault,componentName:tt="MuiStack"}=$,nt=()=>composeClasses({root:["root"]},st=>generateUtilityClass(tt,st),{}),rt=_e(style);return reactExports.forwardRef(function(st,lt){const ct=et(st),ft=extendSxProp(ct),{component:dt="div",direction:pt="column",spacing:ht=0,divider:gt,children:yt,className:vt,useFlexGap:Et=!1}=ft,Tt=_objectWithoutPropertiesLoose$4(ft,_excluded$O),Ot={direction:pt,spacing:ht,useFlexGap:Et},xt=nt();return jsxRuntimeExports.jsx(rt,_extends$6({as:dt,ownerState:Ot,ref:lt,className:clsx$3(xt.root,vt)},Tt,{children:gt?joinChildren(yt,gt):yt}))})}function createMixins($,_e){return _extends$6({toolbar:{minHeight:56,[$.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[$.up("sm")]:{minHeight:64}}},_e)}const common={black:"#000",white:"#fff"},common$1=common,grey={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},grey$1=grey,purple={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},purple$1=purple,red={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},red$1=red,orange={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},orange$1=orange,blue={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},blue$1=blue,lightBlue={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},lightBlue$1=lightBlue,green={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},green$1=green,_excluded$N=["mode","contrastThreshold","tonalOffset"],light={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:common$1.white,default:common$1.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},dark={text:{primary:common$1.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:common$1.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function addLightOrDark($,_e,et,tt){const nt=tt.light||tt,rt=tt.dark||tt*1.5;$[_e]||($.hasOwnProperty(et)?$[_e]=$[et]:_e==="light"?$.light=lighten($.main,nt):_e==="dark"&&($.dark=darken($.main,rt)))}function getDefaultPrimary($="light"){return $==="dark"?{main:blue$1[200],light:blue$1[50],dark:blue$1[400]}:{main:blue$1[700],light:blue$1[400],dark:blue$1[800]}}function getDefaultSecondary($="light"){return $==="dark"?{main:purple$1[200],light:purple$1[50],dark:purple$1[400]}:{main:purple$1[500],light:purple$1[300],dark:purple$1[700]}}function getDefaultError($="light"){return $==="dark"?{main:red$1[500],light:red$1[300],dark:red$1[700]}:{main:red$1[700],light:red$1[400],dark:red$1[800]}}function getDefaultInfo($="light"){return $==="dark"?{main:lightBlue$1[400],light:lightBlue$1[300],dark:lightBlue$1[700]}:{main:lightBlue$1[700],light:lightBlue$1[500],dark:lightBlue$1[900]}}function getDefaultSuccess($="light"){return $==="dark"?{main:green$1[400],light:green$1[300],dark:green$1[700]}:{main:green$1[800],light:green$1[500],dark:green$1[900]}}function getDefaultWarning($="light"){return $==="dark"?{main:orange$1[400],light:orange$1[300],dark:orange$1[700]}:{main:"#ed6c02",light:orange$1[500],dark:orange$1[900]}}function createPalette($){const{mode:_e="light",contrastThreshold:et=3,tonalOffset:tt=.2}=$,nt=_objectWithoutPropertiesLoose$4($,_excluded$N),rt=$.primary||getDefaultPrimary(_e),ot=$.secondary||getDefaultSecondary(_e),it=$.error||getDefaultError(_e),st=$.info||getDefaultInfo(_e),lt=$.success||getDefaultSuccess(_e),ct=$.warning||getDefaultWarning(_e);function ft(gt){return getContrastRatio(gt,dark.text.primary)>=et?dark.text.primary:light.text.primary}const dt=({color:gt,name:yt,mainShade:vt=500,lightShade:Et=300,darkShade:Tt=700})=>{if(gt=_extends$6({},gt),!gt.main&>[vt]&&(gt.main=gt[vt]),!gt.hasOwnProperty("main"))throw new Error(formatMuiErrorMessage(11,yt?` (${yt})`:"",vt));if(typeof gt.main!="string")throw new Error(formatMuiErrorMessage(12,yt?` (${yt})`:"",JSON.stringify(gt.main)));return addLightOrDark(gt,"light",Et,tt),addLightOrDark(gt,"dark",Tt,tt),gt.contrastText||(gt.contrastText=ft(gt.main)),gt},pt={dark,light};return deepmerge(_extends$6({common:_extends$6({},common$1),mode:_e,primary:dt({color:rt,name:"primary"}),secondary:dt({color:ot,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:dt({color:it,name:"error"}),warning:dt({color:ct,name:"warning"}),info:dt({color:st,name:"info"}),success:dt({color:lt,name:"success"}),grey:grey$1,contrastThreshold:et,getContrastText:ft,augmentColor:dt,tonalOffset:tt},pt[_e]),nt)}const _excluded$M=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function round$3($){return Math.round($*1e5)/1e5}const caseAllCaps={textTransform:"uppercase"},defaultFontFamily='"Roboto", "Helvetica", "Arial", sans-serif';function createTypography($,_e){const et=typeof _e=="function"?_e($):_e,{fontFamily:tt=defaultFontFamily,fontSize:nt=14,fontWeightLight:rt=300,fontWeightRegular:ot=400,fontWeightMedium:it=500,fontWeightBold:st=700,htmlFontSize:lt=16,allVariants:ct,pxToRem:ft}=et,dt=_objectWithoutPropertiesLoose$4(et,_excluded$M),pt=nt/14,ht=ft||(vt=>`${vt/lt*pt}rem`),gt=(vt,Et,Tt,Ot,xt)=>_extends$6({fontFamily:tt,fontWeight:vt,fontSize:ht(Et),lineHeight:Tt},tt===defaultFontFamily?{letterSpacing:`${round$3(Ot/Et)}em`}:{},xt,ct),yt={h1:gt(rt,96,1.167,-1.5),h2:gt(rt,60,1.2,-.5),h3:gt(ot,48,1.167,0),h4:gt(ot,34,1.235,.25),h5:gt(ot,24,1.334,0),h6:gt(it,20,1.6,.15),subtitle1:gt(ot,16,1.75,.15),subtitle2:gt(it,14,1.57,.1),body1:gt(ot,16,1.5,.15),body2:gt(ot,14,1.43,.15),button:gt(it,14,1.75,.4,caseAllCaps),caption:gt(ot,12,1.66,.4),overline:gt(ot,12,2.66,1,caseAllCaps),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return deepmerge(_extends$6({htmlFontSize:lt,pxToRem:ht,fontFamily:tt,fontSize:nt,fontWeightLight:rt,fontWeightRegular:ot,fontWeightMedium:it,fontWeightBold:st},yt),dt,{clone:!1})}const shadowKeyUmbraOpacity=.2,shadowKeyPenumbraOpacity=.14,shadowAmbientShadowOpacity=.12;function createShadow(...$){return[`${$[0]}px ${$[1]}px ${$[2]}px ${$[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`,`${$[4]}px ${$[5]}px ${$[6]}px ${$[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`,`${$[8]}px ${$[9]}px ${$[10]}px ${$[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(",")}const shadows=["none",createShadow(0,2,1,-1,0,1,1,0,0,1,3,0),createShadow(0,3,1,-2,0,2,2,0,0,1,5,0),createShadow(0,3,3,-2,0,3,4,0,0,1,8,0),createShadow(0,2,4,-1,0,4,5,0,0,1,10,0),createShadow(0,3,5,-1,0,5,8,0,0,1,14,0),createShadow(0,3,5,-1,0,6,10,0,0,1,18,0),createShadow(0,4,5,-2,0,7,10,1,0,2,16,1),createShadow(0,5,5,-3,0,8,10,1,0,3,14,2),createShadow(0,5,6,-3,0,9,12,1,0,3,16,2),createShadow(0,6,6,-3,0,10,14,1,0,4,18,3),createShadow(0,6,7,-4,0,11,15,1,0,4,20,3),createShadow(0,7,8,-4,0,12,17,2,0,5,22,4),createShadow(0,7,8,-4,0,13,19,2,0,5,24,4),createShadow(0,7,9,-4,0,14,21,2,0,5,26,4),createShadow(0,8,9,-5,0,15,22,2,0,6,28,5),createShadow(0,8,10,-5,0,16,24,2,0,6,30,5),createShadow(0,8,11,-5,0,17,26,2,0,6,32,5),createShadow(0,9,11,-5,0,18,28,2,0,7,34,6),createShadow(0,9,12,-6,0,19,29,2,0,7,36,6),createShadow(0,10,13,-6,0,20,31,3,0,8,38,7),createShadow(0,10,13,-6,0,21,33,3,0,8,40,7),createShadow(0,10,14,-6,0,22,35,3,0,8,42,7),createShadow(0,11,14,-7,0,23,36,3,0,9,44,8),createShadow(0,11,15,-7,0,24,38,3,0,9,46,8)],_excluded$L=["duration","easing","delay"],easing={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function formatMs($){return`${Math.round($)}ms`}function getAutoHeightDuration($){if(!$)return 0;const _e=$/36;return Math.round((4+15*_e**.25+_e/5)*10)}function createTransitions($){const _e=_extends$6({},easing,$.easing),et=_extends$6({},duration,$.duration);return _extends$6({getAutoHeightDuration,create:(nt=["all"],rt={})=>{const{duration:ot=et.standard,easing:it=_e.easeInOut,delay:st=0}=rt;return _objectWithoutPropertiesLoose$4(rt,_excluded$L),(Array.isArray(nt)?nt:[nt]).map(lt=>`${lt} ${typeof ot=="string"?ot:formatMs(ot)} ${it} ${typeof st=="string"?st:formatMs(st)}`).join(",")}},$,{easing:_e,duration:et})}const zIndex={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},zIndex$1=zIndex,_excluded$K=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function createTheme($={},..._e){const{mixins:et={},palette:tt={},transitions:nt={},typography:rt={}}=$,ot=_objectWithoutPropertiesLoose$4($,_excluded$K);if($.vars)throw new Error(formatMuiErrorMessage(18));const it=createPalette(tt),st=createTheme$1($);let lt=deepmerge(st,{mixins:createMixins(st.breakpoints,et),palette:it,shadows:shadows.slice(),typography:createTypography(it,rt),transitions:createTransitions(nt),zIndex:_extends$6({},zIndex$1)});return lt=deepmerge(lt,ot),lt=_e.reduce((ct,ft)=>deepmerge(ct,ft),lt),lt.unstable_sxConfig=_extends$6({},defaultSxConfig$1,ot==null?void 0:ot.unstable_sxConfig),lt.unstable_sx=function(ft){return styleFunctionSx({sx:ft,theme:this})},lt}const defaultTheme$1=createTheme(),defaultTheme$2=defaultTheme$1;function useTheme$1(){const $=useTheme$3(defaultTheme$2);return $[THEME_ID]||$}function useThemeProps({props:$,name:_e}){return useThemeProps$1({props:$,name:_e,defaultTheme:defaultTheme$2,themeId:THEME_ID})}const rootShouldForwardProp=$=>shouldForwardProp($)&&$!=="classes",slotShouldForwardProp=shouldForwardProp,styled=createStyled({themeId:THEME_ID,defaultTheme:defaultTheme$2,rootShouldForwardProp}),_excluded$J=["theme"];function ThemeProvider($){let{theme:_e}=$,et=_objectWithoutPropertiesLoose$4($,_excluded$J);const tt=_e[THEME_ID];return jsxRuntimeExports.jsx(ThemeProvider$1,_extends$6({},et,{themeId:tt?THEME_ID:void 0,theme:tt||_e}))}const getOverlayAlpha=$=>{let _e;return $<1?_e=5.11916*$**2:_e=4.5*Math.log($+1)+2,(_e/100).toFixed(2)},ProtoButton=React$5.forwardRef(({children:$,..._e},et)=>jsx$1("button",{type:"button",ref:et,css:{border:"none",padding:0,background:"none",color:"inherit",":not([disabled])":{cursor:"pointer"}},..._e,children:$}));class Bug extends Error{constructor(_e){super(`${_e} (this is a bug in this application)`),this.name="Bug"}}const bug=$=>{throw new Bug($)},unreachable=$=>{const _e="reached unreachable code";throw new Bug($===void 0?_e:`${_e}: ${$}`)},COLOR_SCHEMES=["light","dark","light-high-contrast","dark-high-contrast"],LOCAL_STORAGE_KEY="colorScheme",ColorSchemeContext=React$5.createContext(null),useColorScheme=()=>reactExports.useContext(ColorSchemeContext)??bug("missing color scheme context provider"),ColorSchemeProvider=({allowedSchemes:$=COLOR_SCHEMES,children:_e})=>{if($.length<2)return bug("`allowedSchemes` for ColorSchemeProvider need to have at least 2 schemes");if(!$.includes("light")&&!$.includes("dark"))return bug("`allowedSchemes` must contain either 'light' or 'dark'");const et=ft=>!!ft&&$.includes(ft),tt=document.documentElement.dataset.colorScheme,nt=et(tt)?tt:"light",[rt,ot]=reactExports.useState(nt),it=window.localStorage.getItem(LOCAL_STORAGE_KEY),[st,lt]=reactExports.useState(!et(it)),ct={scheme:rt,isAuto:st,isHighContrast:rt.includes("high-contrast"),update:ft=>{if(ft!=="auto"&&!et(ft))return bug("Passed forbidden color scheme to `update`");window.localStorage.setItem(LOCAL_STORAGE_KEY,ft),lt(ft==="auto");const dt=ft!=="auto"?ft:(()=>{const pt=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",ht=window.matchMedia("(prefers-contrast: more)").matches?"-high-contrast":"",gt=`${pt}${ht}`;if($.includes(gt))return gt;const vt=`${pt==="light"?"dark":"light"}${ht}`;return $.includes(vt)?vt:pt})();ot(dt),document.documentElement.dataset.colorScheme=dt}};return jsx$1(ColorSchemeContext.Provider,{value:ct,children:_e})},DEFAULT_CONFIG={colors:{neutral00:"var(--color-neutral00)",neutral05:"var(--color-neutral05)",neutral10:"var(--color-neutral10)",neutral15:"var(--color-neutral15)",neutral20:"var(--color-neutral20)",neutral25:"var(--color-neutral25)",neutral30:"var(--color-neutral30)",neutral40:"var(--color-neutral40)",neutral50:"var(--color-neutral50)",neutral60:"var(--color-neutral60)",neutral70:"var(--color-neutral70)",neutral80:"var(--color-neutral80)",neutral90:"var(--color-neutral90)",danger0:"var(--color-danger0)",danger1:"var(--color-danger1)",danger2:"var(--color-danger2)",danger4:"var(--color-danger4)",danger5:"var(--color-danger5)",accent8:"var(--color-accent8)",accent7:"var(--color-accent7)",accent6:"var(--color-accent6)",accent5:"var(--color-accent5)",accent4:"var(--color-accent4)",focus:"var(--color-accent8)"},breakpoints:{small:450,medium:650,large:900}},Context=React$5.createContext(DEFAULT_CONFIG),useAppkitConfig=()=>reactExports.useContext(Context),min$1=Math.min,max$1=Math.max,round$2=Math.round,floor=Math.floor,createCoords=$=>({x:$,y:$}),oppositeSideMap={left:"right",right:"left",bottom:"top",top:"bottom"},oppositeAlignmentMap={start:"end",end:"start"};function clamp$1($,_e,et){return max$1($,min$1(_e,et))}function evaluate($,_e){return typeof $=="function"?$(_e):$}function getSide($){return $.split("-")[0]}function getAlignment($){return $.split("-")[1]}function getOppositeAxis($){return $==="x"?"y":"x"}function getAxisLength($){return $==="y"?"height":"width"}function getSideAxis($){return["top","bottom"].includes(getSide($))?"y":"x"}function getAlignmentAxis($){return getOppositeAxis(getSideAxis($))}function getAlignmentSides($,_e,et){et===void 0&&(et=!1);const tt=getAlignment($),nt=getAlignmentAxis($),rt=getAxisLength(nt);let ot=nt==="x"?tt===(et?"end":"start")?"right":"left":tt==="start"?"bottom":"top";return _e.reference[rt]>_e.floating[rt]&&(ot=getOppositePlacement$1(ot)),[ot,getOppositePlacement$1(ot)]}function getExpandedPlacements($){const _e=getOppositePlacement$1($);return[getOppositeAlignmentPlacement($),_e,getOppositeAlignmentPlacement(_e)]}function getOppositeAlignmentPlacement($){return $.replace(/start|end/g,_e=>oppositeAlignmentMap[_e])}function getSideList($,_e,et){const tt=["left","right"],nt=["right","left"],rt=["top","bottom"],ot=["bottom","top"];switch($){case"top":case"bottom":return et?_e?nt:tt:_e?tt:nt;case"left":case"right":return _e?rt:ot;default:return[]}}function getOppositeAxisPlacements($,_e,et,tt){const nt=getAlignment($);let rt=getSideList(getSide($),et==="start",tt);return nt&&(rt=rt.map(ot=>ot+"-"+nt),_e&&(rt=rt.concat(rt.map(getOppositeAlignmentPlacement)))),rt}function getOppositePlacement$1($){return $.replace(/left|right|bottom|top/g,_e=>oppositeSideMap[_e])}function expandPaddingObject($){return{top:0,right:0,bottom:0,left:0,...$}}function getPaddingObject($){return typeof $!="number"?expandPaddingObject($):{top:$,right:$,bottom:$,left:$}}function rectToClientRect$1($){return{...$,top:$.y,left:$.x,right:$.x+$.width,bottom:$.y+$.height}}function computeCoordsFromPlacement($,_e,et){let{reference:tt,floating:nt}=$;const rt=getSideAxis(_e),ot=getAlignmentAxis(_e),it=getAxisLength(ot),st=getSide(_e),lt=rt==="y",ct=tt.x+tt.width/2-nt.width/2,ft=tt.y+tt.height/2-nt.height/2,dt=tt[it]/2-nt[it]/2;let pt;switch(st){case"top":pt={x:ct,y:tt.y-nt.height};break;case"bottom":pt={x:ct,y:tt.y+tt.height};break;case"right":pt={x:tt.x+tt.width,y:ft};break;case"left":pt={x:tt.x-nt.width,y:ft};break;default:pt={x:tt.x,y:tt.y}}switch(getAlignment(_e)){case"start":pt[ot]-=dt*(et&<?-1:1);break;case"end":pt[ot]+=dt*(et&<?-1:1);break}return pt}const computePosition$1=async($,_e,et)=>{const{placement:tt="bottom",strategy:nt="absolute",middleware:rt=[],platform:ot}=et,it=rt.filter(Boolean),st=await(ot.isRTL==null?void 0:ot.isRTL(_e));let lt=await ot.getElementRects({reference:$,floating:_e,strategy:nt}),{x:ct,y:ft}=computeCoordsFromPlacement(lt,tt,st),dt=tt,pt={},ht=0;for(let gt=0;gt({name:"arrow",options:$,async fn(_e){const{x:et,y:tt,placement:nt,rects:rt,platform:ot,elements:it}=_e,{element:st,padding:lt=0}=evaluate($,_e)||{};if(st==null)return{};const ct=getPaddingObject(lt),ft={x:et,y:tt},dt=getAlignmentAxis(nt),pt=getAxisLength(dt),ht=await ot.getDimensions(st),gt=dt==="y",yt=gt?"top":"left",vt=gt?"bottom":"right",Et=gt?"clientHeight":"clientWidth",Tt=rt.reference[pt]+rt.reference[dt]-ft[dt]-rt.floating[pt],Ot=ft[dt]-rt.reference[dt],xt=await(ot.getOffsetParent==null?void 0:ot.getOffsetParent(st));let $t=xt?xt[Et]:0;(!$t||!await(ot.isElement==null?void 0:ot.isElement(xt)))&&($t=it.floating[Et]||rt.floating[pt]);const wt=Tt/2-Ot/2,mt=$t/2-ht[pt]/2-1,Ct=min$1(ct[yt],mt),bt=min$1(ct[vt],mt),Pt=Ct,It=$t-ht[pt]-bt,Mt=$t/2-ht[pt]/2+wt,Rt=clamp$1(Pt,Mt,It),Nt=getAlignment(nt)!=null&&Mt!=Rt&&rt.reference[pt]/2-(MtPt<=0)){var mt,Ct;const Pt=(((mt=nt.flip)==null?void 0:mt.index)||0)+1,It=Ot[Pt];if(It)return{data:{index:Pt,overflows:wt},reset:{placement:It}};let Mt=(Ct=wt.filter(Rt=>Rt.overflows[0]<=0).sort((Rt,kt)=>Rt.overflows[1]-kt.overflows[1])[0])==null?void 0:Ct.placement;if(!Mt)switch(dt){case"bestFit":{var bt;const Rt=(bt=wt.map(kt=>[kt.placement,kt.overflows.filter(Nt=>Nt>0).reduce((Nt,Ft)=>Nt+Ft,0)]).sort((kt,Nt)=>kt[1]-Nt[1])[0])==null?void 0:bt[0];Rt&&(Mt=Rt);break}case"initialPlacement":Mt=ot;break}if(tt!==Mt)return{reset:{placement:Mt}}}return{}}}};async function convertValueToCoords($,_e){const{placement:et,platform:tt,elements:nt}=$,rt=await(tt.isRTL==null?void 0:tt.isRTL(nt.floating)),ot=getSide(et),it=getAlignment(et),st=getSideAxis(et)==="y",lt=["left","top"].includes(ot)?-1:1,ct=rt&&st?-1:1,ft=evaluate(_e,$);let{mainAxis:dt,crossAxis:pt,alignmentAxis:ht}=typeof ft=="number"?{mainAxis:ft,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...ft};return it&&typeof ht=="number"&&(pt=it==="end"?ht*-1:ht),st?{x:pt*ct,y:dt*lt}:{x:dt*lt,y:pt*ct}}const offset$3=function($){return $===void 0&&($=0),{name:"offset",options:$,async fn(_e){const{x:et,y:tt}=_e,nt=await convertValueToCoords(_e,$);return{x:et+nt.x,y:tt+nt.y,data:nt}}}},shift=function($){return $===void 0&&($={}),{name:"shift",options:$,async fn(_e){const{x:et,y:tt,placement:nt}=_e,{mainAxis:rt=!0,crossAxis:ot=!1,limiter:it={fn:yt=>{let{x:vt,y:Et}=yt;return{x:vt,y:Et}}},...st}=evaluate($,_e),lt={x:et,y:tt},ct=await detectOverflow$1(_e,st),ft=getSideAxis(getSide(nt)),dt=getOppositeAxis(ft);let pt=lt[dt],ht=lt[ft];if(rt){const yt=dt==="y"?"top":"left",vt=dt==="y"?"bottom":"right",Et=pt+ct[yt],Tt=pt-ct[vt];pt=clamp$1(Et,pt,Tt)}if(ot){const yt=ft==="y"?"top":"left",vt=ft==="y"?"bottom":"right",Et=ht+ct[yt],Tt=ht-ct[vt];ht=clamp$1(Et,ht,Tt)}const gt=it.fn({..._e,[dt]:pt,[ft]:ht});return{...gt,data:{x:gt.x-et,y:gt.y-tt}}}}};function getNodeName$1($){return isNode($)?($.nodeName||"").toLowerCase():"#document"}function getWindow$2($){var _e;return($==null||(_e=$.ownerDocument)==null?void 0:_e.defaultView)||window}function getDocumentElement$1($){var _e;return(_e=(isNode($)?$.ownerDocument:$.document)||window.document)==null?void 0:_e.documentElement}function isNode($){return $ instanceof Node||$ instanceof getWindow$2($).Node}function isElement$2($){return $ instanceof Element||$ instanceof getWindow$2($).Element}function isHTMLElement$3($){return $ instanceof HTMLElement||$ instanceof getWindow$2($).HTMLElement}function isShadowRoot$2($){return typeof ShadowRoot>"u"?!1:$ instanceof ShadowRoot||$ instanceof getWindow$2($).ShadowRoot}function isOverflowElement($){const{overflow:_e,overflowX:et,overflowY:tt,display:nt}=getComputedStyle$2($);return/auto|scroll|overlay|hidden|clip/.test(_e+tt+et)&&!["inline","contents"].includes(nt)}function isTableElement$1($){return["table","td","th"].includes(getNodeName$1($))}function isContainingBlock($){const _e=isWebKit(),et=getComputedStyle$2($);return et.transform!=="none"||et.perspective!=="none"||(et.containerType?et.containerType!=="normal":!1)||!_e&&(et.backdropFilter?et.backdropFilter!=="none":!1)||!_e&&(et.filter?et.filter!=="none":!1)||["transform","perspective","filter"].some(tt=>(et.willChange||"").includes(tt))||["paint","layout","strict","content"].some(tt=>(et.contain||"").includes(tt))}function getContainingBlock$1($){let _e=getParentNode$1($);for(;isHTMLElement$3(_e)&&!isLastTraversableNode(_e);){if(isContainingBlock(_e))return _e;_e=getParentNode$1(_e)}return null}function isWebKit(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode($){return["html","body","#document"].includes(getNodeName$1($))}function getComputedStyle$2($){return getWindow$2($).getComputedStyle($)}function getNodeScroll$1($){return isElement$2($)?{scrollLeft:$.scrollLeft,scrollTop:$.scrollTop}:{scrollLeft:$.pageXOffset,scrollTop:$.pageYOffset}}function getParentNode$1($){if(getNodeName$1($)==="html")return $;const _e=$.assignedSlot||$.parentNode||isShadowRoot$2($)&&$.host||getDocumentElement$1($);return isShadowRoot$2(_e)?_e.host:_e}function getNearestOverflowAncestor($){const _e=getParentNode$1($);return isLastTraversableNode(_e)?$.ownerDocument?$.ownerDocument.body:$.body:isHTMLElement$3(_e)&&isOverflowElement(_e)?_e:getNearestOverflowAncestor(_e)}function getOverflowAncestors($,_e){var et;_e===void 0&&(_e=[]);const tt=getNearestOverflowAncestor($),nt=tt===((et=$.ownerDocument)==null?void 0:et.body),rt=getWindow$2(tt);return nt?_e.concat(rt,rt.visualViewport||[],isOverflowElement(tt)?tt:[]):_e.concat(tt,getOverflowAncestors(tt))}function getCssDimensions($){const _e=getComputedStyle$2($);let et=parseFloat(_e.width)||0,tt=parseFloat(_e.height)||0;const nt=isHTMLElement$3($),rt=nt?$.offsetWidth:et,ot=nt?$.offsetHeight:tt,it=round$2(et)!==rt||round$2(tt)!==ot;return it&&(et=rt,tt=ot),{width:et,height:tt,$:it}}function unwrapElement($){return isElement$2($)?$:$.contextElement}function getScale$1($){const _e=unwrapElement($);if(!isHTMLElement$3(_e))return createCoords(1);const et=_e.getBoundingClientRect(),{width:tt,height:nt,$:rt}=getCssDimensions(_e);let ot=(rt?round$2(et.width):et.width)/tt,it=(rt?round$2(et.height):et.height)/nt;return(!ot||!Number.isFinite(ot))&&(ot=1),(!it||!Number.isFinite(it))&&(it=1),{x:ot,y:it}}const noOffsets=createCoords(0);function getVisualOffsets($){const _e=getWindow$2($);return!isWebKit()||!_e.visualViewport?noOffsets:{x:_e.visualViewport.offsetLeft,y:_e.visualViewport.offsetTop}}function shouldAddVisualOffsets($,_e,et){return _e===void 0&&(_e=!1),!et||_e&&et!==getWindow$2($)?!1:_e}function getBoundingClientRect$1($,_e,et,tt){_e===void 0&&(_e=!1),et===void 0&&(et=!1);const nt=$.getBoundingClientRect(),rt=unwrapElement($);let ot=createCoords(1);_e&&(tt?isElement$2(tt)&&(ot=getScale$1(tt)):ot=getScale$1($));const it=shouldAddVisualOffsets(rt,et,tt)?getVisualOffsets(rt):createCoords(0);let st=(nt.left+it.x)/ot.x,lt=(nt.top+it.y)/ot.y,ct=nt.width/ot.x,ft=nt.height/ot.y;if(rt){const dt=getWindow$2(rt),pt=tt&&isElement$2(tt)?getWindow$2(tt):tt;let ht=dt.frameElement;for(;ht&&tt&&pt!==dt;){const gt=getScale$1(ht),yt=ht.getBoundingClientRect(),vt=getComputedStyle$2(ht),Et=yt.left+(ht.clientLeft+parseFloat(vt.paddingLeft))*gt.x,Tt=yt.top+(ht.clientTop+parseFloat(vt.paddingTop))*gt.y;st*=gt.x,lt*=gt.y,ct*=gt.x,ft*=gt.y,st+=Et,lt+=Tt,ht=getWindow$2(ht).frameElement}}return rectToClientRect$1({width:ct,height:ft,x:st,y:lt})}function convertOffsetParentRelativeRectToViewportRelativeRect($){let{rect:_e,offsetParent:et,strategy:tt}=$;const nt=isHTMLElement$3(et),rt=getDocumentElement$1(et);if(et===rt)return _e;let ot={scrollLeft:0,scrollTop:0},it=createCoords(1);const st=createCoords(0);if((nt||!nt&&tt!=="fixed")&&((getNodeName$1(et)!=="body"||isOverflowElement(rt))&&(ot=getNodeScroll$1(et)),isHTMLElement$3(et))){const lt=getBoundingClientRect$1(et);it=getScale$1(et),st.x=lt.x+et.clientLeft,st.y=lt.y+et.clientTop}return{width:_e.width*it.x,height:_e.height*it.y,x:_e.x*it.x-ot.scrollLeft*it.x+st.x,y:_e.y*it.y-ot.scrollTop*it.y+st.y}}function getClientRects($){return Array.from($.getClientRects())}function getWindowScrollBarX$1($){return getBoundingClientRect$1(getDocumentElement$1($)).left+getNodeScroll$1($).scrollLeft}function getDocumentRect$1($){const _e=getDocumentElement$1($),et=getNodeScroll$1($),tt=$.ownerDocument.body,nt=max$1(_e.scrollWidth,_e.clientWidth,tt.scrollWidth,tt.clientWidth),rt=max$1(_e.scrollHeight,_e.clientHeight,tt.scrollHeight,tt.clientHeight);let ot=-et.scrollLeft+getWindowScrollBarX$1($);const it=-et.scrollTop;return getComputedStyle$2(tt).direction==="rtl"&&(ot+=max$1(_e.clientWidth,tt.clientWidth)-nt),{width:nt,height:rt,x:ot,y:it}}function getViewportRect$1($,_e){const et=getWindow$2($),tt=getDocumentElement$1($),nt=et.visualViewport;let rt=tt.clientWidth,ot=tt.clientHeight,it=0,st=0;if(nt){rt=nt.width,ot=nt.height;const lt=isWebKit();(!lt||lt&&_e==="fixed")&&(it=nt.offsetLeft,st=nt.offsetTop)}return{width:rt,height:ot,x:it,y:st}}function getInnerBoundingClientRect$1($,_e){const et=getBoundingClientRect$1($,!0,_e==="fixed"),tt=et.top+$.clientTop,nt=et.left+$.clientLeft,rt=isHTMLElement$3($)?getScale$1($):createCoords(1),ot=$.clientWidth*rt.x,it=$.clientHeight*rt.y,st=nt*rt.x,lt=tt*rt.y;return{width:ot,height:it,x:st,y:lt}}function getClientRectFromClippingAncestor($,_e,et){let tt;if(_e==="viewport")tt=getViewportRect$1($,et);else if(_e==="document")tt=getDocumentRect$1(getDocumentElement$1($));else if(isElement$2(_e))tt=getInnerBoundingClientRect$1(_e,et);else{const nt=getVisualOffsets($);tt={..._e,x:_e.x-nt.x,y:_e.y-nt.y}}return rectToClientRect$1(tt)}function hasFixedPositionAncestor($,_e){const et=getParentNode$1($);return et===_e||!isElement$2(et)||isLastTraversableNode(et)?!1:getComputedStyle$2(et).position==="fixed"||hasFixedPositionAncestor(et,_e)}function getClippingElementAncestors($,_e){const et=_e.get($);if(et)return et;let tt=getOverflowAncestors($).filter(it=>isElement$2(it)&&getNodeName$1(it)!=="body"),nt=null;const rt=getComputedStyle$2($).position==="fixed";let ot=rt?getParentNode$1($):$;for(;isElement$2(ot)&&!isLastTraversableNode(ot);){const it=getComputedStyle$2(ot),st=isContainingBlock(ot);!st&&it.position==="fixed"&&(nt=null),(rt?!st&&!nt:!st&&it.position==="static"&&!!nt&&["absolute","fixed"].includes(nt.position)||isOverflowElement(ot)&&!st&&hasFixedPositionAncestor($,ot))?tt=tt.filter(ct=>ct!==ot):nt=it,ot=getParentNode$1(ot)}return _e.set($,tt),tt}function getClippingRect$1($){let{element:_e,boundary:et,rootBoundary:tt,strategy:nt}=$;const ot=[...et==="clippingAncestors"?getClippingElementAncestors(_e,this._c):[].concat(et),tt],it=ot[0],st=ot.reduce((lt,ct)=>{const ft=getClientRectFromClippingAncestor(_e,ct,nt);return lt.top=max$1(ft.top,lt.top),lt.right=min$1(ft.right,lt.right),lt.bottom=min$1(ft.bottom,lt.bottom),lt.left=max$1(ft.left,lt.left),lt},getClientRectFromClippingAncestor(_e,it,nt));return{width:st.right-st.left,height:st.bottom-st.top,x:st.left,y:st.top}}function getDimensions($){return getCssDimensions($)}function getRectRelativeToOffsetParent($,_e,et){const tt=isHTMLElement$3(_e),nt=getDocumentElement$1(_e),rt=et==="fixed",ot=getBoundingClientRect$1($,!0,rt,_e);let it={scrollLeft:0,scrollTop:0};const st=createCoords(0);if(tt||!tt&&!rt)if((getNodeName$1(_e)!=="body"||isOverflowElement(nt))&&(it=getNodeScroll$1(_e)),tt){const lt=getBoundingClientRect$1(_e,!0,rt,_e);st.x=lt.x+_e.clientLeft,st.y=lt.y+_e.clientTop}else nt&&(st.x=getWindowScrollBarX$1(nt));return{x:ot.left+it.scrollLeft-st.x,y:ot.top+it.scrollTop-st.y,width:ot.width,height:ot.height}}function getTrueOffsetParent$1($,_e){return!isHTMLElement$3($)||getComputedStyle$2($).position==="fixed"?null:_e?_e($):$.offsetParent}function getOffsetParent$1($,_e){const et=getWindow$2($);if(!isHTMLElement$3($))return et;let tt=getTrueOffsetParent$1($,_e);for(;tt&&isTableElement$1(tt)&&getComputedStyle$2(tt).position==="static";)tt=getTrueOffsetParent$1(tt,_e);return tt&&(getNodeName$1(tt)==="html"||getNodeName$1(tt)==="body"&&getComputedStyle$2(tt).position==="static"&&!isContainingBlock(tt))?et:tt||getContainingBlock$1($)||et}const getElementRects=async function($){let{reference:_e,floating:et,strategy:tt}=$;const nt=this.getOffsetParent||getOffsetParent$1,rt=this.getDimensions;return{reference:getRectRelativeToOffsetParent(_e,await nt(et),tt),floating:{x:0,y:0,...await rt(et)}}};function isRTL($){return getComputedStyle$2($).direction==="rtl"}const platform={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement:getDocumentElement$1,getClippingRect:getClippingRect$1,getOffsetParent:getOffsetParent$1,getElementRects,getClientRects,getDimensions,getScale:getScale$1,isElement:isElement$2,isRTL};function observeMove($,_e){let et=null,tt;const nt=getDocumentElement$1($);function rt(){clearTimeout(tt),et&&et.disconnect(),et=null}function ot(it,st){it===void 0&&(it=!1),st===void 0&&(st=1),rt();const{left:lt,top:ct,width:ft,height:dt}=$.getBoundingClientRect();if(it||_e(),!ft||!dt)return;const pt=floor(ct),ht=floor(nt.clientWidth-(lt+ft)),gt=floor(nt.clientHeight-(ct+dt)),yt=floor(lt),Et={rootMargin:-pt+"px "+-ht+"px "+-gt+"px "+-yt+"px",threshold:max$1(0,min$1(1,st))||1};let Tt=!0;function Ot(xt){const $t=xt[0].intersectionRatio;if($t!==st){if(!Tt)return ot();$t?ot(!1,$t):tt=setTimeout(()=>{ot(!1,1e-7)},100)}Tt=!1}try{et=new IntersectionObserver(Ot,{...Et,root:nt.ownerDocument})}catch{et=new IntersectionObserver(Ot,Et)}et.observe($)}return ot(!0),rt}function autoUpdate($,_e,et,tt){tt===void 0&&(tt={});const{ancestorScroll:nt=!0,ancestorResize:rt=!0,elementResize:ot=typeof ResizeObserver=="function",layoutShift:it=typeof IntersectionObserver=="function",animationFrame:st=!1}=tt,lt=unwrapElement($),ct=nt||rt?[...lt?getOverflowAncestors(lt):[],...getOverflowAncestors(_e)]:[];ct.forEach(vt=>{nt&&vt.addEventListener("scroll",et,{passive:!0}),rt&&vt.addEventListener("resize",et)});const ft=lt&&it?observeMove(lt,et):null;let dt=-1,pt=null;ot&&(pt=new ResizeObserver(vt=>{let[Et]=vt;Et&&Et.target===lt&&pt&&(pt.unobserve(_e),cancelAnimationFrame(dt),dt=requestAnimationFrame(()=>{pt&&pt.observe(_e)})),et()}),lt&&!st&&pt.observe(lt),pt.observe(_e));let ht,gt=st?getBoundingClientRect$1($):null;st&&yt();function yt(){const vt=getBoundingClientRect$1($);gt&&(vt.x!==gt.x||vt.y!==gt.y||vt.width!==gt.width||vt.height!==gt.height)&&et(),gt=vt,ht=requestAnimationFrame(yt)}return et(),()=>{ct.forEach(vt=>{nt&&vt.removeEventListener("scroll",et),rt&&vt.removeEventListener("resize",et)}),ft&&ft(),pt&&pt.disconnect(),pt=null,st&&cancelAnimationFrame(ht)}}const computePosition=($,_e,et)=>{const tt=new Map,nt={platform,...et},rt={...nt.platform,_c:tt};return computePosition$1($,_e,{...nt,platform:rt})},arrow$2=$=>{function _e(et){return{}.hasOwnProperty.call(et,"current")}return{name:"arrow",options:$,fn(et){const{element:tt,padding:nt}=typeof $=="function"?$(et):$;return tt&&_e(tt)?tt.current!=null?arrow$3({element:tt.current,padding:nt}).fn(et):{}:tt?arrow$3({element:tt,padding:nt}).fn(et):{}}}};var index$2=typeof document<"u"?reactExports.useLayoutEffect:reactExports.useEffect;function deepEqual$1($,_e){if($===_e)return!0;if(typeof $!=typeof _e)return!1;if(typeof $=="function"&&$.toString()===_e.toString())return!0;let et,tt,nt;if($&&_e&&typeof $=="object"){if(Array.isArray($)){if(et=$.length,et!=_e.length)return!1;for(tt=et;tt--!==0;)if(!deepEqual$1($[tt],_e[tt]))return!1;return!0}if(nt=Object.keys($),et=nt.length,et!==Object.keys(_e).length)return!1;for(tt=et;tt--!==0;)if(!{}.hasOwnProperty.call(_e,nt[tt]))return!1;for(tt=et;tt--!==0;){const rt=nt[tt];if(!(rt==="_owner"&&$.$$typeof)&&!deepEqual$1($[rt],_e[rt]))return!1}return!0}return $!==$&&_e!==_e}function getDPR($){return typeof window>"u"?1:($.ownerDocument.defaultView||window).devicePixelRatio||1}function roundByDPR($,_e){const et=getDPR($);return Math.round(_e*et)/et}function useLatestRef$1($){const _e=reactExports.useRef($);return index$2(()=>{_e.current=$}),_e}function useFloating$1($){$===void 0&&($={});const{placement:_e="bottom",strategy:et="absolute",middleware:tt=[],platform:nt,elements:{reference:rt,floating:ot}={},transform:it=!0,whileElementsMounted:st,open:lt}=$,[ct,ft]=reactExports.useState({x:0,y:0,strategy:et,placement:_e,middlewareData:{},isPositioned:!1}),[dt,pt]=reactExports.useState(tt);deepEqual$1(dt,tt)||pt(tt);const[ht,gt]=reactExports.useState(null),[yt,vt]=reactExports.useState(null),Et=reactExports.useCallback(Nt=>{Nt!=$t.current&&($t.current=Nt,gt(Nt))},[gt]),Tt=reactExports.useCallback(Nt=>{Nt!==wt.current&&(wt.current=Nt,vt(Nt))},[vt]),Ot=rt||ht,xt=ot||yt,$t=reactExports.useRef(null),wt=reactExports.useRef(null),mt=reactExports.useRef(ct),Ct=useLatestRef$1(st),bt=useLatestRef$1(nt),Pt=reactExports.useCallback(()=>{if(!$t.current||!wt.current)return;const Nt={placement:_e,strategy:et,middleware:dt};bt.current&&(Nt.platform=bt.current),computePosition($t.current,wt.current,Nt).then(Ft=>{const Lt={...Ft,isPositioned:!0};It.current&&!deepEqual$1(mt.current,Lt)&&(mt.current=Lt,reactDomExports.flushSync(()=>{ft(Lt)}))})},[dt,_e,et,bt]);index$2(()=>{lt===!1&&mt.current.isPositioned&&(mt.current.isPositioned=!1,ft(Nt=>({...Nt,isPositioned:!1})))},[lt]);const It=reactExports.useRef(!1);index$2(()=>(It.current=!0,()=>{It.current=!1}),[]),index$2(()=>{if(Ot&&($t.current=Ot),xt&&(wt.current=xt),Ot&&xt){if(Ct.current)return Ct.current(Ot,xt,Pt);Pt()}},[Ot,xt,Pt,Ct]);const Mt=reactExports.useMemo(()=>({reference:$t,floating:wt,setReference:Et,setFloating:Tt}),[Et,Tt]),Rt=reactExports.useMemo(()=>({reference:Ot,floating:xt}),[Ot,xt]),kt=reactExports.useMemo(()=>{const Nt={position:et,left:0,top:0};if(!Rt.floating)return Nt;const Ft=roundByDPR(Rt.floating,ct.x),Lt=roundByDPR(Rt.floating,ct.y);return it?{...Nt,transform:"translate("+Ft+"px, "+Lt+"px)",...getDPR(Rt.floating)>=1.5&&{willChange:"transform"}}:{position:et,left:Ft,top:Lt}},[et,it,Rt.floating,ct.x,ct.y]);return reactExports.useMemo(()=>({...ct,update:Pt,refs:Mt,elements:Rt,floatingStyles:kt}),[ct,Pt,Mt,Rt,kt])}var index$1=typeof document<"u"?reactExports.useLayoutEffect:reactExports.useEffect;let serverHandoffComplete=!1,count=0;const genId=()=>"floating-ui-"+count++;function useFloatingId(){const[$,_e]=reactExports.useState(()=>serverHandoffComplete?genId():void 0);return index$1(()=>{$==null&&_e(genId())},[]),reactExports.useEffect(()=>{serverHandoffComplete||(serverHandoffComplete=!0)},[]),$}const useReactId=React$6.useId,useId=useReactId||useFloatingId;function createPubSub(){const $=new Map;return{emit(_e,et){var tt;(tt=$.get(_e))==null||tt.forEach(nt=>nt(et))},on(_e,et){$.set(_e,[...$.get(_e)||[],et])},off(_e,et){var tt;$.set(_e,((tt=$.get(_e))==null?void 0:tt.filter(nt=>nt!==et))||[])}}}const FloatingNodeContext=reactExports.createContext(null),FloatingTreeContext=reactExports.createContext(null),useFloatingParentNodeId=()=>{var $;return(($=reactExports.useContext(FloatingNodeContext))==null?void 0:$.id)||null},useFloatingTree=()=>reactExports.useContext(FloatingTreeContext);function getDocument($){return($==null?void 0:$.ownerDocument)||document}function getPlatform(){const $=navigator.userAgentData;return $!=null&&$.platform?$.platform:navigator.platform}function getUserAgent(){const $=navigator.userAgentData;return $&&Array.isArray($.brands)?$.brands.map(_e=>{let{brand:et,version:tt}=_e;return et+"/"+tt}).join(" "):navigator.userAgent}function getWindow$1($){return getDocument($).defaultView||window}function isElement$1($){return $?$ instanceof Element||$ instanceof getWindow$1($).Element:!1}function isHTMLElement$2($){return $?$ instanceof HTMLElement||$ instanceof getWindow$1($).HTMLElement:!1}function isShadowRoot$1($){if(typeof ShadowRoot>"u")return!1;const _e=getWindow$1($).ShadowRoot;return $ instanceof _e||$ instanceof ShadowRoot}function isVirtualClick($){if($.mozInputSource===0&&$.isTrusted)return!0;const _e=/Android/i;return(_e.test(getPlatform())||_e.test(getUserAgent()))&&$.pointerType?$.type==="click"&&$.buttons===1:$.detail===0&&!$.pointerType}function isVirtualPointerEvent($){return $.width===0&&$.height===0||$.width===1&&$.height===1&&$.pressure===0&&$.detail===0&&$.pointerType!=="mouse"||$.width<1&&$.height<1&&$.pressure===0&&$.detail===0}function isSafari$1(){return/apple/i.test(navigator.vendor)}function isMac$1(){return getPlatform().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function isMouseLikePointerType($,_e){const et=["mouse","pen"];return _e||et.push("",void 0),et.includes($)}function isReactEvent($){return"nativeEvent"in $}function contains$1($,_e){if(!$||!_e)return!1;const et=_e.getRootNode&&_e.getRootNode();if($.contains(_e))return!0;if(et&&isShadowRoot$1(et)){let tt=_e;for(;tt;){if($===tt)return!0;tt=tt.parentNode||tt.host}}return!1}function createAttribute($){return"data-floating-ui-"+$}function useLatestRef($){const _e=reactExports.useRef($);return index$1(()=>{_e.current=$}),_e}const safePolygonIdentifier=createAttribute("safe-polygon");function getDelay($,_e,et){return et&&!isMouseLikePointerType(et)?0:typeof $=="number"?$:$==null?void 0:$[_e]}function useHover($,_e){_e===void 0&&(_e={});const{open:et,onOpenChange:tt,dataRef:nt,events:rt,elements:{domReference:ot,floating:it},refs:st}=$,{enabled:lt=!0,delay:ct=0,handleClose:ft=null,mouseOnly:dt=!1,restMs:pt=0,move:ht=!0}=_e,gt=useFloatingTree(),yt=useFloatingParentNodeId(),vt=useLatestRef(ft),Et=useLatestRef(ct),Tt=reactExports.useRef(),Ot=reactExports.useRef(),xt=reactExports.useRef(),$t=reactExports.useRef(),wt=reactExports.useRef(!0),mt=reactExports.useRef(!1),Ct=reactExports.useRef(()=>{}),bt=reactExports.useCallback(()=>{var Rt;const kt=(Rt=nt.current.openEvent)==null?void 0:Rt.type;return(kt==null?void 0:kt.includes("mouse"))&&kt!=="mousedown"},[nt]);reactExports.useEffect(()=>{if(!lt)return;function Rt(){clearTimeout(Ot.current),clearTimeout($t.current),wt.current=!0}return rt.on("dismiss",Rt),()=>{rt.off("dismiss",Rt)}},[lt,rt]),reactExports.useEffect(()=>{if(!lt||!vt.current||!et)return;function Rt(Nt){bt()&&tt(!1,Nt)}const kt=getDocument(it).documentElement;return kt.addEventListener("mouseleave",Rt),()=>{kt.removeEventListener("mouseleave",Rt)}},[it,et,tt,lt,vt,nt,bt]);const Pt=reactExports.useCallback(function(Rt,kt){kt===void 0&&(kt=!0);const Nt=getDelay(Et.current,"close",Tt.current);Nt&&!xt.current?(clearTimeout(Ot.current),Ot.current=setTimeout(()=>tt(!1,Rt),Nt)):kt&&(clearTimeout(Ot.current),tt(!1,Rt))},[Et,tt]),It=reactExports.useCallback(()=>{Ct.current(),xt.current=void 0},[]),Mt=reactExports.useCallback(()=>{if(mt.current){const Rt=getDocument(st.floating.current).body;Rt.style.pointerEvents="",Rt.removeAttribute(safePolygonIdentifier),mt.current=!1}},[st]);return reactExports.useEffect(()=>{if(!lt)return;function Rt(){return nt.current.openEvent?["click","mousedown"].includes(nt.current.openEvent.type):!1}function kt(Lt){if(clearTimeout(Ot.current),wt.current=!1,dt&&!isMouseLikePointerType(Tt.current)||pt>0&&getDelay(Et.current,"open")===0)return;const Dt=getDelay(Et.current,"open",Tt.current);Dt?Ot.current=setTimeout(()=>{tt(!0,Lt)},Dt):tt(!0,Lt)}function Nt(Lt){if(Rt())return;Ct.current();const Dt=getDocument(it);if(clearTimeout($t.current),vt.current){et||clearTimeout(Ot.current),xt.current=vt.current({...$,tree:gt,x:Lt.clientX,y:Lt.clientY,onClose(){Mt(),It(),Pt(Lt)}});const Ut=xt.current;Dt.addEventListener("mousemove",Ut),Ct.current=()=>{Dt.removeEventListener("mousemove",Ut)};return}(Tt.current==="touch"?!contains$1(it,Lt.relatedTarget):!0)&&Pt(Lt)}function Ft(Lt){Rt()||vt.current==null||vt.current({...$,tree:gt,x:Lt.clientX,y:Lt.clientY,onClose(){Mt(),It(),Pt(Lt)}})(Lt)}if(isElement$1(ot)){const Lt=ot;return et&&Lt.addEventListener("mouseleave",Ft),it==null||it.addEventListener("mouseleave",Ft),ht&&Lt.addEventListener("mousemove",kt,{once:!0}),Lt.addEventListener("mouseenter",kt),Lt.addEventListener("mouseleave",Nt),()=>{et&&Lt.removeEventListener("mouseleave",Ft),it==null||it.removeEventListener("mouseleave",Ft),ht&&Lt.removeEventListener("mousemove",kt),Lt.removeEventListener("mouseenter",kt),Lt.removeEventListener("mouseleave",Nt)}}},[ot,it,lt,$,dt,pt,ht,Pt,It,Mt,tt,et,gt,Et,vt,nt]),index$1(()=>{var Rt;if(lt&&et&&(Rt=vt.current)!=null&&Rt.__options.blockPointerEvents&&bt()){const Ft=getDocument(it).body;if(Ft.setAttribute(safePolygonIdentifier,""),Ft.style.pointerEvents="none",mt.current=!0,isElement$1(ot)&&it){var kt,Nt;const Lt=ot,Dt=gt==null||(kt=gt.nodesRef.current.find(Wt=>Wt.id===yt))==null||(Nt=kt.context)==null?void 0:Nt.elements.floating;return Dt&&(Dt.style.pointerEvents=""),Lt.style.pointerEvents="auto",it.style.pointerEvents="auto",()=>{Lt.style.pointerEvents="",it.style.pointerEvents=""}}}},[lt,et,yt,it,ot,gt,vt,nt,bt]),index$1(()=>{et||(Tt.current=void 0,It(),Mt())},[et,It,Mt]),reactExports.useEffect(()=>()=>{It(),clearTimeout(Ot.current),clearTimeout($t.current),Mt()},[lt,It,Mt]),reactExports.useMemo(()=>{if(!lt)return{};function Rt(kt){Tt.current=kt.pointerType}return{reference:{onPointerDown:Rt,onPointerEnter:Rt,onMouseMove(kt){et||pt===0||(clearTimeout($t.current),$t.current=setTimeout(()=>{wt.current||tt(!0,kt.nativeEvent)},pt))}},floating:{onMouseEnter(){clearTimeout(Ot.current)},onMouseLeave(kt){rt.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),Pt(kt.nativeEvent,!1)}}}},[rt,lt,pt,et,tt,Pt])}function activeElement($){let _e=$.activeElement;for(;((et=_e)==null||(tt=et.shadowRoot)==null?void 0:tt.activeElement)!=null;){var et,tt;_e=_e.shadowRoot.activeElement}return _e}let rafId=0;function enqueueFocus($,_e){_e===void 0&&(_e={});const{preventScroll:et=!1,cancelPrevious:tt=!0,sync:nt=!1}=_e;tt&&cancelAnimationFrame(rafId);const rt=()=>$==null?void 0:$.focus({preventScroll:et});nt?rt():rafId=requestAnimationFrame(rt)}function getChildren$1($,_e){let et=$.filter(nt=>{var rt;return nt.parentId===_e&&((rt=nt.context)==null?void 0:rt.open)}),tt=et;for(;tt.length;)tt=$.filter(nt=>{var rt;return(rt=tt)==null?void 0:rt.some(ot=>{var it;return nt.parentId===ot.id&&((it=nt.context)==null?void 0:it.open)})}),et=et.concat(tt);return et}function getTarget($){return"composedPath"in $?$.composedPath()[0]:$.target}const TYPEABLE_SELECTOR="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function isTypeableElement($){return isHTMLElement$2($)&&$.matches(TYPEABLE_SELECTOR)}function stopEvent($){$.preventDefault(),$.stopPropagation()}function isButtonTarget($){return isHTMLElement$2($.target)&&$.target.tagName==="BUTTON"}function isSpaceIgnored($){return isTypeableElement($)}function useClick($,_e){_e===void 0&&(_e={});const{open:et,onOpenChange:tt,dataRef:nt,elements:{domReference:rt}}=$,{enabled:ot=!0,event:it="click",toggle:st=!0,ignoreMouse:lt=!1,keyboardHandlers:ct=!0}=_e,ft=reactExports.useRef(),dt=reactExports.useRef(!1);return reactExports.useMemo(()=>ot?{reference:{onPointerDown(pt){ft.current=pt.pointerType},onMouseDown(pt){pt.button===0&&(isMouseLikePointerType(ft.current,!0)&<||it!=="click"&&(et&&st&&(!nt.current.openEvent||nt.current.openEvent.type==="mousedown")?tt(!1,pt.nativeEvent):(pt.preventDefault(),tt(!0,pt.nativeEvent))))},onClick(pt){if(it==="mousedown"&&ft.current){ft.current=void 0;return}isMouseLikePointerType(ft.current,!0)&<||(et&&st&&(!nt.current.openEvent||nt.current.openEvent.type==="click")?tt(!1,pt.nativeEvent):tt(!0,pt.nativeEvent))},onKeyDown(pt){ft.current=void 0,!(pt.defaultPrevented||!ct||isButtonTarget(pt))&&(pt.key===" "&&!isSpaceIgnored(rt)&&(pt.preventDefault(),dt.current=!0),pt.key==="Enter"&&tt(!(et&&st),pt.nativeEvent))},onKeyUp(pt){pt.defaultPrevented||!ct||isButtonTarget(pt)||isSpaceIgnored(rt)||pt.key===" "&&dt.current&&(dt.current=!1,tt(!(et&&st),pt.nativeEvent))}}}:{},[ot,nt,it,lt,ct,rt,st,et,tt])}const useInsertionEffect=React$6.useInsertionEffect,useSafeInsertionEffect=useInsertionEffect||($=>$());function useEffectEvent($){const _e=reactExports.useRef(()=>{});return useSafeInsertionEffect(()=>{_e.current=$}),reactExports.useCallback(function(){for(var et=arguments.length,tt=new Array(et),nt=0;nt{var _e,et;return{escapeKeyBubbles:typeof $=="boolean"?$:(_e=$==null?void 0:$.escapeKey)!=null?_e:!1,outsidePressBubbles:typeof $=="boolean"?$:(et=$==null?void 0:$.outsidePress)!=null?et:!0}};function useDismiss($,_e){_e===void 0&&(_e={});const{open:et,onOpenChange:tt,events:nt,nodeId:rt,elements:{reference:ot,domReference:it,floating:st},dataRef:lt}=$,{enabled:ct=!0,escapeKey:ft=!0,outsidePress:dt=!0,outsidePressEvent:pt="pointerdown",referencePress:ht=!1,referencePressEvent:gt="pointerdown",ancestorScroll:yt=!1,bubbles:vt}=_e,Et=useFloatingTree(),Tt=useFloatingParentNodeId()!=null,Ot=useEffectEvent(typeof dt=="function"?dt:()=>!1),xt=typeof dt=="function"?Ot:dt,$t=reactExports.useRef(!1),{escapeKeyBubbles:wt,outsidePressBubbles:mt}=normalizeBubblesProp(vt),Ct=useEffectEvent(Pt=>{if(!et||!ct||!ft||Pt.key!=="Escape")return;const It=Et?getChildren$1(Et.nodesRef.current,rt):[];if(!wt&&(Pt.stopPropagation(),It.length>0)){let Mt=!0;if(It.forEach(Rt=>{var kt;if((kt=Rt.context)!=null&&kt.open&&!Rt.context.dataRef.current.__escapeKeyBubbles){Mt=!1;return}}),!Mt)return}nt.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),tt(!1,isReactEvent(Pt)?Pt.nativeEvent:Pt)}),bt=useEffectEvent(Pt=>{const It=$t.current;if($t.current=!1,It||typeof xt=="function"&&!xt(Pt))return;const Mt=getTarget(Pt);if(isHTMLElement$2(Mt)&&st){const Nt=Mt.clientWidth>0&&Mt.scrollWidth>Mt.clientWidth,Ft=Mt.clientHeight>0&&Mt.scrollHeight>Mt.clientHeight;let Lt=Ft&&Pt.offsetX>Mt.clientWidth;if(Ft&&getWindow$1(st).getComputedStyle(Mt).direction==="rtl"&&(Lt=Pt.offsetX<=Mt.offsetWidth-Mt.clientWidth),Lt||Nt&&Pt.offsetY>Mt.clientHeight)return}const Rt=Et&&getChildren$1(Et.nodesRef.current,rt).some(Nt=>{var Ft;return isEventTargetWithin(Pt,(Ft=Nt.context)==null?void 0:Ft.elements.floating)});if(isEventTargetWithin(Pt,st)||isEventTargetWithin(Pt,it)||Rt)return;const kt=Et?getChildren$1(Et.nodesRef.current,rt):[];if(kt.length>0){let Nt=!0;if(kt.forEach(Ft=>{var Lt;if((Lt=Ft.context)!=null&&Lt.open&&!Ft.context.dataRef.current.__outsidePressBubbles){Nt=!1;return}}),!Nt)return}nt.emit("dismiss",{type:"outsidePress",data:{returnFocus:Tt?{preventScroll:!0}:isVirtualClick(Pt)||isVirtualPointerEvent(Pt)}}),tt(!1,Pt)});return reactExports.useEffect(()=>{if(!et||!ct)return;lt.current.__escapeKeyBubbles=wt,lt.current.__outsidePressBubbles=mt;function Pt(Rt){tt(!1,Rt)}const It=getDocument(st);ft&&It.addEventListener("keydown",Ct),xt&&It.addEventListener(pt,bt);let Mt=[];return yt&&(isElement$1(it)&&(Mt=getOverflowAncestors(it)),isElement$1(st)&&(Mt=Mt.concat(getOverflowAncestors(st))),!isElement$1(ot)&&ot&&ot.contextElement&&(Mt=Mt.concat(getOverflowAncestors(ot.contextElement)))),Mt=Mt.filter(Rt=>{var kt;return Rt!==((kt=It.defaultView)==null?void 0:kt.visualViewport)}),Mt.forEach(Rt=>{Rt.addEventListener("scroll",Pt,{passive:!0})}),()=>{ft&&It.removeEventListener("keydown",Ct),xt&&It.removeEventListener(pt,bt),Mt.forEach(Rt=>{Rt.removeEventListener("scroll",Pt)})}},[lt,st,it,ot,ft,xt,pt,et,tt,yt,ct,wt,mt,Ct,bt]),reactExports.useEffect(()=>{$t.current=!1},[xt,pt]),reactExports.useMemo(()=>ct?{reference:{onKeyDown:Ct,[bubbleHandlerKeys[gt]]:Pt=>{ht&&(nt.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),tt(!1,Pt.nativeEvent))}},floating:{onKeyDown:Ct,[captureHandlerKeys[pt]]:()=>{$t.current=!0}}}:{},[ct,nt,ht,pt,gt,tt,Ct])}function useFloating($){var _e;$===void 0&&($={});const{open:et=!1,onOpenChange:tt,nodeId:nt}=$,[rt,ot]=reactExports.useState(null),it=((_e=$.elements)==null?void 0:_e.reference)||rt,st=useFloating$1($),lt=useFloatingTree(),ct=useEffectEvent((Ot,xt)=>{Ot&&(dt.current.openEvent=xt),tt==null||tt(Ot,xt)}),ft=reactExports.useRef(null),dt=reactExports.useRef({}),pt=reactExports.useState(()=>createPubSub())[0],ht=useId(),gt=reactExports.useCallback(Ot=>{const xt=isElement$1(Ot)?{getBoundingClientRect:()=>Ot.getBoundingClientRect(),contextElement:Ot}:Ot;st.refs.setReference(xt)},[st.refs]),yt=reactExports.useCallback(Ot=>{(isElement$1(Ot)||Ot===null)&&(ft.current=Ot,ot(Ot)),(isElement$1(st.refs.reference.current)||st.refs.reference.current===null||Ot!==null&&!isElement$1(Ot))&&st.refs.setReference(Ot)},[st.refs]),vt=reactExports.useMemo(()=>({...st.refs,setReference:yt,setPositionReference:gt,domReference:ft}),[st.refs,yt,gt]),Et=reactExports.useMemo(()=>({...st.elements,domReference:it}),[st.elements,it]),Tt=reactExports.useMemo(()=>({...st,refs:vt,elements:Et,dataRef:dt,nodeId:nt,floatingId:ht,events:pt,open:et,onOpenChange:ct}),[st,nt,ht,pt,et,ct,vt,Et]);return index$1(()=>{const Ot=lt==null?void 0:lt.nodesRef.current.find(xt=>xt.id===nt);Ot&&(Ot.context=Tt)}),reactExports.useMemo(()=>({...st,context:Tt,refs:vt,elements:Et}),[st,vt,Et,Tt])}function useFocus($,_e){_e===void 0&&(_e={});const{open:et,onOpenChange:tt,dataRef:nt,events:rt,refs:ot,elements:{floating:it,domReference:st}}=$,{enabled:lt=!0,keyboardOnly:ct=!0}=_e,ft=reactExports.useRef(""),dt=reactExports.useRef(!1),pt=reactExports.useRef();return reactExports.useEffect(()=>{if(!lt)return;const gt=getDocument(it).defaultView||window;function yt(){!et&&isHTMLElement$2(st)&&st===activeElement(getDocument(st))&&(dt.current=!0)}return gt.addEventListener("blur",yt),()=>{gt.removeEventListener("blur",yt)}},[it,st,et,lt]),reactExports.useEffect(()=>{if(!lt)return;function ht(gt){(gt.type==="referencePress"||gt.type==="escapeKey")&&(dt.current=!0)}return rt.on("dismiss",ht),()=>{rt.off("dismiss",ht)}},[rt,lt]),reactExports.useEffect(()=>()=>{clearTimeout(pt.current)},[]),reactExports.useMemo(()=>lt?{reference:{onPointerDown(ht){let{pointerType:gt}=ht;ft.current=gt,dt.current=!!(gt&&ct)},onMouseLeave(){dt.current=!1},onFocus(ht){var gt;dt.current||ht.type==="focus"&&((gt=nt.current.openEvent)==null?void 0:gt.type)==="mousedown"&&isEventTargetWithin(nt.current.openEvent,st)||tt(!0,ht.nativeEvent)},onBlur(ht){dt.current=!1;const gt=ht.relatedTarget,yt=isElement$1(gt)&>.hasAttribute(createAttribute("focus-guard"))&>.getAttribute("data-type")==="outside";pt.current=setTimeout(()=>{contains$1(ot.floating.current,gt)||contains$1(st,gt)||yt||tt(!1,ht.nativeEvent)})}}}:{},[lt,ct,st,ot,nt,tt])}function mergeProps$1($,_e,et){const tt=new Map;return{...et==="floating"&&{tabIndex:-1},...$,..._e.map(nt=>nt?nt[et]:null).concat($).reduce((nt,rt)=>(rt&&Object.entries(rt).forEach(ot=>{let[it,st]=ot;if(it.indexOf("on")===0){if(tt.has(it)||tt.set(it,[]),typeof st=="function"){var lt;(lt=tt.get(it))==null||lt.push(st),nt[it]=function(){for(var ct,ft=arguments.length,dt=new Array(ft),pt=0;ptht(...dt)).find(ht=>ht!==void 0)}}}else nt[it]=st}),nt),{})}}function useInteractions($){$===void 0&&($=[]);const _e=$,et=reactExports.useCallback(rt=>mergeProps$1(rt,$,"reference"),_e),tt=reactExports.useCallback(rt=>mergeProps$1(rt,$,"floating"),_e),nt=reactExports.useCallback(rt=>mergeProps$1(rt,$,"item"),$.map(rt=>rt==null?void 0:rt.item));return reactExports.useMemo(()=>({getReferenceProps:et,getFloatingProps:tt,getItemProps:nt}),[et,tt,nt])}let isPreventScrollSupported=!1;const ARROW_UP="ArrowUp",ARROW_DOWN="ArrowDown",ARROW_LEFT="ArrowLeft",ARROW_RIGHT="ArrowRight";function isDifferentRow($,_e,et){return Math.floor($/_e)!==et}function isIndexOutOfBounds($,_e){return _e<0||_e>=$.current.length}function findNonDisabledIndex($,_e){let{startingIndex:et=-1,decrement:tt=!1,disabledIndices:nt,amount:rt=1}=_e===void 0?{}:_e;const ot=$.current;let it=et;do{var st,lt;it=it+(tt?-rt:rt)}while(it>=0&&it<=ot.length-1&&(nt?nt.includes(it):ot[it]==null||(st=ot[it])!=null&&st.hasAttribute("disabled")||((lt=ot[it])==null?void 0:lt.getAttribute("aria-disabled"))==="true"));return it}function doSwitch($,_e,et){switch($){case"vertical":return _e;case"horizontal":return et;default:return _e||et}}function isMainOrientationKey($,_e){return doSwitch(_e,$===ARROW_UP||$===ARROW_DOWN,$===ARROW_LEFT||$===ARROW_RIGHT)}function isMainOrientationToEndKey($,_e,et){return doSwitch(_e,$===ARROW_DOWN,et?$===ARROW_LEFT:$===ARROW_RIGHT)||$==="Enter"||$==" "||$===""}function isCrossOrientationOpenKey($,_e,et){return doSwitch(_e,et?$===ARROW_LEFT:$===ARROW_RIGHT,$===ARROW_DOWN)}function isCrossOrientationCloseKey($,_e,et){return doSwitch(_e,et?$===ARROW_RIGHT:$===ARROW_LEFT,$===ARROW_UP)}function getMinIndex($,_e){return findNonDisabledIndex($,{disabledIndices:_e})}function getMaxIndex($,_e){return findNonDisabledIndex($,{decrement:!0,startingIndex:$.current.length,disabledIndices:_e})}function useListNavigation($,_e){const{open:et,onOpenChange:tt,refs:nt,elements:{domReference:rt,floating:ot}}=$,{listRef:it,activeIndex:st,onNavigate:lt=()=>{},enabled:ct=!0,selectedIndex:ft=null,allowEscape:dt=!1,loop:pt=!1,nested:ht=!1,rtl:gt=!1,virtual:yt=!1,focusItemOnOpen:vt="auto",focusItemOnHover:Et=!0,openOnArrowKeyDown:Tt=!0,disabledIndices:Ot=void 0,orientation:xt="vertical",cols:$t=1,scrollItemIntoView:wt=!0}=_e,mt=useFloatingParentNodeId(),Ct=useFloatingTree(),bt=useEffectEvent(lt),Pt=reactExports.useRef(vt),It=reactExports.useRef(ft??-1),Mt=reactExports.useRef(null),Rt=reactExports.useRef(!0),kt=reactExports.useRef(bt),Nt=reactExports.useRef(!!ot),Ft=reactExports.useRef(!1),Lt=reactExports.useRef(!1),Dt=useLatestRef(Ot),Wt=useLatestRef(et),Ut=useLatestRef(wt),[Bt,Ht]=reactExports.useState(),Gt=useEffectEvent(function(Jt,Zt,nn){nn===void 0&&(nn=!1);const ln=Jt.current[Zt.current];ln&&(yt?Ht(ln.id):enqueueFocus(ln,{preventScroll:!0,sync:isMac$1()&&isSafari$1()?isPreventScrollSupported||Ft.current:!1}),requestAnimationFrame(()=>{const fn=Ut.current;fn&&ln&&(nn||!Rt.current)&&(ln.scrollIntoView==null||ln.scrollIntoView(typeof fn=="boolean"?{block:"nearest",inline:"nearest"}:fn))}))});index$1(()=>{document.createElement("div").focus({get preventScroll(){return isPreventScrollSupported=!0,!1}})},[]),index$1(()=>{ct&&(et&&ot?Pt.current&&ft!=null&&(Lt.current=!0,bt(ft)):Nt.current&&(It.current=-1,kt.current(null)))},[ct,et,ot,ft,bt]),index$1(()=>{if(ct&&et&&ot)if(st==null){if(Ft.current=!1,ft!=null)return;if(Nt.current&&(It.current=-1,Gt(it,It)),!Nt.current&&Pt.current&&(Mt.current!=null||Pt.current===!0&&Mt.current==null)){let Jt=0;const Zt=()=>{it.current[0]==null?(Jt<2&&(Jt?requestAnimationFrame:queueMicrotask)(Zt),Jt++):(It.current=Mt.current==null||isMainOrientationToEndKey(Mt.current,xt,gt)||ht?getMinIndex(it,Dt.current):getMaxIndex(it,Dt.current),Mt.current=null,bt(It.current))};Zt()}}else isIndexOutOfBounds(it,st)||(It.current=st,Gt(it,It,Lt.current),Lt.current=!1)},[ct,et,ot,st,ft,ht,it,xt,gt,bt,Gt,Dt]),index$1(()=>{if(ct&&Nt.current&&!ot&&Ct){var Jt,Zt;const nn=Ct.nodesRef.current,ln=(Jt=nn.find(dn=>dn.id===mt))==null||(Zt=Jt.context)==null?void 0:Zt.elements.floating,fn=activeElement(getDocument(ot)),en=nn.some(dn=>dn.context&&contains$1(dn.context.elements.floating,fn));ln&&!en&&ln.focus({preventScroll:!0})}},[ct,ot,Ct,mt]),index$1(()=>{kt.current=bt,Nt.current=!!ot}),index$1(()=>{et||(Mt.current=null)},[et]);const qt=st!=null,tn=reactExports.useMemo(()=>{function Jt(nn){if(!et)return;const ln=it.current.indexOf(nn);ln!==-1&&bt(ln)}return{onFocus(nn){let{currentTarget:ln}=nn;Jt(ln)},onClick:nn=>{let{currentTarget:ln}=nn;return ln.focus({preventScroll:!0})},...Et&&{onMouseMove(nn){let{currentTarget:ln}=nn;Jt(ln)},onPointerLeave(nn){let{pointerType:ln}=nn;!Rt.current||ln==="touch"||(It.current=-1,Gt(it,It),bt(null),yt||enqueueFocus(nt.floating.current,{preventScroll:!0}))}}}},[et,nt,Gt,Et,it,bt,yt]);return reactExports.useMemo(()=>{if(!ct)return{};const Jt=Dt.current;function Zt(en){if(Rt.current=!1,Ft.current=!0,!Wt.current&&en.currentTarget===nt.floating.current)return;if(ht&&isCrossOrientationCloseKey(en.key,xt,gt)){stopEvent(en),tt(!1,en.nativeEvent),isHTMLElement$2(rt)&&rt.focus();return}const dn=It.current,mn=getMinIndex(it,Jt),sn=getMaxIndex(it,Jt);if(en.key==="Home"&&(stopEvent(en),It.current=mn,bt(It.current)),en.key==="End"&&(stopEvent(en),It.current=sn,bt(It.current)),$t>1){const yn=It.current;if(en.key===ARROW_UP){if(stopEvent(en),yn===-1)It.current=sn;else if(It.current=findNonDisabledIndex(it,{startingIndex:yn,amount:$t,decrement:!0,disabledIndices:Jt}),pt&&(yn-$tOn?qn:qn-$t}isIndexOutOfBounds(it,It.current)&&(It.current=yn),bt(It.current)}if(en.key===ARROW_DOWN&&(stopEvent(en),yn===-1?It.current=mn:(It.current=findNonDisabledIndex(it,{startingIndex:yn,amount:$t,disabledIndices:Jt}),pt&&yn+$t>sn&&(It.current=findNonDisabledIndex(it,{startingIndex:yn%$t-$t,amount:$t,disabledIndices:Jt}))),isIndexOutOfBounds(it,It.current)&&(It.current=yn),bt(It.current)),xt==="both"){const On=Math.floor(yn/$t);en.key===ARROW_RIGHT&&(stopEvent(en),yn%$t!==$t-1?(It.current=findNonDisabledIndex(it,{startingIndex:yn,disabledIndices:Jt}),pt&&isDifferentRow(It.current,$t,On)&&(It.current=findNonDisabledIndex(it,{startingIndex:yn-yn%$t-1,disabledIndices:Jt}))):pt&&(It.current=findNonDisabledIndex(it,{startingIndex:yn-yn%$t-1,disabledIndices:Jt})),isDifferentRow(It.current,$t,On)&&(It.current=yn)),en.key===ARROW_LEFT&&(stopEvent(en),yn%$t!==0?(It.current=findNonDisabledIndex(it,{startingIndex:yn,disabledIndices:Jt,decrement:!0}),pt&&isDifferentRow(It.current,$t,On)&&(It.current=findNonDisabledIndex(it,{startingIndex:yn+($t-yn%$t),decrement:!0,disabledIndices:Jt}))):pt&&(It.current=findNonDisabledIndex(it,{startingIndex:yn+($t-yn%$t),decrement:!0,disabledIndices:Jt})),isDifferentRow(It.current,$t,On)&&(It.current=yn));const Pn=Math.floor(sn/$t)===On;isIndexOutOfBounds(it,It.current)&&(pt&&Pn?It.current=en.key===ARROW_LEFT?sn:findNonDisabledIndex(it,{startingIndex:yn-yn%$t-1,disabledIndices:Jt}):It.current=yn),bt(It.current);return}}if(isMainOrientationKey(en.key,xt)){if(stopEvent(en),et&&!yt&&activeElement(en.currentTarget.ownerDocument)===en.currentTarget){It.current=isMainOrientationToEndKey(en.key,xt,gt)?mn:sn,bt(It.current);return}isMainOrientationToEndKey(en.key,xt,gt)?pt?It.current=dn>=sn?dt&&dn!==it.current.length?-1:mn:findNonDisabledIndex(it,{startingIndex:dn,disabledIndices:Jt}):It.current=Math.min(sn,findNonDisabledIndex(it,{startingIndex:dn,disabledIndices:Jt})):pt?It.current=dn<=mn?dt&&dn!==-1?it.current.length:sn:findNonDisabledIndex(it,{startingIndex:dn,decrement:!0,disabledIndices:Jt}):It.current=Math.max(mn,findNonDisabledIndex(it,{startingIndex:dn,decrement:!0,disabledIndices:Jt})),isIndexOutOfBounds(it,It.current)?bt(null):bt(It.current)}}function nn(en){vt==="auto"&&isVirtualClick(en.nativeEvent)&&(Pt.current=!0)}function ln(en){Pt.current=vt,vt==="auto"&&isVirtualPointerEvent(en.nativeEvent)&&(Pt.current=!0)}const fn=yt&&et&&qt&&{"aria-activedescendant":Bt};return{reference:{...fn,onKeyDown(en){Rt.current=!1;const dn=en.key.indexOf("Arrow")===0;if(yt&&et)return Zt(en);if(!et&&!Tt&&dn)return;const mn=dn||en.key==="Enter"||en.key.trim()==="",sn=isMainOrientationKey(en.key,xt),yn=isCrossOrientationOpenKey(en.key,xt,gt);if(mn&&(Mt.current=ht&&sn?null:en.key),ht){yn&&(stopEvent(en),et?(It.current=getMinIndex(it,Jt),bt(It.current)):tt(!0,en.nativeEvent));return}sn&&(ft!=null&&(It.current=ft),stopEvent(en),!et&&Tt?tt(!0,en.nativeEvent):Zt(en),et&&bt(It.current))},onFocus(){et&&bt(null)},onPointerDown:ln,onMouseDown:nn,onClick:nn},floating:{"aria-orientation":xt==="both"?void 0:xt,...fn,onKeyDown:Zt,onPointerMove(){Rt.current=!0}},item:tn}},[rt,nt,Bt,Dt,Wt,it,ct,xt,gt,yt,et,qt,ht,ft,Tt,dt,$t,pt,vt,bt,tt,tn])}function useRole($,_e){_e===void 0&&(_e={});const{open:et,floatingId:tt}=$,{enabled:nt=!0,role:rt="dialog"}=_e,ot=useId();return reactExports.useMemo(()=>{const it={id:tt,role:rt};return nt?rt==="tooltip"?{reference:{"aria-describedby":et?tt:void 0},floating:it}:{reference:{"aria-expanded":et?"true":"false","aria-haspopup":rt==="alertdialog"?"dialog":rt,"aria-controls":et?tt:void 0,...rt==="listbox"&&{role:"combobox"},...rt==="menu"&&{id:ot}},floating:{...it,...rt==="menu"&&{"aria-labelledby":ot}}}:{}},[nt,rt,et,tt,ot])}function isPointInPolygon($,_e){const[et,tt]=$;let nt=!1;const rt=_e.length;for(let ot=0,it=rt-1;ot=tt!=ft>=tt&&et<=(ct-st)*(tt-lt)/(ft-lt)+st&&(nt=!nt)}return nt}function isInside($,_e){return $[0]>=_e.x&&$[0]<=_e.x+_e.width&&$[1]>=_e.y&&$[1]<=_e.y+_e.height}function safePolygon($){$===void 0&&($={});const{buffer:_e=.5,blockPointerEvents:et=!1,requireIntent:tt=!0}=$;let nt,rt=!1,ot=null,it=null,st=performance.now();function lt(ft,dt){const pt=performance.now(),ht=pt-st;if(ot===null||it===null||ht===0)return ot=ft,it=dt,st=pt,null;const gt=ft-ot,yt=dt-it,Et=Math.sqrt(gt*gt+yt*yt)/ht;return ot=ft,it=dt,st=pt,Et}const ct=ft=>{let{x:dt,y:pt,placement:ht,elements:gt,onClose:yt,nodeId:vt,tree:Et}=ft;return function(Ot){function xt(){clearTimeout(nt),yt()}if(clearTimeout(nt),!gt.domReference||!gt.floating||ht==null||dt==null||pt==null)return;const{clientX:$t,clientY:wt}=Ot,mt=[$t,wt],Ct=getTarget(Ot),bt=Ot.type==="mouseleave",Pt=contains$1(gt.floating,Ct),It=contains$1(gt.domReference,Ct),Mt=gt.domReference.getBoundingClientRect(),Rt=gt.floating.getBoundingClientRect(),kt=ht.split("-")[0],Nt=dt>Rt.right-Rt.width/2,Ft=pt>Rt.bottom-Rt.height/2,Lt=isInside(mt,Mt),Dt=Rt.width>Mt.width,Wt=Rt.height>Mt.height,Ut=(Dt?Mt:Rt).left,Bt=(Dt?Mt:Rt).right,Ht=(Wt?Mt:Rt).top,Gt=(Wt?Mt:Rt).bottom;if(Pt&&(rt=!0,!bt))return;if(It&&(rt=!1),It&&!bt){rt=!0;return}if(bt&&isElement$1(Ot.relatedTarget)&&contains$1(gt.floating,Ot.relatedTarget)||Et&&getChildren$1(Et.nodesRef.current,vt).some(Jt=>{let{context:Zt}=Jt;return Zt==null?void 0:Zt.open}))return;if(kt==="top"&&pt>=Mt.bottom-1||kt==="bottom"&&pt<=Mt.top+1||kt==="left"&&dt>=Mt.right-1||kt==="right"&&dt<=Mt.left+1)return xt();let qt=[];switch(kt){case"top":qt=[[Ut,Mt.top+1],[Ut,Rt.bottom-1],[Bt,Rt.bottom-1],[Bt,Mt.top+1]];break;case"bottom":qt=[[Ut,Rt.top+1],[Ut,Mt.bottom-1],[Bt,Mt.bottom-1],[Bt,Rt.top+1]];break;case"left":qt=[[Rt.right-1,Gt],[Rt.right-1,Ht],[Mt.left+1,Ht],[Mt.left+1,Gt]];break;case"right":qt=[[Mt.right-1,Gt],[Mt.right-1,Ht],[Rt.left+1,Ht],[Rt.left+1,Gt]];break}function tn(Jt){let[Zt,nn]=Jt;switch(kt){case"top":{const ln=[Dt?Zt+_e/2:Nt?Zt+_e*4:Zt-_e*4,nn+_e+1],fn=[Dt?Zt-_e/2:Nt?Zt+_e*4:Zt-_e*4,nn+_e+1],en=[[Rt.left,Nt||Dt?Rt.bottom-_e:Rt.top],[Rt.right,Nt?Dt?Rt.bottom-_e:Rt.top:Rt.bottom-_e]];return[ln,fn,...en]}case"bottom":{const ln=[Dt?Zt+_e/2:Nt?Zt+_e*4:Zt-_e*4,nn-_e],fn=[Dt?Zt-_e/2:Nt?Zt+_e*4:Zt-_e*4,nn-_e],en=[[Rt.left,Nt||Dt?Rt.top+_e:Rt.bottom],[Rt.right,Nt?Dt?Rt.top+_e:Rt.bottom:Rt.top+_e]];return[ln,fn,...en]}case"left":{const ln=[Zt+_e+1,Wt?nn+_e/2:Ft?nn+_e*4:nn-_e*4],fn=[Zt+_e+1,Wt?nn-_e/2:Ft?nn+_e*4:nn-_e*4];return[...[[Ft||Wt?Rt.right-_e:Rt.left,Rt.top],[Ft?Wt?Rt.right-_e:Rt.left:Rt.right-_e,Rt.bottom]],ln,fn]}case"right":{const ln=[Zt-_e,Wt?nn+_e/2:Ft?nn+_e*4:nn-_e*4],fn=[Zt-_e,Wt?nn-_e/2:Ft?nn+_e*4:nn-_e*4],en=[[Ft||Wt?Rt.left+_e:Rt.right,Rt.top],[Ft?Wt?Rt.left+_e:Rt.right:Rt.left+_e,Rt.bottom]];return[ln,fn,...en]}}}if(!isPointInPolygon([$t,wt],qt)){if(rt&&!Lt)return xt();if(!bt&&tt){const Jt=lt(Ot.clientX,Ot.clientY);if(Jt!==null&&Jt<.1)return xt()}isPointInPolygon([$t,wt],tn([dt,pt]))?!rt&&tt&&(nt=window.setTimeout(xt,40)):xt()}}};return ct.__options={blockPointerEvents:et},ct}function o$1($){return _e=>{$.forEach(et=>{typeof et=="function"?et(_e):et!=null&&(et.current=_e)})}}const FloatingContext=React$5.createContext(null),useFloatingContext=()=>{const $=React$5.useContext(FloatingContext);return $??bug("Missing context")},useFloatingItemProps=()=>{const $=useFloatingContext();return _e=>({tabIndex:$.activeIndex===_e?0:-1,ref:et=>{$.refs.listRef.current!==null&&($.refs.listRef.current[_e]=et)},...$.getItemProps()})},FloatingContainer=React$5.forwardRef(({children:$,placement:_e,arrowSize:et=8,distance:tt=4,borderRadius:nt=4,viewPortMargin:rt=8,ariaRole:ot="tooltip",onClose:it=()=>{},className:st,...lt},ct)=>{const[ft,dt]=reactExports.useState(null),[pt,ht]=reactExports.useState(!1),gt="open"in lt?lt.open:pt,yt=reactExports.useRef(null),vt=reactExports.useRef(null),Et=reactExports.useRef([]);reactExports.useImperativeHandle(ct,()=>Object.assign(vt.current??unreachable(),{open:()=>ht(!0),close:()=>ht(!1)}));const{x:Tt,y:Ot,placement:xt,refs:$t,middlewareData:wt,context:mt}=useFloating({open:gt,onOpenChange:Dt=>{"open"in lt||ht(Dt),Dt||it()},placement:_e,whileElementsMounted:autoUpdate,middleware:[offset$3(et+tt),flip$2(),shift({padding:rt}),arrow$2({element:yt,padding:nt*1.6})]}),Ct=useHover(mt,{enabled:"trigger"in lt&<.trigger==="hover",handleClose:safePolygon(),move:!1}),bt=useFocus(mt,{enabled:"trigger"in lt&<.trigger==="hover"}),Pt=useClick(mt,{enabled:"trigger"in lt&<.trigger==="click"}),It=useDismiss(mt,{referencePress:ot==="tooltip"}),Mt=useRole(mt,{role:ot}),Rt=useListNavigation(mt,{listRef:Et,activeIndex:ft,loop:!0,focusItemOnHover:!1,onNavigate:dt}),{getReferenceProps:kt,getFloatingProps:Nt,getItemProps:Ft}=useInteractions([Ct,bt,Pt,It,Mt,Rt]),Lt={activeIndex:ft,open:gt,setOpen:ot==="tooltip"?ht:null,settings:{arrowSize:et,distance:tt,borderRadius:nt,viewPortMargin:rt},calculated:{x:Tt,y:Ot,placement:xt,arrow:wt.arrow},refs:{arrowRef:yt,listRef:Et,...$t},getReferenceProps:kt,getFloatingProps:Nt,getItemProps:Ft};return jsx$1(FloatingContext.Provider,{value:Lt,children:jsx$1("div",{ref:vt,css:{position:"relative"},className:st,children:$})})}),FloatingTrigger=({children:$})=>{const _e=useFloatingContext();return React$5.cloneElement($,{"data-floating-state":_e.open?"open":"closed",..._e.getReferenceProps({ref:_e.refs.setReference,onClick:()=>{var et;return _e.open&&((et=_e.setOpen)==null?void 0:et.call(_e,!1))},...$.props})})},Floating=React$5.forwardRef(({children:$,backgroundColor:_e,borderColor:et,borderWidth:tt=1,shadowColor:nt="rgba(0, 0, 0, 20%)",shadowBlur:rt=4,padding:ot=[4,8],className:it,hideArrowTip:st=!1},lt)=>{var Tt,Ot;const ct=useAppkitConfig(),{open:ft,calculated:dt,refs:pt,settings:ht,...gt}=useFloatingContext();if(!ft)return null;const yt=sideOfPlacement(dt.placement),vt=Math.SQRT2*ht.arrowSize,Et=o$1([lt,pt.setFloating]);return jsxs("div",{...gt.getFloatingProps({ref:Et}),css:{"--floating-background-color":_e??ct.colors.neutral05,"--floating-border-color":et??ct.colors.neutral40,"--floating-border-width":`${tt}px`,"--floating-shadow-blur":`${rt}px`,"--floating-shadow-color":nt,position:"absolute",...dt.x!=null&&dt.y!=null?{left:dt.x,top:dt.y}:{[invSide(yt)]:"100%"},width:"max-content",maxWidth:`calc(100vw - ${2*ht.viewPortMargin}px)`,zIndex:1e4,backgroundColor:"var(--floating-background-color)",borderRadius:ht.borderRadius,boxShadow:"0 0 var(--floating-shadow-blur) var(--floating-shadow-color)",outline:"var(--floating-border-width) solid var(--floating-border-color)"},children:[jsx$1("div",{className:it,css:{overflow:"hidden",borderRadius:ht.borderRadius,padding:(Array.isArray(ot)?ot:[ot]).map(xt=>`${xt}px`).join(" ")},children:$}),jsx$1("div",{css:{position:"absolute",display:st?"none":"block",...yt==="top"||yt==="bottom"?{left:0,right:0,height:ht.arrowSize+rt}:{top:0,bottom:0,width:ht.arrowSize+rt},[yt]:"100%",pointerEvents:"none",overflow:"hidden"},children:jsx$1("div",{ref:pt.arrowRef,css:{position:"absolute",left:(Tt=dt.arrow)==null?void 0:Tt.x,top:(Ot=dt.arrow)==null?void 0:Ot.y,[yt]:-vt/2,height:vt,width:vt,transform:"rotate(45deg)",backgroundColor:"var(--floating-background-color)",boxShadow:`${rt/6}px ${rt/6}px var(--floating-shadow-blur) ${rt/12}px var(--floating-shadow-color)`,outline:"var(--floating-border-width) solid var(--floating-border-color)"}})})]})});React$5.forwardRef(({children:$,tooltip:_e,tooltipCss:et,...tt},nt)=>{const rt=useAppkitConfig();return jsxs(FloatingContainer,{ref:nt,...tt,trigger:"hover",placement:tt.placement??"top",children:[jsx$1(Floating,{css:{color:rt.colors.neutral80,fontSize:14,maxWidth:"100%",...et},children:_e}),jsx$1(FloatingTrigger,{children:$})]})});const invSide=$=>({top:"bottom",right:"left",bottom:"top",left:"right"})[$],sideOfPlacement=$=>$.split("-")[0];function FiArrowLeft($){return GenIcon({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"line",attr:{x1:"19",y1:"12",x2:"5",y2:"12"}},{tag:"polyline",attr:{points:"12 19 5 12 12 5"}}]})($)}function FiCheck($){return GenIcon({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"20 6 9 17 4 12"}}]})($)}const WithHeaderMenu=({children:$,menu:_e,floatingContainer:et})=>{const tt=reactExports.useRef(null);return jsxs(FloatingContainer,{ref:tt,placement:"bottom",trigger:"click",ariaRole:"menu",arrowSize:12,viewPortMargin:12,borderRadius:8,distance:6,...et,children:[jsx$1(FloatingTrigger,{children:$}),jsx$1(HeaderMenu,{close:()=>{var nt;return(nt=tt.current)==null?void 0:nt.close()},..._e})]})},HeaderMenu=({close:$,items:_e,label:et,breakpoint:tt})=>{const nt=useAppkitConfig(),{scheme:rt,isHighContrast:ot}=useColorScheme(),it=useFloatingItemProps(),st=match$1(rt,{light:()=>nt.colors.neutral05,dark:()=>nt.colors.neutral15,"dark-high-contrast":()=>nt.colors.neutral05,"light-high-contrast":()=>nt.colors.neutral05});return jsx$1(Floating,{backgroundColor:st,borderWidth:rt!=="light"?1:0,padding:0,shadowBlur:ot?0:8,children:jsx$1("div",{onClick:lt=>{lt.target===lt.currentTarget&&$()},onBlur:lt=>{lt.currentTarget.contains(lt.relatedTarget)||$()},css:{position:"relative",[`@media (max-width: ${tt}px)`]:{position:"fixed",top:0,bottom:0,left:0,right:0,zIndex:1001,backgroundColor:"#000000a0"}},children:jsxs("ul",{css:{borderRadius:8,right:0,margin:0,paddingLeft:0,overflow:"hidden",listStyle:"none",li:{":first-of-type":{borderRadius:"8px 8px 0 0"},":last-of-type":{borderRadius:"0 0 8px 8px"}},[`@media (max-width: ${tt}px)`]:{backgroundColor:st,borderRadius:"0 0 8px 8px",marginTop:0,position:"fixed",left:0,top:0,li:{":not(:first-of-type)":{borderRadius:0}}}},children:[jsx$1(ReturnButton,{onClick:$,breakpoint:tt,children:et}),_e.map(({keepOpenAfterClick:lt,...ct},ft)=>jsx$1(HeaderMenuItem,{...it(ft),...ct,onClick:dt=>{var pt;(pt=ct==null?void 0:ct.onClick)==null||pt.call(ct,dt),lt||$()}},ft))]})})})},HeaderMenuItem=reactExports.forwardRef(({icon:$,children:_e,wrapper:et,...tt},nt)=>{const rt=useAppkitConfig(),ot=useColorScheme().isHighContrast?rt.colors.neutral90:rt.colors.neutral10,it=useColorScheme().isHighContrast?rt.colors.neutral05:rt.colors.neutral90,st={display:"flex",gap:16,alignItems:"center",minWidth:160,padding:12,textDecoration:"none",color:rt.colors.neutral90,cursor:"pointer",whiteSpace:"nowrap","& > svg":{maxHeight:23,fontSize:23,width:24,strokeWidth:2,"& > path":{strokeWidth:"inherit"}},":hover, :focus":{backgroundColor:ot,color:it},...focusStyle(rt,{inset:!0})},{className:lt,...ct}=tt,ft=et??jsx$1(Fragment,{});return jsx$1("li",{role:"menuitem",...ct,css:{":not(:first-of-type)":{borderTop:`1px solid ${rt.colors.neutral30}`},...!et&&st},...!et&&{className:lt,ref:dt=>typeof nt=="function"?nt(dt):nt?nt.current=dt:{}},children:jsx(ft.type,{key:ft.key,...ft.props,children:jsxs(Fragment,{children:[$??jsx$1("svg",{}),jsx$1("div",{children:_e})]}),...et&&{className:lt,ref:dt=>typeof nt=="function"?nt(dt):nt?nt.current=dt:{}},...et&&{css:[st,{borderRadius:"inherit"}]}})})}),checkboxMenuItem=({checked:$,onClick:_e,children:et})=>({icon:$?jsx$1(FiCheck,{}):void 0,onClick:_e,onKeyDown:tt=>{document.activeElement===tt.currentTarget&&tt.key==="Enter"&&_e()},tabIndex:0,children:et,role:"checkbox","aria-checked":$,css:{...$&&{cursor:"default"}}}),ReturnButton=({onClick:$,breakpoint:_e,children:et})=>{const tt=useAppkitConfig();return jsxs("div",{css:{borderBottom:`1px solid ${tt.colors.neutral40}`,display:"flex",alignItems:"center",[`@media not all and (max-width: ${_e}px)`]:{display:"none"}},children:[jsx$1(ProtoButton,{onClick:$,tabIndex:0,css:{display:"flex",alignItems:"center",cursor:"pointer",padding:"24px 12px",opacity:.75,":hover, :focus":{opacity:1},...focusStyle(tt,{inset:!0}),"> svg":{maxHeight:23,fontSize:23,width:24,strokeWidth:2}},children:jsx$1(FiArrowLeft,{})}),jsx$1("span",{css:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",color:tt.colors.neutral60},children:et})]})};React$5.forwardRef(({size:$="1em",..._e},et)=>jsx$1("svg",{ref:et,viewBox:"0 0 50 50",css:{width:$,height:$,animation:`2s linear infinite none ${keyframes({"0%":{transform:"rotate(0)"},"100%":{transform:"rotate(360deg)"}})}`,"& > circle":{fill:"none",stroke:"currentcolor",strokeWidth:4,strokeDasharray:83,strokeLinecap:"round"}},..._e,children:jsx$1("circle",{cx:"25",cy:"25",r:"20"})}));function match$1($,_e,et){return et===void 0?_e[$]():(_e[$]??et)()}const focusStyle=($,_e)=>{const et=(_e==null?void 0:_e.width)??2.5,tt=(_e==null?void 0:_e.inset)??!1,nt=(_e==null?void 0:_e.offset)??0;return{"&:focus-visible":{outline:`${et}px solid ${$.colors.focus}`,outlineOffset:`${tt?-et:nt}px`}}},COLORS=DEFAULT_CONFIG.colors,useTheme=()=>{const $=useColorScheme();return match$1($.scheme,{light:()=>lightMode,dark:()=>darkMode,"light-high-contrast":()=>highContrastLightMode,"dark-high-contrast":()=>highContrastDarkMode})},lightMode={background:COLORS.neutral10,menu_background:COLORS.neutral05,text:COLORS.neutral90,error:"#ed1741",element_bg:COLORS.neutral05,multiValue:COLORS.neutral15,focused:COLORS.neutral15,focus_text:COLORS.neutral90,selected:COLORS.neutral25,disabled:"rgba(0, 0, 0, 0.55)",menuBorder:`1px solid ${COLORS.neutral30}`,boxShadow:`0 0 2px 2px ${COLORS.neutral30}`,boxShadow_tiles:"0 5px 10px 0px rgba(150, 150, 150, 0.5)",singleKey_bg:COLORS.neutral10,singleKey_border:COLORS.neutral20,singleKey_boxShadow:"0 2px 2px 0px rgba(150, 150, 150, 0.2)",invert_wave:"invert(0%)",inverted_text:COLORS.neutral90,tooltip:COLORS.neutral80,tooltip_text:COLORS.neutral05,contextMenu:COLORS.neutral10,element_outline:"2px solid transparent",selected_text:COLORS.neutral90,dropdown_border:`1px solid ${COLORS.neutral40}`,menuButton_outline:"2px solid transparent",button_outline:"none",button_color:COLORS.neutral10,indicator_color:COLORS.neutral60,icon_color:COLORS.neutral05,slider_thumb_color:COLORS.neutral70,slider_thumb_shadow:`0 0 0 8px ${COLORS.neutral30}`,slider_track_color:COLORS.neutral30,background_finish_menu_icon:COLORS.neutral15,background_play_icon:COLORS.neutral70,background_preview_icon:COLORS.neutral70,waveform_filter:"invert(44%) sepia(8%) saturate(3893%) hue-rotate(169deg) brightness(99%) contrast(90%)",waveform_bg:"",scrubber:COLORS.neutral60,scrubber_handle:COLORS.neutral05,scrubber_icon:COLORS.neutral60,subtitle_segment_bg:"rgba(0, 0, 0, 0.4)",subtitle_segment_border:`1px solid ${COLORS.neutral80}`,subtitle_segment_text:COLORS.neutral05,header_bg:COLORS.neutral60,header_text:COLORS.neutral05,header_button_hover_bg:COLORS.neutral70,metadata_highlight:COLORS.neutral50,clock_bg:COLORS.neutral15,clock_border:"2px solid transparent",clock_hands:COLORS.neutral50,clock_focus:COLORS.neutral90,digit_selected:COLORS.neutral90,text_shadow:`2px 0 ${COLORS.neutral15}, -2px 0 ${COLORS.neutral15},0 2px ${COLORS.neutral15}, 0 -2px ${COLORS.neutral15},1px 1px ${COLORS.neutral15}, -1px -1px ${COLORS.neutral15},1px -1px ${COLORS.neutral15}, -1px 1px ${COLORS.neutral15}`},darkMode={background:COLORS.neutral10,menu_background:COLORS.neutral05,text:COLORS.neutral90,error:"rgba(237, 23, 65, 0.8)",element_bg:COLORS.neutral05,multiValue:COLORS.neutral15,focused:COLORS.neutral15,focus_text:COLORS.neutral90,selected:COLORS.neutral25,disabled:"rgba(255, 255, 255, 0.5)",menuBorder:`1px solid ${COLORS.neutral30}`,boxShadow:`0 0 5px ${COLORS.neutral05}`,boxShadow_tiles:"0 5px 10px 0px rgba(0, 0, 0, 0.3)",singleKey_bg:"linear-gradient(180deg, rgba(40,40,40,1) 0%, rgba(30,30,30,1) 100%)",singleKey_border:COLORS.neutral20,singleKey_boxShadow:"0 2px 2px 0px rgba(0, 0, 0, 1.0)",invert_wave:"invert(100%)",inverted_text:COLORS.neutral90,tooltip:COLORS.neutral80,tooltip_text:COLORS.neutral05,contextMenu:COLORS.neutral20,element_outline:"2px solid transparent",selected_text:COLORS.neutral90,dropdown_border:`1px solid ${COLORS.neutral40}`,menuButton_outline:"2px solid transparent",button_outline:"0px solid transparent",button_color:COLORS.neutral20,indicator_color:COLORS.neutral60,icon_color:"rgba(255, 255, 255, 0.87)",slider_thumb_color:COLORS.neutral70,slider_thumb_shadow:"0 0 0 8px rgba(255, 255, 255, 0.2)",slider_track_color:COLORS.neutral90,background_finish_menu_icon:COLORS.neutral15,background_play_icon:COLORS.neutral70,background_preview_icon:COLORS.neutral70,waveform_filter:"invert(11%)",waveform_bg:"#fff",scrubber:COLORS.neutral60,scrubber_handle:COLORS.neutral70,scrubber_icon:COLORS.neutral20,subtitle_segment_bg:"rgba(0, 0, 0, 0.4)",subtitle_segment_border:`1px solid ${COLORS.neutral80}`,subtitle_segment_text:COLORS.neutral90,header_bg:COLORS.neutral20,header_text:COLORS.neutral90,header_button_hover_bg:COLORS.neutral10,metadata_highlight:COLORS.neutral50,clock_bg:COLORS.neutral15,clock_border:"2px solid transparent",clock_hands:COLORS.neutral50,clock_focus:COLORS.neutral90,digit_selected:COLORS.neutral90,text_shadow:`2px 0 ${COLORS.neutral15}, -2px 0 ${COLORS.neutral15},0 2px ${COLORS.neutral15}, 0 -2px ${COLORS.neutral15},1px 1px ${COLORS.neutral15}, -1px -1px ${COLORS.neutral15},1px -1px ${COLORS.neutral15}, -1px 1px ${COLORS.neutral15}`},highContrastDarkMode={background:"#000",menu_background:"#000",text:"#fff",error:"#ED1741",element_bg:"none",multiValue:"#c4c4c4",focused:"#a6ffea",focus_text:"#000",selected:"#fff",disabled:"rgba(255, 255, 255, 0.6)",menuBorder:"2px solid #fff",boxShadow:"0 0 0 rgba(255, 255, 255, 0.3)",boxShadow_tiles:"0 0 0 rgba(255, 255, 255, 0.3)",singleKey_bg:"none",singleKey_border:"#fff",singleKey_boxShadow:"0 2px 2px 0px rgba(150, 150, 150, 0.2)",invert_wave:"invert(100%)",inverted_text:"#000",tooltip:"#fff",tooltip_text:"#000",contextMenu:"#000",element_outline:"2px solid #fff",selected_text:"#000",dropdown_border:"2px solid #fff",menuButton_outline:"2px solid transparent",button_outline:"2px solid #a6ffea",button_color:"#a6ffea",indicator_color:"#a6ffea",icon_color:"#000",slider_thumb_color:"#fff",slider_thumb_shadow:"0 0 0 8px rgba(166, 255, 234, 0.8)",slider_track_color:"#fff",background_finish_menu_icon:"#000",background_play_icon:"#fff",background_preview_icon:"#fff",waveform_filter:"invert(100%)",waveform_bg:"#80B8AC",scrubber:"#fff",scrubber_handle:"#fff",scrubber_icon:"#000",subtitle_segment_bg:"none",subtitle_segment_border:"2px solid #fff",subtitle_segment_text:"#fff",header_bg:"#000",header_text:"#fff",header_button_hover_bg:"#000",metadata_highlight:"rgb(38, 132, 255)",clock_bg:"#000",clock_border:"2px solid #a6ffea",clock_hands:"#fff",clock_focus:"#000",digit_selected:"#000",text_shadow:"2px 0 #000, -2px 0 #000, 0 2px #000, 0 -2px #000, 1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000"},highContrastLightMode={background:"snow",menu_background:"snow",text:"#000",error:"#a5102d",element_bg:"none",multiValue:"#2e2e2e",focused:"#000099",focus_text:"#fff",selected:"#4646b5",disabled:"rgba(0, 0, 0, 0.6)",menuBorder:"2px solid #000",boxShadow:"0 0 0 rgba(0, 0, 0, 0.3)",boxShadow_tiles:"0 0 0 rgba(0, 0, 0, 0.3)",singleKey_bg:"none",singleKey_border:"#000",singleKey_boxShadow:"0 2px 2px 0px rgba(150, 150, 150, 0.2)",invert_wave:"invert(0%)",inverted_text:"#fff",tooltip:"#000",tooltip_text:"#fff",contextMenu:"snow",element_outline:"2px solid #000",selected_text:"#fff",dropdown_border:"2px solid #000",menuButton_outline:"2px solid transparent",button_outline:"3px solid #000099",button_color:"#000099",indicator_color:"#000099",icon_color:"#fff",slider_thumb_color:"#000",slider_thumb_shadow:"0 0 0 8px rgba(0, 0, 153, 0.6)",slider_track_color:"#000",background_finish_menu_icon:"snow",background_play_icon:"#000",background_preview_icon:"#000",waveform_filter:"invert(0%)",waveform_bg:"#fff",scrubber:"#000",scrubber_handle:"#000",scrubber_icon:"#fff",subtitle_segment_bg:"none",subtitle_segment_border:"2px solid #000",subtitle_segment_text:"#000",header_bg:"#000",header_text:"#fff",header_button_hover_bg:"#000",metadata_highlight:"rgb(38, 132, 255)",clock_bg:"snow",clock_border:"2px solid #000099",clock_hands:"#4646b5",clock_focus:"#fff",digit_selected:"#fff",text_shadow:"2px 0 snow, -2px 0 snow, 0 2px snow, 0 -2px snow, 1px 1px snow, -1px -1px snow, 1px -1px snow, -1px 1px snow"},GlobalStyle=()=>{const $=useTheme();return jsx$1(Global,{styles:globalStyle($)})},globalStyle=$=>css({emotionNormalize,body:{backgroundColor:`${$.background}`,color:`${$.text}`,fontSize:"medium",minHeight:"100vh"}},"",""),BREAKPOINT_SMALL=450,BREAKPOINT_MEDIUM=650,flexGapReplacementStyle=($,_e)=>{const et=$/2,tt=$/4;return{...checkFlexGapSupport()&&{gap:`${$}px`},...!checkFlexGapSupport()&&{">*":{marginTop:`${tt}px`,marginBottom:`${tt}px`,marginRight:`${et}px`,marginLeft:`${et}px`},..._e&&{">*:first-of-type":{marginLeft:"0px"},">*:last-child":{marginRight:"0px"}}}}},basicButtonStyle=$=>css({borderRadius:"5px",cursor:"pointer","&:hover":{backgroundColor:`${$.button_color}`,color:`${$.inverted_text}`},"&:focus":{backgroundColor:`${$.button_color}`,color:`${$.inverted_text}`},display:"flex",justifyContent:"center",alignItems:"center",...flexGapReplacementStyle(10,!1),textAlign:"center",outline:`${$.button_outline}`},"",""),deactivatedButtonStyle=css({borderRadius:"10px",cursor:"pointer",opacity:"0.6",display:"flex",justifyContent:"center",alignItems:"center",...flexGapReplacementStyle(10,!1),textAlign:"center"},"",""),navigationButtonStyle=$=>css({width:"200px",padding:"16px",justifyContent:"space-around",boxShadow:`${$.boxShadow}`,background:`${$.element_bg}`},"",""),backOrContinueStyle=css({display:"flex",flexDirection:"row",...flexGapReplacementStyle(20,!1)},"",""),tileButtonStyle=$=>css({width:"290px",height:"220px",display:"flex",flexDirection:"column",fontWeight:"bold",...flexGapReplacementStyle(30,!1),boxShadow:`${$.boxShadow_tiles}`,background:`${$.element_bg}`,placeSelf:"center"},"",""),disableButtonAnimation={name:"1ywlbv8",styles:"&:hover{transform:none;}&:focus{transform:none;}&:active{transform:none;}"},titleStyle=$=>css({display:"inline-block",padding:"15px",whiteSpace:"nowrap",textOverflow:"ellipsis",maxWidth:"100%",color:`${$.text}`},"",""),titleStyleBold=$=>css({fontWeight:"bold",fontSize:"24px",verticalAlign:"-2.5px",color:`${$.text}`},"",""),ariaLive={name:"651ll8",styles:"position:absolute;left:-99999px;height:1px;width:1px;overflow:hidden"},errorBoxStyle=($,_e)=>css({...!$&&{display:"none"},borderColor:`${_e.error}`,borderStyle:"dashed",fontWeight:"bold",padding:"10px"},"","");function selectFieldStyle($){return{control:(_e,et)=>({..._e,background:$.menu_background,...et.isFocused&&{borderColor:$.metadata_highlight},...et.isFocused&&{boxShadow:`0 0 0 1px ${$.metadata_highlight}`},"&:hover":{borderColor:$.menu_background,boxShadow:`0 0 0 1px ${$.metadata_highlight}`}}),menu:_e=>({..._e,background:$.menu_background,outline:$.dropdown_border,marginTop:0}),singleValue:_e=>({..._e,color:$.text}),multiValue:_e=>({..._e,color:$.inverted_text,background:$.multiValue,cursor:"default"}),multiValueLabel:_e=>({..._e,color:$.inverted_text}),option:(_e,et)=>({..._e,background:et.isFocused?$.focused:$.menu_background&&et.isSelected?$.selected:$.menu_background,...et.isFocused&&{color:$.focus_text},color:et.isFocused?$.focus_text:$.text&&et.isSelected?$.selected_text:$.text}),placeholder:_e=>({..._e,color:$.text}),clearIndicator:_e=>({..._e,color:$.indicator_color}),dropdownIndicator:_e=>({..._e,color:$.indicator_color}),valueContainer:_e=>({..._e,cursor:"text"}),input:_e=>({..._e,color:$.text})}}const calendarStyle=$=>createTheme({components:{MuiPaper:{styleOverrides:{root:{outline:`${$.dropdown_border} !important`,background:`${$.menu_background}`,color:`${$.text}`,".MuiYearPicker-root":{".PrivatePickersYear-yearButton:hover, .Mui-selected:hover":{background:`${$.focused}`,color:`${$.focus_text}`},".Mui-selected":{background:`${$.selected}`,color:`${$.selected_text}`}},"& .MuiClock-clock":{background:`${$.clock_bg}`,outline:`${$.clock_border}`,"-webkitTextFillColor":`${$.text}`,textShadow:`${$.text_shadow}`},"& .MuiClockPicker-root .Mui-selected":{"-webkitTextFillColor":`${$.digit_selected}`,fontWeight:"bold",textShadow:"none"},"& .MuiClock-pin, .MuiClockPointer-root":{background:`${$.clock_hands}`},"& .MuiClockPointer-thumb":{background:`${$.clock_hands}`,border:`16px solid ${$.clock_hands}`}}}},MuiButtonBase:{styleOverrides:{root:{color:`${$.text} !important`,"&.MuiPickersDay-root":{background:"transparent !important",color:`${$.text} !important`},"&:hover, &.Mui-selected:hover":{background:`${$.focused} !important`,color:`${$.focus_text} !important`},"&.Mui-selected":{background:`${$.selected} !important`,color:`${$.selected_text} !important`},"&:not(.Mui-selected)":{borderColor:`${$.focused} !important`},"&.Mui-disabled":{color:`${$.disabled} !important`},"&.MuiClock-amButton, &.MuiClock-pmButton":{"-webkitTextFillColor":`${$.text} !important`,"&:hover":{"-webkitTextFillColor":`${$.clock_focus} !important`}}}}},MuiTypography:{styleOverrides:{root:{color:`${$.disabled} !important`}}}}}),subtitleSelectStyle=$=>createTheme({components:{MuiInputLabel:{styleOverrides:{root:{color:`${$.text} !important`}}},MuiOutlinedInput:{styleOverrides:{notchedOutline:{border:`${$.dropdown_border} !important`}}},MuiSelect:{styleOverrides:{select:{background:`${$.element_bg}`,color:`${$.text} !important`},icon:{color:`${$.indicator_color}`}}},MuiMenu:{styleOverrides:{list:{background:`${$.background}`,color:`${$.text}`,border:`${$.dropdown_border}`}}},MuiMenuItem:{styleOverrides:{root:{"&:hover, &.Mui-selected:hover":{color:`${$.focus_text}`,background:`${$.focused}`},"&.Mui-selected":{color:`${$.selected_text}`,background:`${$.selected}`}}}}}}),spinningStyle=css({animation:`2s linear infinite none ${keyframes({"0%":{transform:"rotate(0)"},"100%":{transform:"rotate(360deg)"}})}`},"",""),customIconStyle={name:"161cgbi",styles:"max-width:16px;height:auto"},videosStyle=$=>css({display:"flex",flexDirection:"column",width:"100%",background:`${$.menu_background}`,borderRadius:"5px",boxShadow:`${$.boxShadow_tiles}`,marginTop:"24px",boxSizing:"border-box",padding:"10px",...flexGapReplacementStyle(10,!1)},"",""),backgroundBoxStyle=$=>css({background:`${$.menu_background}`,borderRadius:"7px",boxShadow:`${$.boxShadow_tiles}`,boxSizing:"border-box",padding:"20px",...flexGapReplacementStyle(25,!1)},"","");var voidElements={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};const e$1=getDefaultExportFromCjs(voidElements);var t$1=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function n$3($){var _e={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},et=$.match(/<\/?([^\s]+?)[/\s>]/);if(et&&(_e.name=et[1],(e$1[et[1]]||$.charAt($.length-2)==="/")&&(_e.voidElement=!0),_e.name.startsWith("!--"))){var tt=$.indexOf("-->");return{type:"comment",comment:tt!==-1?$.slice(4,tt):""}}for(var nt=new RegExp(t$1),rt=null;(rt=nt.exec($))!==null;)if(rt[0].trim())if(rt[1]){var ot=rt[1].trim(),it=[ot,""];ot.indexOf("=")>-1&&(it=ot.split("=")),_e.attrs[it[0]]=it[1],nt.lastIndex--}else rt[2]&&(_e.attrs[rt[2]]=rt[3].trim().substring(1,rt[3].length-1));return _e}var r$4=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,i$2=/^\s*$/,s$2=Object.create(null);function a$1($,_e){switch(_e.type){case"text":return $+_e.content;case"tag":return $+="<"+_e.name+(_e.attrs?function(et){var tt=[];for(var nt in et)tt.push(nt+'="'+et[nt]+'"');return tt.length?" "+tt.join(" "):""}(_e.attrs):"")+(_e.voidElement?"/>":">"),_e.voidElement?$:$+_e.children.reduce(a$1,"")+"";case"comment":return $+""}}var c$2={parse:function($,_e){_e||(_e={}),_e.components||(_e.components=s$2);var et,tt=[],nt=[],rt=-1,ot=!1;if($.indexOf("<")!==0){var it=$.indexOf("<");tt.push({type:"text",content:it===-1?$:$.substring(0,it)})}return $.replace(r$4,function(st,lt){if(ot){if(st!=="")return;ot=!1}var ct,ft=st.charAt(1)!=="/",dt=st.startsWith("");return{type:"comment",comment:tt!==-1?$.slice(4,tt):""}}for(var nt=new RegExp(t$1),rt=null;(rt=nt.exec($))!==null;)if(rt[0].trim())if(rt[1]){var ot=rt[1].trim(),it=[ot,""];ot.indexOf("=")>-1&&(it=ot.split("=")),_e.attrs[it[0]]=it[1],nt.lastIndex--}else rt[2]&&(_e.attrs[rt[2]]=rt[3].trim().substring(1,rt[3].length-1));return _e}var r$4=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,i$2=/^\s*$/,s$2=Object.create(null);function a$1($,_e){switch(_e.type){case"text":return $+_e.content;case"tag":return $+="<"+_e.name+(_e.attrs?function(et){var tt=[];for(var nt in et)tt.push(nt+'="'+et[nt]+'"');return tt.length?" "+tt.join(" "):""}(_e.attrs):"")+(_e.voidElement?"/>":">"),_e.voidElement?$:$+_e.children.reduce(a$1,"")+"";case"comment":return $+""}}var c$2={parse:function($,_e){_e||(_e={}),_e.components||(_e.components=s$2);var et,tt=[],nt=[],rt=-1,ot=!1;if($.indexOf("<")!==0){var it=$.indexOf("<");tt.push({type:"text",content:it===-1?$:$.substring(0,it)})}return $.replace(r$4,function(st,lt){if(ot){if(st!=="")return;ot=!1}var ct,ft=st.charAt(1)!=="/",dt=st.startsWith("