@checksum-ai/runtime 2.0.6 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +1 -1
- package/checksumlib.js +41 -41
- package/cli.js +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/vtg-build/asset-manifest.json +3 -3
- package/vtg-build/index.html +1 -1
- package/vtg-build/static/js/main.ea43b3f2.js +3 -0
- package/vtg-build/static/js/{main.fd8a9311.js.map → main.ea43b3f2.js.map} +1 -1
- package/vtg-pw-bridge-runner.js +1 -1
- package/vtg-build/static/js/main.fd8a9311.js +0 -3
- /package/vtg-build/static/js/{main.fd8a9311.js.LICENSE.txt → main.ea43b3f2.js.LICENSE.txt} +0 -0
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see main.fd8a9311.js.LICENSE.txt */
|
|
2
|
-
(()=>{var __webpack_modules__={7869:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{BX:()=>filterDuplicateNewAssertions,J9:()=>parseMatcherClause});var _home_runner_work_checksum_ai_monorepo_checksum_ai_monorepo_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(9740),_session_types__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4724),_variables_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(7757),_code_generation_test_codegen_helpers__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1579),_helpers_helpers__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3605);const ASSERTION_MATCHER_CLAUSE_REGEX=/^(not\.)?(\w+)\(([\s\S]*)\)$/,createUniqueKey=e=>generateAssertionCode((0,_home_runner_work_checksum_ai_monorepo_checksum_ai_monorepo_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3__.A)((0,_home_runner_work_checksum_ai_monorepo_checksum_ai_monorepo_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3__.A)({},e),{},{thought:void 0})),filterDuplicateAssertions=e=>Array.from(e.reduce(((e,t)=>e.set(createUniqueKey(t),t)),new Map).values()),filterDuplicateNewAssertions=(e,t)=>{const n=new Set(e.map(createUniqueKey));return t.filter((e=>!n.has(createUniqueKey(e))))},refactorAssertionUsingHeuristics=(e,t)=>{const n=t.map((e=>e.value)),r=e=>n.some((t=>e.includes("'".concat(t,"'"))||e.includes('"'.concat(t,'"'))));if((!e.locator||!r(e.locator))&&!r(e.matcher))return;const o=e=>t.reduce(((e,t)=>{let{name:n,value:r}=t;return e.replace("'".concat(r,"'"),"".concat(_variables_utils__WEBPACK_IMPORTED_MODULE_1__.mu).concat(n)).replace('"'.concat(r,'"'),"".concat(_variables_utils__WEBPACK_IMPORTED_MODULE_1__.mu).concat(n))}),e),i=e.locator?o(e.locator):void 0,a=e.locator!==i?"toBeVisible()":o(e.matcher);return(0,_home_runner_work_checksum_ai_monorepo_checksum_ai_monorepo_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3__.A)((0,_home_runner_work_checksum_ai_monorepo_checksum_ai_monorepo_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3__.A)({},e),{},{locator:i,matcher:a,locatorMappedToCorrectRrwebId:!1,isValid:void 0})},refactorAssertionMatcher=e=>{const{locator:t,matcher:n}=e;if(!t)return e;if(!["toHaveText","toHaveValue","toContainText"].some((e=>n.includes(e))))return e;const r=(e=>{const t=e.match(/^(not\.)?(\w+)\(([^,)]*?)(?:,.*?)?\)$/);return t?t[3].trim():null})(n),o=/^(['"])([^'"]*)\1$/;if(!("string"===typeof r&&o.test(r)))return e;const i=r.match(o)[2];if(!i)return e;return new RegExp("['\"]".concat(i,"['\"]")).test(t)?(0,_home_runner_work_checksum_ai_monorepo_checksum_ai_monorepo_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3__.A)((0,_home_runner_work_checksum_ai_monorepo_checksum_ai_monorepo_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_3__.A)({},e),{},{matcher:"toBeVisible()"}):e},SMART_ASSERTION_MATCHER="withChecksumAI()",isPageLevelAssertion=e=>e.matcher.startsWith("toHaveURL")||e.matcher.startsWith("not.toHaveURL")||e.matcher.startsWith(SMART_ASSERTION_MATCHER),EVENT_CODE_WITHOUT_ASSERTIONS=[_session_types__WEBPACK_IMPORTED_MODULE_0__.Qy.Navigation,_session_types__WEBPACK_IMPORTED_MODULE_0__.Qy.GetMoreItems,_session_types__WEBPACK_IMPORTED_MODULE_0__.Qy.Wait,_session_types__WEBPACK_IMPORTED_MODULE_0__.Qy.SwitchTab],getSelectedAssertions=e=>{const{assertions:t,smartAssertion:n}=e;return[...null!==t&&void 0!==t?t:[],...n?[n]:[]].filter((e=>e.isSelected))},isAssertionOnElementFromPreviousState=e=>"toBeHidden()"===e.matcher,getLocator=e=>{var t,n,r,o;const i=null!==(t=null===(n=e.codeContext)||void 0===n?void 0:n.frameTargetName)&&void 0!==t?t:"page",a=null!==(r=null===(o=e.locator)||void 0===o?void 0:o.replace(new RegExp("^".concat(i)),""))&&void 0!==r?r:"";return a?(0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_2__.t1)(a,i):i},parseMatcher=(e,t)=>{const n=e.match(ASSERTION_MATCHER_CLAUSE_REGEX);if(!n)return null;const[,r,o,i]=n;let a=[];i&&(a=splitParams(i).map((e=>{const t=(e=e.trim()).match(/^(['"`])(.*)\1$/);return t?(0,_code_generation_test_codegen_helpers__WEBPACK_IMPORTED_MODULE_4__.z1)(t[2]):e})));const s=[...a,...t?[t]:[]].join(", ");return"".concat(r?"not.":"").concat(o,"(").concat(s,")")},splitParams=e=>{const t=[];let n="",r=null,o=!1;for(let i=0;i<e.length;i++){const a=e[i];o?(n+=a,o=!1):"\\"===a?(o=!0,n+=a):"'"===a||'"'===a||"`"===a?(r=r===a?null:r||a,n+=a):","!==a||r?n+=a:(t.push(n.trim()),n="")}return n&&t.push(n.trim()),t},generateAssertionCode=e=>{const t=void 0!==e.thought?', "'.concat((n=e.thought)?n.replaceAll(/\\/g,"\\\\").replaceAll(/"/g,'\\"').replaceAll("\n","\\n"):"",'"'):"";var n;const r=e.isSoft?"expect.soft":"expect",o=parseMatcher(e.matcher,e.matcherOptions);return"await ".concat(r,"(").concat(getLocator(e)).concat(t,").").concat(o)},parseMatcherClause=function(matcherClause){let variablesString=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const match=matcherClause.match(ASSERTION_MATCHER_CLAUSE_REGEX);if(!match)throw new Error("Invalid matcher clause format: ".concat(matcherClause));const[,notPrefix,matcherMethodName,matcherParamsString]=match,matcherParamsArray=matcherParamsString?eval("(() => {\n ".concat(variablesString,"\n return [").concat(matcherParamsString,"];\n })()")):[];return{notPrefix:notPrefix,matcherMethodName:matcherMethodName,matcherParamsArray:matcherParamsArray}}},1579:(e,t,n)=>{"use strict";function r(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\r?\n/g,"\\n")}n.d(t,{z1:()=>o});function o(e){const t=/^\$\{([^}]*)\}$/;if(void 0===e)return"";if(/^(?!["'`])\$\{([^}]*)\}(?!["'`])$/.test(e)){const n=e.match(t);return n?n[1]:""}return/\$\{[^}]+\}/.test(e)?"`".concat(e.replace(/\\/g,"\\\\").replace(/`/g,"\\`").replace(/\r?\n/g,"\\n"),"`"):'"'.concat(r(e),'"')}},3605:(e,t,n)=>{"use strict";n.d(t,{DU:()=>o,Sd:()=>a,t1:()=>i,uc:()=>r});n(4724);const r=e=>new Promise((t=>setTimeout(t,e)));function o(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",t="";for(let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:5;n>0;--n)t+=e[Math.floor(Math.random()*e.length)];return t}const i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"page";return t+"."+a(e,t)},a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"page";return e.replace(".and(locator(",".and(".concat(t,".locator(")).replace(".or(locator(",".or(".concat(t,".locator("))}},4724:(e,t,n)=>{"use strict";n.d(t,{Qy:()=>r,ss:()=>o});let r=function(e){return e.Click="click",e.DoubleClick="double_click",e.DragAndDrop="drag_and_drop",e.Input="input",e.ClickAndType="click_and_type",e.ClearAndType="clear_and_type",e.Check="check",e.UnCheck="uncheck",e.Hover="hover",e.Navigation="navigation",e.Keystroke="keystroke",e.SelectOption="selectoption",e.UploadFiles="upload_files",e.GetMoreItems="get_more_items",e.Wait="wait",e.SwitchTab="switch_tab",e.CustomCode="custom_code",e.LogoutLogin="logout_and_login",e.CanvasClick="canvas_click",e.NativeDialogAccept="native_accept",e.NativeDialogDismiss="native_dismiss",e.Login="login",e}({}),o=function(e){return e.Alert="alert",e.Confirm="confirm",e.Prompt="prompt",e}({})},7757:(e,t,n)=>{"use strict";n.d(t,{mu:()=>o});const r="variableStore",o=r+"."},3035:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});const r=function(e){var t;let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=a(e,null!==(t={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}[e])&&void 0!==t?t:arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n);return r&&"/"===r[r.length-1]&&!n.enforceTrailingSlash&&(r=r.slice(0,-1)),r},o=function(e){const t=r(e,void 0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});return t||i(e,"not provided"),t},i=(e,t)=>{throw Error("".concat(e," config error - ").concat(t))},a=(e,t,n)=>{let r=t;return Object.keys(l).forEach((t=>{n[t]&&(r=l[t](e,r))})),r},s=["0","false","f","null","undefined","NaN","no","n","off","disable","disabled",0,!1,null,void 0,NaN],l={commaSeparatedArray:(e,t)=>t?Array.isArray(t)?t:t.split(",").map((e=>e.trim())):[],stringifiedJsonObject:(e,t)=>t?"string"!==typeof t?t:JSON.parse(t):{},enforceTrailingSlash:(e,t)=>(t.endsWith("/")||i(e,"requires trailing slash"),t),boolean:(e,t)=>!s.includes(t),number:(e,t)=>{const n=parseFloat(t);return isNaN(n)&&i(e,"is not a number"),n}},c={env:o("REACT_APP_ENV"),appVersion:r("REACT_APP_APP_VERSION","2.0"),appUrl:o("REACT_APP_APPLICATION_URL"),publicUrl:r("REACT_APP_PUBLIC_URL",""),git:{versionTag:r("REACT_APP_GIT_VERSION_TAG",""),sha:r("REACT_APP_GIT_VERSION_SHA",""),branch:r("REACT_APP_GIT_VERSION_BRANCH","")},api:{baseUrl:o("REACT_APP_API_BASE_URL"),authHeader:r("REACT_APP_AUTH_HEADER","RAVEN_AUTH_TOKEN"),mock:r("REACT_APP_API_MOCK",!1,{boolean:!0})},crm:{intercom:{appId:r("REACT_APP_INTERCOM_APP_ID")},zendesk:{key:r("REACT_APP_ZENDESK_KEY")},crisp:{id:r("REACT_APP_CRISP_ID")}},devToolsInspector:{enabled:r("REACT_APP_DEVTOOLS_INSPECTOR_ENABLED",!1,{boolean:!0})}}},1175:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>Ld});var r={};n.r(r),n.d(r,{inspector:()=>U});var o=n(4586);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(null,arguments)}var a=n(2176),s=n(8633),l=n(9740),c=n(4177),u=n.n(c),d=n(6359),f=n.n(d),p=n(4407),h=n.n(p);const m="PERFORM_ACTION",g="RESET",v="ROLLBACK",y="COMMIT",b="SWEEP",w="TOGGLE_ACTION",x="SET_ACTIONS_ACTIVE",A="JUMP_TO_STATE",S="JUMP_TO_ACTION",_="REORDER_ACTION",k="IMPORT_STATE",C="LOCK_CHANGES",E="PAUSE_RECORDING",O="object"===typeof window&&("undefined"!==typeof window.chrome||"undefined"!==typeof window.process&&"renderer"===window.process.type),T=O||"undefined"!==typeof process&&process.release&&"node"===process.release.name,I={performAction(e,t,n,r){if(!h()(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');let o;if(t){let i=0;if("function"===typeof t)o=t(e);else{const e=Error();let t;if(Error.captureStackTrace&&T?(n&&Error.stackTraceLimit<n&&(t=Error.stackTraceLimit,Error.stackTraceLimit=n),Error.captureStackTrace(e,r)):i=3,o=e.stack,t&&(Error.stackTraceLimit=t),(i||"number"!==typeof Error.stackTraceLimit||n&&Error.stackTraceLimit>n)&&null!=o){const e=o.split("\n");n&&e.length>n&&(o=e.slice(0,n+i+(e[0].startsWith("Error")?1:0)).join("\n"))}}}return{type:m,action:e,timestamp:Date.now(),stack:o}},reset:()=>({type:g,timestamp:Date.now()}),rollback:()=>({type:v,timestamp:Date.now()}),commit:()=>({type:y,timestamp:Date.now()}),sweep:()=>({type:b}),toggleAction:e=>({type:w,id:e}),setActionsActive(e,t){return{type:x,start:e,end:t,active:!(arguments.length>2&&void 0!==arguments[2])||arguments[2]}},reorderAction:(e,t)=>({type:_,actionId:e,beforeActionId:t}),jumpToState:e=>({type:A,index:e}),jumpToAction:e=>({type:S,actionId:e}),importState:(e,t)=>({type:k,nextLiftedState:e,noRecompute:t}),lockChanges:e=>({type:C,status:e}),pauseRecording:e=>({type:E,status:e})},R={type:"@@INIT"};function P(e,t,n,r){return r?function(e,t,n){let r,o=n;try{o=e(n,t)}catch(i){r=i.toString(),O?setTimeout((()=>{throw i})):console.error(i)}return{state:o,error:r}}(e,t,n):{state:e(n,t)}}function M(e,t,n,r,o,i,a,s){if(!e||-1===t||t>=e.length&&e.length===i.length)return e;const l=e.slice(0,t);for(let c=t;c<i.length;c++){const e=i[c],t=o[e].action,u=l[c-1],d=u?u.state:r;let f;f=a.indexOf(e)>-1?u:s&&u&&u.error?{state:d,error:"Interrupted by an error up the chain"}:P(n,t,d,s),l.push(f)}return l}function D(e,t,n,r){return I.performAction(e,t,n,r)}function L(e,t,n,r){const o={monitorState:n(void 0,{}),nextActionId:1,actionsById:{0:D(R)},stagedActionIds:[0],skippedActionIds:[],committedState:t,currentStateIndex:0,computedStates:[],isLocked:!0===r.shouldStartLocked,isPaused:!1===r.shouldRecordChanges};return(i,a)=>{let{monitorState:s,actionsById:c,nextActionId:d,stagedActionIds:p,skippedActionIds:h,committedState:O,currentStateIndex:T,computedStates:I,isLocked:L,isPaused:j}=i||o;function N(e){let t=e,n=p.slice(1,t+1);for(let r=0;r<n.length;r++){if(I[r+1].error){t=r,n=p.slice(1,t+1);break}delete c[n[r]]}h=h.filter((e=>-1===n.indexOf(e))),p=[0,...p.slice(t+1)],O=I[t].state,I=I.slice(t),T=T>t?T-t:0}function F(t){let o;return t?(o=I[T],s=n(s,a)):o=P(e,a.action,I[T].state,!1),r.pauseActionType&&1!==d?(t&&(T===p.length-1&&T++,p=[...p,d],d++),{monitorState:s,actionsById:(0,l.A)((0,l.A)({},c),{},{[d-1]:D({type:r.pauseActionType})}),nextActionId:d,stagedActionIds:p,skippedActionIds:h,committedState:O,currentStateIndex:T,computedStates:[...I.slice(0,p.length-1),o],isLocked:L,isPaused:!0}):{monitorState:s,actionsById:{0:D(R)},nextActionId:1,stagedActionIds:[0],skippedActionIds:[],committedState:o.state,currentStateIndex:0,computedStates:[o],isLocked:L,isPaused:!0}}i||(c=(0,l.A)({},c));let z=0,B=r.maxAge;if("function"===typeof B&&(B=B(a,i)),/^@@redux\/(INIT|REPLACE)/.test(a.type))!1===r.shouldHotReload&&(c={0:D(R)},d=1,p=[0],h=[],O=0===I.length?t:I[T].state,T=0,I=[]),z=0,B&&p.length>B&&(I=M(I,z,e,O,c,p,h,r.shouldCatchErrors),N(p.length-B),z=1/0);else switch(a.type){case m:{if(L)return i||o;if(j)return F();B&&p.length>=B&&N(p.length-B+1),T===p.length-1&&T++;const e=d++;c[e]=a,p=[...p,e],z=p.length-1;break}case g:c={0:D(R)},d=1,p=[0],h=[],O=t,T=0,I=[];break;case y:c={0:D(R)},d=1,p=[0],h=[],O=I[T].state,T=0,I=[];break;case v:c={0:D(R)},d=1,p=[0],h=[],T=0,I=[];break;case w:{const{id:e}=a,t=h.indexOf(e);h=-1===t?[e,...h]:h.filter((t=>t!==e)),z=p.indexOf(e);break}case x:{const{start:e,end:t,active:n}=a,r=[];for(let o=e;o<t;o++)r.push(o);h=n?u()(h,r):f()(h,r),z=p.indexOf(e);break}case A:T=a.index,z=1/0;break;case S:{const e=p.indexOf(a.actionId);-1!==e&&(T=e),z=1/0;break}case b:p=u()(p,h),h=[],T=Math.min(T,p.length-1);break;case _:{const e=a.actionId,t=p.indexOf(e);if(t<1)break;const n=a.beforeActionId;let r=p.indexOf(n);if(r<1){const e=p.length;r=n>p[e-1]?e:1}const o=t-r;o>0?(p=[...p.slice(0,r),e,...p.slice(r,t),...p.slice(t+1)],z=r):o<0&&(p=[...p.slice(0,t),...p.slice(t+1,r),e,...p.slice(r)],z=t);break}case k:V=a.nextLiftedState,Array.isArray(V)?(c={0:D(R)},d=1,p=[0],h=[],T=a.nextLiftedState.length,I=[],O=a.preloadedState,z=0,a.nextLiftedState.forEach((e=>{c[d]=D(e,r.trace||r.shouldIncludeCallstack),p.push(d),d++}))):(({monitorState:s,actionsById:c,nextActionId:d,stagedActionIds:p,skippedActionIds:h,committedState:O,currentStateIndex:T,computedStates:I}=a.nextLiftedState),a.noRecompute&&(z=1/0));break;case C:L=a.status,z=1/0;break;case E:if(j=a.status,j)return F(!0);c={0:D(R)},d=1,p=[0],h=[],O=I[T].state,T=0,I=[];break;default:z=1/0}var V;return I=M(I,z,e,O,c,p,h,r.shouldCatchErrors),s=n(s,a),{monitorState:s,actionsById:c,nextActionId:d,stagedActionIds:p,skippedActionIds:h,committedState:O,currentStateIndex:T,computedStates:I,isLocked:L,isPaused:j}}}function j(e,t,n){let r;const o=n.trace||n.shouldIncludeCallstack,i=n.traceLimit||10;function a(){const t=function(e){const{computedStates:t,currentStateIndex:n}=e,{state:r}=t[n];return r}(e.getState());return void 0!==t&&(r=t),r}const s="function"===typeof Symbol&&Symbol.observable||"@@observable";return s in e||console.warn("Symbol.observable as defined by Redux and Redux DevTools do not match. This could cause your app to behave differently if the DevTools are not loaded. Consider polyfilling Symbol.observable before Redux is imported or avoid polyfilling Symbol.observable altogether."),{liftedStore:e,dispatch:function t(n){return e.dispatch(D(n,o,i,t)),n},subscribe:e.subscribe,getState:a,replaceReducer(n){e.replaceReducer(t(n))},[s]:()=>({subscribe(t){if("object"!==typeof t)throw new TypeError("Expected the observer to be an object.");function n(){t.next&&t.next(a())}n();return{unsubscribe:e.subscribe(n)}},[s](){return this}})}}function N(e){"NoStore"===e?console.error('Redux DevTools could not render. You must pass the Redux store to <DevTools> either as a "store" prop or by wrapping it in a <Provider store={store}>.'):console.error("Redux DevTools could not render. Did you forget to include DevTools.instrument() in your store enhancer chain before using createStore()?")}var F=n(4573),z=n(2543),B=n.n(z);const V={threezerotwofour:{scheme:"threezerotwofour",author:"jan t. sott (http://github.com/idleberg)",base00:"#090300",base01:"#3a3432",base02:"#4a4543",base03:"#5c5855",base04:"#807d7c",base05:"#a5a2a2",base06:"#d6d5d4",base07:"#f7f7f7",base08:"#db2d20",base09:"#e8bbd0",base0A:"#fded02",base0B:"#01a252",base0C:"#b5e4f4",base0D:"#01a0e4",base0E:"#a16a94",base0F:"#cdab53"},apathy:{scheme:"apathy",author:"jannik siebert (https://github.com/janniks)",base00:"#031A16",base01:"#0B342D",base02:"#184E45",base03:"#2B685E",base04:"#5F9C92",base05:"#81B5AC",base06:"#A7CEC8",base07:"#D2E7E4",base08:"#3E9688",base09:"#3E7996",base0A:"#3E4C96",base0B:"#883E96",base0C:"#963E4C",base0D:"#96883E",base0E:"#4C963E",base0F:"#3E965B"},ashes:{scheme:"ashes",author:"jannik siebert (https://github.com/janniks)",base00:"#1C2023",base01:"#393F45",base02:"#565E65",base03:"#747C84",base04:"#ADB3BA",base05:"#C7CCD1",base06:"#DFE2E5",base07:"#F3F4F5",base08:"#C7AE95",base09:"#C7C795",base0A:"#AEC795",base0B:"#95C7AE",base0C:"#95AEC7",base0D:"#AE95C7",base0E:"#C795AE",base0F:"#C79595"},atelierDune:{scheme:"atelier dune",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)",base00:"#20201d",base01:"#292824",base02:"#6e6b5e",base03:"#7d7a68",base04:"#999580",base05:"#a6a28c",base06:"#e8e4cf",base07:"#fefbec",base08:"#d73737",base09:"#b65611",base0A:"#cfb017",base0B:"#60ac39",base0C:"#1fad83",base0D:"#6684e1",base0E:"#b854d4",base0F:"#d43552"},atelierForest:{scheme:"atelier forest",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)",base00:"#1b1918",base01:"#2c2421",base02:"#68615e",base03:"#766e6b",base04:"#9c9491",base05:"#a8a19f",base06:"#e6e2e0",base07:"#f1efee",base08:"#f22c40",base09:"#df5320",base0A:"#d5911a",base0B:"#5ab738",base0C:"#00ad9c",base0D:"#407ee7",base0E:"#6666ea",base0F:"#c33ff3"},atelierHeath:{scheme:"atelier heath",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)",base00:"#1b181b",base01:"#292329",base02:"#695d69",base03:"#776977",base04:"#9e8f9e",base05:"#ab9bab",base06:"#d8cad8",base07:"#f7f3f7",base08:"#ca402b",base09:"#a65926",base0A:"#bb8a35",base0B:"#379a37",base0C:"#159393",base0D:"#516aec",base0E:"#7b59c0",base0F:"#cc33cc"},atelierLakeside:{scheme:"atelier lakeside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)",base00:"#161b1d",base01:"#1f292e",base02:"#516d7b",base03:"#5a7b8c",base04:"#7195a8",base05:"#7ea2b4",base06:"#c1e4f6",base07:"#ebf8ff",base08:"#d22d72",base09:"#935c25",base0A:"#8a8a0f",base0B:"#568c3b",base0C:"#2d8f6f",base0D:"#257fad",base0E:"#5d5db1",base0F:"#b72dd2"},atelierSeaside:{scheme:"atelier seaside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)",base00:"#131513",base01:"#242924",base02:"#5e6e5e",base03:"#687d68",base04:"#809980",base05:"#8ca68c",base06:"#cfe8cf",base07:"#f0fff0",base08:"#e6193c",base09:"#87711d",base0A:"#c3c322",base0B:"#29a329",base0C:"#1999b3",base0D:"#3d62f5",base0E:"#ad2bee",base0F:"#e619c3"},bespin:{scheme:"bespin",author:"jan t. sott",base00:"#28211c",base01:"#36312e",base02:"#5e5d5c",base03:"#666666",base04:"#797977",base05:"#8a8986",base06:"#9d9b97",base07:"#baae9e",base08:"#cf6a4c",base09:"#cf7d34",base0A:"#f9ee98",base0B:"#54be0d",base0C:"#afc4db",base0D:"#5ea6ea",base0E:"#9b859d",base0F:"#937121"},brewer:{scheme:"brewer",author:"timoth\xe9e poisot (http://github.com/tpoisot)",base00:"#0c0d0e",base01:"#2e2f30",base02:"#515253",base03:"#737475",base04:"#959697",base05:"#b7b8b9",base06:"#dadbdc",base07:"#fcfdfe",base08:"#e31a1c",base09:"#e6550d",base0A:"#dca060",base0B:"#31a354",base0C:"#80b1d3",base0D:"#3182bd",base0E:"#756bb1",base0F:"#b15928"},bright:{scheme:"bright",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#303030",base02:"#505050",base03:"#b0b0b0",base04:"#d0d0d0",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ffffff",base08:"#fb0120",base09:"#fc6d24",base0A:"#fda331",base0B:"#a1c659",base0C:"#76c7b7",base0D:"#6fb3d2",base0E:"#d381c3",base0F:"#be643c"},chalk:{scheme:"chalk",author:"chris kempson (http://chriskempson.com)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#eda987",base0A:"#ddb26f",base0B:"#acc267",base0C:"#12cfc0",base0D:"#6fc2ef",base0E:"#e1a3ee",base0F:"#deaf8f"},codeschool:{scheme:"codeschool",author:"brettof86",base00:"#232c31",base01:"#1c3657",base02:"#2a343a",base03:"#3f4944",base04:"#84898c",base05:"#9ea7a6",base06:"#a7cfa3",base07:"#b5d8f6",base08:"#2a5491",base09:"#43820d",base0A:"#a03b1e",base0B:"#237986",base0C:"#b02f30",base0D:"#484d79",base0E:"#c59820",base0F:"#c98344"},colors:{scheme:"colors",author:"mrmrs (http://clrs.cc)",base00:"#111111",base01:"#333333",base02:"#555555",base03:"#777777",base04:"#999999",base05:"#bbbbbb",base06:"#dddddd",base07:"#ffffff",base08:"#ff4136",base09:"#ff851b",base0A:"#ffdc00",base0B:"#2ecc40",base0C:"#7fdbff",base0D:"#0074d9",base0E:"#b10dc9",base0F:"#85144b"},default:{scheme:"default",author:"chris kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},eighties:{scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53"},embers:{scheme:"embers",author:"jannik siebert (https://github.com/janniks)",base00:"#16130F",base01:"#2C2620",base02:"#433B32",base03:"#5A5047",base04:"#8A8075",base05:"#A39A90",base06:"#BEB6AE",base07:"#DBD6D1",base08:"#826D57",base09:"#828257",base0A:"#6D8257",base0B:"#57826D",base0C:"#576D82",base0D:"#6D5782",base0E:"#82576D",base0F:"#825757"},flat:{scheme:"flat",author:"chris kempson (http://chriskempson.com)",base00:"#2C3E50",base01:"#34495E",base02:"#7F8C8D",base03:"#95A5A6",base04:"#BDC3C7",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ECF0F1",base08:"#E74C3C",base09:"#E67E22",base0A:"#F1C40F",base0B:"#2ECC71",base0C:"#1ABC9C",base0D:"#3498DB",base0E:"#9B59B6",base0F:"#be643c"},google:{scheme:"google",author:"seth wright (http://sethawright.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#CC342B",base09:"#F96A38",base0A:"#FBA922",base0B:"#198844",base0C:"#3971ED",base0D:"#3971ED",base0E:"#A36AC7",base0F:"#3971ED"},grayscale:{scheme:"grayscale",author:"alexandre gavioli (https://github.com/alexx2/)",base00:"#101010",base01:"#252525",base02:"#464646",base03:"#525252",base04:"#ababab",base05:"#b9b9b9",base06:"#e3e3e3",base07:"#f7f7f7",base08:"#7c7c7c",base09:"#999999",base0A:"#a0a0a0",base0B:"#8e8e8e",base0C:"#868686",base0D:"#686868",base0E:"#747474",base0F:"#5e5e5e"},greenscreen:{scheme:"green screen",author:"chris kempson (http://chriskempson.com)",base00:"#001100",base01:"#003300",base02:"#005500",base03:"#007700",base04:"#009900",base05:"#00bb00",base06:"#00dd00",base07:"#00ff00",base08:"#007700",base09:"#009900",base0A:"#007700",base0B:"#00bb00",base0C:"#005500",base0D:"#009900",base0E:"#00bb00",base0F:"#005500"},harmonic:{scheme:"harmonic16",author:"jannik siebert (https://github.com/janniks)",base00:"#0b1c2c",base01:"#223b54",base02:"#405c79",base03:"#627e99",base04:"#aabcce",base05:"#cbd6e2",base06:"#e5ebf1",base07:"#f7f9fb",base08:"#bf8b56",base09:"#bfbf56",base0A:"#8bbf56",base0B:"#56bf8b",base0C:"#568bbf",base0D:"#8b56bf",base0E:"#bf568b",base0F:"#bf5656"},hopscotch:{scheme:"hopscotch",author:"jan t. sott",base00:"#322931",base01:"#433b42",base02:"#5c545b",base03:"#797379",base04:"#989498",base05:"#b9b5b8",base06:"#d5d3d5",base07:"#ffffff",base08:"#dd464c",base09:"#fd8b19",base0A:"#fdcc59",base0B:"#8fc13e",base0C:"#149b93",base0D:"#1290bf",base0E:"#c85e7c",base0F:"#b33508"},isotope:{scheme:"isotope",author:"jan t. sott",base00:"#000000",base01:"#404040",base02:"#606060",base03:"#808080",base04:"#c0c0c0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#ff0000",base09:"#ff9900",base0A:"#ff0099",base0B:"#33ff00",base0C:"#00ffff",base0D:"#0066ff",base0E:"#cc00ff",base0F:"#3300ff"},marrakesh:{scheme:"marrakesh",author:"alexandre gavioli (http://github.com/alexx2/)",base00:"#201602",base01:"#302e00",base02:"#5f5b17",base03:"#6c6823",base04:"#86813b",base05:"#948e48",base06:"#ccc37a",base07:"#faf0a5",base08:"#c35359",base09:"#b36144",base0A:"#a88339",base0B:"#18974e",base0C:"#75a738",base0D:"#477ca1",base0E:"#8868b3",base0F:"#b3588e"},mocha:{scheme:"mocha",author:"chris kempson (http://chriskempson.com)",base00:"#3B3228",base01:"#534636",base02:"#645240",base03:"#7e705a",base04:"#b8afad",base05:"#d0c8c6",base06:"#e9e1dd",base07:"#f5eeeb",base08:"#cb6077",base09:"#d28b71",base0A:"#f4bc87",base0B:"#beb55b",base0C:"#7bbda4",base0D:"#8ab3b5",base0E:"#a89bb9",base0F:"#bb9584"},monokai:{scheme:"monokai",author:"wimer hazenberg (http://www.monokai.nl)",base00:"#272822",base01:"#383830",base02:"#49483e",base03:"#75715e",base04:"#a59f85",base05:"#f8f8f2",base06:"#f5f4f1",base07:"#f9f8f5",base08:"#f92672",base09:"#fd971f",base0A:"#f4bf75",base0B:"#a6e22e",base0C:"#a1efe4",base0D:"#66d9ef",base0E:"#ae81ff",base0F:"#cc6633"},nicinabox:{scheme:"nicinabox",author:"nicinabox (http://github.com/nicinabox)",base00:"#2A2F3A",base01:"#3C444F",base02:"#4F5A65",base03:"#BEBEBE",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#FFFFFF",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#FC6D24",base0A:"#ddb26f",base0B:"#A1C659",base0C:"#12cfc0",base0D:"#6FB3D2",base0E:"#D381C3",base0F:"#deaf8f"},ocean:{scheme:"ocean",author:"chris kempson (http://chriskempson.com)",base00:"#2b303b",base01:"#343d46",base02:"#4f5b66",base03:"#65737e",base04:"#a7adba",base05:"#c0c5ce",base06:"#dfe1e8",base07:"#eff1f5",base08:"#bf616a",base09:"#d08770",base0A:"#ebcb8b",base0B:"#a3be8c",base0C:"#96b5b4",base0D:"#8fa1b3",base0E:"#b48ead",base0F:"#ab7967"},paraiso:{scheme:"paraiso",author:"jan t. sott",base00:"#2f1e2e",base01:"#41323f",base02:"#4f424c",base03:"#776e71",base04:"#8d8687",base05:"#a39e9b",base06:"#b9b6b0",base07:"#e7e9db",base08:"#ef6155",base09:"#f99b15",base0A:"#fec418",base0B:"#48b685",base0C:"#5bc4bf",base0D:"#06b6ef",base0E:"#815ba4",base0F:"#e96ba8"},pop:{scheme:"pop",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#eb008a",base09:"#f29333",base0A:"#f8ca12",base0B:"#37b349",base0C:"#00aabb",base0D:"#0e5a94",base0E:"#b31e8d",base0F:"#7a2d00"},railscasts:{scheme:"railscasts",author:"ryan bates (http://railscasts.com)",base00:"#2b2b2b",base01:"#272935",base02:"#3a4055",base03:"#5a647e",base04:"#d4cfc9",base05:"#e6e1dc",base06:"#f4f1ed",base07:"#f9f7f3",base08:"#da4939",base09:"#cc7833",base0A:"#ffc66d",base0B:"#a5c261",base0C:"#519f50",base0D:"#6d9cbe",base0E:"#b6b3eb",base0F:"#bc9458"},shapeshifter:{scheme:"shapeshifter",author:"tyler benziger (http://tybenz.com)",base00:"#000000",base01:"#040404",base02:"#102015",base03:"#343434",base04:"#555555",base05:"#ababab",base06:"#e0e0e0",base07:"#f9f9f9",base08:"#e92f2f",base09:"#e09448",base0A:"#dddd13",base0B:"#0ed839",base0C:"#23edda",base0D:"#3b48e3",base0E:"#f996e2",base0F:"#69542d"},solarized:{scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},summerfruit:{scheme:"summerfruit",author:"christopher corley (http://cscorley.github.io/)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#B0B0B0",base05:"#D0D0D0",base06:"#E0E0E0",base07:"#FFFFFF",base08:"#FF0086",base09:"#FD8900",base0A:"#ABA800",base0B:"#00C918",base0C:"#1faaaa",base0D:"#3777E6",base0E:"#AD00A1",base0F:"#cc6633"},tomorrow:{scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},tube:{scheme:"london tube",author:"jan t. sott",base00:"#231f20",base01:"#1c3f95",base02:"#5a5758",base03:"#737171",base04:"#959ca1",base05:"#d9d8d8",base06:"#e7e7e8",base07:"#ffffff",base08:"#ee2e24",base09:"#f386a1",base0A:"#ffd204",base0B:"#00853e",base0C:"#85cebc",base0D:"#009ddc",base0E:"#98005d",base0F:"#b06110"},twilight:{scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f"}},U={scheme:"inspector",author:"Alexander Kuznetsov (alexkuz@gmail.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#FFFFFF",base08:"#E92F28",base09:"#dc9656",base0A:"#f7ca88",base0B:"#65AD00",base0C:"#86c1b9",base0D:"#347BD9",base0E:"#EC31C0",base0F:"#a16946"};var W=n(6884);const q=function(e){return e};const H="object"==typeof global&&global&&global.Object===Object&&global;var Y="object"==typeof self&&self&&self.Object===Object&&self;const G=H||Y||Function("return this")();const K=G.Symbol;var $=Object.prototype,Q=$.hasOwnProperty,X=$.toString,J=K?K.toStringTag:void 0;const Z=function(e){var t=Q.call(e,J),n=e[J];try{e[J]=void 0;var r=!0}catch(i){}var o=X.call(e);return r&&(t?e[J]=n:delete e[J]),o};var ee=Object.prototype.toString;const te=function(e){return ee.call(e)};var ne=K?K.toStringTag:void 0;const re=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ne&&ne in Object(e)?Z(e):te(e)};const oe=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const ie=function(e){if(!oe(e))return!1;var t=re(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const ae=G["__core-js_shared__"];var se=function(){var e=/[^.]+$/.exec(ae&&ae.keys&&ae.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();const le=function(e){return!!se&&se in e};var ce=Function.prototype.toString;const ue=function(e){if(null!=e){try{return ce.call(e)}catch(t){}try{return e+""}catch(t){}}return""};var de=/^\[object .+?Constructor\]$/,fe=Function.prototype,pe=Object.prototype,he=fe.toString,me=pe.hasOwnProperty,ge=RegExp("^"+he.call(me).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const ve=function(e){return!(!oe(e)||le(e))&&(ie(e)?ge:de).test(ue(e))};const ye=function(e,t){return null==e?void 0:e[t]};const be=function(e,t){var n=ye(e,t);return ve(n)?n:void 0};var we=be(G,"WeakMap");const xe=we&&new we;const Ae=xe?function(e,t){return xe.set(e,t),e}:q;var Se=Object.create;const _e=function(){function e(){}return function(t){if(!oe(t))return{};if(Se)return Se(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const ke=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=_e(e.prototype),r=e.apply(n,t);return oe(r)?r:n}};const Ce=function(e,t,n){var r=1&t,o=ke(e);return function t(){return(this&&this!==G&&this instanceof t?o:e).apply(r?n:this,arguments)}};const Ee=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)};var Oe=Math.max;const Te=function(e,t,n,r){for(var o=-1,i=e.length,a=n.length,s=-1,l=t.length,c=Oe(i-a,0),u=Array(l+c),d=!r;++s<l;)u[s]=t[s];for(;++o<a;)(d||o<i)&&(u[n[o]]=e[o]);for(;c--;)u[s++]=e[o++];return u};var Ie=Math.max;const Re=function(e,t,n,r){for(var o=-1,i=e.length,a=-1,s=n.length,l=-1,c=t.length,u=Ie(i-s,0),d=Array(u+c),f=!r;++o<u;)d[o]=e[o];for(var p=o;++l<c;)d[p+l]=t[l];for(;++a<s;)(f||o<i)&&(d[p+n[a]]=e[o++]);return d};const Pe=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r};const Me=function(){};function De(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}De.prototype=_e(Me.prototype),De.prototype.constructor=De;const Le=De;const je=xe?function(e){return xe.get(e)}:function(){};const Ne={};var Fe=Object.prototype.hasOwnProperty;const ze=function(e){for(var t=e.name+"",n=Ne[t],r=Fe.call(Ne,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t};function Be(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Be.prototype=_e(Me.prototype),Be.prototype.constructor=Be;const Ve=Be;const Ue=Array.isArray;const We=function(e){return null!=e&&"object"==typeof e};const qe=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};const He=function(e){if(e instanceof Le)return e.clone();var t=new Ve(e.__wrapped__,e.__chain__);return t.__actions__=qe(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t};var Ye=Object.prototype.hasOwnProperty;function Ge(e){if(We(e)&&!Ue(e)&&!(e instanceof Le)){if(e instanceof Ve)return e;if(Ye.call(e,"__wrapped__"))return He(e)}return new Ve(e)}Ge.prototype=Me.prototype,Ge.prototype.constructor=Ge;const Ke=Ge;const $e=function(e){var t=ze(e),n=Ke[t];if("function"!=typeof n||!(t in Le.prototype))return!1;if(e===n)return!0;var r=je(n);return!!r&&e===r[0]};var Qe=Date.now;const Xe=function(e){var t=0,n=0;return function(){var r=Qe(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}};const Je=Xe(Ae);var Ze=/\{\n\/\* \[wrapped with (.+)\] \*/,et=/,? & /;const tt=function(e){var t=e.match(Ze);return t?t[1].split(et):[]};var nt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;const rt=function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(nt,"{\n/* [wrapped with "+t+"] */\n")};const ot=function(e){return function(){return e}};const it=function(){try{var e=be(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const at=Xe(it?function(e,t){return it(e,"toString",{configurable:!0,enumerable:!1,value:ot(t),writable:!0})}:q);const st=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e};const lt=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1};const ct=function(e){return e!==e};const ut=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1};const dt=function(e,t,n){return t===t?ut(e,t,n):lt(e,ct,n)};const ft=function(e,t){return!!(null==e?0:e.length)&&dt(e,t,0)>-1};var pt=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];const ht=function(e,t){return st(pt,(function(n){var r="_."+n[0];t&n[1]&&!ft(e,r)&&e.push(r)})),e.sort()};const mt=function(e,t,n){var r=t+"";return at(e,rt(r,ht(tt(r),n)))};const gt=function(e,t,n,r,o,i,a,s,l,c){var u=8&t;t|=u?32:64,4&(t&=~(u?64:32))||(t&=-4);var d=[e,t,o,u?i:void 0,u?a:void 0,u?void 0:i,u?void 0:a,s,l,c],f=n.apply(void 0,d);return $e(e)&&Je(f,d),f.placeholder=r,mt(f,e,t)};const vt=function(e){return e.placeholder};var yt=/^(?:0|[1-9]\d*)$/;const bt=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&yt.test(e))&&e>-1&&e%1==0&&e<t};var wt=Math.min;const xt=function(e,t){for(var n=e.length,r=wt(t.length,n),o=qe(e);r--;){var i=t[r];e[r]=bt(i,n)?o[i]:void 0}return e};var At="__lodash_placeholder__";const St=function(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==At||(e[n]=At,i[o++]=n)}return i};const _t=function e(t,n,r,o,i,a,s,l,c,u){var d=128&n,f=1&n,p=2&n,h=24&n,m=512&n,g=p?void 0:ke(t);return function v(){for(var y=arguments.length,b=Array(y),w=y;w--;)b[w]=arguments[w];if(h)var x=vt(v),A=Pe(b,x);if(o&&(b=Te(b,o,i,h)),a&&(b=Re(b,a,s,h)),y-=A,h&&y<u){var S=St(b,x);return gt(t,n,e,v.placeholder,r,b,S,l,c,u-y)}var _=f?r:this,k=p?_[t]:t;return y=b.length,l?b=xt(b,l):m&&y>1&&b.reverse(),d&&c<y&&(b.length=c),this&&this!==G&&this instanceof v&&(k=g||ke(k)),k.apply(_,b)}};const kt=function(e,t,n){var r=ke(e);return function o(){for(var i=arguments.length,a=Array(i),s=i,l=vt(o);s--;)a[s]=arguments[s];var c=i<3&&a[0]!==l&&a[i-1]!==l?[]:St(a,l);return(i-=c.length)<n?gt(e,t,_t,o.placeholder,void 0,a,c,void 0,void 0,n-i):Ee(this&&this!==G&&this instanceof o?r:e,this,a)}};const Ct=function(e,t,n,r){var o=1&t,i=ke(e);return function t(){for(var a=-1,s=arguments.length,l=-1,c=r.length,u=Array(c+s),d=this&&this!==G&&this instanceof t?i:e;++l<c;)u[l]=r[l];for(;s--;)u[l++]=arguments[++a];return Ee(d,o?n:this,u)}};var Et="__lodash_placeholder__",Ot=128,Tt=Math.min;const It=function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==Ot&&8==n||r==Ot&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var s=t[3];if(s){var l=e[3];e[3]=l?Te(l,s,t[4]):s,e[4]=l?St(e[3],Et):t[4]}return(s=t[5])&&(l=e[5],e[5]=l?Re(l,s,t[6]):s,e[6]=l?St(e[5],Et):t[6]),(s=t[7])&&(e[7]=s),r&Ot&&(e[8]=null==e[8]?t[8]:Tt(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o,e};var Rt=/\s/;const Pt=function(e){for(var t=e.length;t--&&Rt.test(e.charAt(t)););return t};var Mt=/^\s+/;const Dt=function(e){return e?e.slice(0,Pt(e)+1).replace(Mt,""):e};const Lt=function(e){return"symbol"==typeof e||We(e)&&"[object Symbol]"==re(e)};var jt=/^[-+]0x[0-9a-f]+$/i,Nt=/^0b[01]+$/i,Ft=/^0o[0-7]+$/i,zt=parseInt;const Bt=function(e){if("number"==typeof e)return e;if(Lt(e))return NaN;if(oe(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=oe(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Dt(e);var n=Nt.test(e);return n||Ft.test(e)?zt(e.slice(2),n?2:8):jt.test(e)?NaN:+e};var Vt=1/0;const Ut=function(e){return e?(e=Bt(e))===Vt||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0};const Wt=function(e){var t=Ut(e),n=t%1;return t===t?n?t-n:t:0};var qt=Math.max;const Ht=function(e,t,n,r,o,i,a,s){var l=2&t;if(!l&&"function"!=typeof e)throw new TypeError("Expected a function");var c=r?r.length:0;if(c||(t&=-97,r=o=void 0),a=void 0===a?a:qt(Wt(a),0),s=void 0===s?s:Wt(s),c-=o?o.length:0,64&t){var u=r,d=o;r=o=void 0}var f=l?void 0:je(e),p=[e,t,n,r,o,u,d,i,a,s];if(f&&It(p,f),e=p[0],t=p[1],n=p[2],r=p[3],o=p[4],!(s=p[9]=void 0===p[9]?l?0:e.length:qt(p[9]-c,0))&&24&t&&(t&=-25),t&&1!=t)h=8==t||16==t?kt(e,t,s):32!=t&&33!=t||o.length?_t.apply(void 0,p):Ct(e,t,n,r);else var h=Ce(e,t,n);return mt((f?Ae:Je)(h,p),e,t)};function Yt(e,t,n){var r=Ht(e,8,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=Yt.placeholder,r}Yt.placeholder={};const Gt=Yt;const Kt=V.default,$t=Object.keys(Kt),Qt=e=>{const t=W(e),[n,r,o]=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255;return[.299*t+.587*n+.114*r,-.14713*t+-.28886*n+.436*r,.615*t+-.51499*n+-.10001*r]}(t.array());var i;const a=function(e){const t=e[0],n=e[1],r=e[2];let o,i,a;return o=1*t+0*n+1.13983*r,i=1*t+-.39465*n+-.5806*r,a=1*t+2.02311*n+0*r,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),[255*o,255*i,255*a]}([(i=n,i<.25?1:i<.5?.9-i:1.1-i),r,o]);return W.rgb(a).hex()},Xt=e=>t=>({className:[t.className,e.className].filter(Boolean).join(" "),style:(0,l.A)((0,l.A)({},t.style||{}),e.style||{})}),Jt=(e,t)=>{const n=Object.keys(t);for(const r in e)-1===n.indexOf(r)&&n.push(r);return n.reduce(((n,r)=>(n[r]=((e,t)=>{if(void 0===e)return t;if(void 0===t)return e;const n=typeof t;switch(typeof e){case"string":switch(n){case"string":return[t,e].filter(Boolean).join(" ");case"object":return Xt({className:e,style:t});case"function":return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return Xt({className:e})(t(n,...o))}}break;case"object":switch(n){case"string":return Xt({className:t,style:e});case"object":return(0,l.A)((0,l.A)({},t),e);case"function":return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return Xt({style:e})(t(n,...o))}}break;case"function":switch(n){case"string":return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return e(Xt(n)({className:t}),...o)};case"object":return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return e(Xt(n)({style:t}),...o)};case"function":return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return e(t(n,...o),...o)}}}})(e[r],t[r]),n)),{})},Zt=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(null===t)return e;Array.isArray(t)||(t=[t]);const i=t.map((t=>e[t])).filter(Boolean),a=i.reduce(((e,t)=>("string"===typeof t?e.className=[e.className,t].filter(Boolean).join(" "):"object"===typeof t?e.style=(0,l.A)((0,l.A)({},e.style),t):"function"===typeof t&&(e=(0,l.A)((0,l.A)({},e),t(e,...r))),e)),{className:"",style:{}});return a.className||delete a.className,0===Object.keys(a.style).length&&delete a.style,a},en=e=>Object.keys(e).reduce(((t,n)=>(t[n]=/^base/.test(n)?Qt(e[n]):"scheme"===n?e[n]+":inverted":e[n],t)),{}),tn=Gt((function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{defaultBase16:r=Kt,base16Themes:o=null}=t,i=rn(n,o);i&&(n=(0,l.A)((0,l.A)({},i),n));const a=$t.reduce(((e,t)=>(e[t]=n[t]||r[t],e)),{}),s=Object.keys(n).reduce(((e,t)=>-1===$t.indexOf(t)?(e[t]=n[t],e):e),{}),c=e(a),u=Jt(s,c);for(var d=arguments.length,f=new Array(d>3?d-3:0),p=3;p<d;p++)f[p-3]=arguments[p];return Gt(Zt,2)(u,...f)}),3),nn=e=>!!e.extend,rn=(e,t)=>{if(e&&nn(e)&&e.extend&&(e=e.extend),"string"===typeof e){const[n,r]=e.split(":");e=t?t[n]:V[n],"inverted"===r&&(e=en(e))}return e&&Object.prototype.hasOwnProperty.call(e,"base00")?e:void 0},on=(0,l.A)((0,l.A)({},V),r);function an(e,t){const n=t?en(e):e;return{TEXT_COLOR:(r=n).base06,TEXT_PLACEHOLDER_COLOR:B()(r.base06,60),BACKGROUND_COLOR:r.base00,SELECTED_BACKGROUND_COLOR:B()(r.base03,20),SKIPPED_BACKGROUND_COLOR:B()(r.base03,10),HEADER_BACKGROUND_COLOR:B()(r.base03,30),HEADER_BORDER_COLOR:B()(r.base03,20),BORDER_COLOR:B()(r.base03,50),LIST_BORDER_COLOR:B()(r.base03,50),ACTION_TIME_BACK_COLOR:B()(r.base03,20),ACTION_TIME_COLOR:r.base04,PIN_COLOR:r.base04,ITEM_HINT_COLOR:B()(r.base0F,90),TAB_BACK_SELECTED_COLOR:B()(r.base03,20),TAB_BACK_COLOR:B()(r.base00,70),TAB_BACK_HOVER_COLOR:B()(r.base03,40),TAB_BORDER_COLOR:B()(r.base03,50),DIFF_ADD_COLOR:B()(r.base0B,40),DIFF_REMOVE_COLOR:B()(r.base08,40),DIFF_ARROW_COLOR:r.base0E,LINK_COLOR:B()(r.base0E,90),LINK_HOVER_COLOR:r.base0E,ERROR_COLOR:r.base08};var r}function sn(){return sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sn.apply(null,arguments)}var ln=n(9850),cn=n(3989);const un="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;function dn(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function fn(e){return"nodeType"in e}function pn(e){var t,n;return e?dn(e)?e:fn(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function hn(e){const{Document:t}=pn(e);return e instanceof t}function mn(e){return!dn(e)&&e instanceof pn(e).HTMLElement}function gn(e){return e instanceof pn(e).SVGElement}function vn(e){return e?dn(e)?e.document:fn(e)?hn(e)?e:mn(e)||gn(e)?e.ownerDocument:document:document:document}const yn=un?a.useLayoutEffect:a.useEffect;function bn(e){const t=(0,a.useRef)(e);return yn((()=>{t.current=e})),(0,a.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}function wn(e,t){void 0===t&&(t=[e]);const n=(0,a.useRef)(e);return yn((()=>{n.current!==e&&(n.current=e)}),t),n}function xn(e,t){const n=(0,a.useRef)();return(0,a.useMemo)((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function An(e){const t=bn(e),n=(0,a.useRef)(null),r=(0,a.useCallback)((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,r]}function Sn(e){const t=(0,a.useRef)();return(0,a.useEffect)((()=>{t.current=e}),[e]),t.current}let _n={};function kn(e,t){return(0,a.useMemo)((()=>{if(t)return t;const n=null==_n[e]?0:_n[e]+1;return _n[e]=n,e+"-"+n}),[e,t])}function Cn(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[o,i]of r){const n=t[o];null!=n&&(t[o]=n+e*i)}return t}),(0,l.A)({},t))}}const En=Cn(1),On=Cn(-1);function Tn(e){if(!e)return!1;const{KeyboardEvent:t}=pn(e.target);return t&&e instanceof t}function In(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=pn(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const Rn=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Rn.Translate.toString(e),Rn.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Pn="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Mn(e){return e.matches(Pn)?e:e.querySelector(Pn)}const Dn={display:"none"};function Ln(e){let{id:t,value:n}=e;return a.createElement("div",{id:t,style:Dn},n)}function jn(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return a.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}const Nn=["transform"],Fn=["id","accessibility","autoScroll","children","sensors","collisionDetection","measuring","modifiers"],zn=(0,a.createContext)(null);const Bn={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},Vn={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Un(e){let{announcements:t=Vn,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=Bn}=e;const{announce:i,announcement:s}=function(){const[e,t]=(0,a.useState)("");return{announce:(0,a.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),l=kn("DndLiveRegion"),[c,u]=(0,a.useState)(!1);if((0,a.useEffect)((()=>{u(!0)}),[]),function(e){const t=(0,a.useContext)(zn);(0,a.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}((0,a.useMemo)((()=>({onDragStart(e){let{active:n}=e;i(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&i(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;i(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;i(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;i(t.onDragCancel({active:n,over:r}))}})),[i,t])),!c)return null;const d=a.createElement(a.Fragment,null,a.createElement(Ln,{id:r,value:o.draggable}),a.createElement(jn,{id:l,announcement:s}));return n?(0,cn.createPortal)(d,n):d}var Wn;function qn(){}function Hn(e,t){return(0,a.useMemo)((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(Wn||(Wn={}));const Yn=Object.freeze({x:0,y:0});function Gn(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Kn(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function $n(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Qn(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function Xn(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function Jn(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const Zn=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=Jn(t,t.left,t.top),i=[];for(const a of r){const{id:e}=a,t=n.get(e);if(t){const n=Gn(Jn(t),o);i.push({id:e,data:{droppableContainer:a,value:n}})}}return i.sort(Kn)};function er(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,s=i-n;if(r<o&&n<i){const n=t.width*t.height,r=e.width*e.height,o=a*s;return Number((o/(n+r-o)).toFixed(4))}return 0}const tr=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const i of r){const{id:e}=i,r=n.get(e);if(r){const n=er(r,t);n>0&&o.push({id:e,data:{droppableContainer:i,value:n}})}}return o.sort($n)};function nr(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Yn}function rr(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>(0,l.A)((0,l.A)({},t),{},{top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),(0,l.A)({},t))}}const or=rr(1);function ir(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const ar={ignoreTransform:!1};function sr(e,t){void 0===t&&(t=ar);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=pn(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=ir(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:s}=r,l=e.left-a-(1-o)*parseFloat(n),c=e.top-s-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}(n,t,r))}const{top:r,left:o,width:i,height:a,bottom:s,right:l}=n;return{top:r,left:o,width:i,height:a,bottom:s,right:l}}function lr(e){return sr(e,{ignoreTransform:!0})}function cr(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if(hn(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!mn(o)||gn(o))return n;if(n.includes(o))return n;const i=pn(e).getComputedStyle(o);return o!==e&&function(e,t){void 0===t&&(t=pn(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"===typeof r&&n.test(r)}))}(o,i)&&n.push(o),function(e,t){return void 0===t&&(t=pn(e).getComputedStyle(e)),"fixed"===t.position}(o,i)?n:r(o.parentNode)}(e):n}function ur(e){const[t]=cr(e,1);return null!=t?t:null}function dr(e){return un&&e?dn(e)?e:fn(e)?hn(e)||e===vn(e).scrollingElement?window:mn(e)?e:null:null:null}function fr(e){return dn(e)?e.scrollX:e.scrollLeft}function pr(e){return dn(e)?e.scrollY:e.scrollTop}function hr(e){return{x:fr(e),y:pr(e)}}var mr;function gr(e){return!(!un||!e)&&e===document.scrollingElement}function vr(e){const t={x:0,y:0},n=gr(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(mr||(mr={}));const yr={x:.2,y:.2};function br(e,t,n,r,o){let{top:i,left:a,right:s,bottom:l}=n;void 0===r&&(r=10),void 0===o&&(o=yr);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=vr(e),p={x:0,y:0},h={x:0,y:0},m=t.height*o.y,g=t.width*o.x;return!c&&i<=t.top+m?(p.y=mr.Backward,h.y=r*Math.abs((t.top+m-i)/m)):!u&&l>=t.bottom-m&&(p.y=mr.Forward,h.y=r*Math.abs((t.bottom-m-l)/m)),!f&&s>=t.right-g?(p.x=mr.Forward,h.x=r*Math.abs((t.right-g-s)/g)):!d&&a<=t.left+g&&(p.x=mr.Backward,h.x=r*Math.abs((t.left+g-a)/g)),{direction:p,speed:h}}function wr(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function xr(e){return e.reduce(((e,t)=>En(e,hr(t))),Yn)}function Ar(e,t){if(void 0===t&&(t=sr),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);ur(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Sr=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+fr(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+pr(t)),0)}]];class _r{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=cr(t),r=xr(n);this.rect=(0,l.A)({},e),this.width=e.width,this.height=e.height;for(const[o,i,a]of Sr)for(const e of i)Object.defineProperty(this,e,{get:()=>{const t=a(n),i=r[o]-t;return this.rect[e]+i},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class kr{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function Cr(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"===typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var Er,Or;function Tr(e){e.preventDefault()}function Ir(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(Er||(Er={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(Or||(Or={}));const Rr={start:[Or.Space,Or.Enter],cancel:[Or.Esc],end:[Or.Space,Or.Enter,Or.Tab]},Pr=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Or.Right:return(0,l.A)((0,l.A)({},n),{},{x:n.x+25});case Or.Left:return(0,l.A)((0,l.A)({},n),{},{x:n.x-25});case Or.Down:return(0,l.A)((0,l.A)({},n),{},{y:n.y+25});case Or.Up:return(0,l.A)((0,l.A)({},n),{},{y:n.y-25})}};class Mr{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new kr(vn(t)),this.windowListeners=new kr(pn(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Er.Resize,this.handleCancel),this.windowListeners.add(Er.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(Er.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&Ar(n),t(Yn)}handleKeyDown(e){if(Tn(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=Rr,coordinateGetter:i=Pr,scrollBehavior:a="smooth"}=r,{code:s}=e;if(o.end.includes(s))return void this.handleEnd(e);if(o.cancel.includes(s))return void this.handleCancel(e);const{collisionRect:l}=n.current,c=l?{x:l.left,y:l.top}:Yn;this.referenceCoordinates||(this.referenceCoordinates=c);const u=i(e,{active:t,context:n.current,currentCoordinates:c});if(u){const t=On(u,c),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:i,isRight:s,isLeft:l,isBottom:c,maxScroll:d,minScroll:f}=vr(n),p=wr(n),h={x:Math.min(o===Or.Right?p.right-p.width/2:p.right,Math.max(o===Or.Right?p.left:p.left+p.width/2,u.x)),y:Math.min(o===Or.Down?p.bottom-p.height/2:p.bottom,Math.max(o===Or.Down?p.top:p.top+p.height/2,u.y))},m=o===Or.Right&&!s||o===Or.Left&&!l,g=o===Or.Down&&!c||o===Or.Up&&!i;if(m&&h.x!==u.x){const e=n.scrollLeft+t.x,i=o===Or.Right&&e<=d.x||o===Or.Left&&e>=f.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:a});r.x=i?n.scrollLeft-e:o===Or.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(g&&h.y!==u.y){const e=n.scrollTop+t.y,i=o===Or.Down&&e<=d.y||o===Or.Up&&e>=f.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:a});r.y=i?n.scrollTop-e:o===Or.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,En(On(u,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function Dr(e){return Boolean(e&&"distance"in e)}function Lr(e){return Boolean(e&&"delay"in e)}Mr.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Rr,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=i.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==o||o({event:e.nativeEvent}),!0)}return!1}}];class jr{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=pn(e);return e instanceof t?e:vn(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:i}=o;this.props=e,this.events=t,this.document=vn(i),this.documentListeners=new kr(this.document),this.listeners=new kr(n),this.windowListeners=new kr(pn(i)),this.initialCoordinates=null!=(r=In(o))?r:Yn,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(Er.Resize,this.handleCancel),this.windowListeners.add(Er.DragStart,Tr),this.windowListeners.add(Er.VisibilityChange,this.handleCancel),this.windowListeners.add(Er.ContextMenu,Tr),this.documentListeners.add(Er.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Lr(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(Dr(t))return void this.handlePending(t)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(Er.Click,Ir,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Er.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:i,options:{activationConstraint:a}}=o;if(!r)return;const s=null!=(t=In(e))?t:Yn,l=On(r,s);if(!n&&a){if(Dr(a)){if(null!=a.tolerance&&Cr(l,a.tolerance))return this.handleCancel();if(Cr(l,a.distance))return this.handleStart()}return Lr(a)&&Cr(l,a.tolerance)?this.handleCancel():void this.handlePending(a,l)}e.cancelable&&e.preventDefault(),i(s)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===Or.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const Nr={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Fr extends jr{constructor(e){const{event:t}=e,n=vn(t.target);super(e,Nr,n)}}Fr.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button)&&(null==r||r({event:n}),!0)}}];const zr={move:{name:"mousemove"},end:{name:"mouseup"}};var Br;!function(e){e[e.RightClick=2]="RightClick"}(Br||(Br={}));(class extends jr{constructor(e){super(e,zr,vn(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==Br.RightClick&&(null==r||r({event:n}),!0)}}];const Vr={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var Ur,Wr;function qr(e){let{acceleration:t,activator:n=Ur.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:s=5,order:l=Wr.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:d,delta:f,threshold:p}=e;const h=function(e){let{delta:t,disabled:n}=e;const r=Sn(t);return xn((e=>{if(n||!r||!e)return Hr;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[mr.Backward]:e.x[mr.Backward]||-1===o.x,[mr.Forward]:e.x[mr.Forward]||1===o.x},y:{[mr.Backward]:e.y[mr.Backward]||-1===o.y,[mr.Forward]:e.y[mr.Forward]||1===o.y}}}),[n,t,r])}({delta:f,disabled:!i}),[m,g]=function(){const e=(0,a.useRef)(null);return[(0,a.useCallback)(((t,n)=>{e.current=setInterval(t,n)}),[]),(0,a.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}(),v=(0,a.useRef)({x:0,y:0}),y=(0,a.useRef)({x:0,y:0}),b=(0,a.useMemo)((()=>{switch(n){case Ur.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case Ur.DraggableRect:return o}}),[n,o,c]),w=(0,a.useRef)(null),x=(0,a.useCallback)((()=>{const e=w.current;if(!e)return;const t=v.current.x*y.current.x,n=v.current.y*y.current.y;e.scrollBy(t,n)}),[]),A=(0,a.useMemo)((()=>l===Wr.TreeOrder?[...u].reverse():u),[l,u]);(0,a.useEffect)((()=>{if(i&&u.length&&b){for(const e of A){if(!1===(null==r?void 0:r(e)))continue;const n=u.indexOf(e),o=d[n];if(!o)continue;const{direction:i,speed:a}=br(e,o,b,t,p);for(const e of["x","y"])h[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0)return g(),w.current=e,m(x,s),v.current=a,void(y.current=i)}v.current={x:0,y:0},y.current={x:0,y:0},g()}else g()}),[t,x,r,g,i,s,JSON.stringify(b),JSON.stringify(h),m,u,A,d,JSON.stringify(p)])}(class extends jr{constructor(e){super(e,Vr)}static setup(){return window.addEventListener(Vr.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Vr.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return!(o.length>1)&&(null==r||r({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(Ur||(Ur={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(Wr||(Wr={}));const Hr={x:{[mr.Backward]:!1,[mr.Forward]:!1},y:{[mr.Backward]:!1,[mr.Forward]:!1}};var Yr,Gr;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(Yr||(Yr={})),function(e){e.Optimized="optimized"}(Gr||(Gr={}));const Kr=new Map;function $r(e,t){return xn((n=>e?n||("function"===typeof t?t(e):e):null),[t,e])}function Qr(e){let{callback:t,disabled:n}=e;const r=bn(t),o=(0,a.useMemo)((()=>{if(n||"undefined"===typeof window||"undefined"===typeof window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(r)}),[n]);return(0,a.useEffect)((()=>()=>null==o?void 0:o.disconnect()),[o]),o}function Xr(e){return new _r(sr(e),e)}function Jr(e,t,n){void 0===t&&(t=Xr);const[r,o]=(0,a.useState)(null);function i(){o((r=>{if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=r?r:n)?o:null;const i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i}))}const s=function(e){let{callback:t,disabled:n}=e;const r=bn(t),o=(0,a.useMemo)((()=>{if(n||"undefined"===typeof window||"undefined"===typeof window.MutationObserver)return;const{MutationObserver:e}=window;return new e(r)}),[r,n]);return(0,a.useEffect)((()=>()=>null==o?void 0:o.disconnect()),[o]),o}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){i();break}}}}),l=Qr({callback:i});return yn((()=>{i(),e?(null==l||l.observe(e),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==l||l.disconnect(),null==s||s.disconnect())}),[e]),r}const Zr=[];function eo(e,t){void 0===t&&(t=[]);const n=(0,a.useRef)(null);return(0,a.useEffect)((()=>{n.current=null}),t),(0,a.useEffect)((()=>{const t=e!==Yn;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?On(e,n.current):Yn}function to(e){return(0,a.useMemo)((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const no=[];function ro(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return mn(t)?t:e}const oo=[{sensor:Fr,options:{}},{sensor:Mr,options:{}}],io={current:{}},ao={draggable:{measure:lr},droppable:{measure:lr,strategy:Yr.WhileDragging,frequency:Gr.Optimized},dragOverlay:{measure:sr}};class so extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const lo={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new so,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:qn},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:ao,measureDroppableContainers:qn,windowRect:null,measuringScheduled:!1},co={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:qn,draggableNodes:new Map,over:null,measureDroppableContainers:qn},uo=(0,a.createContext)(co),fo=(0,a.createContext)(lo);function po(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new so}}}function ho(e,t){switch(t.type){case Wn.DragStart:return(0,l.A)((0,l.A)({},e),{},{draggable:(0,l.A)((0,l.A)({},e.draggable),{},{initialCoordinates:t.initialCoordinates,active:t.active})});case Wn.DragMove:return null==e.draggable.active?e:(0,l.A)((0,l.A)({},e),{},{draggable:(0,l.A)((0,l.A)({},e.draggable),{},{translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}})});case Wn.DragEnd:case Wn.DragCancel:return(0,l.A)((0,l.A)({},e),{},{draggable:(0,l.A)((0,l.A)({},e.draggable),{},{active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}})});case Wn.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new so(e.droppable.containers);return o.set(r,n),(0,l.A)((0,l.A)({},e),{},{droppable:(0,l.A)((0,l.A)({},e.droppable),{},{containers:o})})}case Wn.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new so(e.droppable.containers);return a.set(n,(0,l.A)((0,l.A)({},i),{},{disabled:o})),(0,l.A)((0,l.A)({},e),{},{droppable:(0,l.A)((0,l.A)({},e.droppable),{},{containers:a})})}case Wn.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new so(e.droppable.containers);return i.delete(n),(0,l.A)((0,l.A)({},e),{},{droppable:(0,l.A)((0,l.A)({},e.droppable),{},{containers:i})})}default:return e}}function mo(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=(0,a.useContext)(uo),i=Sn(r),s=Sn(null==n?void 0:n.id);return(0,a.useEffect)((()=>{if(!t&&!r&&i&&null!=s){if(!Tn(i))return;if(document.activeElement===i.target)return;const e=o.get(s);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=Mn(e);if(t){t.focus();break}}}))}}),[r,t,o,s,i]),null}function go(e,t){let{transform:n}=t,r=(0,ln.A)(t,Nn);return null!=e&&e.length?e.reduce(((e,t)=>t((0,l.A)({transform:e},r))),n):n}const vo=(0,a.createContext)((0,l.A)((0,l.A)({},Yn),{},{scaleX:1,scaleY:1}));var yo;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(yo||(yo={}));const bo=(0,a.memo)((function(e){var t,n,r,o;let{id:i,accessibility:s,autoScroll:c=!0,children:u,sensors:d=oo,collisionDetection:f=tr,measuring:p,modifiers:h}=e,m=(0,ln.A)(e,Fn);const g=(0,a.useReducer)(ho,void 0,po),[v,y]=g,[b,w]=function(){const[e]=(0,a.useState)((()=>new Set)),t=(0,a.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]),n=(0,a.useCallback)((t=>{let{type:n,event:r}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[e]);return[n,t]}(),[x,A]=(0,a.useState)(yo.Uninitialized),S=x===yo.Initialized,{draggable:{active:_,nodes:k,translate:C},droppable:{containers:E}}=v,O=null!=_?k.get(_):null,T=(0,a.useRef)({initial:null,translated:null}),I=(0,a.useMemo)((()=>{var e;return null!=_?{id:_,data:null!=(e=null==O?void 0:O.data)?e:io,rect:T}:null}),[_,O]),R=(0,a.useRef)(null),[P,M]=(0,a.useState)(null),[D,L]=(0,a.useState)(null),j=wn(m,Object.values(m)),N=kn("DndDescribedBy",i),F=(0,a.useMemo)((()=>E.getEnabled()),[E]),z=function(e){return(0,a.useMemo)((()=>({draggable:(0,l.A)((0,l.A)({},ao.draggable),null==e?void 0:e.draggable),droppable:(0,l.A)((0,l.A)({},ao.droppable),null==e?void 0:e.droppable),dragOverlay:(0,l.A)((0,l.A)({},ao.dragOverlay),null==e?void 0:e.dragOverlay)})),[null==e?void 0:e.draggable,null==e?void 0:e.droppable,null==e?void 0:e.dragOverlay])}(p),{droppableRects:B,measureDroppableContainers:V,measuringScheduled:U}=function(e,t){let{dragging:n,dependencies:r,config:o}=t;const[i,s]=(0,a.useState)(null),{frequency:l,measure:c,strategy:u}=o,d=(0,a.useRef)(e),f=function(){switch(u){case Yr.Always:return!1;case Yr.BeforeDragging:return n;default:return!n}}(),p=wn(f),h=(0,a.useCallback)((function(e){void 0===e&&(e=[]),p.current||s((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[p]),m=(0,a.useRef)(null),g=xn((t=>{if(f&&!n)return Kr;if(!t||t===Kr||d.current!==e||null!=i){const t=new Map;for(let n of e){if(!n)continue;if(i&&i.length>0&&!i.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new _r(c(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t}),[e,i,n,f,c]);return(0,a.useEffect)((()=>{d.current=e}),[e]),(0,a.useEffect)((()=>{f||h()}),[n,f]),(0,a.useEffect)((()=>{i&&i.length>0&&s(null)}),[JSON.stringify(i)]),(0,a.useEffect)((()=>{f||"number"!==typeof l||null!==m.current||(m.current=setTimeout((()=>{h(),m.current=null}),l))}),[l,f,h,...r]),{droppableRects:g,measureDroppableContainers:h,measuringScheduled:null!=i}}(F,{dragging:S,dependencies:[C.x,C.y],config:z.droppable}),W=function(e,t){const n=null!=t?e.get(t):void 0,r=n?n.node.current:null;return xn((e=>{var n;return null==t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(k,_),q=(0,a.useMemo)((()=>D?In(D):null),[D]),H=function(){const e=!1===(null==P?void 0:P.autoScrollEnabled),t="object"===typeof c?!1===c.enabled:!1===c,n=S&&!e&&!t;if("object"===typeof c)return(0,l.A)((0,l.A)({},c),{},{enabled:n});return{enabled:n}}(),Y=function(e,t){return $r(e,t)}(W,z.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const i=(0,a.useRef)(!1),{x:s,y:l}="boolean"===typeof o?{x:o,y:o}:o;yn((()=>{if(!s&&!l||!t)return void(i.current=!1);if(i.current||!r)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const o=nr(n(e),r);if(s||(o.x=0),l||(o.y=0),i.current=!0,Math.abs(o.x)>0||Math.abs(o.y)>0){const t=ur(e);t&&t.scrollBy({top:o.y,left:o.x})}}),[t,s,l,r,n])}({activeNode:null!=_?k.get(_):null,config:H.layoutShiftCompensation,initialRect:Y,measure:z.draggable.measure});const G=Jr(W,z.draggable.measure,Y),K=Jr(W?W.parentElement:null),$=(0,a.useRef)({activatorEvent:null,active:null,activeNode:W,collisionRect:null,collisions:null,droppableRects:B,draggableNodes:k,draggingNode:null,draggingNodeRect:null,droppableContainers:E,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Q=E.getNodeFor(null==(t=$.current.over)?void 0:t.id),X=function(e){let{measure:t}=e;const[n,r]=(0,a.useState)(null),o=Qr({callback:(0,a.useCallback)((e=>{for(const{target:n}of e)if(mn(n)){r((e=>{const r=t(n);return e?(0,l.A)((0,l.A)({},e),{},{width:r.width,height:r.height}):r}));break}}),[t])}),i=(0,a.useCallback)((e=>{const n=ro(e);null==o||o.disconnect(),n&&(null==o||o.observe(n)),r(n?t(n):null)}),[t,o]),[s,c]=An(i);return(0,a.useMemo)((()=>({nodeRef:s,rect:n,setRef:c})),[n,s,c])}({measure:z.dragOverlay.measure}),J=null!=(n=X.nodeRef.current)?n:W,Z=S?null!=(r=X.rect)?r:G:null,ee=Boolean(X.nodeRef.current&&X.rect),te=nr(ne=ee?null:G,$r(ne));var ne;const re=to(J?pn(J):null),oe=function(e){const t=(0,a.useRef)(e),n=xn((n=>e?n&&n!==Zr&&e&&t.current&&e.parentNode===t.current.parentNode?n:cr(e):Zr),[e]);return(0,a.useEffect)((()=>{t.current=e}),[e]),n}(S?null!=Q?Q:W:null),ie=function(e,t){void 0===t&&(t=sr);const[n]=e,r=to(n?pn(n):null),[o,i]=(0,a.useState)(no);function s(){i((()=>e.length?e.map((e=>gr(e)?r:new _r(t(e),e))):no))}const l=Qr({callback:s});return yn((()=>{null==l||l.disconnect(),s(),e.forEach((e=>null==l?void 0:l.observe(e)))}),[e]),o}(oe),ae=go(h,{transform:{x:C.x-te.x,y:C.y-te.y,scaleX:1,scaleY:1},activatorEvent:D,active:I,activeNodeRect:G,containerNodeRect:K,draggingNodeRect:Z,over:$.current.over,overlayNodeRect:X.rect,scrollableAncestors:oe,scrollableAncestorRects:ie,windowRect:re}),se=q?En(q,C):null,le=function(e){const[t,n]=(0,a.useState)(null),r=(0,a.useRef)(e),o=(0,a.useCallback)((e=>{const t=dr(e.target);t&&n((e=>e?(e.set(t,hr(t)),new Map(e)):null))}),[]);return(0,a.useEffect)((()=>{const t=r.current;if(e!==t){i(t);const a=e.map((e=>{const t=dr(e);return t?(t.addEventListener("scroll",o,{passive:!0}),[t,hr(t)]):null})).filter((e=>null!=e));n(a.length?new Map(a):null),r.current=e}return()=>{i(e),i(t)};function i(e){e.forEach((e=>{const t=dr(e);null==t||t.removeEventListener("scroll",o)}))}}),[o,e]),(0,a.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>En(e,t)),Yn):xr(e):Yn),[e,t])}(oe),ce=eo(le),ue=eo(le,[G]),de=En(ae,ce),fe=Z?or(Z,ae):null,pe=I&&fe?f({active:I,collisionRect:fe,droppableRects:B,droppableContainers:F,pointerCoordinates:se}):null,he=Xn(pe,"id"),[me,ge]=(0,a.useState)(null),ve=function(e,t,n){return(0,l.A)((0,l.A)({},e),{},{scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1})}(ee?ae:En(ae,ue),null!=(o=null==me?void 0:me.rect)?o:null,G),ye=(0,a.useRef)(null),be=(0,a.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==R.current)return;const o=k.get(R.current);if(!o)return;const i=e.nativeEvent,a=new n({active:R.current,activeNode:o,event:i,options:r,context:$,onAbort(e){if(!k.get(e))return;const{onDragAbort:t}=j.current,n={id:e};null==t||t(n),b({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!k.get(e))return;const{onDragPending:o}=j.current,i={id:e,constraint:t,initialCoordinates:n,offset:r};null==o||o(i),b({type:"onDragPending",event:i})},onStart(e){const t=R.current;if(null==t)return;const n=k.get(t);if(!n)return;const{onDragStart:r}=j.current,o={activatorEvent:i,active:{id:t,data:n.data,rect:T}};(0,cn.unstable_batchedUpdates)((()=>{null==r||r(o),A(yo.Initializing),y({type:Wn.DragStart,initialCoordinates:e,active:t}),b({type:"onDragStart",event:o}),M(ye.current),L(i)}))},onMove(e){y({type:Wn.DragMove,coordinates:e})},onEnd:s(Wn.DragEnd),onCancel:s(Wn.DragCancel)});function s(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:o}=$.current;let a=null;if(t&&o){const{cancelDrop:s}=j.current;if(a={activatorEvent:i,active:t,collisions:n,delta:o,over:r},e===Wn.DragEnd&&"function"===typeof s){await Promise.resolve(s(a))&&(e=Wn.DragCancel)}}R.current=null,(0,cn.unstable_batchedUpdates)((()=>{y({type:e}),A(yo.Uninitialized),ge(null),M(null),L(null),ye.current=null;const t=e===Wn.DragEnd?"onDragEnd":"onDragCancel";if(a){const e=j.current[t];null==e||e(a),b({type:t,event:a})}}))}}ye.current=a}),[k]),we=(0,a.useCallback)(((e,t)=>(n,r)=>{const o=n.nativeEvent,i=k.get(r);if(null!==R.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(n,t.options,a)&&(o.dndKit={capturedBy:t.sensor},R.current=r,be(n,t))}),[k,be]),xe=function(e,t){return(0,a.useMemo)((()=>e.reduce(((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(d,we);!function(e){(0,a.useEffect)((()=>{if(!un)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(d),yn((()=>{G&&x===yo.Initializing&&A(yo.Initialized)}),[G,x]),(0,a.useEffect)((()=>{const{onDragMove:e}=j.current,{active:t,activatorEvent:n,collisions:r,over:o}=$.current;if(!t||!n)return;const i={active:t,activatorEvent:n,collisions:r,delta:{x:de.x,y:de.y},over:o};(0,cn.unstable_batchedUpdates)((()=>{null==e||e(i),b({type:"onDragMove",event:i})}))}),[de.x,de.y]),(0,a.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:o}=$.current;if(!e||null==R.current||!t||!o)return;const{onDragOver:i}=j.current,a=r.get(he),s=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,l={active:e,activatorEvent:t,collisions:n,delta:{x:o.x,y:o.y},over:s};(0,cn.unstable_batchedUpdates)((()=>{ge(s),null==i||i(l),b({type:"onDragOver",event:l})}))}),[he]),yn((()=>{$.current={activatorEvent:D,active:I,activeNode:W,collisionRect:fe,collisions:pe,droppableRects:B,draggableNodes:k,draggingNode:J,draggingNodeRect:Z,droppableContainers:E,over:me,scrollableAncestors:oe,scrollAdjustedTranslate:de},T.current={initial:Z,translated:fe}}),[I,W,pe,fe,k,J,Z,B,E,me,oe,de]),qr((0,l.A)((0,l.A)({},H),{},{delta:C,draggingRect:fe,pointerCoordinates:se,scrollableAncestors:oe,scrollableAncestorRects:ie}));const Ae=(0,a.useMemo)((()=>({active:I,activeNode:W,activeNodeRect:G,activatorEvent:D,collisions:pe,containerNodeRect:K,dragOverlay:X,draggableNodes:k,droppableContainers:E,droppableRects:B,over:me,measureDroppableContainers:V,scrollableAncestors:oe,scrollableAncestorRects:ie,measuringConfiguration:z,measuringScheduled:U,windowRect:re})),[I,W,G,D,pe,K,X,k,E,B,me,V,oe,ie,z,U,re]),Se=(0,a.useMemo)((()=>({activatorEvent:D,activators:xe,active:I,activeNodeRect:G,ariaDescribedById:{draggable:N},dispatch:y,draggableNodes:k,over:me,measureDroppableContainers:V})),[D,xe,I,G,y,N,k,me,V]);return a.createElement(zn.Provider,{value:w},a.createElement(uo.Provider,{value:Se},a.createElement(fo.Provider,{value:Ae},a.createElement(vo.Provider,{value:ve},u)),a.createElement(mo,{disabled:!1===(null==s?void 0:s.restoreFocus)})),a.createElement(Un,(0,l.A)((0,l.A)({},s),{},{hiddenTextDescribedById:N})))})),wo=(0,a.createContext)(null),xo="button";function Ao(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const i=kn("Draggable"),{activators:s,activatorEvent:l,active:c,activeNodeRect:u,ariaDescribedById:d,draggableNodes:f,over:p}=(0,a.useContext)(uo),{role:h=xo,roleDescription:m="draggable",tabIndex:g=0}=null!=o?o:{},v=(null==c?void 0:c.id)===t,y=(0,a.useContext)(v?vo:wo),[b,w]=An(),[x,A]=An(),S=function(e,t){return(0,a.useMemo)((()=>e.reduce(((e,n)=>{let{eventName:r,handler:o}=n;return e[r]=e=>{o(e,t)},e}),{})),[e,t])}(s,t),_=wn(n);yn((()=>(f.set(t,{id:t,key:i,node:b,activatorNode:x,data:_}),()=>{const e=f.get(t);e&&e.key===i&&f.delete(t)})),[f,t]);return{active:c,activatorEvent:l,activeNodeRect:u,attributes:(0,a.useMemo)((()=>({role:h,tabIndex:g,"aria-disabled":r,"aria-pressed":!(!v||h!==xo)||void 0,"aria-roledescription":m,"aria-describedby":d.draggable})),[r,h,g,v,m,d.draggable]),isDragging:v,listeners:r?void 0:S,node:b,over:p,setNodeRef:w,setActivatorNodeRef:A,transform:y}}function So(){return(0,a.useContext)(fo)}const _o={timeout:25};function ko(e,t,n){const r=(0,l.A)({},e);return t.top+e.y<=n.top?r.y=n.top-t.top:t.bottom+e.y>=n.top+n.height&&(r.y=n.top+n.height-t.bottom),t.left+e.x<=n.left?r.x=n.left-t.left:t.right+e.x>=n.left+n.width&&(r.x=n.left+n.width-t.right),r}const Co=e=>{let{draggingNodeRect:t,transform:n,scrollableAncestorRects:r}=e;const o=r[0];return t&&o?ko(n,t,o):n};function Eo(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function Oo(e,t){return e.reduce(((e,n,r)=>{const o=t.get(n);return o&&(e[r]=o),e}),Array(e.length))}function To(e){return null!==e&&e>=0}const Io=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=Eo(t,r,n),a=t[o],s=i[o];return s&&a?{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}:null},Ro={scaleX:1,scaleY:1},Po=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:i,overIndex:a}=e;const s=null!=(t=i[n])?t:r;if(!s)return null;if(o===n){const e=i[a];return e?(0,l.A)({x:0,y:n<a?e.top+e.height-(s.top+s.height):e.top-s.top},Ro):null}const c=function(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];if(!r)return 0;if(n<t)return o?r.top-(o.top+o.height):i?i.top-(r.top+r.height):0;return i?i.top-(r.top+r.height):o?r.top-(o.top+o.height):0}(i,o,n);return o>n&&o<=a?(0,l.A)({x:0,y:-s.height-c},Ro):o<n&&o>=a?(0,l.A)({x:0,y:s.height+c},Ro):(0,l.A)({x:0,y:0},Ro)};const Mo="Sortable",Do=a.createContext({activeIndex:-1,containerId:Mo,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Io,disabled:{draggable:!1,droppable:!1}});function Lo(e){let{children:t,id:n,items:r,strategy:o=Io,disabled:i=!1}=e;const{active:s,dragOverlay:l,droppableRects:c,over:u,measureDroppableContainers:d}=So(),f=kn(Mo,n),p=Boolean(null!==l.rect),h=(0,a.useMemo)((()=>r.map((e=>"object"===typeof e&&"id"in e?e.id:e))),[r]),m=null!=s,g=s?h.indexOf(s.id):-1,v=u?h.indexOf(u.id):-1,y=(0,a.useRef)(h),b=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(h,y.current),w=-1!==v&&-1===g||b,x=function(e){return"boolean"===typeof e?{draggable:e,droppable:e}:e}(i);yn((()=>{b&&m&&d(h)}),[b,h,m,d]),(0,a.useEffect)((()=>{y.current=h}),[h]);const A=(0,a.useMemo)((()=>({activeIndex:g,containerId:f,disabled:x,disableTransforms:w,items:h,overIndex:v,useDragOverlay:p,sortedRects:Oo(h,c),strategy:o})),[g,f,x.draggable,x.droppable,w,h,v,c,p,o]);return a.createElement(Do.Provider,{value:A},t)}const jo=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return Eo(n,r,o).indexOf(t)},No=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:s,previousContainerId:l,transition:c}=e;return!(!c||!r)&&((s===i||o!==a)&&(!!n||a!==o&&t===l))},Fo={duration:200,easing:"ease"},zo="transform",Bo=Rn.Transition.toString({property:zo,duration:0,easing:"linear"}),Vo={roleDescription:"sortable"};function Uo(e){let{animateLayoutChanges:t=No,attributes:n,disabled:r,data:o,getNewIndex:i=jo,id:s,strategy:c,resizeObserverConfig:u,transition:d=Fo}=e;const{items:f,containerId:p,activeIndex:h,disabled:m,disableTransforms:g,sortedRects:v,overIndex:y,useDragOverlay:b,strategy:w}=(0,a.useContext)(Do),x=function(e,t){var n,r;if("boolean"===typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(r,m),A=f.indexOf(s),S=(0,a.useMemo)((()=>(0,l.A)({sortable:{containerId:p,index:A,items:f}},o)),[p,o,A,f]),_=(0,a.useMemo)((()=>f.slice(f.indexOf(s))),[f,s]),{rect:k,node:C,isOver:E,setNodeRef:O}=function(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e;const i=kn("Droppable"),{active:s,dispatch:c,over:u,measureDroppableContainers:d}=(0,a.useContext)(uo),f=(0,a.useRef)({disabled:n}),p=(0,a.useRef)(!1),h=(0,a.useRef)(null),m=(0,a.useRef)(null),{disabled:g,updateMeasurementsFor:v,timeout:y}=(0,l.A)((0,l.A)({},_o),o),b=wn(null!=v?v:r),w=Qr({callback:(0,a.useCallback)((()=>{p.current?(null!=m.current&&clearTimeout(m.current),m.current=setTimeout((()=>{d(Array.isArray(b.current)?b.current:[b.current]),m.current=null}),y)):p.current=!0}),[y]),disabled:g||!s}),x=(0,a.useCallback)(((e,t)=>{w&&(t&&(w.unobserve(t),p.current=!1),e&&w.observe(e))}),[w]),[A,S]=An(x),_=wn(t);return(0,a.useEffect)((()=>{w&&A.current&&(w.disconnect(),p.current=!1,w.observe(A.current))}),[A,w]),(0,a.useEffect)((()=>(c({type:Wn.RegisterDroppable,element:{id:r,key:i,disabled:n,node:A,rect:h,data:_}}),()=>c({type:Wn.UnregisterDroppable,key:i,id:r}))),[r]),(0,a.useEffect)((()=>{n!==f.current.disabled&&(c({type:Wn.SetDroppableDisabled,id:r,key:i,disabled:n}),f.current.disabled=n)}),[r,i,n,c]),{active:s,rect:h,isOver:(null==u?void 0:u.id)===r,node:A,over:u,setNodeRef:S}}({id:s,data:S,disabled:x.droppable,resizeObserverConfig:(0,l.A)({updateMeasurementsFor:_},u)}),{active:T,activatorEvent:I,activeNodeRect:R,attributes:P,setNodeRef:M,listeners:D,isDragging:L,over:j,setActivatorNodeRef:N,transform:F}=Ao({id:s,data:S,attributes:(0,l.A)((0,l.A)({},Vo),n),disabled:x.draggable}),z=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,a.useMemo)((()=>e=>{t.forEach((t=>t(e)))}),t)}(O,M),B=Boolean(T),V=B&&!g&&To(h)&&To(y),U=!b&&L,W=U&&V?F:null,q=V?null!=W?W:(null!=c?c:w)({rects:v,activeNodeRect:R,activeIndex:h,overIndex:y,index:A}):null,H=To(h)&&To(y)?i({id:s,items:f,activeIndex:h,overIndex:y}):A,Y=null==T?void 0:T.id,G=(0,a.useRef)({activeId:Y,items:f,newIndex:H,containerId:p}),K=f!==G.current.items,$=t({active:T,containerId:p,isDragging:L,isSorting:B,id:s,index:A,items:f,newIndex:G.current.newIndex,previousItems:G.current.items,previousContainerId:G.current.containerId,transition:d,wasDragging:null!=G.current.activeId}),Q=function(e){let{disabled:t,index:n,node:r,rect:o}=e;const[i,s]=(0,a.useState)(null),l=(0,a.useRef)(n);return yn((()=>{if(!t&&n!==l.current&&r.current){const e=o.current;if(e){const t=sr(r.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&s(n)}}n!==l.current&&(l.current=n)}),[t,n,r,o]),(0,a.useEffect)((()=>{i&&s(null)}),[i]),i}({disabled:!$,index:A,node:C,rect:k});return(0,a.useEffect)((()=>{B&&G.current.newIndex!==H&&(G.current.newIndex=H),p!==G.current.containerId&&(G.current.containerId=p),f!==G.current.items&&(G.current.items=f)}),[B,H,p,f]),(0,a.useEffect)((()=>{if(Y===G.current.activeId)return;if(Y&&!G.current.activeId)return void(G.current.activeId=Y);const e=setTimeout((()=>{G.current.activeId=Y}),50);return()=>clearTimeout(e)}),[Y]),{active:T,activeIndex:h,attributes:P,data:S,rect:k,index:A,newIndex:H,items:f,isOver:E,isSorting:B,isDragging:L,listeners:D,node:C,overIndex:y,over:j,setNodeRef:z,setActivatorNodeRef:N,setDroppableNodeRef:O,setDraggableNodeRef:M,transform:null!=Q?Q:q,transition:function(){if(Q||K&&G.current.newIndex===A)return Bo;if(U&&!Tn(I)||!d)return;if(B||$)return Rn.Transition.toString((0,l.A)((0,l.A)({},d),{},{property:zo}));return}()}}function Wo(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"===typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const qo=[Or.Down,Or.Right,Or.Up,Or.Left],Ho=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:o,droppableContainers:i,over:a,scrollableAncestors:s}}=t;if(qo.includes(e.code)){if(e.preventDefault(),!n||!r)return;const t=[];i.getEnabled().forEach((n=>{if(!n||null!=n&&n.disabled)return;const i=o.get(n.id);if(i)switch(e.code){case Or.Down:r.top<i.top&&t.push(n);break;case Or.Up:r.top>i.top&&t.push(n);break;case Or.Left:r.left>i.left&&t.push(n);break;case Or.Right:r.left<i.left&&t.push(n)}}));const l=(e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=Qn(t),i=[];for(const a of r){const{id:e}=a,t=n.get(e);if(t){const n=Qn(t),r=o.reduce(((e,t,r)=>e+Gn(n[r],t)),0),s=Number((r/4).toFixed(4));i.push({id:e,data:{droppableContainer:a,value:s}})}}return i.sort(Kn)})({active:n,collisionRect:r,droppableRects:o,droppableContainers:t,pointerCoordinates:null});let c=Xn(l,"id");if(c===(null==a?void 0:a.id)&&l.length>1&&(c=l[1].id),null!=c){const e=i.get(n.id),t=i.get(c),a=t?o.get(t.id):null,l=null==t?void 0:t.node.current;if(l&&a&&e&&t){const n=cr(l).some(((e,t)=>s[t]!==e)),o=Yo(e,t),i=function(e,t){if(!Wo(e)||!Wo(t))return!1;if(!Yo(e,t))return!1;return e.data.current.sortable.index<t.data.current.sortable.index}(e,t),c=n||!o?{x:0,y:0}:{x:i?r.width-a.width:0,y:i?r.height-a.height:0},u={x:a.left,y:a.top};return c.x&&c.y?u:On(u,c)}}}};function Yo(e,t){return!(!Wo(e)||!Wo(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}var Go=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g,Ko=/\b(?:[A-Z]{1,3}[A-Z][TC])(?:[-+]\d{4})?|((?:Australian )?(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time)\b/g,$o=/[^-+\dA-Z]/g;function Qo(e,t,n,r){if(1!==arguments.length||"string"!==typeof e||/\d/.test(e)||(t=e,e=void 0),(e=e||0===e?e:new Date)instanceof Date||(e=new Date(e)),isNaN(e))throw TypeError("Invalid date");var o=(t=String(Xo[t]||t||Xo.default)).slice(0,4);"UTC:"!==o&&"GMT:"!==o||(t=t.slice(4),n=!0,"GMT:"===o&&(r=!0));var i=function(){return n?"getUTC":"get"},a=function(){return e[i()+"Date"]()},s=function(){return e[i()+"Day"]()},l=function(){return e[i()+"Month"]()},c=function(){return e[i()+"FullYear"]()},u=function(){return e[i()+"Hours"]()},d=function(){return e[i()+"Minutes"]()},f=function(){return e[i()+"Seconds"]()},p=function(){return e[i()+"Milliseconds"]()},h=function(){return n?0:e.getTimezoneOffset()},m=function(){return ti(e)},g={d:function(){return a()},dd:function(){return Zo(a())},ddd:function(){return Jo.dayNames[s()]},DDD:function(){return ei({y:c(),m:l(),d:a(),_:i(),dayName:Jo.dayNames[s()],short:!0})},dddd:function(){return Jo.dayNames[s()+7]},DDDD:function(){return ei({y:c(),m:l(),d:a(),_:i(),dayName:Jo.dayNames[s()+7]})},m:function(){return l()+1},mm:function(){return Zo(l()+1)},mmm:function(){return Jo.monthNames[l()]},mmmm:function(){return Jo.monthNames[l()+12]},yy:function(){return String(c()).slice(2)},yyyy:function(){return Zo(c(),4)},h:function(){return u()%12||12},hh:function(){return Zo(u()%12||12)},H:function(){return u()},HH:function(){return Zo(u())},M:function(){return d()},MM:function(){return Zo(d())},s:function(){return f()},ss:function(){return Zo(f())},l:function(){return Zo(p(),3)},L:function(){return Zo(Math.floor(p()/10))},t:function(){return u()<12?Jo.timeNames[0]:Jo.timeNames[1]},tt:function(){return u()<12?Jo.timeNames[2]:Jo.timeNames[3]},T:function(){return u()<12?Jo.timeNames[4]:Jo.timeNames[5]},TT:function(){return u()<12?Jo.timeNames[6]:Jo.timeNames[7]},Z:function(){return r?"GMT":n?"UTC":ri(e)},o:function(){return(h()>0?"-":"+")+Zo(100*Math.floor(Math.abs(h())/60)+Math.abs(h())%60,4)},p:function(){return(h()>0?"-":"+")+Zo(Math.floor(Math.abs(h())/60),2)+":"+Zo(Math.floor(Math.abs(h())%60),2)},S:function(){return["th","st","nd","rd"][a()%10>3?0:(a()%100-a()%10!=10)*a()%10]},W:function(){return m()},WW:function(){return Zo(m())},N:function(){return ni(e)}};return t.replace(Go,(function(e){return e in g?g[e]():e.slice(1,e.length-1)}))}var Xo={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},Jo={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]},Zo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return String(e).padStart(t,"0")},ei=function(e){var t=e.y,n=e.m,r=e.d,o=e._,i=e.dayName,a=e.short,s=void 0!==a&&a,l=new Date,c=new Date;c.setDate(c[o+"Date"]()-1);var u=new Date;u.setDate(u[o+"Date"]()+1);return l[o+"FullYear"]()===t&&l[o+"Month"]()===n&&l[o+"Date"]()===r?s?"Tdy":"Today":c[o+"FullYear"]()===t&&c[o+"Month"]()===n&&c[o+"Date"]()===r?s?"Ysd":"Yesterday":u[o+"FullYear"]()===t&&u[o+"Month"]()===n&&u[o+"Date"]()===r?s?"Tmw":"Tomorrow":i},ti=function(e){var t=new Date(e.getFullYear(),e.getMonth(),e.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);var n=new Date(t.getFullYear(),0,4);n.setDate(n.getDate()-(n.getDay()+6)%7+3);var r=t.getTimezoneOffset()-n.getTimezoneOffset();t.setHours(t.getHours()-r);var o=(t-n)/6048e5;return 1+Math.floor(o)},ni=function(e){var t=e.getDay();return 0===t&&(t=7),t},ri=function(e){return(String(e).match(Ko)||[""]).pop().replace($o,"").replace(/GMT\+0000/g,"UTC")},oi=n(2617),ii=n.n(oi),ai=n(137);const si=e=>{let{shown:t,children:n,rotate:r}=e;return(0,ai.Y)("div",{css:["-webkit-font-smoothing:subpixel-antialiased;position:absolute;right:0;transform:translateX(150%);transition:transform 0.2s ease-in-out;",t&&{position:"static",transform:"translateX(0)"},r&&{transform:"rotateX(90deg)",transition:"transform 0.2s ease-in-out 0.08s"},r&&t&&{transform:"rotateX(0)",transition:"transform 0.2s ease-in-out 0.18s"},"",""]},n)};const li=e=>({cursor:"pointer",position:"relative",padding:"5px 10px",borderStyle:"solid",borderWidth:"1px",borderLeftWidth:0,"&:first-of-type":{borderLeftWidth:"1px",borderTopLeftRadius:"3px",borderBottomLeftRadius:"3px"},"&:last-of-type":{borderTopRightRadius:"3px",borderBottomRightRadius:"3px"},backgroundColor:e.TAB_BACK_COLOR,"&:hover":{backgroundColor:e.TAB_BACK_HOVER_COLOR},borderColor:e.TAB_BORDER_COLOR}),ci={name:"13iffa7",styles:"padding:0px 8px;font-size:0.8em"},ui=e=>({backgroundColor:e.TAB_BACK_SELECTED_COLOR});const di="Skip",fi="Jump",pi=e=>({display:"inline",padding:"4px 6px",borderRadius:"3px",fontSize:"0.8em",lineHeight:"1em",flexShrink:0,backgroundColor:e.ACTION_TIME_BACK_COLOR,color:e.ACTION_TIME_COLOR});var hi={name:"1mwki4f",styles:"position:relative;height:20px;display:flex"},mi={name:"1lv1yo7",styles:"display:inline-flex"};class gi extends a.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"state",{hover:!1}),(0,o.A)(this,"handleMouseEnter",(e=>{this.state.hover||(this.handleMouseLeave.cancel(),this.handleMouseEnterDebounced(e.buttons))})),(0,o.A)(this,"handleMouseEnterDebounced",(()=>ii()((e=>{e||this.setState({hover:!0})}),150))()),(0,o.A)(this,"handleMouseLeave",(()=>ii()((()=>{this.handleMouseEnterDebounced.cancel(),this.state.hover&&this.setState({hover:!1})}),100))()),(0,o.A)(this,"handleMouseDown",(e=>{e.target.dataset.isselectorbutton||this.handleMouseLeave()}))}render(){const{isSelected:e,action:t,actionId:n,isInitAction:r,onSelect:o,timestamps:i,isSkipped:a,isInFuture:s,hideActionButtons:l}=this.props,{hover:c}=this.state,u=i.current-i.previous,d=c&&!r||a,f=e=>e===di&&a;let p=t.type;return p="undefined"===typeof p?"<UNDEFINED>":null===p?"<NULL>":p.toString()||"<EMPTY>",(0,ai.Y)("div",{onClick:o,onMouseEnter:!l&&this.handleMouseEnter,onMouseLeave:!l&&this.handleMouseLeave,onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseEnter,"data-id":n,css:[e=>({borderBottomWidth:"1px",borderBottomStyle:"solid",display:"flex",justifyContent:"space-between",padding:"5px 10px",cursor:"pointer",userSelect:"none",borderBottomColor:e.BORDER_COLOR}),e&&(e=>({backgroundColor:e.SELECTED_BACKGROUND_COLOR})),a&&(e=>({backgroundColor:e.SKIPPED_BACKGROUND_COLOR})),s&&{opacity:"0.6"},"",""]},(0,ai.Y)("div",{css:["overflow:hidden;text-overflow:ellipsis;line-height:20px;",a&&{textDecoration:"line-through",opacity:.3},"",""]},p),l?(0,ai.Y)(si,{shown:!0},(0,ai.Y)("div",{css:pi},0===u?"+00:00:00":Qo(u,i.previous?"+MM:ss.L":"h:MM:ss.L"))):(0,ai.Y)("div",{css:hi},(0,ai.Y)(si,{shown:!d,rotate:!0},(0,ai.Y)("div",{css:pi},0===u?"+00:00:00":Qo(u,i.previous?"+MM:ss.L":"h:MM:ss.L"))),(0,ai.Y)(si,{shown:d,rotate:!0},(0,ai.Y)("div",{css:mi},[fi,di].map((e=>(!r||e!==di)&&(0,ai.Y)("div",{key:e,onClick:t=>this.handleButtonClick(e,t),css:[li,f(e)&&ui,ci,"",""],"data-isselectorbutton":!0},e)))))))}handleButtonClick(e,t){switch(t.stopPropagation(),e){case di:this.props.onToggleClick();break;case fi:this.props.onJumpClick()}}}var vi={name:"1o3t35k",styles:"position:relative;height:20px"},yi={name:"19kjdlk",styles:"display:inline-flex;margin-right:10px"};const bi=e=>{let{onSearch:t,hasSkippedActions:n,hasStagedActions:r,onCommit:o,onSweep:i,hideMainButtons:a,searchValue:s}=e;return(0,ai.Y)("div",{css:e=>({display:"flex",flex:"0 0 auto",alignItems:"center",borderBottomWidth:"1px",borderBottomStyle:"solid",borderColor:e.LIST_BORDER_COLOR})},(0,ai.Y)("input",{css:e=>({outline:"none",border:"none",width:"100%",padding:"5px 10px",fontSize:"1em",fontFamily:'monaco, Consolas, "Lucida Console", monospace',backgroundColor:e.BACKGROUND_COLOR,color:e.TEXT_COLOR,"&::-webkit-input-placeholder":{color:e.TEXT_PLACEHOLDER_COLOR},"&::-moz-placeholder":{color:e.TEXT_PLACEHOLDER_COLOR}}),onChange:e=>t(e.target.value),placeholder:"filter...",value:s}),!a&&(0,ai.Y)("div",{css:vi},(0,ai.Y)(si,{shown:r},(0,ai.Y)("div",{css:yi},(e=>[e&&"Sweep","Commit"].filter((e=>!!e)))(n).map((e=>(0,ai.Y)("div",{key:e,onClick:()=>({Commit:o,Sweep:i}[e]()),css:[li,ci,"",""]},e)))))))};function wi(e,t,n){const r=t.indexOf(n),o=t[r-1];return{current:e[n].timestamp,previous:r?e[o].timestamp:0}}function xi(e){e.scrollTop=e.scrollHeight}var Ai={name:"1qmr6ab",styles:"overflow:auto"};function Si(e){let{actions:t,actionIds:n,isWideLayout:r,onToggleAction:o,skippedActionIds:i,selectedActionId:s,startActionId:l,onSelect:c,onSearch:u,searchValue:d,currentActionId:f,hideMainButtons:p,hideActionButtons:h,onCommit:m,onSweep:g,onJumpToState:v,lastActionId:y,onReorderAction:b}=e;const w=(0,a.useRef)(null),x=(0,a.useRef)();(0,a.useLayoutEffect)((()=>{if(w.current&&x.current!==y){const{scrollTop:e,offsetHeight:t,scrollHeight:n}=w.current;Math.abs(n-(e+t))<50&&xi(w.current)}x.current=y}),[y]);const A=(0,a.useCallback)((e=>{e&&!w.current&&xi(e),w.current=e}),[]),S=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,a.useMemo)((()=>[...t].filter((e=>null!=e))),[...t])}(Hn(Fr,{activationConstraint:{distance:8}}),Hn(Mr,{coordinateGetter:Ho})),_=(0,a.useCallback)((e=>{let{active:t,over:r}=e;if(r&&t.id!==r.id){const e=n.indexOf(t.id),o=n.indexOf(r.id),i=o<e?r.id:o<n.length-1?n[o+1]:n.length;b(t.id,i)}}),[n,b]),k=d&&d.toLowerCase(),C=d?n.filter((e=>t[e].action.type.toLowerCase().includes(k))):n;return(0,ai.Y)("div",{key:"actionList","data-testid":"actionList",css:[e=>({flexBasis:"40%",flexShrink:0,overflowX:"hidden",overflowY:"auto",borderBottomWidth:"3px",borderBottomStyle:"double",display:"flex",flexDirection:"column",backgroundColor:e.BACKGROUND_COLOR,borderColor:e.LIST_BORDER_COLOR}),r&&{flexBasis:"40%",borderBottom:"none",borderRightWidth:"3px",borderRightStyle:"double"},"",""]},(0,ai.Y)(bi,{onSearch:u,onCommit:m,onSweep:g,hideMainButtons:p,hasSkippedActions:i.length>0,hasStagedActions:n.length>1,searchValue:d}),(0,ai.Y)("div",{"data-testid":"actionListRows",css:Ai,ref:A},(0,ai.Y)(bo,{sensors:S,collisionDetection:Zn,onDragEnd:_,modifiers:[Co]},(0,ai.Y)(Lo,{items:C,strategy:Po},C.map((e=>(0,ai.Y)(_i,{key:e,actionId:e},(0,ai.Y)(gi,{actionId:e,isInitAction:!e,isSelected:null!==l&&e>=l&&e<=s||e===s,isInFuture:n.indexOf(e)>n.indexOf(f),onSelect:t=>c(t,e),timestamps:wi(t,n,e),action:t[e].action,onToggleClick:()=>o(e),onJumpClick:()=>v(e),onCommitClick:()=>m(),hideActionButtons:h,isSkipped:i.includes(e)}))))))))}function _i(e){let{children:t,actionId:n}=e;const{attributes:r,listeners:o,setNodeRef:i,transform:a,transition:s}=Uo({id:n}),l={transform:Rn.Transform.toString(a),transition:s};return(0,ai.Y)("div",sn({ref:i,style:l},r,o),t)}const ki="@@redux-devtools-inspector-monitor/UPDATE_MONITOR_STATE";const Ci={selectedActionId:null,startActionId:null,inspectedActionPath:[],inspectedStatePath:[],tabName:"Diff"};function Ei(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ci,n=arguments.length>2?arguments[2]:void 0;return(0,l.A)({},function(e,t){return t.type===ki?(0,l.A)((0,l.A)({},e),t.monitorState):e}(t,n))}const Oi={name:"14o9n6b",styles:'&:not(:last-child):after{content:" > ";}'},Ti=e=>({cursor:"pointer",color:e.LINK_COLOR,"&:hover":{textDecoration:"underline",color:e.LINK_HOVER_COLOR}});var Ii={name:"1fw5qyk",styles:"position:relative;display:inline-flex;float:right"},Ri={name:"kkohdv",styles:"padding:6px 0"};const Pi=e=>{let{inspectedPath:t,onInspectPath:n,tabName:r,onSelectTab:o,tabs:i}=e;return(0,ai.Y)("div",{key:"previewHeader",css:e=>({flex:"0 0 30px",padding:"5px 10px",alignItems:"center",borderBottomWidth:"1px",borderBottomStyle:"solid",backgroundColor:e.HEADER_BACKGROUND_COLOR,borderBottomColor:e.HEADER_BORDER_COLOR})},(0,ai.Y)("div",{css:Ii},i.map((e=>(0,ai.Y)("div",{onClick:()=>o(e.name),key:e.name,css:[li,e.name===r&&ui,"",""]},e.name)))),(0,ai.Y)("div",{css:Ri},t.length?(0,ai.Y)("span",{css:Oi},(0,ai.Y)("a",{onClick:()=>n([]),css:Ti},r)):r,t.map(((e,r)=>r===t.length-1?(0,ai.Y)("span",{key:e},e):(0,ai.Y)("span",{key:e,css:Oi},(0,ai.Y)("a",{onClick:()=>n(t.slice(0,r+1)),css:Ti},e))))))};function Mi(e){let{styling:t,arrowStyle:n="single",expanded:r,nodeType:o,onClick:i}=e;return a.createElement("div",(0,l.A)((0,l.A)({},t("arrowContainer",n)),{},{onClick:i}),a.createElement("div",(0,l.A)({},t(["arrow","arrowSign"],o,r,n)),"\u25b6","double"===n&&a.createElement("div",(0,l.A)({},t(["arrowSign","arrowSignInner"])),"\u25b6")))}function Di(e,t,n){let r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1/0;if("Object"===e){let e=Object.getOwnPropertyNames(t);n&&e.sort(!0===n?void 0:n),e=e.slice(o,i+1),r={entries:e.map((e=>({key:e,value:t[e]})))}}else if("Array"===e)r={entries:t.slice(o,i+1).map(((e,t)=>({key:t+o,value:e})))};else{let e=0;const n=[];let a=!0;const s=function(e){return"function"===typeof e.set}(t);for(const r of t){if(e>i){a=!1;break}o<=e&&(s&&Array.isArray(r)?"string"===typeof r[0]||"number"===typeof r[0]?n.push({key:r[0],value:r[1]}):n.push({key:"[entry ".concat(e,"]"),value:{"[key]":r[0],"[value]":r[1]}}):n.push({key:e,value:r})),e++}r={hasMore:!a,entries:n}}return r}function Li(e,t,n){const r=[];for(;t-e>n*n;)n*=n;for(let o=e;o<=t;o+=n)r.push({from:o,to:Math.min(t,o+n-1)});return r}function ji(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1/0;const a=Di.bind(null,e,t,n);if(!r)return a().entries;const s=i<1/0,l=Math.min(i-o,function(e,t){return"Object"===e?Object.keys(t).length:"Array"===e?t.length:1/0}(e,t));if("Iterable"!==e){if(l<=r||r<7)return a(o,i).entries}else if(l<=r&&!s)return a(o,i).entries;let c;if("Iterable"===e){const{hasMore:e,entries:t}=a(o,o+r-1);c=e?[...t,...Li(o+r,o+2*r-1,r)]:t}else c=s?Li(o,i,r):[...a(0,r-5).entries,...Li(r-4,l-5,r),...a(l-4,l-1).entries];return c}function Ni(e){const{styling:t,from:n,to:r,renderChildNodes:o,nodeType:i}=e,[s,c]=(0,a.useState)(!1),u=(0,a.useCallback)((()=>{c(!s)}),[s]);return s?a.createElement("div",(0,l.A)({},t("itemRange",s)),o(e,n,r)):a.createElement("div",(0,l.A)((0,l.A)({},t("itemRange",s)),{},{onClick:u}),a.createElement(Mi,{nodeType:i,styling:t,expanded:!1,onClick:u,arrowStyle:"double"}),"".concat(n," ... ").concat(r))}function Fi(e,t,n){const{nodeType:r,data:o,collectionLimit:i,circularCache:s,keyPath:c,postprocessValue:u,sortObjectKeys:d}=e,f=[];return ji(r,o,d,i,t,n).forEach((t=>{if(void 0!==t.to)f.push(a.createElement(Ni,(0,l.A)((0,l.A)({},e),{},{key:"ItemRange--".concat(t.from,"-").concat(t.to),from:t.from,to:t.to,renderChildNodes:Fi})));else{const{key:n,value:r}=t,o=s.includes(r);f.push(a.createElement(Qi,(0,l.A)((0,l.A)({},e),{},{postprocessValue:u,collectionLimit:i,key:"Node--".concat(n),keyPath:[n,...c],value:u(r),circularCache:[...s,r],isCircular:o,hideRoot:!1})))}})),f}function zi(e){const{circularCache:t=[],collectionLimit:n,createItemString:r,data:o,expandable:i,getItemString:s,hideRoot:c,isCircular:u,keyPath:d,labelRenderer:f,level:p=0,nodeType:h,nodeTypeIndicator:m,shouldExpandNodeInitially:g,styling:v}=e,[y,b]=(0,a.useState)(!u&&g(d,o,p)),w=(0,a.useCallback)((()=>{i&&b(!y)}),[i,y]),x=y||c&&0===p?Fi((0,l.A)((0,l.A)({},e),{},{circularCache:t,level:p+1})):null,A=s(h,o,a.createElement("span",(0,l.A)({},v("nestedNodeItemType",y)),m),r(o,n),d),S=[d,h,y,i];return c?a.createElement("li",(0,l.A)({},v("rootNode",...S)),a.createElement("ul",(0,l.A)({},v("rootNodeChildren",...S)),x)):a.createElement("li",(0,l.A)({},v("nestedNode",...S)),i&&a.createElement(Mi,{styling:v,nodeType:h,expanded:y,onClick:w}),a.createElement("label",(0,l.A)((0,l.A)({},v(["label","nestedNodeLabel"],...S)),{},{onClick:w}),f(...S)),a.createElement("span",(0,l.A)((0,l.A)({},v("nestedNodeItemString",...S)),{},{onClick:w}),A),a.createElement("ul",(0,l.A)({},v("nestedNodeChildren",...S)),x))}const Bi=["data"];function Vi(e){const t=Object.getOwnPropertyNames(e).length;return"".concat(t," ").concat(1!==t?"keys":"key")}function Ui(e){let{data:t}=e,n=(0,ln.A)(e,Bi);return a.createElement(zi,(0,l.A)((0,l.A)({},n),{},{data:t,nodeType:"Object",nodeTypeIndicator:"Error"===n.nodeType?"Error()":"{}",createItemString:Vi,expandable:Object.getOwnPropertyNames(t).length>0}))}const Wi=["data"];function qi(e){return"".concat(e.length," ").concat(1!==e.length?"items":"item")}function Hi(e){let{data:t}=e,n=(0,ln.A)(e,Wi);return a.createElement(zi,(0,l.A)((0,l.A)({},n),{},{data:t,nodeType:"Array",nodeTypeIndicator:"[]",createItemString:qi,expandable:t.length>0}))}function Yi(e,t){let n=0,r=!1;if(Number.isSafeInteger(e.size))n=e.size;else for(const o of e){if(t&&n+1>t){r=!0;break}n+=1}return"".concat(r?">":"").concat(n," ").concat(1!==n?"entries":"entry")}function Gi(e){return a.createElement(zi,(0,l.A)((0,l.A)({},e),{},{nodeType:"Iterable",nodeTypeIndicator:"()",createItemString:Yi,expandable:!0}))}function Ki(e){let{nodeType:t,styling:n,labelRenderer:r,keyPath:o,valueRenderer:i,value:s,valueGetter:c=e=>e}=e;return a.createElement("li",(0,l.A)({},n("value",t,o)),a.createElement("label",(0,l.A)({},n(["label","valueLabel"],t,o)),r(o,t,!1,!1)),a.createElement("span",(0,l.A)({},n("valueText",t,o)),i(c(s),s,...o)))}const $i=["getItemString","keyPath","labelRenderer","styling","value","valueRenderer","isCustomNode"];function Qi(e){let{getItemString:t,keyPath:n,labelRenderer:r,styling:o,value:i,valueRenderer:s,isCustomNode:c}=e,u=(0,ln.A)(e,$i);const d=c(i)?"Custom":function(e){const t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&"function"===typeof e[Symbol.iterator]?"Iterable":"Custom"===t&&e.constructor!==Object&&e instanceof Object?"Object":t}(i),f={getItemString:t,key:n[0],keyPath:n,labelRenderer:r,nodeType:d,styling:o,value:i,valueRenderer:s},p=(0,l.A)((0,l.A)((0,l.A)({},u),f),{},{data:i,isCustomNode:c});switch(d){case"Object":case"Error":case"WeakMap":case"WeakSet":return a.createElement(Ui,(0,l.A)({},p));case"Array":return a.createElement(Hi,(0,l.A)({},p));case"Iterable":case"Map":case"Set":return a.createElement(Gi,(0,l.A)({},p));case"String":return a.createElement(Ki,(0,l.A)((0,l.A)({},f),{},{valueGetter:e=>'"'.concat(e,'"')}));case"Number":case"Custom":return a.createElement(Ki,(0,l.A)({},f));case"Boolean":return a.createElement(Ki,(0,l.A)((0,l.A)({},f),{},{valueGetter:e=>e?"true":"false"}));case"Date":return a.createElement(Ki,(0,l.A)((0,l.A)({},f),{},{valueGetter:e=>e.toISOString()}));case"Null":return a.createElement(Ki,(0,l.A)((0,l.A)({},f),{},{valueGetter:()=>"null"}));case"Undefined":return a.createElement(Ki,(0,l.A)((0,l.A)({},f),{},{valueGetter:()=>"undefined"}));case"Function":case"Symbol":return a.createElement(Ki,(0,l.A)((0,l.A)({},f),{},{valueGetter:e=>e.toString()}));default:return a.createElement(Ki,(0,l.A)((0,l.A)({},f),{},{valueGetter:()=>"<".concat(d,">")}))}}const Xi=e=>({String:e.STRING_COLOR,Date:e.DATE_COLOR,Number:e.NUMBER_COLOR,Boolean:e.BOOLEAN_COLOR,Null:e.NULL_COLOR,Undefined:e.UNDEFINED_COLOR,Function:e.FUNCTION_COLOR,Symbol:e.SYMBOL_COLOR}),Ji=tn((e=>{const t=(e=>({BACKGROUND_COLOR:e.base00,TEXT_COLOR:e.base07,STRING_COLOR:e.base0B,DATE_COLOR:e.base0B,NUMBER_COLOR:e.base09,BOOLEAN_COLOR:e.base09,NULL_COLOR:e.base08,UNDEFINED_COLOR:e.base08,FUNCTION_COLOR:e.base08,SYMBOL_COLOR:e.base08,LABEL_COLOR:e.base0D,ARROW_COLOR:e.base0D,ITEM_STRING_COLOR:e.base0B,ITEM_STRING_EXPANDED_COLOR:e.base03}))(e);return{tree:{border:0,padding:0,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"0.125em",marginRight:0,listStyle:"none",MozUserSelect:"none",WebkitUserSelect:"none",backgroundColor:t.BACKGROUND_COLOR},value:(e,t,n)=>{let{style:r}=e;return{style:(0,l.A)((0,l.A)({},r),{},{paddingTop:"0.25em",paddingRight:0,marginLeft:"0.875em",WebkitUserSelect:"text",MozUserSelect:"text",wordWrap:"break-word",paddingLeft:n.length>1?"2.125em":"1.25em",textIndent:"-0.5em",wordBreak:"break-all"})}},label:{display:"inline-block",color:t.LABEL_COLOR},valueLabel:{margin:"0 0.5em 0 0"},valueText:(e,n)=>{let{style:r}=e;return{style:(0,l.A)((0,l.A)({},r),{},{color:Xi(t)[n]})}},itemRange:(e,n)=>({style:{paddingTop:n?0:"0.25em",cursor:"pointer",color:t.LABEL_COLOR}}),arrow:(e,t,n)=>{let{style:r}=e;return{style:(0,l.A)((0,l.A)({},r),{},{marginLeft:0,transition:"150ms",WebkitTransition:"150ms",MozTransition:"150ms",WebkitTransform:n?"rotateZ(90deg)":"rotateZ(0deg)",MozTransform:n?"rotateZ(90deg)":"rotateZ(0deg)",transform:n?"rotateZ(90deg)":"rotateZ(0deg)",transformOrigin:"45% 50%",WebkitTransformOrigin:"45% 50%",MozTransformOrigin:"45% 50%",position:"relative",lineHeight:"1.1em",fontSize:"0.75em"})}},arrowContainer:(e,t)=>{let{style:n}=e;return{style:(0,l.A)((0,l.A)({},n),{},{display:"inline-block",paddingRight:"0.5em",paddingLeft:"double"===t?"1em":0,cursor:"pointer"})}},arrowSign:{color:t.ARROW_COLOR},arrowSignInner:{position:"absolute",top:0,left:"-0.4em"},nestedNode:(e,t,n,r,o)=>{let{style:i}=e;return{style:(0,l.A)((0,l.A)({},i),{},{position:"relative",paddingTop:"0.25em",marginLeft:t.length>1?"0.875em":0,paddingLeft:o?0:"1.125em"})}},rootNode:{padding:0,margin:0},nestedNodeLabel:(e,t,n,r,o)=>{let{style:i}=e;return{style:(0,l.A)((0,l.A)({},i),{},{margin:0,padding:0,WebkitUserSelect:o?"inherit":"text",MozUserSelect:o?"inherit":"text",cursor:o?"pointer":"default"})}},nestedNodeItemString:(e,n,r,o)=>{let{style:i}=e;return{style:(0,l.A)((0,l.A)({},i),{},{paddingLeft:"0.5em",cursor:"default",color:o?t.ITEM_STRING_EXPANDED_COLOR:t.ITEM_STRING_COLOR})}},nestedNodeItemType:{marginLeft:"0.3em",marginRight:"0.3em"},nestedNodeChildren:(e,t,n)=>{let{style:r}=e;return{style:(0,l.A)((0,l.A)({},r),{},{padding:0,margin:0,listStyle:"none",display:n?"block":"none"})}},rootNodeChildren:{padding:0,margin:0,listStyle:"none"}}}),{defaultBase16:{scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"}}),Zi=Ji,ea=e=>e,ta=(e,t,n)=>0===n,na=(e,t,n,r)=>a.createElement("span",null,n," ",r),ra=e=>{let[t]=e;return a.createElement("span",null,t,":")},oa=()=>!1;function ia(e){let{data:t,theme:n,invertTheme:r,keyPath:o=["root"],labelRenderer:i=ra,valueRenderer:s=ea,shouldExpandNodeInitially:c=ta,hideRoot:u=!1,getItemString:d=na,postprocessValue:f=ea,isCustomNode:p=oa,collectionLimit:h=50,sortObjectKeys:m=!1}=e;const g=(0,a.useMemo)((()=>Zi(r?(e=>"string"===typeof e?"".concat(e,":inverted"):e&&nn(e)&&e.extend?"string"===typeof e.extend?(0,l.A)((0,l.A)({},e),{},{extend:"".concat(e.extend,":inverted")}):(0,l.A)((0,l.A)({},e),{},{extend:en(e.extend)}):e?en(e):e)(n):n)),[n,r]);return a.createElement("ul",(0,l.A)({},g("tree")),a.createElement(Qi,{keyPath:u?[]:o,value:f(t),isCustomNode:p,styling:g,labelRenderer:i,valueRenderer:s,shouldExpandNodeInitially:c,hideRoot:u,getItemString:d,postprocessValue:f,collectionLimit:h,sortObjectKeys:m}))}var aa=n(5871),sa="delete",la=32,ca=31,ua={};function da(e){e&&(e.value=!0)}function fa(){}function pa(e){return void 0===e.size&&(e.size=e.__iterate(ma)),e.size}function ha(e,t){if("number"!==typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?pa(e)+t:t}function ma(){return!0}function ga(e,t,n){return(0===e&&!wa(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function va(e,t){return ba(e,t,0)}function ya(e,t){return ba(e,t,t)}function ba(e,t,n){return void 0===e?n:wa(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function wa(e){return e<0||0===e&&1/e===-1/0}var xa="@@__IMMUTABLE_ITERABLE__@@";function Aa(e){return Boolean(e&&e[xa])}var Sa="@@__IMMUTABLE_KEYED__@@";function _a(e){return Boolean(e&&e[Sa])}var ka="@@__IMMUTABLE_INDEXED__@@";function Ca(e){return Boolean(e&&e[ka])}function Ea(e){return _a(e)||Ca(e)}var Oa=function(e){return Aa(e)?e:Xa(e)},Ta=function(e){function t(e){return _a(e)?e:Ja(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Oa),Ia=function(e){function t(e){return Ca(e)?e:Za(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Oa),Ra=function(e){function t(e){return Aa(e)&&!Ea(e)?e:es(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Oa);Oa.Keyed=Ta,Oa.Indexed=Ia,Oa.Set=Ra;var Pa="@@__IMMUTABLE_SEQ__@@";function Ma(e){return Boolean(e&&e[Pa])}var Da="@@__IMMUTABLE_RECORD__@@";function La(e){return Boolean(e&&e[Da])}function ja(e){return Aa(e)||La(e)}var Na="@@__IMMUTABLE_ORDERED__@@";function Fa(e){return Boolean(e&&e[Na])}var za="function"===typeof Symbol&&Symbol.iterator,Ba="@@iterator",Va=za||Ba,Ua=function(e){this.next=e};function Wa(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function qa(){return{value:void 0,done:!0}}function Ha(e){return!!Array.isArray(e)||!!Ka(e)}function Ya(e){return e&&"function"===typeof e.next}function Ga(e){var t=Ka(e);return t&&t.call(e)}function Ka(e){var t=e&&(za&&e[za]||e[Ba]);if("function"===typeof t)return t}Ua.prototype.toString=function(){return"[Iterator]"},Ua.KEYS=0,Ua.VALUES=1,Ua.ENTRIES=2,Ua.prototype.inspect=Ua.prototype.toSource=function(){return this.toString()},Ua.prototype[Va]=function(){return this};var $a=Object.prototype.hasOwnProperty;function Qa(e){return!(!Array.isArray(e)&&"string"!==typeof e)||e&&"object"===typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var Xa=function(e){function t(e){return void 0===e||null===e?is():ja(e)?e.toSeq():function(e){var t=ls(e);if(t)return function(e){var t=Ka(e);return t&&t===e.entries}(e)?t.fromEntrySeq():function(e){var t=Ka(e);return t&&t===e.keys}(e)?t.toSetSeq():t;if("object"===typeof e)return new ns(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,o=0;o!==r;){var i=n[t?r-++o:o++];if(!1===e(i[1],i[0],this))break}return o}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,o=0;return new Ua((function(){if(o===r)return{value:void 0,done:!0};var i=n[t?r-++o:o++];return Wa(e,i[0],i[1])}))}return this.__iteratorUncached(e,t)},t}(Oa),Ja=function(e){function t(e){return void 0===e||null===e?is().toKeyedSeq():Aa(e)?_a(e)?e.toSeq():e.fromEntrySeq():La(e)?e.toSeq():as(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(Xa),Za=function(e){function t(e){return void 0===e||null===e?is():Aa(e)?_a(e)?e.entrySeq():e.toIndexedSeq():La(e)?e.toSeq().entrySeq():ss(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(Xa),es=function(e){function t(e){return(Aa(e)&&!Ea(e)?e:Za(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(Xa);Xa.isSeq=Ma,Xa.Keyed=Ja,Xa.Set=es,Xa.Indexed=Za,Xa.prototype[Pa]=!0;var ts=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[ha(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,o=0;o!==r;){var i=t?r-++o:o++;if(!1===e(n[i],i,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,o=0;return new Ua((function(){if(o===r)return{value:void 0,done:!0};var i=t?r-++o:o++;return Wa(e,i,n[i])}))},t}(Za),ns=function(e){function t(e){var t=Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return $a.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length,i=0;i!==o;){var a=r[t?o-++i:i++];if(!1===e(n[a],a,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length,i=0;return new Ua((function(){if(i===o)return{value:void 0,done:!0};var a=r[t?o-++i:i++];return Wa(e,a,n[a])}))},t}(Ja);ns.prototype[Na]=!0;var rs,os=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=Ga(this._collection),r=0;if(Ya(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=Ga(this._collection);if(!Ya(n))return new Ua(qa);var r=0;return new Ua((function(){var t=n.next();return t.done?t:Wa(e,r++,t.value)}))},t}(Za);function is(){return rs||(rs=new ts([]))}function as(e){var t=ls(e);if(t)return t.fromEntrySeq();if("object"===typeof e)return new ns(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function ss(e){var t=ls(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function ls(e){return Qa(e)?new ts(e):Ha(e)?new os(e):void 0}var cs="@@__IMMUTABLE_MAP__@@";function us(e){return Boolean(e&&e[cs])}function ds(e){return us(e)&&Fa(e)}function fs(e){return Boolean(e&&"function"===typeof e.equals&&"function"===typeof e.hashCode)}function ps(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if("function"===typeof e.valueOf&&"function"===typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!!(fs(e)&&fs(t)&&e.equals(t))}var hs="function"===typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function ms(e){return e>>>1&1073741824|3221225471&e}var gs=Object.prototype.valueOf;function vs(e){if(null==e)return ys(e);if("function"===typeof e.hashCode)return ms(e.hashCode(e));var t,n=(t=e).valueOf!==gs&&"function"===typeof t.valueOf?t.valueOf(t):t;if(null==n)return ys(n);switch(typeof n){case"boolean":return n?1108378657:1108378656;case"number":return function(e){if(e!==e||e===1/0)return 0;var t=0|e;t!==e&&(t^=4294967295*e);for(;e>4294967295;)t^=e/=4294967295;return ms(t)}(n);case"string":return n.length>Os?function(e){var t=Rs[e];void 0===t&&(t=bs(e),Is===Ts&&(Is=0,Rs={}),Is++,Rs[e]=t);return t}(n):bs(n);case"object":case"function":return function(e){var t;if(_s&&void 0!==(t=Ss.get(e)))return t;if(t=e[Es],void 0!==t)return t;if(!xs){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Es]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=As(),_s)Ss.set(e,t);else{if(void 0!==ws&&!1===ws(e))throw new Error("Non-extensible objects are not allowed as keys.");if(xs)Object.defineProperty(e,Es,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Es]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Es]=t}}return t}(n);case"symbol":return function(e){var t=ks[e];if(void 0!==t)return t;return t=As(),ks[e]=t,t}(n);default:if("function"===typeof n.toString)return bs(n.toString());throw new Error("Value type "+typeof n+" cannot be hashed.")}}function ys(e){return null===e?1108378658:1108378659}function bs(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return ms(t)}var ws=Object.isExtensible,xs=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function As(){var e=++Cs;return 1073741824&Cs&&(Cs=0),e}var Ss,_s="function"===typeof WeakMap;_s&&(Ss=new WeakMap);var ks=Object.create(null),Cs=0,Es="__immutablehash__";"function"===typeof Symbol&&(Es=Symbol(Es));var Os=16,Ts=255,Is=0,Rs={},Ps=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=Fs(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=Ns(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t,r){return e(t,r,n)}),t)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(Ja);Ps.prototype[Na]=!0;var Ms=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&pa(this),this._iter.__iterate((function(o){return e(o,t?n.size-++r:r++,n)}),t)},t.prototype.__iterator=function(e,t){var n=this,r=this._iter.__iterator(1,t),o=0;return t&&pa(this),new Ua((function(){var i=r.next();return i.done?i:Wa(e,t?n.size-++o:o++,i.value,i)}))},t}(Za),Ds=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new Ua((function(){var t=n.next();return t.done?t:Wa(e,t.value,t.value,t)}))},t}(es),Ls=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){Ks(t);var r=Aa(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(1,t);return new Ua((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){Ks(r);var o=Aa(r);return Wa(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},t}(Ja);function js(e){var t=Qs(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Xs,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new Ua((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,n)},t}function Ns(e,t,n){var r=Qs(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,ua);return i===ua?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(2,o);return new Ua((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return Wa(r,s,t.call(n,a[1],s,e),o)}))},r}function Fs(e,t){var n=this,r=Qs(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=js(e);return t.reverse=function(){return e.flip()},t}),r.get=function(n,r){return e.get(t?n:-1-n,r)},r.has=function(n){return e.has(t?n:-1-n)},r.includes=function(t){return e.includes(t)},r.cacheResult=Xs,r.__iterate=function(n,r){var o=this,i=0;return r&&pa(e),e.__iterate((function(e,a){return n(e,t?a:r?o.size-++i:i++,o)}),!r)},r.__iterator=function(r,o){var i=0;o&&pa(e);var a=e.__iterator(2,!o);return new Ua((function(){var e=a.next();if(e.done)return e;var s=e.value;return Wa(r,t?s[0]:o?n.size-++i:i++,s[1],e)}))},r}function zs(e,t,n,r){var o=Qs(e);return r&&(o.has=function(r){var o=e.get(r,ua);return o!==ua&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,ua);return i!==ua&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate((function(e,i,l){if(t.call(n,e,i,l))return s++,o(e,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(2,i),s=0;return new Ua((function(){for(;;){var i=a.next();if(i.done)return i;var l=i.value,c=l[0],u=l[1];if(t.call(n,u,c,e))return Wa(o,r?c:s++,u,i)}}))},o}function Bs(e,t,n,r){var o=e.size;if(ga(t,n,o))return e;if("undefined"===typeof o&&(t<0||n<0))return Bs(e.toSeq().cacheResult(),t,n,r);var i,a=va(t,o),s=ya(n,o)-a;s===s&&(i=s<0?0:s);var l=Qs(e);return l.size=0===i?i:e.size&&i||void 0,!r&&Ma(e)&&i>=0&&(l.get=function(t,n){return(t=ha(this,t))>=0&&t<i?e.get(t+a,n):n}),l.__iterateUncached=function(t,n){var o=this;if(0===i)return 0;if(n)return this.cacheResult().__iterate(t,n);var s=0,l=!0,c=0;return e.__iterate((function(e,n){if(!l||!(l=s++<a))return c++,!1!==t(e,r?n:c-1,o)&&c!==i})),c},l.__iteratorUncached=function(t,n){if(0!==i&&n)return this.cacheResult().__iterator(t,n);if(0===i)return new Ua(qa);var o=e.__iterator(t,n),s=0,l=0;return new Ua((function(){for(;s++<a;)o.next();if(++l>i)return{value:void 0,done:!0};var e=o.next();return r||1===t||e.done?e:Wa(t,l-1,0===t?void 0:e.value[1],e)}))},l}function Vs(e,t,n,r){var o=Qs(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,l=0;return e.__iterate((function(e,i,c){if(!s||!(s=t.call(n,e,i,c)))return l++,o(e,r?i:l-1,a)})),l},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(2,i),l=!0,c=0;return new Ua((function(){var e,i,u;do{if((e=s.next()).done)return r||1===o?e:Wa(o,c++,0===o?void 0:e.value[1],e);var d=e.value;i=d[0],u=d[1],l&&(l=t.call(n,u,i,a))}while(l);return 2===o?e:Wa(o,i,u,e)}))},o}function Us(e,t,n){var r=Qs(e);return r.__iterateUncached=function(o,i){if(i)return this.cacheResult().__iterate(o,i);var a=0,s=!1;return function e(l,c){l.__iterate((function(i,l){return(!t||c<t)&&Aa(i)?e(i,c+1):(a++,!1===o(i,n?l:a-1,r)&&(s=!0)),!s}),i)}(e,0),a},r.__iteratorUncached=function(r,o){if(o)return this.cacheResult().__iterator(r,o);var i=e.__iterator(r,o),a=[],s=0;return new Ua((function(){for(;i;){var e=i.next();if(!1===e.done){var l=e.value;if(2===r&&(l=l[1]),t&&!(a.length<t)||!Aa(l))return n?e:Wa(r,s++,l,e);a.push(i),i=l.__iterator(r,o)}else i=a.pop()}return{value:void 0,done:!0}}))},r}function Ws(e,t,n){t||(t=Js);var r=_a(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).valueSeq().toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?Ja(i):Ca(e)?Za(i):es(i)}function qs(e,t,n){if(t||(t=Js),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return Hs(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return Hs(t,e,n)?n:e}))}function Hs(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(void 0===n||null===n||n!==n)||r>0}function Ys(e,t,n,r){var o=Qs(e),i=new ts(n).map((function(e){return e.size}));return o.size=r?i.max():i.min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=n.map((function(e){return e=Oa(e),Ga(o?e.reverse():e)})),a=0,s=!1;return new Ua((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=r?n.every((function(e){return e.done})):n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:Wa(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function Gs(e,t){return e===t?e:Ma(e)?t:e.constructor(t)}function Ks(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function $s(e){return _a(e)?Ta:Ca(e)?Ia:Ra}function Qs(e){return Object.create((_a(e)?Ja:Ca(e)?Za:es).prototype)}function Xs(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Xa.prototype.cacheResult.call(this)}function Js(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e<t?-1:0}function Zs(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function el(e,t){if(!e)throw new Error(t)}function tl(e){el(e!==1/0,"Cannot perform this action with an infinite size.")}function nl(e){if(Qa(e)&&"string"!==typeof e)return e;if(Fa(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}Ms.prototype.cacheResult=Ps.prototype.cacheResult=Ds.prototype.cacheResult=Ls.prototype.cacheResult=Xs;var rl=Object.prototype.toString;function ol(e){if(!e||"object"!==typeof e||"[object Object]"!==rl.call(e))return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t,r=Object.getPrototypeOf(t);null!==r;)n=r,r=Object.getPrototypeOf(n);return n===t}function il(e){return"object"===typeof e&&(ja(e)||Array.isArray(e)||ol(e))}function al(e){try{return"string"===typeof e?JSON.stringify(e):String(e)}catch(t){return JSON.stringify(e)}}function sl(e,t){return ja(e)?e.has(t):il(e)&&$a.call(e,t)}function ll(e,t,n){return ja(e)?e.get(t,n):sl(e,t)?"function"===typeof e.get?e.get(t):e[t]:n}function cl(e){if(Array.isArray(e))return Zs(e);var t={};for(var n in e)$a.call(e,n)&&(t[n]=e[n]);return t}function ul(e,t){if(!il(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(ja(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!$a.call(e,t))return e;var n=cl(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function dl(e,t,n){if(!il(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(ja(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if($a.call(e,t)&&n===e[t])return e;var r=cl(e);return r[t]=n,r}function fl(e,t,n,r){r||(r=n,n=void 0);var o=pl(ja(e),e,nl(t),0,n,r);return o===ua?n:o}function pl(e,t,n,r,o,i){var a=t===ua;if(r===n.length){var s=a?o:t,l=i(s);return l===s?t:l}if(!a&&!il(t))throw new TypeError("Cannot update within non-data-structure value in path ["+n.slice(0,r).map(al)+"]: "+t);var c=n[r],u=a?ua:ll(t,c,ua),d=pl(u===ua?e:ja(u),u,n,r+1,o,i);return d===u?t:d===ua?ul(t,c):dl(a?e?Yl():{}:t,c,d)}function hl(e,t,n){return fl(e,t,ua,(function(){return n}))}function ml(e,t){return hl(this,e,t)}function gl(e,t){return fl(e,t,(function(){return ua}))}function vl(e){return gl(this,e)}function yl(e,t,n,r){return fl(e,[t],n,r)}function bl(e,t,n){return 1===arguments.length?e(this):yl(this,e,t,n)}function wl(e,t,n){return fl(this,e,t,n)}function xl(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Sl(this,e)}function Al(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if("function"!==typeof e)throw new TypeError("Invalid merger function: "+e);return Sl(this,t,e)}function Sl(e,t,n){for(var r=[],o=0;o<t.length;o++){var i=Ta(t[o]);0!==i.size&&r.push(i)}return 0===r.length?e:0!==e.toSeq().size||e.__ownerID||1!==r.length?e.withMutations((function(e){for(var t=n?function(t,r){yl(e,r,ua,(function(e){return e===ua?t:n(e,t,r)}))}:function(t,n){e.set(n,t)},o=0;o<r.length;o++)r[o].forEach(t)})):e.constructor(r[0])}function _l(e,t,n){return kl(e,t,function(e){function t(n,r,o){return il(n)&&il(r)&&function(e,t){var n=Xa(e),r=Xa(t);return Ca(n)===Ca(r)&&_a(n)===_a(r)}(n,r)?kl(n,[r],t):e?e(n,r,o):r}return t}(n))}function kl(e,t,n){if(!il(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(ja(e))return"function"===typeof n&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),o=e,i=r?Ia:Ta,a=r?function(t){o===e&&(o=cl(o)),o.push(t)}:function(t,r){var i=$a.call(o,r),a=i&&n?n(o[r],t,r):t;i&&a===o[r]||(o===e&&(o=cl(o)),o[r]=a)},s=0;s<t.length;s++)i(t[s]).forEach(a);return o}function Cl(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return _l(this,e)}function El(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return _l(this,t,e)}function Ol(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return fl(this,e,Yl(),(function(e){return kl(e,t)}))}function Tl(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return fl(this,e,Yl(),(function(e){return _l(e,t)}))}function Il(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function Rl(){return this.__ownerID?this:this.__ensureOwner(new fa)}function Pl(){return this.__ensureOwner()}function Ml(){return this.__altered}var Dl=function(e){function t(t){return void 0===t||null===t?Yl():us(t)&&!Fa(t)?t:Yl().withMutations((function(n){var r=e(t);tl(r.size),r.forEach((function(e,t){return n.set(t,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Yl().withMutations((function(t){for(var n=0;n<e.length;n+=2){if(n+1>=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}}))},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return Gl(this,e,t)},t.prototype.remove=function(e){return Gl(this,e,ua)},t.prototype.deleteAll=function(e){var t=Oa(e);return 0===t.size?this:this.withMutations((function(e){t.forEach((function(t){return e.remove(t)}))}))},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Yl()},t.prototype.sort=function(e){return yc(Ws(this,e))},t.prototype.sortBy=function(e,t){return yc(Ws(this,t,e))},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){r.forEach((function(o,i){r.set(i,e.call(t,o,i,n))}))}))},t.prototype.__iterator=function(e,t){return new Ul(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Hl(this.size,this._root,e,this.__hash):0===this.size?Yl():(this.__ownerID=e,this.__altered=!1,this)},t}(Ta);Dl.isMap=us;var Ll=Dl.prototype;Ll[cs]=!0,Ll[sa]=Ll.remove,Ll.removeAll=Ll.deleteAll,Ll.setIn=ml,Ll.removeIn=Ll.deleteIn=vl,Ll.update=bl,Ll.updateIn=wl,Ll.merge=Ll.concat=xl,Ll.mergeWith=Al,Ll.mergeDeep=Cl,Ll.mergeDeepWith=El,Ll.mergeIn=Ol,Ll.mergeDeepIn=Tl,Ll.withMutations=Il,Ll.wasAltered=Ml,Ll.asImmutable=Pl,Ll["@@transducer/init"]=Ll.asMutable=Rl,Ll["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},Ll["@@transducer/result"]=function(e){return e.asImmutable()};var jl=function(e,t){this.ownerID=e,this.entries=t};jl.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ps(n,o[i][0]))return o[i][1];return r},jl.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===ua,l=this.entries,c=0,u=l.length;c<u&&!ps(r,l[c][0]);c++);var d=c<u;if(d?l[c][1]===o:s)return this;if(da(a),(s||!d)&&da(i),!s||1!==l.length){if(!d&&!s&&l.length>=Zl)return function(e,t,n,r){e||(e=new fa);for(var o=new Bl(e,vs(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}(e,l,r,o);var f=e&&e===this.ownerID,p=f?l:Zs(l);return d?s?c===u-1?p.pop():p[c]=p.pop():p[c]=[r,o]:p.push([r,o]),f?(this.entries=p,this):new jl(e,p)}};var Nl=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n};Nl.prototype.get=function(e,t,n,r){void 0===t&&(t=vs(n));var o=1<<((0===e?t:t>>>e)&ca),i=this.bitmap;return 0===(i&o)?r:this.nodes[Xl(i&o-1)].get(e+5,t,n,r)},Nl.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=vs(r));var s=(0===t?n:n>>>t)&ca,l=1<<s,c=this.bitmap,u=0!==(c&l);if(!u&&o===ua)return this;var d=Xl(c&l-1),f=this.nodes,p=u?f[d]:void 0,h=Kl(p,e,t+5,n,r,o,i,a);if(h===p)return this;if(!u&&h&&f.length>=ec)return function(e,t,n,r,o){for(var i=0,a=new Array(la),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new Fl(e,i+1,a)}(e,f,c,s,h);if(u&&!h&&2===f.length&&$l(f[1^d]))return f[1^d];if(u&&h&&1===f.length&&$l(h))return h;var m=e&&e===this.ownerID,g=u?h?c:c^l:c|l,v=u?h?Jl(f,d,h,m):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}(f,d,m):function(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}(f,d,h,m);return m?(this.bitmap=g,this.nodes=v,this):new Nl(e,g,v)};var Fl=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n};Fl.prototype.get=function(e,t,n,r){void 0===t&&(t=vs(n));var o=(0===e?t:t>>>e)&ca,i=this.nodes[o];return i?i.get(e+5,t,n,r):r},Fl.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=vs(r));var s=(0===t?n:n>>>t)&ca,l=o===ua,c=this.nodes,u=c[s];if(l&&!u)return this;var d=Kl(u,e,t+5,n,r,o,i,a);if(d===u)return this;var f=this.count;if(u){if(!d&&--f<tc)return function(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,l=1,c=t.length;s<c;s++,l<<=1){var u=t[s];void 0!==u&&s!==r&&(o|=l,a[i++]=u)}return new Nl(e,o,a)}(e,c,f,s)}else f++;var p=e&&e===this.ownerID,h=Jl(c,s,d,p);return p?(this.count=f,this.nodes=h,this):new Fl(e,f,h)};var zl=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n};zl.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ps(n,o[i][0]))return o[i][1];return r},zl.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=vs(r));var s=o===ua;if(n!==this.keyHash)return s?this:(da(a),da(i),Ql(this,e,t,n,[r,o]));for(var l=this.entries,c=0,u=l.length;c<u&&!ps(r,l[c][0]);c++);var d=c<u;if(d?l[c][1]===o:s)return this;if(da(a),(s||!d)&&da(i),s&&2===u)return new Bl(e,this.keyHash,l[1^c]);var f=e&&e===this.ownerID,p=f?l:Zs(l);return d?s?c===u-1?p.pop():p[c]=p.pop():p[c]=[r,o]:p.push([r,o]),f?(this.entries=p,this):new zl(e,this.keyHash,p)};var Bl=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n};Bl.prototype.get=function(e,t,n,r){return ps(n,this.entry[0])?this.entry[1]:r},Bl.prototype.update=function(e,t,n,r,o,i,a){var s=o===ua,l=ps(r,this.entry[0]);return(l?o===this.entry[1]:s)?this:(da(a),s?void da(i):l?e&&e===this.ownerID?(this.entry[1]=o,this):new Bl(e,this.keyHash,[r,o]):(da(i),Ql(this,e,t,vs(r),[r,o])))},jl.prototype.iterate=zl.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Nl.prototype.iterate=Fl.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Bl.prototype.iterate=function(e,t){return e(this.entry)};var Vl,Ul=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&ql(e._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,r=t.index++,o=void 0;if(n.entry){if(0===r)return Wl(e,n.entry)}else if(n.entries){if(r<=(o=n.entries.length-1))return Wl(e,n.entries[this._reverse?o-r:r])}else if(r<=(o=n.nodes.length-1)){var i=n.nodes[this._reverse?o-r:r];if(i){if(i.entry)return Wl(e,i.entry);t=this._stack=ql(i,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}},t}(Ua);function Wl(e,t){return Wa(e,t[0],t[1])}function ql(e,t){return{node:e,index:0,__prev:t}}function Hl(e,t,n,r){var o=Object.create(Ll);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Yl(){return Vl||(Vl=Hl(0))}function Gl(e,t,n){var r,o;if(e._root){var i={value:!1},a={value:!1};if(r=Kl(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===ua?-1:1:0)}else{if(n===ua)return e;o=1,r=new jl(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Hl(o,r):Yl()}function Kl(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===ua?e:(da(s),da(a),new Bl(t,r,[o,i]))}function $l(e){return e.constructor===Bl||e.constructor===zl}function Ql(e,t,n,r,o){if(e.keyHash===r)return new zl(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&ca,s=(0===n?r:r>>>n)&ca,l=a===s?[Ql(e,t,n+5,r,o)]:(i=new Bl(t,r,o),a<s?[e,i]:[i,e]);return new Nl(t,1<<a|1<<s,l)}function Xl(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Jl(e,t,n,r){var o=r?e:Zs(e);return o[t]=n,o}var Zl=8,ec=16,tc=8,nc="@@__IMMUTABLE_LIST__@@";function rc(e){return Boolean(e&&e[nc])}var oc=function(e){function t(t){var n=dc();if(void 0===t||null===t)return n;if(rc(t))return t;var r=e(t),o=r.size;return 0===o?n:(tl(o),o>0&&o<la?uc(0,o,5,null,new ac(r.toArray())):n.withMutations((function(e){e.setSize(o),r.forEach((function(t,n){return e.set(n,t)}))})))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(e,t){if((e=ha(this,e))>=0&&e<this.size){var n=hc(this,e+=this._origin);return n&&n.array[e&ca]}return t},t.prototype.set=function(e,t){return function(e,t,n){if(t=ha(e,t),t!==t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?mc(e,t).set(0,n):mc(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i={value:!1};t>=gc(e._capacity)?r=fc(r,e.__ownerID,0,t,n,i):o=fc(o,e.__ownerID,e._level,t,n,i);if(!i.value)return e;if(e.__ownerID)return e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e;return uc(e._origin,e._capacity,e._level,o,r)}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):dc()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){mc(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},t.prototype.pop=function(){return mc(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){mc(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},t.prototype.shift=function(){return mc(this,1)},t.prototype.concat=function(){for(var t=arguments,n=[],r=0;r<arguments.length;r++){var o=t[r],i=e("string"!==typeof o&&Ha(o)?o:[o]);0!==i.size&&n.push(i)}return 0===n.length?this:0!==this.size||this.__ownerID||1!==n.length?this.withMutations((function(e){n.forEach((function(t){return t.forEach((function(t){return e.push(t)}))}))})):this.constructor(n[0])},t.prototype.setSize=function(e){return mc(this,0,e)},t.prototype.map=function(e,t){var n=this;return this.withMutations((function(r){for(var o=0;o<n.size;o++)r.set(o,e.call(t,r.get(o),o,n))}))},t.prototype.slice=function(e,t){var n=this.size;return ga(e,t,n)?this:mc(this,va(e,n),ya(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=cc(this,t);return new Ua((function(){var o=r();return o===lc?{value:void 0,done:!0}:Wa(e,t?--n:n++,o)}))},t.prototype.__iterate=function(e,t){for(var n,r=t?this.size:0,o=cc(this,t);(n=o())!==lc&&!1!==e(n,t?--r:r++,this););return r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?uc(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):0===this.size?dc():(this.__ownerID=e,this.__altered=!1,this)},t}(Ia);oc.isList=rc;var ic=oc.prototype;ic[nc]=!0,ic[sa]=ic.remove,ic.merge=ic.concat,ic.setIn=ml,ic.deleteIn=ic.removeIn=vl,ic.update=bl,ic.updateIn=wl,ic.mergeIn=Ol,ic.mergeDeepIn=Tl,ic.withMutations=Il,ic.wasAltered=Ml,ic.asImmutable=Pl,ic["@@transducer/init"]=ic.asMutable=Rl,ic["@@transducer/step"]=function(e,t){return e.push(t)},ic["@@transducer/result"]=function(e){return e.asImmutable()};var ac=function(e,t){this.array=e,this.ownerID=t};ac.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&ca;if(r>=this.array.length)return new ac([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-5,n))===a&&i)return this}if(i&&!o)return this;var s=pc(this,e);if(!i)for(var l=0;l<r;l++)s.array[l]=void 0;return o&&(s.array[r]=o),s},ac.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&ca;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-5,n))===i&&o===this.array.length-1)return this}var a=pc(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var sc,lc={};function cc(e,t){var n=e._origin,r=e._capacity,o=gc(r),i=e._tail;return a(e._root,e._level,0);function a(e,s,l){return 0===s?function(e,a){var s=a===o?i&&i.array:e&&e.array,l=a>n?0:n-a,c=r-a;c>la&&(c=la);return function(){if(l===c)return lc;var e=t?--c:l++;return s&&s[e]}}(e,l):function(e,o,i){var s,l=e&&e.array,c=i>n?0:n-i>>o,u=1+(r-i>>o);u>la&&(u=la);return function(){for(;;){if(s){var e=s();if(e!==lc)return e;s=null}if(c===u)return lc;var n=t?--u:c++;s=a(l&&l[n],o-5,i+(n<<o))}}}(e,s,l)}}function uc(e,t,n,r,o,i,a){var s=Object.create(ic);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function dc(){return sc||(sc=uc(0,0,5))}function fc(e,t,n,r,o,i){var a,s=r>>>n&ca,l=e&&s<e.array.length;if(!l&&void 0===o)return e;if(n>0){var c=e&&e.array[s],u=fc(c,t,n-5,r,o,i);return u===c?e:((a=pc(e,t)).array[s]=u,a)}return l&&e.array[s]===o?e:(i&&da(i),a=pc(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function pc(e,t){return t&&e&&t===e.ownerID?e:new ac(e?e.array.slice():[],t)}function hc(e,t){if(t>=gc(e._capacity))return e._tail;if(t<1<<e._level+5){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&ca],r-=5;return n}}function mc(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new fa,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var l=e._level,c=e._root,u=0;a+u<0;)c=new ac(c&&c.array.length?[void 0,c]:[],r),u+=1<<(l+=5);u&&(a+=u,o+=u,s+=u,i+=u);for(var d=gc(i),f=gc(s);f>=1<<l+5;)c=new ac(c&&c.array.length?[c]:[],r),l+=5;var p=e._tail,h=f<d?hc(e,s-1):f>d?new ac([],r):p;if(p&&f>d&&a<i&&p.array.length){for(var m=c=pc(c,r),g=l;g>5;g-=5){var v=d>>>g&ca;m=m.array[v]=pc(m.array[v],r)}m.array[d>>>5&ca]=p}if(s<i&&(h=h&&h.removeAfter(r,0,s)),a>=f)a-=f,s-=f,l=5,c=null,h=h&&h.removeBefore(r,0,a);else if(a>o||f<d){for(u=0;c;){var y=a>>>l&ca;if(y!==f>>>l&ca)break;y&&(u+=(1<<l)*y),l-=5,c=c.array[y]}c&&a>o&&(c=c.removeBefore(r,l,a-u)),c&&f<d&&(c=c.removeAfter(r,l,f-u)),u&&(a-=u,s-=u)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=l,e._root=c,e._tail=h,e.__hash=void 0,e.__altered=!0,e):uc(a,s,l,c,h)}function gc(e){return e<la?0:e-1>>>5<<5}var vc,yc=function(e){function t(e){return void 0===e||null===e?wc():ds(e)?e:wc().withMutations((function(t){var n=Ta(e);tl(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):wc()},t.prototype.set=function(e,t){return xc(this,e,t)},t.prototype.remove=function(e){return xc(this,e,ua)},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?bc(t,n,e,this.__hash):0===this.size?wc():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this)},t}(Dl);function bc(e,t,n,r){var o=Object.create(yc.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function wc(){return vc||(vc=bc(Yl(),dc()))}function xc(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),l=void 0!==s;if(n===ua){if(!l)return e;a.size>=la&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(l){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e.__altered=!0,e):bc(r,o)}yc.isOrderedMap=ds,yc.prototype[Na]=!0,yc.prototype[sa]=yc.prototype.remove;var Ac="@@__IMMUTABLE_STACK__@@";function Sc(e){return Boolean(e&&e[Ac])}var _c=function(e){function t(e){return void 0===e||null===e?Oc():Sc(e)?e:Oc().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=ha(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Ec(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&Sc(t))return t;tl(t.size);var n=this.size,r=this._head;return t.__iterate((function(e){n++,r={value:e,next:r}}),!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):Ec(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Oc()},t.prototype.slice=function(t,n){if(ga(t,n,this.size))return this;var r=va(t,this.size);if(ya(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var o=this.size-r,i=this._head;r--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):Ec(o,i)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ec(this.size,this._head,e,this.__hash):0===this.size?Oc():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new ts(this.toArray()).__iterate((function(t,r){return e(t,r,n)}),t);for(var r=0,o=this._head;o&&!1!==e(o.value,r++,this);)o=o.next;return r},t.prototype.__iterator=function(e,t){if(t)return new ts(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new Ua((function(){if(r){var t=r.value;return r=r.next,Wa(e,n++,t)}return{value:void 0,done:!0}}))},t}(Ia);_c.isStack=Sc;var kc,Cc=_c.prototype;function Ec(e,t,n,r){var o=Object.create(Cc);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Oc(){return kc||(kc=Ec(0))}Cc[Ac]=!0,Cc.shift=Cc.pop,Cc.unshift=Cc.push,Cc.unshiftAll=Cc.pushAll,Cc.withMutations=Il,Cc.wasAltered=Ml,Cc.asImmutable=Pl,Cc["@@transducer/init"]=Cc.asMutable=Rl,Cc["@@transducer/step"]=function(e,t){return e.unshift(t)},Cc["@@transducer/result"]=function(e){return e.asImmutable()};var Tc="@@__IMMUTABLE_SET__@@";function Ic(e){return Boolean(e&&e[Tc])}function Rc(e){return Ic(e)&&Fa(e)}function Pc(e,t){if(e===t)return!0;if(!Aa(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||_a(e)!==_a(t)||Ca(e)!==Ca(t)||Fa(e)!==Fa(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!Ea(e);if(Fa(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ps(o[1],e)&&(n||ps(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"===typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var a=!0,s=t.__iterate((function(t,r){if(n?!e.has(t):o?!ps(t,e.get(r,ua)):!ps(e.get(r,ua),t))return a=!1,!1}));return a&&e.size===s}function Mc(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function Dc(e){if(!e||"object"!==typeof e)return e;if(!Aa(e)){if(!il(e))return e;e=Xa(e)}if(_a(e)){var t={};return e.__iterate((function(e,n){t[n]=Dc(e)})),t}var n=[];return e.__iterate((function(e){n.push(Dc(e))})),n}var Lc=function(e){function t(t){return void 0===t||null===t?Bc():Ic(t)&&!Fa(t)?t:Bc().withMutations((function(n){var r=e(t);tl(r.size),r.forEach((function(e){return n.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(Ta(e).keySeq())},t.intersect=function(e){return(e=Oa(e).toArray()).length?Nc.intersect.apply(t(e.pop()),e):Bc()},t.union=function(e){return(e=Oa(e).toArray()).length?Nc.union.apply(t(e.pop()),e):Bc()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return Fc(this,this._map.set(e,e))},t.prototype.remove=function(e){return Fc(this,this._map.remove(e))},t.prototype.clear=function(){return Fc(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=!1,o=Fc(this,this._map.mapEntries((function(o){var i=o[1],a=e.call(t,i,i,n);return a!==i&&(r=!0),[a,a]}),t));return r?o:this},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(n){for(var r=0;r<t.length;r++)"string"===typeof t[r]?n.add(t[r]):e(t[r]).forEach((function(e){return n.add(e)}))})):this.constructor(t[0])},t.prototype.intersect=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.every((function(t){return t.includes(e)}))||r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.subtract=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(0===t.length)return this;t=t.map((function(t){return e(t)}));var r=[];return this.forEach((function(e){t.some((function(t){return t.includes(e)}))&&r.push(e)})),this.withMutations((function(e){r.forEach((function(t){e.remove(t)}))}))},t.prototype.sort=function(e){return iu(Ws(this,e))},t.prototype.sortBy=function(e,t){return iu(Ws(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t){return e(t,t,n)}),t)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):0===this.size?this.__empty():(this.__ownerID=e,this._map=t,this)},t}(Ra);Lc.isSet=Ic;var jc,Nc=Lc.prototype;function Fc(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function zc(e,t){var n=Object.create(Nc);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Bc(){return jc||(jc=zc(Yl()))}Nc[Tc]=!0,Nc[sa]=Nc.remove,Nc.merge=Nc.concat=Nc.union,Nc.withMutations=Il,Nc.asImmutable=Pl,Nc["@@transducer/init"]=Nc.asMutable=Rl,Nc["@@transducer/step"]=function(e,t){return e.add(t)},Nc["@@transducer/result"]=function(e){return e.asImmutable()},Nc.__empty=Bc,Nc.__make=zc;var Vc,Uc=function(e){function t(e,n,r){if(!(this instanceof t))return new t(e,n,r);if(el(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===n&&(n=1/0),r=void 0===r?1:Math.abs(r),n<e&&(r=-r),this._start=e,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-e)/r-1)+1),0===this.size){if(Vc)return Vc;Vc=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},t.prototype.get=function(e,t){return this.has(e)?this._start+ha(this,e)*this._step:t},t.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},t.prototype.slice=function(e,n){return ga(e,n,this.size)?this:(e=va(e,this.size),(n=ya(n,this.size))<=e?new t(0,0):new t(this.get(e,this._end),this.get(n,this._end),this._step))},t.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},t.prototype.lastIndexOf=function(e){return this.indexOf(e)},t.prototype.__iterate=function(e,t){for(var n=this.size,r=this._step,o=t?this._start+(n-1)*r:this._start,i=0;i!==n&&!1!==e(o,t?n-++i:i++,this);)o+=t?-r:r;return i},t.prototype.__iterator=function(e,t){var n=this.size,r=this._step,o=t?this._start+(n-1)*r:this._start,i=0;return new Ua((function(){if(i===n)return{value:void 0,done:!0};var a=o;return o+=t?-r:r,Wa(e,t?n-++i:i++,a)}))},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:Pc(this,e)},t}(Za);function Wc(e,t,n){for(var r=nl(t),o=0;o!==r.length;)if((e=ll(e,r[o++],ua))===ua)return n;return e}function qc(e,t){return Wc(this,e,t)}function Hc(e,t){return Wc(e,t,ua)!==ua}function Yc(){tl(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e}Oa.isIterable=Aa,Oa.isKeyed=_a,Oa.isIndexed=Ca,Oa.isAssociative=Ea,Oa.isOrdered=Fa,Oa.Iterator=Ua,Mc(Oa,{toArray:function(){tl(this.size);var e=new Array(this.size||0),t=_a(this),n=0;return this.__iterate((function(r,o){e[n++]=t?[o,r]:r})),e},toIndexedSeq:function(){return new Ms(this)},toJS:function(){return Dc(this)},toKeyedSeq:function(){return new Ps(this,!0)},toMap:function(){return Dl(this.toKeyedSeq())},toObject:Yc,toOrderedMap:function(){return yc(this.toKeyedSeq())},toOrderedSet:function(){return iu(_a(this)?this.valueSeq():this)},toSet:function(){return Lc(_a(this)?this.valueSeq():this)},toSetSeq:function(){return new Ds(this)},toSeq:function(){return Ca(this)?this.toIndexedSeq():_a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return _c(_a(this)?this.valueSeq():this)},toList:function(){return oc(_a(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Gs(this,function(e,t){var n=_a(e),r=[e].concat(t).map((function(e){return Aa(e)?n&&(e=Ta(e)):e=n?as(e):ss(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===r.length)return e;if(1===r.length){var o=r[0];if(o===e||n&&_a(o)||Ca(e)&&Ca(o))return o}var i=new ts(r);return n?i=i.toKeyedSeq():Ca(e)||(i=i.toSetSeq()),(i=i.flatten(!0)).size=r.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),i}(this,e))},includes:function(e){return this.some((function(t){return ps(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){tl(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return Gs(this,zs(this,e,t,!0))},partition:function(e,t){return function(e,t,n){var r=_a(e),o=[[],[]];e.__iterate((function(i,a){o[t.call(n,i,a,e)?1:0].push(r?[a,i]:i)}));var i=$s(e);return o.map((function(t){return Gs(e,i(t))}))}(this,e,t)},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return tl(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){tl(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""})),t},keys:function(){return this.__iterator(0)},map:function(e,t){return Gs(this,Ns(this,e,t))},reduce:function(e,t,n){return Xc(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return Xc(this,e,t,n,arguments.length<2,!0)},reverse:function(){return Gs(this,Fs(this,!0))},slice:function(e,t){return Gs(this,Bs(this,e,t,!0))},some:function(e,t){tl(this.size);var n=!1;return this.__iterate((function(r,o,i){if(e.call(t,r,o,i))return n=!0,!1})),n},sort:function(e){return Gs(this,Ws(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return pa(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Dl().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return Pc(this,e)},entrySeq:function(){var e=this;if(e._cache)return new ts(e._cache);var t=e.toSeq().map(Zc).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(eu(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate((function(n,o,i){if(e.call(t,n,o,i))return r=[o,n],!1})),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(ma,null,e)},flatMap:function(e,t){return Gs(this,function(e,t,n){var r=$s(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return Gs(this,Us(this,e,!0))},fromEntrySeq:function(){return new Ls(this)},get:function(e,t){return this.find((function(t,n){return ps(n,e)}),void 0,t)},getIn:qc,groupBy:function(e,t){return function(e,t,n){var r=_a(e),o=(Fa(e)?yc():Dl()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=$s(e);return o.map((function(t){return Gs(e,i(t))})).asImmutable()}(this,e,t)},has:function(e){return this.get(e,ua)!==ua},hasIn:function(e){return Hc(this,e)},isSubset:function(e){return e="function"===typeof e.includes?e:Oa(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"===typeof e.isSubset?e:Oa(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return ps(t,e)}))},keySeq:function(){return this.toSeq().map(Jc).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return qs(this,e)},maxBy:function(e,t){return qs(this,t,e)},min:function(e){return qs(this,e?tu(e):ru)},minBy:function(e,t){return qs(this,t?tu(t):ru,e)},rest:function(){return this.slice(1)},skip:function(e){return 0===e?this:this.slice(Math.max(0,e))},skipLast:function(e){return 0===e?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return Gs(this,Vs(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(eu(e),t)},sortBy:function(e,t){return Gs(this,Ws(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return Gs(this,function(e,t,n){var r=Qs(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(2,o),s=!0;return new Ua((function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var o=e.value,l=o[0],c=o[1];return t.call(n,c,l,i)?2===r?e:Wa(r,l,c,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(eu(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=Fa(e),n=_a(e),r=t?1:0;return function(e,t){return t=hs(t,3432918353),t=hs(t<<15|t>>>-15,461845907),t=hs(t<<13|t>>>-13,5),t=t+3864292196^e,t=hs(t^t>>>16,2246822507),t=hs(t^t>>>13,3266489909),t=ms(t^t>>>16),t}(e.__iterate(n?t?function(e,t){r=31*r+ou(vs(e),vs(t))|0}:function(e,t){r=r+ou(vs(e),vs(t))|0}:t?function(e){r=31*r+vs(e)|0}:function(e){r=r+vs(e)|0}),r)}(this))}});var Gc=Oa.prototype;Gc[xa]=!0,Gc[Va]=Gc.values,Gc.toJSON=Gc.toArray,Gc.__toStringMapper=al,Gc.inspect=Gc.toSource=function(){return this.toString()},Gc.chain=Gc.flatMap,Gc.contains=Gc.includes,Mc(Ta,{flip:function(){return Gs(this,js(this))},mapEntries:function(e,t){var n=this,r=0;return Gs(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Gs(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Kc=Ta.prototype;Kc[Sa]=!0,Kc[Va]=Gc.entries,Kc.toJSON=Yc,Kc.__toStringMapper=function(e,t){return al(t)+": "+al(e)},Mc(Ia,{toKeyedSeq:function(){return new Ps(this,!1)},filter:function(e,t){return Gs(this,zs(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return Gs(this,Fs(this,!1))},slice:function(e,t){return Gs(this,Bs(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=va(e,e<0?this.count():this.size);var r=this.slice(0,e);return Gs(this,1===n?r:r.concat(Zs(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return Gs(this,Us(this,e,!1))},get:function(e,t){return(e=ha(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=ha(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return Gs(this,function(e,t){var n=Qs(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(1,r),a=0;return new Ua((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?Wa(n,a++,t):Wa(n,a++,o.value,o)}))},n}(this,e))},interleave:function(){var e=[this].concat(Zs(arguments)),t=Ys(this.toSeq(),Za.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),Gs(this,n)},keySeq:function(){return Uc(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return Gs(this,Vs(this,e,t,!1))},zip:function(){return Gs(this,Ys(this,nu,[this].concat(Zs(arguments))))},zipAll:function(){return Gs(this,Ys(this,nu,[this].concat(Zs(arguments)),!0))},zipWith:function(e){var t=Zs(arguments);return t[0]=this,Gs(this,Ys(this,e,t))}});var $c=Ia.prototype;$c[ka]=!0,$c[Na]=!0,Mc(Ra,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}});var Qc=Ra.prototype;function Xc(e,t,n,r,o,i){return tl(e.size),e.__iterate((function(e,i,a){o?(o=!1,n=e):n=t.call(r,n,e,i,a)}),i),n}function Jc(e,t){return t}function Zc(e,t){return[t,e]}function eu(e){return function(){return!e.apply(this,arguments)}}function tu(e){return function(){return-e.apply(this,arguments)}}function nu(){return Zs(arguments)}function ru(e,t){return e<t?1:e>t?-1:0}function ou(e,t){return e^t+2654435769+(e<<6)+(e>>2)}Qc.has=Gc.includes,Qc.contains=Qc.includes,Qc.keys=Qc.values,Mc(Ja,Kc),Mc(Za,$c),Mc(es,Qc);var iu=function(e){function t(e){return void 0===e||null===e?cu():Rc(e)?e:cu().withMutations((function(t){var n=Ra(e);tl(n.size),n.forEach((function(e){return t.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(Ta(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(Lc);iu.isOrderedSet=Rc;var au,su=iu.prototype;function lu(e,t){var n=Object.create(su);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function cu(){return au||(au=lu(wc()))}su[Na]=!0,su.zip=$c.zip,su.zipWith=$c.zipWith,su.zipAll=$c.zipAll,su.__empty=cu,su.__make=lu;var uu=function(e,t){var n;!function(e){if(La(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(ja(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===e||"object"!==typeof e)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(e);var r=function(i){var a=this;if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var s=Object.keys(e),l=o._indices={};o._name=t,o._keys=s,o._defaultValues=e;for(var c=0;c<s.length;c++){var u=s[c];l[u]=c,o[u]?"object"===typeof console&&console.warn&&console.warn("Cannot define "+pu(this)+' with property "'+u+'" since that property name is part of the Record API.'):mu(o,u)}}return this.__ownerID=void 0,this._values=oc().withMutations((function(e){e.setSize(a._keys.length),Ta(i).forEach((function(t,n){e.set(a._indices[n],t===a._defaultValues[n]?void 0:t)}))})),this},o=r.prototype=Object.create(du);return o.constructor=r,t&&(r.displayName=t),r};uu.prototype.toString=function(){for(var e,t=pu(this)+" { ",n=this._keys,r=0,o=n.length;r!==o;r++)t+=(r?", ":"")+(e=n[r])+": "+al(this.get(e));return t+" }"},uu.prototype.equals=function(e){return this===e||La(e)&&hu(this).equals(hu(e))},uu.prototype.hashCode=function(){return hu(this).hashCode()},uu.prototype.has=function(e){return this._indices.hasOwnProperty(e)},uu.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._indices[e],r=this._values.get(n);return void 0===r?this._defaultValues[e]:r},uu.prototype.set=function(e,t){if(this.has(e)){var n=this._values.set(this._indices[e],t===this._defaultValues[e]?void 0:t);if(n!==this._values&&!this.__ownerID)return fu(this,n)}return this},uu.prototype.remove=function(e){return this.set(e)},uu.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:fu(this,e)},uu.prototype.wasAltered=function(){return this._values.wasAltered()},uu.prototype.toSeq=function(){return hu(this)},uu.prototype.toJS=function(){return Dc(this)},uu.prototype.entries=function(){return this.__iterator(2)},uu.prototype.__iterator=function(e,t){return hu(this).__iterator(e,t)},uu.prototype.__iterate=function(e,t){return hu(this).__iterate(e,t)},uu.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?fu(this,t,e):(this.__ownerID=e,this._values=t,this)},uu.isRecord=La,uu.getDescriptiveName=pu;var du=uu.prototype;function fu(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function pu(e){return e.constructor.displayName||e.constructor.name||"Record"}function hu(e){return as(e._keys.map((function(t){return[t,e.get(t)]})))}function mu(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){el(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}catch(n){}}du[Da]=!0,du[sa]=du.remove,du.deleteIn=du.removeIn=vl,du.getIn=qc,du.hasIn=Gc.hasIn,du.merge=xl,du.mergeWith=Al,du.mergeIn=Ol,du.mergeDeep=Cl,du.mergeDeepWith=El,du.mergeDeepIn=Tl,du.setIn=ml,du.update=bl,du.updateIn=wl,du.withMutations=Il,du.asMutable=Rl,du.asImmutable=Pl,du[Va]=du.entries,du.toJSON=du.toObject=Gc.toObject,du.inspect=du.toSource=function(){return this.toString()};function gu(e,t){return vu([],t||yu,e,"",t&&t.length>2?[]:void 0,{"":e})}function vu(e,t,n,r,o,i){if("string"!==typeof n&&!ja(n)&&(Qa(n)||Ha(n)||ol(n))){if(~e.indexOf(n))throw new TypeError("Cannot convert circular structure to Immutable");e.push(n),o&&""!==r&&o.push(r);var a=t.call(i,r,Xa(n).map((function(r,i){return vu(e,t,r,i,o,n)})),o&&o.slice());return e.pop(),o&&o.pop(),a}return n}function yu(e,t){return Ca(t)?t.toList():_a(t)?t.toMap():t.toSet()}function bu(e){return null!==e&&"object"===typeof e&&!Array.isArray(e)&&"function"===typeof e[window.Symbol.iterator]}function wu(e,t){return t&&Array.isArray(e)&&(e=e[2===e.length?1:0]),!bu(e)||(_a(n=e)||Ca(n)||Aa(n))?Array.isArray(e)?e.length>0?"[\u2026]":"[]":null===e?"null":void 0===e?"undef":"object"===typeof e?Object.keys(e).length>0?"{\u2026}":"{}":"function"===typeof e?"fn":"string"===typeof e?'"'.concat(e.substr(0,10)+(e.length>10?"\u2026":""),'"'):"symbol"===typeof e?"symbol":e:"(\u2026)";var n}const xu=(e,t,n,r,o)=>(0,ai.Y)("span",{css:e=>({color:e.ITEM_HINT_COLOR})},t["@@__IS_IMMUTABLE__@@"]?"Immutable":"",n&&t[n]?"".concat(t[n]," "):"",function(e,t,n,r){if("Object"===e){const e=Object.keys(t);if(!n)return e.length?"{\u2026}":"{}";const o=e.slice(0,3).map((e=>"".concat(e,": ").concat(wu(t[e],r)))).concat(e.length>3?["\u2026"]:[]).join(", ");return"{ ".concat(o," }")}if("Array"===e){if(!n)return t.length?"[\u2026]":"[]";const e=t.slice(0,4).map((e=>wu(e,r))).concat(t.length>4?["\u2026"]:[]).join(", ");return"[".concat(e,"]")}return e}(e,t,r,o));function Au(e){return{extend:e,nestedNode:(e,t,n,r)=>{let{style:o}=e;return{style:(0,l.A)((0,l.A)({},o),{},{whiteSpace:r?"inherit":"nowrap"})}},nestedNodeItemString:(e,t,n,r)=>{let{style:o}=e;return{style:(0,l.A)((0,l.A)({},o),{},{display:r?"none":"inline"})}}}}const Su=["base16Theme"];function _u(e,t){if(null===e)return"null";const n=(0,aa.A)(e);return"undefined"===typeof n?"undefined":t?n.length>42?n.substr(0,30)+"\u2026"+n.substr(-10):n:n.length>22?"".concat(n.substr(0,15),"\u2026").concat(n.substr(-5)):n}const ku=(e,t,n)=>n<=1;function Cu(e){if(e&&"a"===e._t){const t={};for(const n in e)"_t"!==n&&("_"!==n[0]||e[n.substr(1)]?e["_"+n]?t[n]=[e["_"+n][0],e[n][0]]:e["_"+n]||"_"===n[0]||(t[n]=e[n]):t[n.substr(1)]=e[n]);return t}return e}const Eu=e=>({padding:"2px 3px",borderRadius:"3px",position:"relative",color:e.TEXT_COLOR}),Ou={name:"179t5g5",styles:"position:relative;z-index:1"};class Tu extends a.Component{constructor(){super(...arguments),(0,o.A)(this,"state",{data:{}}),(0,o.A)(this,"getItemString",((e,t)=>xu(e,t,this.props.dataTypeKey,this.props.isWideLayout,!0))),(0,o.A)(this,"valueRenderer",((e,t)=>{const{isWideLayout:n}=this.props;if(Array.isArray(t))switch(t.length){case 1:return(0,ai.Y)("span",{css:Ou},(0,ai.Y)("span",{key:"diffAdd",css:[Eu,e=>({backgroundColor:e.DIFF_ADD_COLOR}),"",""]},_u(t[0],n)));case 2:return(0,ai.Y)("span",{css:Ou},(0,ai.Y)("span",{key:"diffUpdateFrom",css:[Eu,e=>({textDecoration:"line-through",backgroundColor:e.DIFF_REMOVE_COLOR}),"",""]},_u(t[0],n)),(0,ai.Y)("span",{key:"diffUpdateArrow",css:[Eu,e=>({color:e.DIFF_ARROW_COLOR}),"",""]}," => "),(0,ai.Y)("span",{key:"diffUpdateTo",css:[Eu,e=>({backgroundColor:e.DIFF_ADD_COLOR}),"",""]},_u(t[1],n)));case 3:return(0,ai.Y)("span",{css:Ou},(0,ai.Y)("span",{key:"diffRemove",css:[Eu,e=>({textDecoration:"line-through",backgroundColor:e.DIFF_REMOVE_COLOR}),"",""]},_u(t[0])))}return e}))}componentDidMount(){this.updateData()}componentDidUpdate(e){e.delta!==this.props.delta&&this.updateData()}updateData(){this.setState({data:this.props.delta})}render(){const e=this.props,{base16Theme:t}=e,n=(0,ln.A)(e,Su);return this.state.data?(0,ai.Y)(ia,sn({},n,{theme:Au(t),data:this.state.data,getItemString:this.getItemString,valueRenderer:this.valueRenderer,postprocessValue:Cu,isCustomNode:Array.isArray,shouldExpandNodeInitially:ku,hideRoot:!0})):(0,ai.Y)("div",{css:e=>({padding:"10px",color:e.TEXT_PLACEHOLDER_COLOR})},"(states are equal)")}}const Iu=e=>{let{delta:t,base16Theme:n,invertTheme:r,labelRenderer:o,isWideLayout:i,dataTypeKey:a}=e;return(0,ai.Y)(Tu,{delta:t,base16Theme:n,invertTheme:r,labelRenderer:o,isWideLayout:i,dataTypeKey:a})},Ru=e=>{let{nextState:t,base16Theme:n,invertTheme:r,labelRenderer:o,dataTypeKey:i,isWideLayout:a,sortStateTreeAlphabetically:s,disableStateTreeCollection:l}=e;return(0,ai.Y)(ia,sn({labelRenderer:o,theme:Au(n),data:t,getItemString:(e,t)=>xu(e,t,i,a),invertTheme:r,hideRoot:!0,sortObjectKeys:s},l?{collectionLimit:0}:{}))},Pu=e=>{let{action:t,base16Theme:n,invertTheme:r,labelRenderer:o,dataTypeKey:i,isWideLayout:a}=e;return(0,ai.Y)(ia,{labelRenderer:o,theme:Au(n),data:t,getItemString:(e,t)=>xu(e,t,i,a),invertTheme:r,hideRoot:!0})};const Mu=[{name:"Action",component:Pu},{name:"Diff",component:Iu},{name:"State",component:Ru}];var Du={name:"9jwnf3",styles:"flex:1;overflow-y:auto"};class Lu extends a.Component{constructor(){super(...arguments),(0,o.A)(this,"labelRenderer",((e,t,n)=>{let[r,...o]=e;const{onInspectPath:i,inspectedPath:a}=this.props;return(0,ai.Y)("span",null,(0,ai.Y)("span",null,r),(0,ai.Y)("span",{css:e=>({fontSize:"0.7em",paddingLeft:"5px",cursor:"pointer","&:hover":{textDecoration:"underline"},color:e.PIN_COLOR}),onClick:()=>i([...a.slice(0,a.length-1),...[r,...o].reverse()])},"(pin)"),!n&&": ")}))}render(){const{delta:e,error:t,nextState:n,onInspectPath:r,inspectedPath:o,tabName:i,isWideLayout:a,onSelectTab:s,action:l,actions:c,selectedActionId:u,startActionId:d,computedStates:f,base16Theme:p,invertTheme:h,tabs:m,dataTypeKey:g,monitorState:v,updateMonitorState:y,sortStateTreeAlphabetically:b,disableStateTreeCollection:w}=this.props,x="function"===typeof m?m(Mu):m||Mu,{component:A}=x.find((e=>e.name===i))||x.find((e=>e.name===Ci.tabName));return(0,ai.Y)("div",{key:"actionPreview",css:e=>({flex:1,display:"flex",flexDirection:"column",flexGrow:1,overflowY:"hidden","& pre":{border:"inherit",borderRadius:"3px",lineHeight:"inherit",color:"inherit"},backgroundColor:e.BACKGROUND_COLOR})},(0,ai.Y)(Pi,{tabs:x,inspectedPath:o,onInspectPath:r,tabName:i,onSelectTab:s}),!t&&(0,ai.Y)("div",{key:"actionPreviewContent",css:Du},(0,ai.Y)(A,{labelRenderer:this.labelRenderer,computedStates:f,actions:c,selectedActionId:u,startActionId:d,base16Theme:p,invertTheme:h,isWideLayout:a,sortStateTreeAlphabetically:b,disableStateTreeCollection:w,dataTypeKey:g,delta:e,action:l,nextState:n,monitorState:v,updateMonitorState:y})),t&&(0,ai.Y)("div",{css:e=>({padding:"10px",marginLeft:"14px",fontWeight:"bold",color:e.ERROR_COLOR})},t))}}(0,o.A)(Lu,"defaultProps",{tabName:Ci.tabName});const ju=Lu;function Nu(e,t,n){if(e=t&&t.length?{[t[t.length-1]]:t.reduce(((e,t)=>e?Ea(e)?e.get(t):bu(e)?function(e,t){let n=0;for(const r of e){if(Array.isArray(r)){if(r[0]===t)return r[1]}else{if(n>t)return;if(n===t)return r}n++}}(e,t):e[t]:e),e)}:e,n)try{e=gu(e).toJS()}catch(r){}return e}const Fu=class{constructor(e){this.selfOptions=e||{},this.pipes={}}options(e){return e&&(this.selfOptions=e),this.selfOptions}pipe(e,t){let n=t;if("string"===typeof e){if("undefined"===typeof n)return this.pipes[e];this.pipes[e]=n}if(e&&e.name){if(n=e,n.processor===this)return n;this.pipes[n.name]=n}return n.processor=this,n}process(e,t){let n=e;n.options=this.options();let r,o=t||e.pipe||"default";for(;o;)"undefined"!==typeof n.nextAfterChildren&&(n.next=n.nextAfterChildren,n.nextAfterChildren=null),"string"===typeof o&&(o=this.pipe(o)),o.process(n),r=o,o=null,n&&n.next&&(n=n.next,o=n.pipe||r);return n.hasResult?n.result:void 0}};const zu=class{constructor(e){this.name=e,this.filters=[]}process(e){if(!this.processor)throw new Error("add this pipe to a processor before using it");const t=this.debug,n=this.filters.length,r=e;for(let o=0;o<n;o++){const e=this.filters[o];if(t&&this.log("filter: ".concat(e.filterName)),e(r),"object"===typeof r&&r.exiting){r.exiting=!1;break}}!r.next&&this.resultCheck&&this.resultCheck(r)}log(e){console.log("[jsondiffpatch] ".concat(this.name," pipe, ").concat(e))}append(){return this.filters.push(...arguments),this}prepend(){return this.filters.unshift(...arguments),this}indexOf(e){if(!e)throw new Error("a filter name is required");for(let t=0;t<this.filters.length;t++){if(this.filters[t].filterName===e)return t}throw new Error("filter not found: ".concat(e))}list(){return this.filters.map((e=>e.filterName))}after(e){const t=this.indexOf(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return this.filters.splice(t+1,0,...r),this}before(e){const t=this.indexOf(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return this.filters.splice(t,0,...r),this}replace(e){const t=this.indexOf(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return this.filters.splice(t,1,...r),this}remove(e){const t=this.indexOf(e);return this.filters.splice(t,1),this}clear(){return this.filters.length=0,this}shouldHaveResult(e){if(!1!==e){if(!this.resultCheck)return this.resultCheck=e=>{if(!e.hasResult){console.log(e);const t=new Error("".concat(this.name," failed"));throw t.noResult=!0,t}},this}else this.resultCheck=null}};class Bu{setResult(e){return this.result=e,this.hasResult=!0,this}exit(){return this.exiting=!0,this}push(e,t){return e.parent=this,"undefined"!==typeof t&&(e.childName=t),e.root=this.root||this,e.options=e.options||this.options,this.children?(this.children[this.children.length-1].next=e,this.children.push(e)):(this.children=[e],this.nextAfterChildren=this.next||null,this.next=e),e.next=this,this}}function Vu(e){if("object"!==typeof e)return e;if(null===e)return null;if(Array.isArray(e))return e.map(Vu);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return function(e){const t=/^\/(.*)\/([gimyu]*)$/.exec(e.toString());return new RegExp(t[1],t[2])}(e);const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=Vu(e[n]));return t}const Uu=class extends Bu{constructor(e,t){super(),this.left=e,this.right=t,this.pipe="diff"}setResult(e){if(this.options.cloneDiffValues&&"object"===typeof e){const t="function"===typeof this.options.cloneDiffValues?this.options.cloneDiffValues:Vu;"object"===typeof e[0]&&(e[0]=t(e[0])),"object"===typeof e[1]&&(e[1]=t(e[1]))}return super.setResult(e)}};const Wu=class extends Bu{constructor(e,t){super(),this.left=e,this.delta=t,this.pipe="patch"}};const qu=class extends Bu{constructor(e){super(),this.delta=e,this.pipe="reverse"}},Hu=function(e){if(e.left!==e.right)if("undefined"!==typeof e.left)if("undefined"!==typeof e.right){if("function"===typeof e.left||"function"===typeof e.right)throw new Error("functions are not supported");e.leftType=null===e.left?"null":typeof e.left,e.rightType=null===e.right?"null":typeof e.right,e.leftType===e.rightType&&"boolean"!==e.leftType&&"number"!==e.leftType?("object"===e.leftType&&(e.leftIsArray=Array.isArray(e.left)),"object"===e.rightType&&(e.rightIsArray=Array.isArray(e.right)),e.leftIsArray===e.rightIsArray?e.left instanceof RegExp&&(e.right instanceof RegExp?e.setResult([e.left.toString(),e.right.toString()]).exit():e.setResult([e.left,e.right]).exit()):e.setResult([e.left,e.right]).exit()):e.setResult([e.left,e.right]).exit()}else e.setResult([e.left,0,0]).exit();else{if("function"===typeof e.right)throw new Error("functions are not supported");e.setResult([e.right]).exit()}else e.setResult(void 0).exit()};Hu.filterName="trivial";const Yu=function(e){if("undefined"===typeof e.delta)return void e.setResult(e.left).exit();if(e.nested=!Array.isArray(e.delta),e.nested)return;const t=e.delta;if(1!==t.length)if(2!==t.length)3===t.length&&0===t[2]&&e.setResult(void 0).exit();else{if(e.left instanceof RegExp){const n=/^\/(.*)\/([gimyu]+)$/.exec(t[1]);if(n)return void e.setResult(new RegExp(n[1],n[2])).exit()}e.setResult(t[1]).exit()}else e.setResult(t[0]).exit()};Yu.filterName="trivial";const Gu=function(e){if("undefined"===typeof e.delta)return void e.setResult(e.delta).exit();if(e.nested=!Array.isArray(e.delta),e.nested)return;const t=e.delta;1!==t.length?2!==t.length?3===t.length&&0===t[2]&&e.setResult([t[0]]).exit():e.setResult([t[1],t[0]]).exit():e.setResult([t[0],0,0]).exit()};Gu.filterName="trivial";const Ku=e=>{if(!e||!e.children)return;const t=e.children.length;let n,r=e.result;for(let o=0;o<t;o++)n=e.children[o],"undefined"!==typeof n.result&&(r=r||{},r[n.childName]=n.result);r&&e.leftIsArray&&(r._t="a"),e.setResult(r).exit()};Ku.filterName="collectChildren";const $u=e=>{if(e.leftIsArray||"object"!==e.leftType)return;const t=e.left,n=e.right;let r,o;const i=e.options.propertyFilter;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i&&!i(r,e)||(o=new Uu(t[r],n[r]),e.push(o,r)));for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i&&!i(r,e)||"undefined"===typeof t[r]&&(o=new Uu(void 0,n[r]),e.push(o,r)));e.children&&0!==e.children.length?e.exit():e.setResult(void 0).exit()};$u.filterName="objects";const Qu=function(e){if(!e.nested)return;const t=e.delta;if(t._t)return;const n=t;let r,o;for(r in n)o=new Wu(e.left[r],n[r]),e.push(o,r);e.exit()};Qu.filterName="objects";const Xu=function(e){if(!e||!e.children)return;if(e.delta._t)return;const t=e.left,n=e.children.length;let r;for(let o=0;o<n;o++){r=e.children[o];const n=r.childName;Object.prototype.hasOwnProperty.call(e.left,n)&&void 0===r.result?delete t[n]:t[n]!==r.result&&(t[n]=r.result)}e.setResult(t).exit()};Xu.filterName="collectChildren";const Ju=function(e){if(!e.nested)return;if(e.delta._t)return;const t=e.delta;let n,r;for(n in t)r=new qu(t[n]),e.push(r,n);e.exit()};Ju.filterName="objects";const Zu=e=>{if(!e||!e.children)return;if(e.delta._t)return;const t=e.children.length;let n;const r={};for(let o=0;o<t;o++){n=e.children[o];const t=n.childName;r[t]!==n.result&&(r[t]=n.result)}e.setResult(r).exit()};Zu.filterName="collectChildren";const ed=function(e,t,n,r){return e[n]===t[r]},td=function(e,t,n,r){const o=r||{},i=function(e,t,n,r){const o=e.length,i=t.length;let a,s;const l=new Array(o+1);for(a=0;a<o+1;a++)for(l[a]=new Array(i+1),s=0;s<i+1;s++)l[a][s]=0;for(l.match=n,a=1;a<o+1;a++)for(s=1;s<i+1;s++)n(e,t,a-1,s-1,r)?l[a][s]=l[a-1][s-1]+1:l[a][s]=Math.max(l[a-1][s],l[a][s-1]);return l}(e,t,n||ed,o);return function(e,t,n,r){let o=t.length,i=n.length;const a={sequence:[],indices1:[],indices2:[]};for(;0!==o&&0!==i;)e.match(t,n,o-1,i-1,r)?(a.sequence.unshift(t[o-1]),a.indices1.unshift(o-1),a.indices2.unshift(i-1),--o,--i):e[o][i-1]>e[o-1][i]?--i:--o;return a}(i,e,t,o)};function nd(e,t,n,r,o){const i=e[n],a=t[r];if(i===a)return!0;if("object"!==typeof i||"object"!==typeof a)return!1;const s=o.objectHash;if(!s)return o.matchByPosition&&n===r;o.hashCache1=o.hashCache1||[];let l=o.hashCache1[n];if("undefined"===typeof l&&(o.hashCache1[n]=l=s(i,n)),"undefined"===typeof l)return!1;o.hashCache2=o.hashCache2||[];let c=o.hashCache2[r];return"undefined"===typeof c&&(o.hashCache2[r]=c=s(a,r)),"undefined"!==typeof c&&l===c}const rd=function(e){if(!e.leftIsArray)return;const t={objectHash:e.options&&e.options.objectHash,matchByPosition:e.options&&e.options.matchByPosition};let n,r,o,i=0,a=0;const s=e.left,l=e.right,c=s.length,u=l.length;let d,f;for(c>0&&u>0&&!t.objectHash&&"boolean"!==typeof t.matchByPosition&&(t.matchByPosition=!function(e,t,n,r){for(let o=0;o<n;o++){const n=e[o];for(let e=0;e<r;e++){const r=t[e];if(o!==e&&n===r)return!0}}}(s,l,c,u));i<c&&i<u&&nd(s,l,i,i,t);)n=i,d=new Uu(s[n],l[n]),e.push(d,n),i++;for(;a+i<c&&a+i<u&&nd(s,l,c-1-a,u-1-a,t);)r=c-1-a,o=u-1-a,d=new Uu(s[r],l[o]),e.push(d,o),a++;if(i+a===c){if(c===u)return void e.setResult(void 0).exit();for(f=f||{_t:"a"},n=i;n<u-a;n++)f[n]=[l[n]];return void e.setResult(f).exit()}if(i+a===u){for(f=f||{_t:"a"},n=i;n<c-a;n++)f["_".concat(n)]=[s[n],0,0];return void e.setResult(f).exit()}delete t.hashCache1,delete t.hashCache2;const p=s.slice(i,c-a),h=l.slice(i,u-a),m=td(p,h,nd,t),g=[];for(f=f||{_t:"a"},n=i;n<c-a;n++)m.indices1.indexOf(n-i)<0&&(f["_".concat(n)]=[s[n],0,0],g.push(n));let v=!0;e.options&&e.options.arrays&&!1===e.options.arrays.detectMove&&(v=!1);let y=!1;e.options&&e.options.arrays&&e.options.arrays.includeValueOnMove&&(y=!0);const b=g.length;for(n=i;n<u-a;n++){const a=m.indices2.indexOf(n-i);if(a<0){let a=!1;if(v&&b>0)for(let c=0;c<b;c++)if(r=g[c],nd(p,h,r-i,n-i,t)){f["_".concat(r)].splice(1,2,n,3),y||(f["_".concat(r)][0]=""),o=n,d=new Uu(s[r],l[o]),e.push(d,o),g.splice(c,1),a=!0;break}a||(f[n]=[l[n]])}else r=m.indices1[a]+i,o=m.indices2[a]+i,d=new Uu(s[r],l[o]),e.push(d,o)}e.setResult(f).exit()};rd.filterName="arrays";const od={numerically:(e,t)=>e-t,numericallyBy:e=>(t,n)=>t[e]-n[e]},id=function(e){if(!e.nested)return;const t=e.delta;if("a"!==t._t)return;let n,r;const o=t,i=e.left;let a=[],s=[];const l=[];for(n in o)if("_t"!==n)if("_"===n[0]){const e=n;if(0!==o[e][2]&&3!==o[e][2])throw new Error("only removal or move can be applied at original array indices,"+" invalid diff type: ".concat(o[e][2]));a.push(parseInt(n.slice(1),10))}else{const e=n;1===o[e].length?s.push({index:parseInt(e,10),value:o[e][0]}):l.push({index:parseInt(e,10),delta:o[e]})}for(a=a.sort(od.numerically),n=a.length-1;n>=0;n--){r=a[n];const e=o["_".concat(r)],t=i.splice(r,1)[0];3===e[2]&&s.push({index:e[1],value:t})}s=s.sort(od.numericallyBy("index"));const c=s.length;for(n=0;n<c;n++){const e=s[n];i.splice(e.index,0,e.value)}const u=l.length;let d;if(u>0)for(n=0;n<u;n++){const t=l[n];d=new Wu(i[t.index],t.delta),e.push(d,t.index)}e.children?e.exit():e.setResult(i).exit()};id.filterName="arrays";const ad=function(e){if(!e||!e.children)return;if("a"!==e.delta._t)return;const t=e.left,n=e.children.length;let r;for(let o=0;o<n;o++){r=e.children[o];t[r.childName]=r.result}e.setResult(t).exit()};ad.filterName="arraysCollectChildren";const sd=function(e){if(!e.nested){const t=e.delta;if(3===t[2]){const n=t;e.newName="_".concat(n[1]),e.setResult([n[0],parseInt(e.childName.substring(1),10),3]).exit()}return}const t=e.delta;if("a"!==t._t)return;const n=t;let r,o;for(r in n)"_t"!==r&&(o=new qu(n[r]),e.push(o,r));e.exit()};sd.filterName="arrays";const ld=(e,t,n)=>{if("string"===typeof t&&"_"===t[0])return parseInt(t.substring(1),10);if(Array.isArray(n)&&0===n[2])return"_".concat(t);let r=+t;for(const o in e){const n=e[o];if(Array.isArray(n))if(3===n[2]){const e=parseInt(o.substring(1),10),i=n[1];if(i===+t)return e;e<=r&&i>r?r++:e>=r&&i<r&&r--}else if(0===n[2]){parseInt(o.substring(1),10)<=r&&r++}else 1===n.length&&parseInt(o,10)<=r&&r--}return r},cd=e=>{if(!e||!e.children)return;const t=e.delta;if("a"!==t._t)return;const n=t,r=e.children.length;let o;const i={_t:"a"};for(let a=0;a<r;a++){o=e.children[a];let t=o.newName;"undefined"===typeof t&&(t=ld(n,o.childName,o.result)),i[t]!==o.result&&(i[t]=o.result)}e.setResult(i).exit()};cd.filterName="arraysCollectChildren";const ud=function(e){e.left instanceof Date?(e.right instanceof Date?e.left.getTime()!==e.right.getTime()?e.setResult([e.left,e.right]):e.setResult(void 0):e.setResult([e.left,e.right]),e.exit()):e.right instanceof Date&&e.setResult([e.left,e.right]).exit()};ud.filterName="dates";let dd=null;function fd(e,t){var n;if(!dd){let r;if(!(null===(n=null===e||void 0===e?void 0:e.textDiff)||void 0===n?void 0:n.diffMatchPatch)){if(!t)return null;const e=new Error("The diff-match-patch library was not provided. Pass the library in through the options or use the `jsondiffpatch/with-text-diffs` entry-point.");throw e.diff_match_patch_not_found=!0,e}r=new e.textDiff.diffMatchPatch,dd={diff:function(e,t){return r.patch_toText(r.patch_make(e,t))},patch:function(e,t){const n=r.patch_apply(r.patch_fromText(t),e);for(let r=0;r<n[1].length;r++)if(!n[1][r]){new Error("text patch failed").textPatchFailed=!0}return n[0]}}}return dd}const pd=function(e){if("string"!==e.leftType)return;const t=e.left,n=e.right,r=e.options&&e.options.textDiff&&e.options.textDiff.minLength||60;if(t.length<r||n.length<r)return void e.setResult([t,n]).exit();const o=fd(e.options);if(!o)return void e.setResult([t,n]).exit();const i=o.diff;e.setResult([i(t,n),0,2]).exit()};pd.filterName="texts";const hd=function(e){if(e.nested)return;const t=e.delta;if(2!==t[2])return;const n=t,r=fd(e.options,!0).patch;e.setResult(r(e.left,n[0])).exit()};hd.filterName="texts";const md=function(e){let t,n,r,o,i=null;const a=/^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/;let s;const l=e.split("\n");for(t=0,n=l.length;t<n;t++){r=l[t];const e=r.slice(0,1);"@"===e?(i=a.exec(r),s=t,l[s]="@@ -"+i[3]+","+i[4]+" +"+i[1]+","+i[2]+" @@"):"+"===e?(l[t]="-"+l[t].slice(1),"+"===l[t-1].slice(0,1)&&(o=l[t],l[t]=l[t-1],l[t-1]=o)):"-"===e&&(l[t]="+"+l[t].slice(1))}return l.join("\n")},gd=function(e){if(e.nested)return;const t=e.delta;if(2!==t[2])return;const n=t;e.setResult([md(n[0]),0,2]).exit()};gd.filterName="texts";const vd=class{constructor(e){this.processor=new Fu(e),this.processor.pipe(new zu("diff").append(Ku,Hu,ud,pd,$u,rd).shouldHaveResult()),this.processor.pipe(new zu("patch").append(Xu,ad,Yu,hd,Qu,id).shouldHaveResult()),this.processor.pipe(new zu("reverse").append(Zu,cd,Gu,gd,Ju,sd).shouldHaveResult())}options(e){return this.processor.options(e)}diff(e,t){return this.processor.process(new Uu(e,t))}patch(e,t){return this.processor.process(new Wu(e,t))}reverse(e){return this.processor.process(new qu(e))}unpatch(e,t){return this.patch(e,this.reverse(t))}clone(e){return Vu(e)}},yd=(e,t)=>{const n=e;return(null===n?"$$null":n&&(n.id||0===n.id)&&"$$id:".concat(JSON.stringify(n.id)))||n&&(n._id||0===n._id)&&"$$_id:".concat(JSON.stringify(n._id))||"$$index:".concat(t)},bd=(e,t)=>"function"!==typeof t.left[e]&&"function"!==typeof t.right[e],wd=new vd({arrays:{detectMove:!1},objectHash:yd,propertyFilter:bd});var xd=n(8367);const{commit:Ad,sweep:Sd,toggleAction:_d,jumpToAction:kd,jumpToState:Cd,reorderAction:Ed}=I;function Od(e,t){return null===t.selectedActionId?e.stagedActionIds[e.currentStateIndex]:t.selectedActionId}function Td(e,t){const{supportImmutable:n,computedStates:r,stagedActionIds:o,actionsById:i,diffObjectHash:a,diffPropertyFilter:s}=e,{inspectedStatePath:l,inspectedActionPath:c}=t,u=Od(e,t),d=i[u]&&i[u].action,f=o.indexOf(u),p=function(e,t,n,r){const{startActionId:o}=r;if(null===o)return e>0?n[e-1]:null;let i=t.indexOf(o-1);return-1===i&&(i=0),n[i]}(f,o,r,t),h=r[f],m=h&&h.error,g=!m&&p&&Nu(p.state,l,n),v=!m&&h&&Nu(h.state,l,n);var y,b;return{delta:!m&&p&&h&&(y=a,b=s,y||b?new vd({arrays:{detectMove:!1},objectHash:y||yd,propertyFilter:b||bd}):wd).diff(g,v),nextState:h&&Nu(h.state,l,!1),action:Nu(d,c,!1),error:m}}class Id extends a.PureComponent{constructor(){super(...arguments),(0,o.A)(this,"state",(0,l.A)((0,l.A)({},Td(this.props,this.props.monitorState)),{},{isWideLayout:!1})),(0,o.A)(this,"updateMonitorState",(e=>{this.props.dispatch(function(e){return{type:ki,monitorState:e}}(e))})),(0,o.A)(this,"inspectorCreateRef",(e=>{this.inspectorRef=e})),(0,o.A)(this,"handleToggleAction",(e=>{this.props.dispatch(_d(e))})),(0,o.A)(this,"handleJumpToState",(e=>{if(kd)this.props.dispatch(kd(e));else{const t=this.props.stagedActionIds.indexOf(e);-1!==t&&this.props.dispatch(Cd(t))}})),(0,o.A)(this,"handleReorderAction",((e,t)=>{Ed&&this.props.dispatch(Ed(e,t))})),(0,o.A)(this,"handleCommit",(()=>{this.props.dispatch(Ad())})),(0,o.A)(this,"handleSweep",(()=>{this.props.dispatch(Sd())})),(0,o.A)(this,"handleSearch",(e=>{this.updateMonitorState({searchValue:e})})),(0,o.A)(this,"handleSelectAction",((e,t)=>{const{monitorState:n}=this.props;let r,o;e.shiftKey&&null!==n.selectedActionId?null!==n.startActionId?t>=n.startActionId?(r=Math.min(n.startActionId,n.selectedActionId),o=t):(o=Math.max(n.startActionId,n.selectedActionId),r=t):(r=Math.min(t,n.selectedActionId),o=Math.max(t,n.selectedActionId)):(r=null,o=t===n.selectedActionId||null!==n.startActionId?null:t),this.updateMonitorState({startActionId:r,selectedActionId:o})})),(0,o.A)(this,"handleInspectPath",((e,t)=>{this.updateMonitorState({[e]:t})})),(0,o.A)(this,"handleSelectTab",(e=>{this.updateMonitorState({tabName:e})}))}componentDidMount(){this.updateSizeMode(),this.updateSizeTimeout=window.setInterval(this.updateSizeMode.bind(this),150)}componentWillUnmount(){clearTimeout(this.updateSizeTimeout)}updateSizeMode(){const e=this.inspectorRef.offsetWidth>500;e!==this.state.isWideLayout&&this.setState({isWideLayout:e})}UNSAFE_componentWillReceiveProps(e){const t=e.monitorState,n=this.props.monitorState;Od(this.props,n)===Od(e,t)&&n.startActionId===t.startActionId&&n.inspectedStatePath===t.inspectedStatePath&&n.inspectedActionPath===t.inspectedActionPath&&this.props.computedStates===e.computedStates&&this.props.stagedActionIds===e.stagedActionIds||this.setState(Td(e,t))}render(){const{stagedActionIds:e,actionsById:t,computedStates:n,draggableActions:r,tabs:o,theme:i,invertTheme:a,skippedActionIds:s,currentStateIndex:l,monitorState:c,dataTypeKey:u,hideMainButtons:d,hideActionButtons:f,sortStateTreeAlphabetically:p,disableStateTreeCollection:h}=this.props,{selectedActionId:m,startActionId:g,searchValue:v,tabName:y}=c,b="Action"===y?"inspectedActionPath":"inspectedStatePath",{isWideLayout:w,action:x,nextState:A,delta:S,error:_}=this.state,k=function(e){return rn(e,on)}(i),C=an(k,a);return(0,ai.Y)(xd.a,{theme:C},(0,ai.Y)("div",{key:"inspector","data-testid":"inspector",ref:this.inspectorCreateRef,css:[e=>({display:"flex",flexDirection:"column",width:"100%",height:"100%",fontFamily:'monaco, Consolas, "Lucida Console", monospace',fontSize:"12px",WebkitFontSmoothing:"antialiased",lineHeight:"1.5em",backgroundColor:e.BACKGROUND_COLOR,color:e.TEXT_COLOR}),w&&{flexDirection:"row"},"",""]},(0,ai.Y)(Si,{actions:t,actionIds:e,isWideLayout:w,searchValue:v,selectedActionId:m,startActionId:g,skippedActionIds:s,draggableActions:r,hideMainButtons:d,hideActionButtons:f,onSearch:this.handleSearch,onSelect:this.handleSelectAction,onToggleAction:this.handleToggleAction,onJumpToState:this.handleJumpToState,onCommit:this.handleCommit,onSweep:this.handleSweep,onReorderAction:this.handleReorderAction,currentActionId:e[l],lastActionId:(E=this.props,E.stagedActionIds[E.stagedActionIds.length-1])}),(0,ai.Y)(ju,{base16Theme:k,invertTheme:a,isWideLayout:w,tabs:o,tabName:y,delta:S,error:_,nextState:A,computedStates:n,action:x,actions:t,selectedActionId:m,startActionId:g,dataTypeKey:u,sortStateTreeAlphabetically:p,disableStateTreeCollection:h,monitorState:this.props.monitorState,updateMonitorState:this.updateMonitorState,onInspectPath:e=>this.handleInspectPath(b,e),inspectedPath:c[b],onSelectTab:this.handleSelectTab})));var E}}(0,o.A)(Id,"update",Ei),(0,o.A)(Id,"defaultProps",{select:e=>e,supportImmutable:!1,draggableActions:!0,theme:"inspector",invertTheme:!0});const Rd=Id;var Pd=n(3035),Md=n(6425);const Dd=Pd.A.devToolsInspector.enabled?function(e){var t;const n=a.Children.only(e),r=n.props,l=n.type,c=(0,s.Ng)((e=>e))(l);return t=class extends a.Component{constructor(e){super(e),s.ty?this.props.store&&!this.props.store.liftedStore&&N("NoLiftedStore"):e.store?(this.liftedStore=e.store.liftedStore,this.liftedStore||N("NoLiftedStore")):N("NoStore")}render(){return s.ty?this.props.store?this.props.store.liftedStore?a.createElement(s.Kq,{store:this.props.store.liftedStore},a.createElement(c,r)):null:a.createElement(s.ty.Consumer,null,(e=>e&&e.store?e.store.liftedStore?a.createElement(s.Kq,{store:e.store.liftedStore},a.createElement(c,r)):(N("NoLiftedStore"),null):(N("NoStore"),null))):this.liftedStore?a.createElement(c,i({},r,{store:this.liftedStore})):null}},(0,o.A)(t,"instrument",(e=>function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("number"===typeof t.maxAge&&t.maxAge<2)throw new Error("DevTools.instrument({ maxAge }) option, if specified, may not be less than 2.");return n=>(r,o)=>{function i(n){if("function"!==typeof n){if(n&&"function"===typeof n.default)throw new Error('Expected the reducer to be a function. Instead got an object with a "default" field. Did you pass a module instead of the default export? Try passing require(...).default instead.');throw new Error("Expected the reducer to be a function.")}return L(n,o,e,t)}const a=n(i(r));if(a.liftedStore)throw new Error("DevTools instrumentation should not be applied more than once. Check your store configuration.");return j(a,i,t)}}(((e,t)=>l.update(r,e,t)),e))),t}((0,Md.Y)(F.A,{toggleVisibilityKey:"ctrl-h",changePositionKey:"ctrl-q",defaultIsVisible:!0,children:(0,Md.Y)(Rd,{})})):()=>(0,Md.Y)(Md.FK,{}),Ld=Dd},1702:(e,t,n)=>{"use strict";n.d(t,{A:()=>oe});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),o=Math.abs,i=String.fromCharCode,a=Object.assign;function s(e){return e.trim()}function l(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function f(e){return e.length}function p(e){return e.length}function h(e,t){return t.push(e),e}var m=1,g=1,v=0,y=0,b=0,w="";function x(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:m,column:g,length:a,return:""}}function A(e,t){return a(x("",null,null,"",null,null,0),e,{length:-e.length},t)}function S(){return b=y>0?u(w,--y):0,g--,10===b&&(g=1,m--),b}function _(){return b=y<v?u(w,y++):0,g++,10===b&&(g=1,m++),b}function k(){return u(w,y)}function C(){return y}function E(e,t){return d(w,e,t)}function O(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function T(e){return m=g=1,v=f(w=e),y=0,[]}function I(e){return w="",e}function R(e){return s(E(y-1,D(91===e?e+2:40===e?e+1:e)))}function P(e){for(;(b=k())&&b<33;)_();return O(e)>2||O(b)>3?"":" "}function M(e,t){for(;--t&&_()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return E(e,C()+(t<6&&32==k()&&32==_()))}function D(e){for(;_();)switch(b){case e:return y;case 34:case 39:34!==e&&39!==e&&D(b);break;case 40:41===e&&D(e);break;case 92:_()}return y}function L(e,t){for(;_()&&e+b!==57&&(e+b!==84||47!==k()););return"/*"+E(t,y-1)+"*"+i(47===e?e:_())}function j(e){for(;!O(k());)_();return E(e,y)}var N="-ms-",F="-moz-",z="-webkit-",B="comm",V="rule",U="decl",W="@keyframes";function q(e,t){for(var n="",r=p(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function H(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case U:return e.return=e.return||e.value;case B:return"";case W:return e.return=e.value+"{"+q(e.children,r)+"}";case V:e.value=e.props.join(",")}return f(n=q(e.children,r))?e.return=e.value+"{"+n+"}":""}function Y(e){return I(G("",null,null,null,[""],e=T(e),0,[0],e))}function G(e,t,n,r,o,a,s,d,p){for(var m=0,g=0,v=s,y=0,b=0,w=0,x=1,A=1,E=1,O=0,T="",I=o,D=a,N=r,F=T;A;)switch(w=O,O=_()){case 40:if(108!=w&&58==u(F,v-1)){-1!=c(F+=l(R(O),"&","&\f"),"&\f")&&(E=-1);break}case 34:case 39:case 91:F+=R(O);break;case 9:case 10:case 13:case 32:F+=P(w);break;case 92:F+=M(C()-1,7);continue;case 47:switch(k()){case 42:case 47:h($(L(_(),C()),t,n),p);break;default:F+="/"}break;case 123*x:d[m++]=f(F)*E;case 125*x:case 59:case 0:switch(O){case 0:case 125:A=0;case 59+g:-1==E&&(F=l(F,/\f/g,"")),b>0&&f(F)-v&&h(b>32?Q(F+";",r,n,v-1):Q(l(F," ","")+";",r,n,v-2),p);break;case 59:F+=";";default:if(h(N=K(F,t,n,m,g,o,d,T,I=[],D=[],v),a),123===O)if(0===g)G(F,t,N,N,I,a,v,d,D);else switch(99===y&&110===u(F,3)?100:y){case 100:case 108:case 109:case 115:G(e,N,N,r&&h(K(e,N,N,0,0,o,d,T,o,I=[],v),D),o,D,v,d,r?I:D);break;default:G(F,N,N,N,[""],D,0,d,D)}}m=g=b=0,x=E=1,T=F="",v=s;break;case 58:v=1+f(F),b=w;default:if(x<1)if(123==O)--x;else if(125==O&&0==x++&&125==S())continue;switch(F+=i(O),O*x){case 38:E=g>0?1:(F+="\f",-1);break;case 44:d[m++]=(f(F)-1)*E,E=1;break;case 64:45===k()&&(F+=R(_())),y=k(),g=v=f(T=F+=j(C())),O++;break;case 45:45===w&&2==f(F)&&(x=0)}}return a}function K(e,t,n,r,i,a,c,u,f,h,m){for(var g=i-1,v=0===i?a:[""],y=p(v),b=0,w=0,A=0;b<r;++b)for(var S=0,_=d(e,g+1,g=o(w=c[b])),k=e;S<y;++S)(k=s(w>0?v[S]+" "+_:l(_,/&\f/g,v[S])))&&(f[A++]=k);return x(e,t,n,0===i?V:u,f,h,m)}function $(e,t,n){return x(e,t,n,B,i(b),d(e,2,-2),0)}function Q(e,t,n,r){return x(e,t,n,U,d(e,0,r),d(e,r+1,-1),r)}var X=function(e,t,n){for(var r=0,o=0;r=o,o=k(),38===r&&12===o&&(t[n]=1),!O(o);)_();return E(e,y)},J=function(e,t){return I(function(e,t){var n=-1,r=44;do{switch(O(r)){case 0:38===r&&12===k()&&(t[n]=1),e[n]+=X(y-1,t,n);break;case 2:e[n]+=R(r);break;case 4:if(44===r){e[++n]=58===k()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=_());return e}(T(e),t))},Z=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Z.get(n))&&!r){Z.set(e,!0);for(var o=[],i=J(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ne(e,t){switch(function(e,t){return 45^u(e,0)?(((t<<2^u(e,0))<<2^u(e,1))<<2^u(e,2))<<2^u(e,3):0}(e,t)){case 5103:return z+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return z+e+F+e+N+e+e;case 6828:case 4268:return z+e+N+e+e;case 6165:return z+e+N+"flex-"+e+e;case 5187:return z+e+l(e,/(\w+).+(:[^]+)/,z+"box-$1$2"+N+"flex-$1$2")+e;case 5443:return z+e+N+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return z+e+N+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return z+e+N+l(e,"shrink","negative")+e;case 5292:return z+e+N+l(e,"basis","preferred-size")+e;case 6060:return z+"box-"+l(e,"-grow","")+z+e+N+l(e,"grow","positive")+e;case 4554:return z+l(e,/([^-])(transform)/g,"$1"+z+"$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,z+"$1"),/(image-set)/,z+"$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,z+"box-pack:$3"+N+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,z+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(f(e)-1-t>6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+F+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,f(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":"+z)+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(45===u(e,14)?"inline-":"")+"box$3$1"+z+"$2$3$1"+N+"$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return z+e+N+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+N+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+N+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+N+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case U:e.return=ne(e.value,e.length);break;case W:return q([A(e,{value:l(e.value,"@","@"+z)})],r);case V:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return q([A(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return q([A(e,{props:[l(t,/:(plac\w+)/,":"+z+"input-$1")]}),A(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),A(e,{props:[l(t,/:(plac\w+)/,N+"input-$1")]})],r)}return""}))}}],oe=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var o,i,a=e.stylisPlugins||re,s={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;l.push(e)}));var c,u,d=[H,(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],f=function(e){var t=p(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}([ee,te].concat(a,d));i=function(e,t,n,r){c=n,q(Y(e?e+"{"+t.styles+"}":t.styles),f),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new r({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:i};return h.sheet.hydrate(l),h}},9965:(e,t,n)=>{"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{A:()=>r})},8367:(e,t,n)=>{"use strict";n.d(t,{C:()=>d,E:()=>w,T:()=>p,a:()=>m,c:()=>y,h:()=>g,w:()=>f});var r=n(2176),o=n(1702),i=n(9575),a=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},s=n(517),l=n(531),c=n(7075),u=r.createContext("undefined"!==typeof HTMLElement?(0,o.A)({key:"css"}):null),d=u.Provider,f=function(e){return(0,r.forwardRef)((function(t,n){var o=(0,r.useContext)(u);return e(t,o,n)}))},p=r.createContext({}),h=a((function(e){return a((function(t){return function(e,t){return"function"===typeof t?t(e):(0,i.A)({},e,t)}(e,t)}))})),m=function(e){var t=r.useContext(p);return e.theme!==t&&(t=h(t)(e.theme)),r.createElement(p.Provider,{value:t},e.children)};var g={}.hasOwnProperty,v="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",y=function(e,t){var n={};for(var r in t)g.call(t,r)&&(n[r]=t[r]);return n[v]=e,n},b=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,s.SF)(t,n,r),(0,c.s)((function(){return(0,s.sk)(t,n,r)})),null},w=f((function(e,t,n){var o=e.css;"string"===typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var i=e[v],a=[o],c="";"string"===typeof e.className?c=(0,s.Rk)(t.registered,a,e.className):null!=e.className&&(c=e.className+" ");var u=(0,l.J)(a,void 0,r.useContext(p));c+=t.key+"-"+u.name;var d={};for(var f in e)g.call(e,f)&&"css"!==f&&f!==v&&(d[f]=e[f]);return d.className=c,n&&(d.ref=n),r.createElement(r.Fragment,null,r.createElement(b,{cache:t,serialized:u,isStringTag:"string"===typeof i}),r.createElement(i,d))}))},137:(e,t,n)=>{"use strict";n.d(t,{AH:()=>u,Y:()=>l,i7:()=>d,mL:()=>c});var r=n(8367),o=n(2176),i=n(517),a=n(7075),s=n(531),l=(n(1702),n(4502),function(e,t){var n=arguments;if(null==t||!r.h.call(t,"css"))return o.createElement.apply(void 0,n);var i=n.length,a=new Array(i);a[0]=r.E,a[1]=(0,r.c)(e,t);for(var s=2;s<i;s++)a[s]=n[s];return o.createElement.apply(null,a)});!function(e){var t;t||(t=e.JSX||(e.JSX={}))}(l||(l={}));var c=(0,r.w)((function(e,t){var n=e.styles,l=(0,s.J)([n],void 0,o.useContext(r.T)),c=o.useRef();return(0,a.i)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,o=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==o&&(r=!0,o.setAttribute("data-emotion",e),n.hydrate([o])),c.current=[n,r],function(){n.flush()}}),[t]),(0,a.i)((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,i.sk)(t,l.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",l,n,!1)}}),[t,l.name]),null}));function u(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,s.J)(t)}function d(){var e=u.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},6425:(e,t,n)=>{"use strict";n.d(t,{FD:()=>s,FK:()=>i,Y:()=>a});var r=n(812),o=n(8367),i=(n(2176),n(1702),n(4502),n(531),n(7075),r.Fragment),a=function(e,t,n){return o.h.call(t,"css")?r.jsx(o.E,(0,o.c)(e,t),n):r.jsx(e,t,n)},s=function(e,t,n){return o.h.call(t,"css")?r.jsxs(o.E,(0,o.c)(e,t),n):r.jsxs(e,t,n)}},531:(e,t,n)=>{"use strict";n.d(t,{J:()=>g});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},o=n(9965),i=!1,a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,l=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!==typeof e},u=(0,o.A)((function(e){return l(e)?e:e.replace(a,"-$&").toLowerCase()})),d=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(s,(function(e,t,n){return h={name:t,styles:n,next:h},t}))}return 1===r[e]||l(e)||"number"!==typeof t||0===t?t:t+"px"},f="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function p(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return h={name:o.name,styles:o.styles,next:h},o.name;var a=n;if(void 0!==a.styles){var s=a.next;if(void 0!==s)for(;void 0!==s;)h={name:s.name,styles:s.styles,next:h},s=s.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=p(e,t,n[o])+";";else for(var a in n){var s=n[a];if("object"!==typeof s){var l=s;null!=t&&void 0!==t[l]?r+=a+"{"+t[l]+"}":c(l)&&(r+=u(a)+":"+d(a,l)+";")}else{if("NO_COMPONENT_SELECTOR"===a&&i)throw new Error(f);if(!Array.isArray(s)||"string"!==typeof s[0]||null!=t&&void 0!==t[s[0]]){var h=p(e,t,s);switch(a){case"animation":case"animationName":r+=u(a)+":"+h+";";break;default:r+=a+"{"+h+"}"}}else for(var m=0;m<s.length;m++)c(s[m])&&(r+=u(a)+":"+d(a,s[m])+";")}}return r}(e,t,n);case"function":if(void 0!==e){var l=h,m=n(e);return h=l,p(e,t,m)}}var g=n;if(null==t)return g;var v=t[g];return void 0!==v?v:g}var h,m=/label:\s*([^\s;{]+)\s*(;|$)/g;function g(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";h=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=p(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++){if(o+=p(n,t,e[a]),r)o+=i[a]}m.lastIndex=0;for(var s,l="";null!==(s=m.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:h}}},7075:(e,t,n)=>{"use strict";var r;n.d(t,{i:()=>s,s:()=>a});var o=n(2176),i=!!(r||(r=n.t(o,2))).useInsertionEffect&&(r||(r=n.t(o,2))).useInsertionEffect,a=i||function(e){return e()},s=i||o.useLayoutEffect},517:(e,t,n)=>{"use strict";n.d(t,{Rk:()=>r,SF:()=>o,sk:()=>i});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var o=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i=function(e,t,n){o(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}},4266:(e,t,n)=>{"use strict";var r=n(4293);t.A=void 0;var o=r(n(3028)),i=n(812);t.A=(0,o.default)((0,i.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add")},2302:(e,t,n)=>{"use strict";var r=n(4293);t.A=void 0;var o=r(n(3028)),i=n(812);t.A=(0,o.default)((0,i.jsx)("path",{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"}),"ArrowOutwardOutlined")},1427:(e,t,n)=>{"use strict";var r=n(4293);t.A=void 0;var o=r(n(3028)),i=n(812);t.A=(0,o.default)((0,i.jsx)("path",{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25z"}),"AutoAwesome")},5421:(e,t,n)=>{"use strict";var r=n(4293);t.A=void 0;var o=r(n(3028)),i=n(812);t.A=(0,o.default)((0,i.jsx)("path",{d:"m22.7 19-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4"}),"Build")},7253:(e,t,n)=>{"use strict";var r=n(4293);t.A=void 0;var o=r(n(3028)),i=n(812);t.A=(0,o.default)((0,i.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check")},1709:(e,t,n)=>{"use strict";var r=n(4293);t.A=void 0;var o=r(n(3028)),i=n(812);t.A=(0,o.default)((0,i.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle")},7705:(e,t,n)=>{"use strict";var r=n(4293);t.A=void 0;var o=r(n(3028)),i=n(812);t.A=(0,o.default)((0,i.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},9674:(e,t,n)=>{"use strict";var r=n(4293);t.A=void 0;var o=r(n(3028)),i=n(812);t.A=(0,o.default)((0,i.jsx)("path",{d:"M9.5 14v-1H11v.5h2v-1h-2.5c-.55 0-1-.45-1-1V10c0-.55.45-1 1-1h3c.55 0 1 .45 1 1v1H13v-.5h-2v1h2.5c.55 0 1 .45 1 1V14c0 .55-.45 1-1 1h-3c-.55 0-1-.45-1-1m7.5 1h3c.55 0 1-.45 1-1v-1.5c0-.55-.45-1-1-1h-2.5v-1h2v.5H21v-1c0-.55-.45-1-1-1h-3c-.55 0-1 .45-1 1v1.5c0 .55.45 1 1 1h2.5v1h-2V13H16v1c0 .55.45 1 1 1m-9-5c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-1H6.5v.5h-2v-3h2v.5H8z"}),"Css")},5070:(e,t,n)=>{"use strict";var r=n(4293);t.A=void 0;var o=r(n(3028)),i=n(812);t.A=(0,o.default)((0,i.jsx)("path",{d:"M3 3h18v2H3zm0 16h18v2H3zm0-8h18v2H3z"}),"DensityMedium")},3347:(e,t,n)=>{"use strict";var r=n(4293);t.A=void 0;var o=r(n(3028)),i=n(812);t.A=(0,o.default)((0,i.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}),"Error")},4631:(e,t,n)=>{"use strict";var r=n(4293);t.A=void 0;var o=r(n(3028)),i=n(812);t.A=(0,o.default)((0,i.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert")},9754:(e,t,n)=>{"use strict";var r=n(4293);t.A=void 0;var o=r(n(3028)),i=n(812);t.A=(0,o.default)([(0,i.jsx)("path",{d:"M12 5.99 19.53 19H4.47zM12 2 1 21h22z"},"0"),(0,i.jsx)("path",{d:"M13 16h-2v2h2zm0-6h-2v5h2z"},"1")],"WarningAmber")},3028:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(1914)},3185:(e,t,n)=>{"use strict";n.d(t,{b:()=>o});n(2176);var r=n(729);n(812);function o(e){return(0,r.b)(e)}},6970:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r={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"}},3927:(e,t,n)=>{"use strict";n.d(t,{A:()=>z});var r=n(9575),o=n(7502),i=n(8145),a=n(9977),s=n(3063),l=n(319),c=n(1733);var u=n(943);const d={black:"#000",white:"#fff"};var f=n(6970);const p={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"},h={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"},m={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"},g={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"},v={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"},y={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"},b=["mode","contrastThreshold","tonalOffset"],w={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:d.white,default:d.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}},x={text:{primary:d.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:d.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 A(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,u.a)(e.main,o):"dark"===t&&(e.dark=(0,u.e$)(e.main,i)))}function S(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:s=.2}=e,l=(0,o.A)(e,b),c=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[200],light:g[50],dark:g[400]}:{main:g[700],light:g[400],dark:g[800]}}(t),S=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:p[200],light:p[50],dark:p[400]}:{main:p[500],light:p[300],dark:p[700]}}(t),_=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:h[500],light:h[300],dark:h[700]}:{main:h[700],light:h[400],dark:h[800]}}(t),k=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[400],light:v[300],dark:v[700]}:{main:v[700],light:v[500],dark:v[900]}}(t),C=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:y[400],light:y[300],dark:y[700]}:{main:y[800],light:y[500],dark:y[900]}}(t),E=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[400],light:m[300],dark:m[700]}:{main:"#ed6c02",light:m[500],dark:m[900]}}(t);function O(e){return(0,u.eM)(e,x.text.primary)>=n?x.text.primary:w.text.primary}const T=e=>{let{color:t,name:n,mainShade:o=500,lightShade:a=300,darkShade:l=700}=e;if(t=(0,r.A)({},t),!t.main&&t[o]&&(t.main=t[o]),!t.hasOwnProperty("main"))throw new Error((0,i.A)(11,n?" (".concat(n,")"):"",o));if("string"!==typeof t.main)throw new Error((0,i.A)(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return A(t,"light",a,s),A(t,"dark",l,s),t.contrastText||(t.contrastText=O(t.main)),t},I={dark:x,light:w};return(0,a.A)((0,r.A)({common:(0,r.A)({},d),mode:t,primary:T({color:c,name:"primary"}),secondary:T({color:S,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:T({color:_,name:"error"}),warning:T({color:E,name:"warning"}),info:T({color:k,name:"info"}),success:T({color:C,name:"success"}),grey:f.A,contrastThreshold:n,getContrastText:O,augmentColor:T,tonalOffset:s},I[t]),l)}const _=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const k={textTransform:"uppercase"},C='"Roboto", "Helvetica", "Arial", sans-serif';function E(e,t){const n="function"===typeof t?t(e):t,{fontFamily:i=C,fontSize:s=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:d=700,htmlFontSize:f=16,allVariants:p,pxToRem:h}=n,m=(0,o.A)(n,_);const g=s/14,v=h||(e=>"".concat(e/f*g,"rem")),y=(e,t,n,o,a)=>{return(0,r.A)({fontFamily:i,fontWeight:e,fontSize:v(t),lineHeight:n},i===C?{letterSpacing:"".concat((s=o/t,Math.round(1e5*s)/1e5),"em")}:{},a,p);var s},b={h1:y(l,96,1.167,-1.5),h2:y(l,60,1.2,-.5),h3:y(c,48,1.167,0),h4:y(c,34,1.235,.25),h5:y(c,24,1.334,0),h6:y(u,20,1.6,.15),subtitle1:y(c,16,1.75,.15),subtitle2:y(u,14,1.57,.1),body1:y(c,16,1.5,.15),body2:y(c,14,1.43,.15),button:y(u,14,1.75,.4,k),caption:y(c,12,1.66,.4),overline:y(c,12,2.66,1,k),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,a.A)((0,r.A)({htmlFontSize:f,pxToRem:v,fontFamily:i,fontSize:s,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:d},b),m,{clone:!1})}function O(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const T=["none",O(0,2,1,-1,0,1,1,0,0,1,3,0),O(0,3,1,-2,0,2,2,0,0,1,5,0),O(0,3,3,-2,0,3,4,0,0,1,8,0),O(0,2,4,-1,0,4,5,0,0,1,10,0),O(0,3,5,-1,0,5,8,0,0,1,14,0),O(0,3,5,-1,0,6,10,0,0,1,18,0),O(0,4,5,-2,0,7,10,1,0,2,16,1),O(0,5,5,-3,0,8,10,1,0,3,14,2),O(0,5,6,-3,0,9,12,1,0,3,16,2),O(0,6,6,-3,0,10,14,1,0,4,18,3),O(0,6,7,-4,0,11,15,1,0,4,20,3),O(0,7,8,-4,0,12,17,2,0,5,22,4),O(0,7,8,-4,0,13,19,2,0,5,24,4),O(0,7,9,-4,0,14,21,2,0,5,26,4),O(0,8,9,-5,0,15,22,2,0,6,28,5),O(0,8,10,-5,0,16,24,2,0,6,30,5),O(0,8,11,-5,0,17,26,2,0,6,32,5),O(0,9,11,-5,0,18,28,2,0,7,34,6),O(0,9,12,-6,0,19,29,2,0,7,36,6),O(0,10,13,-6,0,20,31,3,0,8,38,7),O(0,10,13,-6,0,21,33,3,0,8,40,7),O(0,10,14,-6,0,22,35,3,0,8,42,7),O(0,11,14,-7,0,23,36,3,0,9,44,8),O(0,11,15,-7,0,24,38,3,0,9,46,8)],I=["duration","easing","delay"],R={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)"},P={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function M(e){return"".concat(Math.round(e),"ms")}function D(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function L(e){const t=(0,r.A)({},R,e.easing),n=(0,r.A)({},P,e.duration);return(0,r.A)({getAutoHeightDuration:D,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{duration:i=n.standard,easing:a=t.easeInOut,delay:s=0}=r;(0,o.A)(r,I);return(Array.isArray(e)?e:[e]).map((e=>"".concat(e," ").concat("string"===typeof i?i:M(i)," ").concat(a," ").concat("string"===typeof s?s:M(s)))).join(",")}},e,{easing:t,duration:n})}const j={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},N=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function F(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mixins:t={},palette:n={},transitions:u={},typography:d={}}=e,f=(0,o.A)(e,N);if(e.vars)throw new Error((0,i.A)(18));const p=S(n),h=(0,c.A)(e);let m=(0,a.A)(h,{mixins:(g=h.breakpoints,v=t,(0,r.A)({toolbar:{minHeight:56,[g.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[g.up("sm")]:{minHeight:64}}},v)),palette:p,shadows:T.slice(),typography:E(p,d),transitions:L(u),zIndex:(0,r.A)({},j)});var g,v;m=(0,a.A)(m,f);for(var y=arguments.length,b=new Array(y>1?y-1:0),w=1;w<y;w++)b[w-1]=arguments[w];return m=b.reduce(((e,t)=>(0,a.A)(e,t)),m),m.unstable_sxConfig=(0,r.A)({},s.A,null==f?void 0:f.unstable_sxConfig),m.unstable_sx=function(e){return(0,l.A)({sx:e,theme:this})},m}const z=F},4193:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=(0,n(3927).A)()},9724:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r="$$material"},118:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7138);const o=e=>(0,r.A)(e)&&"classes"!==e},7138:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}},4972:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s});var r=n(7161),o=n(4193),i=n(9724),a=n(118);const s=(0,r.Ay)({themeId:i.A,defaultTheme:o.A,rootShouldForwardProp:a.A})},6166:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(8947).A},6754:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(5973).A},8259:(e,t,n)=>{"use strict";n.d(t,{A:()=>b});var r=n(9575),o=n(2176),i=n(7502),a=n(2236),s=n(9311),l=n(6166),c=n(3185),u=n(4972),d=n(7745),f=n(4717);function p(e){return(0,f.Ay)("MuiSvgIcon",e)}(0,d.A)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var h=n(812);const m=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],g=(0,u.Ay)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t["color".concat((0,l.A)(n.color))],t["fontSize".concat((0,l.A)(n.fontSize))]]}})((e=>{let{theme:t,ownerState:n}=e;var r,o,i,a,s,l,c,u,d,f,p,h,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:n.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=t.transitions)||null==(o=r.create)?void 0:o.call(r,"fill",{duration:null==(i=t.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(a=t.typography)||null==(s=a.pxToRem)?void 0:s.call(a,20))||"1.25rem",medium:(null==(l=t.typography)||null==(c=l.pxToRem)?void 0:c.call(l,24))||"1.5rem",large:(null==(u=t.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[n.fontSize],color:null!=(f=null==(p=(t.vars||t).palette)||null==(p=p[n.color])?void 0:p.main)?f:{action:null==(h=(t.vars||t).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(m=(t.vars||t).palette)||null==(m=m.action)?void 0:m.disabled,inherit:void 0}[n.color]}})),v=o.forwardRef((function(e,t){const n=(0,c.b)({props:e,name:"MuiSvgIcon"}),{children:u,className:d,color:f="inherit",component:v="svg",fontSize:y="medium",htmlColor:b,inheritViewBox:w=!1,titleAccess:x,viewBox:A="0 0 24 24"}=n,S=(0,i.A)(n,m),_=o.isValidElement(u)&&"svg"===u.type,k=(0,r.A)({},n,{color:f,component:v,fontSize:y,instanceFontSize:e.fontSize,inheritViewBox:w,viewBox:A,hasSvgAsChild:_}),C={};w||(C.viewBox=A);const E=(e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root","inherit"!==t&&"color".concat((0,l.A)(t)),"fontSize".concat((0,l.A)(n))]};return(0,s.A)(o,p,r)})(k);return(0,h.jsxs)(g,(0,r.A)({as:v,className:(0,a.A)(E.root,d),focusable:"false",color:b,"aria-hidden":!x||void 0,role:x?"img":void 0,ref:t},C,S,_&&u.props,{ownerState:k,children:[_?u.props.children:u,x?(0,h.jsx)("title",{children:x}):null]}))}));v.muiName="SvgIcon";const y=v;function b(e,t){function n(n,o){return(0,h.jsx)(y,(0,r.A)({"data-testid":"".concat(t,"Icon"),ref:o},n,{children:e}))}return n.muiName=y.muiName,o.memo(o.forwardRef(n))}},6603:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(7477).A},1914:(e,t,n)=>{"use strict";n.r(t),n.d(t,{capitalize:()=>o.A,createChainedFunction:()=>i.A,createSvgIcon:()=>a.A,debounce:()=>s.A,deprecatedPropType:()=>l,isMuiElement:()=>c.A,ownerDocument:()=>u.A,ownerWindow:()=>d.A,requirePropFactory:()=>f,setRef:()=>p,unstable_ClassNameGenerator:()=>x,unstable_useEnhancedEffect:()=>h.A,unstable_useId:()=>m.A,unsupportedProp:()=>g,useControlled:()=>v.A,useEventCallback:()=>y.A,useForkRef:()=>b.A,useIsFocusVisible:()=>w.A});var r=n(8371),o=n(6166),i=n(6754),a=n(8259),s=n(6603);const l=function(e,t){return()=>null};var c=n(575),u=n(4052),d=n(1137);n(9575);const f=function(e,t){return()=>null};const p=n(7177).A;var h=n(8862),m=n(9888);const g=function(e,t,n,r,o){return null};var v=n(8075),y=n(1006),b=n(4784),w=n(215);const x={configure:e=>{r.A.configure(e)}}},575:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2176);const o=function(e,t){var n,o;return r.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(o=e.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)}},4052:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(5721).A},1137:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(2049).A},8075:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(7481).A},8862:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(4269).A},1006:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(1391).A},4784:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(6599).A},9888:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(665).A},215:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=n(1989).A},4248:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});n(2176);var r=n(137),o=n(812);function i(e){const{styles:t,defaultTheme:n={}}=e,i="function"===typeof t?e=>{return t(void 0===(r=e)||null===r||0===Object.keys(r).length?n:e);var r}:t;return(0,o.jsx)(r.mL,{styles:i})}},3786:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GlobalStyles:()=>A.A,StyledEngineProvider:()=>x,ThemeContext:()=>o.T,css:()=>v.AH,default:()=>S,internal_processStyles:()=>_,keyframes:()=>v.i7});var r=n(9575),o=n(8367),i=n(531),a=n(7075),s=n(517),l=n(2176),c=n(9965),u=/^((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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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)-.*))$/,d=(0,c.A)((function(e){return u.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),f=function(e){return"theme"!==e},p=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?d:f},h=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,s.SF)(t,n,r),(0,a.s)((function(){return(0,s.sk)(t,n,r)})),null},g=function e(t,n){var a,c,u=t.__emotion_real===t,d=u&&t.__emotion_base||t;void 0!==n&&(a=n.label,c=n.target);var f=h(t,n,u),g=f||p(d),v=!g("as");return function(){var y=arguments,b=u&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==a&&b.push("label:"+a+";"),null==y[0]||void 0===y[0].raw)b.push.apply(b,y);else{var w=y[0];b.push(w[0]);for(var x=y.length,A=1;A<x;A++)b.push(y[A],w[A])}var S=(0,o.w)((function(e,t,n){var r=v&&e.as||d,a="",u=[],h=e;if(null==e.theme){for(var y in h={},e)h[y]=e[y];h.theme=l.useContext(o.T)}"string"===typeof e.className?a=(0,s.Rk)(t.registered,u,e.className):null!=e.className&&(a=e.className+" ");var w=(0,i.J)(b.concat(u),t.registered,h);a+=t.key+"-"+w.name,void 0!==c&&(a+=" "+c);var x=v&&void 0===f?p(r):g,A={};for(var S in e)v&&"as"===S||x(S)&&(A[S]=e[S]);return A.className=a,n&&(A.ref=n),l.createElement(l.Fragment,null,l.createElement(m,{cache:t,serialized:w,isStringTag:"string"===typeof r}),l.createElement(r,A))}));return S.displayName=void 0!==a?a:"Styled("+("string"===typeof d?d:d.displayName||d.name||"Component")+")",S.defaultProps=t.defaultProps,S.__emotion_real=S,S.__emotion_base=d,S.__emotion_styles=b,S.__emotion_forwardProp=f,Object.defineProperty(S,"toString",{value:function(){return"."+c}}),S.withComponent=function(t,o){return e(t,(0,r.A)({},n,o,{shouldForwardProp:h(S,o,!0)})).apply(void 0,b)},S}},v=n(137),y=n(1702),b=n(812);let w;function x(e){const{injectFirst:t,children:n}=e;return t&&w?(0,b.jsx)(o.C,{value:w,children:n}):n}"object"===typeof document&&(w=(0,y.A)({key:"css",prepend:!0}));var A=n(4248);function S(e,t){return g(e,(0,r.A)({},{target:"e1de0imv0"},t))}const _=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},943:(e,t,n)=>{"use strict";var r=n(4293);t.X4=p,t.e$=h,t.eM=function(e,t){const n=f(e),r=f(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.a=m;var o=r(n(7100)),i=r(n(6150));function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,i.default)(e,t,n)}function s(e){e=e.slice(1);const t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", "),")"):""}function l(e){if(e.type)return e;if("#"===e.charAt(0))return l(s(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,o.default)(9,e));let r,i=e.substring(t+1,e.length-1);if("color"===n){if(i=i.split(" "),r=i.shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,o.default)(10,r))}else i=i.split(",");return i=i.map((e=>parseFloat(e))),{type:n,values:i,colorSpace:r}}const c=e=>{const t=l(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?"".concat(e,"%"):e)).join(" ")};function u(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),r=-1!==t.indexOf("color")?"".concat(n," ").concat(r.join(" ")):"".concat(r.join(", ")),"".concat(t,"(").concat(r,")")}function d(e){e=l(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)};let s="rgb";const c=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",c.push(t[3])),u({type:s,values:c})}function f(e){let t="hsl"===(e=l(e)).type||"hsla"===e.type?l(d(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function p(e,t){return e=l(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,u(e)}function h(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return u(e)}function m(e,t){if(e=l(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return u(e)}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return f(e)>.5?h(e,t):m(e,t)}},7161:(e,t,n)=>{"use strict";var r=n(4293);t.Ay=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=m,rootShouldForwardProp:r=h,slotShouldForwardProp:l=h}=e,u=e=>(0,c.default)((0,o.default)({},e,{theme:v((0,o.default)({},e,{defaultTheme:n,themeId:t}))}));return u.__mui_systemSx=!0,function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:d,slot:p,skipVariantsResolver:m,skipSx:w,overridesResolver:x=y(g(p))}=c,A=(0,i.default)(c,f),S=void 0!==m?m:p&&"Root"!==p&&"root"!==p||!1,_=w||!1;let k=h;"Root"===p||"root"===p?k=r:p?k=l:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(k=void 0);const C=(0,a.default)(e,(0,o.default)({shouldForwardProp:k,label:undefined},A)),E=e=>"function"===typeof e&&e.__emotion_real!==e||(0,s.isPlainObject)(e)?r=>b(e,(0,o.default)({},r,{theme:v({theme:r.theme,defaultTheme:n,themeId:t})})):e,O=function(r){let i=E(r);for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];const c=s?s.map(E):[];d&&x&&c.push((e=>{const r=v((0,o.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[d]||!r.components[d].styleOverrides)return null;const i=r.components[d].styleOverrides,a={};return Object.entries(i).forEach((t=>{let[n,i]=t;a[n]=b(i,(0,o.default)({},e,{theme:r}))})),x(e,a)})),d&&!S&&c.push((e=>{var r;const i=v((0,o.default)({},e,{defaultTheme:n,themeId:t}));return b({variants:null==i||null==(r=i.components)||null==(r=r[d])?void 0:r.variants},(0,o.default)({},e,{theme:i}))})),_||c.push(u);const f=c.length-s.length;if(Array.isArray(r)&&f>0){const e=new Array(f).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const p=C(i,...c);return e.muiName&&(p.muiName=e.muiName),p};return C.withConfig&&(O.withConfig=C.withConfig),O}};var o=r(n(4505)),i=r(n(1112)),a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(3786)),s=n(6355),l=(r(n(7945)),r(n(9323)),r(n(9474))),c=r(n(6285));const u=["ownerState"],d=["variants"],f=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function h(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const m=(0,l.default)(),g=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function v(e){let{defaultTheme:t,theme:n,themeId:r}=e;return o=n,0===Object.keys(o).length?t:n[r]||n;var o}function y(e){return e?(t,n)=>n[e]:null}function b(e,t){let{ownerState:n}=t,r=(0,i.default)(t,u);const a="function"===typeof e?e((0,o.default)({ownerState:n},r)):e;if(Array.isArray(a))return a.flatMap((e=>b(e,(0,o.default)({ownerState:n},r))));if(a&&"object"===typeof a&&Array.isArray(a.variants)){const{variants:e=[]}=a;let t=(0,i.default)(a,d);return e.forEach((e=>{let i=!0;"function"===typeof e.props?i=e.props((0,o.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(i=!1)})),i&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,o.default)({ownerState:n},r,n)):e.style))})),t}return a}},729:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,b:()=>s});var r=n(2176),o=n(1703),i=n(812);const a=r.createContext(void 0);function s(e){let{props:t,name:n}=e;return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?(0,o.A)(i.defaultProps,r):i.styleOverrides||i.variants?r:(0,o.A)(i,r)}({props:t,name:n,theme:{components:r.useContext(a)}})}const l=function(e){let{value:t,children:n}=e;return(0,i.jsx)(a.Provider,{value:t,children:n})}},8592:(e,t,n)=>{"use strict";n.d(t,{EU:()=>s,NI:()=>a,iZ:()=>c,kW:()=>u,vf:()=>l,zu:()=>o});var r=n(9977);const o={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:e=>"@media (min-width:".concat(o[e],"px)")};function a(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||i;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"===typeof t){const e=r.breakpoints||i;return Object.keys(t).reduce(((r,i)=>{if(-1!==Object.keys(e.values||o).indexOf(i)){r[e.up(i)]=n(t[i],i)}else{const e=i;r[e]=t[e]}return r}),{})}return n(t)}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function l(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function c(e){const t=s(e);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];const a=[t,...o].reduce(((e,t)=>(0,r.A)(e,t)),{});return l(Object.keys(t),a)}function u(e){let{values:t,breakpoints:n,base:r}=e;const o=r||function(e,t){if("object"!==typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(t,n),i=Object.keys(o);if(0===i.length)return t;let a;return i.reduce(((e,n,r)=>(Array.isArray(t)?(e[n]=null!=t[r]?t[r]:t[a],a=r):"object"===typeof t?(e[n]=null!=t[n]?t[n]:t[a],a=n):e[n]=t,e)),{})}},3044:(e,t,n)=>{"use strict";function r(e,t){const n=this;if(n.vars&&"function"===typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}n.d(t,{A:()=>r})},7578:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(7502),o=n(9575);const i=["values","unit","step"],a=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,o.A)({},e,{[t.key]:t.val})),{})};function s(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:s=5}=e,l=(0,r.A)(e,i),c=a(t),u=Object.keys(c);function d(e){const r="number"===typeof t[e]?t[e]:e;return"@media (min-width:".concat(r).concat(n,")")}function f(e){const r="number"===typeof t[e]?t[e]:e;return"@media (max-width:".concat(r-s/100).concat(n,")")}function p(e,r){const o=u.indexOf(r);return"@media (min-width:".concat("number"===typeof t[e]?t[e]:e).concat(n,") and ")+"(max-width:".concat((-1!==o&&"number"===typeof t[u[o]]?t[u[o]]:r)-s/100).concat(n,")")}return(0,o.A)({keys:u,values:c,up:d,down:f,between:p,only:function(e){return u.indexOf(e)+1<u.length?p(e,u[u.indexOf(e)+1]):d(e)},not:function(e){const t=u.indexOf(e);return 0===t?d(u[1]):t===u.length-1?f(u[t]):p(e,u[u.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},l)}},1733:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(9575),o=n(7502),i=n(9977),a=n(7578);const s={borderRadius:4};var l=n(6825);var c=n(319),u=n(3063),d=n(3044);const f=["breakpoints","palette","spacing","shape"];const p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t={},palette:n={},spacing:p,shape:h={}}=e,m=(0,o.A)(e,f),g=(0,a.A)(t),v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;const t=(0,l.LX)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0===n.length?[1]:n).map((e=>{const n=t(e);return"number"===typeof n?"".concat(n,"px"):n})).join(" ")};return n.mui=!0,n}(p);let y=(0,i.A)({breakpoints:g,direction:"ltr",components:{},palette:(0,r.A)({mode:"light"},n),spacing:v,shape:(0,r.A)({},s,h)},m);y.applyStyles=d.A;for(var b=arguments.length,w=new Array(b>1?b-1:0),x=1;x<b;x++)w[x-1]=arguments[x];return y=w.reduce(((e,t)=>(0,i.A)(e,t)),y),y.unstable_sxConfig=(0,r.A)({},u.A,null==m?void 0:m.unstable_sxConfig),y.unstable_sx=function(e){return(0,c.A)({sx:e,theme:this})},y}},9474:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,private_createBreakpoints:()=>o.A,unstable_applyStyles:()=>i.A});var r=n(1733),o=n(7578),i=n(3044)},2448:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(9977);const o=function(e,t){return t?(0,r.A)(e,t,{clone:!1}):e}},6825:(e,t,n)=>{"use strict";n.d(t,{LX:()=>h,MA:()=>p,_W:()=>m,Lc:()=>y,Ms:()=>b});var r=n(8592),o=n(9021),i=n(2448);const a={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,n]=e.split(""),r=a[t],o=s[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],f=[...u,...d];function p(e,t,n,r){var i;const a=null!=(i=(0,o.Yn)(e,t,!1))?i:n;return"number"===typeof a?e=>"string"===typeof e?e:a*e:Array.isArray(a)?e=>"string"===typeof e?e:a[e]:"function"===typeof a?a:()=>{}}function h(e){return p(e,"spacing",8)}function m(e,t){if("string"===typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}function g(e,t,n,o){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=m(t,n),e)),{})}(c(n),o),a=e[n];return(0,r.NI)(e,a,i)}function v(e,t){const n=h(e.theme);return Object.keys(e).map((r=>g(e,t,r,n))).reduce(i.A,{})}function y(e){return v(e,u)}function b(e){return v(e,d)}function w(e){return v(e,f)}y.propTypes={},y.filterProps=u,b.propTypes={},b.filterProps=d,w.propTypes={},w.filterProps=f},9021:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,BO:()=>a,Yn:()=>i});var r=n(8947),o=n(8592);function i(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){const n="vars.".concat(t).split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function a(e,t,n){let r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||o:i(e,n)||o,t&&(r=t(r,o,e)),r}const s=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=i(e.theme,s)||{};return(0,o.NI)(e,c,(e=>{let o=a(u,l,e);return e===o&&"string"===typeof e&&(o=a(u,l,"".concat(t).concat("default"===e?"":(0,r.A)(e)),e)),!1===n?o:{[n]:o}}))};return c.propTypes={},c.filterProps=[t],c}},3063:(e,t,n)=>{"use strict";n.d(t,{A:()=>D});var r=n(6825),o=n(9021),i=n(2448);const a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),o=e=>Object.keys(e).reduce(((t,n)=>r[n]?(0,i.A)(t,r[n](e)):t),{});return o.propTypes={},o.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),o};var s=n(8592);function l(e){return"number"!==typeof e?e:"".concat(e,"px solid")}function c(e,t){return(0,o.Ay)({prop:e,themeKey:"borders",transform:t})}const u=c("border",l),d=c("borderTop",l),f=c("borderRight",l),p=c("borderBottom",l),h=c("borderLeft",l),m=c("borderColor"),g=c("borderTopColor"),v=c("borderRightColor"),y=c("borderBottomColor"),b=c("borderLeftColor"),w=c("outline",l),x=c("outlineColor"),A=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.MA)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,r._W)(t,e)});return(0,s.NI)(e,e.borderRadius,n)}return null};A.propTypes={},A.filterProps=["borderRadius"];a(u,d,f,p,h,m,g,v,y,b,A,w,x);const S=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.MA)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,r._W)(t,e)});return(0,s.NI)(e,e.gap,n)}return null};S.propTypes={},S.filterProps=["gap"];const _=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.MA)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.columnGap,n)}return null};_.propTypes={},_.filterProps=["columnGap"];const k=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.MA)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,r._W)(t,e)});return(0,s.NI)(e,e.rowGap,n)}return null};k.propTypes={},k.filterProps=["rowGap"];a(S,_,k,(0,o.Ay)({prop:"gridColumn"}),(0,o.Ay)({prop:"gridRow"}),(0,o.Ay)({prop:"gridAutoFlow"}),(0,o.Ay)({prop:"gridAutoColumns"}),(0,o.Ay)({prop:"gridAutoRows"}),(0,o.Ay)({prop:"gridTemplateColumns"}),(0,o.Ay)({prop:"gridTemplateRows"}),(0,o.Ay)({prop:"gridTemplateAreas"}),(0,o.Ay)({prop:"gridArea"}));function C(e,t){return"grey"===t?t:e}a((0,o.Ay)({prop:"color",themeKey:"palette",transform:C}),(0,o.Ay)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:C}),(0,o.Ay)({prop:"backgroundColor",themeKey:"palette",transform:C}));function E(e){return e<=1&&0!==e?"".concat(100*e,"%"):e}const O=(0,o.Ay)({prop:"width",transform:E}),T=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||s.zu[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:"".concat(o).concat(e.theme.breakpoints.unit)}:{maxWidth:o}:{maxWidth:E(t)}};return(0,s.NI)(e,e.maxWidth,t)}return null};T.filterProps=["maxWidth"];const I=(0,o.Ay)({prop:"minWidth",transform:E}),R=(0,o.Ay)({prop:"height",transform:E}),P=(0,o.Ay)({prop:"maxHeight",transform:E}),M=(0,o.Ay)({prop:"minHeight",transform:E}),D=((0,o.Ay)({prop:"size",cssProperty:"width",transform:E}),(0,o.Ay)({prop:"size",cssProperty:"height",transform:E}),a(O,T,I,R,P,M,(0,o.Ay)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:l},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:A},color:{themeKey:"palette",transform:C},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:C},backgroundColor:{themeKey:"palette",transform:C},p:{style:r.Ms},pt:{style:r.Ms},pr:{style:r.Ms},pb:{style:r.Ms},pl:{style:r.Ms},px:{style:r.Ms},py:{style:r.Ms},padding:{style:r.Ms},paddingTop:{style:r.Ms},paddingRight:{style:r.Ms},paddingBottom:{style:r.Ms},paddingLeft:{style:r.Ms},paddingX:{style:r.Ms},paddingY:{style:r.Ms},paddingInline:{style:r.Ms},paddingInlineStart:{style:r.Ms},paddingInlineEnd:{style:r.Ms},paddingBlock:{style:r.Ms},paddingBlockStart:{style:r.Ms},paddingBlockEnd:{style:r.Ms},m:{style:r.Lc},mt:{style:r.Lc},mr:{style:r.Lc},mb:{style:r.Lc},ml:{style:r.Lc},mx:{style:r.Lc},my:{style:r.Lc},margin:{style:r.Lc},marginTop:{style:r.Lc},marginRight:{style:r.Lc},marginBottom:{style:r.Lc},marginLeft:{style:r.Lc},marginX:{style:r.Lc},marginY:{style:r.Lc},marginInline:{style:r.Lc},marginInlineStart:{style:r.Lc},marginInlineEnd:{style:r.Lc},marginBlock:{style:r.Lc},marginBlockStart:{style:r.Lc},marginBlockEnd:{style:r.Lc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:S},rowGap:{style:k},columnGap:{style:_},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:E},maxWidth:{style:T},minWidth:{transform:E},height:{transform:E},maxHeight:{transform:E},minHeight:{transform:E},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},4539:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(9575),o=n(7502),i=n(9977),a=n(3063);const s=["sx"],l=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:a.A;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function c(e){const{sx:t}=e,n=(0,o.A)(e,s),{systemProps:a,otherProps:c}=l(n);let u;return u=Array.isArray(t)?[a,...t]:"function"===typeof t?function(){const e=t(...arguments);return(0,i.Q)(e)?(0,r.A)({},a,e):a}:(0,r.A)({},a,t),(0,r.A)({},c,{sx:u})}},6285:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,extendSxProp:()=>o.A,unstable_createStyleFunctionSx:()=>r.k,unstable_defaultSxConfig:()=>i.A});var r=n(319),o=n(4539),i=n(3063)},319:(e,t,n)=>{"use strict";n.d(t,{A:()=>u,k:()=>l});var r=n(8947),o=n(2448),i=n(9021),a=n(8592),s=n(3063);function l(){function e(e,t,n,o){const s={[e]:t,theme:n},l=o[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:d,style:f}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const p=(0,i.Yn)(n,u)||{};if(f)return f(s);return(0,a.NI)(s,t,(t=>{let n=(0,i.BO)(p,d,t);return t===n&&"string"===typeof t&&(n=(0,i.BO)(p,d,"".concat(e).concat("default"===t?"":(0,r.A)(t)),t)),!1===c?n:{[c]:n}}))}return function t(n){var r;const{sx:i,theme:l={}}=n||{};if(!i)return null;const c=null!=(r=l.unstable_sxConfig)?r:s.A;function u(n){let r=n;if("function"===typeof n)r=n(l);else if("object"!==typeof n)return n;if(!r)return null;const i=(0,a.EU)(l.breakpoints),s=Object.keys(i);let u=i;return Object.keys(r).forEach((n=>{const i=(s=r[n],d=l,"function"===typeof s?s(d):s);var s,d;if(null!==i&&void 0!==i)if("object"===typeof i)if(c[n])u=(0,o.A)(u,e(n,i,l,c));else{const e=(0,a.NI)({theme:l},i,(e=>({[n]:e})));!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>e.concat(Object.keys(t))),[]),o=new Set(r);return t.every((e=>o.size===Object.keys(e).length))}(e,i)?u=(0,o.A)(u,e):u[n]=t({sx:i,theme:l})}else u=(0,o.A)(u,e(n,i,l,c))})),(0,a.vf)(s,u)}return Array.isArray(i)?i.map(u):u(i)}}const c=l();c.filterProps=["sx"];const u=c},3159:(e,t,n)=>{"use strict";t.A=void 0;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(n(2176)),o=n(3786);function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}t.A=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=r.useContext(o.ThemeContext);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},8371:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});const r=e=>e,o=(()=>{let e=r;return{configure(t){e=t},generate:t=>e(t),reset(){e=r}}})()},8947:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(8145);function o(e){if("string"!==typeof e)throw new Error((0,r.A)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},7945:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(8947)},3657:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});const r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MIN_SAFE_INTEGER,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.MAX_SAFE_INTEGER;return Math.max(t,Math.min(e,n))}},6150:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(3657)},9311:(e,t,n)=>{"use strict";function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}n.d(t,{A:()=>r})},5973:(e,t,n)=>{"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(((e,t)=>null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}),(()=>{}))}n.d(t,{A:()=>r})},7477:(e,t,n)=>{"use strict";function r(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];clearTimeout(t),t=setTimeout((()=>{e.apply(this,o)}),n)}return r.clear=()=>{clearTimeout(t)},r}n.d(t,{A:()=>r})},9977:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,Q:()=>i});var r=n(9575),o=n(2176);function i(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function a(e){if(o.isValidElement(e)||!i(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=a(e[n])})),t}function s(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0};const l=n.clone?(0,r.A)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((r=>{o.isValidElement(t[r])?l[r]=t[r]:i(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&i(e[r])?l[r]=s(e[r],t[r],n):n.clone?l[r]=i(t[r])?a(t[r]):t[r]:l[r]=t[r]})),l}},6355:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A,isPlainObject:()=>r.Q});var r=n(9977)},8145:(e,t,n)=>{"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{A:()=>r})},7100:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r.A});var r=n(8145)},4717:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>i});var r=n(8371);const o={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 i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const i=o[t];return i?"".concat(n,"-").concat(i):"".concat(r.A.generate(e),"-").concat(t)}},7745:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(4717);function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const o={};return t.forEach((t=>{o[t]=(0,r.Ay)(e,t,n)})),o}},9323:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>l,getFunctionName:()=>i});var r=n(3234);const o=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function i(e){const t="".concat(e).match(o);return t&&t[1]||""}function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||i(e)||t}function s(e,t,n){const r=a(t);return e.displayName||(""!==r?"".concat(n,"(").concat(r,")"):n)}function l(e){if(null!=e){if("string"===typeof e)return e;if("function"===typeof e)return a(e,"Component");if("object"===typeof e)switch(e.$$typeof){case r.vM:return s(e,e.render,"ForwardRef");case r.lD:return s(e,e.type,"memo");default:return}}}},5721:(e,t,n)=>{"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,{A:()=>r})},2049:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(5721);function o(e){return(0,r.A)(e).defaultView||window}},1703:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(9575);function o(e,t){const n=(0,r.A)({},t);return Object.keys(e).forEach((i=>{if(i.toString().match(/^(components|slots)$/))n[i]=(0,r.A)({},e[i],n[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){const a=e[i]||{},s=t[i];n[i]={},s&&Object.keys(s)?a&&Object.keys(a)?(n[i]=(0,r.A)({},s),Object.keys(a).forEach((e=>{n[i][e]=o(a[e],s[e])}))):n[i]=s:n[i]=a}else void 0===n[i]&&(n[i]=e[i])})),n}},7177:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{A:()=>r})},7481:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2176);function o(e){let{controlled:t,default:n,name:o,state:i="value"}=e;const{current:a}=r.useRef(void 0!==t),[s,l]=r.useState(n);return[a?t:s,r.useCallback((e=>{a||l(e)}),[])]}},4269:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2176);const o="undefined"!==typeof window?r.useLayoutEffect:r.useEffect},1391:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2176),o=n(4269);const i=function(e){const t=r.useRef(e);return(0,o.A)((()=>{t.current=e})),r.useRef((function(){return(0,t.current)(...arguments)})).current}},6599:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2176),o=n(7177);function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{(0,o.A)(t,e)}))}),t)}},665:(e,t,n)=>{"use strict";var r;n.d(t,{A:()=>s});var o=n(2176);let i=0;const a=(r||(r=n.t(o,2)))["useId".toString()];function s(e){if(void 0!==a){const t=a();return null!=e?e:t}return function(e){const[t,n]=o.useState(e),r=e||t;return o.useEffect((()=>{null==t&&(i+=1,n("mui-".concat(i)))}),[t]),r}(e)}},1989:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(2176),o=n(560);let i=!0,a=!1;const s=new o.E,l={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 c(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function u(){i=!1}function d(){"hidden"===this.visibilityState&&a&&(i=!0)}function f(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return i||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!l[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function p(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",d,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!f(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(a=!0,s.start(100,(()=>{a=!1})),t.current=!1,!0)},ref:e}}},560:(e,t,n)=>{"use strict";n.d(t,{E:()=>a,A:()=>s});var r=n(2176);const o={};const i=[];class a{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new a}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function s(){const e=function(e,t){const n=r.useRef(o);return n.current===o&&(n.current=e(t)),n}(a.create).current;var t;return t=e.disposeEffect,r.useEffect(t,i),e}},3234:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler");Symbol.for("react.provider");var s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),m=Symbol.for("react.client.reference");function g(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case c:case p:case f:case s:return e;default:return t}}case r:return t}}}t.vM=c,t.lD=f},2004:e=>{"use strict";var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var n=[[{color:"0, 0, 0",class:"ansi-black"},{color:"187, 0, 0",class:"ansi-red"},{color:"0, 187, 0",class:"ansi-green"},{color:"187, 187, 0",class:"ansi-yellow"},{color:"0, 0, 187",class:"ansi-blue"},{color:"187, 0, 187",class:"ansi-magenta"},{color:"0, 187, 187",class:"ansi-cyan"},{color:"255,255,255",class:"ansi-white"}],[{color:"85, 85, 85",class:"ansi-bright-black"},{color:"255, 85, 85",class:"ansi-bright-red"},{color:"0, 255, 0",class:"ansi-bright-green"},{color:"255, 255, 85",class:"ansi-bright-yellow"},{color:"85, 85, 255",class:"ansi-bright-blue"},{color:"255, 85, 255",class:"ansi-bright-magenta"},{color:"85, 255, 255",class:"ansi-bright-cyan"},{color:"255, 255, 255",class:"ansi-bright-white"}]],r=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.fg=this.bg=this.fg_truecolor=this.bg_truecolor=null,this.bright=0}return t(e,null,[{key:"escapeForHtml",value:function(t){return(new e).escapeForHtml(t)}},{key:"linkify",value:function(t){return(new e).linkify(t)}},{key:"ansiToHtml",value:function(t,n){return(new e).ansiToHtml(t,n)}},{key:"ansiToJson",value:function(t,n){return(new e).ansiToJson(t,n)}},{key:"ansiToText",value:function(t){return(new e).ansiToText(t)}}]),t(e,[{key:"setupPalette",value:function(){this.PALETTE_COLORS=[];for(var e=0;e<2;++e)for(var t=0;t<8;++t)this.PALETTE_COLORS.push(n[e][t].color);for(var r=[0,95,135,175,215,255],o=function(e,t,n){return r[e]+", "+r[t]+", "+r[n]},i=0;i<6;++i)for(var a=0;a<6;++a)for(var s=0;s<6;++s)this.PALETTE_COLORS.push(o(i,a,s));for(var l=8,c=0;c<24;++c,l+=10)this.PALETTE_COLORS.push(o(l,l,l))}},{key:"escapeForHtml",value:function(e){return e.replace(/[&<>]/gm,(function(e){return"&"==e?"&":"<"==e?"<":">"==e?">":""}))}},{key:"linkify",value:function(e){return e.replace(/(https?:\/\/[^\s]+)/gm,(function(e){return'<a href="'+e+'">'+e+"</a>"}))}},{key:"ansiToHtml",value:function(e,t){return this.process(e,t,!0)}},{key:"ansiToJson",value:function(e,t){return(t=t||{}).json=!0,t.clearLine=!1,this.process(e,t,!0)}},{key:"ansiToText",value:function(e){return this.process(e,{},!1)}},{key:"process",value:function(e,t,n){var r=this,o=e.split(/\033\[/),i=o.shift();void 0!==t&&null!==t||(t={}),t.clearLine=/\r/.test(e);var a=o.map((function(e){return r.processChunk(e,t,n)}));if(t&&t.json){var s=this.processChunkJson("");return s.content=i,s.clearLine=t.clearLine,a.unshift(s),t.remove_empty&&(a=a.filter((function(e){return!e.isEmpty()}))),a}return a.unshift(i),a.join("")}},{key:"processChunkJson",value:function(e,t,r){var o=(t="undefined"==typeof t?{}:t).use_classes="undefined"!=typeof t.use_classes&&t.use_classes,i=t.key=o?"class":"color",a={content:e,fg:null,bg:null,fg_truecolor:null,bg_truecolor:null,clearLine:t.clearLine,decoration:null,was_processed:!1,isEmpty:function(){return!a.content}},s=e.match(/^([!\x3c-\x3f]*)([\d;]*)([\x20-\x2c]*[\x40-\x7e])([\s\S]*)/m);if(!s)return a;a.content=s[4];var l=s[2].split(";");if(""!==s[1]||"m"!==s[3])return a;if(!r)return a;var c=this;for(c.decoration=null;l.length>0;){var u=l.shift(),d=parseInt(u);if(isNaN(d)||0===d)c.fg=c.bg=c.decoration=null;else if(1===d)c.decoration="bold";else if(2===d)c.decoration="dim";else if(3==d)c.decoration="italic";else if(4==d)c.decoration="underline";else if(5==d)c.decoration="blink";else if(7===d)c.decoration="reverse";else if(8===d)c.decoration="hidden";else if(9===d)c.decoration="strikethrough";else if(39==d)c.fg=null;else if(49==d)c.bg=null;else if(d>=30&&d<38)c.fg=n[0][d%10][i];else if(d>=90&&d<98)c.fg=n[1][d%10][i];else if(d>=40&&d<48)c.bg=n[0][d%10][i];else if(d>=100&&d<108)c.bg=n[1][d%10][i];else if(38===d||48===d){var f=38===d;if(l.length>=1){var p=l.shift();if("5"===p&&l.length>=1){var h=parseInt(l.shift());if(h>=0&&h<=255)if(o){var m=h>=16?"ansi-palette-"+h:n[h>7?1:0][h%8].class;f?c.fg=m:c.bg=m}else this.PALETTE_COLORS||c.setupPalette(),f?c.fg=this.PALETTE_COLORS[h]:c.bg=this.PALETTE_COLORS[h]}else if("2"===p&&l.length>=3){var g=parseInt(l.shift()),v=parseInt(l.shift()),y=parseInt(l.shift());if(g>=0&&g<=255&&v>=0&&v<=255&&y>=0&&y<=255){var b=g+", "+v+", "+y;o?f?(c.fg="ansi-truecolor",c.fg_truecolor=b):(c.bg="ansi-truecolor",c.bg_truecolor=b):f?c.fg=b:c.bg=b}}}}}if(null===c.fg&&null===c.bg&&null===c.decoration)return a;return a.fg=c.fg,a.bg=c.bg,a.fg_truecolor=c.fg_truecolor,a.bg_truecolor=c.bg_truecolor,a.decoration=c.decoration,a.was_processed=!0,a}},{key:"processChunk",value:function(e,t,n){var r=this;t=t||{};var o=this.processChunkJson(e,t,n);if(t.json)return o;if(o.isEmpty())return"";if(!o.was_processed)return o.content;var i=t.use_classes,a=[],s=[],l={},c=function(e){var t=[],n=void 0;for(n in e)e.hasOwnProperty(n)&&t.push("data-"+n+'="'+r.escapeForHtml(e[n])+'"');return t.length>0?" "+t.join(" "):""};return o.fg&&(i?(s.push(o.fg+"-fg"),null!==o.fg_truecolor&&(l["ansi-truecolor-fg"]=o.fg_truecolor,o.fg_truecolor=null)):a.push("color:rgb("+o.fg+")")),o.bg&&(i?(s.push(o.bg+"-bg"),null!==o.bg_truecolor&&(l["ansi-truecolor-bg"]=o.bg_truecolor,o.bg_truecolor=null)):a.push("background-color:rgb("+o.bg+")")),o.decoration&&(i?s.push("ansi-"+o.decoration):"bold"===o.decoration?a.push("font-weight:bold"):"dim"===o.decoration?a.push("opacity:0.5"):"italic"===o.decoration?a.push("font-style:italic"):"reverse"===o.decoration?a.push("filter:invert(100%)"):"hidden"===o.decoration?a.push("visibility:hidden"):"strikethrough"===o.decoration?a.push("text-decoration:line-through"):a.push("text-decoration:"+o.decoration)),i?'<span class="'+s.join(" ")+'"'+c(l)+">"+o.content+"</span>":'<span style="'+a.join(";")+'"'+c(l)+">"+o.content+"</span>"}}]),e}();e.exports=r},2842:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const i=r(n(2004)),a=n(1839),s=o(n(2176));function l(e,t,n,r){const o=t?null:function(e){const t={};return e.bg&&(t.backgroundColor="rgb(".concat(e.bg,")")),e.fg&&(t.color="rgb(".concat(e.fg,")")),t}(n),i=t?function(e){let t="";return e.bg&&(t+="".concat(e.bg,"-bg ")),e.fg&&(t+="".concat(e.fg,"-fg ")),e.decoration&&(t+="ansi-".concat(e.decoration," ")),""===t?null:(t=t.substring(0,t.length-1),t)}(n):null;if(!e)return s.createElement("span",{style:o,key:r,className:i},n.content);const a=[],l=/(\s|^)(https?:\/\/(?:www\.|(?!www))[^\s.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/g;let c,u=0;for(;null!==(c=l.exec(n.content));){const[,e,t]=c,r=c.index+e.length;r>u&&a.push(n.content.substring(u,r));const o=t.startsWith("www.")?"http://".concat(t):t;a.push(s.createElement("a",{key:u,href:o,target:"_blank"},"".concat(t))),u=l.lastIndex}return u<n.content.length&&a.push(n.content.substring(u)),s.createElement("span",{style:o,key:r,className:i},a)}t.default=function(e){const{className:t,useClasses:n,children:r,linkify:o}=e;return s.createElement("code",{className:t},function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e=a.escapeCarriageReturn(function(e){let t=e;do{t=(e=t).replace(/[^\n]\x08/gm,"")}while(t.length<e.length);return e}(e)),i.default.ansiToJson(e,{json:!0,remove_empty:!0,use_classes:t})}(null!==r&&void 0!==r?r:"",null!==n&&void 0!==n&&n).map(l.bind(null,null!==o&&void 0!==o&&o,null!==n&&void 0!==n&&n)))}},9411:e=>{e.exports=e=>new Promise((t=>setTimeout(t,e)))},8208:e=>{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},4042:(e,t,n)=>{var r=n(8208),o=n(6292),i=Object.hasOwnProperty,a=Object.create(null);for(var s in r)i.call(r,s)&&(a[r[s]]=s);var l=e.exports={to:{},get:{}};function c(e,t,n){return Math.min(Math.max(t,e),n)}function u(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}l.get=function(e){var t,n;switch(e.substring(0,3).toLowerCase()){case"hsl":t=l.get.hsl(e),n="hsl";break;case"hwb":t=l.get.hwb(e),n="hwb";break;default:t=l.get.rgb(e),n="rgb"}return t?{model:n,value:t}:null},l.get.rgb=function(e){if(!e)return null;var t,n,o,a=[0,0,0,1];if(t=e.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(o=t[2],t=t[1],n=0;n<3;n++){var s=2*n;a[n]=parseInt(t.slice(s,s+2),16)}o&&(a[3]=parseInt(o,16)/255)}else if(t=e.match(/^#([a-f0-9]{3,4})$/i)){for(o=(t=t[1])[3],n=0;n<3;n++)a[n]=parseInt(t[n]+t[n],16);o&&(a[3]=parseInt(o+o,16)/255)}else if(t=e.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)){for(n=0;n<3;n++)a[n]=parseInt(t[n+1],0);t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}else{if(!(t=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(t=e.match(/^(\w+)$/))?"transparent"===t[1]?[0,0,0,0]:i.call(r,t[1])?((a=r[t[1]])[3]=1,a):null:null;for(n=0;n<3;n++)a[n]=Math.round(2.55*parseFloat(t[n+1]));t[4]&&(t[5]?a[3]=.01*parseFloat(t[4]):a[3]=parseFloat(t[4]))}for(n=0;n<3;n++)a[n]=c(a[n],0,255);return a[3]=c(a[3],0,1),a},l.get.hsl=function(e){if(!e)return null;var t=e.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},l.get.hwb=function(e){if(!e)return null;var t=e.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);if(t){var n=parseFloat(t[4]);return[(parseFloat(t[1])%360+360)%360,c(parseFloat(t[2]),0,100),c(parseFloat(t[3]),0,100),c(isNaN(n)?1:n,0,1)]}return null},l.to.hex=function(){var e=o(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(255*e[3])):"")},l.to.rgb=function(){var e=o(arguments);return e.length<4||1===e[3]?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"},l.to.rgb.percent=function(){var e=o(arguments),t=Math.round(e[0]/255*100),n=Math.round(e[1]/255*100),r=Math.round(e[2]/255*100);return e.length<4||1===e[3]?"rgb("+t+"%, "+n+"%, "+r+"%)":"rgba("+t+"%, "+n+"%, "+r+"%, "+e[3]+")"},l.to.hsl=function(){var e=o(arguments);return e.length<4||1===e[3]?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"},l.to.hwb=function(){var e=o(arguments),t="";return e.length>=4&&1!==e[3]&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"},l.to.keyword=function(e){return a[e.slice(0,3)]}},6884:(e,t,n)=>{const r=n(4042),o=n(8477),i=["keyword","gray","hex"],a={};for(const p of Object.keys(o))a[[...o[p].labels].sort().join("")]=p;const s={};function l(e,t){if(!(this instanceof l))return new l(e,t);if(t&&t in i&&(t=null),t&&!(t in o))throw new Error("Unknown model: "+t);let n,c;if(null==e)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof l)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if("string"===typeof e){const t=r.get(e);if(null===t)throw new Error("Unable to parse color from string: "+e);this.model=t.model,c=o[this.model].channels,this.color=t.value.slice(0,c),this.valpha="number"===typeof t.value[c]?t.value[c]:1}else if(e.length>0){this.model=t||"rgb",c=o[this.model].channels;const n=Array.prototype.slice.call(e,0,c);this.color=f(n,c),this.valpha="number"===typeof e[c]?e[c]:1}else if("number"===typeof e)this.model="rgb",this.color=[e>>16&255,e>>8&255,255&e],this.valpha=1;else{this.valpha=1;const t=Object.keys(e);"alpha"in e&&(t.splice(t.indexOf("alpha"),1),this.valpha="number"===typeof e.alpha?e.alpha:0);const r=t.sort().join("");if(!(r in a))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=a[r];const{labels:i}=o[this.model],s=[];for(n=0;n<i.length;n++)s.push(e[i[n]]);this.color=f(s)}if(s[this.model])for(c=o[this.model].channels,n=0;n<c;n++){const e=s[this.model][n];e&&(this.color[n]=e(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}l.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(e){let t=this.model in r.to?this:this.rgb();t=t.round("number"===typeof e?e:1);const n=1===t.valpha?t.color:[...t.color,this.valpha];return r.to[t.model](n)},percentString(e){const t=this.rgb().round("number"===typeof e?e:1),n=1===t.valpha?t.color:[...t.color,this.valpha];return r.to.rgb.percent(n)},array(){return 1===this.valpha?[...this.color]:[...this.color,this.valpha]},object(){const e={},{channels:t}=o[this.model],{labels:n}=o[this.model];for(let r=0;r<t;r++)e[n[r]]=this.color[r];return 1!==this.valpha&&(e.alpha=this.valpha),e},unitArray(){const e=this.rgb().color;return e[0]/=255,e[1]/=255,e[2]/=255,1!==this.valpha&&e.push(this.valpha),e},unitObject(){const e=this.rgb().object();return e.r/=255,e.g/=255,e.b/=255,1!==this.valpha&&(e.alpha=this.valpha),e},round(e){return e=Math.max(e||0,0),new l([...this.color.map(c(e)),this.valpha],this.model)},alpha(e){return void 0!==e?new l([...this.color,Math.max(0,Math.min(1,e))],this.model):this.valpha},red:u("rgb",0,d(255)),green:u("rgb",1,d(255)),blue:u("rgb",2,d(255)),hue:u(["hsl","hsv","hsl","hwb","hcg"],0,(e=>(e%360+360)%360)),saturationl:u("hsl",1,d(100)),lightness:u("hsl",2,d(100)),saturationv:u("hsv",1,d(100)),value:u("hsv",2,d(100)),chroma:u("hcg",1,d(100)),gray:u("hcg",2,d(100)),white:u("hwb",1,d(100)),wblack:u("hwb",2,d(100)),cyan:u("cmyk",0,d(100)),magenta:u("cmyk",1,d(100)),yellow:u("cmyk",2,d(100)),black:u("cmyk",3,d(100)),x:u("xyz",0,d(95.047)),y:u("xyz",1,d(100)),z:u("xyz",2,d(108.833)),l:u("lab",0,d(100)),a:u("lab",1),b:u("lab",2),keyword(e){return void 0!==e?new l(e):o[this.model].keyword(this.color)},hex(e){return void 0!==e?new l(e):r.to.hex(this.rgb().round().color)},hexa(e){if(void 0!==e)return new l(e);const t=this.rgb().round().color;let n=Math.round(255*this.valpha).toString(16).toUpperCase();return 1===n.length&&(n="0"+n),r.to.hex(t)+n},rgbNumber(){const e=this.rgb().color;return(255&e[0])<<16|(255&e[1])<<8|255&e[2]},luminosity(){const e=this.rgb().color,t=[];for(const[n,r]of e.entries()){const e=r/255;t[n]=e<=.04045?e/12.92:((e+.055)/1.055)**2.4}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast(e){const t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level(e){const t=this.contrast(e);return t>=7?"AAA":t>=4.5?"AA":""},isDark(){const e=this.rgb().color;return(2126*e[0]+7152*e[1]+722*e[2])/1e4<128},isLight(){return!this.isDark()},negate(){const e=this.rgb();for(let t=0;t<3;t++)e.color[t]=255-e.color[t];return e},lighten(e){const t=this.hsl();return t.color[2]+=t.color[2]*e,t},darken(e){const t=this.hsl();return t.color[2]-=t.color[2]*e,t},saturate(e){const t=this.hsl();return t.color[1]+=t.color[1]*e,t},desaturate(e){const t=this.hsl();return t.color[1]-=t.color[1]*e,t},whiten(e){const t=this.hwb();return t.color[1]+=t.color[1]*e,t},blacken(e){const t=this.hwb();return t.color[2]+=t.color[2]*e,t},grayscale(){const e=this.rgb().color,t=.3*e[0]+.59*e[1]+.11*e[2];return l.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),o=void 0===t?.5:t,i=2*o-1,a=n.alpha()-r.alpha(),s=((i*a===-1?i:(i+a)/(1+i*a))+1)/2,c=1-s;return l.rgb(s*n.red()+c*r.red(),s*n.green()+c*r.green(),s*n.blue()+c*r.blue(),n.alpha()*o+r.alpha()*(1-o))}};for(const p of Object.keys(o)){if(i.includes(p))continue;const{channels:e}=o[p];l.prototype[p]=function(){if(this.model===p)return new l(this);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.length>0?new l(t,p):new l([...(r=o[this.model][p].raw(this.color),Array.isArray(r)?r:[r]),this.valpha],p);var r},l[p]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];let o=n[0];return"number"===typeof o&&(o=f(n,e)),new l(o,p)}}function c(e){return function(t){return function(e,t){return Number(e.toFixed(t))}(t,e)}}function u(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(s[r]||(s[r]=[]))[t]=n;return e=e[0],function(r){let o;return void 0!==r?(n&&(r=n(r)),o=this[e](),o.color[t]=r,o):(o=this[e]().color[t],n&&(o=n(o)),o)}}function d(e){return function(t){return Math.max(0,Math.min(e,t))}}function f(e,t){for(let n=0;n<t;n++)"number"!==typeof e[n]&&(e[n]=0);return e}e.exports=l},7620:(e,t,n)=>{const r=n(8208),o={};for(const a of Object.keys(r))o[r[a]]=a;const i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=i;for(const a of Object.keys(i)){if(!("channels"in i[a]))throw new Error("missing channels property: "+a);if(!("labels"in i[a]))throw new Error("missing channel labels property: "+a);if(i[a].labels.length!==i[a].channels)throw new Error("channel and label counts mismatch: "+a);const{channels:e,labels:t}=i[a];delete i[a].channels,delete i[a].labels,Object.defineProperty(i[a],"channels",{value:e}),Object.defineProperty(i[a],"labels",{value:t})}i.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=i-o;let s,l;i===o?s=0:t===i?s=(n-r)/a:n===i?s=2+(r-t)/a:r===i&&(s=4+(t-n)/a),s=Math.min(60*s,360),s<0&&(s+=360);const c=(o+i)/2;return l=i===o?0:c<=.5?a/(i+o):a/(2-i-o),[s,100*l,100*c]},i.rgb.hsv=function(e){let t,n,r,o,i;const a=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(a,s,l),u=c-Math.min(a,s,l),d=function(e){return(c-e)/6/u+.5};return 0===u?(o=0,i=0):(i=u/c,t=d(a),n=d(s),r=d(l),a===c?o=r-n:s===c?o=1/3+t-r:l===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[360*o,100*i,100*c]},i.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=i.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,100*a,100*r]},i.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r);return[100*((1-t-o)/(1-o)||0),100*((1-n-o)/(1-o)||0),100*((1-r-o)/(1-o)||0),100*o]},i.rgb.keyword=function(e){const t=o[e];if(t)return t;let n,i=1/0;for(const o of Object.keys(r)){const t=r[o],l=(s=t,((a=e)[0]-s[0])**2+(a[1]-s[1])**2+(a[2]-s[2])**2);l<i&&(i=l,n=o)}var a,s;return n},i.keyword.rgb=function(e){return r[e]},i.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;return[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},i.rgb.lab=function(e){const t=i.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;return[116*r-16,500*(n-r),200*(r-o)]},i.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,i,a;if(0===n)return a=255*r,[a,a,a];o=r<.5?r*(1+n):r+n-r*n;const s=2*r-o,l=[0,0,0];for(let c=0;c<3;c++)i=t+1/3*-(c-1),i<0&&i++,i>1&&i--,a=6*i<1?s+6*(o-s)*i:2*i<1?o:3*i<2?s+(o-s)*(2/3-i)*6:s,l[c]=255*a;return l},i.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const i=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=i<=1?i:2-i;return[t,100*(0===r?2*o/(i+o):2*n/(r+n)),100*((r+n)/2)]},i.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,i=t-Math.floor(t),a=255*r*(1-n),s=255*r*(1-n*i),l=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}},i.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let i,a;a=(2-n)*r;const s=(2-n)*o;return i=n*o,i/=s<=1?s:2-s,i=i||0,a/=2,[t,100*i,100*a]},i.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let i;o>1&&(n/=o,r/=o);const a=Math.floor(6*t),s=1-r;i=6*t-a,0!==(1&a)&&(i=1-i);const l=n+i*(s-n);let c,u,d;switch(a){default:case 6:case 0:c=s,u=l,d=n;break;case 1:c=l,u=s,d=n;break;case 2:c=n,u=s,d=l;break;case 3:c=n,u=l,d=s;break;case 4:c=l,u=n,d=s;break;case 5:c=s,u=n,d=l}return[255*c,255*u,255*d]},i.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100;return[255*(1-Math.min(1,t*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o)),255*(1-Math.min(1,r*(1-o)+o))]},i.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,i,a;return o=3.2406*t+-1.5372*n+-.4986*r,i=-.9689*t+1.8758*n+.0415*r,a=.0557*t+-.204*n+1.057*r,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),[255*o,255*i,255*a]},i.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;return[116*n-16,500*(t-n),200*(n-r)]},i.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const o=n**3,i=t**3,a=r**3;return n=o>.008856?o:(n-16/116)/7.787,t=i>.008856?i:(t-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},i.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=360*Math.atan2(r,n)/2/Math.PI,o<0&&(o+=360);return[t,Math.sqrt(n*n+r*r),o]},i.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},i.rgb.ansi16=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const[n,r,o]=e;let a=null===t?i.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),0===a)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===a&&(s+=60),s},i.hsv.ansi16=function(e){return i.rgb.ansi16(i.hsv.rgb(e),e[2])},i.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];if(t===n&&n===r)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},i.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},i.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},i.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},i.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},i.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),i=Math.min(Math.min(t,n),r),a=o-i;let s,l;return s=a<1?i/(1-a):0,l=a<=0?0:o===t?(n-r)/a%6:o===n?2+(r-t)/a:4+(t-n)/a,l/=6,l%=1,[360*l,100*a,100*s]},i.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],100*r,100*o]},i.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},i.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const o=[0,0,0],i=t%1*6,a=i%1,s=1-a;let l=0;switch(Math.floor(i)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=s,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=s,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=s}return l=(1-n)*r,[255*(n*o[0]+l),255*(n*o[1]+l),255*(n*o[2]+l)]},i.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},i.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},i.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},i.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],100*r,100*o]},i.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},i.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},i.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},i.gray.hsl=function(e){return[0,0,e[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(e){return[0,100,e[0]]},i.gray.cmyk=function(e){return[0,0,0,e[0]]},i.gray.lab=function(e){return[e[0],0,0]},i.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},i.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},8477:(e,t,n)=>{const r=n(7620),o=n(1700),i={};Object.keys(r).forEach((e=>{i[e]={},Object.defineProperty(i[e],"channels",{value:r[e].channels}),Object.defineProperty(i[e],"labels",{value:r[e].labels});const t=o(e);Object.keys(t).forEach((n=>{const r=t[n];i[e][n]=function(e){const t=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o=n[0];if(void 0===o||null===o)return o;o.length>1&&(n=o);const i=e(n);if("object"===typeof i)for(let e=i.length,a=0;a<e;a++)i[a]=Math.round(i[a]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}(r),i[e][n].raw=function(e){const t=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o=n[0];return void 0===o||null===o?o:(o.length>1&&(n=o),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))})),e.exports=i},1700:(e,t,n)=>{const r=n(7620);function o(e){const t=function(){const e={},t=Object.keys(r);for(let n=t.length,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}(),n=[e];for(t[e].distance=0;n.length;){const e=n.pop(),o=Object.keys(r[e]);for(let r=o.length,i=0;i<r;i++){const r=o[i],a=t[r];-1===a.distance&&(a.distance=t[e].distance+1,a.parent=e,n.unshift(r))}}return t}function i(e,t){return function(n){return t(e(n))}}function a(e,t){const n=[t[e].parent,e];let o=r[t[e].parent][e],a=t[e].parent;for(;t[a].parent;)n.unshift(t[a].parent),o=i(r[t[a].parent][a],o),a=t[a].parent;return o.conversion=n,o}e.exports=function(e){const t=o(e),n={},r=Object.keys(t);for(let o=r.length,i=0;i<o;i++){const e=r[i];null!==t[e].parent&&(n[e]=a(e,t))}return n}},3793:(e,t,n)=>{"use strict";var r=n(6174),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,s,l,c,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),s=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),s.selectNodeContents(c),l.addRange(s),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(s):l.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},1839:e=>{function t(e){if(!e)return"";if(!/\r/.test(e))return e;for(e=e.replace(/\r+\n/gm,"\n");/\r./.test(e);)e=e.replace(/^([^\r\n]*)\r+([^\r\n]+)/gm,(function(e,t,n){return n+t.slice(n.length)}));return e}function n(e){for(var t=0,n=0;n<e.length;n++)e[t].length<=e[n].length&&(t=n);return t}function r(e){if(!/\r/.test(e))return e;for(var t=e.split("\r"),r=[];t.length>0;){var o=n(t);r.push(t[o]),t=t.slice(o+1)}return r.join("\r")}e.exports=t,e.exports.escapeCarriageReturn=t,e.exports.escapeCarriageReturnSafe=function(e){if(!e)return"";if(!/\r/.test(e))return e;if(!/\n/.test(e))return r(e);var n=(e=e.replace(/\r+\n/gm,"\n")).lastIndexOf("\n");return t(e.slice(0,n))+"\n"+r(e.slice(n+1))}},2709:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return"undefined"===typeof r||t.call(e,r)},s=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,c,u,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"===typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!==typeof d&&"function"!==typeof d)&&(d={});f<p;++f)if(null!=(t=arguments[f]))for(n in t)r=l(d,n),d!==(o=l(t,n))&&(h&&o&&(a(o)||(c=i(o)))?(c?(c=!1,u=r&&i(r)?r:[]):u=r&&a(r)?r:{},s(d,{name:n,newValue:e(h,u,o)})):"undefined"!==typeof o&&s(d,{name:n,newValue:o}));return d}},2543:e=>{"use strict";e.exports=function(e,t){if(t=t||100,6===(e=e.replace("#","")).length)var n=parseInt(e.substring(0,2),16),r=parseInt(e.substring(2,4),16),o=parseInt(e.substring(4,6),16);else{var i=e.substring(0,1)+e.substring(0,1),a=e.substring(1,2)+e.substring(1,2),s=e.substring(2,3)+e.substring(2,3);n=parseInt(i,16),r=parseInt(a,16),o=parseInt(s,16)}return"rgba("+n+", "+r+", "+o+", "+t/100+")"}},4502:(e,t,n)=>{"use strict";var r=n(5760),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!i[v]&&(!r||!r[v])&&(!m||!m[v])&&(!s||!s[v])){var y=f(n,v);try{c(t,v,y)}catch(b){}}}}return t}},5068:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case o:return t}}}function A(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return A(e)||x(e)===u},t.isConcurrentMode=A,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===f},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===d||e===s||e===a||e===p||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},5760:(e,t,n)=>{"use strict";e.exports=n(5068)},9344:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,f=1;function p(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function h(){var e={line:d,column:f};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:d,column:f},this.source=l.source}m.prototype.content=e;var g=[];function v(t){var n=new Error(l.source+":"+d+":"+f+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=f,n.source=e,!l.silent)throw n;g.push(n)}function y(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function b(){y(r)}function w(e){var t;for(e=e||[];t=x();)!1!==t&&e.push(t);return e}function x(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return v("End of comment missing");var r=e.slice(2,n-2);return f+=2,p(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}function A(){var e=h(),n=y(o);if(n){if(x(),!y(i))return v("property missing ':'");var r=y(a),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return y(s),l}}return b(),function(){var e,t=[];for(w(t);e=A();)!1!==e&&(t.push(e),w(t));return t}()}},9722:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayToString=void 0;t.arrayToString=(e,t,n)=>{const r=e.map((function(e,r){const o=n(e,r);return void 0===o?String(o):t+o.split("\n").join("\n".concat(t))})).join(t?",\n":","),o=t&&r?"\n":"";return"[".concat(o).concat(r).concat(o,"]")}},1203:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FunctionParser=t.dedentFunction=t.functionToString=t.USED_METHOD_KEY=void 0;const r=n(1079),o='"'==={" "(){}}[" "].toString().charAt(0),i={Function:"function ",GeneratorFunction:"function* ",AsyncFunction:"async function ",AsyncGeneratorFunction:"async function* "},a={Function:"",GeneratorFunction:"*",AsyncFunction:"async ",AsyncGeneratorFunction:"async *"},s=new Set("case delete else in instanceof new return throw typeof void , ; : + - ! ~ & | ^ * / % < > ? =".split(" "));t.USED_METHOD_KEY=new WeakSet;function l(e){let t;for(const n of e.split("\n").slice(1)){const r=/^[\s\t]+/.exec(n);if(!r)return e;const[o]=r;(void 0===t||o.length<t.length)&&(t=o)}return t?e.split("\n".concat(t)).join("\n"):e}t.functionToString=(e,n,r,o)=>{const i="string"===typeof o?o:void 0;return void 0!==i&&t.USED_METHOD_KEY.add(e),new c(e,n,r,i).stringify()},t.dedentFunction=l;class c{constructor(e,t,n,o){this.fn=e,this.indent=t,this.next=n,this.key=o,this.pos=0,this.hadKeyword=!1,this.fnString=Function.prototype.toString.call(e),this.fnType=e.constructor.name,this.keyQuote=void 0===o?"":r.quoteKey(o,n),this.keyPrefix=void 0===o?"":"".concat(this.keyQuote,":").concat(t?" ":""),this.isMethodCandidate=void 0!==o&&(""===this.fn.name||this.fn.name===o)}stringify(){const e=this.tryParse();return e?l(e):"".concat(this.keyPrefix,"void ").concat(this.next(this.fnString))}getPrefix(){return this.isMethodCandidate&&!this.hadKeyword?a[this.fnType]+this.keyQuote:this.keyPrefix+i[this.fnType]}tryParse(){if("}"!==this.fnString[this.fnString.length-1])return this.keyPrefix+this.fnString;if(this.fn.name){const e=this.tryStrippingName();if(e)return e}const e=this.pos;if("class"===this.consumeSyntax())return this.fnString;if(this.pos=e,this.tryParsePrefixTokens()){const e=this.tryStrippingName();if(e)return e;let t=this.pos;switch(this.consumeSyntax("WORD_LIKE")){case"WORD_LIKE":this.isMethodCandidate&&!this.hadKeyword&&(t=this.pos);case"()":if("=>"===this.fnString.substr(this.pos,2))return this.keyPrefix+this.fnString;this.pos=t;case'"':case"'":case"[]":return this.getPrefix()+this.fnString.substr(this.pos)}}}tryStrippingName(){if(o)return;let e=this.pos;const t=this.fnString.substr(this.pos,this.fn.name.length);if(t===this.fn.name&&(this.pos+=t.length,"()"===this.consumeSyntax()&&"{}"===this.consumeSyntax()&&this.pos===this.fnString.length))return!this.isMethodCandidate&&r.isValidVariableName(t)||(e+=t.length),this.getPrefix()+this.fnString.substr(e);this.pos=e}tryParsePrefixTokens(){let e=this.pos;switch(this.hadKeyword=!1,this.fnType){case"AsyncFunction":if("async"!==this.consumeSyntax())return!1;e=this.pos;case"Function":return"function"===this.consumeSyntax()?this.hadKeyword=!0:this.pos=e,!0;case"AsyncGeneratorFunction":if("async"!==this.consumeSyntax())return!1;case"GeneratorFunction":let t=this.consumeSyntax();return"function"===t&&(t=this.consumeSyntax(),this.hadKeyword=!0),"*"===t}}consumeSyntax(e){const t=this.consumeMatch(/^(?:([A-Za-z_0-9$\xA0-\uFFFF]+)|=>|\+\+|\-\-|.)/);if(!t)return;const[n,r]=t;if(this.consumeWhitespace(),r)return e||r;switch(n){case"(":return this.consumeSyntaxUntil("(",")");case"[":return this.consumeSyntaxUntil("[","]");case"{":return this.consumeSyntaxUntil("{","}");case"`":return this.consumeTemplate();case'"':return this.consumeRegExp(/^(?:[^\\"]|\\.)*"/,'"');case"'":return this.consumeRegExp(/^(?:[^\\']|\\.)*'/,"'")}return n}consumeSyntaxUntil(e,t){let n=!0;for(;;){const r=this.consumeSyntax();if(r===t)return e+t;if(!r||")"===r||"]"===r||"}"===r)return;"/"===r&&n&&this.consumeMatch(/^(?:\\.|[^\\\/\n[]|\[(?:\\.|[^\]])*\])+\/[a-z]*/)?(n=!1,this.consumeWhitespace()):n=s.has(r)}}consumeMatch(e){const t=e.exec(this.fnString.substr(this.pos));return t&&(this.pos+=t[0].length),t}consumeRegExp(e,t){const n=e.exec(this.fnString.substr(this.pos));if(n)return this.pos+=n[0].length,this.consumeWhitespace(),t}consumeTemplate(){for(;;){if(this.consumeMatch(/^(?:[^`$\\]|\\.|\$(?!{))*/),"`"===this.fnString[this.pos])return this.pos++,this.consumeWhitespace(),"`";if("${"!==this.fnString.substr(this.pos,2)||(this.pos+=2,this.consumeWhitespace(),!this.consumeSyntaxUntil("{","}")))return}}consumeWhitespace(){this.consumeMatch(/^(?:\s|\/\/.*|\/\*[^]*?\*\/)*/)}}t.FunctionParser=c},5871:(e,t,n)=>{"use strict";t.A=void 0;const r=n(9846),o=n(1079),i=Symbol("root");t.A=function(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const s="string"===typeof n?n:" ".repeat(n||0),l=[],c=new Set,u=new Map,d=new Map;let f=0;const{maxDepth:p=100,references:h=!1,skipUndefinedProperties:m=!1,maxValues:g=1e5}=a,v=function(e){return e?(t,n,o,i)=>e(t,n,(e=>r.toString(e,n,o,i)),i):r.toString}(t),y=(e,t)=>{if(++f>g)return;if(m&&void 0===e)return;if(l.length>p)return;if(void 0===t)return v(e,s,y,t);l.push(t);const n=b(e,t===i?void 0:t);return l.pop(),n},b=h?(e,t)=>{if(null!==e&&("object"===typeof e||"function"===typeof e||"symbol"===typeof e)){if(u.has(e))return d.set(l.slice(1),u.get(e)),v(void 0,s,y,t);u.set(e,l.slice(1))}return v(e,s,y,t)}:(e,t)=>{if(c.has(e))return;c.add(e);const n=v(e,s,y,t);return c.delete(e),n},w=y(e,i);if(d.size){const e=s?" ":"",t=s?"\n":"";let n="var x".concat(e,"=").concat(e).concat(w,";").concat(t);for(const[r,i]of d.entries()){const a=o.stringifyPath(r,y),s=o.stringifyPath(i,y);n+="x".concat(a).concat(e,"=").concat(e,"x").concat(s,";").concat(t)}return"(function".concat(e,"()").concat(e,"{").concat(t).concat(n,"return x;").concat(t,"}())")}return w}},1296:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.objectToString=void 0;const r=n(1079),o=n(1203),i=n(9722);t.objectToString=(e,t,r,o)=>{if("function"===typeof Buffer&&Buffer.isBuffer(e))return"Buffer.from(".concat(r(e.toString("base64")),", 'base64')");if("object"===typeof n.g&&e===n.g)return a(e,t,r,o);const i=s[Object.prototype.toString.call(e)];return i?i(e,t,r,o):void 0};const a=(e,t,n)=>"Function(".concat(n("return this"),")()"),s={"[object Array]":i.arrayToString,"[object Object]":(e,t,n,i)=>{const a=t?"\n":"",s=t?" ":"",l=Object.keys(e).reduce((function(i,a){const l=e[a],c=n(l,a);if(void 0===c)return i;const u=c.split("\n").join("\n".concat(t));return o.USED_METHOD_KEY.has(l)?(i.push("".concat(t).concat(u)),i):(i.push("".concat(t).concat(r.quoteKey(a,n),":").concat(s).concat(u)),i)}),[]).join(",".concat(a));return""===l?"{}":"{".concat(a).concat(l).concat(a,"}")},"[object Error]":(e,t,n)=>"new Error(".concat(n(e.message),")"),"[object Date]":e=>"new Date(".concat(e.getTime(),")"),"[object String]":(e,t,n)=>"new String(".concat(n(e.toString()),")"),"[object Number]":e=>"new Number(".concat(e,")"),"[object Boolean]":e=>"new Boolean(".concat(e,")"),"[object Set]":(e,t,n)=>"new Set(".concat(n(Array.from(e)),")"),"[object Map]":(e,t,n)=>"new Map(".concat(n(Array.from(e)),")"),"[object RegExp]":String,"[object global]":a,"[object Window]":a}},1079:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringifyPath=t.quoteKey=t.isValidVariableName=t.IS_VALID_IDENTIFIER=t.quoteString=void 0;const n=/[\\\'\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r=new Map([["\b","\\b"],["\t","\\t"],["\n","\\n"],["\f","\\f"],["\r","\\r"],["'","\\'"],['"','\\"'],["\\","\\\\"]]);function o(e){return r.get(e)||"\\u".concat("0000".concat(e.charCodeAt(0).toString(16)).slice(-4))}t.quoteString=function(e){return"'".concat(e.replace(n,o),"'")};const i=new Set("break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield".split(" "));function a(e){return"string"===typeof e&&!i.has(e)&&t.IS_VALID_IDENTIFIER.test(e)}t.IS_VALID_IDENTIFIER=/^[A-Za-z_$][A-Za-z0-9_$]*$/,t.isValidVariableName=a,t.quoteKey=function(e,t){return a(e)?e:t(e)},t.stringifyPath=function(e,t){let n="";for(const r of e)a(r)?n+=".".concat(r):n+="[".concat(t(r),"]");return n}},9846:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toString=void 0;const r=n(1079),o=n(1296),i=n(1203),a={string:r.quoteString,number:e=>Object.is(e,-0)?"-0":String(e),boolean:String,symbol:(e,t,n)=>{const r=Symbol.keyFor(e);return void 0!==r?"Symbol.for(".concat(n(r),")"):"Symbol(".concat(n(e.description),")")},bigint:(e,t,n)=>"BigInt(".concat(n(String(e)),")"),undefined:String,object:o.objectToString,function:i.functionToString};t.toString=(e,t,n,r)=>null===e?"null":a[typeof e](e,t,n,r)},9386:(e,t,n)=>{e.exports=function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){if(i)return i(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,(function(e){var n=t[a][1][e];return o(n||e)}),c,c.exports,e,t,n,r)}return n[a].exports}for(var i=void 0,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,r){(function(e){"use strict";var n,r,o=e.MutationObserver||e.WebKitMutationObserver;if(o){var i=0,a=new o(u),s=e.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.data=i=++i%2}}else if(e.setImmediate||"undefined"===typeof e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){u(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(u,0)};else{var l=new e.MessageChannel;l.port1.onmessage=u,n=function(){l.port2.postMessage(0)}}var c=[];function u(){var e,t;r=!0;for(var n=c.length;n;){for(t=c,c=[],e=-1;++e<n;)t[e]();n=c.length}r=!1}function d(e){1!==c.push(e)||r||n()}t.exports=d}).call(this,"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],2:[function(e,t,n){"use strict";var r=e(1);function o(){}var i={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function c(e){if("function"!==typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==o&&p(this,e)}function u(e,t,n){this.promise=e,"function"===typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"===typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){r((function(){var r;try{r=t(n)}catch(o){return i.reject(e,o)}r===e?i.reject(e,new TypeError("Cannot resolve promise with itself")):i.resolve(e,r)}))}function f(e){var t=e&&e.then;if(e&&("object"===typeof e||"function"===typeof e)&&"function"===typeof t)return function(){t.apply(e,arguments)}}function p(e,t){var n=!1;function r(t){n||(n=!0,i.reject(e,t))}function o(t){n||(n=!0,i.resolve(e,t))}function a(){t(o,r)}var s=h(a);"error"===s.status&&r(s.value)}function h(e,t){var n={};try{n.value=e(t),n.status="success"}catch(r){n.status="error",n.value=r}return n}function m(e){return e instanceof this?e:i.resolve(new this(o),e)}function g(e){var t=new this(o);return i.reject(t,e)}function v(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,l=-1,c=new this(o);++l<n;)u(e[l],l);return c;function u(e,o){function l(e){a[o]=e,++s!==n||r||(r=!0,i.resolve(c,a))}t.resolve(e).then(l,(function(e){r||(r=!0,i.reject(c,e))}))}}function y(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);for(var a=-1,s=new this(o);++a<n;)l(e[a]);return s;function l(e){t.resolve(e).then((function(e){r||(r=!0,i.resolve(s,e))}),(function(e){r||(r=!0,i.reject(s,e))}))}}t.exports=c,c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!==typeof e&&this.state===s||"function"!==typeof t&&this.state===a)return this;var n=new this.constructor(o);return this.state!==l?d(n,this.state===s?e:t,this.outcome):this.queue.push(new u(n,e,t)),n},u.prototype.callFulfilled=function(e){i.resolve(this.promise,e)},u.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},u.prototype.callRejected=function(e){i.reject(this.promise,e)},u.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},i.resolve=function(e,t){var n=h(f,t);if("error"===n.status)return i.reject(e,n.value);var r=n.value;if(r)p(e,r);else{e.state=s,e.outcome=t;for(var o=-1,a=e.queue.length;++o<a;)e.queue[o].callFulfilled(t)}return e},i.reject=function(e,t){e.state=a,e.outcome=t;for(var n=-1,r=e.queue.length;++n<r;)e.queue[n].callRejected(t);return e},c.resolve=m,c.reject=g,c.all=v,c.race=y},{1:1}],3:[function(e,t,r){(function(t){"use strict";"function"!==typeof t.Promise&&(t.Promise=e(2))}).call(this,"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{2:2}],4:[function(e,t,n){"use strict";var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(){try{if("undefined"!==typeof indexedDB)return indexedDB;if("undefined"!==typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!==typeof mozIndexedDB)return mozIndexedDB;if("undefined"!==typeof OIndexedDB)return OIndexedDB;if("undefined"!==typeof msIndexedDB)return msIndexedDB}catch(e){return}}var a=i();function s(){try{if(!a||!a.open)return!1;var e="undefined"!==typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"===typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!==typeof indexedDB&&"undefined"!==typeof IDBKeyRange}catch(n){return!1}}function l(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(o){if("TypeError"!==o.name)throw o;for(var n=new("undefined"!==typeof BlobBuilder?BlobBuilder:"undefined"!==typeof MSBlobBuilder?MSBlobBuilder:"undefined"!==typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder),r=0;r<e.length;r+=1)n.append(e[r]);return n.getBlob(t.type)}}"undefined"===typeof Promise&&e(3);var c=Promise;function u(e,t){t&&e.then((function(e){t(null,e)}),(function(e){t(e)}))}function d(e,t,n){"function"===typeof t&&e.then(t),"function"===typeof n&&e.catch(n)}function f(e){return"string"!==typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function p(){if(arguments.length&&"function"===typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var h="local-forage-detect-blob-support",m=void 0,g={},v=Object.prototype.toString,y="readonly",b="readwrite";function w(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),o=0;o<t;o++)r[o]=e.charCodeAt(o);return n}function x(e){return new c((function(t){var n=e.transaction(h,b),r=l([""]);n.objectStore(h).put(r,"key"),n.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},n.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),n=navigator.userAgent.match(/Edge\//);t(n||!e||parseInt(e[1],10)>=43)}})).catch((function(){return!1}))}function A(e){return"boolean"===typeof m?c.resolve(m):x(e).then((function(e){return m=e}))}function S(e){var t=g[e.name],n={};n.promise=new c((function(e,t){n.resolve=e,n.reject=t})),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then((function(){return n.promise})):t.dbReady=n.promise}function _(e){var t=g[e.name].deferredOperations.pop();if(t)return t.resolve(),t.promise}function k(e,t){var n=g[e.name].deferredOperations.pop();if(n)return n.reject(t),n.promise}function C(e,t){return new c((function(n,r){if(g[e.name]=g[e.name]||j(),e.db){if(!t)return n(e.db);S(e),e.db.close()}var o=[e.name];t&&o.push(e.version);var i=a.open.apply(a,o);t&&(i.onupgradeneeded=function(t){var n=i.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore(h)}catch(r){if("ConstraintError"!==r.name)throw r;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),i.onerror=function(e){e.preventDefault(),r(i.error)},i.onsuccess=function(){var t=i.result;t.onversionchange=function(e){e.target.close()},n(t),_(e)}}))}function E(e){return C(e,!1)}function O(e){return C(e,!0)}function T(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.version<e.db.version,o=e.version>e.db.version;if(r&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),o||n){if(n){var i=e.db.version+1;i>e.version&&(e.version=i)}return!0}return!1}function I(e){return new c((function(t,n){var r=new FileReader;r.onerror=n,r.onloadend=function(n){var r=btoa(n.target.result||"");t({__local_forage_encoded_blob:!0,data:r,type:e.type})},r.readAsBinaryString(e)}))}function R(e){return l([w(atob(e.data))],{type:e.type})}function P(e){return e&&e.__local_forage_encoded_blob}function M(e){var t=this,n=t._initReady().then((function(){var e=g[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady}));return d(n,e,e),n}function D(e){S(e);for(var t=g[e.name],n=t.forages,r=0;r<n.length;r++){var o=n[r];o._dbInfo.db&&(o._dbInfo.db.close(),o._dbInfo.db=null)}return e.db=null,E(e).then((function(t){return e.db=t,T(e)?O(e):t})).then((function(r){e.db=t.db=r;for(var o=0;o<n.length;o++)n[o]._dbInfo.db=r})).catch((function(t){throw k(e,t),t}))}function L(e,t,n,r){void 0===r&&(r=1);try{var o=e.db.transaction(e.storeName,t);n(null,o)}catch(i){if(r>0&&(!e.db||"InvalidStateError"===i.name||"NotFoundError"===i.name))return c.resolve().then((function(){if(!e.db||"NotFoundError"===i.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),O(e)})).then((function(){return D(e).then((function(){L(e,t,n,r-1)}))})).catch(n);n(i)}}function j(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function N(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var o=g[n.name];o||(o=j(),g[n.name]=o),o.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=M);var i=[];function a(){return c.resolve()}for(var s=0;s<o.forages.length;s++){var l=o.forages[s];l!==t&&i.push(l._initReady().catch(a))}var u=o.forages.slice(0);return c.all(i).then((function(){return n.db=o.db,E(n)})).then((function(e){return n.db=e,T(n,t._defaultConfig.version)?O(n):e})).then((function(e){n.db=o.db=e,t._dbInfo=n;for(var r=0;r<u.length;r++){var i=u[r];i!==t&&(i._dbInfo.db=n.db,i._dbInfo.version=n.version)}}))}function F(e,t){var n=this;e=f(e);var r=new c((function(t,r){n.ready().then((function(){L(n._dbInfo,y,(function(o,i){if(o)return r(o);try{var a=i.objectStore(n._dbInfo.storeName).get(e);a.onsuccess=function(){var e=a.result;void 0===e&&(e=null),P(e)&&(e=R(e)),t(e)},a.onerror=function(){r(a.error)}}catch(s){r(s)}}))})).catch(r)}));return u(r,t),r}function z(e,t){var n=this,r=new c((function(t,r){n.ready().then((function(){L(n._dbInfo,y,(function(o,i){if(o)return r(o);try{var a=i.objectStore(n._dbInfo.storeName).openCursor(),s=1;a.onsuccess=function(){var n=a.result;if(n){var r=n.value;P(r)&&(r=R(r));var o=e(r,n.key,s++);void 0!==o?t(o):n.continue()}else t()},a.onerror=function(){r(a.error)}}catch(l){r(l)}}))})).catch(r)}));return u(r,t),r}function B(e,t,n){var r=this;e=f(e);var o=new c((function(n,o){var i;r.ready().then((function(){return i=r._dbInfo,"[object Blob]"===v.call(t)?A(i.db).then((function(e){return e?t:I(t)})):t})).then((function(t){L(r._dbInfo,b,(function(i,a){if(i)return o(i);try{var s=a.objectStore(r._dbInfo.storeName);null===t&&(t=void 0);var l=s.put(t,e);a.oncomplete=function(){void 0===t&&(t=null),n(t)},a.onabort=a.onerror=function(){var e=l.error?l.error:l.transaction.error;o(e)}}catch(c){o(c)}}))})).catch(o)}));return u(o,n),o}function V(e,t){var n=this;e=f(e);var r=new c((function(t,r){n.ready().then((function(){L(n._dbInfo,b,(function(o,i){if(o)return r(o);try{var a=i.objectStore(n._dbInfo.storeName).delete(e);i.oncomplete=function(){t()},i.onerror=function(){r(a.error)},i.onabort=function(){var e=a.error?a.error:a.transaction.error;r(e)}}catch(s){r(s)}}))})).catch(r)}));return u(r,t),r}function U(e){var t=this,n=new c((function(e,n){t.ready().then((function(){L(t._dbInfo,b,(function(r,o){if(r)return n(r);try{var i=o.objectStore(t._dbInfo.storeName).clear();o.oncomplete=function(){e()},o.onabort=o.onerror=function(){var e=i.error?i.error:i.transaction.error;n(e)}}catch(a){n(a)}}))})).catch(n)}));return u(n,e),n}function W(e){var t=this,n=new c((function(e,n){t.ready().then((function(){L(t._dbInfo,y,(function(r,o){if(r)return n(r);try{var i=o.objectStore(t._dbInfo.storeName).count();i.onsuccess=function(){e(i.result)},i.onerror=function(){n(i.error)}}catch(a){n(a)}}))})).catch(n)}));return u(n,e),n}function q(e,t){var n=this,r=new c((function(t,r){e<0?t(null):n.ready().then((function(){L(n._dbInfo,y,(function(o,i){if(o)return r(o);try{var a=i.objectStore(n._dbInfo.storeName),s=!1,l=a.openKeyCursor();l.onsuccess=function(){var n=l.result;n?0===e||s?t(n.key):(s=!0,n.advance(e)):t(null)},l.onerror=function(){r(l.error)}}catch(c){r(c)}}))})).catch(r)}));return u(r,t),r}function H(e){var t=this,n=new c((function(e,n){t.ready().then((function(){L(t._dbInfo,y,(function(r,o){if(r)return n(r);try{var i=o.objectStore(t._dbInfo.storeName).openKeyCursor(),a=[];i.onsuccess=function(){var t=i.result;t?(a.push(t.key),t.continue()):e(a)},i.onerror=function(){n(i.error)}}catch(s){n(s)}}))})).catch(n)}));return u(n,e),n}function Y(e,t){t=p.apply(this,arguments);var n=this.config();(e="function"!==typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,o=this;if(e.name){var i=e.name===n.name&&o._dbInfo.db?c.resolve(o._dbInfo.db):E(e).then((function(t){var n=g[e.name],r=n.forages;n.db=t;for(var o=0;o<r.length;o++)r[o]._dbInfo.db=t;return t}));r=e.storeName?i.then((function(t){if(t.objectStoreNames.contains(e.storeName)){var n=t.version+1;S(e);var r=g[e.name],o=r.forages;t.close();for(var i=0;i<o.length;i++){var s=o[i];s._dbInfo.db=null,s._dbInfo.version=n}var l=new c((function(t,r){var o=a.open(e.name,n);o.onerror=function(e){o.result.close(),r(e)},o.onupgradeneeded=function(){o.result.deleteObjectStore(e.storeName)},o.onsuccess=function(){var e=o.result;e.close(),t(e)}}));return l.then((function(e){r.db=e;for(var t=0;t<o.length;t++){var n=o[t];n._dbInfo.db=e,_(n._dbInfo)}})).catch((function(t){throw(k(e,t)||c.resolve()).catch((function(){})),t}))}})):i.then((function(t){S(e);var n=g[e.name],r=n.forages;t.close();for(var o=0;o<r.length;o++)r[o]._dbInfo.db=null;var i=new c((function(t,n){var r=a.deleteDatabase(e.name);r.onerror=function(){var e=r.result;e&&e.close(),n(r.error)},r.onblocked=function(){console.warn('dropInstance blocked for database "'+e.name+'" until all open connections are closed')},r.onsuccess=function(){var e=r.result;e&&e.close(),t(e)}}));return i.then((function(e){n.db=e;for(var t=0;t<r.length;t++)_(r[t]._dbInfo)})).catch((function(t){throw(k(e,t)||c.resolve()).catch((function(){})),t}))}))}else r=c.reject("Invalid arguments");return u(r,t),r}var G={_driver:"asyncStorage",_initStorage:N,_support:s(),iterate:z,getItem:F,setItem:B,removeItem:V,clear:U,length:W,key:q,keys:H,dropInstance:Y};function K(){return"function"===typeof openDatabase}var $="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Q="~~local_forage_type~",X=/^~~local_forage_type~([^~]+)~/,J="__lfsc__:",Z=J.length,ee="arbf",te="blob",ne="si08",re="ui08",oe="uic8",ie="si16",ae="si32",se="ur16",le="ui32",ce="fl32",ue="fl64",de=Z+ee.length,fe=Object.prototype.toString;function pe(e){var t,n,r,o,i,a=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(a--,"="===e[e.length-2]&&a--);var c=new ArrayBuffer(a),u=new Uint8Array(c);for(t=0;t<s;t+=4)n=$.indexOf(e[t]),r=$.indexOf(e[t+1]),o=$.indexOf(e[t+2]),i=$.indexOf(e[t+3]),u[l++]=n<<2|r>>4,u[l++]=(15&r)<<4|o>>2,u[l++]=(3&o)<<6|63&i;return c}function he(e){var t,n=new Uint8Array(e),r="";for(t=0;t<n.length;t+=3)r+=$[n[t]>>2],r+=$[(3&n[t])<<4|n[t+1]>>4],r+=$[(15&n[t+1])<<2|n[t+2]>>6],r+=$[63&n[t+2]];return n.length%3===2?r=r.substring(0,r.length-1)+"=":n.length%3===1&&(r=r.substring(0,r.length-2)+"=="),r}function me(e,t){var n="";if(e&&(n=fe.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===fe.call(e.buffer))){var r,o=J;e instanceof ArrayBuffer?(r=e,o+=ee):(r=e.buffer,"[object Int8Array]"===n?o+=ne:"[object Uint8Array]"===n?o+=re:"[object Uint8ClampedArray]"===n?o+=oe:"[object Int16Array]"===n?o+=ie:"[object Uint16Array]"===n?o+=se:"[object Int32Array]"===n?o+=ae:"[object Uint32Array]"===n?o+=le:"[object Float32Array]"===n?o+=ce:"[object Float64Array]"===n?o+=ue:t(new Error("Failed to get type for BinaryArray"))),t(o+he(r))}else if("[object Blob]"===n){var i=new FileReader;i.onload=function(){var n=Q+e.type+"~"+he(this.result);t(J+te+n)},i.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(a){console.error("Couldn't convert value into a JSON string: ",e),t(null,a)}}function ge(e){if(e.substring(0,Z)!==J)return JSON.parse(e);var t,n=e.substring(de),r=e.substring(Z,de);if(r===te&&X.test(n)){var o=n.match(X);t=o[1],n=n.substring(o[0].length)}var i=pe(n);switch(r){case ee:return i;case te:return l([i],{type:t});case ne:return new Int8Array(i);case re:return new Uint8Array(i);case oe:return new Uint8ClampedArray(i);case ie:return new Int16Array(i);case se:return new Uint16Array(i);case ae:return new Int32Array(i);case le:return new Uint32Array(i);case ce:return new Float32Array(i);case ue:return new Float64Array(i);default:throw new Error("Unkown type: "+r)}}var ve={serialize:me,deserialize:ge,stringToBuffer:pe,bufferToString:he};function ye(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function be(e){var t=this,n={db:null};if(e)for(var r in e)n[r]="string"!==typeof e[r]?e[r].toString():e[r];var o=new c((function(e,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(o){return r(o)}n.db.transaction((function(o){ye(o,n,(function(){t._dbInfo=n,e()}),(function(e,t){r(t)}))}),r)}));return n.serializer=ve,o}function we(e,t,n,r,o,i){e.executeSql(n,r,o,(function(e,a){a.code===a.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],(function(e,s){s.rows.length?i(e,a):ye(e,t,(function(){e.executeSql(n,r,o,i)}),i)}),i):i(e,a)}),i)}function xe(e,t){var n=this;e=f(e);var r=new c((function(t,r){n.ready().then((function(){var o=n._dbInfo;o.db.transaction((function(n){we(n,o,"SELECT * FROM "+o.storeName+" WHERE key = ? LIMIT 1",[e],(function(e,n){var r=n.rows.length?n.rows.item(0).value:null;r&&(r=o.serializer.deserialize(r)),t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return u(r,t),r}function Ae(e,t){var n=this,r=new c((function(t,r){n.ready().then((function(){var o=n._dbInfo;o.db.transaction((function(n){we(n,o,"SELECT * FROM "+o.storeName,[],(function(n,r){for(var i=r.rows,a=i.length,s=0;s<a;s++){var l=i.item(s),c=l.value;if(c&&(c=o.serializer.deserialize(c)),void 0!==(c=e(c,l.key,s+1)))return void t(c)}t()}),(function(e,t){r(t)}))}))})).catch(r)}));return u(r,t),r}function Se(e,t,n,r){var o=this;e=f(e);var i=new c((function(i,a){o.ready().then((function(){void 0===t&&(t=null);var s=t,l=o._dbInfo;l.serializer.serialize(t,(function(t,c){c?a(c):l.db.transaction((function(n){we(n,l,"INSERT OR REPLACE INTO "+l.storeName+" (key, value) VALUES (?, ?)",[e,t],(function(){i(s)}),(function(e,t){a(t)}))}),(function(t){if(t.code===t.QUOTA_ERR){if(r>0)return void i(Se.apply(o,[e,s,n,r-1]));a(t)}}))}))})).catch(a)}));return u(i,n),i}function _e(e,t,n){return Se.apply(this,[e,t,n,1])}function ke(e,t){var n=this;e=f(e);var r=new c((function(t,r){n.ready().then((function(){var o=n._dbInfo;o.db.transaction((function(n){we(n,o,"DELETE FROM "+o.storeName+" WHERE key = ?",[e],(function(){t()}),(function(e,t){r(t)}))}))})).catch(r)}));return u(r,t),r}function Ce(e){var t=this,n=new c((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){we(t,r,"DELETE FROM "+r.storeName,[],(function(){e()}),(function(e,t){n(t)}))}))})).catch(n)}));return u(n,e),n}function Ee(e){var t=this,n=new c((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){we(t,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],(function(t,n){var r=n.rows.item(0).c;e(r)}),(function(e,t){n(t)}))}))})).catch(n)}));return u(n,e),n}function Oe(e,t){var n=this,r=new c((function(t,r){n.ready().then((function(){var o=n._dbInfo;o.db.transaction((function(n){we(n,o,"SELECT key FROM "+o.storeName+" WHERE id = ? LIMIT 1",[e+1],(function(e,n){var r=n.rows.length?n.rows.item(0).key:null;t(r)}),(function(e,t){r(t)}))}))})).catch(r)}));return u(r,t),r}function Te(e){var t=this,n=new c((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){we(t,r,"SELECT key FROM "+r.storeName,[],(function(t,n){for(var r=[],o=0;o<n.rows.length;o++)r.push(n.rows.item(o).key);e(r)}),(function(e,t){n(t)}))}))})).catch(n)}));return u(n,e),n}function Ie(e){return new c((function(t,n){e.transaction((function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],(function(n,r){for(var o=[],i=0;i<r.rows.length;i++)o.push(r.rows.item(i).name);t({db:e,storeNames:o})}),(function(e,t){n(t)}))}),(function(e){n(e)}))}))}function Re(e,t){t=p.apply(this,arguments);var n=this.config();(e="function"!==typeof e&&e||{}).name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,o=this;return u(r=e.name?new c((function(t){var r;r=e.name===n.name?o._dbInfo.db:openDatabase(e.name,"","",0),e.storeName?t({db:r,storeNames:[e.storeName]}):t(Ie(r))})).then((function(e){return new c((function(t,n){e.db.transaction((function(r){function o(e){return new c((function(t,n){r.executeSql("DROP TABLE IF EXISTS "+e,[],(function(){t()}),(function(e,t){n(t)}))}))}for(var i=[],a=0,s=e.storeNames.length;a<s;a++)i.push(o(e.storeNames[a]));c.all(i).then((function(){t()})).catch((function(e){n(e)}))}),(function(e){n(e)}))}))})):c.reject("Invalid arguments"),t),r}var Pe={_driver:"webSQLStorage",_initStorage:be,_support:K(),iterate:Ae,getItem:xe,setItem:_e,removeItem:ke,clear:Ce,length:Ee,key:Oe,keys:Te,dropInstance:Re};function Me(){try{return"undefined"!==typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}function De(e,t){var n=e.name+"/";return e.storeName!==t.storeName&&(n+=e.storeName+"/"),n}function Le(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch(t){return!0}}function je(){return!Le()||localStorage.length>0}function Ne(e){var t=this,n={};if(e)for(var r in e)n[r]=e[r];return n.keyPrefix=De(e,t._defaultConfig),je()?(t._dbInfo=n,n.serializer=ve,c.resolve()):c.reject()}function Fe(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}}));return u(n,e),n}function ze(e,t){var n=this;e=f(e);var r=n.ready().then((function(){var t=n._dbInfo,r=localStorage.getItem(t.keyPrefix+e);return r&&(r=t.serializer.deserialize(r)),r}));return u(r,t),r}function Be(e,t){var n=this,r=n.ready().then((function(){for(var t=n._dbInfo,r=t.keyPrefix,o=r.length,i=localStorage.length,a=1,s=0;s<i;s++){var l=localStorage.key(s);if(0===l.indexOf(r)){var c=localStorage.getItem(l);if(c&&(c=t.serializer.deserialize(c)),void 0!==(c=e(c,l.substring(o),a++)))return c}}}));return u(r,t),r}function Ve(e,t){var n=this,r=n.ready().then((function(){var t,r=n._dbInfo;try{t=localStorage.key(e)}catch(o){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t}));return u(r,t),r}function Ue(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo,n=localStorage.length,r=[],o=0;o<n;o++){var i=localStorage.key(o);0===i.indexOf(e.keyPrefix)&&r.push(i.substring(e.keyPrefix.length))}return r}));return u(n,e),n}function We(e){var t=this.keys().then((function(e){return e.length}));return u(t,e),t}function qe(e,t){var n=this;e=f(e);var r=n.ready().then((function(){var t=n._dbInfo;localStorage.removeItem(t.keyPrefix+e)}));return u(r,t),r}function He(e,t,n){var r=this;e=f(e);var o=r.ready().then((function(){void 0===t&&(t=null);var n=t;return new c((function(o,i){var a=r._dbInfo;a.serializer.serialize(t,(function(t,r){if(r)i(r);else try{localStorage.setItem(a.keyPrefix+e,t),o(n)}catch(s){"QuotaExceededError"!==s.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==s.name||i(s),i(s)}}))}))}));return u(o,n),o}function Ye(e,t){if(t=p.apply(this,arguments),!(e="function"!==typeof e&&e||{}).name){var n=this.config();e.name=e.name||n.name,e.storeName=e.storeName||n.storeName}var r,o=this;return r=e.name?new c((function(t){e.storeName?t(De(e,o._defaultConfig)):t(e.name+"/")})).then((function(e){for(var t=localStorage.length-1;t>=0;t--){var n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}})):c.reject("Invalid arguments"),u(r,t),r}var Ge={_driver:"localStorageWrapper",_initStorage:Ne,_support:Me(),iterate:Be,getItem:ze,setItem:He,removeItem:qe,clear:Fe,length:We,key:Ve,keys:Ue,dropInstance:Ye},Ke=function(e,t){return e===t||"number"===typeof e&&"number"===typeof t&&isNaN(e)&&isNaN(t)},$e=function(e,t){for(var n=e.length,r=0;r<n;){if(Ke(e[r],t))return!0;r++}return!1},Qe=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},Xe={},Je={},Ze={INDEXEDDB:G,WEBSQL:Pe,LOCALSTORAGE:Ge},et=[Ze.INDEXEDDB._driver,Ze.WEBSQL._driver,Ze.LOCALSTORAGE._driver],tt=["dropInstance"],nt=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(tt),rt={description:"",driver:et.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function ot(e,t){e[t]=function(){var n=arguments;return e.ready().then((function(){return e[t].apply(e,n)}))}}function it(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var n in t)t.hasOwnProperty(n)&&(Qe(t[n])?arguments[0][n]=t[n].slice():arguments[0][n]=t[n])}return arguments[0]}var at=function(){function e(t){for(var n in o(this,e),Ze)if(Ze.hasOwnProperty(n)){var r=Ze[n],i=r._driver;this[n]=i,Xe[i]||this.defineDriver(r)}this._defaultConfig=it({},rt),this._config=it({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch((function(){}))}return e.prototype.config=function(e){if("object"===("undefined"===typeof e?"undefined":r(e))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!==typeof e[t])return new Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)}return"string"===typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,n){var r=new c((function(t,n){try{var r=e._driver,o=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void n(o);for(var i=nt.concat("_initStorage"),a=0,s=i.length;a<s;a++){var l=i[a];if((!$e(tt,l)||e[l])&&"function"!==typeof e[l])return void n(o)}var d=function(){for(var t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by the current driver"),n=c.reject(t);return u(n,arguments[arguments.length-1]),n}},n=0,r=tt.length;n<r;n++){var o=tt[n];e[o]||(e[o]=t(o))}};d();var f=function(n){Xe[r]&&console.info("Redefining LocalForage driver: "+r),Xe[r]=e,Je[r]=n,t()};"_support"in e?e._support&&"function"===typeof e._support?e._support().then(f,n):f(!!e._support):f(!0)}catch(p){n(p)}}));return d(r,t,n),r},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,n){var r=Xe[e]?c.resolve(Xe[e]):c.reject(new Error("Driver not found."));return d(r,t,n),r},e.prototype.getSerializer=function(e){var t=c.resolve(ve);return d(t,e),t},e.prototype.ready=function(e){var t=this,n=t._driverSet.then((function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready}));return d(n,e,e),n},e.prototype.setDriver=function(e,t,n){var r=this;Qe(e)||(e=[e]);var o=this._getSupportedDrivers(e);function i(){r._config.driver=r.driver()}function a(e){return r._extend(e),i(),r._ready=r._initStorage(r._config),r._ready}function s(e){return function(){var t=0;function n(){for(;t<e.length;){var o=e[t];return t++,r._dbInfo=null,r._ready=null,r.getDriver(o).then(a).catch(n)}i();var s=new Error("No available storage method found.");return r._driverSet=c.reject(s),r._driverSet}return n()}}var l=null!==this._driverSet?this._driverSet.catch((function(){return c.resolve()})):c.resolve();return this._driverSet=l.then((function(){var e=o[0];return r._dbInfo=null,r._ready=null,r.getDriver(e).then((function(e){r._driver=e._driver,i(),r._wrapLibraryMethodsWithReady(),r._initDriver=s(o)}))})).catch((function(){i();var e=new Error("No available storage method found.");return r._driverSet=c.reject(e),r._driverSet})),d(this._driverSet,t,n),this._driverSet},e.prototype.supports=function(e){return!!Je[e]},e.prototype._extend=function(e){it(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var o=e[n];this.supports(o)&&t.push(o)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,t=nt.length;e<t;e++)ot(this,nt[e])},e.prototype.createInstance=function(t){return new e(t)},e}(),st=new at;t.exports=st},{3:3}]},{},[4])(4)},2617:(e,t,n)=>{var r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),d=Object.prototype.toString,f=Math.max,p=Math.min,h=function(){return u.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=i.test(e);return n||a.test(e)?s(e.slice(2),n?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function b(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=i}function w(){var e=h();if(b(e))return x(e);s=setTimeout(w,function(e){var n=t-(e-l);return d?p(n,i-(e-c)):n}(e))}function x(e){return s=void 0,v&&r?y(e):(r=o=void 0,a)}function A(){var e=h(),n=b(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(w,t),u?y(e):a}(l);if(d)return s=setTimeout(w,t),y(l)}return void 0===s&&(s=setTimeout(w,t)),a}return t=g(t)||0,m(n)&&(u=!!n.leading,i=(d="maxWait"in n)?f(g(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),A.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},A.flush=function(){return void 0===s?a:x(h())},A}},4241:(e,t,n)=>{var r=n(3276),o=n(698),i=n(8213),a=n(2329),s=n(2833);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},6947:(e,t,n)=>{var r=n(3586),o=n(292),i=n(3575),a=n(7227),s=n(4611);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},979:(e,t,n)=>{var r=n(3746)(n(5369),"Map");e.exports=r},7217:(e,t,n)=>{var r=n(316),o=n(8746),i=n(3733),a=n(6841),s=n(1073);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},1341:(e,t,n)=>{var r=n(3746)(n(5369),"Set");e.exports=r},8567:(e,t,n)=>{var r=n(7217),o=n(4840),i=n(1143);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},9485:(e,t,n)=>{var r=n(5369).Symbol;e.exports=r},7101:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},2017:(e,t,n)=>{var r=n(9999);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},469:e=>{e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},5440:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},6228:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},6605:(e,t,n)=>{var r=n(3012);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},9199:(e,t,n)=>{var r=n(8567),o=n(2017),i=n(469),a=n(5440),s=n(7929),l=n(9599);e.exports=function(e,t,n,c){var u=-1,d=o,f=!0,p=e.length,h=[],m=t.length;if(!p)return h;n&&(t=a(t,s(n))),c?(d=i,f=!1):t.length>=200&&(d=l,f=!1,t=new r(t));e:for(;++u<p;){var g=e[u],v=null==n?g:n(g);if(g=c||0!==g?g:0,f&&v===v){for(var y=m;y--;)if(t[y]===v)continue e;h.push(g)}else d(t,v,c)||h.push(g)}return h}},6367:e=>{e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},6004:(e,t,n)=>{var r=n(6228),o=n(4879);e.exports=function e(t,n,i,a,s){var l=-1,c=t.length;for(i||(i=o),s||(s=[]);++l<c;){var u=t[l];n>0&&i(u)?n>1?e(u,n-1,i,a,s):r(s,u):a||(s[s.length]=u)}return s}},6380:(e,t,n)=>{var r=n(9485),o=n(7871),i=n(4282),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},9999:(e,t,n)=>{var r=n(6367),o=n(6299),i=n(227);e.exports=function(e,t,n){return t===t?i(e,t,n):r(e,o,n)}},9986:(e,t,n)=>{var r=n(6380),o=n(1462);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},6299:e=>{e.exports=function(e){return e!==e}},3847:(e,t,n)=>{var r=n(6350),o=n(5964),i=n(4537),a=n(5405),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?f:s).test(a(e))}},6034:(e,t,n)=>{var r=n(924),o=n(6385),i=n(9333);e.exports=function(e,t){return i(o(e,t,r),e+"")}},7022:(e,t,n)=>{var r=n(9810),o=n(303),i=n(924),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},7929:e=>{e.exports=function(e){return function(t){return e(t)}}},2737:(e,t,n)=>{var r=n(8567),o=n(2017),i=n(469),a=n(9599),s=n(1913),l=n(2683);e.exports=function(e,t,n){var c=-1,u=o,d=e.length,f=!0,p=[],h=p;if(n)f=!1,u=i;else if(d>=200){var m=t?null:s(e);if(m)return l(m);f=!1,u=a,h=new r}else h=t?[]:p;e:for(;++c<d;){var g=e[c],v=t?t(g):g;if(g=n||0!==g?g:0,f&&v===v){for(var y=h.length;y--;)if(h[y]===v)continue e;t&&h.push(v),p.push(g)}else u(h,v,n)||(h!==p&&h.push(v),p.push(g))}return p}},9599:e=>{e.exports=function(e,t){return e.has(t)}},1517:(e,t,n)=>{var r=n(5369)["__core-js_shared__"];e.exports=r},1913:(e,t,n)=>{var r=n(1341),o=n(7626),i=n(2683),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},303:(e,t,n)=>{var r=n(3746),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},4132:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},1199:(e,t,n)=>{var r=n(6481);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},3746:(e,t,n)=>{var r=n(3847),o=n(5076);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},1107:(e,t,n)=>{var r=n(9899)(Object.getPrototypeOf,Object);e.exports=r},7871:(e,t,n)=>{var r=n(9485),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(l){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},5076:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},3276:(e,t,n)=>{var r=n(7902);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},698:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},8213:(e,t,n)=>{var r=n(7902),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},2329:(e,t,n)=>{var r=n(7902),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},2833:(e,t,n)=>{var r=n(7902);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},4879:(e,t,n)=>{var r=n(9485),o=n(1240),i=n(573),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},6481:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5964:(e,t,n)=>{var r=n(1517),o=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},3586:e=>{e.exports=function(){this.__data__=[],this.size=0}},292:(e,t,n)=>{var r=n(6605),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},3575:(e,t,n)=>{var r=n(6605);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7227:(e,t,n)=>{var r=n(6605);e.exports=function(e){return r(this.__data__,e)>-1}},4611:(e,t,n)=>{var r=n(6605);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},316:(e,t,n)=>{var r=n(4241),o=n(6947),i=n(979);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},8746:(e,t,n)=>{var r=n(1199);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},3733:(e,t,n)=>{var r=n(1199);e.exports=function(e){return r(this,e).get(e)}},6841:(e,t,n)=>{var r=n(1199);e.exports=function(e){return r(this,e).has(e)}},1073:(e,t,n)=>{var r=n(1199);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},7902:(e,t,n)=>{var r=n(3746)(Object,"create");e.exports=r},4282:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9899:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},6385:(e,t,n)=>{var r=n(7101),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=i[a];return c[t]=n(l),r(e,this,c)}}},5369:(e,t,n)=>{var r=n(4132),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},4840:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1143:e=>{e.exports=function(e){return this.__data__.has(e)}},2683:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},9333:(e,t,n)=>{var r=n(7022),o=n(2111)(r);e.exports=o},2111:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},227:e=>{e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},5405:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},9810:e=>{e.exports=function(e){return function(){return e}}},4177:(e,t,n)=>{var r=n(9199),o=n(6004),i=n(6034),a=n(7825),s=i((function(e,t){return a(e)?r(e,o(t,1,a,!0)):[]}));e.exports=s},3012:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},924:e=>{e.exports=function(e){return e}},1240:(e,t,n)=>{var r=n(9986),o=n(1462),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},573:e=>{var t=Array.isArray;e.exports=t},330:(e,t,n)=>{var r=n(6350),o=n(6994);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},7825:(e,t,n)=>{var r=n(330),o=n(1462);e.exports=function(e){return o(e)&&r(e)}},6350:(e,t,n)=>{var r=n(6380),o=n(4537);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},6994:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},4537:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},1462:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},4407:(e,t,n)=>{var r=n(6380),o=n(1107),i=n(1462),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},2747:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",s="__lodash_placeholder__",l=16,c=32,u=64,d=128,f=256,p=1/0,h=9007199254740991,m=NaN,g=4294967295,v=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",c],["partialRight",u],["rearg",f]],y="[object Arguments]",b="[object Array]",w="[object Boolean]",x="[object Date]",A="[object Error]",S="[object Function]",_="[object GeneratorFunction]",k="[object Map]",C="[object Number]",E="[object Object]",O="[object Promise]",T="[object RegExp]",I="[object Set]",R="[object String]",P="[object Symbol]",M="[object WeakMap]",D="[object ArrayBuffer]",L="[object DataView]",j="[object Float32Array]",N="[object Float64Array]",F="[object Int8Array]",z="[object Int16Array]",B="[object Int32Array]",V="[object Uint8Array]",U="[object Uint8ClampedArray]",W="[object Uint16Array]",q="[object Uint32Array]",H=/\b__p \+= '';/g,Y=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,$=/[&<>"']/g,Q=RegExp(K.source),X=RegExp($.source),J=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(oe.source),ae=/^\s+/,se=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fe=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ae=/($^)/,Se=/['\n\r\u2028\u2029\\]/g,_e="\\ud800-\\udfff",ke="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ce="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",Oe="A-Z\\xc0-\\xd6\\xd8-\\xde",Te="\\ufe0e\\ufe0f",Ie="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Re="['\u2019]",Pe="["+_e+"]",Me="["+Ie+"]",De="["+ke+"]",Le="\\d+",je="["+Ce+"]",Ne="["+Ee+"]",Fe="[^"+_e+Ie+Le+Ce+Ee+Oe+"]",ze="\\ud83c[\\udffb-\\udfff]",Be="[^"+_e+"]",Ve="(?:\\ud83c[\\udde6-\\uddff]){2}",Ue="[\\ud800-\\udbff][\\udc00-\\udfff]",We="["+Oe+"]",qe="\\u200d",He="(?:"+Ne+"|"+Fe+")",Ye="(?:"+We+"|"+Fe+")",Ge="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ke="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",$e="(?:"+De+"|"+ze+")"+"?",Qe="["+Te+"]?",Xe=Qe+$e+("(?:"+qe+"(?:"+[Be,Ve,Ue].join("|")+")"+Qe+$e+")*"),Je="(?:"+[je,Ve,Ue].join("|")+")"+Xe,Ze="(?:"+[Be+De+"?",De,Ve,Ue,Pe].join("|")+")",et=RegExp(Re,"g"),tt=RegExp(De,"g"),nt=RegExp(ze+"(?="+ze+")|"+Ze+Xe,"g"),rt=RegExp([We+"?"+Ne+"+"+Ge+"(?="+[Me,We,"$"].join("|")+")",Ye+"+"+Ke+"(?="+[Me,We+He,"$"].join("|")+")",We+"?"+He+"+"+Ge,We+"+"+Ke,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Le,Je].join("|"),"g"),ot=RegExp("["+qe+_e+ke+Te+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],st=-1,lt={};lt[j]=lt[N]=lt[F]=lt[z]=lt[B]=lt[V]=lt[U]=lt[W]=lt[q]=!0,lt[y]=lt[b]=lt[D]=lt[w]=lt[L]=lt[x]=lt[A]=lt[S]=lt[k]=lt[C]=lt[E]=lt[T]=lt[I]=lt[R]=lt[M]=!1;var ct={};ct[y]=ct[b]=ct[D]=ct[L]=ct[w]=ct[x]=ct[j]=ct[N]=ct[F]=ct[z]=ct[B]=ct[k]=ct[C]=ct[E]=ct[T]=ct[I]=ct[R]=ct[P]=ct[V]=ct[U]=ct[W]=ct[q]=!0,ct[A]=ct[S]=ct[M]=!1;var ut={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},dt=parseFloat,ft=parseInt,pt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ht="object"==typeof self&&self&&self.Object===Object&&self,mt=pt||ht||Function("return this")(),gt=t&&!t.nodeType&&t,vt=gt&&e&&!e.nodeType&&e,yt=vt&&vt.exports===gt,bt=yt&&pt.process,wt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(t){}}(),xt=wt&&wt.isArrayBuffer,At=wt&&wt.isDate,St=wt&&wt.isMap,_t=wt&&wt.isRegExp,kt=wt&&wt.isSet,Ct=wt&&wt.isTypedArray;function Et(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ot(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function Tt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function It(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Rt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Pt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Mt(e,t){return!!(null==e?0:e.length)&&Wt(e,t,0)>-1}function Dt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Lt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function jt(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Nt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Ft(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function zt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Bt=Gt("length");function Vt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Ut(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Wt(e,t,n){return t===t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Ut(e,Ht,n)}function qt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Ht(e){return e!==e}function Yt(e,t){var n=null==e?0:e.length;return n?Qt(e,t)/n:m}function Gt(e){return function(t){return null==t?o:t[e]}}function Kt(e){return function(t){return null==e?o:e[t]}}function $t(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Qt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Xt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Jt(e){return e?e.slice(0,gn(e)+1).replace(ae,""):e}function Zt(e){return function(t){return e(t)}}function en(e,t){return Lt(t,(function(t){return e[t]}))}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Wt(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Wt(t,e[n],0)>-1;);return n}var on=Kt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),an=Kt({"&":"&","<":"<",">":">",'"':""","'":"'"});function sn(e){return"\\"+ut[e]}function ln(e){return ot.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function un(e,t){return function(n){return e(t(n))}}function dn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==s||(e[n]=s,i[o++]=n)}return i}function fn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function hn(e){return ln(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):Bt(e)}function mn(e){return ln(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function gn(e){for(var t=e.length;t--&&se.test(e.charAt(t)););return t}var vn=Kt({"&":"&","<":"<",">":">",""":'"',"'":"'"});var yn=function e(t){var n=(t=null==t?mt:yn.defaults(mt.Object(),t,yn.pick(mt,at))).Array,r=t.Date,se=t.Error,_e=t.Function,ke=t.Math,Ce=t.Object,Ee=t.RegExp,Oe=t.String,Te=t.TypeError,Ie=n.prototype,Re=_e.prototype,Pe=Ce.prototype,Me=t["__core-js_shared__"],De=Re.toString,Le=Pe.hasOwnProperty,je=0,Ne=function(){var e=/[^.]+$/.exec(Me&&Me.keys&&Me.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Fe=Pe.toString,ze=De.call(Ce),Be=mt._,Ve=Ee("^"+De.call(Le).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=yt?t.Buffer:o,We=t.Symbol,qe=t.Uint8Array,He=Ue?Ue.allocUnsafe:o,Ye=un(Ce.getPrototypeOf,Ce),Ge=Ce.create,Ke=Pe.propertyIsEnumerable,$e=Ie.splice,Qe=We?We.isConcatSpreadable:o,Xe=We?We.iterator:o,Je=We?We.toStringTag:o,Ze=function(){try{var e=fi(Ce,"defineProperty");return e({},"",{}),e}catch(t){}}(),nt=t.clearTimeout!==mt.clearTimeout&&t.clearTimeout,ot=r&&r.now!==mt.Date.now&&r.now,ut=t.setTimeout!==mt.setTimeout&&t.setTimeout,pt=ke.ceil,ht=ke.floor,gt=Ce.getOwnPropertySymbols,vt=Ue?Ue.isBuffer:o,bt=t.isFinite,wt=Ie.join,Bt=un(Ce.keys,Ce),Kt=ke.max,bn=ke.min,wn=r.now,xn=t.parseInt,An=ke.random,Sn=Ie.reverse,_n=fi(t,"DataView"),kn=fi(t,"Map"),Cn=fi(t,"Promise"),En=fi(t,"Set"),On=fi(t,"WeakMap"),Tn=fi(Ce,"create"),In=On&&new On,Rn={},Pn=Fi(_n),Mn=Fi(kn),Dn=Fi(Cn),Ln=Fi(En),jn=Fi(On),Nn=We?We.prototype:o,Fn=Nn?Nn.valueOf:o,zn=Nn?Nn.toString:o;function Bn(e){if(ts(e)&&!qa(e)&&!(e instanceof qn)){if(e instanceof Wn)return e;if(Le.call(e,"__wrapped__"))return zi(e)}return new Wn(e)}var Vn=function(){function e(){}return function(t){if(!es(t))return{};if(Ge)return Ge(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Un(){}function Wn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function qn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Gn;++t<n;)this.add(e[t])}function $n(e){var t=this.__data__=new Yn(e);this.size=t.size}function Qn(e,t){var n=qa(e),r=!n&&Wa(e),o=!n&&!r&&Ka(e),i=!n&&!r&&!o&&cs(e),a=n||r||o||i,s=a?Xt(e.length,Oe):[],l=s.length;for(var c in e)!t&&!Le.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||bi(c,l))||s.push(c);return s}function Xn(e){var t=e.length;return t?e[Kr(0,t-1)]:o}function Jn(e,t){return Li(Io(e),sr(t,0,e.length))}function Zn(e){return Li(Io(e))}function er(e,t,n){(n!==o&&!Ba(e[t],n)||n===o&&!(t in e))&&ir(e,t,n)}function tr(e,t,n){var r=e[t];Le.call(e,t)&&Ba(r,n)&&(n!==o||t in e)||ir(e,t,n)}function nr(e,t){for(var n=e.length;n--;)if(Ba(e[n][0],t))return n;return-1}function rr(e,t,n,r){return fr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function or(e,t){return e&&Ro(t,Rs(t),e)}function ir(e,t,n){"__proto__"==t&&Ze?Ze(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ar(e,t){for(var r=-1,i=t.length,a=n(i),s=null==e;++r<i;)a[r]=s?o:Cs(e,t[r]);return a}function sr(e,t,n){return e===e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function lr(e,t,n,r,i,a){var s,l=1&t,c=2&t,u=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!es(e))return e;var d=qa(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Le.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Io(e,s)}else{var f=mi(e),p=f==S||f==_;if(Ka(e))return _o(e,l);if(f==E||f==y||p&&!i){if(s=c||p?{}:vi(e),!l)return c?function(e,t){return Ro(e,hi(e),t)}(e,function(e,t){return e&&Ro(t,Ps(t),e)}(s,e)):function(e,t){return Ro(e,pi(e),t)}(e,or(s,e))}else{if(!ct[f])return i?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case D:return ko(e);case w:case x:return new r(+e);case L:return function(e,t){var n=t?ko(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case j:case N:case F:case z:case B:case V:case U:case W:case q:return Co(e,n);case k:return new r;case C:case R:return new r(e);case T:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case I:return new r;case P:return o=e,Fn?Ce(Fn.call(o)):{}}var o}(e,f,l)}}a||(a=new $n);var h=a.get(e);if(h)return h;a.set(e,s),as(e)?e.forEach((function(r){s.add(lr(r,t,n,r,e,a))})):ns(e)&&e.forEach((function(r,o){s.set(o,lr(r,t,n,o,e,a))}));var m=d?o:(u?c?ii:oi:c?Ps:Rs)(e);return Tt(m||e,(function(r,o){m&&(r=e[o=r]),tr(s,o,lr(r,t,n,o,e,a))})),s}function cr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ce(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new Te(i);return Ri((function(){e.apply(o,n)}),t)}function dr(e,t,n,r){var o=-1,i=Mt,a=!0,s=e.length,l=[],c=t.length;if(!s)return l;n&&(t=Lt(t,Zt(n))),r?(i=Dt,a=!1):t.length>=200&&(i=tn,a=!1,t=new Kn(t));e:for(;++o<s;){var u=e[o],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d===d){for(var f=c;f--;)if(t[f]===d)continue e;l.push(u)}else i(t,d,r)||l.push(u)}return l}Bn.templateSettings={escape:J,evaluate:Z,interpolate:ee,variable:"",imports:{_:Bn}},Bn.prototype=Un.prototype,Bn.prototype.constructor=Bn,Wn.prototype=Vn(Un.prototype),Wn.prototype.constructor=Wn,qn.prototype=Vn(Un.prototype),qn.prototype.constructor=qn,Hn.prototype.clear=function(){this.__data__=Tn?Tn(null):{},this.size=0},Hn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hn.prototype.get=function(e){var t=this.__data__;if(Tn){var n=t[e];return n===a?o:n}return Le.call(t,e)?t[e]:o},Hn.prototype.has=function(e){var t=this.__data__;return Tn?t[e]!==o:Le.call(t,e)},Hn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Tn&&t===o?a:t,this},Yn.prototype.clear=function(){this.__data__=[],this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=nr(t,e);return!(n<0)&&(n==t.length-1?t.pop():$e.call(t,n,1),--this.size,!0)},Yn.prototype.get=function(e){var t=this.__data__,n=nr(t,e);return n<0?o:t[n][1]},Yn.prototype.has=function(e){return nr(this.__data__,e)>-1},Yn.prototype.set=function(e,t){var n=this.__data__,r=nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(kn||Yn),string:new Hn}},Gn.prototype.delete=function(e){var t=ui(this,e).delete(e);return this.size-=t?1:0,t},Gn.prototype.get=function(e){return ui(this,e).get(e)},Gn.prototype.has=function(e){return ui(this,e).has(e)},Gn.prototype.set=function(e,t){var n=ui(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,a),this},Kn.prototype.has=function(e){return this.__data__.has(e)},$n.prototype.clear=function(){this.__data__=new Yn,this.size=0},$n.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},$n.prototype.get=function(e){return this.__data__.get(e)},$n.prototype.has=function(e){return this.__data__.has(e)},$n.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Yn){var r=n.__data__;if(!kn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Gn(r)}return n.set(e,t),this.size=n.size,this};var fr=Do(wr),pr=Do(xr,!0);function hr(e,t){var n=!0;return fr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function mr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(null!=s&&(l===o?s===s&&!ls(s):n(s,l)))var l=s,c=a}return c}function gr(e,t){var n=[];return fr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function vr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=yi),o||(o=[]);++i<a;){var s=e[i];t>0&&n(s)?t>1?vr(s,t-1,n,r,o):jt(o,s):r||(o[o.length]=s)}return o}var yr=Lo(),br=Lo(!0);function wr(e,t){return e&&yr(e,t,Rs)}function xr(e,t){return e&&br(e,t,Rs)}function Ar(e,t){return Pt(t,(function(t){return Xa(e[t])}))}function Sr(e,t){for(var n=0,r=(t=wo(t,e)).length;null!=e&&n<r;)e=e[Ni(t[n++])];return n&&n==r?e:o}function _r(e,t,n){var r=t(e);return qa(e)?r:jt(r,n(e))}function kr(e){return null==e?e===o?"[object Undefined]":"[object Null]":Je&&Je in Ce(e)?function(e){var t=Le.call(e,Je),n=e[Je];try{e[Je]=o;var r=!0}catch(a){}var i=Fe.call(e);r&&(t?e[Je]=n:delete e[Je]);return i}(e):function(e){return Fe.call(e)}(e)}function Cr(e,t){return e>t}function Er(e,t){return null!=e&&Le.call(e,t)}function Or(e,t){return null!=e&&t in Ce(e)}function Tr(e,t,r){for(var i=r?Dt:Mt,a=e[0].length,s=e.length,l=s,c=n(s),u=1/0,d=[];l--;){var f=e[l];l&&t&&(f=Lt(f,Zt(t))),u=bn(f.length,u),c[l]=!r&&(t||a>=120&&f.length>=120)?new Kn(l&&f):o}f=e[0];var p=-1,h=c[0];e:for(;++p<a&&d.length<u;){var m=f[p],g=t?t(m):m;if(m=r||0!==m?m:0,!(h?tn(h,g):i(d,g,r))){for(l=s;--l;){var v=c[l];if(!(v?tn(v,g):i(e[l],g,r)))continue e}h&&h.push(g),d.push(m)}}return d}function Ir(e,t,n){var r=null==(e=Oi(e,t=wo(t,e)))?e:e[Ni(Qi(t))];return null==r?o:Et(r,e,n)}function Rr(e){return ts(e)&&kr(e)==y}function Pr(e,t,n,r,i){return e===t||(null==e||null==t||!ts(e)&&!ts(t)?e!==e&&t!==t:function(e,t,n,r,i,a){var s=qa(e),l=qa(t),c=s?b:mi(e),u=l?b:mi(t),d=(c=c==y?E:c)==E,f=(u=u==y?E:u)==E,p=c==u;if(p&&Ka(e)){if(!Ka(t))return!1;s=!0,d=!1}if(p&&!d)return a||(a=new $n),s||cs(e)?ni(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case L:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case D:return!(e.byteLength!=t.byteLength||!i(new qe(e),new qe(t)));case w:case x:case C:return Ba(+e,+t);case A:return e.name==t.name&&e.message==t.message;case T:case R:return e==t+"";case k:var s=cn;case I:var l=1&r;if(s||(s=fn),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=ni(s(e),s(t),r,o,i,a);return a.delete(e),u;case P:if(Fn)return Fn.call(e)==Fn.call(t)}return!1}(e,t,c,n,r,i,a);if(!(1&n)){var h=d&&Le.call(e,"__wrapped__"),m=f&&Le.call(t,"__wrapped__");if(h||m){var g=h?e.value():e,v=m?t.value():t;return a||(a=new $n),i(g,v,n,r,a)}}if(!p)return!1;return a||(a=new $n),function(e,t,n,r,i,a){var s=1&n,l=oi(e),c=l.length,u=oi(t),d=u.length;if(c!=d&&!s)return!1;var f=c;for(;f--;){var p=l[f];if(!(s?p in t:Le.call(t,p)))return!1}var h=a.get(e),m=a.get(t);if(h&&m)return h==t&&m==e;var g=!0;a.set(e,t),a.set(t,e);var v=s;for(;++f<c;){var y=e[p=l[f]],b=t[p];if(r)var w=s?r(b,y,p,t,e,a):r(y,b,p,e,t,a);if(!(w===o?y===b||i(y,b,n,r,a):w)){g=!1;break}v||(v="constructor"==p)}if(g&&!v){var x=e.constructor,A=t.constructor;x==A||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof A&&A instanceof A||(g=!1)}return a.delete(e),a.delete(t),g}(e,t,n,r,i,a)}(e,t,n,r,Pr,i))}function Mr(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=Ce(e);i--;){var l=n[i];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){var c=(l=n[i])[0],u=e[c],d=l[1];if(s&&l[2]){if(u===o&&!(c in e))return!1}else{var f=new $n;if(r)var p=r(u,d,c,e,t,f);if(!(p===o?Pr(d,u,3,r,f):p))return!1}}return!0}function Dr(e){return!(!es(e)||(t=e,Ne&&Ne in t))&&(Xa(e)?Ve:ye).test(Fi(e));var t}function Lr(e){return"function"==typeof e?e:null==e?rl:"object"==typeof e?qa(e)?Vr(e[0],e[1]):Br(e):fl(e)}function jr(e){if(!_i(e))return Bt(e);var t=[];for(var n in Ce(e))Le.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Nr(e){if(!es(e))return function(e){var t=[];if(null!=e)for(var n in Ce(e))t.push(n);return t}(e);var t=_i(e),n=[];for(var r in e)("constructor"!=r||!t&&Le.call(e,r))&&n.push(r);return n}function Fr(e,t){return e<t}function zr(e,t){var r=-1,o=Ya(e)?n(e.length):[];return fr(e,(function(e,n,i){o[++r]=t(e,n,i)})),o}function Br(e){var t=di(e);return 1==t.length&&t[0][2]?Ci(t[0][0],t[0][1]):function(n){return n===e||Mr(n,e,t)}}function Vr(e,t){return xi(e)&&ki(t)?Ci(Ni(e),t):function(n){var r=Cs(n,e);return r===o&&r===t?Es(n,e):Pr(t,r,3)}}function Ur(e,t,n,r,i){e!==t&&yr(t,(function(a,s){if(i||(i=new $n),es(a))!function(e,t,n,r,i,a,s){var l=Ti(e,n),c=Ti(t,n),u=s.get(c);if(u)return void er(e,n,u);var d=a?a(l,c,n+"",e,t,s):o,f=d===o;if(f){var p=qa(c),h=!p&&Ka(c),m=!p&&!h&&cs(c);d=c,p||h||m?qa(l)?d=l:Ga(l)?d=Io(l):h?(f=!1,d=_o(c,!0)):m?(f=!1,d=Co(c,!0)):d=[]:os(c)||Wa(c)?(d=l,Wa(l)?d=vs(l):es(l)&&!Xa(l)||(d=vi(c))):f=!1}f&&(s.set(c,d),i(d,c,r,a,s),s.delete(c));er(e,n,d)}(e,t,s,n,Ur,r,i);else{var l=r?r(Ti(e,s),a,s+"",e,t,i):o;l===o&&(l=a),er(e,s,l)}}),Ps)}function Wr(e,t){var n=e.length;if(n)return bi(t+=t<0?n:0,n)?e[t]:o}function qr(e,t,n){t=t.length?Lt(t,(function(e){return qa(e)?function(t){return Sr(t,1===e.length?e[0]:e)}:e})):[rl];var r=-1;t=Lt(t,Zt(ci()));var o=zr(e,(function(e,n,o){var i=Lt(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,a=o.length,s=n.length;for(;++r<a;){var l=Eo(o[r],i[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Hr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],s=Sr(e,a);n(s,a)&&Zr(i,wo(a,e),s)}return i}function Yr(e,t,n,r){var o=r?qt:Wt,i=-1,a=t.length,s=e;for(e===t&&(t=Io(t)),n&&(s=Lt(e,Zt(n)));++i<a;)for(var l=0,c=t[i],u=n?n(c):c;(l=o(s,u,l,r))>-1;)s!==e&&$e.call(s,l,1),$e.call(e,l,1);return e}function Gr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;bi(o)?$e.call(e,o,1):fo(e,o)}}return e}function Kr(e,t){return e+ht(An()*(t-e+1))}function $r(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=ht(t/2))&&(e+=e)}while(t);return n}function Qr(e,t){return Pi(Ei(e,t,rl),e+"")}function Xr(e){return Xn(Bs(e))}function Jr(e,t){var n=Bs(e);return Li(n,sr(t,0,n.length))}function Zr(e,t,n,r){if(!es(e))return e;for(var i=-1,a=(t=wo(t,e)).length,s=a-1,l=e;null!=l&&++i<a;){var c=Ni(t[i]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var d=l[c];(u=r?r(d,c,l):o)===o&&(u=es(d)?d:bi(t[i+1])?[]:{})}tr(l,c,u),l=l[c]}return e}var eo=In?function(e,t){return In.set(e,t),e}:rl,to=Ze?function(e,t){return Ze(e,"toString",{configurable:!0,enumerable:!1,value:el(t),writable:!0})}:rl;function no(e){return Li(Bs(e))}function ro(e,t,r){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=n(i);++o<i;)a[o]=e[o+t];return a}function oo(e,t){var n;return fr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function io(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t===t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!ls(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return ao(e,t,rl,n)}function ao(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!==t,l=null===t,c=ls(t),u=t===o;i<a;){var d=ht((i+a)/2),f=n(e[d]),p=f!==o,h=null===f,m=f===f,g=ls(f);if(s)var v=r||m;else v=u?m&&(r||p):l?m&&p&&(r||!h):c?m&&p&&!h&&(r||!g):!h&&!g&&(r?f<=t:f<t);v?i=d+1:a=d}return bn(a,4294967294)}function so(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Ba(s,l)){var l=s;i[o++]=0===a?0:a}}return i}function lo(e){return"number"==typeof e?e:ls(e)?m:+e}function co(e){if("string"==typeof e)return e;if(qa(e))return Lt(e,co)+"";if(ls(e))return zn?zn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function uo(e,t,n){var r=-1,o=Mt,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=Dt;else if(i>=200){var c=t?null:Qo(e);if(c)return fn(c);a=!1,o=tn,l=new Kn}else l=t?[]:s;e:for(;++r<i;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d===d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),s.push(u)}else o(l,d,n)||(l!==s&&l.push(d),s.push(u))}return s}function fo(e,t){return null==(e=Oi(e,t=wo(t,e)))||delete e[Ni(Qi(t))]}function po(e,t,n,r){return Zr(e,t,n(Sr(e,t)),r)}function ho(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?ro(e,r?0:i,r?i+1:o):ro(e,r?i+1:0,r?o:i)}function mo(e,t){var n=e;return n instanceof qn&&(n=n.value()),Nt(t,(function(e,t){return t.func.apply(t.thisArg,jt([e],t.args))}),n)}function go(e,t,r){var o=e.length;if(o<2)return o?uo(e[0]):[];for(var i=-1,a=n(o);++i<o;)for(var s=e[i],l=-1;++l<o;)l!=i&&(a[i]=dr(a[i]||s,e[l],t,r));return uo(vr(a,1),t,r)}function vo(e,t,n){for(var r=-1,i=e.length,a=t.length,s={};++r<i;){var l=r<a?t[r]:o;n(s,e[r],l)}return s}function yo(e){return Ga(e)?e:[]}function bo(e){return"function"==typeof e?e:rl}function wo(e,t){return qa(e)?e:xi(e,t)?[e]:ji(ys(e))}var xo=Qr;function Ao(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:ro(e,t,n)}var So=nt||function(e){return mt.clearTimeout(e)};function _o(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function ko(e){var t=new e.constructor(e.byteLength);return new qe(t).set(new qe(e)),t}function Co(e,t){var n=t?ko(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Eo(e,t){if(e!==t){var n=e!==o,r=null===e,i=e===e,a=ls(e),s=t!==o,l=null===t,c=t===t,u=ls(t);if(!l&&!u&&!a&&e>t||a&&s&&c&&!l&&!u||r&&s&&c||!n&&c||!i)return 1;if(!r&&!a&&!u&&e<t||u&&n&&i&&!r&&!a||l&&n&&i||!s&&i||!c)return-1}return 0}function Oo(e,t,r,o){for(var i=-1,a=e.length,s=r.length,l=-1,c=t.length,u=Kt(a-s,0),d=n(c+u),f=!o;++l<c;)d[l]=t[l];for(;++i<s;)(f||i<a)&&(d[r[i]]=e[i]);for(;u--;)d[l++]=e[i++];return d}function To(e,t,r,o){for(var i=-1,a=e.length,s=-1,l=r.length,c=-1,u=t.length,d=Kt(a-l,0),f=n(d+u),p=!o;++i<d;)f[i]=e[i];for(var h=i;++c<u;)f[h+c]=t[c];for(;++s<l;)(p||i<a)&&(f[h+r[s]]=e[i++]);return f}function Io(e,t){var r=-1,o=e.length;for(t||(t=n(o));++r<o;)t[r]=e[r];return t}function Ro(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var l=t[a],c=r?r(n[l],e[l],l,n,e):o;c===o&&(c=e[l]),i?ir(n,l,c):tr(n,l,c)}return n}function Po(e,t){return function(n,r){var o=qa(n)?Ot:rr,i=t?t():{};return o(n,e,ci(r,2),i)}}function Mo(e){return Qr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&wi(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=Ce(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t}))}function Do(e,t){return function(n,r){if(null==n)return n;if(!Ya(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Ce(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Lo(e){return function(t,n,r){for(var o=-1,i=Ce(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}function jo(e){return function(t){var n=ln(t=ys(t))?mn(t):o,r=n?n[0]:t.charAt(0),i=n?Ao(n,1).join(""):t.slice(1);return r[e]()+i}}function No(e){return function(t){return Nt(Xs(Ws(t).replace(et,"")),e,"")}}function Fo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Vn(e.prototype),r=e.apply(n,t);return es(r)?r:n}}function zo(e){return function(t,n,r){var i=Ce(t);if(!Ya(t)){var a=ci(n,3);t=Rs(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function Bo(e){return ri((function(t){var n=t.length,r=n,a=Wn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Te(i);if(a&&!l&&"wrapper"==si(s))var l=new Wn([],!0)}for(r=l?r:n;++r<n;){var c=si(s=t[r]),u="wrapper"==c?ai(s):o;l=u&&Ai(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[si(u[0])].apply(l,u[3]):1==s.length&&Ai(s)?l[c]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&qa(r))return l.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Vo(e,t,r,i,a,s,l,c,u,f){var p=t&d,h=1&t,m=2&t,g=24&t,v=512&t,y=m?o:Fo(e);return function d(){for(var b=arguments.length,w=n(b),x=b;x--;)w[x]=arguments[x];if(g)var A=li(d),S=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,A);if(i&&(w=Oo(w,i,a,g)),s&&(w=To(w,s,l,g)),b-=S,g&&b<f){var _=dn(w,A);return Ko(e,t,Vo,d.placeholder,r,w,_,c,u,f-b)}var k=h?r:this,C=m?k[e]:e;return b=w.length,c?w=function(e,t){var n=e.length,r=bn(t.length,n),i=Io(e);for(;r--;){var a=t[r];e[r]=bi(a,n)?i[a]:o}return e}(w,c):v&&b>1&&w.reverse(),p&&u<b&&(w.length=u),this&&this!==mt&&this instanceof d&&(C=y||Fo(C)),C.apply(k,w)}}function Uo(e,t){return function(n,r){return function(e,t,n,r){return wr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Wo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=co(n),r=co(r)):(n=lo(n),r=lo(r)),i=e(n,r)}return i}}function qo(e){return ri((function(t){return t=Lt(t,Zt(ci())),Qr((function(n){var r=this;return e(t,(function(e){return Et(e,r,n)}))}))}))}function Ho(e,t){var n=(t=t===o?" ":co(t)).length;if(n<2)return n?$r(t,e):t;var r=$r(t,pt(e/hn(t)));return ln(t)?Ao(mn(r),0,e).join(""):r.slice(0,e)}function Yo(e){return function(t,r,i){return i&&"number"!=typeof i&&wi(t,r,i)&&(r=i=o),t=ps(t),r===o?(r=t,t=0):r=ps(r),function(e,t,r,o){for(var i=-1,a=Kt(pt((t-e)/(r||1)),0),s=n(a);a--;)s[o?a:++i]=e,e+=r;return s}(t,r,i=i===o?t<r?1:-1:ps(i),e)}}function Go(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=gs(t),n=gs(n)),e(t,n)}}function Ko(e,t,n,r,i,a,s,l,d,f){var p=8&t;t|=p?c:u,4&(t&=~(p?u:c))||(t&=-4);var h=[e,t,i,p?a:o,p?s:o,p?o:a,p?o:s,l,d,f],m=n.apply(o,h);return Ai(e)&&Ii(m,h),m.placeholder=r,Mi(m,e,t)}function $o(e){var t=ke[e];return function(e,n){if(e=gs(e),(n=null==n?0:bn(hs(n),292))&&bt(e)){var r=(ys(e)+"e").split("e");return+((r=(ys(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Qo=En&&1/fn(new En([,-0]))[1]==p?function(e){return new En(e)}:ll;function Xo(e){return function(t){var n=mi(t);return n==k?cn(t):n==I?pn(t):function(e,t){return Lt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Jo(e,t,r,a,p,h,m,g){var v=2&t;if(!v&&"function"!=typeof e)throw new Te(i);var y=a?a.length:0;if(y||(t&=-97,a=p=o),m=m===o?m:Kt(hs(m),0),g=g===o?g:hs(g),y-=p?p.length:0,t&u){var b=a,w=p;a=p=o}var x=v?o:ai(e),A=[e,t,r,a,p,b,w,h,m,g];if(x&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==d&&8==n||r==d&&n==f&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?Oo(c,l,t[4]):l,e[4]=c?dn(e[3],s):t[4]}(l=t[5])&&(c=e[5],e[5]=c?To(c,l,t[6]):l,e[6]=c?dn(e[5],s):t[6]);(l=t[7])&&(e[7]=l);r&d&&(e[8]=null==e[8]?t[8]:bn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(A,x),e=A[0],t=A[1],r=A[2],a=A[3],p=A[4],!(g=A[9]=A[9]===o?v?0:e.length:Kt(A[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)S=8==t||t==l?function(e,t,r){var i=Fo(e);return function a(){for(var s=arguments.length,l=n(s),c=s,u=li(a);c--;)l[c]=arguments[c];var d=s<3&&l[0]!==u&&l[s-1]!==u?[]:dn(l,u);return(s-=d.length)<r?Ko(e,t,Vo,a.placeholder,o,l,d,o,o,r-s):Et(this&&this!==mt&&this instanceof a?i:e,this,l)}}(e,t,g):t!=c&&33!=t||p.length?Vo.apply(o,A):function(e,t,r,o){var i=1&t,a=Fo(e);return function t(){for(var s=-1,l=arguments.length,c=-1,u=o.length,d=n(u+l),f=this&&this!==mt&&this instanceof t?a:e;++c<u;)d[c]=o[c];for(;l--;)d[c++]=arguments[++s];return Et(f,i?r:this,d)}}(e,t,r,a);else var S=function(e,t,n){var r=1&t,o=Fo(e);return function t(){return(this&&this!==mt&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,r);return Mi((x?eo:Ii)(S,A),e,t)}function Zo(e,t,n,r){return e===o||Ba(e,Pe[n])&&!Le.call(r,n)?t:e}function ei(e,t,n,r,i,a){return es(e)&&es(t)&&(a.set(t,e),Ur(e,t,o,ei,a),a.delete(t)),e}function ti(e){return os(e)?o:e}function ni(e,t,n,r,i,a){var s=1&n,l=e.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=a.get(e),d=a.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,h=2&n?new Kn:o;for(a.set(e,t),a.set(t,e);++f<l;){var m=e[f],g=t[f];if(r)var v=s?r(g,m,f,t,e,a):r(m,g,f,e,t,a);if(v!==o){if(v)continue;p=!1;break}if(h){if(!zt(t,(function(e,t){if(!tn(h,t)&&(m===e||i(m,e,n,r,a)))return h.push(t)}))){p=!1;break}}else if(m!==g&&!i(m,g,n,r,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function ri(e){return Pi(Ei(e,o,Hi),e+"")}function oi(e){return _r(e,Rs,pi)}function ii(e){return _r(e,Ps,hi)}var ai=In?function(e){return In.get(e)}:ll;function si(e){for(var t=e.name+"",n=Rn[t],r=Le.call(Rn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function li(e){return(Le.call(Bn,"placeholder")?Bn:e).placeholder}function ci(){var e=Bn.iteratee||ol;return e=e===ol?Lr:e,arguments.length?e(arguments[0],arguments[1]):e}function ui(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function di(e){for(var t=Rs(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,ki(o)]}return t}function fi(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Dr(n)?n:o}var pi=gt?function(e){return null==e?[]:(e=Ce(e),Pt(gt(e),(function(t){return Ke.call(e,t)})))}:ml,hi=gt?function(e){for(var t=[];e;)jt(t,pi(e)),e=Ye(e);return t}:ml,mi=kr;function gi(e,t,n){for(var r=-1,o=(t=wo(t,e)).length,i=!1;++r<o;){var a=Ni(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&Za(o)&&bi(a,o)&&(qa(e)||Wa(e))}function vi(e){return"function"!=typeof e.constructor||_i(e)?{}:Vn(Ye(e))}function yi(e){return qa(e)||Wa(e)||!!(Qe&&e&&e[Qe])}function bi(e,t){var n=typeof e;return!!(t=null==t?h:t)&&("number"==n||"symbol"!=n&&we.test(e))&&e>-1&&e%1==0&&e<t}function wi(e,t,n){if(!es(n))return!1;var r=typeof t;return!!("number"==r?Ya(n)&&bi(t,n.length):"string"==r&&t in n)&&Ba(n[t],e)}function xi(e,t){if(qa(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ls(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Ce(t))}function Ai(e){var t=si(e),n=Bn[t];if("function"!=typeof n||!(t in qn.prototype))return!1;if(e===n)return!0;var r=ai(n);return!!r&&e===r[0]}(_n&&mi(new _n(new ArrayBuffer(1)))!=L||kn&&mi(new kn)!=k||Cn&&mi(Cn.resolve())!=O||En&&mi(new En)!=I||On&&mi(new On)!=M)&&(mi=function(e){var t=kr(e),n=t==E?e.constructor:o,r=n?Fi(n):"";if(r)switch(r){case Pn:return L;case Mn:return k;case Dn:return O;case Ln:return I;case jn:return M}return t});var Si=Me?Xa:gl;function _i(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Pe)}function ki(e){return e===e&&!es(e)}function Ci(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in Ce(n)))}}function Ei(e,t,r){return t=Kt(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=Kt(o.length-t,0),s=n(a);++i<a;)s[i]=o[t+i];i=-1;for(var l=n(t+1);++i<t;)l[i]=o[i];return l[t]=r(s),Et(e,this,l)}}function Oi(e,t){return t.length<2?e:Sr(e,ro(t,0,-1))}function Ti(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Ii=Di(eo),Ri=ut||function(e,t){return mt.setTimeout(e,t)},Pi=Di(to);function Mi(e,t,n){var r=t+"";return Pi(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Tt(v,(function(n){var r="_."+n[0];t&n[1]&&!Mt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(ue):[]}(r),n)))}function Di(e){var t=0,n=0;return function(){var r=wn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Li(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Kr(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var ji=function(e){var t=Da(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,o){t.push(r?o.replace(pe,"$1"):n||e)})),t}));function Ni(e){if("string"==typeof e||ls(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fi(e){if(null!=e){try{return De.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function zi(e){if(e instanceof qn)return e.clone();var t=new Wn(e.__wrapped__,e.__chain__);return t.__actions__=Io(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Bi=Qr((function(e,t){return Ga(e)?dr(e,vr(t,1,Ga,!0)):[]})),Vi=Qr((function(e,t){var n=Qi(t);return Ga(n)&&(n=o),Ga(e)?dr(e,vr(t,1,Ga,!0),ci(n,2)):[]})),Ui=Qr((function(e,t){var n=Qi(t);return Ga(n)&&(n=o),Ga(e)?dr(e,vr(t,1,Ga,!0),o,n):[]}));function Wi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:hs(n);return o<0&&(o=Kt(r+o,0)),Ut(e,ci(t,3),o)}function qi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=hs(n),i=n<0?Kt(r+i,0):bn(i,r-1)),Ut(e,ci(t,3),i,!0)}function Hi(e){return(null==e?0:e.length)?vr(e,1):[]}function Yi(e){return e&&e.length?e[0]:o}var Gi=Qr((function(e){var t=Lt(e,yo);return t.length&&t[0]===e[0]?Tr(t):[]})),Ki=Qr((function(e){var t=Qi(e),n=Lt(e,yo);return t===Qi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Tr(n,ci(t,2)):[]})),$i=Qr((function(e){var t=Qi(e),n=Lt(e,yo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Tr(n,o,t):[]}));function Qi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Xi=Qr(Ji);function Ji(e,t){return e&&e.length&&t&&t.length?Yr(e,t):e}var Zi=ri((function(e,t){var n=null==e?0:e.length,r=ar(e,t);return Gr(e,Lt(t,(function(e){return bi(e,n)?+e:e})).sort(Eo)),r}));function ea(e){return null==e?e:Sn.call(e)}var ta=Qr((function(e){return uo(vr(e,1,Ga,!0))})),na=Qr((function(e){var t=Qi(e);return Ga(t)&&(t=o),uo(vr(e,1,Ga,!0),ci(t,2))})),ra=Qr((function(e){var t=Qi(e);return t="function"==typeof t?t:o,uo(vr(e,1,Ga,!0),o,t)}));function oa(e){if(!e||!e.length)return[];var t=0;return e=Pt(e,(function(e){if(Ga(e))return t=Kt(e.length,t),!0})),Xt(t,(function(t){return Lt(e,Gt(t))}))}function ia(e,t){if(!e||!e.length)return[];var n=oa(e);return null==t?n:Lt(n,(function(e){return Et(t,o,e)}))}var aa=Qr((function(e,t){return Ga(e)?dr(e,t):[]})),sa=Qr((function(e){return go(Pt(e,Ga))})),la=Qr((function(e){var t=Qi(e);return Ga(t)&&(t=o),go(Pt(e,Ga),ci(t,2))})),ca=Qr((function(e){var t=Qi(e);return t="function"==typeof t?t:o,go(Pt(e,Ga),o,t)})),ua=Qr(oa);var da=Qr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,ia(e,n)}));function fa(e){var t=Bn(e);return t.__chain__=!0,t}function pa(e,t){return t(e)}var ha=ri((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return ar(t,e)};return!(t>1||this.__actions__.length)&&r instanceof qn&&bi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:pa,args:[i],thisArg:o}),new Wn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));var ma=Po((function(e,t,n){Le.call(e,n)?++e[n]:ir(e,n,1)}));var ga=zo(Wi),va=zo(qi);function ya(e,t){return(qa(e)?Tt:fr)(e,ci(t,3))}function ba(e,t){return(qa(e)?It:pr)(e,ci(t,3))}var wa=Po((function(e,t,n){Le.call(e,n)?e[n].push(t):ir(e,n,[t])}));var xa=Qr((function(e,t,r){var o=-1,i="function"==typeof t,a=Ya(e)?n(e.length):[];return fr(e,(function(e){a[++o]=i?Et(t,e,r):Ir(e,t,r)})),a})),Aa=Po((function(e,t,n){ir(e,n,t)}));function Sa(e,t){return(qa(e)?Lt:zr)(e,ci(t,3))}var _a=Po((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var ka=Qr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&wi(e,t[0],t[1])?t=[]:n>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),qr(e,vr(t,1),[])})),Ca=ot||function(){return mt.Date.now()};function Ea(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Jo(e,d,o,o,o,o,t)}function Oa(e,t){var n;if("function"!=typeof t)throw new Te(i);return e=hs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Ta=Qr((function(e,t,n){var r=1;if(n.length){var o=dn(n,li(Ta));r|=c}return Jo(e,r,t,n,o)})),Ia=Qr((function(e,t,n){var r=3;if(n.length){var o=dn(n,li(Ia));r|=c}return Jo(t,r,e,n,o)}));function Ra(e,t,n){var r,a,s,l,c,u,d=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new Te(i);function m(t){var n=r,i=a;return r=a=o,d=t,l=e.apply(i,n)}function g(e){var n=e-u;return u===o||n>=t||n<0||p&&e-d>=s}function v(){var e=Ca();if(g(e))return y(e);c=Ri(v,function(e){var n=t-(e-u);return p?bn(n,s-(e-d)):n}(e))}function y(e){return c=o,h&&r?m(e):(r=a=o,l)}function b(){var e=Ca(),n=g(e);if(r=arguments,a=this,u=e,n){if(c===o)return function(e){return d=e,c=Ri(v,t),f?m(e):l}(u);if(p)return So(c),c=Ri(v,t),m(u)}return c===o&&(c=Ri(v,t)),l}return t=gs(t)||0,es(n)&&(f=!!n.leading,s=(p="maxWait"in n)?Kt(gs(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),b.cancel=function(){c!==o&&So(c),d=0,r=u=a=c=o},b.flush=function(){return c===o?l:y(Ca())},b}var Pa=Qr((function(e,t){return ur(e,1,t)})),Ma=Qr((function(e,t,n){return ur(e,gs(t)||0,n)}));function Da(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Te(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Da.Cache||Gn),n}function La(e){if("function"!=typeof e)throw new Te(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Da.Cache=Gn;var ja=xo((function(e,t){var n=(t=1==t.length&&qa(t[0])?Lt(t[0],Zt(ci())):Lt(vr(t,1),Zt(ci()))).length;return Qr((function(r){for(var o=-1,i=bn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return Et(e,this,r)}))})),Na=Qr((function(e,t){var n=dn(t,li(Na));return Jo(e,c,o,t,n)})),Fa=Qr((function(e,t){var n=dn(t,li(Fa));return Jo(e,u,o,t,n)})),za=ri((function(e,t){return Jo(e,f,o,o,o,t)}));function Ba(e,t){return e===t||e!==e&&t!==t}var Va=Go(Cr),Ua=Go((function(e,t){return e>=t})),Wa=Rr(function(){return arguments}())?Rr:function(e){return ts(e)&&Le.call(e,"callee")&&!Ke.call(e,"callee")},qa=n.isArray,Ha=xt?Zt(xt):function(e){return ts(e)&&kr(e)==D};function Ya(e){return null!=e&&Za(e.length)&&!Xa(e)}function Ga(e){return ts(e)&&Ya(e)}var Ka=vt||gl,$a=At?Zt(At):function(e){return ts(e)&&kr(e)==x};function Qa(e){if(!ts(e))return!1;var t=kr(e);return t==A||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!os(e)}function Xa(e){if(!es(e))return!1;var t=kr(e);return t==S||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ja(e){return"number"==typeof e&&e==hs(e)}function Za(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ts(e){return null!=e&&"object"==typeof e}var ns=St?Zt(St):function(e){return ts(e)&&mi(e)==k};function rs(e){return"number"==typeof e||ts(e)&&kr(e)==C}function os(e){if(!ts(e)||kr(e)!=E)return!1;var t=Ye(e);if(null===t)return!0;var n=Le.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&De.call(n)==ze}var is=_t?Zt(_t):function(e){return ts(e)&&kr(e)==T};var as=kt?Zt(kt):function(e){return ts(e)&&mi(e)==I};function ss(e){return"string"==typeof e||!qa(e)&&ts(e)&&kr(e)==R}function ls(e){return"symbol"==typeof e||ts(e)&&kr(e)==P}var cs=Ct?Zt(Ct):function(e){return ts(e)&&Za(e.length)&&!!lt[kr(e)]};var us=Go(Fr),ds=Go((function(e,t){return e<=t}));function fs(e){if(!e)return[];if(Ya(e))return ss(e)?mn(e):Io(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=mi(e);return(t==k?cn:t==I?fn:Bs)(e)}function ps(e){return e?(e=gs(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function hs(e){var t=ps(e),n=t%1;return t===t?n?t-n:t:0}function ms(e){return e?sr(hs(e),0,g):0}function gs(e){if("number"==typeof e)return e;if(ls(e))return m;if(es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Jt(e);var n=ve.test(e);return n||be.test(e)?ft(e.slice(2),n?2:8):ge.test(e)?m:+e}function vs(e){return Ro(e,Ps(e))}function ys(e){return null==e?"":co(e)}var bs=Mo((function(e,t){if(_i(t)||Ya(t))Ro(t,Rs(t),e);else for(var n in t)Le.call(t,n)&&tr(e,n,t[n])})),ws=Mo((function(e,t){Ro(t,Ps(t),e)})),xs=Mo((function(e,t,n,r){Ro(t,Ps(t),e,r)})),As=Mo((function(e,t,n,r){Ro(t,Rs(t),e,r)})),Ss=ri(ar);var _s=Qr((function(e,t){e=Ce(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&wi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=Ps(a),l=-1,c=s.length;++l<c;){var u=s[l],d=e[u];(d===o||Ba(d,Pe[u])&&!Le.call(e,u))&&(e[u]=a[u])}return e})),ks=Qr((function(e){return e.push(o,ei),Et(Ds,o,e)}));function Cs(e,t,n){var r=null==e?o:Sr(e,t);return r===o?n:r}function Es(e,t){return null!=e&&gi(e,t,Or)}var Os=Uo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),e[t]=n}),el(rl)),Ts=Uo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),Le.call(e,t)?e[t].push(n):e[t]=[n]}),ci),Is=Qr(Ir);function Rs(e){return Ya(e)?Qn(e):jr(e)}function Ps(e){return Ya(e)?Qn(e,!0):Nr(e)}var Ms=Mo((function(e,t,n){Ur(e,t,n)})),Ds=Mo((function(e,t,n,r){Ur(e,t,n,r)})),Ls=ri((function(e,t){var n={};if(null==e)return n;var r=!1;t=Lt(t,(function(t){return t=wo(t,e),r||(r=t.length>1),t})),Ro(e,ii(e),n),r&&(n=lr(n,7,ti));for(var o=t.length;o--;)fo(n,t[o]);return n}));var js=ri((function(e,t){return null==e?{}:function(e,t){return Hr(e,t,(function(t,n){return Es(e,n)}))}(e,t)}));function Ns(e,t){if(null==e)return{};var n=Lt(ii(e),(function(e){return[e]}));return t=ci(t),Hr(e,n,(function(e,n){return t(e,n[0])}))}var Fs=Xo(Rs),zs=Xo(Ps);function Bs(e){return null==e?[]:en(e,Rs(e))}var Vs=No((function(e,t,n){return t=t.toLowerCase(),e+(n?Us(t):t)}));function Us(e){return Qs(ys(e).toLowerCase())}function Ws(e){return(e=ys(e))&&e.replace(xe,on).replace(tt,"")}var qs=No((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Hs=No((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ys=jo("toLowerCase");var Gs=No((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ks=No((function(e,t,n){return e+(n?" ":"")+Qs(t)}));var $s=No((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Qs=jo("toUpperCase");function Xs(e,t,n){return e=ys(e),(t=n?o:t)===o?function(e){return it.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var Js=Qr((function(e,t){try{return Et(e,o,t)}catch(n){return Qa(n)?n:new se(n)}})),Zs=ri((function(e,t){return Tt(t,(function(t){t=Ni(t),ir(e,t,Ta(e[t],e))})),e}));function el(e){return function(){return e}}var tl=Bo(),nl=Bo(!0);function rl(e){return e}function ol(e){return Lr("function"==typeof e?e:lr(e,1))}var il=Qr((function(e,t){return function(n){return Ir(n,e,t)}})),al=Qr((function(e,t){return function(n){return Ir(e,n,t)}}));function sl(e,t,n){var r=Rs(t),o=Ar(t,r);null!=n||es(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Ar(t,Rs(t)));var i=!(es(n)&&"chain"in n)||!!n.chain,a=Xa(e);return Tt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Io(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,jt([this.value()],arguments))})})),e}function ll(){}var cl=qo(Lt),ul=qo(Rt),dl=qo(zt);function fl(e){return xi(e)?Gt(Ni(e)):function(e){return function(t){return Sr(t,e)}}(e)}var pl=Yo(),hl=Yo(!0);function ml(){return[]}function gl(){return!1}var vl=Wo((function(e,t){return e+t}),0),yl=$o("ceil"),bl=Wo((function(e,t){return e/t}),1),wl=$o("floor");var xl=Wo((function(e,t){return e*t}),1),Al=$o("round"),Sl=Wo((function(e,t){return e-t}),0);return Bn.after=function(e,t){if("function"!=typeof t)throw new Te(i);return e=hs(e),function(){if(--e<1)return t.apply(this,arguments)}},Bn.ary=Ea,Bn.assign=bs,Bn.assignIn=ws,Bn.assignInWith=xs,Bn.assignWith=As,Bn.at=Ss,Bn.before=Oa,Bn.bind=Ta,Bn.bindAll=Zs,Bn.bindKey=Ia,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qa(e)?e:[e]},Bn.chain=fa,Bn.chunk=function(e,t,r){t=(r?wi(e,t,r):t===o)?1:Kt(hs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,l=n(pt(i/t));a<i;)l[s++]=ro(e,a,a+=t);return l},Bn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Bn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],o=e;o--;)t[o-1]=arguments[o];return jt(qa(r)?Io(r):[r],vr(t,1))},Bn.cond=function(e){var t=null==e?0:e.length,n=ci();return e=t?Lt(e,(function(e){if("function"!=typeof e[1])throw new Te(i);return[n(e[0]),e[1]]})):[],Qr((function(n){for(var r=-1;++r<t;){var o=e[r];if(Et(o[0],this,n))return Et(o[1],this,n)}}))},Bn.conforms=function(e){return function(e){var t=Rs(e);return function(n){return cr(n,e,t)}}(lr(e,1))},Bn.constant=el,Bn.countBy=ma,Bn.create=function(e,t){var n=Vn(e);return null==t?n:or(n,t)},Bn.curry=function e(t,n,r){var i=Jo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Bn.curryRight=function e(t,n,r){var i=Jo(t,l,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Bn.debounce=Ra,Bn.defaults=_s,Bn.defaultsDeep=ks,Bn.defer=Pa,Bn.delay=Ma,Bn.difference=Bi,Bn.differenceBy=Vi,Bn.differenceWith=Ui,Bn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ro(e,(t=n||t===o?1:hs(t))<0?0:t,r):[]},Bn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ro(e,0,(t=r-(t=n||t===o?1:hs(t)))<0?0:t):[]},Bn.dropRightWhile=function(e,t){return e&&e.length?ho(e,ci(t,3),!0,!0):[]},Bn.dropWhile=function(e,t){return e&&e.length?ho(e,ci(t,3),!0):[]},Bn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&wi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=hs(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:hs(r))<0&&(r+=i),r=n>r?0:ms(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Bn.filter=function(e,t){return(qa(e)?Pt:gr)(e,ci(t,3))},Bn.flatMap=function(e,t){return vr(Sa(e,t),1)},Bn.flatMapDeep=function(e,t){return vr(Sa(e,t),p)},Bn.flatMapDepth=function(e,t,n){return n=n===o?1:hs(n),vr(Sa(e,t),n)},Bn.flatten=Hi,Bn.flattenDeep=function(e){return(null==e?0:e.length)?vr(e,p):[]},Bn.flattenDepth=function(e,t){return(null==e?0:e.length)?vr(e,t=t===o?1:hs(t)):[]},Bn.flip=function(e){return Jo(e,512)},Bn.flow=tl,Bn.flowRight=nl,Bn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Bn.functions=function(e){return null==e?[]:Ar(e,Rs(e))},Bn.functionsIn=function(e){return null==e?[]:Ar(e,Ps(e))},Bn.groupBy=wa,Bn.initial=function(e){return(null==e?0:e.length)?ro(e,0,-1):[]},Bn.intersection=Gi,Bn.intersectionBy=Ki,Bn.intersectionWith=$i,Bn.invert=Os,Bn.invertBy=Ts,Bn.invokeMap=xa,Bn.iteratee=ol,Bn.keyBy=Aa,Bn.keys=Rs,Bn.keysIn=Ps,Bn.map=Sa,Bn.mapKeys=function(e,t){var n={};return t=ci(t,3),wr(e,(function(e,r,o){ir(n,t(e,r,o),e)})),n},Bn.mapValues=function(e,t){var n={};return t=ci(t,3),wr(e,(function(e,r,o){ir(n,r,t(e,r,o))})),n},Bn.matches=function(e){return Br(lr(e,1))},Bn.matchesProperty=function(e,t){return Vr(e,lr(t,1))},Bn.memoize=Da,Bn.merge=Ms,Bn.mergeWith=Ds,Bn.method=il,Bn.methodOf=al,Bn.mixin=sl,Bn.negate=La,Bn.nthArg=function(e){return e=hs(e),Qr((function(t){return Wr(t,e)}))},Bn.omit=Ls,Bn.omitBy=function(e,t){return Ns(e,La(ci(t)))},Bn.once=function(e){return Oa(2,e)},Bn.orderBy=function(e,t,n,r){return null==e?[]:(qa(t)||(t=null==t?[]:[t]),qa(n=r?o:n)||(n=null==n?[]:[n]),qr(e,t,n))},Bn.over=cl,Bn.overArgs=ja,Bn.overEvery=ul,Bn.overSome=dl,Bn.partial=Na,Bn.partialRight=Fa,Bn.partition=_a,Bn.pick=js,Bn.pickBy=Ns,Bn.property=fl,Bn.propertyOf=function(e){return function(t){return null==e?o:Sr(e,t)}},Bn.pull=Xi,Bn.pullAll=Ji,Bn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Yr(e,t,ci(n,2)):e},Bn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Yr(e,t,o,n):e},Bn.pullAt=Zi,Bn.range=pl,Bn.rangeRight=hl,Bn.rearg=za,Bn.reject=function(e,t){return(qa(e)?Pt:gr)(e,La(ci(t,3)))},Bn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ci(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Gr(e,o),n},Bn.rest=function(e,t){if("function"!=typeof e)throw new Te(i);return Qr(e,t=t===o?t:hs(t))},Bn.reverse=ea,Bn.sampleSize=function(e,t,n){return t=(n?wi(e,t,n):t===o)?1:hs(t),(qa(e)?Jn:Jr)(e,t)},Bn.set=function(e,t,n){return null==e?e:Zr(e,t,n)},Bn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Zr(e,t,n,r)},Bn.shuffle=function(e){return(qa(e)?Zn:no)(e)},Bn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&wi(e,t,n)?(t=0,n=r):(t=null==t?0:hs(t),n=n===o?r:hs(n)),ro(e,t,n)):[]},Bn.sortBy=ka,Bn.sortedUniq=function(e){return e&&e.length?so(e):[]},Bn.sortedUniqBy=function(e,t){return e&&e.length?so(e,ci(t,2)):[]},Bn.split=function(e,t,n){return n&&"number"!=typeof n&&wi(e,t,n)&&(t=n=o),(n=n===o?g:n>>>0)?(e=ys(e))&&("string"==typeof t||null!=t&&!is(t))&&!(t=co(t))&&ln(e)?Ao(mn(e),0,n):e.split(t,n):[]},Bn.spread=function(e,t){if("function"!=typeof e)throw new Te(i);return t=null==t?0:Kt(hs(t),0),Qr((function(n){var r=n[t],o=Ao(n,0,t);return r&&jt(o,r),Et(e,this,o)}))},Bn.tail=function(e){var t=null==e?0:e.length;return t?ro(e,1,t):[]},Bn.take=function(e,t,n){return e&&e.length?ro(e,0,(t=n||t===o?1:hs(t))<0?0:t):[]},Bn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ro(e,(t=r-(t=n||t===o?1:hs(t)))<0?0:t,r):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?ho(e,ci(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?ho(e,ci(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Te(i);return es(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ra(e,t,{leading:r,maxWait:t,trailing:o})},Bn.thru=pa,Bn.toArray=fs,Bn.toPairs=Fs,Bn.toPairsIn=zs,Bn.toPath=function(e){return qa(e)?Lt(e,Ni):ls(e)?[e]:Io(ji(ys(e)))},Bn.toPlainObject=vs,Bn.transform=function(e,t,n){var r=qa(e),o=r||Ka(e)||cs(e);if(t=ci(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:es(e)&&Xa(i)?Vn(Ye(e)):{}}return(o?Tt:wr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Bn.unary=function(e){return Ea(e,1)},Bn.union=ta,Bn.unionBy=na,Bn.unionWith=ra,Bn.uniq=function(e){return e&&e.length?uo(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?uo(e,ci(t,2)):[]},Bn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?uo(e,o,t):[]},Bn.unset=function(e,t){return null==e||fo(e,t)},Bn.unzip=oa,Bn.unzipWith=ia,Bn.update=function(e,t,n){return null==e?e:po(e,t,bo(n))},Bn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:po(e,t,bo(n),r)},Bn.values=Bs,Bn.valuesIn=function(e){return null==e?[]:en(e,Ps(e))},Bn.without=aa,Bn.words=Xs,Bn.wrap=function(e,t){return Na(bo(t),e)},Bn.xor=sa,Bn.xorBy=la,Bn.xorWith=ca,Bn.zip=ua,Bn.zipObject=function(e,t){return vo(e||[],t||[],tr)},Bn.zipObjectDeep=function(e,t){return vo(e||[],t||[],Zr)},Bn.zipWith=da,Bn.entries=Fs,Bn.entriesIn=zs,Bn.extend=ws,Bn.extendWith=xs,sl(Bn,Bn),Bn.add=vl,Bn.attempt=Js,Bn.camelCase=Vs,Bn.capitalize=Us,Bn.ceil=yl,Bn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=gs(n))===n?n:0),t!==o&&(t=(t=gs(t))===t?t:0),sr(gs(e),t,n)},Bn.clone=function(e){return lr(e,4)},Bn.cloneDeep=function(e){return lr(e,5)},Bn.cloneDeepWith=function(e,t){return lr(e,5,t="function"==typeof t?t:o)},Bn.cloneWith=function(e,t){return lr(e,4,t="function"==typeof t?t:o)},Bn.conformsTo=function(e,t){return null==t||cr(e,t,Rs(t))},Bn.deburr=Ws,Bn.defaultTo=function(e,t){return null==e||e!==e?t:e},Bn.divide=bl,Bn.endsWith=function(e,t,n){e=ys(e),t=co(t);var r=e.length,i=n=n===o?r:sr(hs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Bn.eq=Ba,Bn.escape=function(e){return(e=ys(e))&&X.test(e)?e.replace($,an):e},Bn.escapeRegExp=function(e){return(e=ys(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},Bn.every=function(e,t,n){var r=qa(e)?Rt:hr;return n&&wi(e,t,n)&&(t=o),r(e,ci(t,3))},Bn.find=ga,Bn.findIndex=Wi,Bn.findKey=function(e,t){return Vt(e,ci(t,3),wr)},Bn.findLast=va,Bn.findLastIndex=qi,Bn.findLastKey=function(e,t){return Vt(e,ci(t,3),xr)},Bn.floor=wl,Bn.forEach=ya,Bn.forEachRight=ba,Bn.forIn=function(e,t){return null==e?e:yr(e,ci(t,3),Ps)},Bn.forInRight=function(e,t){return null==e?e:br(e,ci(t,3),Ps)},Bn.forOwn=function(e,t){return e&&wr(e,ci(t,3))},Bn.forOwnRight=function(e,t){return e&&xr(e,ci(t,3))},Bn.get=Cs,Bn.gt=Va,Bn.gte=Ua,Bn.has=function(e,t){return null!=e&&gi(e,t,Er)},Bn.hasIn=Es,Bn.head=Yi,Bn.identity=rl,Bn.includes=function(e,t,n,r){e=Ya(e)?e:Bs(e),n=n&&!r?hs(n):0;var o=e.length;return n<0&&(n=Kt(o+n,0)),ss(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Wt(e,t,n)>-1},Bn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:hs(n);return o<0&&(o=Kt(r+o,0)),Wt(e,t,o)},Bn.inRange=function(e,t,n){return t=ps(t),n===o?(n=t,t=0):n=ps(n),function(e,t,n){return e>=bn(t,n)&&e<Kt(t,n)}(e=gs(e),t,n)},Bn.invoke=Is,Bn.isArguments=Wa,Bn.isArray=qa,Bn.isArrayBuffer=Ha,Bn.isArrayLike=Ya,Bn.isArrayLikeObject=Ga,Bn.isBoolean=function(e){return!0===e||!1===e||ts(e)&&kr(e)==w},Bn.isBuffer=Ka,Bn.isDate=$a,Bn.isElement=function(e){return ts(e)&&1===e.nodeType&&!os(e)},Bn.isEmpty=function(e){if(null==e)return!0;if(Ya(e)&&(qa(e)||"string"==typeof e||"function"==typeof e.splice||Ka(e)||cs(e)||Wa(e)))return!e.length;var t=mi(e);if(t==k||t==I)return!e.size;if(_i(e))return!jr(e).length;for(var n in e)if(Le.call(e,n))return!1;return!0},Bn.isEqual=function(e,t){return Pr(e,t)},Bn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Pr(e,t,o,n):!!r},Bn.isError=Qa,Bn.isFinite=function(e){return"number"==typeof e&&bt(e)},Bn.isFunction=Xa,Bn.isInteger=Ja,Bn.isLength=Za,Bn.isMap=ns,Bn.isMatch=function(e,t){return e===t||Mr(e,t,di(t))},Bn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Mr(e,t,di(t),n)},Bn.isNaN=function(e){return rs(e)&&e!=+e},Bn.isNative=function(e){if(Si(e))throw new se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dr(e)},Bn.isNil=function(e){return null==e},Bn.isNull=function(e){return null===e},Bn.isNumber=rs,Bn.isObject=es,Bn.isObjectLike=ts,Bn.isPlainObject=os,Bn.isRegExp=is,Bn.isSafeInteger=function(e){return Ja(e)&&e>=-9007199254740991&&e<=h},Bn.isSet=as,Bn.isString=ss,Bn.isSymbol=ls,Bn.isTypedArray=cs,Bn.isUndefined=function(e){return e===o},Bn.isWeakMap=function(e){return ts(e)&&mi(e)==M},Bn.isWeakSet=function(e){return ts(e)&&"[object WeakSet]"==kr(e)},Bn.join=function(e,t){return null==e?"":wt.call(e,t)},Bn.kebabCase=qs,Bn.last=Qi,Bn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=hs(n))<0?Kt(r+i,0):bn(i,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Ut(e,Ht,i,!0)},Bn.lowerCase=Hs,Bn.lowerFirst=Ys,Bn.lt=us,Bn.lte=ds,Bn.max=function(e){return e&&e.length?mr(e,rl,Cr):o},Bn.maxBy=function(e,t){return e&&e.length?mr(e,ci(t,2),Cr):o},Bn.mean=function(e){return Yt(e,rl)},Bn.meanBy=function(e,t){return Yt(e,ci(t,2))},Bn.min=function(e){return e&&e.length?mr(e,rl,Fr):o},Bn.minBy=function(e,t){return e&&e.length?mr(e,ci(t,2),Fr):o},Bn.stubArray=ml,Bn.stubFalse=gl,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=xl,Bn.nth=function(e,t){return e&&e.length?Wr(e,hs(t)):o},Bn.noConflict=function(){return mt._===this&&(mt._=Be),this},Bn.noop=ll,Bn.now=Ca,Bn.pad=function(e,t,n){e=ys(e);var r=(t=hs(t))?hn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Ho(ht(o),n)+e+Ho(pt(o),n)},Bn.padEnd=function(e,t,n){e=ys(e);var r=(t=hs(t))?hn(e):0;return t&&r<t?e+Ho(t-r,n):e},Bn.padStart=function(e,t,n){e=ys(e);var r=(t=hs(t))?hn(e):0;return t&&r<t?Ho(t-r,n)+e:e},Bn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),xn(ys(e).replace(ae,""),t||0)},Bn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&wi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=ps(e),t===o?(t=e,e=0):t=ps(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=An();return bn(e+i*(t-e+dt("1e-"+((i+"").length-1))),t)}return Kr(e,t)},Bn.reduce=function(e,t,n){var r=qa(e)?Nt:$t,o=arguments.length<3;return r(e,ci(t,4),n,o,fr)},Bn.reduceRight=function(e,t,n){var r=qa(e)?Ft:$t,o=arguments.length<3;return r(e,ci(t,4),n,o,pr)},Bn.repeat=function(e,t,n){return t=(n?wi(e,t,n):t===o)?1:hs(t),$r(ys(e),t)},Bn.replace=function(){var e=arguments,t=ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(e,t,n){var r=-1,i=(t=wo(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Ni(t[r])];a===o&&(r=i,a=n),e=Xa(a)?a.call(e):a}return e},Bn.round=Al,Bn.runInContext=e,Bn.sample=function(e){return(qa(e)?Xn:Xr)(e)},Bn.size=function(e){if(null==e)return 0;if(Ya(e))return ss(e)?hn(e):e.length;var t=mi(e);return t==k||t==I?e.size:jr(e).length},Bn.snakeCase=Gs,Bn.some=function(e,t,n){var r=qa(e)?zt:oo;return n&&wi(e,t,n)&&(t=o),r(e,ci(t,3))},Bn.sortedIndex=function(e,t){return io(e,t)},Bn.sortedIndexBy=function(e,t,n){return ao(e,t,ci(n,2))},Bn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=io(e,t);if(r<n&&Ba(e[r],t))return r}return-1},Bn.sortedLastIndex=function(e,t){return io(e,t,!0)},Bn.sortedLastIndexBy=function(e,t,n){return ao(e,t,ci(n,2),!0)},Bn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=io(e,t,!0)-1;if(Ba(e[n],t))return n}return-1},Bn.startCase=Ks,Bn.startsWith=function(e,t,n){return e=ys(e),n=null==n?0:sr(hs(n),0,e.length),t=co(t),e.slice(n,n+t.length)==t},Bn.subtract=Sl,Bn.sum=function(e){return e&&e.length?Qt(e,rl):0},Bn.sumBy=function(e,t){return e&&e.length?Qt(e,ci(t,2)):0},Bn.template=function(e,t,n){var r=Bn.templateSettings;n&&wi(e,t,n)&&(t=o),e=ys(e),t=xs({},t,r,Zo);var i,a,s=xs({},t.imports,r.imports,Zo),l=Rs(s),c=en(s,l),u=0,d=t.interpolate||Ae,f="__p += '",p=Ee((t.escape||Ae).source+"|"+d.source+"|"+(d===ee?he:Ae).source+"|"+(t.evaluate||Ae).source+"|$","g"),h="//# sourceURL="+(Le.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++st+"]")+"\n";e.replace(p,(function(t,n,r,o,s,l){return r||(r=o),f+=e.slice(u,l).replace(Se,sn),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),f+="';\n";var m=Le.call(t,"variable")&&t.variable;if(m){if(fe.test(m))throw new se("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(a?f.replace(H,""):f).replace(Y,"$1").replace(G,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var g=Js((function(){return _e(l,h+"return "+f).apply(o,c)}));if(g.source=f,Qa(g))throw g;return g},Bn.times=function(e,t){if((e=hs(e))<1||e>h)return[];var n=g,r=bn(e,g);t=ci(t),e-=g;for(var o=Xt(r,t);++n<e;)t(n);return o},Bn.toFinite=ps,Bn.toInteger=hs,Bn.toLength=ms,Bn.toLower=function(e){return ys(e).toLowerCase()},Bn.toNumber=gs,Bn.toSafeInteger=function(e){return e?sr(hs(e),-9007199254740991,h):0===e?e:0},Bn.toString=ys,Bn.toUpper=function(e){return ys(e).toUpperCase()},Bn.trim=function(e,t,n){if((e=ys(e))&&(n||t===o))return Jt(e);if(!e||!(t=co(t)))return e;var r=mn(e),i=mn(t);return Ao(r,nn(r,i),rn(r,i)+1).join("")},Bn.trimEnd=function(e,t,n){if((e=ys(e))&&(n||t===o))return e.slice(0,gn(e)+1);if(!e||!(t=co(t)))return e;var r=mn(e);return Ao(r,0,rn(r,mn(t))+1).join("")},Bn.trimStart=function(e,t,n){if((e=ys(e))&&(n||t===o))return e.replace(ae,"");if(!e||!(t=co(t)))return e;var r=mn(e);return Ao(r,nn(r,mn(t))).join("")},Bn.truncate=function(e,t){var n=30,r="...";if(es(t)){var i="separator"in t?t.separator:i;n="length"in t?hs(t.length):n,r="omission"in t?co(t.omission):r}var a=(e=ys(e)).length;if(ln(e)){var s=mn(e);a=s.length}if(n>=a)return e;var l=n-hn(r);if(l<1)return r;var c=s?Ao(s,0,l).join(""):e.slice(0,l);if(i===o)return c+r;if(s&&(l+=c.length-l),is(i)){if(e.slice(l).search(i)){var u,d=c;for(i.global||(i=Ee(i.source,ys(me.exec(i))+"g")),i.lastIndex=0;u=i.exec(d);)var f=u.index;c=c.slice(0,f===o?l:f)}}else if(e.indexOf(co(i),l)!=l){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+r},Bn.unescape=function(e){return(e=ys(e))&&Q.test(e)?e.replace(K,vn):e},Bn.uniqueId=function(e){var t=++je;return ys(e)+t},Bn.upperCase=$s,Bn.upperFirst=Qs,Bn.each=ya,Bn.eachRight=ba,Bn.first=Yi,sl(Bn,function(){var e={};return wr(Bn,(function(t,n){Le.call(Bn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Bn.VERSION="4.17.21",Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Bn[e].placeholder=Bn})),Tt(["drop","take"],(function(e,t){qn.prototype[e]=function(n){n=n===o?1:Kt(hs(n),0);var r=this.__filtered__&&!t?new qn(this):this.clone();return r.__filtered__?r.__takeCount__=bn(n,r.__takeCount__):r.__views__.push({size:bn(n,g),type:e+(r.__dir__<0?"Right":"")}),r},qn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Tt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;qn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ci(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Tt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");qn.prototype[e]=function(){return this[n](1).value()[0]}})),Tt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");qn.prototype[e]=function(){return this.__filtered__?new qn(this):this[n](1)}})),qn.prototype.compact=function(){return this.filter(rl)},qn.prototype.find=function(e){return this.filter(e).head()},qn.prototype.findLast=function(e){return this.reverse().find(e)},qn.prototype.invokeMap=Qr((function(e,t){return"function"==typeof e?new qn(this):this.map((function(n){return Ir(n,e,t)}))})),qn.prototype.reject=function(e){return this.filter(La(ci(e)))},qn.prototype.slice=function(e,t){e=hs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new qn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=hs(t))<0?n.dropRight(-t):n.take(t-e)),n)},qn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},qn.prototype.toArray=function(){return this.take(g)},wr(qn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Bn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Bn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,l=t instanceof qn,c=s[0],u=l||qa(t),d=function(e){var t=i.apply(Bn,jt([e],s));return r&&f?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var f=this.__chain__,p=!!this.__actions__.length,h=a&&!f,m=l&&!p;if(!a&&u){t=m?t:new qn(this);var g=e.apply(t,s);return g.__actions__.push({func:pa,args:[d],thisArg:o}),new Wn(g,f)}return h&&m?e.apply(this,s):(g=this.thru(d),h?r?g.value()[0]:g.value():g)})})),Tt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ie[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(qa(o)?o:[],e)}return this[n]((function(n){return t.apply(qa(n)?n:[],e)}))}})),wr(qn.prototype,(function(e,t){var n=Bn[t];if(n){var r=n.name+"";Le.call(Rn,r)||(Rn[r]=[]),Rn[r].push({name:t,func:n})}})),Rn[Vo(o,2).name]=[{name:"wrapper",func:o}],qn.prototype.clone=function(){var e=new qn(this.__wrapped__);return e.__actions__=Io(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Io(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Io(this.__views__),e},qn.prototype.reverse=function(){if(this.__filtered__){var e=new qn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},qn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qa(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=bn(t,e+a);break;case"takeRight":e=Kt(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,s=i.end,l=s-a,c=r?s:a-1,u=this.__iteratees__,d=u.length,f=0,p=bn(l,this.__takeCount__);if(!n||!r&&o==l&&p==l)return mo(e,this.__actions__);var h=[];e:for(;l--&&f<p;){for(var m=-1,g=e[c+=t];++m<d;){var v=u[m],y=v.iteratee,b=v.type,w=y(g);if(2==b)g=w;else if(!w){if(1==b)continue e;break e}}h[f++]=g}return h},Bn.prototype.at=ha,Bn.prototype.chain=function(){return fa(this)},Bn.prototype.commit=function(){return new Wn(this.value(),this.__chain__)},Bn.prototype.next=function(){this.__values__===o&&(this.__values__=fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Bn.prototype.plant=function(e){for(var t,n=this;n instanceof Un;){var r=zi(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Bn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof qn){var t=e;return this.__actions__.length&&(t=new qn(this)),(t=t.reverse()).__actions__.push({func:pa,args:[ea],thisArg:o}),new Wn(t,this.__chain__)}return this.thru(ea)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return mo(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,Xe&&(Bn.prototype[Xe]=function(){return this}),Bn}();mt._=yn,(r=function(){return yn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},7626:e=>{e.exports=function(){}},6359:(e,t,n)=>{var r=n(6004),o=n(6034),i=n(2737),a=n(7825),s=o((function(e){return i(r(e,1,a,!0))}));e.exports=s},6512:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(e,o){for(var i,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))n.call(i,c)&&(s[c]=i[c]);if(t){a=t(i);for(var u=0;u<a.length;u++)r.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s}},5371:e=>{e.exports={nomod:{escape:"\x1b",space:" "},ctrl:{" ":"\0",a:"\x01",b:"\x02",c:"\x03",d:"\x04",e:"\x05",f:"\x06",g:"\x07",h:"\b",i:"\t",j:"\n",k:"\v",m:"\f",n:"\r",l:"\x0e",o:"\x0f",p:"\x10",q:"\x11",r:"\x12",s:"\x13",t:"\x14",u:"\x15",v:"\x16",w:"\x17",x:"\x18",y:"\x19",z:"\x1a","[":"\x1b","\\":"\x1c","]":"\x1d","^":"\x1e",_:"\x1f",space:"\0"}}},9631:(e,t,n)=>{"use strict";var r=n(5371);e.exports=function(e){var t=e.trim().toLowerCase();!function(e){if(!/^(ctrl-|shift-|alt-|meta-){0,4}\w+$/.test(e))throw new Error('The string to parse needs to be of the format "c", "ctrl-c", "shift-ctrl-c".')}(t);var n,o={name:void 0,ctrl:!1,meta:!1,shift:!1,alt:!1,sequence:void 0},i=t.split("-");for(o.name=i.pop();n=i.pop();)o[n]=!0;return o.sequence=o.ctrl?r.ctrl[o.name]||o.name:r.nomod[o.name]||o.name,o.shift&&o.sequence&&1===o.sequence.length&&(o.sequence=o.sequence.toUpperCase()),o}},8074:(e,t,n)=>{"use strict";var r=n(441);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5360:(e,t,n)=>{e.exports=n(8074)()},441:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},8976:e=>{"use strict";function t(e){this._maxSize=e,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(e){return this._values[e]},t.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,o=/^\d/,i=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,s=new t(512),l=new t(512),c=new t(512);function u(e){return s.get(e)||s.set(e,d(e).map((function(e){return e.replace(a,"$2")})))}function d(e){return e.match(n)||[""]}function f(e){return"string"===typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function p(e){return!f(e)&&(function(e){return e.match(o)&&!e.match(r)}(e)||function(e){return i.test(e)}(e))}e.exports={Cache:t,split:d,normalizePath:u,setter:function(e){var t=u(e);return l.get(e)||l.set(e,(function(e,n){for(var r=0,o=t.length,i=e;r<o-1;){var a=t[r];if("__proto__"===a||"constructor"===a||"prototype"===a)return e;i=i[t[r++]]}i[t[r]]=n}))},getter:function(e,t){var n=u(e);return c.get(e)||c.set(e,(function(e){for(var r=0,o=n.length;r<o;){if(null==e&&t)return;e=e[n[r++]]}return e}))},join:function(e){return e.reduce((function(e,t){return e+(f(t)||r.test(t)?"["+t+"]":(e?".":"")+t)}),"")},forEach:function(e,t,n){!function(e,t,n){var r,o,i,a,s=e.length;for(o=0;o<s;o++)(r=e[o])&&(p(r)&&(r='"'+r+'"'),i=!(a=f(r))&&/^\d+$/.test(r),t.call(n,r,a,i,o,e))}(Array.isArray(e)?e:d(e),t,n)}}},7099:(e,t,n)=>{"use strict";var r,o=n(2176),i=(r=o)&&"object"===typeof r&&"default"in r?r.default:r,a=n(5196),s=new a,l=s.getBrowser(),c=s.getCPU(),u=s.getDevice(),d=s.getEngine(),f=s.getOS(),p=s.getUA(),h=function(e){return s.setUA(e)},m=function(e){if(e){var t=new a(e);return{UA:t,browser:t.getBrowser(),cpu:t.getCPU(),device:t.getDevice(),engine:t.getEngine(),os:t.getOS(),ua:t.getUA(),setUserAgent:function(e){return t.setUA(e)}}}console.error("No userAgent string was provided")},g=Object.freeze({ClientUAInstance:s,browser:l,cpu:c,device:u,engine:d,os:f,ua:p,setUa:h,parseUserAgent:m});function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){return y="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(){return x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(this,arguments)}function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},A(e)}function S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(e,t)}function _(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(l){s=!0,o=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var O="mobile",T="tablet",I="smarttv",R="console",P="wearable",M="embedded",D=void 0,L={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},j={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},N={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},F=function(e){return e||(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none")},z=function(){return!("undefined"===typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},B=function(e){var t=z();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)},V=function(e,t,n,r){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{vendor:F(t.vendor),model:F(t.model),os:F(n.name),osVersion:F(n.version),ua:F(r)})};var U=function(e){return e.type===O},W=function(e){return e.type===T},q=function(e){var t=e.type;return t===O||t===T},H=function(e){return e.type===I},Y=function(e){return e.type===D},G=function(e){return e.type===P},K=function(e){return e.type===R},$=function(e){return e.type===M},Q=function(e){var t=e.vendor;return F(t)},X=function(e){var t=e.model;return F(t)},J=function(e){var t=e.type;return F(t,"browser")},Z=function(e){return e.name===j.Android},ee=function(e){return e.name===j.Windows},te=function(e){return e.name===j.MAC_OS},ne=function(e){return e.name===j.WindowsPhone},re=function(e){return e.name===j.IOS},oe=function(e){var t=e.version;return F(t)},ie=function(e){var t=e.name;return F(t)},ae=function(e){return e.name===L.Chrome},se=function(e){return e.name===L.Firefox},le=function(e){return e.name===L.Chromium},ce=function(e){return e.name===L.Edge},ue=function(e){return e.name===L.Yandex},de=function(e){var t=e.name;return t===L.Safari||t===L.MobileSafari},fe=function(e){return e.name===L.MobileSafari},pe=function(e){return e.name===L.Opera},he=function(e){var t=e.name;return t===L.InternetExplorer||t===L.Ie},me=function(e){return e.name===L.MIUI},ge=function(e){return e.name===L.SamsungBrowser},ve=function(e){var t=e.version;return F(t)},ye=function(e){var t=e.major;return F(t)},be=function(e){var t=e.name;return F(t)},we=function(e){var t=e.name;return F(t)},xe=function(e){var t=e.version;return F(t)},Ae=function(){var e=z(),t=e&&e.userAgent&&e.userAgent.toLowerCase();return"string"===typeof t&&/electron/.test(t)},Se=function(e){return"string"===typeof e&&-1!==e.indexOf("Edg/")},_e=function(){var e=z();return e&&(/iPad|iPhone|iPod/.test(e.platform)||"MacIntel"===e.platform&&e.maxTouchPoints>1)&&!window.MSStream},ke=function(){return B("iPad")},Ce=function(){return B("iPhone")},Ee=function(){return B("iPod")},Oe=function(e){return F(e)};function Te(e){var t=e||g,n=t.device,r=t.browser,o=t.os,i=t.engine,a=t.ua;return{isSmartTV:H(n),isConsole:K(n),isWearable:G(n),isEmbedded:$(n),isMobileSafari:fe(r)||ke(),isChromium:le(r),isMobile:q(n)||ke(),isMobileOnly:U(n),isTablet:W(n)||ke(),isBrowser:Y(n),isDesktop:Y(n),isAndroid:Z(o),isWinPhone:ne(o),isIOS:re(o)||ke(),isChrome:ae(r),isFirefox:se(r),isSafari:de(r),isOpera:pe(r),isIE:he(r),osVersion:oe(o),osName:ie(o),fullBrowserVersion:ve(r),browserVersion:ye(r),browserName:be(r),mobileVendor:Q(n),mobileModel:X(n),engineName:we(i),engineVersion:xe(i),getUA:Oe(a),isEdge:ce(r)||Se(a),isYandex:ue(r),deviceType:J(n),isIOS13:_e(),isIPad13:ke(),isIPhone13:Ce(),isIPod13:Ee(),isElectron:Ae(),isEdgeChromium:Se(a),isLegacyEdge:ce(r)&&!Se(a),isWindows:ee(o),isMacOs:te(o),isMIUI:me(r),isSamsungBrowser:ge(r)}}var Ie=H(u),Re=K(u),Pe=G(u),Me=$(u),De=fe(l)||ke(),Le=le(l),je=q(u)||ke(),Ne=U(u),Fe=W(u)||ke(),ze=Y(u),Be=Y(u),Ve=Z(f),Ue=ne(f),We=re(f)||ke(),qe=ae(l),He=se(l),Ye=de(l),Ge=pe(l),Ke=he(l),$e=oe(f),Qe=ie(f),Xe=ve(l),Je=ye(l),Ze=be(l),et=Q(u),tt=X(u),nt=we(d),rt=xe(d),ot=Oe(p),it=ce(l)||Se(p),at=ue(l),st=J(u),lt=_e(),ct=ke(),ut=Ce(),dt=Ee(),ft=Ae(),pt=Se(p),ht=ce(l)&&!Se(p),mt=ee(f),gt=te(f),vt=me(l),yt=ge(l);function bt(e){var t=e||window.navigator.userAgent;return m(t)}},2721:(module,exports,__webpack_require__)=>{"use strict";module=__webpack_require__.nmd(module),Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=_interopRequireWildcard(__webpack_require__(2176)),_propTypes=_interopRequireDefault(__webpack_require__(5360)),_lodash=_interopRequireDefault(__webpack_require__(2617)),_autoprefix=_interopRequireDefault(__webpack_require__(1969));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!==_typeof(e)&&"function"!==typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function _typeof(e){return _typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach((function(t){_defineProperty(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}function _inherits(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var n,r=_getPrototypeOf(e);if(t){var o=_getPrototypeOf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(e,t){return!t||"object"!==_typeof(t)&&"function"!==typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"===typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(){var e="undefined"!==typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0;e&&e(module)}();var __signature__="undefined"!==typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e};function autoprefixes(e){return Object.keys(e).reduce((function(t,n){return t[n]=(0,_autoprefix.default)(e[n]),t}),{})}var styles=autoprefixes({wrapper:{position:"fixed",width:0,height:0,top:0,left:0},dim:{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:0,background:"rgba(0, 0, 0, 0.2)",opacity:1},dimAppear:{opacity:0},dimTransparent:{pointerEvents:"none"},dimHidden:{opacity:0},dock:{position:"fixed",zIndex:1,boxShadow:"0 0 4px rgba(0, 0, 0, 0.3)",background:"white",left:0,top:0,width:"100%",height:"100%"},dockHidden:{opacity:0},dockResizing:{transition:"none"},dockContent:{width:"100%",height:"100%",overflow:"auto"},resizer:{position:"absolute",zIndex:2,opacity:0}});function getTransitions(e){return["left","top","width","height"].map((function(t){return"".concat(t," ").concat(e/1e3,"s ease-out")}))}function getDockStyles(e,t){var n,r=e.fluid,o=e.dockStyle,i=e.dockHiddenStyle,a=e.duration,s=e.position,l=e.isVisible,c=t.size,u=t.isResizing,d=t.fullWidth,f=t.fullHeight,p=r?"".concat(100*c,"%"):"".concat(c,"px");function h(e){return r?"".concat(100-100*c,"%"):"".concat(e-c,"px")}switch(s){case"left":n={width:p,left:l?0:"-"+p};break;case"right":n={left:l?h(d):d,width:p};break;case"top":n={top:l?0:"-"+p,height:p};break;case"bottom":n={top:l?h(f):f,height:p}}var m=getTransitions(a);return[styles.dock,(0,_autoprefix.default)({transition:[].concat(_toConsumableArray(m),[!l&&"opacity 0.01s linear ".concat(a/1e3,"s")]).filter((function(e){return e})).join(",")}),o,(0,_autoprefix.default)(n),u&&styles.dockResizing,!l&&styles.dockHidden,!l&&i]}function getDimStyles(e,t){var n=e.dimMode,r=e.dimStyle,o=e.duration,i=e.isVisible,a=t.isTransitionStarted;return[styles.dim,(0,_autoprefix.default)({transition:"opacity ".concat(o/1e3,"s ease-out")}),r,"transparent"===n&&styles.dimTransparent,!i&&styles.dimHidden,a&&i&&styles.dimAppear,a&&!i&&styles.dimDisappear]}function getResizerStyles(e){var t,n=10;switch(e){case"left":t={right:-5,width:n,top:0,height:"100%",cursor:"col-resize"};break;case"right":t={left:-5,width:n,top:0,height:"100%",cursor:"col-resize"};break;case"top":t={bottom:-5,height:n,left:0,width:"100%",cursor:"row-resize"};break;case"bottom":t={top:-5,height:n,left:0,width:"100%",cursor:"row-resize"}}return[styles.resizer,(0,_autoprefix.default)(t)]}function getFullSize(e,t,n){return"left"===e||"right"===e?t:n}var Dock=function(_Component){_inherits(Dock,_Component);var _super=_createSuper(Dock);function Dock(){var e;_classCallCheck(this,Dock);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _defineProperty(_assertThisInitialized(e=_super.call.apply(_super,[this].concat(n))),"state",{isControlled:"undefined"!==typeof e.props.size,size:e.props.size||e.props.defaultSize,isDimHidden:!e.props.isVisible,fullWidth:window.innerWidth,fullHeight:window.innerHeight,isTransitionStarted:!1,isWindowResizing:!1}),_defineProperty(_assertThisInitialized(e),"transitionEnd",(function(){e.setState({isTransitionStarted:!1})})),_defineProperty(_assertThisInitialized(e),"hideDim",(function(){e.props.isVisible||e.setState({isDimHidden:!0})})),_defineProperty(_assertThisInitialized(e),"handleDimClick",(function(){"opaque"===e.props.dimMode&&e.props.onVisibleChange&&e.props.onVisibleChange(!1)})),_defineProperty(_assertThisInitialized(e),"handleResize",(function(){window.requestAnimationFrame?window.requestAnimationFrame(e.updateWindowSize.bind(_assertThisInitialized(e),!0)):e.updateWindowSize(!0)})),_defineProperty(_assertThisInitialized(e),"updateWindowSize",(function(t){var n={fullWidth:window.innerWidth,fullHeight:window.innerHeight};t?(e.setState(_objectSpread(_objectSpread({},n),{},{isResizing:!0,isWindowResizing:t})),e.debouncedUpdateWindowSizeEnd()):e.setState(n)})),_defineProperty(_assertThisInitialized(e),"updateWindowSizeEnd",(function(){e.setState({isResizing:!1,isWindowResizing:!1})})),_defineProperty(_assertThisInitialized(e),"debouncedUpdateWindowSizeEnd",(0,_lodash.default)(e.updateWindowSizeEnd,30)),_defineProperty(_assertThisInitialized(e),"handleWrapperLeave",(function(){e.setState({isResizing:!1})})),_defineProperty(_assertThisInitialized(e),"handleMouseDown",(function(){e.setState({isResizing:!0})})),_defineProperty(_assertThisInitialized(e),"handleMouseUp",(function(){e.setState({isResizing:!1})})),_defineProperty(_assertThisInitialized(e),"handleMouseMove",(function(t){if(e.state.isResizing&&!e.state.isWindowResizing){t.touches||t.preventDefault();var n,r=e.props,o=r.position,i=r.fluid,a=e.state,s=a.fullWidth,l=a.fullHeight,c=a.isControlled,u=t,d=u.clientX,f=u.clientY;switch(t.touches&&(d=t.touches[0].clientX,f=t.touches[0].clientY),o){case"left":n=i?d/s:d;break;case"right":n=i?(s-d)/s:s-d;break;case"top":n=i?f/l:f;break;case"bottom":n=i?(l-f)/l:l-f}e.props.onSizeChange&&e.props.onSizeChange(n),c||e.setState({size:n})}})),e}return _createClass(Dock,[{key:"componentDidMount",value:function(){window.addEventListener("touchend",this.handleMouseUp),window.addEventListener("mouseup",this.handleMouseUp),window.addEventListener("touchmove",this.handleMouseMove),window.addEventListener("mousemove",this.handleMouseMove),window.addEventListener("resize",this.handleResize),this.updateWindowSize()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("touchend",this.handleMouseUp),window.removeEventListener("mouseup",this.handleMouseUp),window.removeEventListener("touchmove",this.handleMouseMove),window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t="undefined"!==typeof e.size;this.setState({isControlled:t}),t&&e.size&&this.props.size!==e.size?this.setState({size:e.size}):this.props.fluid!==e.fluid&&this.updateSize(e),this.props.isVisible!==e.isVisible&&this.setState({isTransitionStarted:!0})}},{key:"updateSize",value:function(e){var t=this.state,n=t.fullWidth,r=t.fullHeight;this.setState({size:e.fluid?this.state.size/getFullSize(e.position,n,r):getFullSize(e.position,n,r)*this.state.size})}},{key:"componentDidUpdate",value:function(e){var t=this;this.props.isVisible!==e.isVisible&&(this.props.isVisible?this.setState({isDimHidden:!1}):window.setTimeout((function(){return t.hideDim()}),this.props.duration),window.setTimeout((function(){return t.setState({isTransitionStarted:!1})}),0))}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.zIndex,r=e.dimMode,o=e.position,i=e.isVisible,a=this.state,s=a.isResizing,l=a.size,c=a.isDimHidden,u=Object.assign.apply(Object,[{}].concat(_toConsumableArray(getDimStyles(this.props,this.state)))),d=Object.assign.apply(Object,[{}].concat(_toConsumableArray(getDockStyles(this.props,this.state)))),f=Object.assign.apply(Object,[{}].concat(_toConsumableArray(getResizerStyles(o))));return _react.default.createElement("div",{style:Object.assign({},styles.wrapper,{zIndex:n})},"none"!==r&&!c&&_react.default.createElement("div",{style:u,onClick:this.handleDimClick}),_react.default.createElement("div",{style:d},_react.default.createElement("div",{style:f,onMouseDown:this.handleMouseDown,onTouchStart:this.handleMouseDown}),_react.default.createElement("div",{style:styles.dockContent},"function"===typeof t?t({position:o,isResizing:s,size:l,isVisible:i}):t)))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),Dock}(_react.Component);exports.default=Dock,_defineProperty(Dock,"propTypes",{position:_propTypes.default.oneOf(["left","right","top","bottom"]),zIndex:_propTypes.default.number,fluid:_propTypes.default.bool,size:_propTypes.default.number,defaultSize:_propTypes.default.number,dimMode:_propTypes.default.oneOf(["none","transparent","opaque"]),isVisible:_propTypes.default.bool,onVisibleChange:_propTypes.default.func,onSizeChange:_propTypes.default.func,dimStyle:_propTypes.default.object,dockStyle:_propTypes.default.object,duration:_propTypes.default.number}),_defineProperty(Dock,"defaultProps",{position:"left",zIndex:99999999,fluid:!0,defaultSize:.3,dimMode:"opaque",duration:200}),function(){var e="undefined"!==typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;e&&(e.register(autoprefixes,"autoprefixes","C:\\Users\\Nathan\\Documents\\redux-devtools\\packages\\react-dock\\src\\Dock.tsx"),e.register(styles,"styles","C:\\Users\\Nathan\\Documents\\redux-devtools\\packages\\react-dock\\src\\Dock.tsx"),e.register(getTransitions,"getTransitions","C:\\Users\\Nathan\\Documents\\redux-devtools\\packages\\react-dock\\src\\Dock.tsx"),e.register(getDockStyles,"getDockStyles","C:\\Users\\Nathan\\Documents\\redux-devtools\\packages\\react-dock\\src\\Dock.tsx"),e.register(getDimStyles,"getDimStyles","C:\\Users\\Nathan\\Documents\\redux-devtools\\packages\\react-dock\\src\\Dock.tsx"),e.register(getResizerStyles,"getResizerStyles","C:\\Users\\Nathan\\Documents\\redux-devtools\\packages\\react-dock\\src\\Dock.tsx"),e.register(getFullSize,"getFullSize","C:\\Users\\Nathan\\Documents\\redux-devtools\\packages\\react-dock\\src\\Dock.tsx"),e.register(Dock,"Dock","C:\\Users\\Nathan\\Documents\\redux-devtools\\packages\\react-dock\\src\\Dock.tsx"))}(),function(){var e="undefined"!==typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0;e&&e(module)}()},1969:(e,t,n)=>{"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e=n.nmd(e),Object.defineProperty(t,"__esModule",{value:!0}),t.default=c,function(){var t="undefined"!==typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0;t&&t(e)}();"undefined"!==typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var a=["animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","appearance","backfaceVisibility","backgroundClip","borderImage","borderImageSlice","boxSizing","boxShadow","contentColumns","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","perspective","perspectiveOrigin","userSelect"],s=["Moz","Webkit","ms","O"];function l(e,t){return s.reduce((function(n,r){return n[r+e[0].toUpperCase()+e.substr(1)]=t,n}),{})}function c(e){return Object.keys(e).reduce((function(t,n){return-1!==a.indexOf(n)?o(o({},t),l(n,e[n])):t}),e)}!function(){var e="undefined"!==typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;e&&(e.register(a,"vendorSpecificProperties","C:\\Users\\Nathan\\Documents\\redux-devtools\\packages\\react-dock\\src\\autoprefix.ts"),e.register(s,"prefixes","C:\\Users\\Nathan\\Documents\\redux-devtools\\packages\\react-dock\\src\\autoprefix.ts"),e.register(l,"prefixProp","C:\\Users\\Nathan\\Documents\\redux-devtools\\packages\\react-dock\\src\\autoprefix.ts"),e.register(c,"autoprefix","C:\\Users\\Nathan\\Documents\\redux-devtools\\packages\\react-dock\\src\\autoprefix.ts"))}(),function(){var t="undefined"!==typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0;t&&t(e)}()},4452:(e,t,n)=>{"use strict";e=n.nmd(e),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(2721))&&r.__esModule?r:{default:r};!function(){var t="undefined"!==typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0;t&&t(e)}();"undefined"!==typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var i=o.default,a=i;t.default=a,function(){var e="undefined"!==typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0;e&&e.register(i,"default","C:\\Users\\Nathan\\Documents\\redux-devtools\\packages\\react-dock\\src\\index.ts")}(),function(){var t="undefined"!==typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0;t&&t(e)}()},2627:(e,t,n)=>{"use strict";var r=n(2176),o=n(6512),i=n(4442);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var s=new Set,l={};function c(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[e]=t,e=0;e<t.length;e++)s.add(t[e])}var d=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),f=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p=Object.prototype.hasOwnProperty,h={},m={};function g(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new g(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new g(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new g(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new g(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){v[e]=new g(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new g(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new g(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new g(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new g(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function w(e,t,n,r){var o=v.hasOwnProperty(t)?v[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!p.call(m,e)||!p.call(h,e)&&(f.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);v[t]=new g(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);v[t]=new g(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);v[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,A=60103,S=60106,_=60107,k=60108,C=60114,E=60109,O=60110,T=60112,I=60113,R=60120,P=60115,M=60116,D=60121,L=60128,j=60129,N=60130,F=60131;if("function"===typeof Symbol&&Symbol.for){var z=Symbol.for;A=z("react.element"),S=z("react.portal"),_=z("react.fragment"),k=z("react.strict_mode"),C=z("react.profiler"),E=z("react.provider"),O=z("react.context"),T=z("react.forward_ref"),I=z("react.suspense"),R=z("react.suspense_list"),P=z("react.memo"),M=z("react.lazy"),D=z("react.block"),z("react.scope"),L=z("react.opaque.id"),j=z("react.debug_trace_mode"),N=z("react.offscreen"),F=z("react.legacy_hidden")}var B,V="function"===typeof Symbol&&Symbol.iterator;function U(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=V&&e[V]||e["@@iterator"])?e:null}function W(e){if(void 0===B)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);B=t&&t[1]||""}return"\n"+B+e}var q=!1;function H(e,t){if(!e||q)return"";q=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&"string"===typeof l.stack){for(var o=l.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s])return"\n"+o[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{q=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function Y(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return e=H(e.type,!1);case 11:return e=H(e.type.render,!1);case 22:return e=H(e.type._render,!1);case 1:return e=H(e.type,!0);default:return""}}function G(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case _:return"Fragment";case S:return"Portal";case C:return"Profiler";case k:return"StrictMode";case I:return"Suspense";case R:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case P:return G(e.type);case D:return G(e._render);case M:t=e._payload,e=e._init;try{return G(e(t))}catch(n){}}return null}function K(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Q(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=K(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=K(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,K(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function oe(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ie(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+K(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:K(n)}}function ce(e,t){var n=K(t.value),r=K(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ue(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var de="http://www.w3.org/1999/xhtml",fe="http://www.w3.org/2000/svg";function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var me,ge,ve=(ge=function(e,t){if(e.namespaceURI!==fe||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ge(e,t)}))}:ge);function ye(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var be={animationIterationCount:!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},we=["Webkit","ms","Moz","O"];function xe(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function Ae(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=xe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(be).forEach((function(e){we.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]}))}));var Se=o({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 _e(e,t){if(t){if(Se[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function ke(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ce(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ee=null,Oe=null,Te=null;function Ie(e){if(e=ro(e)){if("function"!==typeof Ee)throw Error(a(280));var t=e.stateNode;t&&(t=io(t),Ee(e.stateNode,e.type,t))}}function Re(e){Oe?Te?Te.push(e):Te=[e]:Oe=e}function Pe(){if(Oe){var e=Oe,t=Te;if(Te=Oe=null,Ie(e),t)for(e=0;e<t.length;e++)Ie(t[e])}}function Me(e,t){return e(t)}function De(e,t,n,r,o){return e(t,n,r,o)}function Le(){}var je=Me,Ne=!1,Fe=!1;function ze(){null===Oe&&null===Te||(Le(),Pe())}function Be(e,t){var n=e.stateNode;if(null===n)return null;var r=io(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var Ve=!1;if(d)try{var Ue={};Object.defineProperty(Ue,"passive",{get:function(){Ve=!0}}),window.addEventListener("test",Ue,Ue),window.removeEventListener("test",Ue,Ue)}catch(ge){Ve=!1}function We(e,t,n,r,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var qe=!1,He=null,Ye=!1,Ge=null,Ke={onError:function(e){qe=!0,He=e}};function $e(e,t,n,r,o,i,a,s,l){qe=!1,He=null,We.apply(Ke,arguments)}function Qe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Xe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Je(e){if(Qe(e)!==e)throw Error(a(188))}function Ze(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Qe(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Je(o),e;if(i===r)return Je(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,ot,it=!1,at=[],st=null,lt=null,ct=null,ut=new Map,dt=new Map,ft=[],pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function mt(e,t){switch(e){case"focusin":case"focusout":st=null;break;case"dragenter":case"dragleave":lt=null;break;case"mouseover":case"mouseout":ct=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":dt.delete(t.pointerId)}}function gt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=ht(t,n,r,o,i),null!==t&&(null!==(t=ro(t))&&nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function vt(e){var t=no(e.target);if(null!==t){var n=Qe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Xe(n)))return e.blockedOn=t,void ot(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function yt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ro(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function bt(e,t,n){yt(e)&&n.delete(t)}function wt(){for(it=!1;0<at.length;){var e=at[0];if(null!==e.blockedOn){null!==(e=ro(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&at.shift()}null!==st&&yt(st)&&(st=null),null!==lt&&yt(lt)&&(lt=null),null!==ct&&yt(ct)&&(ct=null),ut.forEach(bt),dt.forEach(bt)}function xt(e,t){e.blockedOn===t&&(e.blockedOn=null,it||(it=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,wt)))}function At(e){function t(t){return xt(t,e)}if(0<at.length){xt(at[0],e);for(var n=1;n<at.length;n++){var r=at[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==st&&xt(st,e),null!==lt&&xt(lt,e),null!==ct&&xt(ct,e),ut.forEach(t),dt.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)vt(n),null===n.blockedOn&&ft.shift()}function St(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _t={animationend:St("Animation","AnimationEnd"),animationiteration:St("Animation","AnimationIteration"),animationstart:St("Animation","AnimationStart"),transitionend:St("Transition","TransitionEnd")},kt={},Ct={};function Et(e){if(kt[e])return kt[e];if(!_t[e])return e;var t,n=_t[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ct)return kt[e]=n[t];return e}d&&(Ct=document.createElement("div").style,"AnimationEvent"in window||(delete _t.animationend.animation,delete _t.animationiteration.animation,delete _t.animationstart.animation),"TransitionEvent"in window||delete _t.transitionend.transition);var Ot=Et("animationend"),Tt=Et("animationiteration"),It=Et("animationstart"),Rt=Et("transitionend"),Pt=new Map,Mt=new Map,Dt=["abort","abort",Ot,"animationEnd",Tt,"animationIteration",It,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Rt,"transitionEnd","waiting","waiting"];function Lt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),Mt.set(r,t),Pt.set(r,o),c(o,[r])}}(0,i.unstable_now)();var jt=8;function Nt(e){if(0!==(1&e))return jt=15,1;if(0!==(2&e))return jt=14,2;if(0!==(4&e))return jt=13,4;var t=24&e;return 0!==t?(jt=12,t):0!==(32&e)?(jt=11,32):0!==(t=192&e)?(jt=10,t):0!==(256&e)?(jt=9,256):0!==(t=3584&e)?(jt=8,t):0!==(4096&e)?(jt=7,4096):0!==(t=4186112&e)?(jt=6,t):0!==(t=62914560&e)?(jt=5,t):67108864&e?(jt=4,67108864):0!==(134217728&e)?(jt=3,134217728):0!==(t=805306368&e)?(jt=2,t):0!==(1073741824&e)?(jt=1,1073741824):(jt=8,e)}function Ft(e,t){var n=e.pendingLanes;if(0===n)return jt=0;var r=0,o=0,i=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==i)r=i,o=jt=15;else if(0!==(i=134217727&n)){var l=i&~a;0!==l?(r=Nt(l),o=jt):0!==(s&=i)&&(r=Nt(s),o=jt)}else 0!==(i=n&~a)?(r=Nt(i),o=jt):0!==s&&(r=Nt(s),o=jt);if(0===r)return 0;if(r=n&((0>(r=31-qt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&a)){if(Nt(t),o<=jt)return t;jt=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-qt(t)),r|=e[n],t&=~o;return r}function zt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Bt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Vt(24&~t))?Bt(10,t):e;case 10:return 0===(e=Vt(192&~t))?Bt(8,t):e;case 8:return 0===(e=Vt(3584&~t))&&(0===(e=Vt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Vt(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Vt(e){return e&-e}function Ut(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-qt(t)]=n}var qt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Ht(e)/Yt|0)|0},Ht=Math.log,Yt=Math.LN2;var Gt=i.unstable_UserBlockingPriority,Kt=i.unstable_runWithPriority,$t=!0;function Qt(e,t,n,r){Ne||Le();var o=Jt,i=Ne;Ne=!0;try{De(o,e,t,n,r)}finally{(Ne=i)||ze()}}function Xt(e,t,n,r){Kt(Gt,Jt.bind(null,e,t,n,r))}function Jt(e,t,n,r){var o;if($t)if((o=0===(4&t))&&0<at.length&&-1<pt.indexOf(e))e=ht(null,e,t,n,r),at.push(e);else{var i=Zt(e,t,n,r);if(null===i)o&&mt(e,r);else{if(o){if(-1<pt.indexOf(e))return e=ht(i,e,t,n,r),void at.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return st=gt(st,e,t,n,r,o),!0;case"dragenter":return lt=gt(lt,e,t,n,r,o),!0;case"mouseover":return ct=gt(ct,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return ut.set(i,gt(ut.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,dt.set(i,gt(dt.get(i)||null,e,t,n,r,o)),!0}return!1}(i,e,t,n,r))return;mt(e,r)}Lr(e,t,r,null,n)}}}function Zt(e,t,n,r){var o=Ce(r);if(null!==(o=no(o))){var i=Qe(o);if(null===i)o=null;else{var a=i.tag;if(13===a){if(null!==(o=Xe(i)))return o;o=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return Lr(e,t,r,o,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,o="value"in en?en.value:en.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return nn=o.slice(e,1<t?1-t:void 0)}function on(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function an(){return!0}function sn(){return!1}function ln(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?an:sn,this.isPropagationStopped=sn,this}return o(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var cn,un,dn,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=ln(fn),hn=o({},fn,{view:0,detail:0}),mn=ln(hn),gn=o({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:On,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==dn&&(dn&&"mousemove"===e.type?(cn=e.screenX-dn.screenX,un=e.screenY-dn.screenY):un=cn=0,dn=e),cn)},movementY:function(e){return"movementY"in e?e.movementY:un}}),vn=ln(gn),yn=ln(o({},gn,{dataTransfer:0})),bn=ln(o({},hn,{relatedTarget:0})),wn=ln(o({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),xn=o({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),An=ln(xn),Sn=ln(o({},fn,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function On(){return En}var Tn=o({},hn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=on(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:On,charCode:function(e){return"keypress"===e.type?on(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?on(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),In=ln(Tn),Rn=ln(o({},gn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=ln(o({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:On})),Mn=ln(o({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Dn=o({},gn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ln=ln(Dn),jn=[9,13,27,32],Nn=d&&"CompositionEvent"in window,Fn=null;d&&"documentMode"in document&&(Fn=document.documentMode);var zn=d&&"TextEvent"in window&&!Fn,Bn=d&&(!Nn||Fn&&8<Fn&&11>=Fn),Vn=String.fromCharCode(32),Un=!1;function Wn(e,t){switch(e){case"keyup":return-1!==jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1;var Yn={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 Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Yn[e.type]:"textarea"===t}function Kn(e,t,n,r){Re(r),0<(t=Nr(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $n=null,Qn=null;function Xn(e){Tr(e,0)}function Jn(e){if(X(oo(e)))return e}function Zn(e,t){if("change"===e)return t}var er=!1;if(d){var tr;if(d){var nr="oninput"in document;if(!nr){var rr=document.createElement("div");rr.setAttribute("oninput","return;"),nr="function"===typeof rr.oninput}tr=nr}else tr=!1;er=tr&&(!document.documentMode||9<document.documentMode)}function or(){$n&&($n.detachEvent("onpropertychange",ir),Qn=$n=null)}function ir(e){if("value"===e.propertyName&&Jn(Qn)){var t=[];if(Kn(t,Qn,e,Ce(e)),e=Xn,Ne)e(t);else{Ne=!0;try{Me(e,t)}finally{Ne=!1,ze()}}}}function ar(e,t,n){"focusin"===e?(or(),Qn=n,($n=t).attachEvent("onpropertychange",ir)):"focusout"===e&&or()}function sr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Jn(Qn)}function lr(e,t){if("click"===e)return Jn(t)}function cr(e,t){if("input"===e||"change"===e)return Jn(t)}var ur="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},dr=Object.prototype.hasOwnProperty;function fr(e,t){if(ur(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!dr.call(t,n[r])||!ur(e[n[r]],t[n[r]]))return!1;return!0}function pr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hr(e,t){var n,r=pr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=pr(r)}}function mr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?mr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function gr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function vr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var yr=d&&"documentMode"in document&&11>=document.documentMode,br=null,wr=null,xr=null,Ar=!1;function Sr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Ar||null==br||br!==J(r)||("selectionStart"in(r=br)&&vr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},xr&&fr(xr,r)||(xr=r,0<(r=Nr(wr,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=br)))}Lt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Lt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Lt(Dt,2);for(var _r="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),kr=0;kr<_r.length;kr++)Mt.set(_r[kr],0);u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Cr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Er=new Set("cancel close invalid load scroll toggle".split(" ").concat(Cr));function Or(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,s,l,c){if($e.apply(this,arguments),qe){if(!qe)throw Error(a(198));var u=He;qe=!1,He=null,Ye||(Ye=!0,Ge=u)}}(r,t,void 0,e),e.currentTarget=null}function Tr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Or(o,s,c),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Or(o,s,c),i=l}}}if(Ye)throw e=Ge,Ye=!1,Ge=null,e}function Ir(e,t){var n=ao(t),r=e+"__bubble";n.has(r)||(Dr(t,e,2,!1),n.add(r))}var Rr="_reactListening"+Math.random().toString(36).slice(2);function Pr(e){e[Rr]||(e[Rr]=!0,s.forEach((function(t){Er.has(t)||Mr(t,!1,e,null),Mr(t,!0,e,null)})))}function Mr(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==r&&!t&&Er.has(e)){if("scroll"!==e)return;o|=2,i=r}var a=ao(i),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(o|=4),Dr(i,e,o,t),a.add(s))}function Dr(e,t,n,r){var o=Mt.get(t);switch(void 0===o?2:o){case 0:o=Qt;break;case 1:o=Xt;break;default:o=Jt}n=o.bind(null,t,n,e),o=void 0,!Ve||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Lr(e,t,n,r,o){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=no(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Fe)return e(t,n);Fe=!0;try{return je(e,t,n)}finally{Fe=!1,ze()}}((function(){var r=i,o=Ce(n),a=[];e:{var s=Pt.get(e);if(void 0!==s){var l=pn,c=e;switch(e){case"keypress":if(0===on(n))break e;case"keydown":case"keyup":l=In;break;case"focusin":c="focus",l=bn;break;case"focusout":c="blur",l=bn;break;case"beforeblur":case"afterblur":l=bn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=vn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Pn;break;case Ot:case Tt:case It:l=wn;break;case Rt:l=Mn;break;case"scroll":l=mn;break;case"wheel":l=Ln;break;case"copy":case"cut":case"paste":l=An;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Rn}var u=0!==(4&t),d=!u&&"scroll"===e,f=u?null!==s?s+"Capture":null:s;u=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==f&&(null!=(m=Be(h,f))&&u.push(jr(h,m,p)))),d)break;h=h.return}0<u.length&&(s=new l(s,c,null,n,o),a.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(c=n.relatedTarget||n.fromElement)||!no(c)&&!c[eo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?no(c):null)&&(c!==(d=Qe(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=vn,m="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Rn,m="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==l?s:oo(l),p=null==c?s:oo(c),(s=new u(m,h+"leave",l,n,o)).target=d,s.relatedTarget=p,m=null,no(o)===r&&((u=new u(f,h+"enter",c,n,o)).target=p,u.relatedTarget=d,m=u),d=m,l&&c)e:{for(f=c,h=0,p=u=l;p;p=Fr(p))h++;for(p=0,m=f;m;m=Fr(m))p++;for(;0<h-p;)u=Fr(u),h--;for(;0<p-h;)f=Fr(f),p--;for(;h--;){if(u===f||null!==f&&u===f.alternate)break e;u=Fr(u),f=Fr(f)}u=null}else u=null;null!==l&&zr(a,s,l,u,!1),null!==c&&null!==d&&zr(a,d,c,u,!0)}if("select"===(l=(s=r?oo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Zn;else if(Gn(s))if(er)g=cr;else{g=sr;var v=ar}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=lr);switch(g&&(g=g(e,r))?Kn(a,g,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&oe(s,"number",s.value)),v=r?oo(r):window,e){case"focusin":(Gn(v)||"true"===v.contentEditable)&&(br=v,wr=r,xr=null);break;case"focusout":xr=wr=br=null;break;case"mousedown":Ar=!0;break;case"contextmenu":case"mouseup":case"dragend":Ar=!1,Sr(a,n,o);break;case"selectionchange":if(yr)break;case"keydown":case"keyup":Sr(a,n,o)}var y;if(Nn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Hn?Wn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Bn&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Hn&&(y=rn()):(tn="value"in(en=o)?en.value:en.textContent,Hn=!0)),0<(v=Nr(r,b)).length&&(b=new Sn(b,e,null,n,o),a.push({event:b,listeners:v}),y?b.data=y:null!==(y=qn(n))&&(b.data=y))),(y=zn?function(e,t){switch(e){case"compositionend":return qn(t);case"keypress":return 32!==t.which?null:(Un=!0,Vn);case"textInput":return(e=t.data)===Vn&&Un?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Nn&&Wn(e,t)?(e=rn(),nn=tn=en=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Bn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Nr(r,"onBeforeInput")).length&&(o=new Sn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y))}Tr(a,t)}))}function jr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Nr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Be(e,n))&&r.unshift(jr(e,i,o)),null!=(i=Be(e,t))&&r.push(jr(e,i,o))),e=e.return}return r}function Fr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function zr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,o?null!=(l=Be(n,i))&&a.unshift(jr(n,l,s)):o||null!=(l=Be(n,i))&&a.push(jr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Br(){}var Vr=null,Ur=null;function Wr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function qr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Hr="function"===typeof setTimeout?setTimeout:void 0,Yr="function"===typeof clearTimeout?clearTimeout:void 0;function Gr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Kr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function $r(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Qr=0;var Xr=Math.random().toString(36).slice(2),Jr="__reactFiber$"+Xr,Zr="__reactProps$"+Xr,eo="__reactContainer$"+Xr,to="__reactEvents$"+Xr;function no(e){var t=e[Jr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[eo]||n[Jr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=$r(e);null!==e;){if(n=e[Jr])return n;e=$r(e)}return t}n=(e=n).parentNode}return null}function ro(e){return!(e=e[Jr]||e[eo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function oo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function io(e){return e[Zr]||null}function ao(e){var t=e[to];return void 0===t&&(t=e[to]=new Set),t}var so=[],lo=-1;function co(e){return{current:e}}function uo(e){0>lo||(e.current=so[lo],so[lo]=null,lo--)}function fo(e,t){lo++,so[lo]=e.current,e.current=t}var po={},ho=co(po),mo=co(!1),go=po;function vo(e,t){var n=e.type.contextTypes;if(!n)return po;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function yo(e){return null!==(e=e.childContextTypes)&&void 0!==e}function bo(){uo(mo),uo(ho)}function wo(e,t,n){if(ho.current!==po)throw Error(a(168));fo(ho,t),fo(mo,n)}function xo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,G(t)||"Unknown",i));return o({},n,r)}function Ao(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||po,go=ho.current,fo(ho,e),fo(mo,mo.current),!0}function So(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=xo(e,t,go),r.__reactInternalMemoizedMergedChildContext=e,uo(mo),uo(ho),fo(ho,e)):uo(mo),fo(mo,n)}var _o=null,ko=null,Co=i.unstable_runWithPriority,Eo=i.unstable_scheduleCallback,Oo=i.unstable_cancelCallback,To=i.unstable_shouldYield,Io=i.unstable_requestPaint,Ro=i.unstable_now,Po=i.unstable_getCurrentPriorityLevel,Mo=i.unstable_ImmediatePriority,Do=i.unstable_UserBlockingPriority,Lo=i.unstable_NormalPriority,jo=i.unstable_LowPriority,No=i.unstable_IdlePriority,Fo={},zo=void 0!==Io?Io:function(){},Bo=null,Vo=null,Uo=!1,Wo=Ro(),qo=1e4>Wo?Ro:function(){return Ro()-Wo};function Ho(){switch(Po()){case Mo:return 99;case Do:return 98;case Lo:return 97;case jo:return 96;case No:return 95;default:throw Error(a(332))}}function Yo(e){switch(e){case 99:return Mo;case 98:return Do;case 97:return Lo;case 96:return jo;case 95:return No;default:throw Error(a(332))}}function Go(e,t){return e=Yo(e),Co(e,t)}function Ko(e,t,n){return e=Yo(e),Eo(e,t,n)}function $o(){if(null!==Vo){var e=Vo;Vo=null,Oo(e)}Qo()}function Qo(){if(!Uo&&null!==Bo){Uo=!0;var e=0;try{var t=Bo;Go(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Bo=null}catch(n){throw null!==Bo&&(Bo=Bo.slice(e+1)),Eo(Mo,$o),n}finally{Uo=!1}}}var Xo=x.ReactCurrentBatchConfig;function Jo(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Zo=co(null),ei=null,ti=null,ni=null;function ri(){ni=ti=ei=null}function oi(e){var t=Zo.current;uo(Zo),e.type._context._currentValue=t}function ii(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ai(e,t){ei=e,ni=ti=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Na=!0),e.firstContext=null)}function si(e,t){if(ni!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(ni=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ti){if(null===ei)throw Error(a(308));ti=t,ei.dependencies={lanes:0,firstContext:t,responders:null}}else ti=ti.next=t;return e._currentValue}var li=!1;function ci(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ui(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function di(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function fi(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function pi(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function hi(e,t,n,r){var i=e.updateQueue;li=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(null!==l){i.shared.pending=null;var c=l,u=c.next;c.next=null,null===s?a=u:s.next=u,s=c;var d=e.alternate;if(null!==d){var f=(d=d.updateQueue).lastBaseUpdate;f!==s&&(null===f?d.firstBaseUpdate=u:f.next=u,d.lastBaseUpdate=c)}}if(null!==a){for(f=i.baseState,s=0,d=u=c=null;;){l=a.lane;var p=a.eventTime;if((r&l)===l){null!==d&&(d=d.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,m=a;switch(l=t,p=n,m.tag){case 1:if("function"===typeof(h=m.payload)){f=h.call(p,f,l);break e}f=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null===(l="function"===typeof(h=m.payload)?h.call(p,f,l):h)||void 0===l)break e;f=o({},f,l);break e;case 2:li=!0}}null!==a.callback&&(e.flags|=32,null===(l=i.effects)?i.effects=[a]:l.push(a))}else p={eventTime:p,lane:l,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===d?(u=d=p,c=f):d=d.next=p,s|=l;if(null===(a=a.next)){if(null===(l=i.shared.pending))break;a=l.next,l.next=null,i.lastBaseUpdate=l,i.shared.pending=null}}null===d&&(c=f),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=d,Us|=s,e.lanes=s,e.memoizedState=f}}function mi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!==typeof o)throw Error(a(191,o));o.call(r)}}}var gi=(new r.Component).refs;function vi(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var yi={isMounted:function(e){return!!(e=e._reactInternals)&&Qe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=pl(),o=hl(e),i=di(r,o);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),fi(e,i),ml(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=pl(),o=hl(e),i=di(r,o);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),fi(e,i),ml(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pl(),r=hl(e),o=di(n,r);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),fi(e,o),ml(e,r,n)}};function bi(e,t,n,r,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!fr(n,r)||!fr(o,i))}function wi(e,t,n){var r=!1,o=po,i=t.contextType;return"object"===typeof i&&null!==i?i=si(i):(o=yo(t)?go:ho.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?vo(e,o):po),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=yi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function xi(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&yi.enqueueReplaceState(t,t.state,null)}function Ai(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=gi,ci(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=si(i):(i=yo(t)?go:ho.current,o.context=vo(e,i)),hi(e,n,o,r),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(vi(e,t,i,n),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&yi.enqueueReplaceState(o,o.state,null),hi(e,n,o,r),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4)}var Si=Array.isArray;function _i(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===gi&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function ki(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Ci(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Gl(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Xl(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=_i(e,t,n),r.return=e,r):((r=Kl(n.type,n.key,n.props,null,e.mode,r)).ref=_i(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Jl(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=$l(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Xl(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case A:return(n=Kl(t.type,t.key,t.props,null,e.mode,n)).ref=_i(e,null,t),n.return=e,n;case S:return(t=Jl(t,e.mode,n)).return=e,t}if(Si(t)||U(t))return(t=$l(t,e.mode,n,null)).return=e,t;ki(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==o?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case A:return n.key===o?n.type===_?d(e,t,n.props.children,r,o):c(e,t,n,r):null;case S:return n.key===o?u(e,t,n,r):null}if(Si(n)||U(n))return null!==o?null:d(e,t,n,r,null);ki(e,n)}return null}function h(e,t,n,r,o){if("string"===typeof r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"===typeof r&&null!==r){switch(r.$$typeof){case A:return e=e.get(null===r.key?n:r.key)||null,r.type===_?d(t,e,r.props.children,o,r.key):c(t,e,r,o);case S:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(Si(r)||U(r))return d(t,e=e.get(n)||null,r,o,null);ki(t,r)}return null}function m(o,a,s,l){for(var c=null,u=null,d=a,m=a=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=p(o,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(o,d),a=i(v,a,m),null===u?c=v:u.sibling=v,u=v,d=g}if(m===s.length)return n(o,d),c;if(null===d){for(;m<s.length;m++)null!==(d=f(o,s[m],l))&&(a=i(d,a,m),null===u?c=d:u.sibling=d,u=d);return c}for(d=r(o,d);m<s.length;m++)null!==(g=h(d,o,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=i(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(o,e)})),c}function g(o,s,l,c){var u=U(l);if("function"!==typeof u)throw Error(a(150));if(null==(l=u.call(l)))throw Error(a(151));for(var d=u=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(o,m,y.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(o,m),s=i(b,s,g),null===d?u=b:d.sibling=b,d=b,m=v}if(y.done)return n(o,m),u;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=f(o,y.value,c))&&(s=i(y,s,g),null===d?u=y:d.sibling=y,d=y);return u}for(m=r(o,m);!y.done;g++,y=l.next())null!==(y=h(m,o,g,y.value,c))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=i(y,s,g),null===d?u=y:d.sibling=y,d=y);return e&&m.forEach((function(e){return t(o,e)})),u}return function(e,r,i,l){var c="object"===typeof i&&null!==i&&i.type===_&&null===i.key;c&&(i=i.props.children);var u="object"===typeof i&&null!==i;if(u)switch(i.$$typeof){case A:e:{for(u=i.key,c=r;null!==c;){if(c.key===u){if(7===c.tag){if(i.type===_){n(e,c.sibling),(r=o(c,i.props.children)).return=e,e=r;break e}}else if(c.elementType===i.type){n(e,c.sibling),(r=o(c,i.props)).ref=_i(e,c,i),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}i.type===_?((r=$l(i.props.children,e.mode,l,i.key)).return=e,e=r):((l=Kl(i.type,i.key,i.props,null,e.mode,l)).ref=_i(e,r,i),l.return=e,e=l)}return s(e);case S:e:{for(c=i.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Jl(i,e.mode,l)).return=e,e=r}return s(e)}if("string"===typeof i||"number"===typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Xl(i,e.mode,l)).return=e,e=r),s(e);if(Si(i))return m(e,r,i,l);if(U(i))return g(e,r,i,l);if(u&&ki(e,i),"undefined"===typeof i&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,G(e.type)||"Component"))}return n(e,r)}}var Ei=Ci(!0),Oi=Ci(!1),Ti={},Ii=co(Ti),Ri=co(Ti),Pi=co(Ti);function Mi(e){if(e===Ti)throw Error(a(174));return e}function Di(e,t){switch(fo(Pi,t),fo(Ri,e),fo(Ii,Ti),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}uo(Ii),fo(Ii,t)}function Li(){uo(Ii),uo(Ri),uo(Pi)}function ji(e){Mi(Pi.current);var t=Mi(Ii.current),n=he(t,e.type);t!==n&&(fo(Ri,e),fo(Ii,n))}function Ni(e){Ri.current===e&&(uo(Ii),uo(Ri))}var Fi=co(0);function zi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Bi=null,Vi=null,Ui=!1;function Wi(e,t){var n=Hl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function qi(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Hi(e){if(Ui){var t=Vi;if(t){var n=t;if(!qi(e,t)){if(!(t=Kr(n.nextSibling))||!qi(e,t))return e.flags=-1025&e.flags|2,Ui=!1,void(Bi=e);Wi(Bi,n)}Bi=e,Vi=Kr(t.firstChild)}else e.flags=-1025&e.flags|2,Ui=!1,Bi=e}}function Yi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Bi=e}function Gi(e){if(e!==Bi)return!1;if(!Ui)return Yi(e),Ui=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!qr(t,e.memoizedProps))for(t=Vi;t;)Wi(e,t),t=Kr(t.nextSibling);if(Yi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Vi=Kr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Vi=null}}else Vi=Bi?Kr(e.stateNode.nextSibling):null;return!0}function Ki(){Vi=Bi=null,Ui=!1}var $i=[];function Qi(){for(var e=0;e<$i.length;e++)$i[e]._workInProgressVersionPrimary=null;$i.length=0}var Xi=x.ReactCurrentDispatcher,Ji=x.ReactCurrentBatchConfig,Zi=0,ea=null,ta=null,na=null,ra=!1,oa=!1;function ia(){throw Error(a(321))}function aa(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function sa(e,t,n,r,o,i){if(Zi=i,ea=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xi.current=null===e||null===e.memoizedState?Ma:Da,e=n(r,o),oa){i=0;do{if(oa=!1,!(25>i))throw Error(a(301));i+=1,na=ta=null,t.updateQueue=null,Xi.current=La,e=n(r,o)}while(oa)}if(Xi.current=Pa,t=null!==ta&&null!==ta.next,Zi=0,na=ta=ea=null,ra=!1,t)throw Error(a(300));return e}function la(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===na?ea.memoizedState=na=e:na=na.next=e,na}function ca(){if(null===ta){var e=ea.alternate;e=null!==e?e.memoizedState:null}else e=ta.next;var t=null===na?ea.memoizedState:na.next;if(null!==t)na=t,ta=e;else{if(null===e)throw Error(a(310));e={memoizedState:(ta=e).memoizedState,baseState:ta.baseState,baseQueue:ta.baseQueue,queue:ta.queue,next:null},null===na?ea.memoizedState=na=e:na=na.next=e}return na}function ua(e,t){return"function"===typeof t?t(e):t}function da(e){var t=ca(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=ta,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var s=o.next;o.next=i.next,i.next=s}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var l=s=i=null,c=o;do{var u=c.lane;if((Zi&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(s=l=d,i=r):l=l.next=d,ea.lanes|=u,Us|=u}c=c.next}while(null!==c&&c!==o);null===l?i=r:l.next=s,ur(r,t.memoizedState)||(Na=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function fa(e){var t=ca(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{i=e(i,s.action),s=s.next}while(s!==o);ur(i,t.memoizedState)||(Na=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function pa(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=(Zi&e)===e)&&(t._workInProgressVersionPrimary=r,$i.push(t))),e)return n(t._source);throw $i.push(t),Error(a(350))}function ha(e,t,n,r){var o=Ds;if(null===o)throw Error(a(349));var i=t._getVersion,s=i(t._source),l=Xi.current,c=l.useState((function(){return pa(o,t,n)})),u=c[1],d=c[0];c=na;var f=e.memoizedState,p=f.refs,h=p.getSnapshot,m=f.source;f=f.subscribe;var g=ea;return e.memoizedState={refs:p,source:t,subscribe:r},l.useEffect((function(){p.getSnapshot=n,p.setSnapshot=u;var e=i(t._source);if(!ur(s,e)){e=n(t._source),ur(d,e)||(u(e),e=hl(g),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,a=e;0<a;){var l=31-qt(a),c=1<<l;r[l]|=e,a&=~c}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=hl(g);o.mutableReadLanes|=r&o.pendingLanes}catch(i){n((function(){throw i}))}}))}),[t,r]),ur(h,n)&&ur(m,t)&&ur(f,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:d}).dispatch=u=Ra.bind(null,ea,e),c.queue=e,c.baseQueue=null,d=pa(o,t,n),c.memoizedState=c.baseState=d),d}function ma(e,t,n){return ha(ca(),e,t,n)}function ga(e){var t=la();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ua,lastRenderedState:e}).dispatch=Ra.bind(null,ea,e),[t.memoizedState,e]}function va(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ea.updateQueue)?(t={lastEffect:null},ea.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ya(e){return e={current:e},la().memoizedState=e}function ba(){return ca().memoizedState}function wa(e,t,n,r){var o=la();ea.flags|=e,o.memoizedState=va(1|t,n,void 0,void 0===r?null:r)}function xa(e,t,n,r){var o=ca();r=void 0===r?null:r;var i=void 0;if(null!==ta){var a=ta.memoizedState;if(i=a.destroy,null!==r&&aa(r,a.deps))return void va(t,n,i,r)}ea.flags|=e,o.memoizedState=va(1|t,n,i,r)}function Aa(e,t){return wa(516,4,e,t)}function Sa(e,t){return xa(516,4,e,t)}function _a(e,t){return xa(4,2,e,t)}function ka(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ca(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,xa(4,2,ka.bind(null,t,e),n)}function Ea(){}function Oa(e,t){var n=ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&aa(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ta(e,t){var n=ca();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&aa(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ia(e,t){var n=Ho();Go(98>n?98:n,(function(){e(!0)})),Go(97<n?97:n,(function(){var n=Ji.transition;Ji.transition=1;try{e(!1),t()}finally{Ji.transition=n}}))}function Ra(e,t,n){var r=pl(),o=hl(e),i={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===ea||null!==a&&a===ea)oa=ra=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,l=a(s,n);if(i.eagerReducer=a,i.eagerState=l,ur(l,s))return}catch(c){}ml(e,o,r)}}var Pa={readContext:si,useCallback:ia,useContext:ia,useEffect:ia,useImperativeHandle:ia,useLayoutEffect:ia,useMemo:ia,useReducer:ia,useRef:ia,useState:ia,useDebugValue:ia,useDeferredValue:ia,useTransition:ia,useMutableSource:ia,useOpaqueIdentifier:ia,unstable_isNewReconciler:!1},Ma={readContext:si,useCallback:function(e,t){return la().memoizedState=[e,void 0===t?null:t],e},useContext:si,useEffect:Aa,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,wa(4,2,ka.bind(null,t,e),n)},useLayoutEffect:function(e,t){return wa(4,2,e,t)},useMemo:function(e,t){var n=la();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=la();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ra.bind(null,ea,e),[r.memoizedState,e]},useRef:ya,useState:ga,useDebugValue:Ea,useDeferredValue:function(e){var t=ga(e),n=t[0],r=t[1];return Aa((function(){var t=Ji.transition;Ji.transition=1;try{r(e)}finally{Ji.transition=t}}),[e]),n},useTransition:function(){var e=ga(!1),t=e[0];return ya(e=Ia.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=la();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ha(r,e,t,n)},useOpaqueIdentifier:function(){if(Ui){var e=!1,t=function(e){return{$$typeof:L,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Qr++).toString(36))),Error(a(355))})),n=ga(t)[1];return 0===(2&ea.mode)&&(ea.flags|=516,va(5,(function(){n("r:"+(Qr++).toString(36))}),void 0,null)),t}return ga(t="r:"+(Qr++).toString(36)),t},unstable_isNewReconciler:!1},Da={readContext:si,useCallback:Oa,useContext:si,useEffect:Sa,useImperativeHandle:Ca,useLayoutEffect:_a,useMemo:Ta,useReducer:da,useRef:ba,useState:function(){return da(ua)},useDebugValue:Ea,useDeferredValue:function(e){var t=da(ua),n=t[0],r=t[1];return Sa((function(){var t=Ji.transition;Ji.transition=1;try{r(e)}finally{Ji.transition=t}}),[e]),n},useTransition:function(){var e=da(ua)[0];return[ba().current,e]},useMutableSource:ma,useOpaqueIdentifier:function(){return da(ua)[0]},unstable_isNewReconciler:!1},La={readContext:si,useCallback:Oa,useContext:si,useEffect:Sa,useImperativeHandle:Ca,useLayoutEffect:_a,useMemo:Ta,useReducer:fa,useRef:ba,useState:function(){return fa(ua)},useDebugValue:Ea,useDeferredValue:function(e){var t=fa(ua),n=t[0],r=t[1];return Sa((function(){var t=Ji.transition;Ji.transition=1;try{r(e)}finally{Ji.transition=t}}),[e]),n},useTransition:function(){var e=fa(ua)[0];return[ba().current,e]},useMutableSource:ma,useOpaqueIdentifier:function(){return fa(ua)[0]},unstable_isNewReconciler:!1},ja=x.ReactCurrentOwner,Na=!1;function Fa(e,t,n,r){t.child=null===e?Oi(t,null,n,r):Ei(t,e.child,n,r)}function za(e,t,n,r,o){n=n.render;var i=t.ref;return ai(t,o),r=sa(e,t,n,r,i,o),null===e||Na?(t.flags|=1,Fa(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,as(e,t,o))}function Ba(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!==typeof a||Yl(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Kl(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Va(e,t,a,r,o,i))}return a=e.child,0===(o&i)&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:fr)(o,r)&&e.ref===t.ref)?as(e,t,i):(t.flags|=1,(e=Gl(a,r)).ref=t.ref,e.return=t,t.child=e)}function Va(e,t,n,r,o,i){if(null!==e&&fr(e.memoizedProps,r)&&e.ref===t.ref){if(Na=!1,0===(i&o))return t.lanes=e.lanes,as(e,t,i);0!==(16384&e.flags)&&(Na=!0)}return qa(e,t,n,r,i)}function Ua(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},Sl(t,n);else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},Sl(t,e),null;t.memoizedState={baseLanes:0},Sl(t,null!==i?i.baseLanes:n)}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Sl(t,r);return Fa(e,t,o,n),t.child}function Wa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function qa(e,t,n,r,o){var i=yo(n)?go:ho.current;return i=vo(t,i),ai(t,o),n=sa(e,t,n,r,i,o),null===e||Na?(t.flags|=1,Fa(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,as(e,t,o))}function Ha(e,t,n,r,o){if(yo(n)){var i=!0;Ao(t)}else i=!1;if(ai(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),wi(t,n,r),Ai(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=si(c):c=vo(t,c=yo(n)?go:ho.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||l!==c)&&xi(t,a,r,c),li=!1;var f=t.memoizedState;a.state=f,hi(t,r,a,o),l=t.memoizedState,s!==r||f!==l||mo.current||li?("function"===typeof u&&(vi(t,n,u,r),l=t.memoizedState),(s=li||bi(t,n,s,r,f,l,c))?(d||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4)):("function"===typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,ui(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Jo(t.type,s),a.props=c,d=t.pendingProps,f=a.context,"object"===typeof(l=n.contextType)&&null!==l?l=si(l):l=vo(t,l=yo(n)?go:ho.current);var p=n.getDerivedStateFromProps;(u="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==d||f!==l)&&xi(t,a,r,l),li=!1,f=t.memoizedState,a.state=f,hi(t,r,a,o);var h=t.memoizedState;s!==d||f!==h||mo.current||li?("function"===typeof p&&(vi(t,n,p,r),h=t.memoizedState),(c=li||bi(t,n,c,r,f,h,l))?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return Ya(e,t,n,r,i,o)}function Ya(e,t,n,r,o,i){Wa(e,t);var a=0!==(64&t.flags);if(!r&&!a)return o&&So(t,n,!1),as(e,t,i);r=t.stateNode,ja.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Ei(t,e.child,null,i),t.child=Ei(t,null,s,i)):Fa(e,t,s,i),t.memoizedState=r.state,o&&So(t,n,!0),t.child}function Ga(e){var t=e.stateNode;t.pendingContext?wo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&wo(0,t.context,!1),Di(e,t.containerInfo)}var Ka,$a,Qa,Xa,Ja={dehydrated:null,retryLane:0};function Za(e,t,n){var r,o=t.pendingProps,i=Fi.current,a=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&i)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(i|=1),fo(Fi,1&i),null===e?(void 0!==o.fallback&&Hi(t),e=o.children,i=o.fallback,a?(e=es(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ja,e):"number"===typeof o.unstable_expectedLoadTime?(e=es(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ja,t.lanes=33554432,e):((n=Ql({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(o=ns(e,t,o.children,o.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=null===i?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Ja,o):(n=ts(e,t,o.children,n),t.memoizedState=null,n))}function es(e,t,n,r){var o=e.mode,i=e.child;return t={mode:"hidden",children:t},0===(2&o)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=Ql(t,o,0,null),n=$l(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function ts(e,t,n,r){var o=e.child;return e=o.sibling,n=Gl(o,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function ns(e,t,n,r,o){var i=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 0===(2&i)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Gl(a,s),null!==e?r=Gl(e,r):(r=$l(r,i,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function rs(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ii(e.return,t)}function os(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.lastEffect=i)}function is(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Fa(e,t,r.children,n),0!==(2&(r=Fi.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&rs(e,n);else if(19===e.tag)rs(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(fo(Fi,r),0===(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===zi(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),os(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===zi(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}os(t,!0,n,null,i,t.lastEffect);break;case"together":os(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function as(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Us|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Gl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Gl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function ss(e,t){if(!Ui)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ls(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return yo(t.type)&&bo(),null;case 3:return Li(),uo(mo),uo(ho),Qi(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Gi(t)?t.flags|=4:r.hydrate||(t.flags|=256)),$a(t),null;case 5:Ni(t);var i=Mi(Pi.current);if(n=t.type,null!==e&&null!=t.stateNode)Qa(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Mi(Ii.current),Gi(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Jr]=t,r[Zr]=s,n){case"dialog":Ir("cancel",r),Ir("close",r);break;case"iframe":case"object":case"embed":Ir("load",r);break;case"video":case"audio":for(e=0;e<Cr.length;e++)Ir(Cr[e],r);break;case"source":Ir("error",r);break;case"img":case"image":case"link":Ir("error",r),Ir("load",r);break;case"details":Ir("toggle",r);break;case"input":ee(r,s),Ir("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Ir("invalid",r);break;case"textarea":le(r,s),Ir("invalid",r)}for(var c in _e(n,s),e=null,s)s.hasOwnProperty(c)&&(i=s[c],"children"===c?"string"===typeof i?r.textContent!==i&&(e=["children",i]):"number"===typeof i&&r.textContent!==""+i&&(e=["children",""+i]):l.hasOwnProperty(c)&&null!=i&&"onScroll"===c&&Ir("scroll",r));switch(n){case"input":Q(r),re(r,s,!0);break;case"textarea":Q(r),ue(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=Br)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(c=9===i.nodeType?i:i.ownerDocument,e===de&&(e=pe(n)),e===de?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[Jr]=t,e[Zr]=r,Ka(e,t,!1,!1),t.stateNode=e,c=ke(n,r),n){case"dialog":Ir("cancel",e),Ir("close",e),i=r;break;case"iframe":case"object":case"embed":Ir("load",e),i=r;break;case"video":case"audio":for(i=0;i<Cr.length;i++)Ir(Cr[i],e);i=r;break;case"source":Ir("error",e),i=r;break;case"img":case"image":case"link":Ir("error",e),Ir("load",e),i=r;break;case"details":Ir("toggle",e),i=r;break;case"input":ee(e,r),i=Z(e,r),Ir("invalid",e);break;case"option":i=ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=o({},r,{value:void 0}),Ir("invalid",e);break;case"textarea":le(e,r),i=se(e,r),Ir("invalid",e);break;default:i=r}_e(n,i);var u=i;for(s in u)if(u.hasOwnProperty(s)){var d=u[s];"style"===s?Ae(e,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&ve(e,d):"children"===s?"string"===typeof d?("textarea"!==n||""!==d)&&ye(e,d):"number"===typeof d&&ye(e,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(l.hasOwnProperty(s)?null!=d&&"onScroll"===s&&Ir("scroll",e):null!=d&&w(e,s,d,c))}switch(n){case"input":Q(e),re(e,r,!1);break;case"textarea":Q(e),ue(e);break;case"option":null!=r.value&&e.setAttribute("value",""+K(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ae(e,!!r.multiple,s,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Br)}Wr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Xa(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));n=Mi(Pi.current),Mi(Ii.current),Gi(t)?(r=t.stateNode,n=t.memoizedProps,r[Jr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Jr]=t,t.stateNode=r)}return null;case 13:return uo(Fi),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Gi(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Fi.current)?0===zs&&(zs=3):(0!==zs&&3!==zs||(zs=4),null===Ds||0===(134217727&Us)&&0===(134217727&Ws)||bl(Ds,js))),(r||n)&&(t.flags|=4),null);case 4:return Li(),$a(t),null===e&&Pr(t.stateNode.containerInfo),null;case 10:return oi(t),null;case 19:if(uo(Fi),null===(r=t.memoizedState))return null;if(s=0!==(64&t.flags),null===(c=r.rendering))if(s)ss(r,!1);else{if(0!==zs||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(c=zi(e))){for(t.flags|=64,ss(r,!1),null!==(s=c.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(c=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return fo(Fi,1&Fi.current|2),t.child}e=e.sibling}null!==r.tail&&qo()>Gs&&(t.flags|=64,s=!0,ss(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=zi(c))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ss(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate&&!Ui)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*qo()-r.renderingStartTime>Gs&&1073741824!==n&&(t.flags|=64,s=!0,ss(r,!1),t.lanes=33554432);r.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=r.last)?n.sibling=c:t.child=c,r.last=c)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=qo(),n.sibling=null,t=Fi.current,fo(Fi,s?1&t|2:1&t),n):null;case 23:case 24:return _l(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function cs(e){switch(e.tag){case 1:yo(e.type)&&bo();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Li(),uo(mo),uo(ho),Qi(),0!==(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Ni(e),null;case 13:return uo(Fi),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return uo(Fi),null;case 4:return Li(),null;case 10:return oi(e),null;case 23:case 24:return _l(),null;default:return null}}function us(e,t){try{var n="",r=t;do{n+=Y(r),r=r.return}while(r);var o=n}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}Ka=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},$a=function(){},Qa=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Mi(Ii.current);var a,s=null;switch(n){case"input":i=Z(e,i),r=Z(e,r),s=[];break;case"option":i=ie(e,i),r=ie(e,r),s=[];break;case"select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),s=[];break;case"textarea":i=se(e,i),r=se(e,r),s=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Br)}for(d in _e(n,r),n=null,i)if(!r.hasOwnProperty(d)&&i.hasOwnProperty(d)&&null!=i[d])if("style"===d){var c=i[d];for(a in c)c.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(l.hasOwnProperty(d)?s||(s=[]):(s=s||[]).push(d,null));for(d in r){var u=r[d];if(c=null!=i?i[d]:void 0,r.hasOwnProperty(d)&&u!==c&&(null!=u||null!=c))if("style"===d)if(c){for(a in c)!c.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&c[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(s||(s=[]),s.push(d,n)),n=u;else"dangerouslySetInnerHTML"===d?(u=u?u.__html:void 0,c=c?c.__html:void 0,null!=u&&c!==u&&(s=s||[]).push(d,u)):"children"===d?"string"!==typeof u&&"number"!==typeof u||(s=s||[]).push(d,""+u):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(l.hasOwnProperty(d)?(null!=u&&"onScroll"===d&&Ir("scroll",e),s||c===u||(s=[])):"object"===typeof u&&null!==u&&u.$$typeof===L?u.toString():(s=s||[]).push(d,u))}n&&(s=s||[]).push("style",n);var d=s;(t.updateQueue=d)&&(t.flags|=4)}},Xa=function(e,t,n,r){n!==r&&(t.flags|=4)};var fs="function"===typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=di(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Xs||(Xs=!0,Js=r),ds(0,t)},n}function hs(e,t,n){(n=di(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var o=t.value;n.payload=function(){return ds(0,t),r(o)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Zs?Zs=new Set([this]):Zs.add(this),ds(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ms="function"===typeof WeakSet?WeakSet:Set;function gs(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Vl(e,n)}else t.current=null}function vs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Jo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Gr(t.stateNode.containerInfo))}throw Error(a(163))}function ys(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!==(4&(o=o.tag))&&0!==(1&o)&&(Fl(n,e),Nl(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Jo(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&mi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}mi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Wr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&At(n)))))}throw Error(a(163))}function bs(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=void 0!==o&&null!==o&&o.hasOwnProperty("display")?o.display:null,r.style.display=xe("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function ws(e,t){if(ko&&"function"===typeof ko.onCommitFiberUnmount)try{ko.onCommitFiberUnmount(_o,t)}catch(i){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!==(4&r))Fl(t,n);else{r=t;try{o()}catch(i){Vl(r,i)}}n=n.next}while(n!==e)}break;case 1:if(gs(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(i){Vl(t,i)}break;case 5:gs(t);break;case 4:Cs(e,t)}}function xs(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function As(e){return 5===e.tag||3===e.tag||4===e.tag}function Ss(e){e:{for(var t=e.return;null!==t;){if(As(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(ye(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||As(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?_s(e,n,t):ks(e,n,t)}function _s(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Br));else if(4!==r&&null!==(e=e.child))for(_s(e,t,n),e=e.sibling;null!==e;)_s(e,t,n),e=e.sibling}function ks(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ks(e,t,n),e=e.sibling;null!==e;)ks(e,t,n),e=e.sibling}function Cs(e,t){for(var n,r,o=t,i=!1;;){if(!i){i=o.return;e:for(;;){if(null===i)throw Error(a(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===o.tag||6===o.tag){e:for(var s=e,l=o,c=l;;)if(ws(s,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===l)break e;for(;null===c.sibling;){if(null===c.return||c.return===l)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r?(s=n,l=o.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(ws(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(i=!1)}o.sibling.return=o.return,o=o.sibling}}function Es(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Zr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),ke(e,o),t=ke(e,r),o=0;o<i.length;o+=2){var s=i[o],l=i[o+1];"style"===s?Ae(n,l):"dangerouslySetInnerHTML"===s?ve(n,l):"children"===s?ye(n,l):w(n,s,l,t)}switch(e){case"input":ne(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(i=r.value)?ae(n,!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,At(n.containerInfo)));case 13:return null!==t.memoizedState&&(Ys=qo(),bs(t.child,!0)),void Os(t);case 19:return void Os(t);case 23:case 24:return void bs(t,null!==t.memoizedState)}throw Error(a(163))}function Os(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ms),t.forEach((function(t){var r=Wl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ts(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Is=Math.ceil,Rs=x.ReactCurrentDispatcher,Ps=x.ReactCurrentOwner,Ms=0,Ds=null,Ls=null,js=0,Ns=0,Fs=co(0),zs=0,Bs=null,Vs=0,Us=0,Ws=0,qs=0,Hs=null,Ys=0,Gs=1/0;function Ks(){Gs=qo()+500}var $s,Qs=null,Xs=!1,Js=null,Zs=null,el=!1,tl=null,nl=90,rl=[],ol=[],il=null,al=0,sl=null,ll=-1,cl=0,ul=0,dl=null,fl=!1;function pl(){return 0!==(48&Ms)?qo():-1!==ll?ll:ll=qo()}function hl(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===Ho()?1:2;if(0===cl&&(cl=Vs),0!==Xo.transition){0!==ul&&(ul=null!==Hs?Hs.pendingLanes:0),e=cl;var t=4186112&~ul;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Ho(),0!==(4&Ms)&&98===e?e=Bt(12,cl):e=Bt(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),cl),e}function ml(e,t,n){if(50<al)throw al=0,sl=null,Error(a(185));if(null===(e=gl(e,t)))return null;Wt(e,t,n),e===Ds&&(Ws|=t,4===zs&&bl(e,js));var r=Ho();1===t?0!==(8&Ms)&&0===(48&Ms)?wl(e):(vl(e,n),0===Ms&&(Ks(),$o())):(0===(4&Ms)||98!==r&&99!==r||(null===il?il=new Set([e]):il.add(e)),vl(e,n)),Hs=e}function gl(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function vl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-qt(s),c=1<<l,u=i[l];if(-1===u){if(0===(c&r)||0!==(c&o)){u=t,Nt(c);var d=jt;i[l]=10<=d?u+250:6<=d?u+5e3:-1}}else u<=t&&(e.expiredLanes|=c);s&=~c}if(r=Ft(e,e===Ds?js:0),t=jt,0===r)null!==n&&(n!==Fo&&Oo(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Fo&&Oo(n)}15===t?(n=wl.bind(null,e),null===Bo?(Bo=[n],Vo=Eo(Mo,Qo)):Bo.push(n),n=Fo):14===t?n=Ko(99,wl.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),n=Ko(n,yl.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function yl(e){if(ll=-1,ul=cl=0,0!==(48&Ms))throw Error(a(327));var t=e.callbackNode;if(jl()&&e.callbackNode!==t)return null;var n=Ft(e,e===Ds?js:0);if(0===n)return null;var r=n,o=Ms;Ms|=16;var i=El();for(Ds===e&&js===r||(Ks(),kl(e,r));;)try{Il();break}catch(l){Cl(e,l)}if(ri(),Rs.current=i,Ms=o,null!==Ls?r=0:(Ds=null,js=0,r=zs),0!==(Vs&Ws))kl(e,0);else if(0!==r){if(2===r&&(Ms|=64,e.hydrate&&(e.hydrate=!1,Gr(e.containerInfo)),0!==(n=zt(e))&&(r=Ol(e,n))),1===r)throw t=Bs,kl(e,0),bl(e,n),vl(e,qo()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:case 5:Ml(e);break;case 3:if(bl(e,n),(62914560&n)===n&&10<(r=Ys+500-qo())){if(0!==Ft(e,0))break;if(((o=e.suspendedLanes)&n)!==n){pl(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Hr(Ml.bind(null,e),r);break}Ml(e);break;case 4:if(bl(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var s=31-qt(n);i=1<<s,(s=r[s])>o&&(o=s),n&=~i}if(n=o,10<(n=(120>(n=qo()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Is(n/1960))-n)){e.timeoutHandle=Hr(Ml.bind(null,e),n);break}Ml(e);break;default:throw Error(a(329))}}return vl(e,qo()),e.callbackNode===t?yl.bind(null,e):null}function bl(e,t){for(t&=~qs,t&=~Ws,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-qt(t),r=1<<n;e[n]=-1,t&=~r}}function wl(e){if(0!==(48&Ms))throw Error(a(327));if(jl(),e===Ds&&0!==(e.expiredLanes&js)){var t=js,n=Ol(e,t);0!==(Vs&Ws)&&(n=Ol(e,t=Ft(e,t)))}else n=Ol(e,t=Ft(e,0));if(0!==e.tag&&2===n&&(Ms|=64,e.hydrate&&(e.hydrate=!1,Gr(e.containerInfo)),0!==(t=zt(e))&&(n=Ol(e,t))),1===n)throw n=Bs,kl(e,0),bl(e,t),vl(e,qo()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ml(e),vl(e,qo()),null}function xl(e,t){var n=Ms;Ms|=1;try{return e(t)}finally{0===(Ms=n)&&(Ks(),$o())}}function Al(e,t){var n=Ms;Ms&=-2,Ms|=8;try{return e(t)}finally{0===(Ms=n)&&(Ks(),$o())}}function Sl(e,t){fo(Fs,Ns),Ns|=t,Vs|=t}function _l(){Ns=Fs.current,uo(Fs)}function kl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Yr(n)),null!==Ls)for(n=Ls.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&bo();break;case 3:Li(),uo(mo),uo(ho),Qi();break;case 5:Ni(r);break;case 4:Li();break;case 13:case 19:uo(Fi);break;case 10:oi(r);break;case 23:case 24:_l()}n=n.return}Ds=e,Ls=Gl(e.current,null),js=Ns=Vs=t,zs=0,Bs=null,qs=Ws=Us=0}function Cl(e,t){for(;;){var n=Ls;try{if(ri(),Xi.current=Pa,ra){for(var r=ea.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ra=!1}if(Zi=0,na=ta=ea=null,oa=!1,Ps.current=null,null===n||null===n.return){zs=1,Bs=t,Ls=null;break}e:{var i=e,a=n.return,s=n,l=t;if(t=js,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"===typeof l&&"function"===typeof l.then){var c=l;if(0===(2&s.mode)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.lanes=u.lanes):(s.updateQueue=null,s.memoizedState=null)}var d=0!==(1&Fi.current),f=a;do{var p;if(p=13===f.tag){var h=f.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var m=f.memoizedProps;p=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!d)}}if(p){var g=f.updateQueue;if(null===g){var v=new Set;v.add(c),f.updateQueue=v}else g.add(c);if(0===(2&f.mode)){if(f.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=di(-1,1);y.tag=2,fi(s,y)}s.lanes|=1;break e}l=void 0,s=t;var b=i.pingCache;if(null===b?(b=i.pingCache=new fs,l=new Set,b.set(c,l)):void 0===(l=b.get(c))&&(l=new Set,b.set(c,l)),!l.has(s)){l.add(s);var w=Ul.bind(null,i,c,s);c.then(w,w)}f.flags|=4096,f.lanes=t;break e}f=f.return}while(null!==f);l=Error((G(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==zs&&(zs=2),l=us(l,s),f=a;do{switch(f.tag){case 3:i=l,f.flags|=4096,t&=-t,f.lanes|=t,pi(f,ps(0,i,t));break e;case 1:i=l;var x=f.type,A=f.stateNode;if(0===(64&f.flags)&&("function"===typeof x.getDerivedStateFromError||null!==A&&"function"===typeof A.componentDidCatch&&(null===Zs||!Zs.has(A)))){f.flags|=4096,t&=-t,f.lanes|=t,pi(f,hs(f,i,t));break e}}f=f.return}while(null!==f)}Pl(n)}catch(S){t=S,Ls===n&&null!==n&&(Ls=n=n.return);continue}break}}function El(){var e=Rs.current;return Rs.current=Pa,null===e?Pa:e}function Ol(e,t){var n=Ms;Ms|=16;var r=El();for(Ds===e&&js===t||kl(e,t);;)try{Tl();break}catch(o){Cl(e,o)}if(ri(),Ms=n,Rs.current=r,null!==Ls)throw Error(a(261));return Ds=null,js=0,zs}function Tl(){for(;null!==Ls;)Rl(Ls)}function Il(){for(;null!==Ls&&!To();)Rl(Ls)}function Rl(e){var t=$s(e.alternate,e,Ns);e.memoizedProps=e.pendingProps,null===t?Pl(e):Ls=t,Ps.current=null}function Pl(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=ls(n,t,Ns)))return void(Ls=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&Ns)||0===(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=cs(t)))return n.flags&=2047,void(Ls=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ls=t);Ls=t=e}while(null!==t);0===zs&&(zs=5)}function Ml(e){var t=Ho();return Go(99,Dl.bind(null,e,t)),null}function Dl(e,t){do{jl()}while(null!==tl);if(0!==(48&Ms))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,i=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var s=e.eventTimes,l=e.expirationTimes;0<i;){var c=31-qt(i),u=1<<c;o[c]=0,s[c]=-1,l[c]=-1,i&=~u}if(null!==il&&0===(24&r)&&il.has(e)&&il.delete(e),e===Ds&&(Ls=Ds=null,js=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=Ms,Ms|=32,Ps.current=null,Vr=$t,vr(s=gr())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&0!==u.rangeCount){l=u.anchorNode,i=u.anchorOffset,c=u.focusNode,u=u.focusOffset;try{l.nodeType,c.nodeType}catch(C){l=null;break e}var d=0,f=-1,p=-1,h=0,m=0,g=s,v=null;t:for(;;){for(var y;g!==l||0!==i&&3!==g.nodeType||(f=d+i),g!==c||0!==u&&3!==g.nodeType||(p=d+u),3===g.nodeType&&(d+=g.nodeValue.length),null!==(y=g.firstChild);)v=g,g=y;for(;;){if(g===s)break t;if(v===l&&++h===i&&(f=d),v===c&&++m===u&&(p=d),null!==(y=g.nextSibling))break;v=(g=v).parentNode}g=y}l=-1===f||-1===p?null:{start:f,end:p}}else l=null;l=l||{start:0,end:0}}else l=null;Ur={focusedElem:s,selectionRange:l},$t=!1,dl=null,fl=!1,Qs=r;do{try{Ll()}catch(C){if(null===Qs)throw Error(a(330));Vl(Qs,C),Qs=Qs.nextEffect}}while(null!==Qs);dl=null,Qs=r;do{try{for(s=e;null!==Qs;){var b=Qs.flags;if(16&b&&ye(Qs.stateNode,""),128&b){var w=Qs.alternate;if(null!==w){var x=w.ref;null!==x&&("function"===typeof x?x(null):x.current=null)}}switch(1038&b){case 2:Ss(Qs),Qs.flags&=-3;break;case 6:Ss(Qs),Qs.flags&=-3,Es(Qs.alternate,Qs);break;case 1024:Qs.flags&=-1025;break;case 1028:Qs.flags&=-1025,Es(Qs.alternate,Qs);break;case 4:Es(Qs.alternate,Qs);break;case 8:Cs(s,l=Qs);var A=l.alternate;xs(l),null!==A&&xs(A)}Qs=Qs.nextEffect}}catch(C){if(null===Qs)throw Error(a(330));Vl(Qs,C),Qs=Qs.nextEffect}}while(null!==Qs);if(x=Ur,w=gr(),b=x.focusedElem,s=x.selectionRange,w!==b&&b&&b.ownerDocument&&mr(b.ownerDocument.documentElement,b)){null!==s&&vr(b)&&(w=s.start,void 0===(x=s.end)&&(x=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(x,b.value.length)):(x=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(x=x.getSelection(),l=b.textContent.length,A=Math.min(s.start,l),s=void 0===s.end?A:Math.min(s.end,l),!x.extend&&A>s&&(l=s,s=A,A=l),l=hr(b,A),i=hr(b,s),l&&i&&(1!==x.rangeCount||x.anchorNode!==l.node||x.anchorOffset!==l.offset||x.focusNode!==i.node||x.focusOffset!==i.offset)&&((w=w.createRange()).setStart(l.node,l.offset),x.removeAllRanges(),A>s?(x.addRange(w),x.extend(i.node,i.offset)):(w.setEnd(i.node,i.offset),x.addRange(w))))),w=[];for(x=b;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;b<w.length;b++)(x=w[b]).element.scrollLeft=x.left,x.element.scrollTop=x.top}$t=!!Vr,Ur=Vr=null,e.current=n,Qs=r;do{try{for(b=e;null!==Qs;){var S=Qs.flags;if(36&S&&ys(b,Qs.alternate,Qs),128&S){w=void 0;var _=Qs.ref;if(null!==_){var k=Qs.stateNode;Qs.tag,w=k,"function"===typeof _?_(w):_.current=w}}Qs=Qs.nextEffect}}catch(C){if(null===Qs)throw Error(a(330));Vl(Qs,C),Qs=Qs.nextEffect}}while(null!==Qs);Qs=null,zo(),Ms=o}else e.current=n;if(el)el=!1,tl=e,nl=t;else for(Qs=r;null!==Qs;)t=Qs.nextEffect,Qs.nextEffect=null,8&Qs.flags&&((S=Qs).sibling=null,S.stateNode=null),Qs=t;if(0===(r=e.pendingLanes)&&(Zs=null),1===r?e===sl?al++:(al=0,sl=e):al=0,n=n.stateNode,ko&&"function"===typeof ko.onCommitFiberRoot)try{ko.onCommitFiberRoot(_o,n,void 0,64===(64&n.current.flags))}catch(C){}if(vl(e,qo()),Xs)throw Xs=!1,e=Js,Js=null,e;return 0!==(8&Ms)||$o(),null}function Ll(){for(;null!==Qs;){var e=Qs.alternate;fl||null===dl||(0!==(8&Qs.flags)?et(Qs,dl)&&(fl=!0):13===Qs.tag&&Ts(e,Qs)&&et(Qs,dl)&&(fl=!0));var t=Qs.flags;0!==(256&t)&&vs(e,Qs),0===(512&t)||el||(el=!0,Ko(97,(function(){return jl(),null}))),Qs=Qs.nextEffect}}function jl(){if(90!==nl){var e=97<nl?97:nl;return nl=90,Go(e,zl)}return!1}function Nl(e,t){rl.push(t,e),el||(el=!0,Ko(97,(function(){return jl(),null})))}function Fl(e,t){ol.push(t,e),el||(el=!0,Ko(97,(function(){return jl(),null})))}function zl(){if(null===tl)return!1;var e=tl;if(tl=null,0!==(48&Ms))throw Error(a(331));var t=Ms;Ms|=32;var n=ol;ol=[];for(var r=0;r<n.length;r+=2){var o=n[r],i=n[r+1],s=o.destroy;if(o.destroy=void 0,"function"===typeof s)try{s()}catch(c){if(null===i)throw Error(a(330));Vl(i,c)}}for(n=rl,rl=[],r=0;r<n.length;r+=2){o=n[r],i=n[r+1];try{var l=o.create;o.destroy=l()}catch(c){if(null===i)throw Error(a(330));Vl(i,c)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Ms=t,$o(),!0}function Bl(e,t,n){fi(e,t=ps(0,t=us(n,t),1)),t=pl(),null!==(e=gl(e,1))&&(Wt(e,1,t),vl(e,t))}function Vl(e,t){if(3===e.tag)Bl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Bl(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Zs||!Zs.has(r))){var o=hs(n,e=us(t,e),1);if(fi(n,o),o=pl(),null!==(n=gl(n,1)))Wt(n,1,o),vl(n,o);else if("function"===typeof r.componentDidCatch&&(null===Zs||!Zs.has(r)))try{r.componentDidCatch(t,e)}catch(i){}break}}n=n.return}}function Ul(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=pl(),e.pingedLanes|=e.suspendedLanes&n,Ds===e&&(js&n)===n&&(4===zs||3===zs&&(62914560&js)===js&&500>qo()-Ys?kl(e,0):qs|=n),vl(e,t)}function Wl(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===Ho()?1:2:(0===cl&&(cl=Vs),0===(t=Vt(62914560&~cl))&&(t=4194304))),n=pl(),null!==(e=gl(e,t))&&(Wt(e,t,n),vl(e,n))}function ql(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Hl(e,t,n,r){return new ql(e,t,n,r)}function Yl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Gl(e,t){var n=e.alternate;return null===n?((n=Hl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Kl(e,t,n,r,o,i){var s=2;if(r=e,"function"===typeof e)Yl(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case _:return $l(n.children,o,i,t);case j:s=8,o|=16;break;case k:s=8,o|=1;break;case C:return(e=Hl(12,n,t,8|o)).elementType=C,e.type=C,e.lanes=i,e;case I:return(e=Hl(13,n,t,o)).type=I,e.elementType=I,e.lanes=i,e;case R:return(e=Hl(19,n,t,o)).elementType=R,e.lanes=i,e;case N:return Ql(n,o,i,t);case F:return(e=Hl(24,n,t,o)).elementType=F,e.lanes=i,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case E:s=10;break e;case O:s=9;break e;case T:s=11;break e;case P:s=14;break e;case M:s=16,r=null;break e;case D:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Hl(s,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function $l(e,t,n,r){return(e=Hl(7,e,r,t)).lanes=n,e}function Ql(e,t,n,r){return(e=Hl(23,e,r,t)).elementType=N,e.lanes=n,e}function Xl(e,t,n){return(e=Hl(6,e,null,t)).lanes=n,e}function Jl(e,t,n){return(t=Hl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zl(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ut(0),this.expirationTimes=Ut(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ut(0),this.mutableSourceEagerHydrationData=null}function ec(e,t,n,r){var o=t.current,i=pl(),s=hl(o);e:if(n){t:{if(Qe(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(yo(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var c=n.type;if(yo(c)){n=xo(n,c,l);break e}}n=l}else n=po;return null===t.context?t.context=n:t.pendingContext=n,(t=di(i,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),fi(o,t),ml(o,s,i),s}function tc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function nc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function rc(e,t){nc(e,t),(e=e.alternate)&&nc(e,t)}function oc(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Zl(e,t,null!=n&&!0===n.hydrate),t=Hl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ci(t),e[eo]=n.current,Pr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var o=(t=r[e])._getVersion;o=o(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}function ic(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ac(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"===typeof o){var s=o;o=function(){var e=tc(a);s.call(e)}}ec(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new oc(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"===typeof o){var l=o;o=function(){var e=tc(a);l.call(e)}}Al((function(){ec(t,a,e,o)}))}return tc(a)}function sc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!ic(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}$s=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||mo.current)Na=!0;else{if(0===(n&r)){switch(Na=!1,t.tag){case 3:Ga(t),Ki();break;case 5:ji(t);break;case 1:yo(t.type)&&Ao(t);break;case 4:Di(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;fo(Zo,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Za(e,t,n):(fo(Fi,1&Fi.current),null!==(t=as(e,t,n))?t.sibling:null);fo(Fi,1&Fi.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return is(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),fo(Fi,Fi.current),r)break;return null;case 23:case 24:return t.lanes=0,Ua(e,t,n)}return as(e,t,n)}Na=0!==(16384&e.flags)}else Na=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=vo(t,ho.current),ai(t,n),o=sa(null,t,r,e,o,n),t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,yo(r)){var i=!0;Ao(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ci(t);var s=r.getDerivedStateFromProps;"function"===typeof s&&vi(t,r,s,e),o.updater=yi,t.stateNode=o,o._reactInternals=t,Ai(t,r,e,n),t=Ya(null,t,r,!0,i,n)}else t.tag=0,Fa(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"===typeof e)return Yl(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===T)return 11;if(e===P)return 14}return 2}(o),e=Jo(o,e),i){case 0:t=qa(null,t,o,e,n);break e;case 1:t=Ha(null,t,o,e,n);break e;case 11:t=za(null,t,o,e,n);break e;case 14:t=Ba(null,t,o,Jo(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,qa(e,t,r,o=t.elementType===r?o:Jo(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ha(e,t,r,o=t.elementType===r?o:Jo(r,o),n);case 3:if(Ga(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,ui(e,t),hi(t,r,null,n),(r=t.memoizedState.element)===o)Ki(),t=as(e,t,n);else{if((i=(o=t.stateNode).hydrate)&&(Vi=Kr(t.stateNode.containerInfo.firstChild),Bi=t,i=Ui=!0),i){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(i=e[o])._workInProgressVersionPrimary=e[o+1],$i.push(i);for(n=Oi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Fa(e,t,r,n),Ki();t=t.child}return t;case 5:return ji(t),null===e&&Hi(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,s=o.children,qr(r,o)?s=null:null!==i&&qr(r,i)&&(t.flags|=16),Wa(e,t),Fa(e,t,s,n),t.child;case 6:return null===e&&Hi(t),null;case 13:return Za(e,t,n);case 4:return Di(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ei(t,null,r,n):Fa(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,za(e,t,r,o=t.elementType===r?o:Jo(r,o),n);case 7:return Fa(e,t,t.pendingProps,n),t.child;case 8:case 12:return Fa(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,s=t.memoizedProps,i=o.value;var l=t.type._context;if(fo(Zo,l._currentValue),l._currentValue=i,null!==s)if(l=s.value,0===(i=ur(l,i)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(l,i):1073741823))){if(s.children===o.children&&!mo.current){t=as(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){s=l.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&0!==(u.observedBits&i)){1===l.tag&&((u=di(-1,n&-n)).tag=2,fi(l,u)),l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),ii(l.return,n),c.lanes|=n;break}u=u.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Fa(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ai(t,n),r=r(o=si(o,i.unstable_observedBits)),t.flags|=1,Fa(e,t,r,n),t.child;case 14:return i=Jo(o=t.type,t.pendingProps),Ba(e,t,o,i=Jo(o.type,i),r,n);case 15:return Va(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Jo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,yo(r)?(e=!0,Ao(t)):e=!1,ai(t,n),wi(t,r,o),Ai(t,r,o,n),Ya(null,t,r,!0,e,n);case 19:return is(e,t,n);case 23:case 24:return Ua(e,t,n)}throw Error(a(156,t.tag))},oc.prototype.render=function(e){ec(e,this._internalRoot,null,null)},oc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;ec(null,e,null,(function(){t[eo]=null}))},tt=function(e){13===e.tag&&(ml(e,4,pl()),rc(e,4))},nt=function(e){13===e.tag&&(ml(e,67108864,pl()),rc(e,67108864))},rt=function(e){if(13===e.tag){var t=pl(),n=hl(e);ml(e,n,t),rc(e,n)}},ot=function(e,t){return t()},Ee=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=io(r);if(!o)throw Error(a(90));X(r),ne(r,o)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Me=xl,De=function(e,t,n,r,o){var i=Ms;Ms|=4;try{return Go(98,e.bind(null,t,n,r,o))}finally{0===(Ms=i)&&(Ks(),$o())}},Le=function(){0===(49&Ms)&&(function(){if(null!==il){var e=il;il=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,vl(e,qo())}))}$o()}(),jl())},je=function(e,t){var n=Ms;Ms|=2;try{return e(t)}finally{0===(Ms=n)&&(Ks(),$o())}};var lc={Events:[ro,oo,io,Re,Pe,jl,{current:!1}]},cc={findFiberByHostInstance:no,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},uc={bundleType:cc.bundleType,version:cc.version,rendererPackageName:cc.rendererPackageName,rendererConfig:cc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ze(e))?null:e.stateNode},findFiberByHostInstance:cc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var dc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!dc.isDisabled&&dc.supportsFiber)try{_o=dc.inject(uc),ko=dc}catch(ge){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lc,t.createPortal=sc,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Ze(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Ms;if(0!==(48&n))return e(t);Ms|=1;try{if(e)return Go(99,e.bind(null,t))}finally{Ms=n,$o()}},t.hydrate=function(e,t,n){if(!ic(t))throw Error(a(200));return ac(null,e,t,!0,n)},t.render=function(e,t,n){if(!ic(t))throw Error(a(200));return ac(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!ic(e))throw Error(a(40));return!!e._reactRootContainer&&(Al((function(){ac(null,null,e,!1,(function(){e._reactRootContainer=null,e[eo]=null}))})),!0)},t.unstable_batchedUpdates=xl,t.unstable_createPortal=function(e,t){return sc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!ic(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return ac(e,t,n,!1,r)},t.version="17.0.2"},3989:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(2627)},9963:(e,t)=>{"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case a:case f:case p:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case m:case h:case l:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference"),t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=m,t.Memo=h,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.SuspenseList=p,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return v(e)===c},t.isContextProvider=function(e){return v(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return v(e)===d},t.isFragment=function(e){return v(e)===i},t.isLazy=function(e){return v(e)===m},t.isMemo=function(e){return v(e)===h},t.isPortal=function(e){return v(e)===o},t.isProfiler=function(e){return v(e)===s},t.isStrictMode=function(e){return v(e)===a},t.isSuspense=function(e){return v(e)===f},t.isSuspenseList=function(e){return v(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===s||e===a||e===f||e===p||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===l||e.$$typeof===c||e.$$typeof===d||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=v},5791:(e,t,n)=>{"use strict";e.exports=n(9963)},1972:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,A=Object.prototype.hasOwnProperty,S={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)A.call(t,o)&&!_.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:S.current}}function C(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var E=/\/+/g;function O(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===i?"."+O(l,0):i,x(a)?(o="",null!=e&&(o=e.replace(E,"$&/")+"/"),T(a,t,o,"",(function(e){return e}))):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(E,"$&/")+"/")+e)),t.push(a)),1;if(l=0,i=""===i?".":i+":",x(e))for(var c=0;c<e.length;c++){var u=i+O(s=e[c],c);l+=T(s,t,o,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=T(s=s.value,t,o,u=i+O(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function I(e,t,n){if(null==e)return e;var r=[],o=0;return T(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function R(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},M={transition:null},D={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:M,ReactCurrentOwner:S};function L(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:I,forEach:function(e,t,n){I(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return I(e,(function(){t++})),t},toArray:function(e){return I(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.act=L,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=S.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)A.call(t,c)&&!_.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:R}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},t.unstable_act=L,t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return P.current.useTransition()},t.version="18.3.1"},4997:(e,t,n)=>{"use strict";e.exports=n(1972)},8633:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>W,ty:()=>f,vA:()=>i.unstable_batchedUpdates,Ng:()=>U,bN:()=>j,wA:()=>G,d4:()=>b,Pj:()=>H});var r=n(5884),o=n(142),i=n(3989);let a=function(e){e()};const s=()=>a;var l=n(2176);const c=Symbol.for("react-redux-context"),u="undefined"!==typeof globalThis?globalThis:{};function d(){var e;if(!l.createContext)return{};const t=null!=(e=u[c])?e:u[c]=new Map;let n=t.get(l.createContext);return n||(n=l.createContext(null),t.set(l.createContext,n)),n}const f=d();function p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;return function(){return(0,l.useContext)(e)}}const h=p(),m=()=>{throw new Error("uSES not initialized!")};let g=m;const v=(e,t)=>e===t;function y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;const t=e===f?h:p(e);return function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{equalityFn:r=v,stabilityCheck:o,noopCheck:i}="function"===typeof n?{equalityFn:n}:n;const{store:a,subscription:s,getServerState:c,stabilityCheck:u,noopCheck:d}=t(),f=((0,l.useRef)(!0),(0,l.useCallback)({[e.name]:t=>e(t)}[e.name],[e,u,o])),p=g(s.addNestedSub,a.getState,c||a.getState,f,r);return(0,l.useDebugValue)(p),p}}const b=y();var w=n(9575),x=n(7502),A=n(4502),S=n.n(A),_=n(5791);const k=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function C(e,t,n,r,o){let i,a,s,l,c,{areStatesEqual:u,areOwnPropsEqual:d,areStatePropsEqual:f}=o,p=!1;function h(o,p){const h=!d(p,a),m=!u(o,i,p,a);return i=o,a=p,h&&m?(s=e(i,a),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a),c):h?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(l=t(r,a)),c=n(s,l,a),c):m?function(){const t=e(i,a),r=!f(t,s);return s=t,r&&(c=n(s,l,a)),c}():c}return function(o,u){return p?h(o,u):(i=o,a=u,s=e(i,a),l=t(r,a),c=n(s,l,a),p=!0,c)}}function E(e){return function(t){const n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function O(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function T(e,t){return function(t,n){let{displayName:r}=n;const o=function(e,t){return o.dependsOnOwnProps?o.mapToProps(e,t):o.mapToProps(e,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(t,n){o.mapToProps=e,o.dependsOnOwnProps=O(e);let r=o(t,n);return"function"===typeof r&&(o.mapToProps=r,o.dependsOnOwnProps=O(r),r=o(t,n)),r},o}}function I(e,t){return(n,r)=>{throw new Error("Invalid value of type ".concat(typeof e," for ").concat(t," argument when connecting component ").concat(r.wrappedComponentName,"."))}}function R(e,t,n){return(0,w.A)({},n,e,t)}const P={notify(){},get:()=>[]};function M(e,t){let n,r=P,o=0,i=!1;function a(){u.onStateChange&&u.onStateChange()}function l(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){const e=s();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}function c(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=P)}const u={addNestedSub:function(e){l();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),c())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,l())},tryUnsubscribe:function(){i&&(i=!1,c())},getListeners:()=>r};return u}const D=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement)?l.useLayoutEffect:l.useEffect;function L(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function j(e,t){if(L(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!L(e[n[o]],t[n[o]]))return!1;return!0}const N=["reactReduxForwardedRef"];let F=m;const z=[null,null];function B(e,t,n,r,o,i){e.current=r,n.current=!1,o.current&&(o.current=null,i())}function V(e,t){return e===t}const U=function(e,t,n){let{pure:r,areStatesEqual:o=V,areOwnPropsEqual:i=j,areStatePropsEqual:a=j,areMergedPropsEqual:s=j,forwardRef:c=!1,context:u=f}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const d=u,p=function(e){return e?"function"===typeof e?T(e):I(e,"mapStateToProps"):E((()=>({})))}(e),h=function(e){return e&&"object"===typeof e?E((t=>function(e,t){const n={};for(const r in e){const o=e[r];"function"===typeof o&&(n[r]=function(){return t(o(...arguments))})}return n}(e,t))):e?"function"===typeof e?T(e):I(e,"mapDispatchToProps"):E((e=>({dispatch:e})))}(t),m=function(e){return e?"function"===typeof e?function(e){return function(t,n){let r,{displayName:o,areMergedPropsEqual:i}=n,a=!1;return function(t,n,o){const s=e(t,n,o);return a?i(s,r)||(r=s):(a=!0,r=s),r}}}(e):I(e,"mergeProps"):()=>R}(n),g=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",n="Connect(".concat(t,")"),r={shouldHandleStateChanges:g,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:p,initMapDispatchToProps:h,initMergeProps:m,areStatesEqual:o,areStatePropsEqual:a,areOwnPropsEqual:i,areMergedPropsEqual:s};function u(t){const[n,o,i]=l.useMemo((()=>{const{reactReduxForwardedRef:e}=t,n=(0,x.A)(t,N);return[t.context,e,n]}),[t]),a=l.useMemo((()=>n&&n.Consumer&&(0,_.isContextConsumer)(l.createElement(n.Consumer,null))?n:d),[n,d]),s=l.useContext(a),c=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),u=Boolean(s)&&Boolean(s.store);const f=c?t.store:s.store,p=u?s.getServerState:f.getState,h=l.useMemo((()=>function(e,t){let{initMapStateToProps:n,initMapDispatchToProps:r,initMergeProps:o}=t,i=(0,x.A)(t,k);return C(n(e,i),r(e,i),o(e,i),e,i)}(f.dispatch,r)),[f]),[m,v]=l.useMemo((()=>{if(!g)return z;const e=M(f,c?void 0:s.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[f,c,s]),y=l.useMemo((()=>c?s:(0,w.A)({},s,{subscription:m})),[c,s,m]),b=l.useRef(),A=l.useRef(i),S=l.useRef(),E=l.useRef(!1),O=(l.useRef(!1),l.useRef(!1)),T=l.useRef();D((()=>(O.current=!0,()=>{O.current=!1})),[]);const I=l.useMemo((()=>()=>S.current&&i===A.current?S.current:h(f.getState(),i)),[f,i]),R=l.useMemo((()=>e=>m?function(e,t,n,r,o,i,a,s,l,c,u){if(!e)return()=>{};let d=!1,f=null;const p=()=>{if(d||!s.current)return;const e=t.getState();let n,p;try{n=r(e,o.current)}catch(h){p=h,f=h}p||(f=null),n===i.current?a.current||c():(i.current=n,l.current=n,a.current=!0,u())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}(g,f,m,h,A,b,E,O,S,v,e):()=>{}),[m]);var P,L,j;let V;P=B,L=[A,b,E,i,S,v],D((()=>P(...L)),j);try{V=F(R,I,p?()=>h(p(),i):I)}catch(W){throw T.current&&(W.message+="\nThe error may be correlated with this previous error:\n".concat(T.current.stack,"\n\n")),W}D((()=>{T.current=void 0,S.current=void 0,b.current=V}));const U=l.useMemo((()=>l.createElement(e,(0,w.A)({},V,{ref:o}))),[o,e,V]);return l.useMemo((()=>g?l.createElement(a.Provider,{value:y},U):U),[a,U,y])}const f=l.memo(u);if(f.WrappedComponent=e,f.displayName=u.displayName=n,c){const t=l.forwardRef((function(e,t){return l.createElement(f,(0,w.A)({},e,{reactReduxForwardedRef:t}))}));return t.displayName=n,t.WrappedComponent=e,S()(t,e)}return S()(f,e)}};const W=function(e){let{store:t,context:n,children:r,serverState:o,stabilityCheck:i="once",noopCheck:a="once"}=e;const s=l.useMemo((()=>{const e=M(t);return{store:t,subscription:e,getServerState:o?()=>o:void 0,stabilityCheck:i,noopCheck:a}}),[t,o,i,a]),c=l.useMemo((()=>t.getState()),[t]);D((()=>{const{subscription:e}=s;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}}),[s,c]);const u=n||f;return l.createElement(u.Provider,{value:s},r)};function q(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;const t=e===f?h:p(e);return function(){const{store:e}=t();return e}}const H=q();function Y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;const t=e===f?H:q(e);return function(){return t().dispatch}}const G=Y();var K,$;K=o.useSyncExternalStoreWithSelector,g=K,(e=>{F=e})(r.useSyncExternalStore),$=i.unstable_batchedUpdates,a=$},4940:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,A=Object.prototype.hasOwnProperty,S={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function k(e,t,r){var o,i={},a=null,s=null;if(null!=t)for(o in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)A.call(t,o)&&!_.hasOwnProperty(o)&&(i[o]=t[o]);var l=arguments.length-2;if(1===l)i.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(o in l=e.defaultProps)void 0===i[o]&&(i[o]=l[o]);return{$$typeof:n,type:e,key:a,ref:s,props:i,_owner:S.current}}function C(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var E=/\/+/g;function O(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function T(e,t,o,i,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return a=a(l=e),e=""===i?"."+O(l,0):i,x(a)?(o="",null!=e&&(o=e.replace(E,"$&/")+"/"),T(a,t,o,"",(function(e){return e}))):null!=a&&(C(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(E,"$&/")+"/")+e)),t.push(a)),1;if(l=0,i=""===i?".":i+":",x(e))for(var c=0;c<e.length;c++){var u=i+O(s=e[c],c);l+=T(s,t,o,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=T(s=s.value,t,o,u=i+O(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function I(e,t,n){if(null==e)return e;var r=[],o=0;return T(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function R(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},M={transition:null},D={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:M,ReactCurrentOwner:S};function L(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:I,forEach:function(e,t,n){I(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return I(e,(function(){t++})),t},toArray:function(e){return I(e,(function(e){return e}))||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.act=L,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=m({},e.props),i=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=S.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)A.call(t,c)&&!_.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];o.children=l}return{$$typeof:n,type:e.type,key:i,ref:a,props:o,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:R}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},t.unstable_act=L,t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,n){return P.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,n){return P.current.useReducer(e,t,n)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return P.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return P.current.useTransition()},t.version="18.3.1"},7309:(e,t,n)=>{"use strict";e.exports=n(4940)},6656:(e,t,n)=>{"use strict";n(6512);var r=n(2176),o=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:c,ref:u,props:i,_owner:a.current}}t.jsx=c,t.jsxs=c},83:(e,t,n)=>{"use strict";var r=n(6512),o=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,l=60112;t.Suspense=60113;var c=60115,u=60116;if("function"===typeof Symbol&&Symbol.for){var d=Symbol.for;o=d("react.element"),i=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),a=d("react.provider"),s=d("react.context"),l=d("react.forward_ref"),t.Suspense=d("react.suspense"),c=d("react.memo"),u=d("react.lazy")}var f="function"===typeof Symbol&&Symbol.iterator;function p(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=g.prototype;var b=y.prototype=new v;b.constructor=y,r(b,g.prototype),b.isPureReactComponent=!0;var w={current:null},x=Object.prototype.hasOwnProperty,A={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)x.call(t,r)&&!A.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===i[r]&&(i[r]=l[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:w.current}}function _(e){return"object"===typeof e&&null!==e&&e.$$typeof===o}var k=/\/+/g;function C(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function E(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case o:case i:l=!0}}if(l)return a=a(l=e),e=""===r?"."+C(l,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(k,"$&/")+"/"),E(a,t,n,"",(function(e){return e}))):null!=a&&(_(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||l&&l.key===a.key?"":(""+a.key).replace(k,"$&/")+"/")+e)),t.push(a)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=r+C(s=e[c],c);l+=E(s,t,n,u,a)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=E(s=s.value,t,n,u=r+C(s,c++),a);else if("object"===s)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function O(e,t,n){if(null==e)return e;var r=[],o=0;return E(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function T(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var I={current:null};function R(){var e=I.current;if(null===e)throw Error(p(321));return e}var P={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!_(e))throw Error(p(143));return e}},t.Component=g,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(p(267,e));var i=r({},e.props),a=e.key,s=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)x.call(t,u)&&!A.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){c=Array(u);for(var d=0;d<u;d++)c[d]=arguments[d+2];i.children=c}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:l}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:l,render:e}},t.isValidElement=_,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return R().useCallback(e,t)},t.useContext=function(e,t){return R().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return R().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return R().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return R().useLayoutEffect(e,t)},t.useMemo=function(e,t){return R().useMemo(e,t)},t.useReducer=function(e,t,n){return R().useReducer(e,t,n)},t.useRef=function(e){return R().useRef(e)},t.useState=function(e){return R().useState(e)},t.version="17.0.2"},2176:(e,t,n)=>{"use strict";e.exports=n(83)},812:(e,t,n)=>{"use strict";e.exports=n(6656)},6126:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!==typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(2176)),o=u(n(5360)),i=u(n(4452)),a=n(9156),s=n(9198),l=u(n(2112)),c=u(n(9631));function u(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function f(e){return f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function v(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"===typeof t))return t;return y(e)}(this,n)}}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(l,e);var t,n,o,a=v(l);function l(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),w(y(t=a.call(this,e)),"handleKeyDown",(function(e){if(e.ctrlKey||e.metaKey||e.altKey||"INPUT"!==e.target.tagName&&"SELECT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&!e.target.isContentEditable){var n,r=(0,c.default)(t.props.toggleVisibilityKey),o=(0,c.default)(t.props.changePositionKey);t.props.changeMonitorKey&&(n=(0,c.default)(t.props.changeMonitorKey)),t.matchesKey(r,e)?(e.preventDefault(),t.props.dispatch((0,s.toggleVisibility)())):t.matchesKey(o,e)?(e.preventDefault(),t.props.dispatch((0,s.changePosition)())):t.matchesKey(n,e)&&(e.preventDefault(),t.props.dispatch((0,s.changeMonitor)()))}})),w(y(t),"handleSizeChange",(function(e){t.props.dispatch((0,s.changeSize)(e))}));var n=r.Children.count(e.children);return 0===n?console.error("<DockMonitor> requires at least one monitor inside. Why don\u2019t you try <LogMonitor>? You can get it at https://github.com/gaearon/redux-devtools-log-monitor."):n>1&&!e.changeMonitorKey&&console.error('You specified multiple monitors inside <DockMonitor> but did not provide `changeMonitorKey` prop to change them. Try specifying <DockMonitor changeMonitorKey="ctrl-m" /> and then press Ctrl-M.'),t}return t=l,n=[{key:"componentDidMount",value:function(){window.addEventListener("keydown",this.handleKeyDown)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("keydown",this.handleKeyDown)}},{key:"matchesKey",value:function(e,t){if(!e)return!1;var n=t.keyCode||t.which,r=String.fromCharCode(n);return e.name.toUpperCase()===r.toUpperCase()&&e.alt===t.altKey&&e.ctrl===t.ctrlKey&&e.meta===t.metaKey&&e.shift===t.shiftKey}},{key:"renderChild",value:function(e,t,n){var o=this.props.monitorState,i=o.childMonitorIndex,a=o.childMonitorStates;return t!==i?null:(0,r.cloneElement)(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({monitorState:a[t]},n))}},{key:"render",value:function(){var e=this,t=this.props,n=t.monitorState,o=t.children,a=t.fluid,s=p(t,["monitorState","children","fluid"]),l=n.position,c=n.isVisible,u=n.size;return r.default.createElement(i.default,{position:l,isVisible:c,size:u,fluid:a,onSizeChange:this.handleSizeChange,dimMode:"none"},r.Children.map(o,(function(t,n){return e.renderChild(t,n,s)})))}}],n&&m(t.prototype,n),o&&m(t,o),l}(r.Component);w(x,"update",l.default),w(x,"propTypes",{defaultPosition:o.default.oneOf(a.POSITIONS),defaultIsVisible:o.default.bool.isRequired,defaultSize:o.default.number.isRequired,toggleVisibilityKey:o.default.string.isRequired,changePositionKey:o.default.string.isRequired,changeMonitorKey:o.default.string,fluid:o.default.bool,dispatch:o.default.func,monitorState:o.default.shape({position:o.default.oneOf(a.POSITIONS).isRequired,size:o.default.number.isRequired,isVisible:o.default.bool.isRequired,childMonitorState:o.default.any})}),w(x,"defaultProps",{defaultIsVisible:!0,defaultPosition:"right",defaultSize:.3,fluid:!0});var A=x;t.default=A},9198:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toggleVisibility=function(){return{type:n}},t.changePosition=function(){return{type:r}},t.changeSize=function(e){return{type:o,size:e}},t.changeMonitor=function(){return{type:i}},t.CHANGE_MONITOR=t.CHANGE_SIZE=t.CHANGE_POSITION=t.TOGGLE_VISIBILITY=void 0;var n="@@redux-devtools-log-monitor/TOGGLE_VISIBILITY";t.TOGGLE_VISIBILITY=n;var r="@@redux-devtools-log-monitor/CHANGE_POSITION";t.CHANGE_POSITION=r;var o="@@redux-devtools-log-monitor/CHANGE_SIZE";t.CHANGE_SIZE=o;var i="@@redux-devtools-log-monitor/CHANGE_MONITOR";t.CHANGE_MONITOR=i},9156:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.POSITIONS=void 0;t.POSITIONS=["left","top","right","bottom"]},4573:(e,t,n)=>{"use strict";var r;t.A=void 0;var o=((r=n(6126))&&r.__esModule?r:{default:r}).default;t.A=o},2112:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;t.childMonitorStates||r.Children.forEach(e.children,(function(e,t){"function"!==typeof e.type.update&&console.error("Child of <DockMonitor> with the index ".concat(t," ")+"(".concat(e.type.displayName||e.type.name||e.type,") ")+"does not appear to be a valid Redux DevTools monitor.")}));return{position:a(e,t.position,n),isVisible:l(e,t.isVisible,n),size:s(e,t.size,n),childMonitorIndex:u(e,t.childMonitorIndex,n),childMonitorStates:c(e,t.childMonitorStates,n)}};var r=n(2176),o=n(9198),i=n(9156);function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.defaultPosition;return(arguments.length>2?arguments[2]:void 0).type===o.CHANGE_POSITION?i.POSITIONS[(i.POSITIONS.indexOf(t)+1)%i.POSITIONS.length]:t}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.defaultSize,n=arguments.length>2?arguments[2]:void 0;return n.type===o.CHANGE_SIZE?n.size:t}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.defaultIsVisible;return(arguments.length>2?arguments[2]:void 0).type===o.TOGGLE_VISIBILITY?!t:t}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return r.Children.map(e.children,(function(e,r){return e.type.update(e.props,t[r],n)}))}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(arguments.length>2?arguments[2]:void 0).type===o.CHANGE_MONITOR?(t+1)%r.Children.count(e.children):t}},8291:(e,t)=>{"use strict";var n,r,o,i;if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var c=null,u=null,d=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(n){throw setTimeout(d,0),n}};n=function(e){null!==c?setTimeout(n,0,e):(c=e,setTimeout(d,0))},r=function(e,t){u=setTimeout(e,t)},o=function(){clearTimeout(u)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,p=window.clearTimeout;if("undefined"!==typeof console){var h=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,g=null,v=-1,y=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,x=w.port2;w.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();b=e+y;try{g(!0,e)?x.postMessage(null):(m=!1,g=null)}catch(n){throw x.postMessage(null),n}}else m=!1},n=function(e){g=e,m||(m=!0,x.postMessage(null))},r=function(e,n){v=f((function(){e(t.unstable_now())}),n)},o=function(){p(v),v=-1}}function A(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<k(o,t)))break e;e[r]=t,e[n]=o,n=r}}function S(e){return void 0===(e=e[0])?null:e}function _(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],s=i+1,l=e[s];if(void 0!==a&&0>k(a,n))void 0!==l&&0>k(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==l&&0>k(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function k(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],E=[],O=1,T=null,I=3,R=!1,P=!1,M=!1;function D(e){for(var t=S(E);null!==t;){if(null===t.callback)_(E);else{if(!(t.startTime<=e))break;_(E),t.sortIndex=t.expirationTime,A(C,t)}t=S(E)}}function L(e){if(M=!1,D(e),!P)if(null!==S(C))P=!0,n(j);else{var t=S(E);null!==t&&r(L,t.startTime-e)}}function j(e,n){P=!1,M&&(M=!1,o()),R=!0;var i=I;try{for(D(n),T=S(C);null!==T&&(!(T.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=T.callback;if("function"===typeof a){T.callback=null,I=T.priorityLevel;var s=a(T.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?T.callback=s:T===S(C)&&_(C),D(n)}else _(C);T=S(C)}if(null!==T)var l=!0;else{var c=S(E);null!==c&&r(L,c.startTime-n),l=!1}return l}finally{T=null,I=i,R=!1}}var N=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){P||R||(P=!0,n(j))},t.unstable_getCurrentPriorityLevel=function(){return I},t.unstable_getFirstCallbackNode=function(){return S(C)},t.unstable_next=function(e){switch(I){case 1:case 2:case 3:var t=3;break;default:t=I}var n=I;I=t;try{return e()}finally{I=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=N,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=I;I=e;try{return t()}finally{I=n}},t.unstable_scheduleCallback=function(e,i,a){var s=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?s+a:s:a=s,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:O++,callback:i,priorityLevel:e,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>s?(e.sortIndex=a,A(E,e),null===S(C)&&e===S(E)&&(M?o():M=!0,r(L,a-s))):(e.sortIndex=l,A(C,e),P||R||(P=!0,n(j))),e},t.unstable_wrapCallback=function(e){var t=I;return function(){var n=I;I=t;try{return e.apply(this,arguments)}finally{I=n}}}},4442:(e,t,n)=>{"use strict";e.exports=n(8291)},6292:(e,t,n)=>{"use strict";var r=n(3364),o=Array.prototype.concat,i=Array.prototype.slice,a=e.exports=function(e){for(var t=[],n=0,a=e.length;n<a;n++){var s=e[n];r(s)?t=o.call(t,i.call(s)):t.push(s)}return t};a.wrap=function(e){return function(){return e(a(arguments))}}},3364:e=>{e.exports=function(e){return!(!e||"string"===typeof e)&&(e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&"String"!==e.constructor.name))}},9800:(e,t,n)=>{var r=n(9344);function o(e,t){var n,o=null;if(!e||"string"!==typeof e)return o;for(var i,a,s=r(e),l="function"===typeof t,c=0,u=s.length;c<u;c++)i=(n=s[c]).property,a=n.value,l?t(i,a,n):a&&(o||(o={}),o[i]=a);return o}e.exports=o,e.exports.default=o},6662:e=>{const t=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['\u2019](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,n=e=>e.match(t)||[],r=e=>e[0].toUpperCase()+e.slice(1),o=(e,t)=>n(e).join(t).toLowerCase(),i=e=>n(e).reduce(((e,t)=>"".concat(e).concat(e?t[0].toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase())),"");e.exports={words:n,upperFirst:r,camelCase:i,pascalCase:e=>r(i(e)),snakeCase:e=>o(e,"_"),kebabCase:e=>o(e,"-"),sentenceCase:e=>r(o(e," ")),titleCase:e=>n(e).map(r).join(" ")}},6174:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},6649:e=>{function t(e,t){var n=e.length,r=new Array(n),o={},i=n,a=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var o=e[n];t.has(o[0])||t.set(o[0],new Set),t.has(o[1])||t.set(o[1],new Set),t.get(o[0]).add(o[1])}return t}(t),s=function(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}(e);for(t.forEach((function(e){if(!s.has(e[0])||!s.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));i--;)o[i]||l(e[i],i,new Set);return r;function l(e,t,i){if(i.has(e)){var c;try{c=", node was:"+JSON.stringify(e)}catch(f){c=""}throw new Error("Cyclic dependency"+c)}if(!s.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!o[t]){o[t]=!0;var u=a.get(e)||new Set;if(t=(u=Array.from(u)).length){i.add(e);do{var d=u[--t];l(d,s.get(d),i)}while(t);i.delete(e)}r[--n]=e}}}e.exports=function(e){return t(function(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var o=e[n];t.add(o[0]),t.add(o[1])}return Array.from(t)}(e),e)},e.exports.array=t},5196:function(e,t,n){var r;!function(o,i){"use strict";var a="function",s="undefined",l="object",c="string",u="major",d="model",f="name",p="type",h="vendor",m="version",g="architecture",v="console",y="mobile",b="tablet",w="smarttv",x="wearable",A="embedded",S="Amazon",_="Apple",k="ASUS",C="BlackBerry",E="Browser",O="Chrome",T="Firefox",I="Google",R="Huawei",P="LG",M="Microsoft",D="Motorola",L="Opera",j="Samsung",N="Sharp",F="Sony",z="Xiaomi",B="Zebra",V="Facebook",U="Chromium OS",W="Mac OS",q=" Browser",H=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},Y=function(e,t){return typeof e===c&&-1!==G(t).indexOf(G(e))},G=function(e){return e.toLowerCase()},K=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,500)},$=function(e,t){for(var n,r,o,s,c,u,d=0;d<t.length&&!c;){var f=t[d],p=t[d+1];for(n=r=0;n<f.length&&!c&&f[n];)if(c=f[n++].exec(e))for(o=0;o<p.length;o++)u=c[++r],typeof(s=p[o])===l&&s.length>0?2===s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,u):this[s[0]]=s[1]:3===s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=u?u.replace(s[1],s[2]):i:this[s[0]]=u?s[1].call(this,u,s[2]):i:4===s.length&&(this[s[0]]=u?s[3].call(this,u.replace(s[1],s[2])):i):this[s]=u||i;d+=2}},Q=function(e,t){for(var n in t)if(typeof t[n]===l&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(Y(t[n][r],e))return"?"===n?i:n}else if(Y(t[n],e))return"?"===n?i:n;return t.hasOwnProperty("*")?t["*"]:e},X={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},J={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[f,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[f,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[f,m],[/opios[\/ ]+([\w\.]+)/i],[m,[f,L+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[m,[f,L+" GX"]],[/\bopr\/([\w\.]+)/i],[m,[f,L]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[m,[f,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[m,[f,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[f,m],[/quark(?:pc)?\/([-\w\.]+)/i],[m,[f,"Quark"]],[/\bddg\/([\w\.]+)/i],[m,[f,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[f,"UC"+E]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[m,[f,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[f,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[f,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[f,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[m,[f,"Smart Lenovo "+E]],[/(avast|avg)\/([\w\.]+)/i],[[f,/(.+)/,"$1 Secure "+E],m],[/\bfocus\/([\w\.]+)/i],[m,[f,T+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[f,L+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[f,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[f,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[f,L+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[f,"MIUI"+q]],[/fxios\/([\w\.-]+)/i],[m,[f,T]],[/\bqihoobrowser\/?([\w\.]*)/i],[m,[f,"360"]],[/\b(qq)\/([\w\.]+)/i],[[f,/(.+)/,"$1Browser"],m],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[f,/(.+)/,"$1"+q],m],[/samsungbrowser\/([\w\.]+)/i],[m,[f,j+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[m,[f,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[f,"Sogou Mobile"],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[f,m],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[f],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[m,f],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[f,V],m],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[f,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[f,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[m,[f,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[f,O+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[f,O+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[f,"Android "+E]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[f,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[f,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,f],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[f,[m,Q,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[f,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[f,"Netscape"],m],[/(wolvic|librewolf)\/([\w\.]+)/i],[f,m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[f,T+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[f,[m,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[f,[m,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,G]],[/((?:i[346]|x)86)[;\)]/i],[[g,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/windows (ce|mobile); ppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[g,/ower/,"",G]],[/(sun4\w)[;\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,G]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[h,j],[p,b]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[d,[h,j],[p,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[h,_],[p,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[h,_],[p,b]],[/(macintosh);/i],[d,[h,_]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[h,N],[p,y]],[/(?:honor)([-\w ]+)[;\)]/i],[d,[h,"Honor"],[p,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[h,R],[p,b]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[h,R],[p,y]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[d,/_/g," "],[h,z],[p,y]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[h,z],[p,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[h,"OPPO"],[p,y]],[/\b(opd2\d{3}a?) bui/i],[d,[h,"OPPO"],[p,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[h,"Vivo"],[p,y]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[h,"Realme"],[p,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[h,D],[p,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[h,D],[p,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[h,P],[p,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[h,P],[p,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[h,"Lenovo"],[p,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[h,"Nokia"],[p,y]],[/(pixel c)\b/i],[d,[h,I],[p,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[h,I],[p,y]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[h,F],[p,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[h,F],[p,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[h,"OnePlus"],[p,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[h,S],[p,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[h,S],[p,y]],[/(playbook);[-\w\),; ]+(rim)/i],[d,h,[p,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[h,C],[p,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[h,k],[p,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[h,k],[p,y]],[/(nexus 9)/i],[d,[h,"HTC"],[p,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[d,/_/g," "],[p,y]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[d,[h,"TCL"],[p,b]],[/(itel) ((\w+))/i],[[h,G],d,[p,Q,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[h,"Acer"],[p,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[h,"Meizu"],[p,y]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[h,"Ulefone"],[p,y]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[d,[h,"Energizer"],[p,y]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[d,[h,"Cat"],[p,y]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[d,[h,"Smartfren"],[p,y]],[/droid.+; (a(?:015|06[35]|142p?))/i],[d,[h,"Nothing"],[p,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,d,[p,y]],[/(imo) (tab \w+)/i,/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,d,[p,b]],[/(surface duo)/i],[d,[h,M],[p,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[h,"Fairphone"],[p,y]],[/(u304aa)/i],[d,[h,"AT&T"],[p,y]],[/\bsie-(\w*)/i],[d,[h,"Siemens"],[p,y]],[/\b(rct\w+) b/i],[d,[h,"RCA"],[p,b]],[/\b(venue[\d ]{2,7}) b/i],[d,[h,"Dell"],[p,b]],[/\b(q(?:mv|ta)\w+) b/i],[d,[h,"Verizon"],[p,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[h,"Barnes & Noble"],[p,b]],[/\b(tm\d{3}\w+) b/i],[d,[h,"NuVision"],[p,b]],[/\b(k88) b/i],[d,[h,"ZTE"],[p,b]],[/\b(nx\d{3}j) b/i],[d,[h,"ZTE"],[p,y]],[/\b(gen\d{3}) b.+49h/i],[d,[h,"Swiss"],[p,y]],[/\b(zur\d{3}) b/i],[d,[h,"Swiss"],[p,b]],[/\b((zeki)?tb.*\b) b/i],[d,[h,"Zeki"],[p,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],d,[p,b]],[/\b(ns-?\w{0,9}) b/i],[d,[h,"Insignia"],[p,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[h,"NextBook"],[p,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],d,[p,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],d,[p,y]],[/\b(ph-1) /i],[d,[h,"Essential"],[p,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[h,"Envizen"],[p,b]],[/\b(trio[-\w\. ]+) b/i],[d,[h,"MachSpeed"],[p,b]],[/\btu_(1491) b/i],[d,[h,"Rotor"],[p,b]],[/(shield[\w ]+) b/i],[d,[h,"Nvidia"],[p,b]],[/(sprint) (\w+)/i],[h,d,[p,y]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[h,M],[p,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[h,B],[p,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[h,B],[p,y]],[/smart-tv.+(samsung)/i],[h,[p,w]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[h,j],[p,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,P],[p,w]],[/(apple) ?tv/i],[h,[d,_+" TV"],[p,w]],[/crkey/i],[[d,O+"cast"],[h,I],[p,w]],[/droid.+aft(\w+)( bui|\))/i],[d,[h,S],[p,w]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[h,N],[p,w]],[/(bravia[\w ]+)( bui|\))/i],[d,[h,F],[p,w]],[/(mitv-\w{5}) bui/i],[d,[h,z],[p,w]],[/Hbbtv.*(technisat) (.*);/i],[h,d,[p,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,K],[d,K],[p,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,d,[p,v]],[/droid.+; (shield) bui/i],[d,[h,"Nvidia"],[p,v]],[/(playstation [345portablevi]+)/i],[d,[h,F],[p,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[h,M],[p,v]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[d,[h,j],[p,x]],[/((pebble))app/i],[h,d,[p,x]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[h,_],[p,x]],[/droid.+; (glass) \d/i],[d,[h,I],[p,x]],[/droid.+; (wt63?0{2,3})\)/i],[d,[h,B],[p,x]],[/droid.+; (glass) \d/i],[d,[h,I],[p,x]],[/(pico) (4|neo3(?: link|pro)?)/i],[h,d,[p,x]],[/; (quest( \d| pro)?)/i],[d,[h,V],[p,x]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[p,A]],[/(aeobc)\b/i],[d,[h,S],[p,A]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[p,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[p,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,y]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[f,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[f,m],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[f,m],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,f]],os:[[/microsoft (windows) (vista|xp)/i],[f,m],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[f,[m,Q,X]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,Q,X],[f,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[f,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[f,W],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,f],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[f,m],[/\(bb(10);/i],[m,[f,C]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[m,[f,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[f,T+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[f,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[f,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[f,O+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[f,U],m],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[f,m],[/(sunos) ?([\w\.\d]*)/i],[[f,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[f,m]]},Z=function(e,t){if(typeof e===l&&(t=e,e=i),!(this instanceof Z))return new Z(e,t).getResult();var n=typeof o!==s&&o.navigator?o.navigator:i,r=e||(n&&n.userAgent?n.userAgent:""),v=n&&n.userAgentData?n.userAgentData:i,w=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2===0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(J,t):J,x=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[f]=i,t[m]=i,$.call(t,r,w.browser),t[u]=typeof(e=t[m])===c?e.replace(/[^\d\.]/g,"").split(".")[0]:i,x&&n&&n.brave&&typeof n.brave.isBrave==a&&(t[f]="Brave"),t},this.getCPU=function(){var e={};return e[g]=i,$.call(e,r,w.cpu),e},this.getDevice=function(){var e={};return e[h]=i,e[d]=i,e[p]=i,$.call(e,r,w.device),x&&!e[p]&&v&&v.mobile&&(e[p]=y),x&&"Macintosh"==e[d]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[d]="iPad",e[p]=b),e},this.getEngine=function(){var e={};return e[f]=i,e[m]=i,$.call(e,r,w.engine),e},this.getOS=function(){var e={};return e[f]=i,e[m]=i,$.call(e,r,w.os),x&&!e[f]&&v&&v.platform&&"Unknown"!=v.platform&&(e[f]=v.platform.replace(/chrome os/i,U).replace(/macos/i,W)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===c&&e.length>500?K(e,500):e,this},this.setUA(r),this};Z.VERSION="1.0.40",Z.BROWSER=H([f,m,u]),Z.CPU=H([g]),Z.DEVICE=H([d,h,p,v,y,w,b,x,A]),Z.ENGINE=Z.OS=H([f,m]),typeof t!==s?(e.exports&&(t=e.exports=Z),t.UAParser=Z):n.amdO?(r=function(){return Z}.call(t,n,t,e))===i||(e.exports=r):typeof o!==s&&(o.UAParser=Z);var ee=typeof o!==s&&(o.jQuery||o.Zepto);if(ee&&!ee.ua){var te=new Z;ee.ua=te.getResult(),ee.ua.get=function(){return te.getUA()},ee.ua.set=function(e){te.setUA(e);var t=te.getResult();for(var n in t)ee.ua[n]=t[n]}}}("object"===typeof window?window:this)},8282:e=>{e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},153:(e,t,n)=>{"use strict";var r=n(2176);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(r){return!0}}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return s((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),a((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},4678:(e,t,n)=>{"use strict";var r=n(2176),o=n(5884);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},a=o.useSyncExternalStore,s=r.useRef,l=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c((function(){function e(e){if(!l){if(l=!0,a=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return s=t}return s=e}if(t=s,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?(a=e,t):(a=e,s=n)}var a,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,o]);var p=a(e,d[0],d[1]);return l((function(){f.hasValue=!0,f.value=p}),[p]),u(p),p}},5884:(e,t,n)=>{"use strict";e.exports=n(153)},142:(e,t,n)=>{"use strict";e.exports=n(4678)},4636:e=>{e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},4505:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4293:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},1112:e=>{e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports},4586:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(1369);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},9575:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(null,arguments)}n.d(t,{A:()=>r})},9740:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(4586);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},9850:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7502);function o(e,t){if(null==e)return{};var n,o,i=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},7502:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},1369:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7545);function o(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},7545:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},2236:(e,t,n)=>{"use strict";function r(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=r(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}n.d(t,{A:()=>o});const o=function(){for(var e,t,n=0,o="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=r(e))&&(o&&(o+=" "),o+=t);return o}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.amdO={},__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;__webpack_require__.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"===typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"===typeof n.then)return n}var o=Object.create(null);__webpack_require__.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>i[e]=()=>n[e]));return i.default=()=>n,__webpack_require__.d(o,i),o}})(),__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __webpack_exports__={};(()=>{"use strict";var e={};__webpack_require__.r(e),__webpack_require__.d(e,{hasBrowserEnv:()=>Gu,hasStandardBrowserEnv:()=>$u,hasStandardBrowserWebWorkerEnv:()=>Qu,navigator:()=>Ku,origin:()=>Xu});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{attentionMarkers:()=>VP,contentInitial:()=>LP,disable:()=>UP,document:()=>DP,flow:()=>NP,flowInitial:()=>jP,insideSpan:()=>BP,string:()=>FP,text:()=>zP});var n={};__webpack_require__.r(n),__webpack_require__.d(n,{boolean:()=>jM,booleanish:()=>NM,commaOrSpaceSeparated:()=>UM,commaSeparated:()=>VM,number:()=>zM,overloadedBoolean:()=>FM,spaceSeparated:()=>BM});var r=__webpack_require__(3989),o=__webpack_require__(8633),i=__webpack_require__(2176),a=__webpack_require__.t(i,2);function s(e){return s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==s(t)&&"function"!==typeof t?u(e):t}(this,(e=c(t)).call.apply(e,[this].concat(o))),f(u(n),"state",{bootstrapped:!1}),f(u(n),"_unsubscribe",void 0),f(u(n),"handlePersistorState",(function(){n.props.persistor.getState().bootstrapped&&(n.props.onBeforeLift?Promise.resolve(n.props.onBeforeLift()).finally((function(){return n.setState({bootstrapped:!0})})):n.setState({bootstrapped:!0}),n._unsubscribe&&n._unsubscribe())})),n}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return"function"===typeof this.props.children?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}])&&l(n.prototype,r),o&&l(n,o),t}(i.PureComponent);f(p,"defaultProps",{children:null,loading:null});var h=__webpack_require__(3927);const m={styleOverrides:"\n\t\thtml, body, #root {\n\t\t\theight: 100%;\n\t\t}\n\t\tbody, header {\n\t\t\tfont-family: 'Inter', sans-serif !important;\n\t\t}\n\t\ta {\n\t\t\ttext-decoration: none;\n\t\t}\n\t\tform {\n\t\t\tmargin: 0;\n\t\t}\n\t\theader {\n\t\t\tbackground-color: inherit;\n\t\t}\n\t\tbutton:focus-visible,\n\t\tdiv:focus-visible,\n\t\ta:focus-visible {\n\t\t\tbox-shadow: 0 0 0 3px ".concat({}.text," !important;\n\t\t\toutline: none;\n\t\t}\n\t\t.Toastify__toast-container {\n\t\t\tmax-width: 100vw;\n\t\t\twidth: fit-content;\n\t\t}\n\t")};var g=__webpack_require__(9740);const v=(0,g.A)({fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"'},{h1:{fontSize:"2.5rem",fontWeight:600,lineHeight:1.2},h2:{fontSize:"2rem",fontWeight:600,lineHeight:1.2},h3:{fontSize:"1.75rem",fontWeight:600,lineHeight:1.2},h4:{fontSize:"1.5rem",fontWeight:600,lineHeight:1.2},h5:{fontSize:"1.25rem",fontWeight:600,lineHeight:1.2},h6:{fontSize:"1rem",fontWeight:600,lineHeight:1.2}});var y=__webpack_require__(6970);const b={white:"#fff",failedColor:"#fdeeed",failedColorHover:"#f2e5e4",divider:"rgba(0, 0, 0, 0.12)",text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)"},background:{hoverButtonLight:"rgba(25, 118, 210, 0.04)"},error:{main:"#f44336"},success:{main:"#4caf50"},codeBlock:{dark:"#2d2d2d",textColor:"#d6d6d6"},borderColor:{main:y.A[300]},grey:{main:y.A[300]},primary:{main:"#007bff",button:"#1976d2"},yellow:"#ffff00",ide:{dark:{background:"#1e1e1e",text:"#9cdcfe"}}};var w=__webpack_require__(9575),x=__webpack_require__(7502),A=__webpack_require__(2236),S=__webpack_require__(3786),_=__webpack_require__(319),k=__webpack_require__(4539),C=__webpack_require__(1733),E=__webpack_require__(8367);const O=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=i.useContext(E.T);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n},T=(0,C.A)();const I=function(){return O(arguments.length>0&&void 0!==arguments[0]?arguments[0]:T)};var R=__webpack_require__(812);const P=["className","component"];var M=__webpack_require__(8371),D=__webpack_require__(9724),L=__webpack_require__(7745);const j=(0,L.A)("MuiBox",["root"]),N=(0,h.A)(),F=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=(0,S.default)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(_.A);return i.forwardRef((function(e,i){const s=I(n),l=(0,k.A)(e),{className:c,component:u="div"}=l,d=(0,x.A)(l,P);return(0,R.jsx)(a,(0,w.A)({as:u,ref:i,className:(0,A.A)(c,o?o(r):r),theme:t&&s[t]||s},d))}))}({themeId:D.A,defaultTheme:N,defaultClassName:j.root,generateClassName:M.A.generate});var z=__webpack_require__(9311),B=__webpack_require__(943),V=__webpack_require__(6166),U=__webpack_require__(4972),W=__webpack_require__(118),q=__webpack_require__(8075);const H=i.createContext(void 0);function Y(){return i.useContext(H)}var G=__webpack_require__(3185),K=__webpack_require__(4784),$=__webpack_require__(1006),Q=__webpack_require__(215);function X(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function J(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z(e,t){return Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Z(e,t)}function ee(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Z(e,t)}const te=i.createContext(null);function ne(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)})),n}function re(e,t,n){return null!=n[t]?n[t]:e.props[t]}function oe(e,t,n){var r=ne(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(a){var s=o[a];if((0,i.isValidElement)(s)){var l=a in t,c=a in r,u=t[a],d=(0,i.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&(0,i.isValidElement)(u)&&(o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:u.props.in,exit:re(s,"exit",e),enter:re(s,"enter",e)})):o[a]=(0,i.cloneElement)(s,{in:!1}):o[a]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:re(s,"exit",e),enter:re(s,"enter",e)})}})),o}var ie=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},ae=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(J(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}ee(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,ne(n.children,(function(e){return(0,i.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:re(e,"appear",n),enter:re(e,"enter",n),exit:re(e,"exit",n)})}))):oe(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=ne(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,w.A)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,x.A)(e,["component","childFactory"]),o=this.state.contextValue,a=ie(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i.createElement(te.Provider,{value:o},a):i.createElement(te.Provider,{value:o},i.createElement(t,r,a))},t}(i.Component);ae.propTypes={},ae.defaultProps={component:"div",childFactory:function(e){return e}};const se=ae;var le=__webpack_require__(137),ce=__webpack_require__(560);const ue=function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:s,in:l,onExited:c,timeout:u}=e,[d,f]=i.useState(!1),p=(0,A.A)(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:s,height:s,top:-s/2+a,left:-s/2+o},m=(0,A.A)(n.child,d&&n.childLeaving,r&&n.childPulsate);return l||d||f(!0),i.useEffect((()=>{if(!l&&null!=c){const e=setTimeout(c,u);return()=>{clearTimeout(e)}}}),[c,l,u]),(0,R.jsx)("span",{className:p,style:h,children:(0,R.jsx)("span",{className:m})})};const de=(0,L.A)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);var fe,pe,he,me;const ge=["center","classes","className"];let ve,ye,be,we;const xe=(0,le.i7)(ve||(ve=fe||(fe=X(["\n 0% {\n transform: scale(0);\n opacity: 0.1;\n }\n\n 100% {\n transform: scale(1);\n opacity: 0.3;\n }\n"])))),Ae=(0,le.i7)(ye||(ye=pe||(pe=X(["\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n"])))),Se=(0,le.i7)(be||(be=he||(he=X(["\n 0% {\n transform: scale(1);\n }\n\n 50% {\n transform: scale(0.92);\n }\n\n 100% {\n transform: scale(1);\n }\n"])))),_e=(0,U.Ay)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ke=(0,U.Ay)(ue,{name:"MuiTouchRipple",slot:"Ripple"})(we||(we=me||(me=X(["\n opacity: 0;\n position: absolute;\n\n &."," {\n opacity: 0.3;\n transform: scale(1);\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n &."," {\n animation-duration: ","ms;\n }\n\n & ."," {\n opacity: 1;\n display: block;\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: currentColor;\n }\n\n & ."," {\n opacity: 0;\n animation-name: ",";\n animation-duration: ","ms;\n animation-timing-function: ",";\n }\n\n & ."," {\n position: absolute;\n /* @noflip */\n left: 0px;\n top: 0;\n animation-name: ",";\n animation-duration: 2500ms;\n animation-timing-function: ",";\n animation-iteration-count: infinite;\n animation-delay: 200ms;\n }\n"]))),de.rippleVisible,xe,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),de.ripplePulsate,(e=>{let{theme:t}=e;return t.transitions.duration.shorter}),de.child,de.childLeaving,Ae,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),de.childPulsate,Se,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut})),Ce=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a}=n,s=(0,x.A)(n,ge),[l,c]=i.useState([]),u=i.useRef(0),d=i.useRef(null);i.useEffect((()=>{d.current&&(d.current(),d.current=null)}),[l]);const f=i.useRef(!1),p=(0,ce.A)(),h=i.useRef(null),m=i.useRef(null),g=i.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;c((e=>[...e,(0,R.jsx)(ke,{classes:{ripple:(0,A.A)(o.ripple,de.ripple),rippleVisible:(0,A.A)(o.rippleVisible,de.rippleVisible),ripplePulsate:(0,A.A)(o.ripplePulsate,de.ripplePulsate),child:(0,A.A)(o.child,de.child),childLeaving:(0,A.A)(o.childLeaving,de.childLeaving),childPulsate:(0,A.A)(o.childPulsate,de.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,d.current=a}),[o]),v=i.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&f.current)return void(f.current=!1);"touchstart"===(null==e?void 0:e.type)&&(f.current=!0);const s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2===0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{g({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},p.start(80,(()=>{h.current&&(h.current(),h.current=null)}))):g({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[r,g,p]),y=i.useCallback((()=>{v({},{pulsate:!0})}),[v]),b=i.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void p.start(0,(()=>{b(e,t)}));h.current=null,c((e=>e.length>0?e.slice(1):e)),d.current=t}),[p]);return i.useImperativeHandle(t,(()=>({pulsate:y,start:v,stop:b})),[y,v,b]),(0,R.jsx)(_e,(0,w.A)({className:(0,A.A)(de.root,o.root,a),ref:m},s,{children:(0,R.jsx)(se,{component:null,exit:!0,children:l})}))}));var Ee=__webpack_require__(4717);function Oe(e){return(0,Ee.Ay)("MuiButtonBase",e)}const Te=(0,L.A)("MuiButtonBase",["root","disabled","focusVisible"]),Ie=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Re=(0,U.Ay)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},["&.".concat(Te.disabled)]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Pe=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,LinkComponent:p="a",onBlur:h,onClick:m,onContextMenu:g,onDragLeave:v,onFocus:y,onFocusVisible:b,onKeyDown:S,onKeyUp:_,onMouseDown:k,onMouseLeave:C,onMouseUp:E,onTouchEnd:O,onTouchMove:T,onTouchStart:I,tabIndex:P=0,TouchRippleProps:M,touchRippleRef:D,type:L}=n,j=(0,x.A)(n,Ie),N=i.useRef(null),F=i.useRef(null),B=(0,K.A)(F,D),{isFocusVisibleRef:V,onFocus:U,onBlur:W,ref:q}=(0,Q.A)(),[H,Y]=i.useState(!1);c&&H&&Y(!1),i.useImperativeHandle(r,(()=>({focusVisible:()=>{Y(!0),N.current.focus()}})),[]);const[X,J]=i.useState(!1);i.useEffect((()=>{J(!0)}),[]);const Z=X&&!u&&!c;function ee(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;return(0,$.A)((r=>{t&&t(r);return!n&&F.current&&F.current[e](r),!0}))}i.useEffect((()=>{H&&f&&!u&&X&&F.current.pulsate()}),[u,f,H,X]);const te=ee("start",k),ne=ee("stop",g),re=ee("stop",v),oe=ee("stop",E),ie=ee("stop",(e=>{H&&e.preventDefault(),C&&C(e)})),ae=ee("start",I),se=ee("stop",O),le=ee("stop",T),ce=ee("stop",(e=>{W(e),!1===V.current&&Y(!1),h&&h(e)}),!1),ue=(0,$.A)((e=>{N.current||(N.current=e.currentTarget),U(e),!0===V.current&&(Y(!0),b&&b(e)),y&&y(e)})),de=()=>{const e=N.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},fe=i.useRef(!1),pe=(0,$.A)((e=>{f&&!fe.current&&H&&F.current&&" "===e.key&&(fe.current=!0,F.current.stop(e,(()=>{F.current.start(e)}))),e.target===e.currentTarget&&de()&&" "===e.key&&e.preventDefault(),S&&S(e),e.target===e.currentTarget&&de()&&"Enter"===e.key&&!c&&(e.preventDefault(),m&&m(e))})),he=(0,$.A)((e=>{f&&" "===e.key&&F.current&&H&&!e.defaultPrevented&&(fe.current=!1,F.current.stop(e,(()=>{F.current.pulsate(e)}))),_&&_(e),m&&e.target===e.currentTarget&&de()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let me=l;"button"===me&&(j.href||j.to)&&(me=p);const ge={};"button"===me?(ge.type=void 0===L?"button":L,ge.disabled=c):(j.href||j.to||(ge.role="button"),c&&(ge["aria-disabled"]=c));const ve=(0,K.A)(t,q,N);const ye=(0,w.A)({},n,{centerRipple:o,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:P,focusVisible:H}),be=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i={root:["root",t&&"disabled",n&&"focusVisible"]},a=(0,z.A)(i,Oe,o);return n&&r&&(a.root+=" ".concat(r)),a})(ye);return(0,R.jsxs)(Re,(0,w.A)({as:me,className:(0,A.A)(be.root,s),ownerState:ye,onBlur:ce,onClick:m,onContextMenu:ne,onFocus:ue,onKeyDown:pe,onKeyUp:he,onMouseDown:te,onMouseLeave:ie,onMouseUp:oe,onDragLeave:re,onTouchEnd:se,onTouchMove:le,onTouchStart:ae,ref:ve,tabIndex:c?-1:P,type:L},ge,j,{children:[a,Z?(0,R.jsx)(Ce,(0,w.A)({ref:B,center:o},M)):null]}))}));function Me(e){return(0,Ee.Ay)("PrivateSwitchBase",e)}(0,L.A)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const De=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Le=(0,U.Ay)(Pe)((e=>{let{ownerState:t}=e;return(0,w.A)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})})),je=(0,U.Ay)("input",{shouldForwardProp:W.A})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Ne=i.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:i,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:d,inputProps:f,inputRef:p,name:h,onBlur:m,onChange:g,onFocus:v,readOnly:y,required:b=!1,tabIndex:S,type:_,value:k}=e,C=(0,x.A)(e,De),[E,O]=(0,q.A)({controlled:r,default:Boolean(a),name:"SwitchBase",state:"checked"}),T=Y();let I=s;T&&"undefined"===typeof I&&(I=T.disabled);const P="checkbox"===_||"radio"===_,M=(0,w.A)({},e,{checked:E,disabled:I,disableFocusRipple:l,edge:c}),D=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&"edge".concat((0,V.A)(o))],input:["input"]};return(0,z.A)(i,Me,t)})(M);return(0,R.jsxs)(Le,(0,w.A)({component:"span",className:(0,A.A)(D.root,i),centerRipple:!0,focusRipple:!l,disabled:I,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),T&&T.onFocus&&T.onFocus(e)},onBlur:e=>{m&&m(e),T&&T.onBlur&&T.onBlur(e)},ownerState:M,ref:t},C,{children:[(0,R.jsx)(je,(0,w.A)({autoFocus:n,checked:r,defaultChecked:a,className:D.input,disabled:I,id:P?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;O(t),g&&g(e,t)},readOnly:y,ref:p,required:b,ownerState:M,tabIndex:S,type:_},"checkbox"===_&&void 0===k?{}:{value:k},f)),E?o:u]}))}));var Fe=__webpack_require__(8259);const ze=(0,Fe.A)((0,R.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Be=(0,Fe.A)((0,R.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Ve=(0,Fe.A)((0,R.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Ue(e){return(0,Ee.Ay)("MuiCheckbox",e)}const We=(0,L.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),qe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],He=(0,U.Ay)(Ne,{shouldForwardProp:e=>(0,W.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t["size".concat((0,V.A)(n.size))],"default"!==n.color&&t["color".concat((0,V.A)(n.color))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,w.A)({color:(t.vars||t).palette.text.secondary},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===n.color?t.vars.palette.action.activeChannel:t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,B.X4)("default"===n.color?t.palette.action.active:t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{["&.".concat(We.checked,", &.").concat(We.indeterminate)]:{color:(t.vars||t).palette[n.color].main},["&.".concat(We.disabled)]:{color:(t.vars||t).palette.action.disabled}})})),Ye=(0,R.jsx)(Be,{}),Ge=(0,R.jsx)(ze,{}),Ke=(0,R.jsx)(Ve,{}),$e=i.forwardRef((function(e,t){var n,r;const o=(0,G.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:a=Ye,color:s="primary",icon:l=Ge,indeterminate:c=!1,indeterminateIcon:u=Ke,inputProps:d,size:f="medium",className:p}=o,h=(0,x.A)(o,qe),m=c?u:l,g=c?u:a,v=(0,w.A)({},o,{color:s,indeterminate:c,size:f}),y=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate","color".concat((0,V.A)(r)),"size".concat((0,V.A)(o))]},a=(0,z.A)(i,Ue,t);return(0,w.A)({},t,a)})(v);return(0,R.jsx)(He,(0,w.A)({type:"checkbox",inputProps:(0,w.A)({"data-indeterminate":c},d),icon:i.cloneElement(m,{fontSize:null!=(n=m.props.fontSize)?n:f}),checkedIcon:i.cloneElement(g,{fontSize:null!=(r=g.props.fontSize)?r:f}),ownerState:v,ref:t,className:(0,A.A)(y.root,p)},h,{classes:y}))}));function Qe(e){return(0,Ee.Ay)("MuiTypography",e)}(0,L.A)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Xe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Je=(0,U.Ay)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t["align".concat((0,V.A)(n.align))],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((e=>{let{theme:t,ownerState:n}=e;return(0,w.A)({margin:0},"inherit"===n.variant&&{font:"inherit"},"inherit"!==n.variant&&t.typography[n.variant],"inherit"!==n.align&&{textAlign:n.align},n.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n.gutterBottom&&{marginBottom:"0.35em"},n.paragraph&&{marginBottom:16})})),Ze={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},et={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},tt=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiTypography"}),r=(e=>et[e]||e)(n.color),o=(0,k.A)((0,w.A)({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:f=Ze}=o,p=(0,x.A)(o,Xe),h=(0,w.A)({},o,{align:i,color:r,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:f}),m=s||(u?"p":f[d]||Ze[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,"inherit"!==e.align&&"align".concat((0,V.A)(t)),n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return(0,z.A)(s,Qe,a)})(h);return(0,R.jsx)(Je,(0,w.A)({as:m,ref:t,ownerState:h,className:(0,A.A)(g.root,a)},p))}));var nt=__webpack_require__(1703);function rt(e){return(0,Ee.Ay)("MuiButton",e)}const ot=(0,L.A)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);const it=i.createContext({});const at=i.createContext(void 0),st=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],lt=e=>(0,w.A)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),ct=(0,U.Ay)(Pe,{shouldForwardProp:e=>(0,W.A)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t["".concat(n.variant).concat((0,V.A)(n.color))],t["size".concat((0,V.A)(n.size))],t["".concat(n.variant,"Size").concat((0,V.A)(n.size))],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((e=>{let{theme:t,ownerState:n}=e;var r,o;const i="light"===t.palette.mode?t.palette.grey[300]:t.palette.grey[800],a="light"===t.palette.mode?t.palette.grey.A100:t.palette.grey[700];return(0,w.A)({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":(0,w.A)({textDecoration:"none",backgroundColor:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,B.X4)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===n.variant&&"inherit"!==n.color&&{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,B.X4)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===n.variant&&"inherit"!==n.color&&{border:"1px solid ".concat((t.vars||t).palette[n.color].main),backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,B.X4)(t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===n.variant&&{backgroundColor:t.vars?t.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===n.variant&&"inherit"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[n.color].main}}),"&:active":(0,w.A)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[8]}),["&.".concat(ot.focusVisible)]:(0,w.A)({},"contained"===n.variant&&{boxShadow:(t.vars||t).shadows[6]}),["&.".concat(ot.disabled)]:(0,w.A)({color:(t.vars||t).palette.action.disabled},"outlined"===n.variant&&{border:"1px solid ".concat((t.vars||t).palette.action.disabledBackground)},"contained"===n.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===n.variant&&{padding:"6px 8px"},"text"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main},"outlined"===n.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].main,border:t.vars?"1px solid rgba(".concat(t.vars.palette[n.color].mainChannel," / 0.5)"):"1px solid ".concat((0,B.X4)(t.palette[n.color].main,.5))},"contained"===n.variant&&{color:t.vars?t.vars.palette.text.primary:null==(r=(o=t.palette).getContrastText)?void 0:r.call(o,t.palette.grey[300]),backgroundColor:t.vars?t.vars.palette.Button.inheritContainedBg:i,boxShadow:(t.vars||t).shadows[2]},"contained"===n.variant&&"inherit"!==n.color&&{color:(t.vars||t).palette[n.color].contrastText,backgroundColor:(t.vars||t).palette[n.color].main},"inherit"===n.color&&{color:"inherit",borderColor:"currentColor"},"small"===n.size&&"text"===n.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"text"===n.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"outlined"===n.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"outlined"===n.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===n.size&&"contained"===n.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===n.size&&"contained"===n.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},n.fullWidth&&{width:"100%"})}),(e=>{let{ownerState:t}=e;return t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},["&.".concat(ot.focusVisible)]:{boxShadow:"none"},"&:active":{boxShadow:"none"},["&.".concat(ot.disabled)]:{boxShadow:"none"}}})),ut=(0,U.Ay)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t["iconSize".concat((0,V.A)(n.size))]]}})((e=>{let{ownerState:t}=e;return(0,w.A)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},lt(t))})),dt=(0,U.Ay)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t["iconSize".concat((0,V.A)(n.size))]]}})((e=>{let{ownerState:t}=e;return(0,w.A)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},lt(t))})),ft=i.forwardRef((function(e,t){const n=i.useContext(it),r=i.useContext(at),o=(0,nt.A)(n,e),a=(0,G.b)({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:p=!1,endIcon:h,focusVisibleClassName:m,fullWidth:g=!1,size:v="medium",startIcon:y,type:b,variant:S="text"}=a,_=(0,x.A)(a,st),k=(0,w.A)({},a,{color:l,component:c,disabled:d,disableElevation:f,disableFocusRipple:p,fullWidth:g,size:v,type:b,variant:S}),C=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,"".concat(i).concat((0,V.A)(t)),"size".concat((0,V.A)(o)),"".concat(i,"Size").concat((0,V.A)(o)),"color".concat((0,V.A)(t)),n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon","iconSize".concat((0,V.A)(o))],endIcon:["icon","endIcon","iconSize".concat((0,V.A)(o))]},l=(0,z.A)(s,rt,a);return(0,w.A)({},a,l)})(k),E=y&&(0,R.jsx)(ut,{className:C.startIcon,ownerState:k,children:y}),O=h&&(0,R.jsx)(dt,{className:C.endIcon,ownerState:k,children:h}),T=r||"";return(0,R.jsxs)(ct,(0,w.A)({ownerState:k,className:(0,A.A)(n.className,C.root,u,T),component:c,disabled:d,focusRipple:!p,focusVisibleClassName:(0,A.A)(C.focusVisible,m),ref:t,type:b},_,{classes:C,children:[E,s,O]}))}));var pt=__webpack_require__(6599);const ht=function(e){return"string"===typeof e};const mt=function(e,t,n){return void 0===e||ht(e)?t:(0,w.A)({},t,{ownerState:(0,w.A)({},t.ownerState,n)})};const gt=function(e,t,n){return"function"===typeof e?e(t,n):e};const vt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"===typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n};const yt=function(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"===typeof e[t]))).forEach((n=>{t[n]=e[n]})),t};const bt=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=(0,A.A)(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=(0,w.A)({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=(0,w.A)({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=vt((0,w.A)({},o,r)),s=yt(r),l=yt(o),c=t(a),u=(0,A.A)(null==c?void 0:c.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=(0,w.A)({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),f=(0,w.A)({},c,n,l,s);return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}},wt=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],xt=["component","slots","slotProps"],At=["component"];function St(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,getSlotOwnerState:a,internalForwardedProps:s}=t,l=(0,x.A)(t,wt),{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0}}=i,f=(0,x.A)(i,xt),p=u[e]||r,h=gt(d[e],o),m=bt((0,w.A)({className:n},l,{externalForwardedProps:"root"===e?f:void 0,externalSlotProps:h})),{props:{component:g},internalRef:v}=m,y=(0,x.A)(m.props,At),b=(0,pt.A)(v,null==h?void 0:h.ref,t.ref),A=a?a(y):{},S=(0,w.A)({},o,A),_="root"===e?g||c:g,k=mt(p,(0,w.A)({},"root"===e&&!c&&!u[e]&&s,"root"!==e&&!u[e]&&s,y,_&&{as:_},{ref:b}),S);return Object.keys(A).forEach((e=>{delete k[e]})),[p,k]}const _t=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function kt(e){return(0,Ee.Ay)("MuiPaper",e)}(0,L.A)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Ct=["className","component","elevation","square","variant"],Et=(0,U.Ay)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t["elevation".concat(n.elevation)]]}})((e=>{let{theme:t,ownerState:n}=e;var r;return(0,w.A)({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!n.square&&{borderRadius:t.shape.borderRadius},"outlined"===n.variant&&{border:"1px solid ".concat((t.vars||t).palette.divider)},"elevation"===n.variant&&(0,w.A)({boxShadow:(t.vars||t).shadows[n.elevation]},!t.vars&&"dark"===t.palette.mode&&{backgroundImage:"linear-gradient(".concat((0,B.X4)("#fff",_t(n.elevation)),", ").concat((0,B.X4)("#fff",_t(n.elevation)),")")},t.vars&&{backgroundImage:null==(r=t.vars.overlays)?void 0:r[n.elevation]}))})),Ot=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,l=(0,x.A)(n,Ct),c=(0,w.A)({},n,{component:o,elevation:i,square:a,variant:s}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded","elevation"===r&&"elevation".concat(n)]};return(0,z.A)(i,kt,o)})(c);return(0,R.jsx)(Et,(0,w.A)({as:o,ownerState:c,className:(0,A.A)(u.root,r),ref:t},l))}));function Tt(e){return(0,Ee.Ay)("MuiAlert",e)}const It=(0,L.A)("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function Rt(e){return(0,Ee.Ay)("MuiIconButton",e)}const Pt=(0,L.A)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Mt=["edge","children","className","color","disabled","disableFocusRipple","size"],Dt=(0,U.Ay)(Pe,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t["color".concat((0,V.A)(n.color))],n.edge&&t["edge".concat((0,V.A)(n.edge))],t["size".concat((0,V.A)(n.size))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,w.A)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,B.X4)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===n.edge&&{marginLeft:"small"===n.size?-3:-12},"end"===n.edge&&{marginRight:"small"===n.size?-3:-12})}),(e=>{let{theme:t,ownerState:n}=e;var r;const o=null==(r=(t.vars||t).palette)?void 0:r[n.color];return(0,w.A)({},"inherit"===n.color&&{color:"inherit"},"inherit"!==n.color&&"default"!==n.color&&(0,w.A)({color:null==o?void 0:o.main},!n.disableRipple&&{"&:hover":(0,w.A)({},o&&{backgroundColor:t.vars?"rgba(".concat(o.mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,B.X4)(o.main,t.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===n.size&&{padding:5,fontSize:t.typography.pxToRem(18)},"large"===n.size&&{padding:12,fontSize:t.typography.pxToRem(28)},{["&.".concat(Pt.disabled)]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})})),Lt=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:c="medium"}=n,u=(0,x.A)(n,Mt),d=(0,w.A)({},n,{edge:r,color:a,disabled:s,disableFocusRipple:l,size:c}),f=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled","default"!==r&&"color".concat((0,V.A)(r)),o&&"edge".concat((0,V.A)(o)),"size".concat((0,V.A)(i))]};return(0,z.A)(a,Rt,t)})(d);return(0,R.jsx)(Dt,(0,w.A)({className:(0,A.A)(f.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},u,{ownerState:d,children:o}))})),jt=(0,Fe.A)((0,R.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),Nt=(0,Fe.A)((0,R.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Ft=(0,Fe.A)((0,R.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),zt=(0,Fe.A)((0,R.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),Bt=(0,Fe.A)((0,R.jsx)("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Vt=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],Ut=(0,U.Ay)(Ot,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t["".concat(n.variant).concat((0,V.A)(n.color||n.severity))]]}})((e=>{let{theme:t}=e;const n="light"===t.palette.mode?B.e$:B.a,r="light"===t.palette.mode?B.a:B.e$;return(0,w.A)({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.light})).map((e=>{let[o]=e;return{props:{colorSeverity:o,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert["".concat(o,"Color")]:n(t.palette[o].light,.6),backgroundColor:t.vars?t.vars.palette.Alert["".concat(o,"StandardBg")]:r(t.palette[o].light,.9),["& .".concat(It.icon)]:t.vars?{color:t.vars.palette.Alert["".concat(o,"IconColor")]}:{color:t.palette[o].main}}}})),...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.light})).map((e=>{let[r]=e;return{props:{colorSeverity:r,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert["".concat(r,"Color")]:n(t.palette[r].light,.6),border:"1px solid ".concat((t.vars||t).palette[r].light),["& .".concat(It.icon)]:t.vars?{color:t.vars.palette.Alert["".concat(r,"IconColor")]}:{color:t.palette[r].main}}}})),...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.dark})).map((e=>{let[n]=e;return{props:{colorSeverity:n,variant:"filled"},style:(0,w.A)({fontWeight:t.typography.fontWeightMedium},t.vars?{color:t.vars.palette.Alert["".concat(n,"FilledColor")],backgroundColor:t.vars.palette.Alert["".concat(n,"FilledBg")]}:{backgroundColor:"dark"===t.palette.mode?t.palette[n].dark:t.palette[n].main,color:t.palette.getContrastText(t.palette[n].main)})}}))]})})),Wt=(0,U.Ay)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),qt=(0,U.Ay)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Ht=(0,U.Ay)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Yt={success:(0,R.jsx)(jt,{fontSize:"inherit"}),warning:(0,R.jsx)(Nt,{fontSize:"inherit"}),error:(0,R.jsx)(Ft,{fontSize:"inherit"}),info:(0,R.jsx)(zt,{fontSize:"inherit"})},Gt=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiAlert"}),{action:r,children:o,className:i,closeText:a="Close",color:s,components:l={},componentsProps:c={},icon:u,iconMapping:d=Yt,onClose:f,role:p="alert",severity:h="success",slotProps:m={},slots:g={},variant:v="standard"}=n,y=(0,x.A)(n,Vt),b=(0,w.A)({},n,{color:s,severity:h,variant:v,colorSeverity:s||h}),S=(e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root","color".concat((0,V.A)(n||r)),"".concat(t).concat((0,V.A)(n||r)),"".concat(t)],icon:["icon"],message:["message"],action:["action"]};return(0,z.A)(i,Tt,o)})(b),_={slots:(0,w.A)({closeButton:l.CloseButton,closeIcon:l.CloseIcon},g),slotProps:(0,w.A)({},c,m)},[k,C]=St("closeButton",{elementType:Lt,externalForwardedProps:_,ownerState:b}),[E,O]=St("closeIcon",{elementType:Bt,externalForwardedProps:_,ownerState:b});return(0,R.jsxs)(Ut,(0,w.A)({role:p,elevation:0,ownerState:b,className:(0,A.A)(S.root,i),ref:t},y,{children:[!1!==u?(0,R.jsx)(Wt,{ownerState:b,className:S.icon,children:u||d[h]||Yt[h]}):null,(0,R.jsx)(qt,{ownerState:b,className:S.message,children:o}),null!=r?(0,R.jsx)(Ht,{ownerState:b,className:S.action,children:r}):null,null==r&&f?(0,R.jsx)(Ht,{ownerState:b,className:S.action,children:(0,R.jsx)(k,(0,w.A)({size:"small","aria-label":a,title:a,color:"inherit",onClick:f},C,{children:(0,R.jsx)(E,(0,w.A)({fontSize:"small"},O))}))}):null]}))})),Kt=()=>(0,o.wA)(),$t=e=>e.volatile.appViewport,Qt=e=>e.volatile.recordingActions,Xt=e=>e.volatile.aiGenerating,Jt=e=>e.volatile.activeFrameTab,Zt=e=>e.volatile.currentLocalSaveFolder,en=e=>e.volatile,tn=e=>e.volatile.tabs.find((t=>{let{id:n}=t;return e.volatile.activeTabId===n})),nn=e=>e.volatile.tabs,rn=e=>e.volatile.timeMachineLoadingTimestampState,on=e=>e.volatile.userStoryGoal,an=e=>e.volatile.isLoadedFromFile,sn=()=>(0,o.d4)(Qt),ln=()=>(0,o.d4)(Xt),cn=()=>(0,o.d4)(Jt),un=()=>(0,o.d4)(en),dn=()=>(0,o.d4)(tn,o.bN),fn=()=>(0,o.d4)(rn);function pn(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function hn(e){return!!e&&!!e[or]}function mn(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===ir}(e)||Array.isArray(e)||!!e[rr]||!!(null===(t=e.constructor)||void 0===t?void 0:t[rr])||An(e)||Sn(e))}function gn(e,t,n){void 0===n&&(n=!1),0===vn(e)?(n?Object.keys:ar)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function vn(e){var t=e[or];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:An(e)?2:Sn(e)?3:0}function yn(e,t){return 2===vn(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function bn(e,t){return 2===vn(e)?e.get(t):e[t]}function wn(e,t,n){var r=vn(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function xn(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function An(e){return Zn&&e instanceof Map}function Sn(e){return er&&e instanceof Set}function _n(e){return e.o||e.t}function kn(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=sr(e);delete t[or];for(var n=ar(t),r=0;r<n.length;r++){var o=n[r],i=t[o];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Cn(e,t){return void 0===t&&(t=!1),On(e)||hn(e)||!mn(e)||(vn(e)>1&&(e.set=e.add=e.clear=e.delete=En),Object.freeze(e),t&&gn(e,(function(e,t){return Cn(t,!0)}),!0)),e}function En(){pn(2)}function On(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function Tn(e){var t=lr[e];return t||pn(18,e),t}function In(e,t){lr[e]||(lr[e]=t)}function Rn(){return Xn}function Pn(e,t){t&&(Tn("Patches"),e.u=[],e.s=[],e.v=t)}function Mn(e){Dn(e),e.p.forEach(jn),e.p=null}function Dn(e){e===Xn&&(Xn=e.l)}function Ln(e){return Xn={p:[],l:Xn,h:e,m:!0,_:0}}function jn(e){var t=e[or];0===t.i||1===t.i?t.j():t.g=!0}function Nn(e,t){t._=t.p.length;var n=t.p[0],r=void 0!==e&&e!==n;return t.h.O||Tn("ES5").S(t,e,r),r?(n[or].P&&(Mn(t),pn(4)),mn(e)&&(e=Fn(t,e),t.l||Bn(t,e)),t.u&&Tn("Patches").M(n[or].t,e,t.u,t.s)):e=Fn(t,n,[]),Mn(t),t.u&&t.v(t.u,t.s),e!==nr?e:void 0}function Fn(e,t,n){if(On(t))return t;var r=t[or];if(!r)return gn(t,(function(o,i){return zn(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Bn(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=kn(r.k):r.o,i=o,a=!1;3===r.i&&(i=new Set(o),o.clear(),a=!0),gn(i,(function(t,i){return zn(e,r,o,t,i,n,a)})),Bn(e,o,!1),n&&e.u&&Tn("Patches").N(r,n,e.u,e.s)}return r.o}function zn(e,t,n,r,o,i,a){if(hn(o)){var s=Fn(e,o,i&&t&&3!==t.i&&!yn(t.R,r)?i.concat(r):void 0);if(wn(n,r,s),!hn(s))return;e.m=!1}else a&&n.add(o);if(mn(o)&&!On(o)){if(!e.h.D&&e._<1)return;Fn(e,o),t&&t.A.l||Bn(e,o)}}function Bn(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&Cn(t,n)}function Vn(e,t){var n=e[or];return(n?_n(n):e)[t]}function Un(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Wn(e){e.P||(e.P=!0,e.l&&Wn(e.l))}function qn(e){e.o||(e.o=kn(e.t))}function Hn(e,t,n){var r=An(t)?Tn("MapSet").F(t,n):Sn(t)?Tn("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:Rn(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=cr;n&&(o=[r],i=ur);var a=Proxy.revocable(o,i),s=a.revoke,l=a.proxy;return r.k=l,r.j=s,l}(t,n):Tn("ES5").J(t,n);return(n?n.A:Rn()).p.push(r),r}function Yn(e){return hn(e)||pn(22,e),function e(t){if(!mn(t))return t;var n,r=t[or],o=vn(t);if(r){if(!r.P&&(r.i<4||!Tn("ES5").K(r)))return r.t;r.I=!0,n=Gn(t,o),r.I=!1}else n=Gn(t,o);return gn(n,(function(t,o){r&&bn(r.t,t)===o||wn(n,t,e(o))})),3===o?new Set(n):n}(e)}function Gn(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return kn(e)}function Kn(){function e(e,t){var n=o[e];return n?n.enumerable=t:o[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[or];return cr.get(t,e)},set:function(t){var n=this[or];cr.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var o=e[t][or];if(!o.P)switch(o.i){case 5:r(o)&&Wn(o);break;case 4:n(o)&&Wn(o)}}}function n(e){for(var t=e.t,n=e.k,r=ar(n),o=r.length-1;o>=0;o--){var i=r[o];if(i!==or){var a=t[i];if(void 0===a&&!yn(t,i))return!0;var s=n[i],l=s&&s[or];if(l?l.t!==a:!xn(s,a))return!0}}var c=!!t[or];return r.length!==ar(t).length+(c?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r<t.length;r++)if(!t.hasOwnProperty(r))return!0;return!1}var o={};In("ES5",{J:function(t,n){var r=Array.isArray(t),o=function(t,n){if(t){for(var r=Array(n.length),o=0;o<n.length;o++)Object.defineProperty(r,""+o,e(o,!0));return r}var i=sr(n);delete i[or];for(var a=ar(i),s=0;s<a.length;s++){var l=a[s];i[l]=e(l,t||!!i[l].enumerable)}return Object.create(Object.getPrototypeOf(n),i)}(r,t),i={i:r?5:4,A:n?n.A:Rn(),P:!1,I:!1,R:{},l:n,t:t,k:o,o:null,g:!1,C:!1};return Object.defineProperty(o,or,{value:i,writable:!0}),o},S:function(e,n,o){o?hn(n)&&n[or].A===e&&t(e.p):(e.u&&function e(t){if(t&&"object"==typeof t){var n=t[or];if(n){var o=n.t,i=n.k,a=n.R,s=n.i;if(4===s)gn(i,(function(t){t!==or&&(void 0!==o[t]||yn(o,t)?a[t]||e(i[t]):(a[t]=!0,Wn(n)))})),gn(o,(function(e){void 0!==i[e]||yn(i,e)||(a[e]=!1,Wn(n))}));else if(5===s){if(r(n)&&(Wn(n),a.length=!0),i.length<o.length)for(var l=i.length;l<o.length;l++)a[l]=!1;else for(var c=o.length;c<i.length;c++)a[c]=!0;for(var u=Math.min(i.length,o.length),d=0;d<u;d++)i.hasOwnProperty(d)||(a[d]=!0),void 0===a[d]&&e(i[d])}}}}(e.p[0]),t(e.p))},K:function(e){return 4===e.i?n(e):r(e)}})}function $n(){function e(t){if(!mn(t))return t;if(Array.isArray(t))return t.map(e);if(An(t))return new Map(Array.from(t.entries()).map((function(t){return[t[0],e(t[1])]})));if(Sn(t))return new Set(Array.from(t).map(e));var n=Object.create(Object.getPrototypeOf(t));for(var r in t)n[r]=e(t[r]);return yn(t,rr)&&(n[rr]=t[rr]),n}function t(t){return hn(t)?e(t):t}var n="add";In("Patches",{$:function(t,r){return r.forEach((function(r){for(var o=r.path,i=r.op,a=t,s=0;s<o.length-1;s++){var l=vn(a),c=o[s];"string"!=typeof c&&"number"!=typeof c&&(c=""+c),0!==l&&1!==l||"__proto__"!==c&&"constructor"!==c||pn(24),"function"==typeof a&&"prototype"===c&&pn(24),"object"!=typeof(a=bn(a,c))&&pn(15,o.join("/"))}var u=vn(a),d=e(r.value),f=o[o.length-1];switch(i){case"replace":switch(u){case 2:return a.set(f,d);case 3:pn(16);default:return a[f]=d}case n:switch(u){case 1:return"-"===f?a.push(d):a.splice(f,0,d);case 2:return a.set(f,d);case 3:return a.add(d);default:return a[f]=d}case"remove":switch(u){case 1:return a.splice(f,1);case 2:return a.delete(f);case 3:return a.delete(r.value);default:return delete a[f]}default:pn(17,i)}})),t},N:function(e,r,o,i){switch(e.i){case 0:case 4:case 2:return function(e,r,o,i){var a=e.t,s=e.o;gn(e.R,(function(e,l){var c=bn(a,e),u=bn(s,e),d=l?yn(a,e)?"replace":n:"remove";if(c!==u||"replace"!==d){var f=r.concat(e);o.push("remove"===d?{op:d,path:f}:{op:d,path:f,value:u}),i.push(d===n?{op:"remove",path:f}:"remove"===d?{op:n,path:f,value:t(c)}:{op:"replace",path:f,value:t(c)})}}))}(e,r,o,i);case 5:case 1:return function(e,r,o,i){var a=e.t,s=e.R,l=e.o;if(l.length<a.length){var c=[l,a];a=c[0],l=c[1];var u=[i,o];o=u[0],i=u[1]}for(var d=0;d<a.length;d++)if(s[d]&&l[d]!==a[d]){var f=r.concat([d]);o.push({op:"replace",path:f,value:t(l[d])}),i.push({op:"replace",path:f,value:t(a[d])})}for(var p=a.length;p<l.length;p++){var h=r.concat([p]);o.push({op:n,path:h,value:t(l[p])})}a.length<l.length&&i.push({op:"replace",path:r.concat(["length"]),value:a.length})}(e,r,o,i);case 3:return function(e,t,r,o){var i=e.t,a=e.o,s=0;i.forEach((function(e){if(!a.has(e)){var i=t.concat([s]);r.push({op:"remove",path:i,value:e}),o.unshift({op:n,path:i,value:e})}s++})),s=0,a.forEach((function(e){if(!i.has(e)){var a=t.concat([s]);r.push({op:n,path:a,value:e}),o.unshift({op:"remove",path:a,value:e})}s++}))}(e,r,o,i)}},M:function(e,t,n,r){n.push({op:"replace",path:[],value:t===nr?void 0:t}),r.push({op:"replace",path:[],value:e})}})}var Qn,Xn,Jn="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),Zn="undefined"!=typeof Map,er="undefined"!=typeof Set,tr="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,nr=Jn?Symbol.for("immer-nothing"):((Qn={})["immer-nothing"]=!0,Qn),rr=Jn?Symbol.for("immer-draftable"):"__$immer_draftable",or=Jn?Symbol.for("immer-state"):"__$immer_state",ir=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),ar="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,sr=Object.getOwnPropertyDescriptors||function(e){var t={};return ar(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},lr={},cr={get:function(e,t){if(t===or)return e;var n=_n(e);if(!yn(n,t))return function(e,t,n){var r,o=Un(t,n);return o?"value"in o?o.value:null===(r=o.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!mn(r)?r:r===Vn(e.t,t)?(qn(e),e.o[t]=Hn(e.A.h,r,e)):r},has:function(e,t){return t in _n(e)},ownKeys:function(e){return Reflect.ownKeys(_n(e))},set:function(e,t,n){var r=Un(_n(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Vn(_n(e),t),i=null==o?void 0:o[or];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(xn(n,o)&&(void 0!==n||yn(e.t,t)))return!0;qn(e),Wn(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==Vn(e.t,t)||t in e.t?(e.R[t]=!1,qn(e),Wn(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=_n(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){pn(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){pn(12)}},ur={};gn(cr,(function(e,t){ur[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),ur.deleteProperty=function(e,t){return ur.set.call(this,e,t,void 0)},ur.set=function(e,t,n){return cr.set.call(this,e[0],t,n,e[0])};var dr=function(){function e(e){var t=this;this.O=tr,this.D=!0,this.produce=function(e,n,r){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var i=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),s=1;s<r;s++)a[s-1]=arguments[s];return i.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var a;if("function"!=typeof n&&pn(6),void 0!==r&&"function"!=typeof r&&pn(7),mn(e)){var s=Ln(t),l=Hn(t,e,void 0),c=!0;try{a=n(l),c=!1}finally{c?Mn(s):Dn(s)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(e){return Pn(s,r),Nn(e,s)}),(function(e){throw Mn(s),e})):(Pn(s,r),Nn(a,s))}if(!e||"object"!=typeof e){if(void 0===(a=n(e))&&(a=e),a===nr&&(a=void 0),t.D&&Cn(a,!0),r){var u=[],d=[];Tn("Patches").M(e,a,u,d),r(u,d)}return a}pn(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,o=Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(o))}))};var r,o,i=t.produce(e,n,(function(e,t){r=e,o=t}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(e){return[e,r,o]})):[i,r,o]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){mn(e)||pn(8),hn(e)&&(e=Yn(e));var t=Ln(this),n=Hn(this,e,void 0);return n[or].C=!0,Dn(t),n},t.finishDraft=function(e,t){var n=(e&&e[or]).A;return Pn(n,t),Nn(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!tr&&pn(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var o=Tn("Patches").$;return hn(e)?o(e,t):this.produce(e,(function(e){return o(e,t)}))},e}(),fr=new dr,pr=fr.produce,hr=fr.produceWithPatches.bind(fr),mr=(fr.setAutoFreeze.bind(fr),fr.setUseProxies.bind(fr),fr.applyPatches.bind(fr));fr.createDraft.bind(fr),fr.finishDraft.bind(fr);const gr=pr;function vr(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var yr="function"===typeof Symbol&&Symbol.observable||"@@observable",br=function(){return Math.random().toString(36).substring(7).split("").join(".")},wr={INIT:"@@redux/INIT"+br(),REPLACE:"@@redux/REPLACE"+br(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+br()}};function xr(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Ar(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(vr(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(vr(1));return n(Ar)(e,t)}if("function"!==typeof e)throw new Error(vr(2));var o=e,i=t,a=[],s=a,l=!1;function c(){s===a&&(s=a.slice())}function u(){if(l)throw new Error(vr(3));return i}function d(e){if("function"!==typeof e)throw new Error(vr(4));if(l)throw new Error(vr(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(vr(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),a=null}}}function f(e){if(!xr(e))throw new Error(vr(7));if("undefined"===typeof e.type)throw new Error(vr(8));if(l)throw new Error(vr(9));try{l=!0,i=o(i,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}return f({type:wr.INIT}),(r={dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!==typeof e)throw new Error(vr(10));o=e,f({type:wr.REPLACE})}})[yr]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(vr(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[yr]=function(){return this},e},r}function Sr(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];0,"function"===typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:wr.INIT}))throw new Error(vr(12));if("undefined"===typeof n(void 0,{type:wr.PROBE_UNKNOWN_ACTION()}))throw new Error(vr(13))}))}(n)}catch(s){i=s}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},s=0;s<a.length;s++){var l=a[s],c=n[l],u=e[l],d=c(u,t);if("undefined"===typeof d){t&&t.type;throw new Error(vr(14))}o[l]=d,r=r||d!==u}return(r=r||a.length!==Object.keys(e).length)?o:e}}function _r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function kr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(vr(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=_r.apply(void 0,i)(n.dispatch),(0,g.A)((0,g.A)({},n),{},{dispatch:r})}}}function Cr(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"===typeof o?o(n,r,e):t(o)}}}}var Er=Cr();Er.withExtraArgument=Cr;const Or=Er;var Tr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ir=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},Rr=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},Pr=Object.defineProperty,Mr=Object.defineProperties,Dr=Object.getOwnPropertyDescriptors,Lr=Object.getOwnPropertySymbols,jr=Object.prototype.hasOwnProperty,Nr=Object.prototype.propertyIsEnumerable,Fr=function(e,t,n){return t in e?Pr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},zr=function(e,t){for(var n in t||(t={}))jr.call(t,n)&&Fr(e,n,t[n]);if(Lr)for(var r=0,o=Lr(t);r<o.length;r++){n=o[r];Nr.call(t,n)&&Fr(e,n,t[n])}return e},Br=function(e,t){return Mr(e,Dr(t))},Vr=function(e,t,n){return new Promise((function(r,o){var i=function(e){try{s(n.next(e))}catch(t){o(t)}},a=function(e){try{s(n.throw(e))}catch(t){o(t)}},s=function(e){return e.done?r(e.value):Promise.resolve(e.value).then(i,a)};s((n=n.apply(e,t)).next())}))},Ur="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?_r:_r.apply(null,arguments)};"undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function Wr(e){if("object"!==typeof e||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var n=t;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return t===n}var qr=function(e){return e&&"function"===typeof e.match};function Hr(e,t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];if(t){var o=t.apply(void 0,n);if(!o)throw new Error("prepareAction did not return an object");return zr(zr({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:e,payload:n[0]}}return n.toString=function(){return""+e},n.type=e,n.match=function(t){return t.type===e},n}function Yr(e){return Wr(e)&&"type"in e}var Gr=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return Tr(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,Rr([void 0],e[0].concat(this)))):new(t.bind.apply(t,Rr([void 0],e.concat(this))))},t}(Array),Kr=function(e){function t(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=e.apply(this,n)||this;return Object.setPrototypeOf(o,t.prototype),o}return Tr(t,e),Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.prototype.concat.apply(this,t)},t.prototype.prepend=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 1===e.length&&Array.isArray(e[0])?new(t.bind.apply(t,Rr([void 0],e[0].concat(this)))):new(t.bind.apply(t,Rr([void 0],e.concat(this))))},t}(Array);function $r(e){return mn(e)?gr(e,(function(){})):e}function Qr(){return function(e){return function(e){void 0===e&&(e={});var t=e.thunk,n=void 0===t||t,r=(e.immutableCheck,e.serializableCheck,e.actionCreatorCheck,new Gr);n&&("boolean"===typeof n?r.push(Or):r.push(Or.withExtraArgument(n.extraArgument)));0;return r}(e)}}function Xr(e){var t,n={},r=[],o={addCase:function(e,t){var r="string"===typeof e?e:e.type;if(!r)throw new Error("`builder.addCase` cannot be called with an empty action type");if(r in n)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return n[r]=t,o},addMatcher:function(e,t){return r.push({matcher:e,reducer:t}),o},addDefaultCase:function(e){return t=e,o}};return e(o),[n,r,t]}function Jr(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");var n,r="function"==typeof e.initialState?e.initialState:$r(e.initialState),o=e.reducers||{},i=Object.keys(o),a={},s={},l={};function c(){var t="function"===typeof e.extraReducers?Xr(e.extraReducers):[e.extraReducers],n=t[0],o=void 0===n?{}:n,i=t[1],a=void 0===i?[]:i,l=t[2],c=void 0===l?void 0:l,u=zr(zr({},o),s);return function(e,t,n,r){void 0===n&&(n=[]);var o,i="function"===typeof t?Xr(t):[t,n,r],a=i[0],s=i[1],l=i[2];if("function"===typeof e)o=function(){return $r(e())};else{var c=$r(e);o=function(){return c}}function u(e,t){void 0===e&&(e=o());var n=Rr([a[t.type]],s.filter((function(e){return(0,e.matcher)(t)})).map((function(e){return e.reducer})));return 0===n.filter((function(e){return!!e})).length&&(n=[l]),n.reduce((function(e,n){if(n){var r;if(hn(e))return void 0===(r=n(e,t))?e:r;if(mn(e))return gr(e,(function(e){return n(e,t)}));if(void 0===(r=n(e,t))){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return r}return e}),e)}return u.getInitialState=o,u}(r,(function(e){for(var t in u)e.addCase(t,u[t]);for(var n=0,r=a;n<r.length;n++){var o=r[n];e.addMatcher(o.matcher,o.reducer)}c&&e.addDefaultCase(c)}))}return i.forEach((function(e){var n,r,i=o[e],c=t+"/"+e;"reducer"in i?(n=i.reducer,r=i.prepare):n=i,a[e]=n,s[c]=n,l[e]=r?Hr(c,r):Hr(c)})),{name:t,reducer:function(e,t){return n||(n=c()),n(e,t)},actions:l,caseReducers:a,getInitialState:function(){return n||(n=c()),n.getInitialState()}}}var Zr=function(e){void 0===e&&(e=21);for(var t="",n=e;n--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},eo=["name","message","stack","code"],to=function(e,t){this.payload=e,this.meta=t},no=function(e,t){this.payload=e,this.meta=t},ro=function(e){if("object"===typeof e&&null!==e){for(var t={},n=0,r=eo;n<r.length;n++){var o=r[n];"string"===typeof e[o]&&(t[o]=e[o])}return t}return{message:String(e)}},oo=function(){function e(e,t,n){var r=Hr(e+"/fulfilled",(function(e,t,n,r){return{payload:e,meta:Br(zr({},r||{}),{arg:n,requestId:t,requestStatus:"fulfilled"})}})),o=Hr(e+"/pending",(function(e,t,n){return{payload:void 0,meta:Br(zr({},n||{}),{arg:t,requestId:e,requestStatus:"pending"})}})),i=Hr(e+"/rejected",(function(e,t,r,o,i){return{payload:o,error:(n&&n.serializeError||ro)(e||"Rejected"),meta:Br(zr({},i||{}),{arg:r,requestId:t,rejectedWithValue:!!o,requestStatus:"rejected",aborted:"AbortError"===(null==e?void 0:e.name),condition:"ConditionError"===(null==e?void 0:e.name)})}})),a="undefined"!==typeof AbortController?AbortController:function(){function e(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return e.prototype.abort=function(){0},e}();return Object.assign((function(e){return function(s,l,c){var u,d=(null==n?void 0:n.idGenerator)?n.idGenerator(e):Zr(),f=new a;function p(e){u=e,f.abort()}var h=function(){return Vr(this,null,(function(){var a,h,m,g,v,y;return Ir(this,(function(b){switch(b.label){case 0:return b.trys.push([0,4,,5]),g=null==(a=null==n?void 0:n.condition)?void 0:a.call(n,e,{getState:l,extra:c}),null===(w=g)||"object"!==typeof w||"function"!==typeof w.then?[3,2]:[4,g];case 1:g=b.sent(),b.label=2;case 2:if(!1===g||f.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return v=new Promise((function(e,t){return f.signal.addEventListener("abort",(function(){return t({name:"AbortError",message:u||"Aborted"})}))})),s(o(d,e,null==(h=null==n?void 0:n.getPendingMeta)?void 0:h.call(n,{requestId:d,arg:e},{getState:l,extra:c}))),[4,Promise.race([v,Promise.resolve(t(e,{dispatch:s,getState:l,extra:c,requestId:d,signal:f.signal,abort:p,rejectWithValue:function(e,t){return new to(e,t)},fulfillWithValue:function(e,t){return new no(e,t)}})).then((function(t){if(t instanceof to)throw t;return t instanceof no?r(t.payload,d,e,t.meta):r(t,d,e)}))])];case 3:return m=b.sent(),[3,5];case 4:return y=b.sent(),m=y instanceof to?i(null,d,e,y.payload,y.meta):i(y,d,e),[3,5];case 5:return n&&!n.dispatchConditionRejection&&i.match(m)&&m.meta.condition||s(m),[2,m]}var w}))}))}();return Object.assign(h,{abort:p,requestId:d,arg:e,unwrap:function(){return h.then(io)}})}}),{pending:o,rejected:i,fulfilled:r,typePrefix:e})}return e.withTypes=function(){return e},e}();function io(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var ao=function(e,t){return qr(e)?e.match(t):e(t)};function so(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.some((function(e){return ao(e,t)}))}}function lo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return e.every((function(e){return ao(e,t)}))}}function co(e,t){if(!e||!e.meta)return!1;var n="string"===typeof e.meta.requestId,r=t.indexOf(e.meta.requestStatus)>-1;return n&&r}function uo(e){return"function"===typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function fo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?function(e){return co(e,["pending"])}:uo(e)?function(t){var n=e.map((function(e){return e.pending}));return so.apply(void 0,n)(t)}:fo()(e[0])}function po(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?function(e){return co(e,["rejected"])}:uo(e)?function(t){var n=e.map((function(e){return e.rejected}));return so.apply(void 0,n)(t)}:po()(e[0])}function ho(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=function(e){return e&&e.meta&&e.meta.rejectedWithValue};return 0===e.length||uo(e)?function(t){return lo(po.apply(void 0,e),n)(t)}:ho()(e[0])}function mo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?function(e){return co(e,["fulfilled"])}:uo(e)?function(t){var n=e.map((function(e){return e.fulfilled}));return so.apply(void 0,n)(t)}:mo()(e[0])}function go(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?function(e){return co(e,["pending","fulfilled","rejected"])}:uo(e)?function(t){for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];n.push(i.pending,i.rejected,i.fulfilled)}return so.apply(void 0,n)(t)}:go()(e[0])}var vo=function(e,t){if("function"!==typeof e)throw new TypeError(t+" is not a function")},yo=function(){},bo=function(e,t){return void 0===t&&(t=yo),e.catch(t),e},wo=function(e,t){return e.addEventListener("abort",t,{once:!0}),function(){return e.removeEventListener("abort",t)}},xo=function(e,t){var n=e.signal;n.aborted||("reason"in n||Object.defineProperty(n,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},Ao="listener",So="completed",_o="cancelled",ko="task-"+_o,Co="task-"+So,Eo=Ao+"-"+_o,Oo=Ao+"-"+So,To=function(e){this.code=e,this.name="TaskAbortError",this.message="task "+_o+" (reason: "+e+")"},Io=function(e){if(e.aborted)throw new To(e.reason)};function Ro(e,t){var n=yo;return new Promise((function(r,o){var i=function(){return o(new To(e.reason))};e.aborted?i():(n=wo(e,i),t.finally((function(){return n()})).then(r,o))})).finally((function(){n=yo}))}var Po=function(e){return function(t){return bo(Ro(e,t).then((function(t){return Io(e),t})))}},Mo=function(e){var t=Po(e);return function(e){return t(new Promise((function(t){return setTimeout(t,e)})))}},Do=Object.assign,Lo={},jo="listenerMiddleware",No=function(e,t){return function(n,r){vo(n,"taskExecutor");var o,i=new AbortController;o=i,wo(e,(function(){return xo(o,e.reason)}));var a,s,l=(a=function(){return Vr(void 0,null,(function(){var t;return Ir(this,(function(r){switch(r.label){case 0:return Io(e),Io(i.signal),[4,n({pause:Po(i.signal),delay:Mo(i.signal),signal:i.signal})];case 1:return t=r.sent(),Io(i.signal),[2,t]}}))}))},s=function(){return xo(i,Co)},Vr(void 0,null,(function(){var e;return Ir(this,(function(t){switch(t.label){case 0:return t.trys.push([0,3,4,5]),[4,Promise.resolve()];case 1:return t.sent(),[4,a()];case 2:return[2,{status:"ok",value:t.sent()}];case 3:return[2,{status:(e=t.sent())instanceof To?"cancelled":"rejected",error:e}];case 4:return null==s||s(),[7];case 5:return[2]}}))})));return(null==r?void 0:r.autoJoin)&&t.push(l),{result:Po(e)(l),cancel:function(){xo(i,ko)}}}},Fo=function(e,t){return function(n,r){return bo(function(n,r){return Vr(void 0,null,(function(){var o,i,a,s;return Ir(this,(function(l){switch(l.label){case 0:Io(t),o=function(){},i=new Promise((function(t,r){var i=e({predicate:n,effect:function(e,n){n.unsubscribe(),t([e,n.getState(),n.getOriginalState()])}});o=function(){i(),r()}})),a=[i],null!=r&&a.push(new Promise((function(e){return setTimeout(e,r,null)}))),l.label=1;case 1:return l.trys.push([1,,3,4]),[4,Ro(t,Promise.race(a))];case 2:return s=l.sent(),Io(t),[2,s];case 3:return o(),[7];case 4:return[2]}}))}))}(n,r))}},zo=function(e){var t=e.type,n=e.actionCreator,r=e.matcher,o=e.predicate,i=e.effect;if(t)o=Hr(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error("Creating or removing a listener requires one of the known fields for matching an action");return vo(i,"options.listener"),{predicate:o,type:t,effect:i}},Bo=function(e){e.pending.forEach((function(e){xo(e,Eo)}))},Vo=function(e,t,n){try{e(t,n)}catch(r){setTimeout((function(){throw r}),0)}},Uo=Hr(jo+"/add"),Wo=Hr(jo+"/removeAll"),qo=Hr(jo+"/remove"),Ho=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.error.apply(console,Rr([jo+"/error"],e))};var Yo,Go="RTK_autoBatch",Ko=function(){return function(e){var t;return{payload:e,meta:(t={},t[Go]=!0,t)}}},$o=("function"===typeof queueMicrotask&&queueMicrotask.bind("undefined"!==typeof window?window:"undefined"!==typeof __webpack_require__.g?__webpack_require__.g:globalThis),function(e){return function(t){setTimeout(t,e)}});"undefined"!==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:$o(10);Kn();let Qo=function(e){return e.Step="step",e.Tab="tab",e.Recording="recording",e.Replayer="replayer",e}({}),Xo=function(e){return e.InsertLast="InsertLast",e.InsertAfterStep="AfterStep",e}({}),Jo=function(e){return e.Manual="manual",e.AI="ai",e.Recording="recording",e}({}),Zo=function(e){return e.Action="Action",e.Assertion="Assertion",e}({}),ei=function(e){return e.Playwright="Playwright",e.PlaywrightTest="PlaywrightTest",e.Checksum="Checksum",e}({});let ti=function(e){return e.Processing="Processing",e.Paused="Paused",e.Live="Live",e}({}),ni=function(e){return e[e.Live=0]="Live",e[e.TimeMachine=1]="TimeMachine",e}({});const ri=Jr({name:"volatile",initialState:{layoutOptions:{},layoutOptionsStack:[],stepsTabPanelHeight:void 0,activeFrameTab:ni.Live,recordingActions:!1,recordingOptions:{mode:Xo.InsertLast},aiGenerating:!1,isReplayingAction:!1,currentLocalSaveFolder:null,isLoadedFromFile:!1,isServerReadyToInteract:!1,isInitFinished:!1,initFinishedTimestamp:null,serverPort:null,appViewport:void 0,timeMachineLoadingTimestampState:ti.Paused,userStoryGoal:void 0,activeTabId:"main",tabs:[{type:Zo.Action,id:"main",isNew:!1,isTemporary:!1,openedAt:Date.now()}]},reducers:{setLayoutOptions:(e,t)=>{e.layoutOptionsStack.push(e.layoutOptions),e.layoutOptions=t.payload},popLayoutOptions:e=>{e.layoutOptionsStack.length&&(e.layoutOptions=e.layoutOptionsStack.pop())},setCurrentUploadFolder:(e,t)=>{e.currentLocalSaveFolder=t.payload},setIsLoadedFromFile:(e,t)=>{e.isLoadedFromFile=t.payload},setStepsTabPanelHeight:(e,t)=>{e.stepsTabPanelHeight=t.payload},setUserStoryGoal:(e,t)=>{e.userStoryGoal=t.payload},setIsReplayingAction:(e,t)=>{e.isReplayingAction=t.payload},setIsAiGenerating:(e,t)=>{e.aiGenerating=t.payload},setIsRecordingActions:(e,t)=>{e.recordingActions=t.payload.recordingActions,t.payload.recordingActions||(e.recordingOptions={mode:Xo.InsertLast})},setRecordingOptions:(e,t)=>{e.recordingOptions=t.payload},setIsServerReadyToInteract:(e,t)=>{e.isServerReadyToInteract=t.payload},setIsInitFinished:(e,t)=>{e.initFinishedTimestamp=Date.now(),e.isInitFinished=t.payload},setTimeMachineLoadingTimestampState:(e,t)=>{e.timeMachineLoadingTimestampState=t.payload},setLiveFrameActive:e=>{yz.stopInspector(),e.activeFrameTab=ni.Live},setTimeMachineFrameActive:e=>{e.activeFrameTab=ni.TimeMachine},setActiveFrame:(e,t)=>{e.activeFrameTab=t.payload},setServerPort:(e,t)=>{e.serverPort=t.payload,e.isServerReadyToInteract=!0},setAppViewport:(e,t)=>{e.appViewport=t.payload},createTab:(e,t)=>{},setActiveTabId:(e,t)=>{e.activeTabId=t.payload},removeTab:(e,t)=>{"main"!==t.payload&&(e.tabs=e.tabs.filter((e=>{let{id:n}=e;return n!==t.payload})),e.activeTabId="main")},updateTab:(e,t)=>{const n=t.payload.id;e.tabs=e.tabs.map((e=>e.id===n?(0,g.A)((0,g.A)({},e),t.payload):e))},updateTabs:(e,t)=>{const n=t.payload.tab,r=e.tabs,o=e.tabs.findIndex((e=>{let{id:t}=e;return t===n.id}));let i=[...r];if(-1!==o){const e=r[o];i[o]=(0,g.A)((0,g.A)({},n),{},{isTemporary:!!e.isTemporary&&n.isTemporary,openedAt:e.openedAt})}else i.push(n),i=i.filter((e=>{let{id:t,isTemporary:r}=e;return!r||t===n.id}));e.tabs=i,t.payload.switch&&(e.activeTabId=n.id)}}}),{setStepsTabPanelHeight:oi,setAppViewport:ii,setLayoutOptions:ai,popLayoutOptions:si,setUserStoryGoal:li,setIsAiGenerating:ci,setIsRecordingActions:ui,setTimeMachineFrameActive:di,setLiveFrameActive:fi,setActiveFrame:pi,setIsReplayingAction:hi,setRecordingOptions:mi,setCurrentUploadFolder:gi,setIsLoadedFromFile:vi,setIsInitFinished:yi,setServerPort:bi,setActiveTabId:wi,removeTab:xi,updateTabs:Ai,updateTab:Si,setTimeMachineLoadingTimestampState:_i}=ri.actions,ki=ri.reducer,Ci=()=>{const e=cn(),t=Kt(),{isInitFinished:n}=un(),r=(0,i.useCallback)(((e,n)=>{t(pi(n))}),[t]),o=(0,i.useCallback)((()=>{bz.goLiveTimeMachine()}),[]),a=sn(),s=(0,i.useRef)(null);(0,i.useEffect)((()=>{var e;if(null===s||void 0===s||!s.current||null===(e=s.current.contentWindow)||void 0===e||!e.checksum)return;(e=>{var t,n;null===(t=s.current.contentWindow)||void 0===t||null===(n=t.checksum)||void 0===n||n.visualTestGenerator.setSendRecordedSteps(e)})(a)}),[a]);const l=Jz(),c=nB(null===l||void 0===l?void 0:l.id),u=Boolean(!(null!==l&&void 0!==l&&l.timestamp)),{isAdaptiveScalingActive:d,setIsAdaptiveScalingActive:f,liveRef:p}=Ei(e,s);return(0,i.useEffect)((()=>{e===ni.Live&&function(e,t){let n=null;n=setInterval((()=>{e()&&(n&&(clearInterval(n),n=null),t())}),arguments.length>2&&void 0!==arguments[2]?arguments[2]:500)}((()=>bz.isConnected()),(()=>bz.goLiveTimeMachine()))}),[e,l]),{tmRef:s,liveRef:p,activeFrame:e,handleChange:r,isInitFinished:n,setIsAdaptiveScalingActive:f,isAdaptiveScalingActive:d,activeStep:l,isSeekbarActive:c,resyncLiveFrame:o,showBlank:u}},Ei=(e,t)=>{const n=(0,i.useRef)(null);(0,i.useEffect)((()=>{null!==t&&void 0!==t&&t.current&&Oi(t.current)}),[t]),(0,i.useEffect)((()=>{null!==n&&void 0!==n&&n.current&&Oi(n.current)}),[n]);const[r,o]=(0,i.useState)(!0),a=e===ni.Live?n.current:t.current;return Ti(a,r),{isAdaptiveScalingActive:r,setIsAdaptiveScalingActive:o,liveRef:n}},Oi=e=>{const t=e.contentDocument.createElement("style");t.textContent="\n body {\n margin: 0;\n padding: 0;\n }\n .replayer-wrapper > iframe { border:none}\n ",e.contentDocument.head.appendChild(t)},Ti=(e,t)=>{const n=(0,o.d4)($t),r=(0,i.useCallback)((()=>{if(!e||!n)return;if(!t)return e.style.transform="none",e.style.width="100%",void(e.style.height="100%");e.style.width="".concat(n.width,"px"),e.style.height="".concat(n.height,"px");const r=e.parentElement,o=r.clientWidth-10,i=r.clientHeight-10,a=o/n.width,s=i/n.height,l=Math.min(a,s);e.style.transform="translate(-50%, -50%) scale(".concat(l,")")}),[n,e,t]);(0,i.useEffect)((()=>{if(!e)return;const t=e.parentElement;if(!t)return;const n=new ResizeObserver((()=>{r()}));return n.observe(t),()=>n.disconnect()}),[e,r]),(0,i.useEffect)((()=>(window.addEventListener("resize",r),()=>window.removeEventListener("resize",r))),[e,r]),(0,i.useEffect)((()=>{r()}),[r,t])},Ii=["value"],Ri=i.createContext();const Pi=()=>{const e=i.useContext(Ri);return null!=e&&e},Mi=function(e){let{value:t}=e,n=(0,x.A)(e,Ii);return(0,R.jsx)(Ri.Provider,(0,w.A)({value:null==t||t},n))},Di=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];const Li=function(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=(0,x.A)(e,Di),s=i?{}:gt(r,o),{props:l,internalRef:c}=bt((0,w.A)({},a,{externalSlotProps:s})),u=(0,pt.A)(c,null==s?void 0:s.ref,null==(t=e.additionalProps)?void 0:t.ref);return mt(n,(0,w.A)({},l,{ref:u}),o)};var ji=__webpack_require__(4193);function Ni(){const e=I(ji.A);return e[D.A]||e}var Fi=__webpack_require__(6603);let zi;function Bi(){if(zi)return zi;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),zi="reverse",e.scrollLeft>0?zi="default":(e.scrollLeft=1,0===e.scrollLeft&&(zi="negative")),document.body.removeChild(e),zi}function Vi(e,t){const n=e.scrollLeft;if("rtl"!==t)return n;switch(Bi()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function Ui(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var Wi=__webpack_require__(8862),qi=__webpack_require__(1137);const Hi=["onChange"],Yi={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};const Gi=(0,Fe.A)((0,R.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Ki=(0,Fe.A)((0,R.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function $i(e){return(0,Ee.Ay)("MuiTabScrollButton",e)}const Qi=(0,L.A)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Xi=["className","slots","slotProps","direction","orientation","disabled"],Ji=(0,U.Ay)(Pe,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})((e=>{let{ownerState:t}=e;return(0,w.A)({width:40,flexShrink:0,opacity:.8,["&.".concat(Qi.disabled)]:{opacity:0}},"vertical"===t.orientation&&{width:"100%",height:40,"& svg":{transform:"rotate(".concat(t.isRtl?-90:90,"deg)")}})})),Zi=i.forwardRef((function(e,t){var n,r;const o=(0,G.b)({props:e,name:"MuiTabScrollButton"}),{className:i,slots:a={},slotProps:s={},direction:l}=o,c=(0,x.A)(o,Xi),u=Pi(),d=(0,w.A)({isRtl:u},o),f=(e=>{const{classes:t,orientation:n,disabled:r}=e,o={root:["root",n,r&&"disabled"]};return(0,z.A)(o,$i,t)})(d),p=null!=(n=a.StartScrollButtonIcon)?n:Gi,h=null!=(r=a.EndScrollButtonIcon)?r:Ki,m=Li({elementType:p,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d}),g=Li({elementType:h,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:d});return(0,R.jsx)(Ji,(0,w.A)({component:"div",className:(0,A.A)(f.root,i),ref:t,role:null,ownerState:d,tabIndex:null},c,{children:"left"===l?(0,R.jsx)(p,(0,w.A)({},m)):(0,R.jsx)(h,(0,w.A)({},g))}))}));function ea(e){return(0,Ee.Ay)("MuiTabs",e)}const ta=(0,L.A)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);var na=__webpack_require__(4052);const ra=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],oa=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,ia=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,aa=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const t=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!t)return void o.focus();o=n(e,o)}},sa=(0,U.Ay)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& .".concat(ta.scrollButtons)]:t.scrollButtons},{["& .".concat(ta.scrollButtons)]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})((e=>{let{ownerState:t,theme:n}=e;return(0,w.A)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{["& .".concat(ta.scrollButtons)]:{[n.breakpoints.down("sm")]:{display:"none"}}})})),la=(0,U.Ay)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})((e=>{let{ownerState:t}=e;return(0,w.A)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})})),ca=(0,U.Ay)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})((e=>{let{ownerState:t}=e;return(0,w.A)({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})})),ua=(0,U.Ay)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((e=>{let{ownerState:t,theme:n}=e;return(0,w.A)({position:"absolute",height:2,bottom:0,width:"100%",transition:n.transitions.create()},"primary"===t.indicatorColor&&{backgroundColor:(n.vars||n).palette.primary.main},"secondary"===t.indicatorColor&&{backgroundColor:(n.vars||n).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})})),da=(0,U.Ay)((function(e){const{onChange:t}=e,n=(0,x.A)(e,Hi),r=i.useRef(),o=i.useRef(null),a=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return(0,Wi.A)((()=>{const e=(0,Fi.A)((()=>{const e=r.current;a(),e!==r.current&&t(r.current)})),n=(0,qi.A)(o.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}}),[t]),i.useEffect((()=>{a(),t(r.current)}),[t]),(0,R.jsx)("div",(0,w.A)({style:Yi},n,{ref:o}))}))({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),fa={};const pa=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiTabs"}),r=Ni(),o=Pi(),{"aria-label":a,"aria-labelledby":s,action:l,centered:c=!1,children:u,className:d,component:f="div",allowScrollButtonsMobile:p=!1,indicatorColor:h="primary",onChange:m,orientation:g="horizontal",ScrollButtonComponent:v=Zi,scrollButtons:y="auto",selectionFollowsFocus:b,slots:S={},slotProps:_={},TabIndicatorProps:k={},TabScrollButtonProps:C={},textColor:E="primary",value:O,variant:T="standard",visibleScrollbar:I=!1}=n,P=(0,x.A)(n,ra),M="scrollable"===T,D="vertical"===g,L=D?"scrollTop":"scrollLeft",j=D?"top":"left",N=D?"bottom":"right",F=D?"clientHeight":"clientWidth",B=D?"height":"width",V=(0,w.A)({},n,{component:f,allowScrollButtonsMobile:p,indicatorColor:h,orientation:g,vertical:D,scrollButtons:y,textColor:E,variant:T,visibleScrollbar:I,fixed:!M,hideScrollbar:M&&!I,scrollableX:M&&!D,scrollableY:M&&D,centered:c&&!M,scrollButtonsHideMobile:!p}),U=(e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e,c={root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]};return(0,z.A)(c,ea,l)})(V),W=Li({elementType:S.StartScrollButtonIcon,externalSlotProps:_.startScrollButtonIcon,ownerState:V}),q=Li({elementType:S.EndScrollButtonIcon,externalSlotProps:_.endScrollButtonIcon,ownerState:V});const[H,Y]=i.useState(!1),[K,Q]=i.useState(fa),[X,J]=i.useState(!1),[Z,ee]=i.useState(!1),[te,ne]=i.useState(!1),[re,oe]=i.useState({overflow:"hidden",scrollbarWidth:0}),ie=new Map,ae=i.useRef(null),se=i.useRef(null),le=()=>{const e=ae.current;let t,n;if(e){const n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollLeftNormalized:Vi(e,o?"rtl":"ltr"),scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(e&&!1!==O){const e=se.current.children;if(e.length>0){const t=e[ie.get(O)];0,n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},ce=(0,$.A)((()=>{const{tabsMeta:e,tabMeta:t}=le();let n,r=0;if(D)n="top",t&&e&&(r=t.top-e.top+e.scrollTop);else if(n=o?"right":"left",t&&e){const i=o?e.scrollLeftNormalized+e.clientWidth-e.scrollWidth:e.scrollLeft;r=(o?-1:1)*(t[n]-e[n]+i)}const i={[n]:r,[B]:t?t[B]:0};if(isNaN(K[n])||isNaN(K[B]))Q(i);else{const e=Math.abs(K[n]-i[n]),t=Math.abs(K[B]-i[B]);(e>=1||t>=1)&&Q(i)}})),ue=function(e){let{animation:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t?function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>{};const{ease:i=Ui,duration:a=300}=r;let s=null;const l=t[e];let c=!1;const u=()=>{c=!0},d=r=>{if(c)return void o(new Error("Animation cancelled"));null===s&&(s=r);const u=Math.min(1,(r-s)/a);t[e]=i(u)*(n-l)+l,u>=1?requestAnimationFrame((()=>{o(null)})):requestAnimationFrame(d)};l===n?o(new Error("Element already at target position")):requestAnimationFrame(d)}(L,ae.current,e,{duration:r.transitions.duration.standard}):ae.current[L]=e},de=e=>{let t=ae.current[L];D?t+=e:(t+=e*(o?-1:1),t*=o&&"reverse"===Bi()?-1:1),ue(t)},fe=()=>{const e=ae.current[F];let t=0;const n=Array.from(se.current.children);for(let r=0;r<n.length;r+=1){const o=n[r];if(t+o[F]>e){0===r&&(t=e);break}t+=o[F]}return t},pe=()=>{de(-1*fe())},he=()=>{de(fe())},me=i.useCallback((e=>{oe({overflow:null,scrollbarWidth:e})}),[]),ge=(0,$.A)((e=>{const{tabsMeta:t,tabMeta:n}=le();if(n&&t)if(n[j]<t[j]){const r=t[L]+(n[j]-t[j]);ue(r,{animation:e})}else if(n[N]>t[N]){const r=t[L]+(n[N]-t[N]);ue(r,{animation:e})}})),ve=(0,$.A)((()=>{M&&!1!==y&&ne(!te)}));i.useEffect((()=>{const e=(0,Fi.A)((()=>{ae.current&&ce()}));let t;const n=n=>{n.forEach((e=>{e.removedNodes.forEach((e=>{var n;null==(n=t)||n.unobserve(e)})),e.addedNodes.forEach((e=>{var n;null==(n=t)||n.observe(e)}))})),e(),ve()},r=(0,qi.A)(ae.current);let o;return r.addEventListener("resize",e),"undefined"!==typeof ResizeObserver&&(t=new ResizeObserver(e),Array.from(se.current.children).forEach((e=>{t.observe(e)}))),"undefined"!==typeof MutationObserver&&(o=new MutationObserver(n),o.observe(se.current,{childList:!0})),()=>{var n,i;e.clear(),r.removeEventListener("resize",e),null==(n=o)||n.disconnect(),null==(i=t)||i.disconnect()}}),[ce,ve]),i.useEffect((()=>{const e=Array.from(se.current.children),t=e.length;if("undefined"!==typeof IntersectionObserver&&t>0&&M&&!1!==y){const n=e[0],r=e[t-1],o={root:ae.current,threshold:.99},i=new IntersectionObserver((e=>{J(!e[0].isIntersecting)}),o);i.observe(n);const a=new IntersectionObserver((e=>{ee(!e[0].isIntersecting)}),o);return a.observe(r),()=>{i.disconnect(),a.disconnect()}}}),[M,y,te,null==u?void 0:u.length]),i.useEffect((()=>{Y(!0)}),[]),i.useEffect((()=>{ce()})),i.useEffect((()=>{ge(fa!==K)}),[ge,K]),i.useImperativeHandle(l,(()=>({updateIndicator:ce,updateScrollButtons:ve})),[ce,ve]);const ye=(0,R.jsx)(ua,(0,w.A)({},k,{className:(0,A.A)(U.indicator,k.className),ownerState:V,style:(0,w.A)({},K,k.style)}));let be=0;const we=i.Children.map(u,(e=>{if(!i.isValidElement(e))return null;const t=void 0===e.props.value?be:e.props.value;ie.set(t,be);const n=t===O;return be+=1,i.cloneElement(e,(0,w.A)({fullWidth:"fullWidth"===T,indicator:n&&!H&&ye,selected:n,selectionFollowsFocus:b,onChange:m,textColor:E,value:t},1!==be||!1!==O||e.props.tabIndex?{}:{tabIndex:0}))})),xe=(()=>{const e={};e.scrollbarSizeListener=M?(0,R.jsx)(da,{onChange:me,className:(0,A.A)(U.scrollableX,U.hideScrollbar)}):null;const t=M&&("auto"===y&&(X||Z)||!0===y);return e.scrollButtonStart=t?(0,R.jsx)(v,(0,w.A)({slots:{StartScrollButtonIcon:S.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:W},orientation:g,direction:o?"right":"left",onClick:pe,disabled:!X},C,{className:(0,A.A)(U.scrollButtons,C.className)})):null,e.scrollButtonEnd=t?(0,R.jsx)(v,(0,w.A)({slots:{EndScrollButtonIcon:S.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:q},orientation:g,direction:o?"left":"right",onClick:he,disabled:!Z},C,{className:(0,A.A)(U.scrollButtons,C.className)})):null,e})();return(0,R.jsxs)(sa,(0,w.A)({className:(0,A.A)(U.root,d),ownerState:V,ref:t,as:f},P,{children:[xe.scrollButtonStart,xe.scrollbarSizeListener,(0,R.jsxs)(la,{className:U.scroller,ownerState:V,style:{overflow:re.overflow,[D?"margin".concat(o?"Left":"Right"):"marginBottom"]:I?void 0:-re.scrollbarWidth},ref:ae,children:[(0,R.jsx)(ca,{"aria-label":a,"aria-labelledby":s,"aria-orientation":"vertical"===g?"vertical":null,className:U.flexContainer,ownerState:V,onKeyDown:e=>{const t=se.current,n=(0,na.A)(t).activeElement;if("tab"!==n.getAttribute("role"))return;let r="horizontal"===g?"ArrowLeft":"ArrowUp",i="horizontal"===g?"ArrowRight":"ArrowDown";switch("horizontal"===g&&o&&(r="ArrowRight",i="ArrowLeft"),e.key){case r:e.preventDefault(),aa(t,n,ia);break;case i:e.preventDefault(),aa(t,n,oa);break;case"Home":e.preventDefault(),aa(t,null,oa);break;case"End":e.preventDefault(),aa(t,null,ia)}},ref:se,role:"tablist",children:we}),H&&ye]}),xe.scrollButtonEnd]}))})),ha=pa;function ma(e){return(0,Ee.Ay)("MuiTab",e)}const ga=(0,L.A)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),va=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ya=(0,U.Ay)(Pe,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t["textColor".concat((0,V.A)(n.textColor))],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{["& .".concat(ga.iconWrapper)]:t.iconWrapper}]}})((e=>{let{theme:t,ownerState:n}=e;return(0,w.A)({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},n.label&&{flexDirection:"top"===n.iconPosition||"bottom"===n.iconPosition?"column":"row"},{lineHeight:1.25},n.icon&&n.label&&{minHeight:72,paddingTop:9,paddingBottom:9,["& > .".concat(ga.iconWrapper)]:(0,w.A)({},"top"===n.iconPosition&&{marginBottom:6},"bottom"===n.iconPosition&&{marginTop:6},"start"===n.iconPosition&&{marginRight:t.spacing(1)},"end"===n.iconPosition&&{marginLeft:t.spacing(1)})},"inherit"===n.textColor&&{color:"inherit",opacity:.6,["&.".concat(ga.selected)]:{opacity:1},["&.".concat(ga.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"primary"===n.textColor&&{color:(t.vars||t).palette.text.secondary,["&.".concat(ga.selected)]:{color:(t.vars||t).palette.primary.main},["&.".concat(ga.disabled)]:{color:(t.vars||t).palette.text.disabled}},"secondary"===n.textColor&&{color:(t.vars||t).palette.text.secondary,["&.".concat(ga.selected)]:{color:(t.vars||t).palette.secondary.main},["&.".concat(ga.disabled)]:{color:(t.vars||t).palette.text.disabled}},n.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},n.wrapped&&{fontSize:t.typography.pxToRem(12)})})),ba=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiTab"}),{className:r,disabled:o=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:u,label:d,onChange:f,onClick:p,onFocus:h,selected:m,selectionFollowsFocus:g,textColor:v="inherit",value:y,wrapped:b=!1}=n,S=(0,x.A)(n,va),_=(0,w.A)({},n,{disabled:o,disableFocusRipple:a,selected:m,icon:!!l,iconPosition:c,label:!!d,fullWidth:s,textColor:v,wrapped:b}),k=(e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e,c={root:["root",i&&a&&"labelIcon","textColor".concat((0,V.A)(n)),r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return(0,z.A)(c,ma,t)})(_),C=l&&d&&i.isValidElement(l)?i.cloneElement(l,{className:(0,A.A)(k.iconWrapper,l.props.className)}):l;return(0,R.jsxs)(ya,(0,w.A)({focusRipple:!a,className:(0,A.A)(k.root,r),ref:t,role:"tab","aria-selected":m,disabled:o,onClick:e=>{!m&&f&&f(e,y),p&&p(e)},onFocus:e=>{g&&!m&&f&&f(e,y),h&&h(e)},ownerState:_,tabIndex:m?0:-1},S,{children:["top"===c||"start"===c?(0,R.jsxs)(i.Fragment,{children:[C,d]}):(0,R.jsxs)(i.Fragment,{children:[d,C]}),u]}))}));var wa=__webpack_require__(9977);const xa=["ownerState"],Aa=["variants"],Sa=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function _a(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const ka=(0,C.A)(),Ca=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Ea(e){let{defaultTheme:t,theme:n,themeId:r}=e;return o=n,0===Object.keys(o).length?t:n[r]||n;var o}function Oa(e){return e?(t,n)=>n[e]:null}function Ta(e,t){let{ownerState:n}=t,r=(0,x.A)(t,xa);const o="function"===typeof e?e((0,w.A)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>Ta(e,(0,w.A)({ownerState:n},r))));if(o&&"object"===typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,x.A)(o,Aa);return e.forEach((e=>{let o=!0;"function"===typeof e.props?o=e.props((0,w.A)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"===typeof e.style?e.style((0,w.A)({ownerState:n},r,n)):e.style))})),t}return o}const Ia=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=ka,rootShouldForwardProp:r=_a,slotShouldForwardProp:o=_a}=e,i=e=>(0,_.A)((0,w.A)({},e,{theme:Ea((0,w.A)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,S.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=Oa(Ca(l))}=a,f=(0,x.A)(a,Sa),p=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,h=u||!1;let m=_a;"Root"===l||"root"===l?m=r:l?m=o:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,S.default)(e,(0,w.A)({shouldForwardProp:m,label:undefined},f)),v=e=>"function"===typeof e&&e.__emotion_real!==e||(0,wa.Q)(e)?r=>Ta(e,(0,w.A)({},r,{theme:Ea({theme:r.theme,defaultTheme:n,themeId:t})})):e,y=function(r){let o=v(r);for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];const u=l?l.map(v):[];s&&d&&u.push((e=>{const r=Ea((0,w.A)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const o=r.components[s].styleOverrides,i={};return Object.entries(o).forEach((t=>{let[n,o]=t;i[n]=Ta(o,(0,w.A)({},e,{theme:r}))})),d(e,i)})),s&&!p&&u.push((e=>{var r;const o=Ea((0,w.A)({},e,{defaultTheme:n,themeId:t}));return Ta({variants:null==o||null==(r=o.components)||null==(r=r[s])?void 0:r.variants},(0,w.A)({},e,{theme:o}))})),h||u.push(i);const f=u.length-l.length;if(Array.isArray(r)&&f>0){const e=new Array(f).fill("");o=[...r,...e],o.raw=[...r.raw,...e]}const m=g(o,...u);return e.muiName&&(m.muiName=e.muiName),m};return g.withConfig&&(y.withConfig=g.withConfig),y}}();function Ra(e){let{props:t,name:n,defaultTheme:r,themeId:o}=e,i=I(r);o&&(i=i[o]||i);const a=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,nt.A)(t.components[n].defaultProps,r):r}({theme:i,name:n,props:t});return a}var Pa=__webpack_require__(8592),Ma=__webpack_require__(6825);const Da=["component","direction","spacing","divider","children","className","useFlexGap"],La=(0,C.A)(),ja=Ia("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Na(e){return Ra({props:e,name:"MuiStack",defaultTheme:La})}function Fa(e,t){const n=i.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push(i.cloneElement(t,{key:"separator-".concat(o)})),e)),[])}const za=e=>{let{ownerState:t,theme:n}=e,r=(0,w.A)({display:"flex",flexDirection:"column"},(0,Pa.NI)({theme:n},(0,Pa.kW)({values:t.direction,breakpoints:n.breakpoints.values}),(e=>({flexDirection:e}))));if(t.spacing){const e=(0,Ma.LX)(n),o=Object.keys(n.breakpoints.values).reduce(((e,n)=>(("object"===typeof t.spacing&&null!=t.spacing[n]||"object"===typeof t.direction&&null!=t.direction[n])&&(e[n]=!0),e)),{}),i=(0,Pa.kW)({values:t.direction,base:o}),a=(0,Pa.kW)({values:t.spacing,base:o});"object"===typeof i&&Object.keys(i).forEach(((e,t,n)=>{if(!i[e]){const r=t>0?i[n[t-1]]:"column";i[e]=r}}));const s=(n,r)=>{return t.useFlexGap?{gap:(0,Ma._W)(e,n)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{["margin".concat((o=r?i[r]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]))]:(0,Ma._W)(e,n)}};var o};r=(0,wa.A)(r,(0,Pa.NI)({theme:n},a,s))}return r=(0,Pa.iZ)(n.breakpoints,r),r};const Ba=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{createStyledComponent:t=ja,useThemeProps:n=Na,componentName:r="MuiStack"}=e,o=t(za);return i.forwardRef((function(e,t){const i=n(e),a=(0,k.A)(i),{component:s="div",direction:l="column",spacing:c=0,divider:u,children:d,className:f,useFlexGap:p=!1}=a,h=(0,x.A)(a,Da),m={direction:l,spacing:c,useFlexGap:p},g=(0,z.A)({root:["root"]},(e=>(0,Ee.Ay)(r,e)),{});return(0,R.jsx)(o,(0,w.A)({as:s,ownerState:m,ref:t,className:(0,A.A)(g.root,f)},h,{children:u?Fa(d,u):d}))}))}({createStyledComponent:(0,U.Ay)("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>(0,G.b)({props:e,name:"MuiStack"})});function Va(e){return(0,Ee.Ay)("MuiFormControlLabel",e)}const Ua=(0,L.A)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);function Wa(e){let{props:t,states:n,muiFormControl:r}=e;return n.reduce(((e,n)=>(e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e)),{})}const qa=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Ha=(0,U.Ay)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& .".concat(Ua.label)]:t.label},t.root,t["labelPlacement".concat((0,V.A)(n.labelPlacement))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,w.A)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,["&.".concat(Ua.disabled)]:{cursor:"default"}},"start"===n.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===n.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===n.labelPlacement&&{flexDirection:"column",marginLeft:16},{["& .".concat(Ua.label)]:{["&.".concat(Ua.disabled)]:{color:(t.vars||t).palette.text.disabled}}})})),Ya=(0,U.Ay)("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{let{theme:t}=e;return{["&.".concat(Ua.error)]:{color:(t.vars||t).palette.error.main}}})),Ga=i.forwardRef((function(e,t){var n,r;const o=(0,G.b)({props:e,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:l,disabled:c,disableTypography:u,label:d,labelPlacement:f="end",required:p,slotProps:h={}}=o,m=(0,x.A)(o,qa),g=Y(),v=null!=(n=null!=c?c:l.props.disabled)?n:null==g?void 0:g.disabled,y=null!=p?p:l.props.required,b={disabled:v,required:y};["checked","name","onChange","value","inputRef"].forEach((e=>{"undefined"===typeof l.props[e]&&"undefined"!==typeof o[e]&&(b[e]=o[e])}));const S=Wa({props:o,muiFormControl:g,states:["error"]}),_=(0,w.A)({},o,{disabled:v,labelPlacement:f,required:y,error:S.error}),k=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,a={root:["root",n&&"disabled","labelPlacement".concat((0,V.A)(r)),o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return(0,z.A)(a,Va,t)})(_),C=null!=(r=h.typography)?r:s.typography;let E=d;return null==E||E.type===tt||u||(E=(0,R.jsx)(tt,(0,w.A)({component:"span"},C,{className:(0,A.A)(k.label,null==C?void 0:C.className),children:E}))),(0,R.jsxs)(Ha,(0,w.A)({className:(0,A.A)(k.root,a),ownerState:_,ref:t},m,{children:[i.cloneElement(l,b),y?(0,R.jsxs)(Ba,{display:"block",children:[E,(0,R.jsxs)(Ya,{ownerState:_,"aria-hidden":!0,className:k.asterisk,children:["\u2009","*"]})]}):E]}))}));function Ka(e){return(0,Ee.Ay)("MuiSwitch",e)}const $a=(0,L.A)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Qa=["className","color","edge","size","sx"],Xa=(0,U.Ay)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t["edge".concat((0,V.A)(n.edge))],t["size".concat((0,V.A)(n.size))]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,["& .".concat($a.thumb)]:{width:16,height:16},["& .".concat($a.switchBase)]:{padding:4,["&.".concat($a.checked)]:{transform:"translateX(16px)"}}}}]}),Ja=(0,U.Ay)(Ne,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{["& .".concat($a.input)]:t.input},"default"!==n.color&&t["color".concat((0,V.A)(n.color))]]}})((e=>{let{theme:t}=e;return{position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:"".concat("light"===t.palette.mode?t.palette.common.white:t.palette.grey[300]),transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),["&.".concat($a.checked)]:{transform:"translateX(20px)"},["&.".concat($a.disabled)]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:"".concat("light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600])},["&.".concat($a.checked," + .").concat($a.track)]:{opacity:.5},["&.".concat($a.disabled," + .").concat($a.track)]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:"".concat("light"===t.palette.mode?.12:.2)},["& .".concat($a.input)]:{left:"-100%",width:"300%"}}}),(e=>{let{theme:t}=e;return{"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.activeChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,B.X4)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter((e=>{let[,t]=e;return t.main&&t.light})).map((e=>{let[n]=e;return{props:{color:n},style:{["&.".concat($a.checked)]:{color:(t.vars||t).palette[n].main,"&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,B.X4)(t.palette[n].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat($a.disabled)]:{color:t.vars?t.vars.palette.Switch["".concat(n,"DisabledColor")]:"".concat("light"===t.palette.mode?(0,B.a)(t.palette[n].main,.62):(0,B.e$)(t.palette[n].main,.55))}},["&.".concat($a.checked," + .").concat($a.track)]:{backgroundColor:(t.vars||t).palette[n].main}}}}))]}})),Za=(0,U.Ay)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((e=>{let{theme:t}=e;return{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:"".concat("light"===t.palette.mode?t.palette.common.black:t.palette.common.white),opacity:t.vars?t.vars.opacity.switchTrack:"".concat("light"===t.palette.mode?.38:.3)}})),es=(0,U.Ay)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((e=>{let{theme:t}=e;return{boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}})),ts=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiSwitch"}),{className:r,color:o="primary",edge:i=!1,size:a="medium",sx:s}=n,l=(0,x.A)(n,Qa),c=(0,w.A)({},n,{color:o,edge:i,size:a}),u=(e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,s={root:["root",n&&"edge".concat((0,V.A)(n)),"size".concat((0,V.A)(r))],switchBase:["switchBase","color".concat((0,V.A)(o)),i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=(0,z.A)(s,Ka,t);return(0,w.A)({},t,l)})(c),d=(0,R.jsx)(es,{className:u.thumb,ownerState:c});return(0,R.jsxs)(Xa,{className:(0,A.A)(u.root,r),sx:s,ownerState:c,children:[(0,R.jsx)(Ja,(0,w.A)({type:"checkbox",icon:d,checkedIcon:d,ref:t,ownerState:c},l,{classes:(0,w.A)({},u,{root:u.switchBase})})),(0,R.jsx)(Za,{className:u.track,ownerState:c})]})}));var ns=__webpack_require__(9850),rs=__webpack_require__(6425);const os=["children","value","index","withPadding","fullHeight","sx"];function is(e){const{children:t,value:n,index:r,withPadding:o=!1,fullHeight:i=!1,sx:a}=e,s=(0,ns.A)(e,os);return(0,rs.Y)("div",(0,g.A)((0,g.A)({role:"tabpanel",hidden:n!==r,id:"simple-tabpanel-".concat(r),"aria-labelledby":"simple-tab-".concat(r),style:{height:i?"100%":"calc(100% - 50px)",overflow:"hidden",padding:o?"8px":0,display:n===r?"flex":"none",flexDirection:"column",flex:1}},s),{},{children:(0,rs.Y)(F,{sx:(0,g.A)({width:"100%",height:"100%",border:"none",position:"relative",overflow:"hidden",flex:1,flexDirection:"column"},a),children:t})}))}function as(e){return{id:"simple-tab-".concat(e),"aria-controls":"simple-tabpanel-".concat(e)}}const ss=(0,Fe.A)((0,R.jsx)("path",{d:"M19 6v10.5l1.95 1.95c.03-.15.05-.3.05-.45V6c0-1.1-.9-2-2-2H6.5l2 2zM3.22 3.32 1.95 4.59 3 5.64V18c0 1.1.9 2 2 2h12.36l2.06 2.06 1.27-1.27zM15 18H5V7.64L15.36 18z"}),"BrowserNotSupported"),ls=(0,Fe.A)((0,R.jsx)("path",{d:"M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79s7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.55-2.64 6.29-3.51 3.48-9.21 3.48-12.72 0-3.5-3.47-3.53-9.11-.02-12.58s9.14-3.47 12.65 0L21 3zM12.5 8v4.25l3.5 2.08-.72 1.21L11 13V8z"}),"Update"),cs=(0,Fe.A)((0,R.jsx)("circle",{cx:"12",cy:"12",r:"8"}),"FiberManualRecord");var us;var ds={name:"1v2dn99",styles:"position:absolute;top:50%;left:50%;box-shadow:0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23)"},fs={name:"3kst2u",styles:"width:100%;height:100%;border:none;background:white"},ps={name:"7ass1o",styles:"background:red"},hs={name:"hn9qvo",styles:"color:red;&.MuiTab-root.Mui-selected{color:red;}"};const ms=(0,le.i7)(us||(us=X(["\n 0% {\n transform: scale(1);\n opacity: 1;\n }\n 50% {\n transform: scale(1.2);\n opacity: 0.7;\n }\n 100% {\n transform: scale(1);\n opacity: 1;\n }\n"])));function gs(e){return(0,Ee.Ay)("MuiCircularProgress",e)}(0,L.A)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var vs,ys,bs,ws;const xs=["className","color","disableShrink","size","style","thickness","value","variant"];let As,Ss,_s,ks;const Cs=44,Es=(0,le.i7)(As||(As=vs||(vs=X(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"])))),Os=(0,le.i7)(Ss||(Ss=ys||(ys=X(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"])))),Ts=(0,U.Ay)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t["color".concat((0,V.A)(n.color))]]}})((e=>{let{ownerState:t,theme:n}=e;return(0,w.A)({display:"inline-block"},"determinate"===t.variant&&{transition:n.transitions.create("transform")},"inherit"!==t.color&&{color:(n.vars||n).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,le.AH)(_s||(_s=bs||(bs=X(["\n animation: "," 1.4s linear infinite;\n "]))),Es)})),Is=(0,U.Ay)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Rs=(0,U.Ay)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t["circle".concat((0,V.A)(n.variant))],n.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:n}=e;return(0,w.A)({stroke:"currentColor"},"determinate"===t.variant&&{transition:n.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,le.AH)(ks||(ks=ws||(ws=X(["\n animation: "," 1.4s ease-in-out infinite;\n "]))),Os)})),Ps=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:i=!1,size:a=40,style:s,thickness:l=3.6,value:c=0,variant:u="indeterminate"}=n,d=(0,x.A)(n,xs),f=(0,w.A)({},n,{color:o,disableShrink:i,size:a,thickness:l,value:c,variant:u}),p=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,"color".concat((0,V.A)(r))],svg:["svg"],circle:["circle","circle".concat((0,V.A)(n)),o&&"circleDisableShrink"]};return(0,z.A)(i,gs,t)})(f),h={},m={},g={};if("determinate"===u){const e=2*Math.PI*((Cs-l)/2);h.strokeDasharray=e.toFixed(3),g["aria-valuenow"]=Math.round(c),h.strokeDashoffset="".concat(((100-c)/100*e).toFixed(3),"px"),m.transform="rotate(-90deg)"}return(0,R.jsx)(Ts,(0,w.A)({className:(0,A.A)(p.root,r),style:(0,w.A)({width:a,height:a},m,s),ownerState:f,ref:t,role:"progressbar"},g,d,{children:(0,R.jsx)(Is,{className:p.svg,ownerState:f,viewBox:"".concat(22," ").concat(22," ").concat(Cs," ").concat(Cs),children:(0,R.jsx)(Rs,{className:p.circle,style:h,ownerState:f,cx:Cs,cy:Cs,r:(Cs-l)/2,fill:"none",strokeWidth:l})})}))})),Ms=e=>{let{stackStyles:t}=e;const n=Ni();return(0,i.useMemo)((()=>({circularProgress:(0,le.AH)({color:"inherit",marginRight:n.spacing(1)},"",""),stack:(0,le.AH)(t,"display:flex;align-items:center;flex-direction:row;","")})),[n,t])};function Ds(e){let{children:t,styles:n,circularProgressSize:r=16}=e;const o=Ms({stackStyles:n});return(0,rs.FD)(Ba,{css:o.stack,children:[(0,rs.Y)(Ps,{css:o.circularProgress,size:r}),(0,rs.Y)(tt,{variant:"caption",children:t})]})}const Ls=e=>{let{loading:t,disableEvents:n=!1,overlayStyles:r,loadingText:o="Loading...",circularProgressSize:i=26,children:a}=e;const s=js({overlayStyles:r,disableEvents:n});return t?(0,rs.FD)(F,{css:s.overlayStyle,children:[(0,rs.Y)(Ds,{circularProgressSize:i,children:(0,rs.Y)(F,{component:"span",style:{fontSize:"16px"},children:o})}),a]}):null},js=e=>{let{overlayStyles:t,disableEvents:n}=e;return(0,i.useMemo)((()=>({overlayStyle:(0,le.AH)({position:"absolute",top:0,left:0,width:"100%",height:"100%",cursor:n?"not-allowed":"default",backgroundColor:"rgba(0, 0, 0, 0.1)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:2},t,"","")})),[])};const Ns=e=>{const t=zs();return(0,rs.Y)(Ls,(0,g.A)({overlayStyles:t.overlayStyles,loadingText:"Loading content..."},e))};var Fs={name:"z2ue03",styles:"background-color:white;top:80px;height:calc(100% - 80px)"};const zs=()=>(0,i.useMemo)((()=>({overlayStyles:Fs})),[]);function Bs(e){return(0,Ee.Ay)("MuiFab",e)}const Vs=(0,L.A)("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),Us=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],Ws=(0,U.Ay)(Pe,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>(0,W.A)(e)||"classes"===e,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t["size".concat((0,V.A)(n.size))],"inherit"===n.color&&t.colorInherit,t[(0,V.A)(n.size)],t[n.color]]}})((e=>{let{theme:t,ownerState:n}=e;var r,o;return(0,w.A)({},t.typography.button,{minHeight:36,transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(t.vars||t).zIndex.fab,boxShadow:(t.vars||t).shadows[6],"&:active":{boxShadow:(t.vars||t).shadows[12]},color:t.vars?t.vars.palette.text.primary:null==(r=(o=t.palette).getContrastText)?void 0:r.call(o,t.palette.grey[300]),backgroundColor:(t.vars||t).palette.grey[300],"&:hover":{backgroundColor:(t.vars||t).palette.grey.A100,"@media (hover: none)":{backgroundColor:(t.vars||t).palette.grey[300]},textDecoration:"none"},["&.".concat(Vs.focusVisible)]:{boxShadow:(t.vars||t).shadows[6]}},"small"===n.size&&{width:40,height:40},"medium"===n.size&&{width:48,height:48},"extended"===n.variant&&{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},"extended"===n.variant&&"small"===n.size&&{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"extended"===n.variant&&"medium"===n.size&&{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40},"inherit"===n.color&&{color:"inherit"})}),(e=>{let{theme:t,ownerState:n}=e;return(0,w.A)({},"inherit"!==n.color&&"default"!==n.color&&null!=(t.vars||t).palette[n.color]&&{color:(t.vars||t).palette[n.color].contrastText,backgroundColor:(t.vars||t).palette[n.color].main,"&:hover":{backgroundColor:(t.vars||t).palette[n.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[n.color].main}}})}),(e=>{let{theme:t}=e;return{["&.".concat(Vs.disabled)]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}})),qs=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiFab"}),{children:r,className:o,color:i="default",component:a="button",disabled:s=!1,disableFocusRipple:l=!1,focusVisibleClassName:c,size:u="large",variant:d="circular"}=n,f=(0,x.A)(n,Us),p=(0,w.A)({},n,{color:i,component:a,disabled:s,disableFocusRipple:l,size:u,variant:d}),h=(e=>{const{color:t,variant:n,classes:r,size:o}=e,i={root:["root",n,"size".concat((0,V.A)(o)),"inherit"===t?"colorInherit":t]},a=(0,z.A)(i,Bs,r);return(0,w.A)({},r,a)})(p);return(0,R.jsx)(Ws,(0,w.A)({className:(0,A.A)(h.root,o),component:a,disabled:s,focusRipple:!l,focusVisibleClassName:(0,A.A)(h.focusVisible,c),ownerState:p,ref:t},f,{classes:h,children:r}))})),Hs=e=>{let{width:t}=e;return{container:{width:"".concat(t,"px"),height:"100%",display:"flex",flexDirection:"column",backgroundColor:"background.paper",boxShadow:3,overflow:"hidden",flexShrink:0,position:"relative"},paper:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",p:1,borderBottom:1,borderColor:"divider"},modelSelect:{"& .MuiSelect-select":{py:.5}},messagesContainer:{flex:1,overflowY:"auto",p:2,display:"flex",flexDirection:"column",gap:2,minHeight:0,"&::-webkit-scrollbar":{width:"8px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"rgba(0, 0, 0, 0.2)",borderRadius:"4px"}},messageBubble:(e,t)=>({p:2,bgcolor:t?"warning.light":e?"primary.main":"grey.100",color:t?"grey.900":e?"primary.contrastText":"text.primary",borderRadius:2}),loadingBubble:{maxWidth:"80%",p:1.5,backgroundColor:"grey.100",borderRadius:2,display:"flex",alignItems:"center",gap:1},errorMessage:{p:1,backgroundColor:"error.light",borderRadius:1,mt:1},inputContainer:{p:1,borderTop:1,borderColor:"divider",display:"flex",flexDirection:"column",gap:1},contextToggleGroup:{"& .MuiToggleButton-root":{px:1,py:.5}},inputWrapper:{display:"flex",gap:1,alignItems:"flex-start"},textField:{"& .MuiInputBase-root":{py:.5}},inspectorButtonWrapper:{display:"flex",gap:.5},resizeOverlay:{position:"fixed",top:0,left:0,right:0,bottom:0,zIndex:1200,cursor:"ew-resize"},resizeHandle:{position:"absolute",left:0,top:0,bottom:0,width:"4px",cursor:"ew-resize",display:"flex",alignItems:"center",justifyContent:"center","&:hover":{backgroundColor:"action.hover"}},resizeIcon:{fontSize:"1rem",color:"text.secondary",transform:"rotate(90deg)"}}},Ys=[{id:"gpt4.1",name:"GPT-4.1",type:"openai",model:"gpt-4.1-2025-04-14",supportsThinking:!1},{id:"gpt4o",name:"GPT-4o",type:"openai",model:"gpt-4o-2024-11-20",supportsThinking:!0},{id:"gemini-2.5-flash-preview",name:"Gemini 2.5 Flash Preview",type:"google-vertexai",model:"gemini-2.5-flash-preview-05-20",supportsThinking:!0},{id:"gemini-2.5-pro-preview",name:"Gemini 2.5 Pro Preview",type:"google-vertexai",model:"gemini-2.5-pro-preview-05-06",supportsThinking:!0},{id:"claude-4-sonnet",name:"Claude 4 Sonnet",type:"google-vertexai",model:"claude-sonnet-4@20250514",supportsThinking:!0}],Gs="AI_CHAT_INSPECTOR_EVENT_NAME",Ks=e=>e.aiChat.messages,$s=e=>e.aiChat.loading,Qs=e=>e.aiChat.error,Xs=e=>e.aiChat.isOpen,Js=e=>e.aiChat.width,Zs=Jr({name:"aiChat",initialState:{messages:{},loading:!1,error:null,isOpen:!1,width:500},reducers:{addMessage:(e,t)=>{const{stepId:n}=t.payload;e.messages[n]||(e.messages[n]=[]);e.messages[n].some((e=>e.type===t.payload.type&&e.content===t.payload.content&&e.stepId===t.payload.stepId&&e.timestamp===t.payload.timestamp))||e.messages[n].push(t.payload)},setLoading:(e,t)=>{e.loading=t.payload},setError:(e,t)=>{e.error=t.payload},clearMessages:e=>{e.messages={},e.error=null},clearStepMessages:(e,t)=>{delete e.messages[t.payload]},setIsOpen:(e,t)=>{e.isOpen=t.payload},setWidth:(e,t)=>{e.width=t.payload}}}),{addMessage:el,setLoading:tl,setError:nl,clearMessages:rl,clearStepMessages:ol,setIsOpen:il,setWidth:al}=Zs.actions,sl=Zs.reducer;var ll="NOT_FOUND";var cl=function(e,t){return e===t};function ul(e,t){var n="object"===typeof t?t:{equalityCheck:t},r=n.equalityCheck,o=void 0===r?cl:r,i=n.maxSize,a=void 0===i?1:i,s=n.resultEqualityCheck,l=function(e){return function(t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}}(o),c=1===a?function(e){var t;return{get:function(n){return t&&e(t.key,n)?t.value:ll},put:function(e,n){t={key:e,value:n}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}(l):function(e,t){var n=[];function r(e){var r=n.findIndex((function(n){return t(e,n.key)}));if(r>-1){var o=n[r];return r>0&&(n.splice(r,1),n.unshift(o)),o.value}return ll}return{get:r,put:function(t,o){r(t)===ll&&(n.unshift({key:t,value:o}),n.length>e&&n.pop())},getEntries:function(){return n},clear:function(){n=[]}}}(a,l);function u(){var t=c.get(arguments);if(t===ll){if(t=e.apply(null,arguments),s){var n=c.getEntries().find((function(e){return s(e.value,t)}));n&&(t=n.value)}c.put(arguments,t)}return t}return u.clearCache=function(){return c.clear()},u}function dl(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];var i,a=0,s={memoizeOptions:void 0},l=r.pop();if("object"===typeof l&&(s=l,l=r.pop()),"function"!==typeof l)throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof l+"]");var c=s.memoizeOptions,u=void 0===c?n:c,d=Array.isArray(u)?u:[u],f=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"===typeof e}))){var n=t.map((function(e){return"function"===typeof e?"function "+(e.name||"unnamed")+"()":typeof e})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+n+"]")}return t}(r),p=e.apply(void 0,[function(){return a++,l.apply(null,arguments)}].concat(d)),h=e((function(){for(var e=[],t=f.length,n=0;n<t;n++)e.push(f[n].apply(null,arguments));return i=p.apply(null,e)}));return Object.assign(h,{resultFunc:l,memoizedResultFunc:p,dependencies:f,lastResult:function(){return i},recomputations:function(){return a},resetRecomputations:function(){return a=0}}),h}}var fl,pl,hl=dl(ul),ml=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},gl=function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},vl=Object.defineProperty,yl=Object.defineProperties,bl=Object.getOwnPropertyDescriptors,wl=Object.getOwnPropertySymbols,xl=Object.prototype.hasOwnProperty,Al=Object.prototype.propertyIsEnumerable,Sl=function(e,t,n){return t in e?vl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},_l=function(e,t){for(var n in t||(t={}))xl.call(t,n)&&Sl(e,n,t[n]);if(wl)for(var r=0,o=wl(t);r<o.length;r++){n=o[r];Al.call(t,n)&&Sl(e,n,t[n])}return e},kl=function(e,t){return yl(e,bl(t))},Cl=function(e,t,n){return new Promise((function(r,o){var i=function(e){try{s(n.next(e))}catch(t){o(t)}},a=function(e){try{s(n.throw(e))}catch(t){o(t)}},s=function(e){return e.done?r(e.value):Promise.resolve(e.value).then(i,a)};s((n=n.apply(e,t)).next())}))};(pl=fl||(fl={})).uninitialized="uninitialized",pl.pending="pending",pl.fulfilled="fulfilled",pl.rejected="rejected";var El=function(e){return[].concat.apply([],e)};var Ol=Wr;function Tl(e,t){if(e===t||!(Ol(e)&&Ol(t)||Array.isArray(e)&&Array.isArray(t)))return t;for(var n=Object.keys(t),r=Object.keys(e),o=n.length===r.length,i=Array.isArray(t)?[]:{},a=0,s=n;a<s.length;a++){var l=s[a];i[l]=Tl(e[l],t[l]),o&&(o=e[l]===i[l])}return o?e:i}var Il=function(e,t){void 0===t&&(t=void 0),this.value=e,this.meta=t};var Rl,Pl,Ml=Hr("__rtkq/focused"),Dl=Hr("__rtkq/unfocused"),Ll=Hr("__rtkq/online"),jl=Hr("__rtkq/offline"),Nl=!1;function Fl(e){return e.type===Rl.query}function zl(e,t,n,r,o,i){return"function"===typeof e?e(t,n,r,o).map(Bl).map(i):Array.isArray(e)?e.map(Bl).map(i):[]}function Bl(e){return"string"===typeof e?{type:e}:e}function Vl(e){return null!=e}(Pl=Rl||(Rl={})).query="query",Pl.mutation="mutation";var Ul=Symbol("forceQueryFn"),Wl=function(e){return"function"===typeof e[Ul]};function ql(e){return e}function Hl(e,t,n,r){return zl(n[e.meta.arg.endpointName][t],mo(e)?e.payload:void 0,ho(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function Yl(e,t,n){var r=e[t];r&&n(r)}function Gl(e){var t;return null!=(t="arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)?t:e.requestId}function Kl(e,t,n){var r=e[Gl(t)];r&&n(r)}var $l={};function Ql(e){var t=e.reducerPath,n=e.queryThunk,r=e.mutationThunk,o=e.context,i=o.endpointDefinitions,a=o.apiUid,s=o.extractRehydrationInfo,l=o.hasRehydrationInfo,c=e.assertTagType,u=e.config,d=Hr(t+"/resetApiState"),f=Jr({name:t+"/queries",initialState:$l,reducers:{removeQueryResult:{reducer:function(e,t){delete e[t.payload.queryCacheKey]},prepare:Ko()},queryResultPatched:{reducer:function(e,t){var n=t.payload,r=n.queryCacheKey,o=n.patches;Yl(e,r,(function(e){e.data=mr(e.data,o.concat())}))},prepare:Ko()}},extraReducers:function(e){e.addCase(n.pending,(function(e,t){var n,r=t.meta,o=t.meta.arg,i=Wl(o);(o.subscribe||i)&&(null!=e[n=o.queryCacheKey]||(e[n]={status:fl.uninitialized,endpointName:o.endpointName})),Yl(e,o.queryCacheKey,(function(e){e.status=fl.pending,e.requestId=i&&e.requestId?e.requestId:r.requestId,void 0!==o.originalArgs&&(e.originalArgs=o.originalArgs),e.startedTimeStamp=r.startedTimeStamp}))})).addCase(n.fulfilled,(function(e,t){var n=t.meta,r=t.payload;Yl(e,n.arg.queryCacheKey,(function(e){var t;if(e.requestId===n.requestId||Wl(n.arg)){var o,a=i[n.arg.endpointName].merge;if(e.status=fl.fulfilled,a)if(void 0!==e.data){var s=n.fulfilledTimeStamp,l=n.arg,c=n.baseQueryMeta,u=n.requestId,d=gr(e.data,(function(e){return a(e,r,{arg:l.originalArgs,baseQueryMeta:c,fulfilledTimeStamp:s,requestId:u})}));e.data=d}else e.data=r;else e.data=null==(t=i[n.arg.endpointName].structuralSharing)||t?Tl(hn(e.data)?(hn(o=e.data)||pn(23,o),o[or].t):e.data,r):r;delete e.error,e.fulfilledTimeStamp=n.fulfilledTimeStamp}}))})).addCase(n.rejected,(function(e,t){var n=t.meta,r=n.condition,o=n.arg,i=n.requestId,a=t.error,s=t.payload;Yl(e,o.queryCacheKey,(function(e){if(r);else{if(e.requestId!==i)return;e.status=fl.rejected,e.error=null!=s?s:a}}))})).addMatcher(l,(function(e,t){for(var n=s(t).queries,r=0,o=Object.entries(n);r<o.length;r++){var i=o[r],a=i[0],l=i[1];(null==l?void 0:l.status)!==fl.fulfilled&&(null==l?void 0:l.status)!==fl.rejected||(e[a]=l)}}))}}),p=Jr({name:t+"/mutations",initialState:$l,reducers:{removeMutationResult:{reducer:function(e,t){var n=Gl(t.payload);n in e&&delete e[n]},prepare:Ko()}},extraReducers:function(e){e.addCase(r.pending,(function(e,t){var n=t.meta,r=t.meta,o=r.requestId,i=r.arg,a=r.startedTimeStamp;i.track&&(e[Gl(n)]={requestId:o,status:fl.pending,endpointName:i.endpointName,startedTimeStamp:a})})).addCase(r.fulfilled,(function(e,t){var n=t.payload,r=t.meta;r.arg.track&&Kl(e,r,(function(e){e.requestId===r.requestId&&(e.status=fl.fulfilled,e.data=n,e.fulfilledTimeStamp=r.fulfilledTimeStamp)}))})).addCase(r.rejected,(function(e,t){var n=t.payload,r=t.error,o=t.meta;o.arg.track&&Kl(e,o,(function(e){e.requestId===o.requestId&&(e.status=fl.rejected,e.error=null!=n?n:r)}))})).addMatcher(l,(function(e,t){for(var n=s(t).mutations,r=0,o=Object.entries(n);r<o.length;r++){var i=o[r],a=i[0],l=i[1];(null==l?void 0:l.status)!==fl.fulfilled&&(null==l?void 0:l.status)!==fl.rejected||a===(null==l?void 0:l.requestId)||(e[a]=l)}}))}}),h=Jr({name:t+"/invalidation",initialState:$l,reducers:{updateProvidedBy:{reducer:function(e,t){for(var n,r,o,i,a=t.payload,s=a.queryCacheKey,l=a.providedTags,c=0,u=Object.values(e);c<u.length;c++)for(var d=u[c],f=0,p=Object.values(d);f<p.length;f++){var h=p[f],m=h.indexOf(s);-1!==m&&h.splice(m,1)}for(var g=0,v=l;g<v.length;g++){var y=v[g],b=y.type,w=y.id,x=null!=(i=(r=null!=(n=e[b])?n:e[b]={})[o=w||"__internal_without_id"])?i:r[o]=[];x.includes(s)||x.push(s)}},prepare:Ko()}},extraReducers:function(e){e.addCase(f.actions.removeQueryResult,(function(e,t){for(var n=t.payload.queryCacheKey,r=0,o=Object.values(e);r<o.length;r++)for(var i=o[r],a=0,s=Object.values(i);a<s.length;a++){var l=s[a],c=l.indexOf(n);-1!==c&&l.splice(c,1)}})).addMatcher(l,(function(e,t){for(var n,r,o,i,a=s(t).provided,l=0,c=Object.entries(a);l<c.length;l++)for(var u=c[l],d=u[0],f=u[1],p=0,h=Object.entries(f);p<h.length;p++)for(var m=h[p],g=m[0],v=m[1],y=null!=(i=(r=null!=(n=e[d])?n:e[d]={})[o=g||"__internal_without_id"])?i:r[o]=[],b=0,w=v;b<w.length;b++){var x=w[b];y.includes(x)||y.push(x)}})).addMatcher(so(mo(n),ho(n)),(function(e,t){var n=Hl(t,"providesTags",i,c),r=t.meta.arg.queryCacheKey;h.caseReducers.updateProvidedBy(e,h.actions.updateProvidedBy({queryCacheKey:r,providedTags:n}))}))}}),m=Jr({name:t+"/subscriptions",initialState:$l,reducers:{updateSubscriptionOptions:function(e,t){},unsubscribeQueryResult:function(e,t){},internal_probeSubscription:function(e,t){}}}),g=Jr({name:t+"/internalSubscriptions",initialState:$l,reducers:{subscriptionsUpdated:{reducer:function(e,t){return mr(e,t.payload)},prepare:Ko()}}}),v=Jr({name:t+"/config",initialState:_l({online:"undefined"===typeof navigator||void 0===navigator.onLine||navigator.onLine,focused:"undefined"===typeof document||"hidden"!==document.visibilityState,middlewareRegistered:!1},u),reducers:{middlewareRegistered:function(e,t){var n=t.payload;e.middlewareRegistered="conflict"!==e.middlewareRegistered&&a===n||"conflict"}},extraReducers:function(e){e.addCase(Ll,(function(e){e.online=!0})).addCase(jl,(function(e){e.online=!1})).addCase(Ml,(function(e){e.focused=!0})).addCase(Dl,(function(e){e.focused=!1})).addMatcher(l,(function(e){return _l({},e)}))}}),y=Sr({queries:f.reducer,mutations:p.reducer,provided:h.reducer,subscriptions:g.reducer,config:v.reducer});return{reducer:function(e,t){return y(d.match(t)?void 0:e,t)},actions:kl(_l(_l(_l(_l(_l(_l({},v.actions),f.actions),m.actions),g.actions),p.actions),h.actions),{unsubscribeMutationResult:p.actions.removeMutationResult,resetApiState:d})}}var Xl=Symbol.for("RTKQ/skipToken"),Jl={status:fl.uninitialized},Zl=gr(Jl,(function(){})),ec=gr(Jl,(function(){}));function tc(e){var t=e.serializeQueryArgs,n=e.reducerPath,r=function(e){return Zl},o=function(e){return ec};return{buildQuerySelector:function(e,n){return function(o){var s=t({queryArgs:o,endpointDefinition:n,endpointName:e});return hl(o===Xl?r:function(e){var t,n,r;return null!=(r=null==(n=null==(t=a(e))?void 0:t.queries)?void 0:n[s])?r:Zl},i)}},buildMutationSelector:function(){return function(e){var t,n;n="object"===typeof e?null!=(t=Gl(e))?t:Xl:e;return hl(n===Xl?o:function(e){var t,r,o;return null!=(o=null==(r=null==(t=a(e))?void 0:t.mutations)?void 0:r[n])?o:ec},i)}},selectInvalidatedBy:function(e,t){for(var r,o=e[n],i=new Set,a=0,s=t.map(Bl);a<s.length;a++){var l=s[a],c=o.provided[l.type];if(c)for(var u=0,d=null!=(r=void 0!==l.id?c[l.id]:El(Object.values(c)))?r:[];u<d.length;u++){var f=d[u];i.add(f)}}return El(Array.from(i.values()).map((function(e){var t=o.queries[e];return t?[{queryCacheKey:e,endpointName:t.endpointName,originalArgs:t.originalArgs}]:[]})))}};function i(e){return _l(_l({},e),{status:t=e.status,isUninitialized:t===fl.uninitialized,isLoading:t===fl.pending,isSuccess:t===fl.fulfilled,isError:t===fl.rejected});var t}function a(e){return e[n]}}var nc=WeakMap?new WeakMap:void 0,rc=function(e){var t=e.endpointName,n=e.queryArgs,r="",o=null==nc?void 0:nc.get(n);if("string"===typeof o)r=o;else{var i=JSON.stringify(n,(function(e,t){return Wr(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}));Wr(n)&&(null==nc||nc.set(n,i)),r=i}return t+"("+r+")"};function oc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n=ul((function(e){var n,r;return null==(r=t.extractRehydrationInfo)?void 0:r.call(t,e,{reducerPath:null!=(n=t.reducerPath)?n:"api"})})),r=kl(_l({reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1},t),{extractRehydrationInfo:n,serializeQueryArgs:function(e){var n=rc;if("serializeQueryArgs"in e.endpointDefinition){var r=e.endpointDefinition.serializeQueryArgs;n=function(e){var t=r(e);return"string"===typeof t?t:rc(kl(_l({},e),{queryArgs:t}))}}else t.serializeQueryArgs&&(n=t.serializeQueryArgs);return n(e)},tagTypes:gl([],t.tagTypes||[])}),o={endpointDefinitions:{},batch:function(e){e()},apiUid:Zr(),extractRehydrationInfo:n,hasRehydrationInfo:ul((function(e){return null!=n(e)}))},i={injectEndpoints:function(e){for(var t=e.endpoints({query:function(e){return kl(_l({},e),{type:Rl.query})},mutation:function(e){return kl(_l({},e),{type:Rl.mutation})}}),n=0,r=Object.entries(t);n<r.length;n++){var s=r[n],l=s[0],c=s[1];if(e.overrideExisting||!(l in o.endpointDefinitions)){o.endpointDefinitions[l]=c;for(var u=0,d=a;u<d.length;u++){d[u].injectEndpoint(l,c)}}}return i},enhanceEndpoints:function(e){var t=e.addTagTypes,n=e.endpoints;if(t)for(var a=0,s=t;a<s.length;a++){var l=s[a];r.tagTypes.includes(l)||r.tagTypes.push(l)}if(n)for(var c=0,u=Object.entries(n);c<u.length;c++){var d=u[c],f=d[0],p=d[1];"function"===typeof p?p(o.endpointDefinitions[f]):Object.assign(o.endpointDefinitions[f]||{},p)}return i}},a=e.map((function(e){return e.init(i,r,o)}));return i.injectEndpoints({endpoints:t.endpoints})}}var ic,ac=function(e){var t=e.reducerPath,n=e.api,r=e.context,o=e.internalState,i=n.internalActions,a=i.removeQueryResult,s=i.unsubscribeQueryResult;function l(e){var t=o.currentSubscriptions[e];return!!t&&!function(e){for(var t in e)return!1;return!0}(t)}var c={};function u(e,t,n,o){var i,s=r.endpointDefinitions[t],u=null!=(i=null==s?void 0:s.keepUnusedDataFor)?i:o.keepUnusedDataFor;if(u!==1/0){var d=Math.max(0,Math.min(u,2147482.647));if(!l(e)){var f=c[e];f&&clearTimeout(f),c[e]=setTimeout((function(){l(e)||n.dispatch(a({queryCacheKey:e})),delete c[e]}),1e3*d)}}}return function(e,o,i){var a;if(s.match(e)){var l=o.getState()[t];u(w=e.payload.queryCacheKey,null==(a=l.queries[w])?void 0:a.endpointName,o,l.config)}if(n.util.resetApiState.match(e))for(var d=0,f=Object.entries(c);d<f.length;d++){var p=f[d],h=p[0],m=p[1];m&&clearTimeout(m),delete c[h]}if(r.hasRehydrationInfo(e)){l=o.getState()[t];for(var g=r.extractRehydrationInfo(e).queries,v=0,y=Object.entries(g);v<y.length;v++){var b=y[v],w=b[0],x=b[1];u(w,null==x?void 0:x.endpointName,o,l.config)}}}},sc=function(e){var t=e.reducerPath,n=e.context,r=e.context.endpointDefinitions,o=e.mutationThunk,i=e.api,a=e.assertTagType,s=e.refetchQuery,l=i.internalActions.removeQueryResult,c=so(mo(o),ho(o));function u(e,r){var o=r.getState(),a=o[t],c=i.util.selectInvalidatedBy(o,e);n.batch((function(){for(var e,t=0,n=Array.from(c.values());t<n.length;t++){var o=n[t].queryCacheKey,i=a.queries[o],u=null!=(e=a.subscriptions[o])?e:{};i&&(0===Object.keys(u).length?r.dispatch(l({queryCacheKey:o})):i.status!==fl.uninitialized&&r.dispatch(s(i,o)))}}))}return function(e,t){c(e)&&u(Hl(e,"invalidatesTags",r,a),t),i.util.invalidateTags.match(e)&&u(zl(e.payload,void 0,void 0,void 0,void 0,a),t)}},lc=function(e){var t=e.reducerPath,n=e.queryThunk,r=e.api,o=e.refetchQuery,i=e.internalState,a={};function s(e,n){var r=e.queryCacheKey,s=n.getState()[t].queries[r],l=i.currentSubscriptions[r];if(s&&s.status!==fl.uninitialized){var c=u(l);if(Number.isFinite(c)){var d=a[r];(null==d?void 0:d.timeout)&&(clearTimeout(d.timeout),d.timeout=void 0);var f=Date.now()+c,p=a[r]={nextPollTimestamp:f,pollingInterval:c,timeout:setTimeout((function(){p.timeout=void 0,n.dispatch(o(s,r))}),c)}}}}function l(e,n){var r=e.queryCacheKey,o=n.getState()[t].queries[r],l=i.currentSubscriptions[r];if(o&&o.status!==fl.uninitialized){var d=u(l);if(Number.isFinite(d)){var f=a[r],p=Date.now()+d;(!f||p<f.nextPollTimestamp)&&s({queryCacheKey:r},n)}else c(r)}}function c(e){var t=a[e];(null==t?void 0:t.timeout)&&clearTimeout(t.timeout),delete a[e]}function u(e){void 0===e&&(e={});var t=Number.POSITIVE_INFINITY;for(var n in e)e[n].pollingInterval&&(t=Math.min(e[n].pollingInterval,t));return t}return function(e,t){(r.internalActions.updateSubscriptionOptions.match(e)||r.internalActions.unsubscribeQueryResult.match(e))&&l(e.payload,t),(n.pending.match(e)||n.rejected.match(e)&&e.meta.condition)&&l(e.meta.arg,t),(n.fulfilled.match(e)||n.rejected.match(e)&&!e.meta.condition)&&s(e.meta.arg,t),r.util.resetApiState.match(e)&&function(){for(var e=0,t=Object.keys(a);e<t.length;e++){c(t[e])}}()}},cc=new Error("Promise never resolved before cacheEntryRemoved."),uc=function(e){var t=e.api,n=e.reducerPath,r=e.context,o=e.queryThunk,i=e.mutationThunk,a=(e.internalState,go(o)),s=go(i),l=mo(o,i),c={};function u(e,n,o,i,a){var s=r.endpointDefinitions[e],l=null==s?void 0:s.onCacheEntryAdded;if(l){var u={},d=new Promise((function(e){u.cacheEntryRemoved=e})),f=Promise.race([new Promise((function(e){u.valueResolved=e})),d.then((function(){throw cc}))]);f.catch((function(){})),c[o]=u;var p=t.endpoints[e].select(s.type===Rl.query?n:o),h=i.dispatch((function(e,t,n){return n})),m=kl(_l({},i),{getCacheEntry:function(){return p(i.getState())},requestId:a,extra:h,updateCachedData:s.type===Rl.query?function(r){return i.dispatch(t.util.updateQueryData(e,n,r))}:void 0,cacheDataLoaded:f,cacheEntryRemoved:d}),g=l(n,m);Promise.resolve(g).catch((function(e){if(e!==cc)throw e}))}}return function(e,r,d){var f=function(e){return a(e)?e.meta.arg.queryCacheKey:s(e)?e.meta.requestId:t.internalActions.removeQueryResult.match(e)?e.payload.queryCacheKey:t.internalActions.removeMutationResult.match(e)?Gl(e.payload):""}(e);if(o.pending.match(e)){var p=d[n].queries[f],h=r.getState()[n].queries[f];!p&&h&&u(e.meta.arg.endpointName,e.meta.arg.originalArgs,f,r,e.meta.requestId)}else if(i.pending.match(e)){(h=r.getState()[n].mutations[f])&&u(e.meta.arg.endpointName,e.meta.arg.originalArgs,f,r,e.meta.requestId)}else if(l(e)){(null==(b=c[f])?void 0:b.valueResolved)&&(b.valueResolved({data:e.payload,meta:e.meta.baseQueryMeta}),delete b.valueResolved)}else if(t.internalActions.removeQueryResult.match(e)||t.internalActions.removeMutationResult.match(e)){(b=c[f])&&(delete c[f],b.cacheEntryRemoved())}else if(t.util.resetApiState.match(e))for(var m=0,g=Object.entries(c);m<g.length;m++){var v=g[m],y=v[0],b=v[1];delete c[y],b.cacheEntryRemoved()}}},dc=function(e){var t=e.api,n=e.context,r=e.queryThunk,o=e.mutationThunk,i=fo(r,o),a=po(r,o),s=mo(r,o),l={};return function(e,r){var o,c,u;if(i(e)){var d=e.meta,f=d.requestId,p=d.arg,h=p.endpointName,m=p.originalArgs,g=n.endpointDefinitions[h],v=null==g?void 0:g.onQueryStarted;if(v){var y={},b=new Promise((function(e,t){y.resolve=e,y.reject=t}));b.catch((function(){})),l[f]=y;var w=t.endpoints[h].select(g.type===Rl.query?m:f),x=r.dispatch((function(e,t,n){return n})),A=kl(_l({},r),{getCacheEntry:function(){return w(r.getState())},requestId:f,extra:x,updateCachedData:g.type===Rl.query?function(e){return r.dispatch(t.util.updateQueryData(h,m,e))}:void 0,queryFulfilled:b});v(m,A)}}else if(s(e)){var S=e.meta,_=(f=S.requestId,S.baseQueryMeta);null==(o=l[f])||o.resolve({data:e.payload,meta:_}),delete l[f]}else if(a(e)){var k=e.meta,C=(f=k.requestId,k.rejectedWithValue);_=k.baseQueryMeta;null==(u=l[f])||u.reject({error:null!=(c=e.payload)?c:e.error,isUnhandledError:!C,meta:_}),delete l[f]}}},fc=function(e){var t=e.api,n=e.context.apiUid;e.reducerPath;return function(e,r){t.util.resetApiState.match(e)&&r.dispatch(t.internalActions.middlewareRegistered(n))}},pc="function"===typeof queueMicrotask?queueMicrotask.bind("undefined"!==typeof window?window:"undefined"!==typeof __webpack_require__.g?__webpack_require__.g:globalThis):function(e){return(ic||(ic=Promise.resolve())).then(e).catch((function(e){return setTimeout((function(){throw e}),0)}))},hc=function(e){var t=e.api,n=e.queryThunk,r=e.internalState,o=t.reducerPath+"/subscriptions",i=null,a=!1,s=t.internalActions,l=s.updateSubscriptionOptions,c=s.unsubscribeQueryResult;return function(e,s){var u,d;if(i||(i=JSON.parse(JSON.stringify(r.currentSubscriptions))),t.util.resetApiState.match(e))return i=r.currentSubscriptions={},[!0,!1];if(t.internalActions.internal_probeSubscription.match(e)){var f=e.payload,p=f.queryCacheKey,h=f.requestId;return[!1,!!(null==(u=r.currentSubscriptions[p])?void 0:u[h])]}var m=function(e,r){var o,i,a,s,u,d,f,p,h;if(l.match(r)){var m=r.payload,g=m.queryCacheKey,v=m.requestId,y=m.options;return(null==(o=null==e?void 0:e[g])?void 0:o[v])&&(e[g][v]=y),!0}if(c.match(r)){var b=r.payload;return g=b.queryCacheKey,v=b.requestId,e[g]&&delete e[g][v],!0}if(t.internalActions.removeQueryResult.match(r))return delete e[r.payload.queryCacheKey],!0;if(n.pending.match(r)){var w=r.meta,x=w.arg;if(v=w.requestId,x.subscribe)return(A=null!=(a=e[i=x.queryCacheKey])?a:e[i]={})[v]=null!=(u=null!=(s=x.subscriptionOptions)?s:A[v])?u:{},!0}if(n.rejected.match(r)){var A,S=r.meta,_=S.condition;if(x=S.arg,v=S.requestId,_&&x.subscribe)return(A=null!=(f=e[d=x.queryCacheKey])?f:e[d]={})[v]=null!=(h=null!=(p=x.subscriptionOptions)?p:A[v])?h:{},!0}return!1}(r.currentSubscriptions,e);if(m){a||(pc((function(){var e=JSON.parse(JSON.stringify(r.currentSubscriptions)),n=hr(i,(function(){return e}))[1];s.next(t.internalActions.subscriptionsUpdated(n)),i=e,a=!1})),a=!0);var g=!!(null==(d=e.type)?void 0:d.startsWith(o)),v=n.rejected.match(e)&&e.meta.condition&&!!e.meta.arg.subscribe;return[!g&&!v,!1]}return[!0,!1]}};function mc(e){var t=e.reducerPath,n=e.queryThunk,r=e.api,o=e.context,i=o.apiUid,a={invalidateTags:Hr(t+"/invalidateTags")},s=[fc,ac,sc,lc,uc,dc];return{middleware:function(n){var a=!1,c=kl(_l({},e),{internalState:{currentSubscriptions:{}},refetchQuery:l}),u=s.map((function(e){return e(c)})),d=hc(c),f=function(e){var t=e.reducerPath,n=e.context,r=e.api,o=e.refetchQuery,i=e.internalState,a=r.internalActions.removeQueryResult;function s(e,r){var s=e.getState()[t],l=s.queries,c=i.currentSubscriptions;n.batch((function(){for(var t=0,n=Object.keys(c);t<n.length;t++){var i=n[t],u=l[i],d=c[i];d&&u&&(Object.values(d).some((function(e){return!0===e[r]}))||Object.values(d).every((function(e){return void 0===e[r]}))&&s.config[r])&&(0===Object.keys(d).length?e.dispatch(a({queryCacheKey:i})):u.status!==fl.uninitialized&&e.dispatch(o(u,i)))}}))}return function(e,t){Ml.match(e)&&s(t,"refetchOnFocus"),Ll.match(e)&&s(t,"refetchOnReconnect")}}(c);return function(e){return function(s){a||(a=!0,n.dispatch(r.internalActions.middlewareRegistered(i)));var l,c=kl(_l({},n),{next:e}),p=n.getState(),h=d(s,c,p),m=h[0],g=h[1];if(l=m?e(s):g,n.getState()[t]&&(f(s,c,p),function(e){return!!e&&"string"===typeof e.type&&e.type.startsWith(t+"/")}(s)||o.hasRehydrationInfo(s)))for(var v=0,y=u;v<y.length;v++){(0,y[v])(s,c,p)}return l}}},actions:a};function l(e,t,r){return void 0===r&&(r={}),n(_l({type:"query",endpointName:e.endpointName,originalArgs:e.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:t},r))}}function gc(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Object.assign.apply(Object,gl([e],t))}var vc=Symbol(),yc=function(){return{name:vc,init:function(e,t,n){var r=t.baseQuery,o=(t.tagTypes,t.reducerPath),i=t.serializeQueryArgs,a=t.keepUnusedDataFor,s=t.refetchOnMountOrArgChange,l=t.refetchOnFocus,c=t.refetchOnReconnect;$n();var u=function(e){return e};Object.assign(e,{reducerPath:o,endpoints:{},internalActions:{onOnline:Ll,onOffline:jl,onFocus:Ml,onFocusLost:Dl},util:{}});var d=function(e){var t=this,n=e.reducerPath,r=e.baseQuery,o=e.context.endpointDefinitions,i=e.serializeQueryArgs,a=e.api,s=e.assertTagType,l=function(e,n){return Cl(t,[e,n],(function(e,t){var n,i,a,s,l,u,d,f,p,h,m,g,v,y=t.signal,b=t.abort,w=t.rejectWithValue,x=t.fulfillWithValue,A=t.dispatch,S=t.getState,_=t.extra;return ml(this,(function(t){switch(t.label){case 0:n=o[e.endpointName],t.label=1;case 1:return t.trys.push([1,8,,13]),i=ql,a=void 0,s={signal:y,abort:b,dispatch:A,getState:S,extra:_,endpoint:e.endpointName,type:e.type,forced:"query"===e.type?c(e,S()):void 0},(l="query"===e.type?e[Ul]:void 0)?(a=l(),[3,6]):[3,2];case 2:return n.query?[4,r(n.query(e.originalArgs),s,n.extraOptions)]:[3,4];case 3:return a=t.sent(),n.transformResponse&&(i=n.transformResponse),[3,6];case 4:return[4,n.queryFn(e.originalArgs,s,n.extraOptions,(function(e){return r(e,s,n.extraOptions)}))];case 5:a=t.sent(),t.label=6;case 6:if(a.error)throw new Il(a.error,a.meta);return u=x,[4,i(a.data,a.meta,e.originalArgs)];case 7:return[2,u.apply(void 0,[t.sent(),(g={fulfilledTimeStamp:Date.now(),baseQueryMeta:a.meta},g[Go]=!0,g)])];case 8:if(d=t.sent(),!((f=d)instanceof Il))return[3,12];p=ql,n.query&&n.transformErrorResponse&&(p=n.transformErrorResponse),t.label=9;case 9:return t.trys.push([9,11,,12]),h=w,[4,p(f.value,f.meta,e.originalArgs)];case 10:return[2,h.apply(void 0,[t.sent(),(v={baseQueryMeta:f.meta},v[Go]=!0,v)])];case 11:return m=t.sent(),f=m,[3,12];case 12:throw console.error(f),f;case 13:return[2]}}))}))};function c(e,t){var r,o,i,a,s=null==(o=null==(r=t[n])?void 0:r.queries)?void 0:o[e.queryCacheKey],l=null==(i=t[n])?void 0:i.config.refetchOnMountOrArgChange,c=null==s?void 0:s.fulfilledTimeStamp,u=null!=(a=e.forceRefetch)?a:e.subscribe&&l;return!!u&&(!0===u||(Number(new Date)-Number(c))/1e3>=u)}var u=oo(n+"/executeQuery",l,{getPendingMeta:function(){var e;return(e={startedTimeStamp:Date.now()})[Go]=!0,e},condition:function(e,t){var r,i,a,s=(0,t.getState)(),l=null==(i=null==(r=s[n])?void 0:r.queries)?void 0:i[e.queryCacheKey],u=null==l?void 0:l.fulfilledTimeStamp,d=e.originalArgs,f=null==l?void 0:l.originalArgs,p=o[e.endpointName];return!!Wl(e)||"pending"!==(null==l?void 0:l.status)&&(!!c(e,s)||!(!Fl(p)||!(null==(a=null==p?void 0:p.forceRefetch)?void 0:a.call(p,{currentArg:d,previousArg:f,endpointState:l,state:s})))||!u)},dispatchConditionRejection:!0}),d=oo(n+"/executeMutation",l,{getPendingMeta:function(){var e;return(e={startedTimeStamp:Date.now()})[Go]=!0,e}});function f(e){return function(t){var n,r;return(null==(r=null==(n=null==t?void 0:t.meta)?void 0:n.arg)?void 0:r.endpointName)===e}}return{queryThunk:u,mutationThunk:d,prefetch:function(e,t,n){return function(r,o){var i=function(e){return"force"in e}(n)&&n.force,s=function(e){return"ifOlderThan"in e}(n)&&n.ifOlderThan,l=function(n){return void 0===n&&(n=!0),a.endpoints[e].initiate(t,{forceRefetch:n})},c=a.endpoints[e].select(t)(o());if(i)r(l());else if(s){var u=null==c?void 0:c.fulfilledTimeStamp;if(!u)return void r(l());(Number(new Date)-Number(new Date(u)))/1e3>=s&&r(l())}else r(l(!1))}},updateQueryData:function(e,t,n,r){return void 0===r&&(r=!0),function(o,i){var s,l,c,u=a.endpoints[e].select(t)(i()),d={patches:[],inversePatches:[],undo:function(){return o(a.util.patchQueryData(e,t,d.inversePatches,r))}};if(u.status===fl.uninitialized)return d;if("data"in u)if(mn(u.data)){var f=hr(u.data,n),p=f[0],h=f[1],m=f[2];(s=d.patches).push.apply(s,h),(l=d.inversePatches).push.apply(l,m),c=p}else c=n(u.data),d.patches.push({op:"replace",path:[],value:c}),d.inversePatches.push({op:"replace",path:[],value:u.data});return o(a.util.patchQueryData(e,t,d.patches,r)),d}},upsertQueryData:function(e,t,n){return function(r){var o;return r(a.endpoints[e].initiate(t,((o={subscribe:!1,forceRefetch:!0})[Ul]=function(){return{data:n}},o)))}},patchQueryData:function(e,t,n,r){return function(l,c){var u=o[e],d=i({queryArgs:t,endpointDefinition:u,endpointName:e});if(l(a.internalActions.queryResultPatched({queryCacheKey:d,patches:n})),r){var f=a.endpoints[e].select(t)(c()),p=zl(u.providesTags,f.data,void 0,t,{},s);l(a.internalActions.updateProvidedBy({queryCacheKey:d,providedTags:p}))}}},buildMatchThunkActions:function(e,t){return{matchPending:lo(fo(e),f(t)),matchFulfilled:lo(mo(e),f(t)),matchRejected:lo(po(e),f(t))}}}}({baseQuery:r,reducerPath:o,context:n,api:e,serializeQueryArgs:i,assertTagType:u}),f=d.queryThunk,p=d.mutationThunk,h=d.patchQueryData,m=d.updateQueryData,g=d.upsertQueryData,v=d.prefetch,y=d.buildMatchThunkActions,b=Ql({context:n,queryThunk:f,mutationThunk:p,reducerPath:o,assertTagType:u,config:{refetchOnFocus:l,refetchOnReconnect:c,refetchOnMountOrArgChange:s,keepUnusedDataFor:a,reducerPath:o}}),w=b.reducer,x=b.actions;gc(e.util,{patchQueryData:h,updateQueryData:m,upsertQueryData:g,prefetch:v,resetApiState:x.resetApiState}),gc(e.internalActions,x);var A=mc({reducerPath:o,context:n,queryThunk:f,mutationThunk:p,api:e,assertTagType:u}),S=A.middleware,_=A.actions;gc(e.util,_),gc(e,{reducer:w,middleware:S});var k=tc({serializeQueryArgs:i,reducerPath:o}),C=k.buildQuerySelector,E=k.buildMutationSelector,O=k.selectInvalidatedBy;gc(e.util,{selectInvalidatedBy:O});var T=function(e){var t=e.serializeQueryArgs,n=e.queryThunk,r=e.mutationThunk,o=e.api,i=e.context,a=new Map,s=new Map,l=o.internalActions,c=l.unsubscribeQueryResult,u=l.removeMutationResult,d=l.updateSubscriptionOptions;return{buildInitiateQuery:function(e,r){var i=function(s,l){var u=void 0===l?{}:l,p=u.subscribe,h=void 0===p||p,m=u.forceRefetch,g=u.subscriptionOptions,v=u[Ul];return function(l,u){var p,y,b=t({queryArgs:s,endpointDefinition:r,endpointName:e}),w=n(((p={type:"query",subscribe:h,forceRefetch:m,subscriptionOptions:g,endpointName:e,originalArgs:s,queryCacheKey:b})[Ul]=v,p)),x=o.endpoints[e].select(s),A=l(w),S=x(u());f(l);var _=A.requestId,k=A.abort,C=S.requestId!==_,E=null==(y=a.get(l))?void 0:y[b],O=function(){return x(u())},T=Object.assign(v?A.then(O):C&&!E?Promise.resolve(S):Promise.all([E,A]).then(O),{arg:s,requestId:_,subscriptionOptions:g,queryCacheKey:b,abort:k,unwrap:function(){return Cl(this,null,(function(){var e;return ml(this,(function(t){switch(t.label){case 0:return[4,T];case 1:if((e=t.sent()).isError)throw e.error;return[2,e.data]}}))}))},refetch:function(){return l(i(s,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){h&&l(c({queryCacheKey:b,requestId:_}))},updateSubscriptionOptions:function(t){T.subscriptionOptions=t,l(d({endpointName:e,requestId:_,queryCacheKey:b,options:t}))}});if(!E&&!C&&!v){var I=a.get(l)||{};I[b]=T,a.set(l,I),T.then((function(){delete I[b],Object.keys(I).length||a.delete(l)}))}return T}};return i},buildInitiateMutation:function(e){return function(t,n){var o=void 0===n?{}:n,i=o.track,a=void 0===i||i,l=o.fixedCacheKey;return function(n,o){var i=r({type:"mutation",endpointName:e,originalArgs:t,track:a,fixedCacheKey:l}),c=n(i);f(n);var d=c.requestId,p=c.abort,h=c.unwrap,m=c.unwrap().then((function(e){return{data:e}})).catch((function(e){return{error:e}})),g=function(){n(u({requestId:d,fixedCacheKey:l}))},v=Object.assign(m,{arg:c.arg,requestId:d,abort:p,unwrap:h,unsubscribe:g,reset:g}),y=s.get(n)||{};return s.set(n,y),y[d]=v,v.then((function(){delete y[d],Object.keys(y).length||s.delete(n)})),l&&(y[l]=v,v.then((function(){y[l]===v&&(delete y[l],Object.keys(y).length||s.delete(n))}))),v}}},getRunningQueryThunk:function(e,n){return function(r){var o,s=i.endpointDefinitions[e],l=t({queryArgs:n,endpointDefinition:s,endpointName:e});return null==(o=a.get(r))?void 0:o[l]}},getRunningMutationThunk:function(e,t){return function(e){var n;return null==(n=s.get(e))?void 0:n[t]}},getRunningQueriesThunk:function(){return function(e){return Object.values(a.get(e)||{}).filter(Vl)}},getRunningMutationsThunk:function(){return function(e){return Object.values(s.get(e)||{}).filter(Vl)}},getRunningOperationPromises:function(){var e=function(e){return Array.from(e.values()).flatMap((function(e){return e?Object.values(e):[]}))};return gl(gl([],e(a)),e(s)).filter(Vl)},removalWarning:function(){throw new Error("This method had to be removed due to a conceptual bug in RTK.\n Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.\n See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.")}};function f(e){}}({queryThunk:f,mutationThunk:p,api:e,serializeQueryArgs:i,context:n}),I=T.buildInitiateQuery,R=T.buildInitiateMutation,P=T.getRunningMutationThunk,M=T.getRunningMutationsThunk,D=T.getRunningQueriesThunk,L=T.getRunningQueryThunk,j=T.getRunningOperationPromises,N=T.removalWarning;return gc(e.util,{getRunningOperationPromises:j,getRunningOperationPromise:N,getRunningMutationThunk:P,getRunningMutationsThunk:M,getRunningQueryThunk:L,getRunningQueriesThunk:D}),{name:vc,injectEndpoint:function(t,n){var r,o=e;null!=(r=o.endpoints)[t]||(r[t]={}),Fl(n)?gc(o.endpoints[t],{name:t,select:C(t,n),initiate:I(t,n)},y(f,t)):n.type===Rl.mutation&&gc(o.endpoints[t],{name:t,select:E(),initiate:R(t)},y(p,t))}}}}},bc=(yc(),function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}),wc=Object.defineProperty,xc=Object.defineProperties,Ac=Object.getOwnPropertyDescriptors,Sc=Object.getOwnPropertySymbols,_c=Object.prototype.hasOwnProperty,kc=Object.prototype.propertyIsEnumerable,Cc=function(e,t,n){return t in e?wc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},Ec=function(e,t){for(var n in t||(t={}))_c.call(t,n)&&Cc(e,n,t[n]);if(Sc)for(var r=0,o=Sc(t);r<o.length;r++){n=o[r];kc.call(t,n)&&Cc(e,n,t[n])}return e},Oc=function(e,t){return xc(e,Ac(t))};function Tc(e,t,n,r){var o=(0,i.useMemo)((function(){return{queryArgs:e,serialized:"object"==typeof e?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e}}),[e,t,n,r]),a=(0,i.useRef)(o);return(0,i.useEffect)((function(){a.current.serialized!==o.serialized&&(a.current=o)}),[o]),a.current.serialized===o.serialized?a.current.queryArgs:e}var Ic=Symbol();function Rc(e){var t=(0,i.useRef)(e);return(0,i.useEffect)((function(){(0,o.bN)(t.current,e)||(t.current=e)}),[e]),(0,o.bN)(t.current,e)?t.current:e}var Pc,Mc=WeakMap?new WeakMap:void 0,Dc=function(e){var t=e.endpointName,n=e.queryArgs,r="",o=null==Mc?void 0:Mc.get(n);if("string"===typeof o)r=o;else{var i=JSON.stringify(n,(function(e,t){return Wr(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}));Wr(n)&&(null==Mc||Mc.set(n,i)),r=i}return t+"("+r+")"},Lc="undefined"!==typeof window&&window.document&&window.document.createElement?i.useLayoutEffect:i.useEffect,jc=function(e){return e},Nc=function(e){return e.isUninitialized?Oc(Ec({},e),{isUninitialized:!1,isFetching:!0,isLoading:void 0===e.data,status:fl.pending}):e};function Fc(e){return e.replace(e[0],e[0].toUpperCase())}function zc(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Object.assign.apply(Object,bc([e],t))}!function(e){e.query="query",e.mutation="mutation"}(Pc||(Pc={}));var Bc=Symbol();var Vc=oc(yc(),function(e){var t=void 0===e?{}:e,n=t.batch,r=void 0===n?o.vA:n,a=t.useDispatch,s=void 0===a?o.wA:a,l=t.useSelector,c=void 0===l?o.d4:l,u=t.useStore,d=void 0===u?o.Pj:u,f=t.unstable__sideEffectsInRender,p=void 0!==f&&f;return{name:Bc,init:function(e,t,n){var a=t.serializeQueryArgs,l=e,u=function(e){var t=e.api,n=e.moduleOptions,r=n.batch,a=n.useDispatch,s=n.useSelector,l=n.useStore,c=n.unstable__sideEffectsInRender,u=e.serializeQueryArgs,d=e.context,f=c?function(e){return e()}:i.useEffect;return{buildQueryHooks:function(e){var n=function(n,r){var o=void 0===r?{}:r,s=o.refetchOnReconnect,l=o.refetchOnFocus,c=o.refetchOnMountOrArgChange,u=o.skip,p=void 0!==u&&u,h=o.pollingInterval,m=void 0===h?0:h,g=t.endpoints[e].initiate,v=a(),y=Tc(p?Xl:n,Dc,d.endpointDefinitions[e],e),b=Rc({refetchOnReconnect:s,refetchOnFocus:l,pollingInterval:m}),w=(0,i.useRef)(!1),x=(0,i.useRef)(),A=x.current||{},S=A.queryCacheKey,_=A.requestId,k=!1;if(S&&_){var C=v(t.internalActions.internal_probeSubscription({queryCacheKey:S,requestId:_}));k=!!C}var E=!k&&w.current;return f((function(){w.current=k})),f((function(){E&&(x.current=void 0)}),[E]),f((function(){var e,t=x.current;if(y===Xl)return null==t||t.unsubscribe(),void(x.current=void 0);var n=null==(e=x.current)?void 0:e.subscriptionOptions;if(t&&t.arg===y)b!==n&&t.updateSubscriptionOptions(b);else{null==t||t.unsubscribe();var r=v(g(y,{subscriptionOptions:b,forceRefetch:c}));x.current=r}}),[v,g,c,y,b,E]),(0,i.useEffect)((function(){return function(){var e;null==(e=x.current)||e.unsubscribe(),x.current=void 0}}),[]),(0,i.useMemo)((function(){return{refetch:function(){var e;if(!x.current)throw new Error("Cannot refetch a query that has not been started yet.");return null==(e=x.current)?void 0:e.refetch()}}}),[])},c=function(n){var o=void 0===n?{}:n,s=o.refetchOnReconnect,l=o.refetchOnFocus,c=o.pollingInterval,u=void 0===c?0:c,d=t.endpoints[e].initiate,p=a(),h=(0,i.useState)(Ic),m=h[0],g=h[1],v=(0,i.useRef)(),y=Rc({refetchOnReconnect:s,refetchOnFocus:l,pollingInterval:u});f((function(){var e,t,n=null==(e=v.current)?void 0:e.subscriptionOptions;y!==n&&(null==(t=v.current)||t.updateSubscriptionOptions(y))}),[y]);var b=(0,i.useRef)(y);f((function(){b.current=y}),[y]);var w=(0,i.useCallback)((function(e,t){var n;return void 0===t&&(t=!1),r((function(){var r;null==(r=v.current)||r.unsubscribe(),v.current=n=p(d(e,{subscriptionOptions:b.current,forceRefetch:!t})),g(e)})),n}),[p,d]);return(0,i.useEffect)((function(){return function(){var e;null==(e=null==v?void 0:v.current)||e.unsubscribe()}}),[]),(0,i.useEffect)((function(){m===Ic||v.current||w(m,!0)}),[m,w]),(0,i.useMemo)((function(){return[w,m]}),[w,m])},h=function(n,r){var a=void 0===r?{}:r,c=a.skip,f=void 0!==c&&c,h=a.selectFromResult,m=t.endpoints[e].select,g=Tc(f?Xl:n,u,d.endpointDefinitions[e],e),v=(0,i.useRef)(),y=(0,i.useMemo)((function(){return hl([m(g),function(e,t){return t},function(e){return g}],p)}),[m,g]),b=(0,i.useMemo)((function(){return h?hl([y],h):y}),[y,h]),w=s((function(e){return b(e,v.current)}),o.bN),x=l(),A=y(x.getState(),v.current);return Lc((function(){v.current=A}),[A]),w};return{useQueryState:h,useQuerySubscription:n,useLazyQuerySubscription:c,useLazyQuery:function(e){var t=c(e),n=t[0],r=t[1],o=h(r,Oc(Ec({},e),{skip:r===Ic})),a=(0,i.useMemo)((function(){return{lastArg:r}}),[r]);return(0,i.useMemo)((function(){return[n,o,a]}),[n,o,a])},useQuery:function(e,t){var r=n(e,t),o=h(e,Ec({selectFromResult:e===Xl||(null==t?void 0:t.skip)?void 0:Nc},t)),a=o.data,s=o.status,l=o.isLoading,c=o.isSuccess,u=o.isError,d=o.error;return(0,i.useDebugValue)({data:a,status:s,isLoading:l,isSuccess:c,isError:u,error:d}),(0,i.useMemo)((function(){return Ec(Ec({},o),r)}),[o,r])}}},buildMutationHook:function(e){return function(n){var l=void 0===n?{}:n,c=l.selectFromResult,u=void 0===c?jc:c,d=l.fixedCacheKey,f=t.endpoints[e],p=f.select,h=f.initiate,m=a(),g=(0,i.useState)(),v=g[0],y=g[1];(0,i.useEffect)((function(){return function(){(null==v?void 0:v.arg.fixedCacheKey)||null==v||v.reset()}}),[v]);var b=(0,i.useCallback)((function(e){var t=m(h(e,{fixedCacheKey:d}));return y(t),t}),[m,h,d]),w=(v||{}).requestId,x=(0,i.useMemo)((function(){return hl([p({fixedCacheKey:d,requestId:null==v?void 0:v.requestId})],u)}),[p,v,u,d]),A=s(x,o.bN),S=null==d?null==v?void 0:v.arg.originalArgs:void 0,_=(0,i.useCallback)((function(){r((function(){v&&y(void 0),d&&m(t.internalActions.removeMutationResult({requestId:w,fixedCacheKey:d}))}))}),[m,d,v,w]),k=A.endpointName,C=A.data,E=A.status,O=A.isLoading,T=A.isSuccess,I=A.isError,R=A.error;(0,i.useDebugValue)({endpointName:k,data:C,status:E,isLoading:O,isSuccess:T,isError:I,error:R});var P=(0,i.useMemo)((function(){return Oc(Ec({},A),{originalArgs:S,reset:_})}),[A,S,_]);return(0,i.useMemo)((function(){return[b,P]}),[b,P])}},usePrefetch:function(e,n){var r=a(),o=Rc(n);return(0,i.useCallback)((function(n,i){return r(t.util.prefetch(e,n,Ec(Ec({},o),i)))}),[e,r,o])}};function p(e,t,n){if((null==t?void 0:t.endpointName)&&e.isUninitialized){var r=t.endpointName,o=d.endpointDefinitions[r];u({queryArgs:t.originalArgs,endpointDefinition:o,endpointName:r})===u({queryArgs:n,endpointDefinition:o,endpointName:r})&&(t=void 0)}var i=e.isSuccess?e.data:null==t?void 0:t.data;void 0===i&&(i=e.data);var a=void 0!==i,s=e.isLoading,l=!a&&s,c=e.isSuccess||s&&a;return Oc(Ec({},e),{data:i,currentData:e.data,isFetching:s,isLoading:l,isSuccess:c})}}({api:e,moduleOptions:{batch:r,useDispatch:s,useSelector:c,useStore:d,unstable__sideEffectsInRender:p},serializeQueryArgs:a,context:n}),f=u.buildQueryHooks,h=u.buildMutationHook,m=u.usePrefetch;return zc(l,{usePrefetch:m}),zc(n,{batch:r}),{injectEndpoint:function(t,n){if(n.type===Pc.query){var r=f(t),o=r.useQuery,i=r.useLazyQuery,a=r.useLazyQuerySubscription,s=r.useQueryState,c=r.useQuerySubscription;zc(l.endpoints[t],{useQuery:o,useLazyQuery:i,useLazyQuerySubscription:a,useQueryState:s,useQuerySubscription:c}),e["use"+Fc(t)+"Query"]=o,e["useLazy"+Fc(t)+"Query"]=i}else if(function(e){return e.type===Pc.mutation}(n)){var u=h(t);zc(l.endpoints[t],{useMutation:u}),e["use"+Fc(t)+"Mutation"]=u}}}}}}());function Uc(e,t){return function(){return e.apply(t,arguments)}}const{toString:Wc}=Object.prototype,{getPrototypeOf:qc}=Object,{iterator:Hc,toStringTag:Yc}=Symbol,Gc=(Kc=Object.create(null),e=>{const t=Wc.call(e);return Kc[t]||(Kc[t]=t.slice(8,-1).toLowerCase())});var Kc;const $c=e=>(e=e.toLowerCase(),t=>Gc(t)===e),Qc=e=>t=>typeof t===e,{isArray:Xc}=Array,Jc=Qc("undefined");function Zc(e){return null!==e&&!Jc(e)&&null!==e.constructor&&!Jc(e.constructor)&&nu(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const eu=$c("ArrayBuffer");const tu=Qc("string"),nu=Qc("function"),ru=Qc("number"),ou=e=>null!==e&&"object"===typeof e,iu=e=>{if("object"!==Gc(e))return!1;const t=qc(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Yc in e)&&!(Hc in e)},au=$c("Date"),su=$c("File"),lu=$c("Blob"),cu=$c("FileList"),uu=$c("URLSearchParams"),[du,fu,pu,hu]=["ReadableStream","Request","Response","Headers"].map($c);function mu(e,t){let n,r,{allOwnKeys:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),Xc(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{if(Zc(e))return;const r=o?Object.getOwnPropertyNames(e):Object.keys(e),i=r.length;let a;for(n=0;n<i;n++)a=r[n],t.call(null,e[a],a,e)}}function gu(e,t){if(Zc(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const vu="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,yu=e=>!Jc(e)&&e!==vu;const bu=(wu="undefined"!==typeof Uint8Array&&qc(Uint8Array),e=>wu&&e instanceof wu);var wu;const xu=$c("HTMLFormElement"),Au=(e=>{let{hasOwnProperty:t}=e;return(e,n)=>t.call(e,n)})(Object.prototype),Su=$c("RegExp"),_u=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};mu(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)};const ku=$c("AsyncFunction"),Cu=((e,t)=>{return e?setImmediate:t?(n="axios@".concat(Math.random()),r=[],vu.addEventListener("message",(e=>{let{source:t,data:o}=e;t===vu&&o===n&&r.length&&r.shift()()}),!1),e=>{r.push(e),vu.postMessage(n,"*")}):e=>setTimeout(e);var n,r})("function"===typeof setImmediate,nu(vu.postMessage)),Eu="undefined"!==typeof queueMicrotask?queueMicrotask.bind(vu):"undefined"!==typeof process&&process.nextTick||Cu,Ou={isArray:Xc,isArrayBuffer:eu,isBuffer:Zc,isFormData:e=>{let t;return e&&("function"===typeof FormData&&e instanceof FormData||nu(e.append)&&("formdata"===(t=Gc(e))||"object"===t&&nu(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&eu(e.buffer),t},isString:tu,isNumber:ru,isBoolean:e=>!0===e||!1===e,isObject:ou,isPlainObject:iu,isEmptyObject:e=>{if(!ou(e)||Zc(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(t){return!1}},isReadableStream:du,isRequest:fu,isResponse:pu,isHeaders:hu,isUndefined:Jc,isDate:au,isFile:su,isBlob:lu,isRegExp:Su,isFunction:nu,isStream:e=>ou(e)&&nu(e.pipe),isURLSearchParams:uu,isTypedArray:bu,isFileList:cu,forEach:mu,merge:function e(){const{caseless:t,skipUndefined:n}=yu(this)&&this||{},r={},o=(o,i)=>{const a=t&&gu(r,i)||i;iu(r[a])&&iu(o)?r[a]=e(r[a],o):iu(o)?r[a]=e({},o):Xc(o)?r[a]=o.slice():n&&Jc(o)||(r[a]=o)};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&mu(arguments[i],o);return r},extend:function(e,t,n){let{allOwnKeys:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return mu(t,((t,r)=>{n&&nu(t)?e[r]=Uc(t,n):e[r]=t}),{allOwnKeys:r}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&qc(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Gc,kindOfTest:$c,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Xc(e))return e;let t=e.length;if(!ru(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Hc]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:xu,hasOwnProperty:Au,hasOwnProp:Au,reduceDescriptors:_u,freezeMethods:e=>{_u(e,((t,n)=>{if(nu(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];nu(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return Xc(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:gu,global:vu,isContextDefined:yu,isSpecCompliantForm:function(e){return!!(e&&nu(e.append)&&"FormData"===e[Yc]&&e[Hc])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(ou(e)){if(t.indexOf(e)>=0)return;if(Zc(e))return e;if(!("toJSON"in e)){t[r]=e;const o=Xc(e)?[]:{};return mu(e,((e,t)=>{const i=n(e,r+1);!Jc(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:ku,isThenable:e=>e&&(ou(e)||nu(e))&&nu(e.then)&&nu(e.catch),setImmediate:Cu,asap:Eu,isIterable:e=>null!=e&&nu(e[Hc])};function Tu(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Ou.inherits(Tu,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ou.toJSONObject(this.config),code:this.code,status:this.status}}});const Iu=Tu.prototype,Ru={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Ru[e]={value:e}})),Object.defineProperties(Tu,Ru),Object.defineProperty(Iu,"isAxiosError",{value:!0}),Tu.from=(e,t,n,r,o,i)=>{const a=Object.create(Iu);Ou.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e));const s=e&&e.message?e.message:"Error",l=null==t&&e?e.code:t;return Tu.call(a,s,l,n,r,o),e&&null==a.cause&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",i&&Object.assign(a,i),a};const Pu=Tu;function Mu(e){return Ou.isPlainObject(e)||Ou.isArray(e)}function Du(e){return Ou.endsWith(e,"[]")?e.slice(0,-2):e}function Lu(e,t,n){return e?e.concat(t).map((function(e,t){return e=Du(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const ju=Ou.toFlatObject(Ou,{},null,(function(e){return/^is[A-Z]/.test(e)}));const Nu=function(e,t,n){if(!Ou.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Ou.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Ou.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&Ou.isSpecCompliantForm(t);if(!Ou.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Ou.isDate(e))return e.toISOString();if(Ou.isBoolean(e))return e.toString();if(!s&&Ou.isBlob(e))throw new Pu("Blob is not supported. Use a Buffer instead.");return Ou.isArrayBuffer(e)||Ou.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"===typeof e)if(Ou.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Ou.isArray(e)&&function(e){return Ou.isArray(e)&&!e.some(Mu)}(e)||(Ou.isFileList(e)||Ou.endsWith(n,"[]"))&&(s=Ou.toArray(e)))return n=Du(n),s.forEach((function(e,r){!Ou.isUndefined(e)&&null!==e&&t.append(!0===a?Lu([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Mu(e)||(t.append(Lu(o,n,i),l(e)),!1)}const u=[],d=Object.assign(ju,{defaultVisitor:c,convertValue:l,isVisitable:Mu});if(!Ou.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Ou.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Ou.forEach(n,(function(n,i){!0===(!(Ou.isUndefined(n)||null===n)&&o.call(t,n,Ou.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t};function Fu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function zu(e,t){this._pairs=[],e&&Nu(e,this,t)}const Bu=zu.prototype;Bu.append=function(e,t){this._pairs.push([e,t])},Bu.toString=function(e){const t=e?function(t){return e.call(this,t,Fu)}:Fu;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Vu=zu;function Uu(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Wu(e,t,n){if(!t)return e;const r=n&&n.encode||Uu;Ou.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):Ou.isURLSearchParams(t)?t.toString():new Vu(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}const qu=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Ou.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Hu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Yu={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:Vu,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Gu="undefined"!==typeof window&&"undefined"!==typeof document,Ku="object"===typeof navigator&&navigator||void 0,$u=Gu&&(!Ku||["ReactNative","NativeScript","NS"].indexOf(Ku.product)<0),Qu="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,Xu=Gu&&window.location.href||"http://localhost",Ju=(0,g.A)((0,g.A)({},e),Yu);const Zu=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&Ou.isArray(r)?r.length:i,s)return Ou.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&Ou.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Ou.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(Ou.isFormData(e)&&Ou.isFunction(e.entries)){const n={};return Ou.forEachEntry(e,((e,r)=>{t(function(e){return Ou.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const ed={transitional:Hu,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Ou.isObject(e);o&&Ou.isHTMLForm(e)&&(e=new FormData(e));if(Ou.isFormData(e))return r?JSON.stringify(Zu(e)):e;if(Ou.isArrayBuffer(e)||Ou.isBuffer(e)||Ou.isStream(e)||Ou.isFile(e)||Ou.isBlob(e)||Ou.isReadableStream(e))return e;if(Ou.isArrayBufferView(e))return e.buffer;if(Ou.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Nu(e,new Ju.classes.URLSearchParams,(0,g.A)({visitor:function(e,t,n,r){return Ju.isNode&&Ou.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Ou.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Nu(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Ou.isString(e))try{return(t||JSON.parse)(e),Ou.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ed.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Ou.isResponse(e)||Ou.isReadableStream(e))return e;if(e&&Ou.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(o){if(n){if("SyntaxError"===o.name)throw Pu.from(o,Pu.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ju.classes.FormData,Blob:Ju.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ou.forEach(["delete","get","head","post","put","patch"],(e=>{ed.headers[e]={}}));const td=ed,nd=Ou.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),rd=Symbol("internals");function od(e){return e&&String(e).trim().toLowerCase()}function id(e){return!1===e||null==e?e:Ou.isArray(e)?e.map(id):String(e)}function ad(e,t,n,r,o){return Ou.isFunction(r)?r.call(this,t,n):(o&&(t=n),Ou.isString(t)?Ou.isString(r)?-1!==t.indexOf(r):Ou.isRegExp(r)?r.test(t):void 0:void 0)}class sd{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=od(t);if(!o)throw new Error("header name must be a non-empty string");const i=Ou.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=id(e))}const i=(e,t)=>Ou.forEach(e,((e,n)=>o(e,n,t)));if(Ou.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Ou.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&nd[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(Ou.isObject(e)&&Ou.isIterable(e)){let n,r,o={};for(const t of e){if(!Ou.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?Ou.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=od(e)){const n=Ou.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Ou.isFunction(t))return t.call(this,e,n);if(Ou.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=od(e)){const n=Ou.findKey(this,e);return!(!n||void 0===this[n]||t&&!ad(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=od(e)){const o=Ou.findKey(n,e);!o||t&&!ad(0,n[o],o,t)||(delete n[o],r=!0)}}return Ou.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!ad(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Ou.forEach(this,((r,o)=>{const i=Ou.findKey(n,o);if(i)return t[i]=id(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=id(r),n[a]=!0})),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return Ou.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Ou.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((e=>{let[t,n]=e;return t+": "+n})).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach((e=>t.set(e))),t}static accessor(e){const t=(this[rd]=this[rd]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=od(e);t[r]||(!function(e,t){const n=Ou.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return Ou.isArray(e)?e.forEach(r):r(e),this}}sd.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ou.reduceDescriptors(sd.prototype,((e,t)=>{let{value:n}=e,r=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[r]=e}}})),Ou.freezeMethods(sd);const ld=sd;function cd(e,t){const n=this||td,r=t||n,o=ld.from(r.headers);let i=r.data;return Ou.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function ud(e){return!(!e||!e.__CANCEL__)}function dd(e,t,n){Pu.call(this,null==e?"canceled":e,Pu.ERR_CANCELED,t,n),this.name="CanceledError"}Ou.inherits(dd,Pu,{__CANCEL__:!0});const fd=dd;function pd(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Pu("Request failed with status code "+n.status,[Pu.ERR_BAD_REQUEST,Pu.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const hd=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}};const md=function(e,t){let n,r,o=0,i=1e3/t;const a=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[function(){const e=Date.now(),t=e-o;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];t>=i?a(l,e):(n=l,r||(r=setTimeout((()=>{r=null,a(n)}),i-t)))},()=>n&&a(n)]},gd=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0;const o=hd(50,250);return md((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},vd=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},yd=e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ou.asap((()=>e(...n)))},bd=Ju.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ju.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ju.origin),Ju.navigator&&/(msie|trident)/i.test(Ju.navigator.userAgent)):()=>!0,wd=Ju.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Ou.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Ou.isString(r)&&a.push("path="+r),Ou.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function xd(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ad=e=>e instanceof ld?(0,g.A)({},e):e;function Sd(e,t){t=t||{};const n={};function r(e,t,n,r){return Ou.isPlainObject(e)&&Ou.isPlainObject(t)?Ou.merge.call({caseless:r},e,t):Ou.isPlainObject(t)?Ou.merge({},t):Ou.isArray(t)?t.slice():t}function o(e,t,n,o){return Ou.isUndefined(t)?Ou.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!Ou.isUndefined(t))return r(void 0,t)}function a(e,t){return Ou.isUndefined(t)?Ou.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(Ad(e),Ad(t),0,!0)};return Ou.forEach(Object.keys((0,g.A)((0,g.A)({},e),t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);Ou.isUndefined(a)&&i!==s||(n[r]=a)})),n}const _d=e=>{const t=Sd({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;if(t.headers=a=ld.from(a),t.url=Wu(xd(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),Ou.isFormData(n))if(Ju.hasStandardBrowserEnv||Ju.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(Ou.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach((e=>{let[n,r]=e;t.includes(n.toLowerCase())&&a.set(n,r)}))}if(Ju.hasStandardBrowserEnv&&(r&&Ou.isFunction(r)&&(r=r(t)),r||!1!==r&&bd(t.url))){const e=o&&i&&wd.read(i);e&&a.set(o,e)}return t},kd="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=_d(e);let o=r.data;const i=ld.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=ld.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());pd((function(e){t(e),h()}),(function(e){n(e),h()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new Pu("Request aborted",Pu.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new Pu(r,Pu.ERR_NETWORK,e,m);o.event=t||null,n(o),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Hu;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Pu(t,o.clarifyTimeoutError?Pu.ETIMEDOUT:Pu.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&Ou.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),Ou.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([l,u]=gd(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([s,c]=gd(f),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new fd(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===Ju.protocols.indexOf(v)?n(new Pu("Unsupported protocol "+v+":",Pu.ERR_BAD_REQUEST,e)):m.send(o||null)}))},Cd=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Pu?t:new fd(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new Pu("timeout ".concat(t," of ms exceeded"),Pu.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=()=>Ou.asap(a),s}};function Ed(e,t){this.v=e,this.k=t}function Od(e){return function(){return new Td(e.apply(this,arguments))}}function Td(e){var t,n;function r(t,n){try{var i=e[t](n),a=i.value,s=a instanceof Ed;Promise.resolve(s?a.v:a).then((function(n){if(s){var l="return"===t?"return":"next";if(!a.k||n.done)return r(l,n);n=e[l](n).value}o(i.done?"return":"normal",n)}),(function(e){r("throw",e)}))}catch(e){o("throw",e)}}function o(e,o){switch(e){case"return":t.resolve({value:o,done:!0});break;case"throw":t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,o){return new Promise((function(i,a){var s={key:e,arg:o,resolve:i,reject:a,next:null};n?n=n.next=s:(t=n=s,r(e,o))}))},"function"!=typeof e.return&&(this.return=void 0)}function Id(e){return new Ed(e,0)}function Rd(e){var t={},n=!1;function r(t,r){return n=!0,r=new Promise((function(n){n(e[t](r))})),{done:!1,value:new Ed(r,1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return n?(n=!1,e):r("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(n)throw n=!1,e;return r("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return n?(n=!1,e):r("return",e)}),t}function Pd(e){var t,n,r,o=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);o--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new Md(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function Md(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return Md=function(e){this.s=e,this.n=e.next},Md.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new Md(e)}Td.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Td.prototype.next=function(e){return this._invoke("next",e)},Td.prototype.throw=function(e){return this._invoke("throw",e)},Td.prototype.return=function(e){return this._invoke("return",e)};const Dd=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Ld=function(){var e=Od((function*(e,t){var n,r=!1,o=!1;try{for(var i,a=Pd(jd(e));r=!(i=yield Id(a.next())).done;r=!1){const e=i.value;yield*Rd(Pd(Dd(e,t)))}}catch(s){o=!0,n=s}finally{try{r&&null!=a.return&&(yield Id(a.return()))}finally{if(o)throw n}}}));return function(t,n){return e.apply(this,arguments)}}(),jd=function(){var e=Od((function*(e){if(e[Symbol.asyncIterator])return void(yield*Rd(Pd(e)));const t=e.getReader();try{for(;;){const{done:e,value:n}=yield Id(t.read());if(e)break;yield n}}finally{yield Id(t.cancel())}}));return function(t){return e.apply(this,arguments)}}(),Nd=(e,t,n,r)=>{const o=Ld(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:Fd}=Ou,zd=(e=>{let{Request:t,Response:n}=e;return{Request:t,Response:n}})(Ou.global),{ReadableStream:Bd,TextEncoder:Vd}=Ou.global,Ud=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return!!e(...n)}catch(o){return!1}},Wd=e=>{e=Ou.merge.call({skipUndefined:!0},zd,e);const{fetch:t,Request:n,Response:r}=e,o=t?Fd(t):"function"===typeof fetch,i=Fd(n),a=Fd(r);if(!o)return!1;const s=o&&Fd(Bd),l=o&&("function"===typeof Vd?(c=new Vd,e=>c.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var c;const u=i&&s&&Ud((()=>{let e=!1;const t=new n(Ju.origin,{body:new Bd,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),d=a&&s&&Ud((()=>Ou.isReadableStream(new r("").body))),f={stream:d&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!f[e]&&(f[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new Pu("Response type '".concat(e,"' is not supported"),Pu.ERR_NOT_SUPPORT,n)})}));const p=async(e,t)=>{const r=Ou.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(Ou.isBlob(e))return e.size;if(Ou.isSpecCompliantForm(e)){const t=new n(Ju.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Ou.isArrayBufferView(e)||Ou.isArrayBuffer(e)?e.byteLength:(Ou.isURLSearchParams(e)&&(e+=""),Ou.isString(e)?(await l(e)).byteLength:void 0)})(t):r};return async e=>{let{url:o,method:a,data:s,signal:l,cancelToken:c,timeout:h,onDownloadProgress:m,onUploadProgress:v,responseType:y,headers:b,withCredentials:w="same-origin",fetchOptions:x}=_d(e),A=t||fetch;y=y?(y+"").toLowerCase():"text";let S=Cd([l,c&&c.toAbortSignal()],h),_=null;const k=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let C;try{if(v&&u&&"get"!==a&&"head"!==a&&0!==(C=await p(b,s))){let e,t=new n(o,{method:"POST",body:s,duplex:"half"});if(Ou.isFormData(s)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,n]=vd(C,gd(yd(v)));s=Nd(t.body,65536,e,n)}}Ou.isString(w)||(w=w?"include":"omit");const t=i&&"credentials"in n.prototype,l=(0,g.A)((0,g.A)({},x),{},{signal:S,method:a.toUpperCase(),headers:b.normalize().toJSON(),body:s,duplex:"half",credentials:t?w:void 0});_=i&&new n(o,l);let c=await(i?A(_,x):A(o,l));const h=d&&("stream"===y||"response"===y);if(d&&(m||h&&k)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=c[t]}));const t=Ou.toFiniteNumber(c.headers.get("content-length")),[n,o]=m&&vd(t,gd(yd(m),!0))||[];c=new r(Nd(c.body,65536,n,(()=>{o&&o(),k&&k()})),e)}y=y||"text";let E=await f[Ou.findKey(f,y)||"text"](c,e);return!h&&k&&k(),await new Promise(((t,n)=>{pd(t,n,{data:E,headers:ld.from(c.headers),status:c.status,statusText:c.statusText,config:e,request:_})}))}catch(E){if(k&&k(),E&&"TypeError"===E.name&&/Load failed|fetch/i.test(E.message))throw Object.assign(new Pu("Network Error",Pu.ERR_NETWORK,e,_),{cause:E.cause||E});throw Pu.from(E,E&&E.code,e,_)}}},qd=new Map,Hd=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let a,s,l=i.length,c=qd;for(;l--;)a=i[l],s=c.get(a),void 0===s&&c.set(a,s=l?new Map:Wd(t)),c=s;return s},Yd=(Hd(),{http:null,xhr:kd,fetch:{get:Hd}});Ou.forEach(Yd,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));const Gd=e=>"- ".concat(e),Kd=e=>Ou.isFunction(e)||null===e||!1===e,$d=(e,t)=>{e=Ou.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let a=0;a<n;a++){let n;if(r=e[a],o=r,!Kd(r)&&(o=Yd[(n=String(r)).toLowerCase()],void 0===o))throw new Pu("Unknown adapter '".concat(n,"'"));if(o&&(Ou.isFunction(o)||(o=o.get(t))))break;i[n||"#"+a]=o}if(!o){const e=Object.entries(i).map((e=>{let[t,n]=e;return"adapter ".concat(t," ")+(!1===n?"is not supported by the environment":"is not available in the build")}));let t=n?e.length>1?"since :\n"+e.map(Gd).join("\n"):" "+Gd(e[0]):"as no adapter specified";throw new Pu("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o};function Qd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new fd(null,e)}function Xd(e){Qd(e),e.headers=ld.from(e.headers),e.data=cd.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return $d(e.adapter||td.adapter,e)(e).then((function(t){return Qd(e),t.data=cd.call(e,e.transformResponse,t),t.headers=ld.from(t.headers),t}),(function(t){return ud(t)||(Qd(e),t&&t.response&&(t.response.data=cd.call(e,e.transformResponse,t.response),t.response.headers=ld.from(t.response.headers))),Promise.reject(t)}))}const Jd="1.12.2",Zd={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Zd[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const ef={};Zd.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Jd+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Pu(r(o," has been removed"+(t?" in "+t:"")),Pu.ERR_DEPRECATED);return t&&!ef[o]&&(ef[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},Zd.spelling=function(e){return(t,n)=>(console.warn("".concat(n," is likely a misspelling of ").concat(e)),!0)};const tf={assertOptions:function(e,t,n){if("object"!==typeof e)throw new Pu("options must be an object",Pu.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Pu("option "+i+" must be "+n,Pu.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Pu("Unknown option "+i,Pu.ERR_BAD_OPTION)}},validators:Zd},nf=tf.validators;class rf{constructor(e){this.defaults=e||{},this.interceptors={request:new qu,response:new qu}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(r){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},t=Sd(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&tf.assertOptions(n,{silentJSONParsing:nf.transitional(nf.boolean),forcedJSONParsing:nf.transitional(nf.boolean),clarifyTimeoutError:nf.transitional(nf.boolean)},!1),null!=r&&(Ou.isFunction(r)?t.paramsSerializer={serialize:r}:tf.assertOptions(r,{encode:nf.function,serialize:nf.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),tf.assertOptions(t,{baseUrl:nf.spelling("baseURL"),withXsrfToken:nf.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Ou.merge(o.common,o[t.method]);o&&Ou.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=ld.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[Xd.bind(this),void 0];for(e.unshift(...a),e.push(...l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let f=t;for(;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{c=Xd.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return Wu(xd((e=Sd(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}Ou.forEach(["delete","get","head","options"],(function(e){rf.prototype[e]=function(t,n){return this.request(Sd(n||{},{method:e,url:t,data:(n||{}).data}))}})),Ou.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Sd(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}rf.prototype[e]=t(),rf.prototype[e+"Form"]=t(!0)}));const of=rf;class af{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new fd(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new af((function(t){e=t})),cancel:e}}}const sf=af;const lf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(lf).forEach((e=>{let[t,n]=e;lf[n]=t}));const cf=lf;const uf=function e(t){const n=new of(t),r=Uc(of.prototype.request,n);return Ou.extend(r,of.prototype,n,{allOwnKeys:!0}),Ou.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Sd(t,n))},r}(td);uf.Axios=of,uf.CanceledError=fd,uf.CancelToken=sf,uf.isCancel=ud,uf.VERSION=Jd,uf.toFormData=Nu,uf.AxiosError=Pu,uf.Cancel=uf.CanceledError,uf.all=function(e){return Promise.all(e)},uf.spread=function(e){return function(t){return e.apply(null,t)}},uf.isAxiosError=function(e){return Ou.isObject(e)&&!0===e.isAxiosError},uf.mergeConfig=Sd,uf.AxiosHeaders=ld,uf.formToJSON=e=>Zu(Ou.isHTMLForm(e)?new FormData(e):e),uf.getAdapter=$d,uf.HttpStatusCode=cf,uf.default=uf;const df=uf;function ff(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ff(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const pf=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ff(e))&&(r&&(r+=" "),r+=t);return r};function hf(){return hf=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hf.apply(this,arguments)}function mf(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function gf(e){return"number"===typeof e&&!isNaN(e)}function vf(e){return"boolean"===typeof e}function yf(e){return"string"===typeof e}function bf(e){return"function"===typeof e}function wf(e){return yf(e)||bf(e)?e:null}function xf(e){return 0===e||e}var Af=!("undefined"===typeof window||!window.document||!window.document.createElement);function Sf(e){return(0,i.isValidElement)(e)||yf(e)||bf(e)||gf(e)}var _f={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},kf={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"};function Cf(e){var t=e.enter,n=e.exit,r=e.appendPosition,o=void 0!==r&&r,a=e.collapse,s=void 0===a||a,l=e.collapseDuration,c=void 0===l?300:l;return function(e){var r=e.children,a=e.position,l=e.preventExitTransition,u=e.done,d=e.nodeRef,f=e.isIn,p=o?t+"--"+a:t,h=o?n+"--"+a:n,m=(0,i.useRef)(),g=(0,i.useRef)(0);function v(e){if(e.target===d.current){var t=d.current;t.dispatchEvent(new Event("d")),t.removeEventListener("animationend",v),t.removeEventListener("animationcancel",v),0===g.current&&(t.className=m.current)}}function y(){var e=d.current;e.removeEventListener("animationend",y),s?function(e,t,n){void 0===n&&(n=300);var r=e.scrollHeight,o=e.style;requestAnimationFrame((function(){o.minHeight="initial",o.height=r+"px",o.transition="all "+n+"ms",requestAnimationFrame((function(){o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)}))}))}(e,u,c):u()}return(0,i.useLayoutEffect)((function(){!function(){var e=d.current;m.current=e.className,e.className+=" "+p,e.addEventListener("animationend",v),e.addEventListener("animationcancel",v)}()}),[]),(0,i.useEffect)((function(){f||(l?y():function(){g.current=1;var e=d.current;e.className+=" "+h,e.addEventListener("animationend",y)}())}),[f]),i.createElement(i.Fragment,null,r)}}var Ef={list:new Map,emitQueue:new Map,on:function(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off:function(e,t){if(t){var n=this.list.get(e).filter((function(e){return e!==t}));return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit:function(e){var t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.list.has(e)&&this.list.get(e).forEach((function(n){var o=setTimeout((function(){n.apply(void 0,r)}),0);t.emitQueue.has(e)||t.emitQueue.set(e,[]),t.emitQueue.get(e).push(o)}))}},Of=["delay","staleId"];function Tf(e){var t=(0,i.useReducer)((function(e){return e+1}),0)[1],n=(0,i.useState)([]),r=n[0],o=n[1],a=(0,i.useRef)(null),s=(0,i.useRef)(new Map).current,l=function(e){return-1!==r.indexOf(e)},c=(0,i.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:l,getToast:function(e){return s.get(e)}}).current;function u(e){var t=e.containerId;!c.props.limit||t&&c.containerId!==t||(c.count-=c.queue.length,c.queue=[])}function d(e){o((function(t){return xf(e)?t.filter((function(t){return t!==e})):[]}))}function f(){var e=c.queue.shift();h(e.toastContent,e.toastProps,e.staleId)}function p(e,n){var r=n.delay,o=n.staleId,l=mf(n,Of);if(Sf(e)&&!function(e){return!a.current||c.props.enableMultiContainer&&e.containerId!==c.props.containerId||s.has(e.toastId)&&null==e.updateId}(l)){var u=l.toastId,p=l.updateId,m=l.data,g=c.props,v=function(){return d(u)},y=null==p;y&&c.count++;var b,w,x={toastId:u,updateId:p,isLoading:l.isLoading,theme:l.theme||g.theme,icon:null!=l.icon?l.icon:g.icon,isIn:!1,key:l.key||c.toastKey++,type:l.type,closeToast:v,closeButton:l.closeButton,rtl:g.rtl,position:l.position||g.position,transition:l.transition||g.transition,className:wf(l.className||g.toastClassName),bodyClassName:wf(l.bodyClassName||g.bodyClassName),style:l.style||g.toastStyle,bodyStyle:l.bodyStyle||g.bodyStyle,onClick:l.onClick||g.onClick,pauseOnHover:vf(l.pauseOnHover)?l.pauseOnHover:g.pauseOnHover,pauseOnFocusLoss:vf(l.pauseOnFocusLoss)?l.pauseOnFocusLoss:g.pauseOnFocusLoss,draggable:vf(l.draggable)?l.draggable:g.draggable,draggablePercent:l.draggablePercent||g.draggablePercent,draggableDirection:l.draggableDirection||g.draggableDirection,closeOnClick:vf(l.closeOnClick)?l.closeOnClick:g.closeOnClick,progressClassName:wf(l.progressClassName||g.progressClassName),progressStyle:l.progressStyle||g.progressStyle,autoClose:!l.isLoading&&(b=l.autoClose,w=g.autoClose,!1===b||gf(b)&&b>0?b:w),hideProgressBar:vf(l.hideProgressBar)?l.hideProgressBar:g.hideProgressBar,progress:l.progress,role:l.role||g.role,deleteToast:function(){s.delete(u);var e=c.queue.length;if(c.count=xf(u)?c.count-1:c.count-c.displayedToast,c.count<0&&(c.count=0),e>0){var n=xf(u)?1:c.props.limit;if(1===e||1===n)c.displayedToast++,f();else{var r=n>e?e:n;c.displayedToast=r;for(var o=0;o<r;o++)f()}}else t()}};bf(l.onOpen)&&(x.onOpen=l.onOpen),bf(l.onClose)&&(x.onClose=l.onClose),x.closeButton=g.closeButton,!1===l.closeButton||Sf(l.closeButton)?x.closeButton=l.closeButton:!0===l.closeButton&&(x.closeButton=!Sf(g.closeButton)||g.closeButton);var A=e;(0,i.isValidElement)(e)&&!yf(e.type)?A=(0,i.cloneElement)(e,{closeToast:v,toastProps:x,data:m}):bf(e)&&(A=e({closeToast:v,toastProps:x,data:m})),g.limit&&g.limit>0&&c.count>g.limit&&y?c.queue.push({toastContent:A,toastProps:x,staleId:o}):gf(r)&&r>0?setTimeout((function(){h(A,x,o)}),r):h(A,x,o)}}function h(e,t,n){var r=t.toastId;n&&s.delete(n),s.set(r,{content:e,props:t}),o((function(e){return[].concat(e,[r]).filter((function(e){return e!==n}))}))}return(0,i.useEffect)((function(){return c.containerId=e.containerId,Ef.cancelEmit(3).on(0,p).on(1,(function(e){return a.current&&d(e)})).on(5,u).emit(2,c),function(){return Ef.emit(3,c)}}),[]),(0,i.useEffect)((function(){c.isToastActive=l,c.displayedToast=r.length,Ef.emit(4,r.length,e.containerId)}),[r]),(0,i.useEffect)((function(){c.props=e})),{getToastToRender:function(t){var n=new Map,r=Array.from(s.values());return e.newestOnTop&&r.reverse(),r.forEach((function(e){var t=e.props.position;n.has(t)||n.set(t,[]),n.get(t).push(e)})),Array.from(n,(function(e){return t(e[0],e[1])}))},containerRef:a,isToastActive:l}}function If(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function Rf(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function Pf(e){var t=(0,i.useState)(!1),n=t[0],r=t[1],o=(0,i.useState)(!1),a=o[0],s=o[1],l=(0,i.useRef)(null),c=(0,i.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,u=(0,i.useRef)(e),d=e.autoClose,f=e.pauseOnHover,p=e.closeToast,h=e.onClick,m=e.closeOnClick;function g(t){if(e.draggable){c.didMove=!1,document.addEventListener("mousemove",w),document.addEventListener("mouseup",x),document.addEventListener("touchmove",w),document.addEventListener("touchend",x);var n=l.current;c.canCloseOnClick=!0,c.canDrag=!0,c.boundingRect=n.getBoundingClientRect(),n.style.transition="",c.x=If(t.nativeEvent),c.y=Rf(t.nativeEvent),"x"===e.draggableDirection?(c.start=c.x,c.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(c.start=c.y,c.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function v(){if(c.boundingRect){var t=c.boundingRect,n=t.top,r=t.bottom,o=t.left,i=t.right;e.pauseOnHover&&c.x>=o&&c.x<=i&&c.y>=n&&c.y<=r?b():y()}}function y(){r(!0)}function b(){r(!1)}function w(t){var r=l.current;c.canDrag&&r&&(c.didMove=!0,n&&b(),c.x=If(t),c.y=Rf(t),"x"===e.draggableDirection?c.delta=c.x-c.start:c.delta=c.y-c.start,c.start!==c.x&&(c.canCloseOnClick=!1),r.style.transform="translate"+e.draggableDirection+"("+c.delta+"px)",r.style.opacity=""+(1-Math.abs(c.delta/c.removalDistance)))}function x(){document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",x),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",x);var t=l.current;if(c.canDrag&&c.didMove&&t){if(c.canDrag=!1,Math.abs(c.delta)>c.removalDistance)return s(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform="translate"+e.draggableDirection+"(0)",t.style.opacity="1"}}(0,i.useEffect)((function(){u.current=e})),(0,i.useEffect)((function(){return l.current&&l.current.addEventListener("d",y,{once:!0}),bf(e.onOpen)&&e.onOpen((0,i.isValidElement)(e.children)&&e.children.props),function(){var e=u.current;bf(e.onClose)&&e.onClose((0,i.isValidElement)(e.children)&&e.children.props)}}),[]),(0,i.useEffect)((function(){return e.pauseOnFocusLoss&&function(){document.hasFocus()||b();window.addEventListener("focus",y),window.addEventListener("blur",b)}(),function(){e.pauseOnFocusLoss&&(window.removeEventListener("focus",y),window.removeEventListener("blur",b))}}),[e.pauseOnFocusLoss]);var A={onMouseDown:g,onTouchStart:g,onMouseUp:v,onTouchEnd:v};return d&&f&&(A.onMouseEnter=b,A.onMouseLeave=y),m&&(A.onClick=function(e){h&&h(e),c.canCloseOnClick&&p()}),{playToast:y,pauseToast:b,isRunning:n,preventExitTransition:a,toastRef:l,eventHandlers:A}}function Mf(e){var t=e.closeToast,n=e.theme,r=e.ariaLabel,o=void 0===r?"close":r;return(0,i.createElement)("button",{className:"Toastify__close-button Toastify__close-button--"+n,type:"button",onClick:function(e){e.stopPropagation(),t(e)},"aria-label":o},(0,i.createElement)("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},(0,i.createElement)("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function Df(e){var t,n,r=e.delay,o=e.isRunning,a=e.closeToast,s=e.type,l=e.hide,c=e.className,u=e.style,d=e.controlledProgress,f=e.progress,p=e.rtl,h=e.isIn,m=e.theme,g=hf({},u,{animationDuration:r+"ms",animationPlayState:o?"running":"paused",opacity:l?0:1});d&&(g.transform="scaleX("+f+")");var v=pf("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar-theme--"+m,"Toastify__progress-bar--"+s,((t={})["Toastify__progress-bar--rtl"]=p,t)),y=bf(c)?c({rtl:p,type:s,defaultClassName:v}):pf(v,c),b=((n={})[d&&f>=1?"onTransitionEnd":"onAnimationEnd"]=d&&f<1?null:function(){h&&a()},n);return(0,i.createElement)("div",Object.assign({role:"progressbar","aria-hidden":l?"true":"false","aria-label":"notification timer",className:y,style:g},b))}Df.defaultProps={type:kf.DEFAULT,hide:!1};var Lf=["theme","type"],jf=function(e){var t=e.theme,n=e.type,r=mf(e,Lf);return(0,i.createElement)("svg",Object.assign({viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":"var(--toastify-icon-color-"+n+")"},r))};var Nf={info:function(e){return(0,i.createElement)(jf,Object.assign({},e),(0,i.createElement)("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return(0,i.createElement)(jf,Object.assign({},e),(0,i.createElement)("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return(0,i.createElement)(jf,Object.assign({},e),(0,i.createElement)("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return(0,i.createElement)(jf,Object.assign({},e),(0,i.createElement)("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return(0,i.createElement)("div",{className:"Toastify__spinner"})}},Ff=function(e){var t,n,r=Pf(e),o=r.isRunning,a=r.preventExitTransition,s=r.toastRef,l=r.eventHandlers,c=e.closeButton,u=e.children,d=e.autoClose,f=e.onClick,p=e.type,h=e.hideProgressBar,m=e.closeToast,g=e.transition,v=e.position,y=e.className,b=e.style,w=e.bodyClassName,x=e.bodyStyle,A=e.progressClassName,S=e.progressStyle,_=e.updateId,k=e.role,C=e.progress,E=e.rtl,O=e.toastId,T=e.deleteToast,I=e.isIn,R=e.isLoading,P=e.icon,M=e.theme,D=pf("Toastify__toast","Toastify__toast-theme--"+M,"Toastify__toast--"+p,((t={})["Toastify__toast--rtl"]=E,t)),L=bf(y)?y({rtl:E,position:v,type:p,defaultClassName:D}):pf(D,y),j=!!C,N=Nf[p],F={theme:M,type:p},z=N&&N(F);return!1===P?z=void 0:bf(P)?z=P(F):(0,i.isValidElement)(P)?z=(0,i.cloneElement)(P,F):yf(P)?z=P:R&&(z=Nf.spinner()),(0,i.createElement)(g,{isIn:I,done:T,position:v,preventExitTransition:a,nodeRef:s},(0,i.createElement)("div",Object.assign({id:O,onClick:f,className:L},l,{style:b,ref:s}),(0,i.createElement)("div",Object.assign({},I&&{role:k},{className:bf(w)?w({type:p}):pf("Toastify__toast-body",w),style:x}),z&&(0,i.createElement)("div",{className:pf("Toastify__toast-icon",(n={},n["Toastify--animate-icon Toastify__zoom-enter"]=!R,n))},z),(0,i.createElement)("div",null,u)),function(e){if(e){var t={closeToast:m,type:p,theme:M};return bf(e)?e(t):(0,i.isValidElement)(e)?(0,i.cloneElement)(e,t):void 0}}(c),(d||j)&&(0,i.createElement)(Df,Object.assign({},_&&!j?{key:"pb-"+_}:{},{rtl:E,theme:M,delay:d,isRunning:o,isIn:I,closeToast:m,hide:h,type:p,style:S,className:A,controlledProgress:j,progress:C}))))},zf=Cf({enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0}),Bf=Cf({enter:"Toastify--animate Toastify__slide-enter",exit:"Toastify--animate Toastify__slide-exit",appendPosition:!0}),Vf=function(e){var t=Tf(e),n=t.getToastToRender,r=t.containerRef,o=t.isToastActive,a=e.className,s=e.style,l=e.rtl,c=e.containerId;function u(e){var t,n=pf("Toastify__toast-container","Toastify__toast-container--"+e,((t={})["Toastify__toast-container--rtl"]=l,t));return bf(a)?a({position:e,rtl:l,defaultClassName:n}):pf(n,wf(a))}return(0,i.createElement)("div",{ref:r,className:"Toastify",id:c},n((function(e,t){var n=t.length?hf({},s):hf({},s,{pointerEvents:"none"});return(0,i.createElement)("div",{className:u(e),style:n,key:"container-"+e},t.map((function(e){var t=e.content,n=e.props;return(0,i.createElement)(Ff,Object.assign({},n,{isIn:o(n.toastId),key:"toast-"+n.key,closeButton:!0===n.closeButton?Mf:n.closeButton}),t)})))})))};Vf.defaultProps={position:_f.TOP_RIGHT,transition:zf,rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:Mf,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};var Uf,Wf,qf,Hf=new Map,Yf=[],Gf=!1;function Kf(){return Math.random().toString(36).substring(2,9)}function $f(e){return e&&(yf(e.toastId)||gf(e.toastId))?e.toastId:Kf()}function Qf(e,t){return Hf.size>0?Ef.emit(0,e,t):(Yf.push({content:e,options:t}),Gf&&Af&&(Gf=!1,Wf=document.createElement("div"),document.body.appendChild(Wf),(0,r.render)((0,i.createElement)(Vf,Object.assign({},qf)),Wf))),t.toastId}function Xf(e,t){return hf({},t,{type:t&&t.type||e,toastId:$f(t)})}function Jf(e){return function(t,n){return Qf(t,Xf(e,n))}}function Zf(e,t){return Qf(e,Xf(kf.DEFAULT,t))}Zf.loading=function(e,t){return Qf(e,Xf(kf.DEFAULT,hf({isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1},t)))},Zf.promise=function(e,t,n){var r,o=t.pending,i=t.error,a=t.success;o&&(r=yf(o)?Zf.loading(o,n):Zf.loading(o.render,hf({},n,o)));var s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=function(e,t,o){if(null!=t){var i=hf({type:e},s,n,{data:o}),a=yf(t)?{render:t}:t;return r?Zf.update(r,hf({},i,a)):Zf(a.render,hf({},i,a)),o}Zf.dismiss(r)},c=bf(e)?e():e;return c.then((function(e){return l("success",a,e)})).catch((function(e){return l("error",i,e)})),c},Zf.success=Jf(kf.SUCCESS),Zf.info=Jf(kf.INFO),Zf.error=Jf(kf.ERROR),Zf.warning=Jf(kf.WARNING),Zf.warn=Zf.warning,Zf.dark=function(e,t){return Qf(e,Xf(kf.DEFAULT,hf({theme:"dark"},t)))},Zf.dismiss=function(e){return Ef.emit(1,e)},Zf.clearWaitingQueue=function(e){return void 0===e&&(e={}),Ef.emit(5,e)},Zf.isActive=function(e){var t=!1;return Hf.forEach((function(n){n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},Zf.update=function(e,t){void 0===t&&(t={}),setTimeout((function(){var n=function(e,t){var n=t.containerId,r=Hf.get(n||Uf);return r?r.getToast(e):null}(e,t);if(n){var r=n.props,o=n.content,i=hf({},r,t,{toastId:t.toastId||e,updateId:Kf()});i.toastId!==e&&(i.staleId=e);var a=i.render||o;delete i.render,Qf(a,i)}}),0)},Zf.done=function(e){Zf.update(e,{progress:1})},Zf.onChange=function(e){return bf(e)&&Ef.on(4,e),function(){bf(e)&&Ef.off(4,e)}},Zf.configure=function(e){void 0===e&&(e={}),Gf=!0,qf=e},Zf.POSITION=_f,Zf.TYPE=kf,Ef.on(2,(function(e){Uf=e.containerId||e,Hf.set(Uf,e),Yf.forEach((function(e){Ef.emit(0,e.content,e.options)})),Yf=[]})).on(3,(function(e){Hf.delete(e.containerId||e),0===Hf.size&&Ef.off(0).off(1).off(5),Af&&Wf&&document.body.removeChild(Wf)}));var ep=__webpack_require__(3035);const tp={getState:void 0,getDispatch:void 0,baseURL:ep.A.api.baseUrl+"/api"+"/",authHeader:ep.A.api.authHeader},np={autoClose:3e3,style:{maxWidth:"var(--toastify-toast-width)"}},rp=[],op=()=>async(e,t)=>{var n,r;let{url:o,method:i="GET",body:a,params:s,headers:l,disableErrorToast:c,errorToastMessage:u,makeErrorFromResponse:d,successToastMessage:f,errorToastOptions:p,toastOptions:h}=e;l=ip(l);const m=null===tp||void 0===tp||null===(n=tp.getState())||void 0===n||null===(r=n.volatile)||void 0===r?void 0:r.serverPort;if(!m)throw new Error("No server port provided, value:"+m);try{const{signal:e}=t,n=await df({url:"http://localhost:".concat(m,"/api")+o,method:i,data:a,params:s,headers:l,signal:e});return f&&Zf.success(f,(0,g.A)((0,g.A)((0,g.A)({},np),h),{},{toastId:o+i+"success"})),{data:n.data}}catch(S){var v,y,b,w;if(df.isCancel(S))return{error:S,aborted:!0};let e=S;const t=null===(v=e.config)||void 0===v?void 0:v.method;if(401===(null===(y=e.response)||void 0===y?void 0:y.status)){tp.getDispatch()&&Zf.error("Your session has been expired, login again")}if(!c&&(u||t&&"get"!==t)){var x,A;const e=null!==(x=null!==(A=null===d||void 0===d?void 0:d(S.response))&&void 0!==A?A:u)&&void 0!==x?x:"An error occurred, please try again later";Zf.error(e,(0,g.A)((0,g.A)((0,g.A)({},np),p),{},{toastId:o+t+"error"}))}return{error:{status:null===(b=e.response)||void 0===b?void 0:b.status,data:null===(w=e.response)||void 0===w?void 0:w.data}}}},ip=function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}},ap=(()=>{const e=Vc({reducerPath:"api",baseQuery:op(),endpoints:e=>({}),refetchOnMountOrArgChange:!0}),t=e.enhanceEndpoints;return e.enhanceEndpoints=e=>(e.addTagTypes&&rp.push(...e.addTagTypes),t(e)),e})(),sp=ap,lp=sp.injectEndpoints({endpoints:e=>({sendMessage:e.mutation({query:e=>({url:"/ai-chat/message",method:"POST",body:e,errorToastMessage:"Failed to send message"})})})}),{useSendMessageMutation:cp,endpoints:up}=lp;function dp(e){var t;return parseInt(i.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const fp=!1;var pp="unmounted",hp="exited",mp="entering",gp="entered",vp="exiting",yp=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=hp,r.appearStatus=mp):o=gp:o=t.unmountOnExit||t.mountOnEnter?pp:hp,r.state={status:o},r.nextCallback=null,r}ee(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===pp?{status:hp}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==mp&&n!==gp&&(t=mp):n!==mp&&n!==gp||(t=vp)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===mp){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:r.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===hp&&this.setState({status:pp})},n.performEnter=function(e){var t=this,n=this.props.enter,o=this.context?this.context.isMounting:e,i=this.props.nodeRef?[o]:[r.findDOMNode(this),o],a=i[0],s=i[1],l=this.getTimeouts(),c=o?l.appear:l.enter;!e&&!n||fp?this.safeSetState({status:gp},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,s),this.safeSetState({status:mp},(function(){t.props.onEntering(a,s),t.onTransitionEnd(c,(function(){t.safeSetState({status:gp},(function(){t.props.onEntered(a,s)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),o=this.props.nodeRef?void 0:r.findDOMNode(this);t&&!fp?(this.props.onExit(o),this.safeSetState({status:vp},(function(){e.props.onExiting(o),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:hp},(function(){e.props.onExited(o)}))}))}))):this.safeSetState({status:hp},(function(){e.props.onExited(o)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:r.findDOMNode(this),o=null==e&&!this.props.addEndListener;if(n&&!o){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],s=i[1];this.props.addEndListener(a,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===pp)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,x.A)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return i.createElement(te.Provider,{value:null},"function"===typeof n?n(e,r):i.cloneElement(i.Children.only(n),r))},t}(i.Component);function bp(){}yp.contextType=te,yp.propTypes={},yp.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:bp,onEntering:bp,onEntered:bp,onExit:bp,onExiting:bp,onExited:bp},yp.UNMOUNTED=pp,yp.EXITED=hp,yp.ENTERING=mp,yp.ENTERED=gp,yp.EXITING=vp;const wp=yp,xp=e=>e.scrollTop;function Ap(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"===typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"===typeof i?i[t.mode]:i,delay:a.transitionDelay}}const Sp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function _p(e){return"scale(".concat(e,", ").concat(e**2,")")}const kp={entering:{opacity:1,transform:_p(1)},entered:{opacity:1,transform:"none"}},Cp="undefined"!==typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Ep=i.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:a,in:s,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:f,onExiting:p,style:h,timeout:m="auto",TransitionComponent:g=wp}=e,v=(0,x.A)(e,Sp),y=(0,ce.A)(),b=i.useRef(),A=Ni(),S=i.useRef(null),_=(0,K.A)(S,dp(o),t),k=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},C=k(u),E=k(((e,t)=>{xp(e);const{duration:n,delay:r,easing:o}=Ap({style:h,timeout:m,easing:a},{mode:"enter"});let i;"auto"===m?(i=A.transitions.getAutoHeightDuration(e.clientHeight),b.current=i):i=n,e.style.transition=[A.transitions.create("opacity",{duration:i,delay:r}),A.transitions.create("transform",{duration:Cp?i:.666*i,delay:r,easing:o})].join(","),l&&l(e,t)})),O=k(c),T=k(p),I=k((e=>{const{duration:t,delay:n,easing:r}=Ap({style:h,timeout:m,easing:a},{mode:"exit"});let o;"auto"===m?(o=A.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[A.transitions.create("opacity",{duration:o,delay:n}),A.transitions.create("transform",{duration:Cp?o:.666*o,delay:Cp?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=_p(.75),d&&d(e)})),P=k(f);return(0,R.jsx)(g,(0,w.A)({appear:r,in:s,nodeRef:S,onEnter:E,onEntered:O,onEntering:C,onExit:I,onExited:P,onExiting:T,addEndListener:e=>{"auto"===m&&y.start(b.current||0,e),n&&n(S.current,e)},timeout:"auto"===m?null:m},v,{children:(e,t)=>i.cloneElement(o,(0,w.A)({style:(0,w.A)({opacity:0,transform:_p(.75),visibility:"exited"!==e||s?void 0:"hidden"},kp[e],h,o.props.style),ref:_},t))}))}));Ep.muiSupportAuto=!0;const Op=Ep;var Tp=__webpack_require__(3159),Ip=__webpack_require__(4269),Rp=__webpack_require__(5721);function Pp(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Mp(e){return e instanceof Pp(e).Element||e instanceof Element}function Dp(e){return e instanceof Pp(e).HTMLElement||e instanceof HTMLElement}function Lp(e){return"undefined"!==typeof ShadowRoot&&(e instanceof Pp(e).ShadowRoot||e instanceof ShadowRoot)}var jp=Math.max,Np=Math.min,Fp=Math.round;function zp(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Bp(){return!/^((?!chrome|android).)*safari/i.test(zp())}function Vp(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Dp(e)&&(o=e.offsetWidth>0&&Fp(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Fp(r.height)/e.offsetHeight||1);var a=(Mp(e)?Pp(e):window).visualViewport,s=!Bp()&&n,l=(r.left+(s&&a?a.offsetLeft:0))/o,c=(r.top+(s&&a?a.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function Up(e){var t=Pp(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Wp(e){return e?(e.nodeName||"").toLowerCase():null}function qp(e){return((Mp(e)?e.ownerDocument:e.document)||window.document).documentElement}function Hp(e){return Vp(qp(e)).left+Up(e).scrollLeft}function Yp(e){return Pp(e).getComputedStyle(e)}function Gp(e){var t=Yp(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Kp(e,t,n){void 0===n&&(n=!1);var r=Dp(t),o=Dp(t)&&function(e){var t=e.getBoundingClientRect(),n=Fp(t.width)/e.offsetWidth||1,r=Fp(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=qp(t),a=Vp(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Wp(t)||Gp(i))&&(s=function(e){return e!==Pp(e)&&Dp(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Up(e);var t}(t)),Dp(t)?((l=Vp(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Hp(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function $p(e){var t=Vp(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Qp(e){return"html"===Wp(e)?e:e.assignedSlot||e.parentNode||(Lp(e)?e.host:null)||qp(e)}function Xp(e){return["html","body","#document"].indexOf(Wp(e))>=0?e.ownerDocument.body:Dp(e)&&Gp(e)?e:Xp(Qp(e))}function Jp(e,t){var n;void 0===t&&(t=[]);var r=Xp(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=Pp(r),a=o?[i].concat(i.visualViewport||[],Gp(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Jp(Qp(a)))}function Zp(e){return["table","td","th"].indexOf(Wp(e))>=0}function eh(e){return Dp(e)&&"fixed"!==Yp(e).position?e.offsetParent:null}function th(e){for(var t=Pp(e),n=eh(e);n&&Zp(n)&&"static"===Yp(n).position;)n=eh(n);return n&&("html"===Wp(n)||"body"===Wp(n)&&"static"===Yp(n).position)?t:n||function(e){var t=/firefox/i.test(zp());if(/Trident/i.test(zp())&&Dp(e)&&"fixed"===Yp(e).position)return null;var n=Qp(e);for(Lp(n)&&(n=n.host);Dp(n)&&["html","body"].indexOf(Wp(n))<0;){var r=Yp(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var nh="top",rh="bottom",oh="right",ih="left",ah="auto",sh=[nh,rh,oh,ih],lh="start",ch="end",uh="viewport",dh="popper",fh=sh.reduce((function(e,t){return e.concat([t+"-"+lh,t+"-"+ch])}),[]),ph=[].concat(sh,[ah]).reduce((function(e,t){return e.concat([t,t+"-"+lh,t+"-"+ch])}),[]),hh=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function mh(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function gh(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var vh={placement:"bottom",modifiers:[],strategy:"absolute"};function yh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function bh(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?vh:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},vh,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,l={state:o,setOptions:function(n){var s="function"===typeof n?n(o.options):n;c(),o.options=Object.assign({},i,o.options,s),o.scrollParents={reference:Mp(e)?Jp(e):e.contextElement?Jp(e.contextElement):[],popper:Jp(t)};var u=function(e){var t=mh(e);return hh.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,o.options.modifiers)));return o.orderedModifiers=u.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"===typeof i){var s=i({state:o,name:t,instance:l,options:r}),c=function(){};a.push(s||c)}})),l.update()},forceUpdate:function(){if(!s){var e=o.elements,t=e.reference,n=e.popper;if(yh(t,n)){o.rects={reference:Kp(t,th(n),"fixed"===o.options.strategy),popper:$p(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,c=i.options,u=void 0===c?{}:c,d=i.name;"function"===typeof a&&(o=a({state:o,options:u,name:d,instance:l})||o)}else o.reset=!1,r=-1}}},update:gh((function(){return new Promise((function(e){l.forceUpdate(),e(o)}))})),destroy:function(){c(),s=!0}};if(!yh(e,t))return l;function c(){a.forEach((function(e){return e()})),a=[]}return l.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var wh={passive:!0};function xh(e){return e.split("-")[0]}function Ah(e){return e.split("-")[1]}function Sh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function _h(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?xh(o):null,a=o?Ah(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case nh:t={x:s,y:n.y-r.height};break;case rh:t={x:s,y:n.y+n.height};break;case oh:t={x:n.x+n.width,y:l};break;case ih:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?Sh(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case lh:t[c]=t[c]-(n[u]/2-r[u]/2);break;case ch:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}var kh={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ch(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,h=a.y,m=void 0===h?0:h,g="function"===typeof u?u({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var v=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=ih,w=nh,x=window;if(c){var A=th(n),S="clientHeight",_="clientWidth";if(A===Pp(n)&&"static"!==Yp(A=qp(n)).position&&"absolute"===s&&(S="scrollHeight",_="scrollWidth"),o===nh||(o===ih||o===oh)&&i===ch)w=rh,m-=(d&&A===x&&x.visualViewport?x.visualViewport.height:A[S])-r.height,m*=l?1:-1;if(o===ih||(o===nh||o===rh)&&i===ch)b=oh,p-=(d&&A===x&&x.visualViewport?x.visualViewport.width:A[_])-r.width,p*=l?1:-1}var k,C=Object.assign({position:s},c&&kh),E=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Fp(n*o)/o||0,y:Fp(r*o)/o||0}}({x:p,y:m},Pp(n)):{x:p,y:m};return p=E.x,m=E.y,l?Object.assign({},C,((k={})[w]=y?"0":"",k[b]=v?"0":"",k.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",k)):Object.assign({},C,((t={})[w]=y?m+"px":"",t[b]=v?p+"px":"",t.transform="",t))}var Eh={left:"right",right:"left",bottom:"top",top:"bottom"};function Oh(e){return e.replace(/left|right|bottom|top/g,(function(e){return Eh[e]}))}var Th={start:"end",end:"start"};function Ih(e){return e.replace(/start|end/g,(function(e){return Th[e]}))}function Rh(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Lp(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ph(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Mh(e,t,n){return t===uh?Ph(function(e,t){var n=Pp(e),r=qp(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=Bp();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+Hp(e),y:l}}(e,n)):Mp(t)?function(e,t){var n=Vp(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Ph(function(e){var t,n=qp(e),r=Up(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=jp(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=jp(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Hp(e),l=-r.scrollTop;return"rtl"===Yp(o||n).direction&&(s+=jp(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(qp(e)))}function Dh(e,t,n,r){var o="clippingParents"===t?function(e){var t=Jp(Qp(e)),n=["absolute","fixed"].indexOf(Yp(e).position)>=0&&Dp(e)?th(e):e;return Mp(n)?t.filter((function(e){return Mp(e)&&Rh(e,n)&&"body"!==Wp(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=Mh(e,n,r);return t.top=jp(o.top,t.top),t.right=Np(o.right,t.right),t.bottom=Np(o.bottom,t.bottom),t.left=jp(o.left,t.left),t}),Mh(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Lh(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function jh(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Nh(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,u=void 0===c?uh:c,d=n.elementContext,f=void 0===d?dh:d,p=n.altBoundary,h=void 0!==p&&p,m=n.padding,g=void 0===m?0:m,v=Lh("number"!==typeof g?g:jh(g,sh)),y=f===dh?"reference":dh,b=e.rects.popper,w=e.elements[h?y:f],x=Dh(Mp(w)?w:w.contextElement||qp(e.elements.popper),l,u,a),A=Vp(e.elements.reference),S=_h({reference:A,element:b,strategy:"absolute",placement:o}),_=Ph(Object.assign({},b,S)),k=f===dh?_:A,C={top:x.top-k.top+v.top,bottom:k.bottom-x.bottom+v.bottom,left:x.left-k.left+v.left,right:k.right-x.right+v.right},E=e.modifiersData.offset;if(f===dh&&E){var O=E[o];Object.keys(C).forEach((function(e){var t=[oh,rh].indexOf(e)>=0?1:-1,n=[nh,rh].indexOf(e)>=0?"y":"x";C[e]+=O[n]*t}))}return C}const Fh={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=xh(g),y=l||(v===g||!h?[Oh(g)]:function(e){if(xh(e)===ah)return[];var t=Oh(e);return[Ih(e),t,Ih(t)]}(g)),b=[g].concat(y).reduce((function(e,n){return e.concat(xh(n)===ah?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?ph:l,u=Ah(r),d=u?s?fh:fh.filter((function(e){return Ah(e)===u})):sh,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=Nh(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[xh(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=t.rects.reference,x=t.rects.popper,A=new Map,S=!0,_=b[0],k=0;k<b.length;k++){var C=b[k],E=xh(C),O=Ah(C)===lh,T=[nh,rh].indexOf(E)>=0,I=T?"width":"height",R=Nh(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),P=T?O?oh:ih:O?rh:nh;w[I]>x[I]&&(P=Oh(P));var M=Oh(P),D=[];if(i&&D.push(R[E]<=0),s&&D.push(R[P]<=0,R[M]<=0),D.every((function(e){return e}))){_=C,S=!1;break}A.set(C,D)}if(S)for(var L=function(e){var t=b.find((function(t){var n=A.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return _=t,"break"},j=h?3:1;j>0;j--){if("break"===L(j))break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function zh(e,t,n){return jp(e,Np(t,n))}function Bh(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Vh(e){return[nh,oh,rh,ih].some((function(t){return e[t]>=0}))}var Uh=bh({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,l=Pp(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,wh)})),s&&l.addEventListener("resize",n.update,wh),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,wh)})),s&&l.removeEventListener("resize",n.update,wh)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=_h({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c={placement:xh(t.placement),variation:Ah(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Ch(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ch(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Dp(o)&&Wp(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Dp(r)&&Wp(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=ph.reduce((function(e,n){return e[n]=function(e,t,n){var r=xh(e),o=[ih,nh].indexOf(r)>=0?-1:1,i="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[ih,oh].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},Fh,{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,m=void 0===h?0:h,g=Nh(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=xh(t.placement),y=Ah(t.placement),b=!y,w=Sh(v),x="x"===w?"y":"x",A=t.modifiersData.popperOffsets,S=t.rects.reference,_=t.rects.popper,k="function"===typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,C="number"===typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(A){if(i){var T,I="y"===w?nh:ih,R="y"===w?rh:oh,P="y"===w?"height":"width",M=A[w],D=M+g[I],L=M-g[R],j=p?-_[P]/2:0,N=y===lh?S[P]:_[P],F=y===lh?-_[P]:-S[P],z=t.elements.arrow,B=p&&z?$p(z):{width:0,height:0},V=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=V[I],W=V[R],q=zh(0,S[P],B[P]),H=b?S[P]/2-j-q-U-C.mainAxis:N-q-U-C.mainAxis,Y=b?-S[P]/2+j+q+W+C.mainAxis:F+q+W+C.mainAxis,G=t.elements.arrow&&th(t.elements.arrow),K=G?"y"===w?G.clientTop||0:G.clientLeft||0:0,$=null!=(T=null==E?void 0:E[w])?T:0,Q=M+Y-$,X=zh(p?Np(D,M+H-$-K):D,M,p?jp(L,Q):L);A[w]=X,O[w]=X-M}if(s){var J,Z="x"===w?nh:ih,ee="x"===w?rh:oh,te=A[x],ne="y"===x?"height":"width",re=te+g[Z],oe=te-g[ee],ie=-1!==[nh,ih].indexOf(v),ae=null!=(J=null==E?void 0:E[x])?J:0,se=ie?re:te-S[ne]-_[ne]-ae+C.altAxis,le=ie?te+S[ne]+_[ne]-ae-C.altAxis:oe,ce=p&&ie?function(e,t,n){var r=zh(e,t,n);return r>n?n:r}(se,te,le):zh(p?se:re,te,p?le:oe);A[x]=ce,O[x]=ce-te}t.modifiersData[r]=O}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=xh(n.placement),l=Sh(s),c=[ih,oh].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return Lh("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:jh(e,sh))}(o.padding,n),d=$p(i),f="y"===l?nh:ih,p="y"===l?rh:oh,h=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],g=th(i),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,b=u[f],w=v-d[c]-u[p],x=v/2-d[c]/2+y,A=zh(b,x,w),S=l;n.modifiersData[r]=((t={})[S]=A,t.centerOffset=A-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&Rh(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Nh(t,{elementContext:"reference"}),s=Nh(t,{altBoundary:!0}),l=Bh(a,r),c=Bh(s,o,i),u=Vh(l),d=Vh(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),Wh=__webpack_require__(7177);const qh=i.forwardRef((function(e,t){const{children:n,container:o,disablePortal:a=!1}=e,[s,l]=i.useState(null),c=(0,pt.A)(i.isValidElement(n)?dp(n):null,t);if((0,Ip.A)((()=>{a||l(function(e){return"function"===typeof e?e():e}(o)||document.body)}),[o,a]),(0,Ip.A)((()=>{if(s&&!a)return(0,Wh.A)(t,s),()=>{(0,Wh.A)(t,null)}}),[t,s,a]),a){if(i.isValidElement(n)){const e={ref:c};return i.cloneElement(n,e)}return(0,R.jsx)(i.Fragment,{children:n})}return(0,R.jsx)(i.Fragment,{children:s?r.createPortal(n,s):s})}));function Hh(e){return(0,Ee.Ay)("MuiPopper",e)}(0,L.A)("MuiPopper",["root"]);const Yh=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Gh=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Kh(e){return"function"===typeof e?e():e}function $h(e){return void 0!==e.nodeType}const Qh={},Xh=i.forwardRef((function(e,t){var n;const{anchorEl:r,children:o,direction:a,disablePortal:s,modifiers:l,open:c,placement:u,popperOptions:d,popperRef:f,slotProps:p={},slots:h={},TransitionProps:m}=e,g=(0,x.A)(e,Yh),v=i.useRef(null),y=(0,pt.A)(v,t),b=i.useRef(null),A=(0,pt.A)(b,f),S=i.useRef(A);(0,Ip.A)((()=>{S.current=A}),[A]),i.useImperativeHandle(f,(()=>b.current),[]);const _=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(u,a),[k,C]=i.useState(_),[E,O]=i.useState(Kh(r));i.useEffect((()=>{b.current&&b.current.forceUpdate()})),i.useEffect((()=>{r&&O(Kh(r))}),[r]),(0,Ip.A)((()=>{if(!E||!c)return;let e=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:e=>{let{state:t}=e;C(t.placement)}}];null!=l&&(e=e.concat(l)),d&&null!=d.modifiers&&(e=e.concat(d.modifiers));const t=Uh(E,v.current,(0,w.A)({placement:_},d,{modifiers:e}));return S.current(t),()=>{t.destroy(),S.current(null)}}),[E,s,l,c,d,_]);const T={placement:k};null!==m&&(T.TransitionProps=m);const I=(e=>{const{classes:t}=e;return(0,z.A)({root:["root"]},Hh,t)})(e),P=null!=(n=h.root)?n:"div",M=Li({elementType:P,externalSlotProps:p.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:y},ownerState:e,className:I.root});return(0,R.jsx)(P,(0,w.A)({},M,{children:"function"===typeof o?o(T):o}))})),Jh=i.forwardRef((function(e,t){const{anchorEl:n,children:r,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:f=Qh,popperRef:p,style:h,transition:m=!1,slotProps:g={},slots:v={}}=e,y=(0,x.A)(e,Gh),[b,A]=i.useState(!0);if(!l&&!u&&(!m||b))return null;let S;if(o)S=o;else if(n){const e=Kh(n);S=e&&$h(e)?(0,Rp.A)(e).body:(0,Rp.A)(null).body}const _=u||!l||m&&!b?void 0:"none",k=m?{in:u,onEnter:()=>{A(!1)},onExited:()=>{A(!0)}}:void 0;return(0,R.jsx)(qh,{disablePortal:s,container:S,children:(0,R.jsx)(Xh,(0,w.A)({anchorEl:n,direction:a,disablePortal:s,modifiers:c,ref:t,open:m?!b:u,placement:d,popperOptions:f,popperRef:p,slotProps:g,slots:v},y,{style:(0,w.A)({position:"fixed",top:0,left:0,display:_},h),TransitionProps:k,children:r}))})})),Zh=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],em=(0,U.Ay)(Jh,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tm=i.forwardRef((function(e,t){var n;const r=(0,Tp.A)(),o=(0,G.b)({props:e,name:"MuiPopper"}),{anchorEl:i,component:a,components:s,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:p,placement:h,popperOptions:m,popperRef:g,transition:v,slots:y,slotProps:b}=o,A=(0,x.A)(o,Zh),S=null!=(n=null==y?void 0:y.root)?n:null==s?void 0:s.Root,_=(0,w.A)({anchorEl:i,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:p,placement:h,popperOptions:m,popperRef:g,transition:v},A);return(0,R.jsx)(em,(0,w.A)({as:a,direction:null==r?void 0:r.direction,slots:{root:S},slotProps:null!=b?b:l},_,{ref:t}))}));var nm=__webpack_require__(9888);function rm(e){return(0,Ee.Ay)("MuiTooltip",e)}const om=(0,L.A)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),im=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];const am=(0,U.Ay)(tm,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((e=>{let{theme:t,ownerState:n,open:r}=e;return(0,w.A)({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none"},!n.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},n.arrow&&{['&[data-popper-placement*="bottom"] .'.concat(om.arrow)]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},['&[data-popper-placement*="top"] .'.concat(om.arrow)]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},['&[data-popper-placement*="right"] .'.concat(om.arrow)]:(0,w.A)({},n.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),['&[data-popper-placement*="left"] .'.concat(om.arrow)]:(0,w.A)({},n.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})})),sm=(0,U.Ay)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t["tooltipPlacement".concat((0,V.A)(n.placement.split("-")[0]))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,w.A)({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:(0,B.X4)(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium},n.arrow&&{position:"relative",margin:0},n.touch&&{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:"".concat((r=16/14,Math.round(1e5*r)/1e5),"em"),fontWeight:t.typography.fontWeightRegular},{[".".concat(om.popper,'[data-popper-placement*="left"] &')]:(0,w.A)({transformOrigin:"right center"},n.isRtl?(0,w.A)({marginLeft:"14px"},n.touch&&{marginLeft:"24px"}):(0,w.A)({marginRight:"14px"},n.touch&&{marginRight:"24px"})),[".".concat(om.popper,'[data-popper-placement*="right"] &')]:(0,w.A)({transformOrigin:"left center"},n.isRtl?(0,w.A)({marginRight:"14px"},n.touch&&{marginRight:"24px"}):(0,w.A)({marginLeft:"14px"},n.touch&&{marginLeft:"24px"})),[".".concat(om.popper,'[data-popper-placement*="top"] &')]:(0,w.A)({transformOrigin:"center bottom",marginBottom:"14px"},n.touch&&{marginBottom:"24px"}),[".".concat(om.popper,'[data-popper-placement*="bottom"] &')]:(0,w.A)({transformOrigin:"center top",marginTop:"14px"},n.touch&&{marginTop:"24px"})});var r})),lm=(0,U.Ay)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((e=>{let{theme:t}=e;return{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:(0,B.X4)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}}));let cm=!1;const um=new ce.E;let dm={x:0,y:0};function fm(e,t){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];t&&t(n,...o),e(n,...o)}}const pm=i.forwardRef((function(e,t){var n,r,o,a,s,l,c,u,d,f,p,h,m,g,v,y,b,S,_;const k=(0,G.b)({props:e,name:"MuiTooltip"}),{arrow:C=!1,children:E,components:O={},componentsProps:T={},describeChild:I=!1,disableFocusListener:P=!1,disableHoverListener:M=!1,disableInteractive:D=!1,disableTouchListener:L=!1,enterDelay:j=100,enterNextDelay:N=0,enterTouchDelay:F=700,followCursor:B=!1,id:U,leaveDelay:W=0,leaveTouchDelay:H=1500,onClose:Y,onOpen:X,open:J,placement:Z="bottom",PopperComponent:ee,PopperProps:te={},slotProps:ne={},slots:re={},title:oe,TransitionComponent:ie=Op,TransitionProps:ae}=k,se=(0,x.A)(k,im),le=i.isValidElement(E)?E:(0,R.jsx)("span",{children:E}),ue=Ni(),de=Pi(),[fe,pe]=i.useState(),[he,me]=i.useState(null),ge=i.useRef(!1),ve=D||B,ye=(0,ce.A)(),be=(0,ce.A)(),we=(0,ce.A)(),xe=(0,ce.A)(),[Ae,Se]=(0,q.A)({controlled:J,default:!1,name:"Tooltip",state:"open"});let _e=Ae;const ke=(0,nm.A)(U),Ce=i.useRef(),Ee=(0,$.A)((()=>{void 0!==Ce.current&&(document.body.style.WebkitUserSelect=Ce.current,Ce.current=void 0),xe.clear()}));i.useEffect((()=>Ee),[Ee]);const Oe=e=>{um.clear(),cm=!0,Se(!0),X&&!_e&&X(e)},Te=(0,$.A)((e=>{um.start(800+W,(()=>{cm=!1})),Se(!1),Y&&_e&&Y(e),ye.start(ue.transitions.duration.shortest,(()=>{ge.current=!1}))})),Ie=e=>{ge.current&&"touchstart"!==e.type||(fe&&fe.removeAttribute("title"),be.clear(),we.clear(),j||cm&&N?be.start(cm?N:j,(()=>{Oe(e)})):Oe(e))},Re=e=>{be.clear(),we.start(W,(()=>{Te(e)}))},{isFocusVisibleRef:Pe,onBlur:Me,onFocus:De,ref:Le}=(0,Q.A)(),[,je]=i.useState(!1),Ne=e=>{Me(e),!1===Pe.current&&(je(!1),Re(e))},Fe=e=>{fe||pe(e.currentTarget),De(e),!0===Pe.current&&(je(!0),Ie(e))},ze=e=>{ge.current=!0;const t=le.props;t.onTouchStart&&t.onTouchStart(e)},Be=e=>{ze(e),we.clear(),ye.clear(),Ee(),Ce.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",xe.start(F,(()=>{document.body.style.WebkitUserSelect=Ce.current,Ie(e)}))},Ve=e=>{le.props.onTouchEnd&&le.props.onTouchEnd(e),Ee(),we.start(H,(()=>{Te(e)}))};i.useEffect((()=>{if(_e)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||Te(e)}}),[Te,_e]);const Ue=(0,K.A)(dp(le),Le,pe,t);oe||0===oe||(_e=!1);const We=i.useRef(),qe={},He="string"===typeof oe;I?(qe.title=_e||!He||M?null:oe,qe["aria-describedby"]=_e?ke:null):(qe["aria-label"]=He?oe:null,qe["aria-labelledby"]=_e&&!He?ke:null);const Ye=(0,w.A)({},qe,se,le.props,{className:(0,A.A)(se.className,le.props.className),onTouchStart:ze,ref:Ue},B?{onMouseMove:e=>{const t=le.props;t.onMouseMove&&t.onMouseMove(e),dm={x:e.clientX,y:e.clientY},We.current&&We.current.update()}}:{});const Ge={};L||(Ye.onTouchStart=Be,Ye.onTouchEnd=Ve),M||(Ye.onMouseOver=fm(Ie,Ye.onMouseOver),Ye.onMouseLeave=fm(Re,Ye.onMouseLeave),ve||(Ge.onMouseOver=Ie,Ge.onMouseLeave=Re)),P||(Ye.onFocus=fm(Fe,Ye.onFocus),Ye.onBlur=fm(Ne,Ye.onBlur),ve||(Ge.onFocus=Fe,Ge.onBlur=Ne));const Ke=i.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(he),options:{element:he,padding:4}}];return null!=(e=te.popperOptions)&&e.modifiers&&(t=t.concat(te.popperOptions.modifiers)),(0,w.A)({},te.popperOptions,{modifiers:t})}),[he,te]),$e=(0,w.A)({},k,{isRtl:de,arrow:C,disableInteractive:ve,placement:Z,PopperComponentProp:ee,touch:ge.current}),Qe=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch","tooltipPlacement".concat((0,V.A)(i.split("-")[0]))],arrow:["arrow"]};return(0,z.A)(a,rm,t)})($e),Xe=null!=(n=null!=(r=re.popper)?r:O.Popper)?n:am,Je=null!=(o=null!=(a=null!=(s=re.transition)?s:O.Transition)?a:ie)?o:Op,Ze=null!=(l=null!=(c=re.tooltip)?c:O.Tooltip)?l:sm,et=null!=(u=null!=(d=re.arrow)?d:O.Arrow)?u:lm,tt=mt(Xe,(0,w.A)({},te,null!=(f=ne.popper)?f:T.popper,{className:(0,A.A)(Qe.popper,null==te?void 0:te.className,null==(p=null!=(h=ne.popper)?h:T.popper)?void 0:p.className)}),$e),nt=mt(Je,(0,w.A)({},ae,null!=(m=ne.transition)?m:T.transition),$e),rt=mt(Ze,(0,w.A)({},null!=(g=ne.tooltip)?g:T.tooltip,{className:(0,A.A)(Qe.tooltip,null==(v=null!=(y=ne.tooltip)?y:T.tooltip)?void 0:v.className)}),$e),ot=mt(et,(0,w.A)({},null!=(b=ne.arrow)?b:T.arrow,{className:(0,A.A)(Qe.arrow,null==(S=null!=(_=ne.arrow)?_:T.arrow)?void 0:S.className)}),$e);return(0,R.jsxs)(i.Fragment,{children:[i.cloneElement(le,Ye),(0,R.jsx)(Xe,(0,w.A)({as:null!=ee?ee:tm,placement:Z,anchorEl:B?{getBoundingClientRect:()=>({top:dm.y,left:dm.x,right:dm.x,bottom:dm.y,width:0,height:0})}:fe,popperRef:We,open:!!fe&&_e,id:ke,transition:!0},Ge,tt,{popperOptions:Ke,children:e=>{let{TransitionProps:t}=e;return(0,R.jsx)(Je,(0,w.A)({timeout:ue.transitions.duration.shorter},t,nt,{children:(0,R.jsxs)(Ze,(0,w.A)({},rt,{children:[oe,C?(0,R.jsx)(et,(0,w.A)({},ot,{ref:me})):null]}))}))}}))]})}));const hm=i.createContext({});function mm(e){return(0,Ee.Ay)("MuiList",e)}(0,L.A)("MuiList",["root","padding","dense","subheader"]);const gm=["children","className","component","dense","disablePadding","subheader"],vm=(0,U.Ay)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((e=>{let{ownerState:t}=e;return(0,w.A)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),ym=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiList"}),{children:r,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=n,u=(0,x.A)(n,gm),d=i.useMemo((()=>({dense:s})),[s]),f=(0,w.A)({},n,{component:a,dense:s,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e,i={root:["root",!n&&"padding",r&&"dense",o&&"subheader"]};return(0,z.A)(i,mm,t)})(f);return(0,R.jsx)(hm.Provider,{value:d,children:(0,R.jsxs)(vm,(0,w.A)({as:a,className:(0,A.A)(p.root,o),ref:t,ownerState:f},u,{children:[c,r]}))})}));function bm(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const wm=bm,xm=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Am(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Sm(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function _m(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function km(e,t,n,r,o,i){let a=!1,s=o(e,t,!!t&&n);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&_m(s,i)&&!t)return s.focus(),!0;s=o(e,s,n)}return!1}const Cm=i.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu"}=e,f=(0,x.A)(e,xm),p=i.useRef(null),h=i.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,Wi.A)((()=>{r&&p.current.focus()}),[r]),i.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{let{direction:n}=t;const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const t="".concat(wm((0,na.A)(e)),"px");p.current.style["rtl"===n?"paddingLeft":"paddingRight"]=t,p.current.style.width="calc(100% + ".concat(t,")")}return p.current}})),[]);const m=(0,K.A)(p,t);let g=-1;i.Children.forEach(a,((e,t)=>{i.isValidElement(e)?(e.props.disabled||("selectedMenu"===d&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))):g===t&&(g+=1,g>=a.length&&(g=-1))}));const v=i.Children.map(a,((e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===d&&(t.tabIndex=0),i.cloneElement(e,t)}return e}));return(0,R.jsx)(ym,(0,w.A)({role:"menu",ref:m,className:s,onKeyDown:e=>{const t=p.current,n=e.key,r=(0,na.A)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),km(t,r,c,l,Am);else if("ArrowUp"===n)e.preventDefault(),km(t,r,c,l,Sm);else if("Home"===n)e.preventDefault(),km(t,null,c,l,Am);else if("End"===n)e.preventDefault(),km(t,null,c,l,Sm);else if(1===n.length){const o=h.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&_m(r,o);o.previousKeyMatched&&(s||km(t,r,!1,l,Am,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},f,{children:v}))})),Em=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Om(e){const t=[],n=[];return Array.from(e.querySelectorAll(Em)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector('input[type="radio"]'.concat(t));let n=t('[name="'.concat(e.name,'"]:checked'));return n||(n=t('[name="'.concat(e.name,'"]'))),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function Tm(){return!0}const Im=function(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=Om,isEnabled:s=Tm,open:l}=e,c=i.useRef(!1),u=i.useRef(null),d=i.useRef(null),f=i.useRef(null),p=i.useRef(null),h=i.useRef(!1),m=i.useRef(null),g=(0,pt.A)(dp(t),m),v=i.useRef(null);i.useEffect((()=>{l&&m.current&&(h.current=!n)}),[n,l]),i.useEffect((()=>{if(!l||!m.current)return;const e=(0,Rp.A)(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),h.current&&m.current.focus()),()=>{o||(f.current&&f.current.focus&&(c.current=!0,f.current.focus()),f.current=null)}}),[l]),i.useEffect((()=>{if(!l||!m.current)return;const e=(0,Rp.A)(m.current),t=t=>{v.current=t,!r&&s()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(c.current=!0,d.current&&d.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!s()||c.current)return void(c.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==d.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!h.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==d.current||(n=a(m.current)),n.length>0){var o,i;const e=Boolean((null==(o=v.current)?void 0:o.shiftKey)&&"Tab"===(null==(i=v.current)?void 0:i.key)),t=n[0],r=n[n.length-1];"string"!==typeof t&&"string"!==typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,s,l,a]);const y=e=>{null===f.current&&(f.current=e.relatedTarget),h.current=!0};return(0,R.jsxs)(i.Fragment,{children:[(0,R.jsx)("div",{tabIndex:l?0:-1,onFocus:y,ref:u,"data-testid":"sentinelStart"}),i.cloneElement(t,{ref:g,onFocus:e=>{null===f.current&&(f.current=e.relatedTarget),h.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,R.jsx)("div",{tabIndex:l?0:-1,onFocus:y,ref:d,"data-testid":"sentinelEnd"})]})},Rm=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Pm={entering:{opacity:1},entered:{opacity:1}},Mm=i.forwardRef((function(e,t){const n=Ni(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:h,onExiting:m,style:g,timeout:v=r,TransitionComponent:y=wp}=e,b=(0,x.A)(e,Rm),A=i.useRef(null),S=(0,K.A)(A,dp(s),t),_=e=>t=>{if(e){const n=A.current;void 0===t?e(n):e(n,t)}},k=_(f),C=_(((e,t)=>{xp(e);const r=Ap({style:g,timeout:v,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),E=_(d),O=_(m),T=_((e=>{const t=Ap({style:g,timeout:v,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),I=_(h);return(0,R.jsx)(y,(0,w.A)({appear:a,in:c,nodeRef:A,onEnter:C,onEntered:E,onEntering:k,onExit:T,onExited:I,onExiting:O,addEndListener:e=>{o&&o(A.current,e)},timeout:v},b,{children:(e,t)=>i.cloneElement(s,(0,w.A)({style:(0,w.A)({opacity:0,visibility:"exited"!==e||c?void 0:"hidden"},Pm[e],g,s.props.style),ref:S},t))}))}));function Dm(e){return(0,Ee.Ay)("MuiBackdrop",e)}(0,L.A)("MuiBackdrop",["root","invisible"]);const Lm=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],jm=(0,U.Ay)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((e=>{let{ownerState:t}=e;return(0,w.A)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})})),Nm=i.forwardRef((function(e,t){var n,r,o;const i=(0,G.b)({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:f,slotProps:p={},slots:h={},TransitionComponent:m=Mm,transitionDuration:g}=i,v=(0,x.A)(i,Lm),y=(0,w.A)({},i,{component:l,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e,r={root:["root",n&&"invisible"]};return(0,z.A)(r,Dm,t)})(y),S=null!=(n=p.root)?n:u.root;return(0,R.jsx)(m,(0,w.A)({in:f,timeout:g},v,{children:(0,R.jsx)(jm,(0,w.A)({"aria-hidden":!0},S,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:l,className:(0,A.A)(b.root,s,null==S?void 0:S.className),ownerState:(0,w.A)({},y,null==S?void 0:S.ownerState),classes:b,ref:t,children:a}))}))}));var Fm=__webpack_require__(1391),zm=__webpack_require__(5973),Bm=__webpack_require__(2049);function Vm(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Um(e){return parseInt((0,Bm.A)(e).getComputedStyle(e).paddingRight,10)||0}function Wm(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&Vm(e,o)}))}function qm(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Hm(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=(0,Rp.A)(e);return t.body===e?(0,Bm.A)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=bm((0,Rp.A)(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight="".concat(Um(r)+e,"px");const t=(0,Rp.A)(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight="".concat(Um(t)+e,"px")}))}let e;if(r.parentNode instanceof DocumentFragment)e=(0,Rp.A)(r).body;else{const t=r.parentElement,n=(0,Bm.A)(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((e=>{let{value:t,el:n,property:r}=e;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}const Ym=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Vm(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Wm(t,e.mount,e.modalRef,r,!0);const o=qm(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=qm(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Hm(r,t))}remove(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.modals.indexOf(e);if(-1===n)return n;const r=qm(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&Vm(e.modalRef,t),Wm(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&Vm(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};const Gm=function(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Ym,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:l,children:c,onClose:u,open:d,rootRef:f}=e,p=i.useRef({}),h=i.useRef(null),m=i.useRef(null),g=(0,pt.A)(m,f),[v,y]=i.useState(!d),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(c);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const A=()=>(p.current.modalRef=m.current,p.current.mount=h.current,p.current),S=()=>{o.mount(A(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},_=(0,Fm.A)((()=>{const e=function(e){return"function"===typeof e?e():e}(t)||(0,Rp.A)(h.current).body;o.add(A(),e),m.current&&S()})),k=i.useCallback((()=>o.isTopModal(A())),[o]),C=(0,Fm.A)((e=>{h.current=e,e&&(d&&k()?S():m.current&&Vm(m.current,x))})),E=i.useCallback((()=>{o.remove(A(),x)}),[x,o]);i.useEffect((()=>()=>{E()}),[E]),i.useEffect((()=>{d?_():b&&a||E()}),[d,E,b,a,_]);const O=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&k()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},T=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=vt(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=(0,w.A)({},n,t);return(0,w.A)({role:"presentation"},r,{onKeyDown:O(r),ref:g})},getBackdropProps:function(){const e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,w.A)({"aria-hidden":!0},e,{onClick:T(e),open:d})},getTransitionProps:()=>({onEnter:(0,zm.A)((()=>{y(!1),s&&s()}),null==c?void 0:c.props.onEnter),onExited:(0,zm.A)((()=>{y(!0),l&&l(),a&&E()}),null==c?void 0:c.props.onExited)}),rootRef:g,portalRef:C,isTopModal:k,exited:v,hasTransition:b}};function Km(e){return(0,Ee.Ay)("MuiModal",e)}(0,L.A)("MuiModal",["root","hidden","backdrop"]);const $m=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],Qm=(0,U.Ay)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((e=>{let{theme:t,ownerState:n}=e;return(0,w.A)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!n.open&&n.exited&&{visibility:"hidden"})})),Xm=(0,U.Ay)(Nm,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Jm=i.forwardRef((function(e,t){var n,r,o,a,s,l;const c=(0,G.b)({name:"MuiModal",props:e}),{BackdropComponent:u=Xm,BackdropProps:d,className:f,closeAfterTransition:p=!1,children:h,container:m,component:g,components:v={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:_=!1,disablePortal:k=!1,disableRestoreFocus:C=!1,disableScrollLock:E=!1,hideBackdrop:O=!1,keepMounted:T=!1,onBackdropClick:I,open:P,slotProps:M,slots:D}=c,L=(0,x.A)(c,$m),j=(0,w.A)({},c,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:S,disableEscapeKeyDown:_,disablePortal:k,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:O,keepMounted:T}),{getRootProps:N,getBackdropProps:F,getTransitionProps:B,portalRef:V,isTopModal:U,exited:W,hasTransition:q}=Gm((0,w.A)({},j,{rootRef:t})),H=(0,w.A)({},j,{exited:W}),Y=(e=>{const{open:t,exited:n,classes:r}=e,o={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,z.A)(o,Km,r)})(H),K={};if(void 0===h.props.tabIndex&&(K.tabIndex="-1"),q){const{onEnter:e,onExited:t}=B();K.onEnter=e,K.onExited=t}const $=null!=(n=null!=(r=null==D?void 0:D.root)?r:v.Root)?n:Qm,Q=null!=(o=null!=(a=null==D?void 0:D.backdrop)?a:v.Backdrop)?o:u,X=null!=(s=null==M?void 0:M.root)?s:y.root,J=null!=(l=null==M?void 0:M.backdrop)?l:y.backdrop,Z=Li({elementType:$,externalSlotProps:X,externalForwardedProps:L,getSlotProps:N,additionalProps:{ref:t,as:g},ownerState:H,className:(0,A.A)(f,null==X?void 0:X.className,null==Y?void 0:Y.root,!H.open&&H.exited&&(null==Y?void 0:Y.hidden))}),ee=Li({elementType:Q,externalSlotProps:J,additionalProps:d,getSlotProps:e=>F((0,w.A)({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,A.A)(null==J?void 0:J.className,null==d?void 0:d.className,null==Y?void 0:Y.backdrop),ownerState:H});return T||P||q&&!W?(0,R.jsx)(qh,{ref:V,container:m,disablePortal:k,children:(0,R.jsxs)($,(0,w.A)({},Z,{children:[!O&&u?(0,R.jsx)(Q,(0,w.A)({},ee)):null,(0,R.jsx)(Im,{disableEnforceFocus:S,disableAutoFocus:b,disableRestoreFocus:C,isEnabled:U,open:P,children:i.cloneElement(h,K)})]}))}):null}));function Zm(e){return(0,Ee.Ay)("MuiPopover",e)}(0,L.A)("MuiPopover",["root","paper"]);const eg=["onEntering"],tg=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],ng=["slotProps"];function rg(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function og(e,t){let n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function ig(e){return[e.horizontal,e.vertical].map((e=>"number"===typeof e?"".concat(e,"px"):e)).join(" ")}function ag(e){return"function"===typeof e?e():e}const sg=(0,U.Ay)(Jm,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),lg=(0,U.Ay)(Ot,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),cg=i.forwardRef((function(e,t){var n,r,o;const a=(0,G.b)({props:e,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:f,className:p,container:h,elevation:m=8,marginThreshold:g=16,open:v,PaperProps:y={},slots:b,slotProps:S,transformOrigin:_={vertical:"top",horizontal:"left"},TransitionComponent:k=Op,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:O=!1}=a,T=(0,x.A)(a.TransitionProps,eg),I=(0,x.A)(a,tg),P=null!=(n=null==S?void 0:S.paper)?n:y,M=i.useRef(),D=(0,K.A)(M,P.ref),L=(0,w.A)({},a,{anchorOrigin:c,anchorReference:d,elevation:m,marginThreshold:g,externalPaperSlotProps:P,transformOrigin:_,TransitionComponent:k,transitionDuration:C,TransitionProps:T}),j=(e=>{const{classes:t}=e;return(0,z.A)({root:["root"],paper:["paper"]},Zm,t)})(L),N=i.useCallback((()=>{if("anchorPosition"===d)return u;const e=ag(l),t=(e&&1===e.nodeType?e:(0,na.A)(M.current).body).getBoundingClientRect();return{top:t.top+rg(t,c.vertical),left:t.left+og(t,c.horizontal)}}),[l,c.horizontal,c.vertical,u,d]),F=i.useCallback((e=>({vertical:rg(e,_.vertical),horizontal:og(e,_.horizontal)})),[_.horizontal,_.vertical]),B=i.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=F(t);if("none"===d)return{top:null,left:null,transformOrigin:ig(n)};const r=N();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,c=(0,qi.A)(ag(l)),u=c.innerHeight-g,f=c.innerWidth-g;if(null!==g&&o<g){const e=o-g;o-=e,n.vertical+=e}else if(null!==g&&a>u){const e=a-u;o-=e,n.vertical+=e}if(null!==g&&i<g){const e=i-g;i-=e,n.horizontal+=e}else if(s>f){const e=s-f;i-=e,n.horizontal+=e}return{top:"".concat(Math.round(o),"px"),left:"".concat(Math.round(i),"px"),transformOrigin:ig(n)}}),[l,d,N,F,g]),[V,U]=i.useState(v),W=i.useCallback((()=>{const e=M.current;if(!e)return;const t=B(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,U(!0)}),[B]);i.useEffect((()=>(O&&window.addEventListener("scroll",W),()=>window.removeEventListener("scroll",W))),[l,O,W]);i.useEffect((()=>{v&&W()})),i.useImperativeHandle(s,(()=>v?{updatePosition:()=>{W()}}:null),[v,W]),i.useEffect((()=>{if(!v)return;const e=(0,Fi.A)((()=>{W()})),t=(0,qi.A)(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,v,W]);let q=C;"auto"!==C||k.muiSupportAuto||(q=void 0);const H=h||(l?(0,na.A)(ag(l)).body:void 0),Y=null!=(r=null==b?void 0:b.root)?r:sg,$=null!=(o=null==b?void 0:b.paper)?o:lg,Q=Li({elementType:$,externalSlotProps:(0,w.A)({},P,{style:V?P.style:(0,w.A)({},P.style,{opacity:0})}),additionalProps:{elevation:m,ref:D},ownerState:L,className:(0,A.A)(j.paper,null==P?void 0:P.className)}),X=Li({elementType:Y,externalSlotProps:(null==S?void 0:S.root)||{},externalForwardedProps:I,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:H,open:v},ownerState:L,className:(0,A.A)(j.root,p)}),{slotProps:J}=X,Z=(0,x.A)(X,ng);return(0,R.jsx)(Y,(0,w.A)({},Z,!ht(Y)&&{slotProps:J,disableScrollLock:O},{children:(0,R.jsx)(k,(0,w.A)({appear:!0,in:v,onEntering:(e,t)=>{E&&E(e,t),W()},onExited:()=>{U(!1)},timeout:q},T,{children:(0,R.jsx)($,(0,w.A)({},Q,{children:f}))}))}))}));function ug(e){return(0,Ee.Ay)("MuiMenu",e)}(0,L.A)("MuiMenu",["root","paper","list"]);const dg=["onEntering"],fg=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],pg={vertical:"top",horizontal:"right"},hg={vertical:"top",horizontal:"left"},mg=(0,U.Ay)(cg,{shouldForwardProp:e=>(0,W.A)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gg=(0,U.Ay)(lg,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),vg=(0,U.Ay)(Cm,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),yg=i.forwardRef((function(e,t){var n,r;const o=(0,G.b)({props:e,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:u={},onClose:d,open:f,PaperProps:p={},PopoverClasses:h,transitionDuration:m="auto",TransitionProps:{onEntering:g}={},variant:v="selectedMenu",slots:y={},slotProps:b={}}=o,S=(0,x.A)(o.TransitionProps,dg),_=(0,x.A)(o,fg),k=Pi(),C=(0,w.A)({},o,{autoFocus:a,disableAutoFocusItem:c,MenuListProps:u,onEntering:g,PaperProps:p,transitionDuration:m,TransitionProps:S,variant:v}),E=(e=>{const{classes:t}=e;return(0,z.A)({root:["root"],paper:["paper"],list:["list"]},ug,t)})(C),O=a&&!c&&f,T=i.useRef(null);let I=-1;i.Children.map(s,((e,t)=>{i.isValidElement(e)&&(e.props.disabled||("selectedMenu"===v&&e.props.selected||-1===I)&&(I=t))}));const P=null!=(n=y.paper)?n:gg,M=null!=(r=b.paper)?r:p,D=Li({elementType:y.root,externalSlotProps:b.root,ownerState:C,className:[E.root,l]}),L=Li({elementType:P,externalSlotProps:M,ownerState:C,className:E.paper});return(0,R.jsx)(mg,(0,w.A)({onClose:d,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?pg:hg,slots:{paper:P,root:y.root},slotProps:{root:D,paper:L},open:f,ref:t,transitionDuration:m,TransitionProps:(0,w.A)({onEntering:(e,t)=>{T.current&&T.current.adjustStyleForScrollbar(e,{direction:k?"rtl":"ltr"}),g&&g(e,t)}},S),ownerState:C},_,{classes:h,children:(0,R.jsx)(vg,(0,w.A)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:T,autoFocus:a&&(-1===I||c),autoFocusItem:O,variant:v},u,{className:(0,A.A)(E.list,u.className),children:s}))}))}));function bg(e){return(0,Ee.Ay)("MuiDivider",e)}const wg=(0,L.A)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const xg=(0,L.A)("MuiListItemIcon",["root","alignItemsFlexStart"]);function Ag(e){return(0,Ee.Ay)("MuiListItemText",e)}const Sg=(0,L.A)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function _g(e){return(0,Ee.Ay)("MuiMenuItem",e)}const kg=(0,L.A)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Cg=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Eg=(0,U.Ay)(Pe,{shouldForwardProp:e=>(0,W.A)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((e=>{let{theme:t,ownerState:n}=e;return(0,w.A)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(kg.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,B.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(kg.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,B.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(kg.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,B.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,B.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&.".concat(kg.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(kg.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + .".concat(wg.root)]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + .".concat(wg.inset)]:{marginLeft:52},["& .".concat(Sg.root)]:{marginTop:0,marginBottom:0},["& .".concat(Sg.inset)]:{paddingLeft:36},["& .".concat(xg.root)]:{minWidth:36}},!n.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},n.dense&&(0,w.A)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{["& .".concat(xg.root," svg")]:{fontSize:"1.25rem"}}))})),Og=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:f}=n,p=(0,x.A)(n,Cg),h=i.useContext(hm),m=i.useMemo((()=>({dense:a||h.dense||!1,disableGutters:l})),[h.dense,a,l]),g=i.useRef(null);(0,Wi.A)((()=>{r&&g.current&&g.current.focus()}),[r]);const v=(0,w.A)({},n,{dense:m.dense,divider:s,disableGutters:l}),y=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,s={root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},l=(0,z.A)(s,_g,a);return(0,w.A)({},a,l)})(n),b=(0,K.A)(g,t);let S;return n.disabled||(S=void 0!==d?d:-1),(0,R.jsx)(hm.Provider,{value:m,children:(0,R.jsx)(Eg,(0,w.A)({ref:b,role:u,tabIndex:S,component:o,focusVisibleClassName:(0,A.A)(y.focusVisible,c),className:(0,A.A)(y.root,f)},p,{ownerState:v,classes:y}))})})),Tg=(0,Fe.A)((0,R.jsx)("path",{d:"M10 16h4c.55 0 1-.45 1-1v-5h1.59c.89 0 1.34-1.08.71-1.71L12.71 3.7a.9959.9959 0 0 0-1.41 0L6.71 8.29c-.63.63-.19 1.71.7 1.71H9v5c0 .55.45 1 1 1m-4 2h12c.55 0 1 .45 1 1s-.45 1-1 1H6c-.55 0-1-.45-1-1s.45-1 1-1"}),"UploadRounded"),Ig=(0,Fe.A)((0,R.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),Rg=(0,Fe.A)((0,R.jsx)("path",{d:"M8 6.82v10.36c0 .79.87 1.27 1.54.84l8.14-5.18c.62-.39.62-1.29 0-1.69L9.54 5.98C8.87 5.55 8 6.03 8 6.82"}),"PlayArrowRounded"),Pg=(0,Fe.A)((0,R.jsx)("path",{d:"M8.12 9.29 12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7a.9959.9959 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0"}),"KeyboardArrowDownRounded"),Mg=(0,Fe.A)((0,R.jsx)("path",{d:"m6 18 8.5-6L6 6zM16 6v12h2V6z"}),"SkipNext"),Dg=(0,Fe.A)((0,R.jsx)("path",{d:"M16.59 9H15V4c0-.55-.45-1-1-1h-4c-.55 0-1 .45-1 1v5H7.41c-.89 0-1.34 1.08-.71 1.71l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.63-.63.19-1.71-.7-1.71M5 19c0 .55.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1H6c-.55 0-1 .45-1 1"}),"DownloadRounded"),Lg=(0,Fe.A)([(0,R.jsx)("path",{d:"M9 1h6v2H9zm3 5c3.87 0 7 3.13 7 7 0 .94-.19 1.83-.52 2.65l1.5 1.5C20.63 15.91 21 14.5 21 13c0-2.12-.74-4.07-1.97-5.61l1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-1.5 0-2.91.37-4.15 1.02l1.5 1.5C10.17 6.19 11.06 6 12 6"},"0"),(0,R.jsx)("path",{d:"m11 8.17 2 2V8h-2zM2.81 2.81 1.39 4.22l3.4 3.4C3.67 9.12 3 10.98 3 13c0 4.97 4.02 9 9 9 2.02 0 3.88-.67 5.38-1.79l2.4 2.4 1.41-1.41zM12 20c-3.87 0-7-3.13-7-7 0-1.47.45-2.83 1.22-3.95l9.73 9.73C14.83 19.55 13.47 20 12 20"},"1")],"TimerOffOutlined"),jg=(0,Fe.A)((0,R.jsx)("path",{d:"M12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6 2.69-6 6-6m0-2c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8"}),"FiberManualRecordOutlined");let Ng=function(e){return e.Step="step",e.StepPlaySingle="step-play-single",e.StepPlayBreakpoint="step-play-breakpoint",e.StepPlayUntil="step-play-until",e.StepPlayFrom="step-play-from",e.StepDelete="step-delete",e.StepSkip="step-skip",e.StepIcon="step-icon",e.PlayAll="play-all",e.ReplayerStop="replayer-stop",e.ResumeButton="resume-button",e.PauseReplayer="pause-replayer",e.OpenMenuIconButton="open-menu-icon-button",e.ThreeDotMenu="3-dot-menu",e.SeekbarLiveButton="seekbar-live-button",e.HeaderContent="header-content",e.SaveProgressToPrevious="save-progress-to-previous",e.SaveProgressAs="save-progress-as",e.SaveProgress="save-progress",e.ReloadTest="reload-test",e.ClearTest="clear-test",e.RecordButton="record-button",e.SettingsButton="settings-button",e.LiveFrame="live-iframe",e.TimeMachineFrame="time-machine-iframe",e.LocatorInput="locator-input",e.SelectLocatorButton="select-locator-button",e.ToggleLogsButton="toggle-logs-button",e.SettingsModal="settings-modal",e.ToastCloseButton="toast-close-button",e.DeleteActionOnlyButton="move-assertions",e.DeleteAllButton="delete-all",e.DeleteStepButton="delete-step-button",e}({}),Fg=function(e){return e.AutoLogin="settings-auto-login",e.AutoRunSteps="settings-auto-run-steps",e.CreateAssertionsWithAI="settings-create-assertions-with-ai",e.CreateThoughtsWithAI="settings-create-thoughts-with-ai",e.OptimizeLocators="settings-optimize-locators",e.StepDefaultValueForOptimizedLocator="settings-step-default-value-for-optimized-locator",e.UseCodeBasedSteps="settings-use-code-based-steps",e}({});const zg=(0,U.Ay)(Tg)({transform:"rotate(180deg)"}),Bg=(0,U.Ay)(F)((e=>{let{theme:t}=e;return{display:"inline-flex",position:"relative","&:hover":{"& .divider":{opacity:1}}}})),Vg={anchor:{vertical:"bottom",horizontal:"left"},transform:{vertical:"top",horizontal:"left"},offset:{x:-30,y:4}},Ug=((0,U.Ay)(F)((e=>{let{show:t}=e;return{display:"inline-flex",gap:"0",opacity:t?1:0,transition:"opacity 0.2s ease-in-out",visibility:t?"visible":"hidden",position:"relative",top:"5px"}})),e=>{let{onPlayFrom:t,onPlayUntil:n,onToggleBreakpoint:r,onPlayStep:o,hasBreakpoint:a,isWaitingForStepToPlay:s,isHovered:l,pausedOnBreakpoint:c,pausedOnError:u,onSkipCurrentStep:d,playTooltipText:f="Play",handleDelete:p}=e;const{open:h,anchorEl:m,handlePlayClick:g,handleCaretClick:v,handleMenuClose:y,handleMenuAction:b,handleMouseLeave:w,handleBreakpointClick:x,onPlayUntilWithOptions:A,onPlayFromWithOptions:S,handleDeleteClick:_}=(e=>{let{onPlayFrom:t,onPlayUntil:n,onToggleBreakpoint:r,onPlayStep:o,hasBreakpoint:a,isWaitingForStepToPlay:s,playTooltipText:l="Play",handleDelete:c}=e;const[u,d]=(0,i.useState)(null),f=Boolean(u);(0,i.useEffect)((()=>{const e=()=>{f&&d(null)};return window.addEventListener("blur",e),()=>window.removeEventListener("blur",e)}),[f]);const p=()=>d(null),h=(0,i.useCallback)((()=>{t({forceUpdateTimestamp:!1})}),[t]),m=(0,i.useCallback)((()=>{n({forceUpdateTimestamp:!1})}),[n]),g=(0,i.useCallback)((()=>{o({forceUpdateTimestamp:!1})}),[o]);return{open:f,anchorEl:u,handlePlayClick:e=>{e.stopPropagation(),o&&o()},handleCaretClick:e=>{e.stopPropagation(),d(e.currentTarget)},handleMenuClose:p,handleMenuAction:e=>t=>{t.stopPropagation(),e(),p()},handleMouseLeave:()=>{if(f){const e=setTimeout((()=>d(null)),300);return()=>clearTimeout(e)}},handleBreakpointClick:e=>{e.stopPropagation(),r()},playTooltipText:l,onPlayStepWithOptions:g,onPlayUntilWithOptions:m,onPlayFromWithOptions:h,handleDeleteClick:e=>{e.stopPropagation(),c(e)}}})({onPlayFrom:t,onPlayUntil:n,onToggleBreakpoint:r,onPlayStep:o,hasBreakpoint:a,isWaitingForStepToPlay:s,isHovered:l,playTooltipText:f,handleDelete:p}),k=(e=>{let{show:t}=e;return(0,i.useMemo)((()=>({container:(0,le.AH)({display:"inline-flex",gap:"0",opacity:t?1:0,transition:"opacity 0.2s ease-in-out",visibility:t?"visible":"hidden",position:"relative",top:"5px"},"","")})),[t])})({show:l||a||s});return(0,rs.FD)(F,{onMouseLeave:w,children:[(0,rs.FD)(F,{css:k.container,children:[l?(0,rs.Y)(pm,{title:"Delete",disableInteractive:!0,children:(0,rs.Y)(Lt,{onClick:_,size:"small",color:"error","data-testid":Ng.StepDelete,children:(0,rs.Y)(Ig,{fontSize:"small"})})}):null,l||s?(0,rs.FD)(Bg,{children:[(0,rs.Y)(pm,{title:f,disableInteractive:!0,children:(0,rs.Y)("span",{children:(0,rs.FD)(Lt,{disabled:s,onClick:g,size:"small",sx:{borderTopRightRadius:0,borderBottomRightRadius:0,paddingRight:0},"data-testid":Ng.StepPlaySingle,children:[s?(0,rs.Y)(Ps,{size:12,sx:{mr:"7px"}}):null,s?null:(0,rs.Y)(Rg,{fontSize:"small"})]})})}),(0,rs.Y)(pm,{title:"More playback options",disableInteractive:!0,children:(0,rs.Y)("span",{children:(0,rs.Y)(Lt,{disabled:s,onClick:v,size:"small",sx:{borderTopLeftRadius:0,borderBottomLeftRadius:0,paddingLeft:0},children:(0,rs.Y)(Pg,{fontSize:"small"})})})})]}):null,c||u?(0,rs.Y)(pm,{title:"Skip step and continue",disableInteractive:!0,children:(0,rs.Y)(Lt,{onClick:d,size:"small","data-testid":Ng.StepSkip,children:(0,rs.Y)(Mg,{fontSize:"small"})})}):null,l||a?(0,rs.Y)(pm,{title:a?"Remove breakpoint":"Set breakpoint",disableInteractive:!0,children:(0,rs.Y)(Lt,{onClick:x,size:"small",color:a?"error":"default","data-testid":Ng.StepPlayBreakpoint,children:(0,rs.Y)(qg,{hasBreakpoint:a})})}):null]}),(0,rs.FD)(yg,{anchorEl:m,open:h,onClose:y,anchorOrigin:Vg.anchor,transformOrigin:Vg.transform,slotProps:{paper:{sx:{minWidth:"160px",transform:"translate(".concat(Vg.offset.x,"px, ").concat(Vg.offset.y,"px) !important")}}},MenuListProps:{dense:!0,sx:{"& .MuiMenuItem-root":{py:1,px:2}}},children:[(0,rs.FD)(Og,{onClick:b(n),"data-testid":Ng.StepPlayUntil,children:[(0,rs.FD)(F,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"},children:[(0,rs.Y)(Dg,{fontSize:"small"}),(0,rs.Y)("span",{children:"Play until here "})]}),(0,rs.Y)(Wg,{onClick:b(A)})]}),(0,rs.FD)(Og,{onClick:b(t),"data-testid":Ng.StepPlayFrom,children:[(0,rs.FD)(F,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"},children:[(0,rs.Y)(zg,{fontSize:"small"}),(0,rs.Y)("span",{children:" Play from here "})]}),(0,rs.Y)(Wg,{onClick:b(S)})]})]})]})}),Wg=e=>{let{onClick:t}=e;return(0,rs.Y)(F,{component:"span",onClick:t,sx:{ml:"30px",display:"flex"},color:"secondary",children:(0,rs.Y)(pm,{title:"Play without syncing",placement:"right",children:(0,rs.Y)(Lg,{fontSize:"small"})})})},qg=e=>{let{hasBreakpoint:t}=e;return t?(0,rs.Y)(cs,{fontSize:"small"}):(0,rs.Y)(jg,{fontSize:"small"})},Hg=(0,Fe.A)((0,R.jsx)("path",{d:"M8 19c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2s-2 .9-2 2v10c0 1.1.9 2 2 2m6-12v10c0 1.1.9 2 2 2s2-.9 2-2V7c0-1.1-.9-2-2-2s-2 .9-2 2"}),"PauseRounded"),Yg=(0,Fe.A)((0,R.jsx)("path",{d:"m7.58 16.89 5.77-4.07c.56-.4.56-1.24 0-1.63L7.58 7.11C6.91 6.65 6 7.12 6 7.93v8.14c0 .81.91 1.28 1.58.82M16 7v10c0 .55.45 1 1 1s1-.45 1-1V7c0-.55-.45-1-1-1s-1 .45-1 1"}),"SkipNextRounded"),Gg=(0,Fe.A)((0,R.jsx)("path",{d:"M3 5v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2"}),"SquareRounded"),Kg={anchor:{vertical:"bottom",horizontal:"right"},transform:{vertical:"top",horizontal:"right"},offset:{x:0,y:4}},$g=e=>{let{replayerActions:t,size:n="medium"}=e;const r=Ni(),{playing:o,paused:a}=AI(),{playAll:s,stop:l,resume:c,pause:u}=t,{handlePlayAllWithOptions:d,isPlayAllMenuOpened:f,handleOpenPlayAllMenu:p,anchorEl:h,handlePlayAllMenuClose:m}=(e=>{let{playAll:t}=e;const[n,r]=(0,i.useState)(null),o=Boolean(n),a=(0,i.useCallback)((e=>{e.stopPropagation(),r(e.currentTarget)}),[]),s=(0,i.useCallback)((()=>r(null)),[]),l=(0,i.useCallback)((()=>{t({forceUpdateTimestamp:!1}),s()}),[s,t]);return(0,i.useEffect)((()=>{const e=()=>{o&&r(null)};return window.addEventListener("blur",e),()=>window.removeEventListener("blur",e)}),[o]),{handlePlayAllWithOptions:l,isPlayAllMenuOpened:o,handleOpenPlayAllMenu:a,handlePlayAllMenuClose:s,anchorEl:n}})({playAll:s});return(0,rs.FD)(F,{sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:1},children:[o?null:[(0,rs.Y)(pm,{title:"Play All",children:(0,rs.Y)(ft,{onClick:()=>s(),size:n,variant:"text",color:"primary",startIcon:(0,rs.Y)(Rg,{}),"data-testid":Ng.PlayAll,children:"Play"})},"0"),(0,rs.Y)(pm,{title:"More playback options",disableInteractive:!0,children:(0,rs.Y)(Lt,{onClick:p,size:"small",sx:{borderTopLeftRadius:0,borderBottomLeftRadius:0,paddingLeft:0},"data-testid":Ng.ReplayerStop,children:(0,rs.Y)(Pg,{fontSize:"small"})})},"1")],o?[a?null:(0,rs.Y)(pm,{title:"Pause",children:(0,rs.Y)(ft,{onClick:u,size:n,variant:"text",sx:{color:r.palette.text.secondary},startIcon:(0,rs.Y)(Hg,{}),"data-testid":Ng.PauseReplayer,children:"Pause"})},"0"),a?(0,rs.Y)(pm,{title:"Resume",children:(0,rs.Y)(ft,{onClick:c,size:n,variant:"text",sx:{color:r.palette.text.secondary},startIcon:(0,rs.Y)(Yg,{}),"data-testid":Ng.ResumeButton,children:"Resume"})},"1"):null,(0,rs.Y)(pm,{title:"Stop",children:(0,rs.Y)(ft,{onClick:l,size:n,variant:"text",color:"error",startIcon:(0,rs.Y)(Gg,{}),children:"Stop"})},"2")]:null,(0,rs.Y)(yg,{anchorEl:h,open:f,onClose:m,anchorOrigin:Kg.anchor,transformOrigin:Kg.transform,slotProps:{paper:{sx:{minWidth:"160px",transform:"translate(".concat(Kg.offset.x,"px, ").concat(Kg.offset.y,"px) !important")}}},MenuListProps:{dense:!0,sx:{"& .MuiMenuItem-root":{py:1,px:2}}},children:(0,rs.Y)(Og,{onClick:d,children:(0,rs.FD)(F,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"},children:[(0,rs.Y)(Rg,{fontSize:"small",sx:{mr:1}}),(0,rs.Y)("span",{children:"Play all without sync"})]})})})]})};function Qg(e){const t=function(e){return!0===e.isAISuggestion}(e.options)?{valueChanged:e.options.valueChanged,isAISuggestion:!0}:function(e){return!1===!!e.isAISuggestion}(e.options)?{timeout:e.options.timeout,forceUpdateTimestamp:e.options.forceUpdateTimestamp,runStartedAt:e.options.runStartedAt,singlePlay:e.options.singlePlay,isAISuggestion:!1}:void 0;return{data:e.data,id:e.id,type:Zo.Action,options:t}}const Xg=(0,Fe.A)((0,R.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");var Jg=__webpack_require__(3793),Zg=__webpack_require__.n(Jg);const ev=function(e){void 0===e&&(e={});var t=(0,i.useState)(e),n=t[0],r=t[1];return[n,(0,i.useCallback)((function(e){r((function(t){return Object.assign({},t,e instanceof Function?e(t):e)}))}),[])]};const tv=function(){var e=function(){var e=(0,i.useRef)(!1),t=(0,i.useCallback)((function(){return e.current}),[]);return(0,i.useEffect)((function(){return e.current=!0,function(){e.current=!1}}),[]),t}(),t=ev({value:void 0,error:void 0,noUserInteraction:!0}),n=t[0],r=t[1];return[n,(0,i.useCallback)((function(t){var n,o;if(e())try{if("string"!==typeof t&&"number"!==typeof t){var i=new Error("Cannot copy typeof "+typeof t+" to clipboard, must be a string");return void r({value:t,error:i,noUserInteraction:!0})}if(""===t){i=new Error("Cannot copy empty string to clipboard.");return void r({value:t,error:i,noUserInteraction:!0})}o=t.toString(),n=Zg()(o),r({value:o,error:void 0,noUserInteraction:n})}catch(i){r({value:o,error:i,noUserInteraction:n})}}),[])]},nv=e=>{let{autoHideCopiedDuration:t=1e3,text:n,preventDefault:r=!1}=e;const[o,a]=tv(),[s,l]=(0,i.useState)(!1),c=(0,i.useCallback)((e=>{r&&e.preventDefault(),a(n)}),[n,r]);return(0,i.useEffect)((()=>{if(s){const e=setTimeout((()=>{l(!1)}),t);return()=>clearTimeout(e)}}),[s,t]),(0,i.useEffect)((()=>{o.value===n&&(l(!0),o.value="",o.error=void 0)}),[o,n]),{isCopied:s,handleCopy:c}};function rv(e){let{text:t,autoHideCopiedDuration:n=1e3,preventDefault:r=!1}=e;const{isCopied:o,handleCopy:i}=nv({autoHideCopiedDuration:n,preventDefault:r,text:t});return(0,rs.FD)(rs.FK,{children:[(0,rs.Y)(Lt,{onClick:i,size:"small",color:"primary",disabled:o,children:(0,rs.Y)(Xg,{})}),o?(0,rs.Y)("div",{children:"Copied!"}):null]})}var ov={name:"zigog8",styles:"display:flex;flex-direction:column;align-items:center"},iv={name:"tpi78n",styles:"overflow:auto;max-width:72vw"},av={name:"njhlu2",styles:"display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:20px;max-width:100%"},sv={name:"14y17ve",styles:"display:flex;flex-direction:column;align-items:start;justify-content:space-between;gap:2px;max-width:75vw"};var lv,cv,uv,dv,fv,pv=__webpack_require__(2842),hv=__webpack_require__.n(pv),mv=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};(cv=lv||(lv={}))[cv.EOS=0]="EOS",cv[cv.Text=1]="Text",cv[cv.Incomplete=2]="Incomplete",cv[cv.ESC=3]="ESC",cv[cv.Unknown=4]="Unknown",cv[cv.SGR=5]="SGR",cv[cv.OSCURL=6]="OSCURL";class gv{constructor(){this.VERSION="6.0.2",this.setup_palettes(),this._use_classes=!1,this.bold=!1,this.faint=!1,this.italic=!1,this.underline=!1,this.fg=this.bg=null,this._buffer="",this._url_allowlist={http:1,https:1},this._escape_html=!0,this.boldStyle="font-weight:bold",this.faintStyle="opacity:0.7",this.italicStyle="font-style:italic",this.underlineStyle="text-decoration:underline"}set use_classes(e){this._use_classes=e}get use_classes(){return this._use_classes}set url_allowlist(e){this._url_allowlist=e}get url_allowlist(){return this._url_allowlist}set escape_html(e){this._escape_html=e}get escape_html(){return this._escape_html}set boldStyle(e){this._boldStyle=e}get boldStyle(){return this._boldStyle}set faintStyle(e){this._faintStyle=e}get faintStyle(){return this._faintStyle}set italicStyle(e){this._italicStyle=e}get italicStyle(){return this._italicStyle}set underlineStyle(e){this._underlineStyle=e}get underlineStyle(){return this._underlineStyle}setup_palettes(){this.ansi_colors=[[{rgb:[0,0,0],class_name:"ansi-black"},{rgb:[187,0,0],class_name:"ansi-red"},{rgb:[0,187,0],class_name:"ansi-green"},{rgb:[187,187,0],class_name:"ansi-yellow"},{rgb:[0,0,187],class_name:"ansi-blue"},{rgb:[187,0,187],class_name:"ansi-magenta"},{rgb:[0,187,187],class_name:"ansi-cyan"},{rgb:[255,255,255],class_name:"ansi-white"}],[{rgb:[85,85,85],class_name:"ansi-bright-black"},{rgb:[255,85,85],class_name:"ansi-bright-red"},{rgb:[0,255,0],class_name:"ansi-bright-green"},{rgb:[255,255,85],class_name:"ansi-bright-yellow"},{rgb:[85,85,255],class_name:"ansi-bright-blue"},{rgb:[255,85,255],class_name:"ansi-bright-magenta"},{rgb:[85,255,255],class_name:"ansi-bright-cyan"},{rgb:[255,255,255],class_name:"ansi-bright-white"}]],this.palette_256=[],this.ansi_colors.forEach((e=>{e.forEach((e=>{this.palette_256.push(e)}))}));let e=[0,95,135,175,215,255];for(let n=0;n<6;++n)for(let t=0;t<6;++t)for(let r=0;r<6;++r){let o={rgb:[e[n],e[t],e[r]],class_name:"truecolor"};this.palette_256.push(o)}let t=8;for(let n=0;n<24;++n,t+=10){let e={rgb:[t,t,t],class_name:"truecolor"};this.palette_256.push(e)}}escape_txt_for_html(e){return this._escape_html?e.replace(/[&<>"']/gm,(e=>"&"===e?"&":"<"===e?"<":">"===e?">":'"'===e?""":"'"===e?"'":void 0)):e}append_buffer(e){var t=this._buffer+e;this._buffer=t}get_next_packet(){var e={kind:lv.EOS,text:"",url:""},t=this._buffer.length;if(0==t)return e;var n=this._buffer.indexOf("\x1b");if(-1==n)return e.kind=lv.Text,e.text=this._buffer,this._buffer="",e;if(n>0)return e.kind=lv.Text,e.text=this._buffer.slice(0,n),this._buffer=this._buffer.slice(n),e;if(0==n){if(t<3)return e.kind=lv.Incomplete,e;var r=this._buffer.charAt(1);if("["!=r&&"]"!=r&&"("!=r)return e.kind=lv.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;if("["==r){this._csi_regex||(this._csi_regex=vv(uv||(uv=mv(["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \x1b[ # CSI\n ([<-?]?) # private-mode char\n ([d;]*) # any digits or semicolons\n ([ -/]? # an intermediate modifier\n [@-~]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \x1b[ # CSI\n [ -~]* # anything legal\n ([\0-\x1f:]) # anything illegal\n )\n "],["\n ^ # beginning of line\n #\n # First attempt\n (?: # legal sequence\n \\x1b\\[ # CSI\n ([\\x3c-\\x3f]?) # private-mode char\n ([\\d;]*) # any digits or semicolons\n ([\\x20-\\x2f]? # an intermediate modifier\n [\\x40-\\x7e]) # the command\n )\n | # alternate (second attempt)\n (?: # illegal sequence\n \\x1b\\[ # CSI\n [\\x20-\\x7e]* # anything legal\n ([\\x00-\\x1f:]) # anything illegal\n )\n "]))));let t=this._buffer.match(this._csi_regex);if(null===t)return e.kind=lv.Incomplete,e;if(t[4])return e.kind=lv.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;""!=t[1]||"m"!=t[3]?e.kind=lv.Unknown:e.kind=lv.SGR,e.text=t[2];var o=t[0].length;return this._buffer=this._buffer.slice(o),e}if("]"==r){if(t<4)return e.kind=lv.Incomplete,e;if("8"!=this._buffer.charAt(2)||";"!=this._buffer.charAt(3))return e.kind=lv.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;this._osc_st||(this._osc_st=function(e){let t=e.raw[0],n=/^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm,r=t.replace(n,"");return new RegExp(r,"g")}(dv||(dv=mv(["\n (?: # legal sequence\n (\x1b\\) # ESC | # alternate\n (\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\0-\x06] # anything illegal\n | # alternate\n [\b-\x1a] # anything illegal\n | # alternate\n [\x1c-\x1f] # anything illegal\n )\n "],["\n (?: # legal sequence\n (\\x1b\\\\) # ESC \\\n | # alternate\n (\\x07) # BEL (what xterm did)\n )\n | # alternate (second attempt)\n ( # illegal sequence\n [\\x00-\\x06] # anything illegal\n | # alternate\n [\\x08-\\x1a] # anything illegal\n | # alternate\n [\\x1c-\\x1f] # anything illegal\n )\n "])))),this._osc_st.lastIndex=0;{let t=this._osc_st.exec(this._buffer);if(null===t)return e.kind=lv.Incomplete,e;if(t[3])return e.kind=lv.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e}{let t=this._osc_st.exec(this._buffer);if(null===t)return e.kind=lv.Incomplete,e;if(t[3])return e.kind=lv.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e}this._osc_regex||(this._osc_regex=vv(fv||(fv=mv(["\n ^ # beginning of line\n #\n \x1b]8; # OSC Hyperlink\n [ -:<-~]* # params (excluding ;)\n ; # end of params\n ([!-~]{0,512}) # URL capture\n (?: # ST\n (?:\x1b\\) # ESC | # alternate\n (?:\x07) # BEL (what xterm did)\n )\n ([ -~]+) # TEXT capture\n \x1b]8;; # OSC Hyperlink End\n (?: # ST\n (?:\x1b\\) # ESC | # alternate\n (?:\x07) # BEL (what xterm did)\n )\n "],["\n ^ # beginning of line\n #\n \\x1b\\]8; # OSC Hyperlink\n [\\x20-\\x3a\\x3c-\\x7e]* # params (excluding ;)\n ; # end of params\n ([\\x21-\\x7e]{0,512}) # URL capture\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n ([\\x20-\\x7e]+) # TEXT capture\n \\x1b\\]8;; # OSC Hyperlink End\n (?: # ST\n (?:\\x1b\\\\) # ESC \\\n | # alternate\n (?:\\x07) # BEL (what xterm did)\n )\n "]))));let n=this._buffer.match(this._osc_regex);if(null===n)return e.kind=lv.ESC,e.text=this._buffer.slice(0,1),this._buffer=this._buffer.slice(1),e;e.kind=lv.OSCURL,e.url=n[1],e.text=n[2];o=n[0].length;return this._buffer=this._buffer.slice(o),e}if("("==r)return e.kind=lv.Unknown,this._buffer=this._buffer.slice(3),e}}ansi_to_html(e){this.append_buffer(e);for(var t=[];;){var n=this.get_next_packet();if(n.kind==lv.EOS||n.kind==lv.Incomplete)break;n.kind!=lv.ESC&&n.kind!=lv.Unknown&&(n.kind==lv.Text?t.push(this.transform_to_html(this.with_state(n))):n.kind==lv.SGR?this.process_ansi(n):n.kind==lv.OSCURL&&t.push(this.process_hyperlink(n)))}return t.join("")}with_state(e){return{bold:this.bold,faint:this.faint,italic:this.italic,underline:this.underline,fg:this.fg,bg:this.bg,text:e.text}}process_ansi(e){let t=e.text.split(";");for(;t.length>0;){let e=t.shift(),n=parseInt(e,10);if(isNaN(n)||0===n)this.fg=null,this.bg=null,this.bold=!1,this.faint=!1,this.italic=!1,this.underline=!1;else if(1===n)this.bold=!0;else if(2===n)this.faint=!0;else if(3===n)this.italic=!0;else if(4===n)this.underline=!0;else if(21===n)this.bold=!1;else if(22===n)this.faint=!1,this.bold=!1;else if(23===n)this.italic=!1;else if(24===n)this.underline=!1;else if(39===n)this.fg=null;else if(49===n)this.bg=null;else if(n>=30&&n<38)this.fg=this.ansi_colors[0][n-30];else if(n>=40&&n<48)this.bg=this.ansi_colors[0][n-40];else if(n>=90&&n<98)this.fg=this.ansi_colors[1][n-90];else if(n>=100&&n<108)this.bg=this.ansi_colors[1][n-100];else if((38===n||48===n)&&t.length>0){let e=38===n,r=t.shift();if("5"===r&&t.length>0){let n=parseInt(t.shift(),10);n>=0&&n<=255&&(e?this.fg=this.palette_256[n]:this.bg=this.palette_256[n])}if("2"===r&&t.length>2){let n=parseInt(t.shift(),10),r=parseInt(t.shift(),10),o=parseInt(t.shift(),10);if(n>=0&&n<=255&&r>=0&&r<=255&&o>=0&&o<=255){let t={rgb:[n,r,o],class_name:"truecolor"};e?this.fg=t:this.bg=t}}}}}transform_to_html(e){let t=e.text;if(0===t.length)return t;if(t=this.escape_txt_for_html(t),!e.bold&&!e.italic&&!e.underline&&null===e.fg&&null===e.bg)return t;let n=[],r=[],o=e.fg,i=e.bg;e.bold&&n.push(this._boldStyle),e.faint&&n.push(this._faintStyle),e.italic&&n.push(this._italicStyle),e.underline&&n.push(this._underlineStyle),this._use_classes?(o&&("truecolor"!==o.class_name?r.push("".concat(o.class_name,"-fg")):n.push("color:rgb(".concat(o.rgb.join(","),")"))),i&&("truecolor"!==i.class_name?r.push("".concat(i.class_name,"-bg")):n.push("background-color:rgb(".concat(i.rgb.join(","),")")))):(o&&n.push("color:rgb(".concat(o.rgb.join(","),")")),i&&n.push("background-color:rgb(".concat(i.rgb,")")));let a="",s="";return r.length&&(a=' class="'.concat(r.join(" "),'"')),n.length&&(s=' style="'.concat(n.join(";"),'"')),"<span".concat(s).concat(a,">").concat(t,"</span>")}process_hyperlink(e){let t=e.url.split(":");return t.length<1?"":this._url_allowlist[t[0]]?'<a href="'.concat(this.escape_txt_for_html(e.url),'">').concat(this.escape_txt_for_html(e.text),"</a>"):""}}function vv(e){let t=e.raw[0].replace(/^\s+|\s+\n|\s*#[\s\S]*?\n|\n/gm,"");return new RegExp(t)}function yv(e){let{children:t,styles:n}=e;(0,i.useMemo)((()=>(new gv).ansi_to_html(t)),[t]);return(0,rs.Y)("pre",{css:n,children:(0,rs.Y)(hv(),{children:t})})}function bv(e){let{leadingText:t,trailingText:n,error:r}=e;const o=(0,i.useMemo)((()=>({container:sv,errorWrapper:av,errorMessage:(0,le.AH)({pre:iv},"",""),clipboardCopy:ov})),[]),a=(0,i.useMemo)((()=>r?r.replace(new RegExp('console\x1b[33m.\x1b[39mlog(\x1b[32m"checksum newline placeholder"\x1b[39m)\x1b[33m;'.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),""):""),[r]);return r?(0,rs.FD)(F,{css:o.container,children:[t?(0,rs.Y)(F,{children:t}):null,(0,rs.FD)(F,{css:o.errorWrapper,children:[(0,rs.Y)(F,{css:o.errorMessage,children:(0,rs.Y)(yv,{children:a})}),(0,rs.Y)(F,{css:o.clipboardCopy,children:(0,rs.Y)(rv,{text:r})})]}),n?(0,rs.Y)(F,{children:n}):null]}):null}function wv(e,t,n){return e?"AbortError"===e||e.includes("aborted")?null:(0,rs.Y)(bv,{error:e,leadingText:t,trailingText:n}):null}const xv=["id"],Av=Jr({name:"actions",initialState:{actions:{},aiSuggestedAction:void 0},reducers:{createAction:(e,t)=>{const{data:n,options:r}=t.payload;e.actions[n.id]=n},setActions:(e,t)=>{t.payload.forEach((t=>{e.actions[t.id]=t}))},updateAction:(e,t)=>{const{data:n,id:r}=t.payload,{id:o}=n,i=(0,ns.A)(n,xv);e.actions[r]=(0,g.A)((0,g.A)({},e.actions[r]),i)},deleteAction:(e,t)=>{const{id:n,options:r={assertionsOnly:!1,withAssertions:!0}}=(0,g.A)({},t.payload);r.assertionsOnly||delete e.actions[n]},updateActionInSyncWithNextAction:(e,t)=>{const{id:n,syncedWithNextStep:r}=t.payload;e.actions[n].syncedWithNextStep=r},setAISuggestedAction:(e,t)=>{e.aiSuggestedAction=t.payload}}}),{updateAction:Sv,setActions:_v,createAction:kv,deleteAction:Cv,updateActionInSyncWithNextAction:Ev,setAISuggestedAction:Ov}=Av.actions,Tv=Av.reducer,Iv=sp.injectEndpoints({endpoints:e=>({createAction:e.mutation({query:e=>{return{method:"POST",url:"/createStep",body:(t=e,(0,g.A)((0,g.A)({},t),{},{type:Zo.Action}))};var t}}),updateAction:e.mutation({query:e=>{return{method:"PATCH",url:"/updateStep",body:(t=e,(0,g.A)((0,g.A)({},t),{},{type:Zo.Action,data:(0,g.A)((0,g.A)({},t.data),{},{assertions:void 0,isAIThoughtGenerationTriggered:void 0,isAIAssertionsGenerationTriggered:void 0})}))};var t}}),deleteAction:e.mutation({query:e=>{var t,n;return{method:"DELETE",url:"/deleteStep",successToastMessage:null!==(t=e.options)&&void 0!==t&&t.skipSuccessToast?void 0:"Step has been deleted successfully",body:(n=e,(0,g.A)((0,g.A)({},n),{},{type:Zo.Action}))}}}),executeAction:e.mutation({query:e=>({method:"POST",url:"/steps/execute",body:Qg(e),makeErrorFromResponse:e=>{var t,n;return null!==e&&void 0!==e&&null!==(t=e.data)&&void 0!==t&&t.aborted?null:wv(null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.error)},errorToastOptions:{autoClose:!1,style:{maxWidth:"unset"}}})}),aiInit:e.mutation({query:()=>({url:"/ai/init",method:"POST"})}),iterateAiStep:e.mutation({query:e=>({method:"POST",url:"/ai/iterate",body:e}),onQueryStarted:async(e,t)=>{let{dispatch:n,queryFulfilled:r}=t;try{var o;if(!tp.getState().volatile.aiGenerating)return;const{data:t}=await r,i=(0,g.A)((0,g.A)({},t),{},{id:null!==(o=t.id)&&void 0!==o?o:Date.now().toString(),source:Jo.AI,assertions:[]});n(Ov({action:i,replace:!(null===e||void 0===e||!e.guidance)}))}catch(i){return}}})})}),{useAiInitMutation:Rv,useIterateAiStepMutation:Pv,useExecuteActionMutation:Mv,useCreateActionMutation:Dv,useDeleteActionMutation:Lv,useUpdateActionMutation:jv,endpoints:Nv}=Iv;var Fv=__webpack_require__(4724);const zv=e=>e?"login"===e.eventCode?Bv(e.login):e.thought?e.thought.replace(/`/g,""):e.eventCode===Fv.Qy.CustomCode?e.fillValue:e.locator?e.locator:e.eventCode?function(e){if(!e)return"";const t=e.replace(/_/g," ");return t.charAt(0).toUpperCase()+t.slice(1)}(e.eventCode):"New action":"Action";const Bv=e=>{if(!e||!e.environment&&!e.role)return"Log in";const t=e.environment?" to ".concat(e.environment):"",n=e.role?" with ".concat(e.role):"";return"Log in".concat(t).concat(n)},Vv=(0,Fe.A)((0,R.jsx)("path",{d:"M13 1.07V9h7c0-4.08-3.05-7.44-7-7.93M4 15c0 4.42 3.58 8 8 8s8-3.58 8-8v-4H4zm7-13.93C7.05 1.56 4 4.92 4 9h7z"}),"Mouse"),Uv=(0,Fe.A)((0,R.jsx)("path",{d:"M10 9h4V6h3l-5-5-5 5h3zm-1 1H6V7l-5 5 5 5v-3h3zm14 2-5-5v3h-3v4h3v3zm-9 3h-4v3H7l5 5 5-5h-3z"}),"OpenWith"),Wv=(0,Fe.A)((0,R.jsx)("path",{d:"M2.5 4v3h5v12h3V7h5V4zm19 5h-9v3h3v7h3v-7h3z"}),"TextFields"),qv=(0,Fe.A)((0,R.jsx)("path",{d:"M3.27 5 2 6.27l6.97 6.97L6.5 19h3l1.57-3.66L16.73 21 18 19.73 3.55 5.27zM6 5v.18L8.82 8h2.4l-.72 1.68 2.1 2.1L14.21 8H20V5z"}),"FormatClear"),Hv=(0,Fe.A)((0,R.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"}),"CheckCircle"),Yv=(0,Fe.A)((0,R.jsx)("path",{d:"M21.19 21.19 2.81 2.81 1.39 4.22l2.27 2.27C2.61 8.07 2 9.96 2 12c0 5.52 4.48 10 10 10 2.04 0 3.93-.61 5.51-1.66l2.27 2.27zm-10.6-4.59-4.24-4.24 1.41-1.41 2.83 2.83.18-.18 1.41 1.41zm3-5.84-7.1-7.1C8.07 2.61 9.96 2 12 2c5.52 0 10 4.48 10 10 0 2.04-.61 3.93-1.66 5.51L15 12.17l2.65-2.65-1.41-1.41z"}),"Unpublished"),Gv=(0,Fe.A)((0,R.jsx)("path",{d:"M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74m9.84 4.63-4.54-2.26c-.17-.07-.35-.11-.54-.11H13v-6c0-.83-.67-1.5-1.5-1.5S10 6.67 10 7.5v10.74c-3.6-.76-3.54-.75-3.67-.75-.31 0-.59.13-.79.33l-.79.8 4.94 4.94c.27.27.65.44 1.06.44h6.79c.75 0 1.33-.55 1.44-1.28l.75-5.27c.01-.07.02-.14.02-.2 0-.62-.38-1.16-.91-1.38"}),"TouchApp"),Kv=(0,Fe.A)((0,R.jsx)("path",{d:"M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1c.61 0 1.1-.49 1.1-1.1s-.49-1.1-1.1-1.1M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m2.19 12.19L6 18l3.81-8.19L18 6z"}),"Explore"),$v=(0,Fe.A)((0,R.jsx)("path",{d:"M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m-9 3h2v2h-2zm0 3h2v2h-2zM8 8h2v2H8zm0 3h2v2H8zm-1 2H5v-2h2zm0-3H5V8h2zm9 7H8v-2h8zm0-4h-2v-2h2zm0-3h-2V8h2zm3 3h-2v-2h2zm0-3h-2V8h2z"}),"Keyboard"),Qv=(0,Fe.A)((0,R.jsx)("path",{d:"M11 7H2v2h9zm0 8H2v2h9zm5.34-4L12.8 7.46l1.41-1.41 2.12 2.12 4.24-4.24L22 5.34zm0 8-3.54-3.54 1.41-1.41 2.12 2.12 4.24-4.24L22 13.34z"}),"ChecklistRtl"),Xv=(0,Fe.A)((0,R.jsx)("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"}),"FileUpload"),Jv=(0,Fe.A)((0,R.jsx)("path",{d:"m18 22-.01-6L14 12l3.99-4.01L18 2H6v6l4 4-4 3.99V22zM8 7.5V4h8v3.5l-4 4z"}),"HourglassBottom"),Zv=(0,Fe.A)((0,R.jsx)("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H3V5h10v4h8z"}),"Tab"),ey=(0,Fe.A)((0,R.jsx)("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"Code"),ty=(0,Fe.A)((0,R.jsx)("path",{d:"M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"ExitToApp"),ny=(0,Fe.A)((0,R.jsx)("path",{d:"M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.77 1.21-1.49 2.83-3.44 4.08-3.44 1.63 0 1.65 1.01 1.76 1.79-3.78.64-5.38 3.67-5.38 5.37 0 1.7 1.44 3.09 3.21 3.09 1.63 0 4.29-1.33 4.69-6.1H21v-2.5h-2.47c-.15-1.65-1.09-4.2-4.03-4.2-2.25 0-4.18 1.91-4.94 2.84-.58.73-2.06 2.48-2.29 2.72-.25.3-.68.84-1.11.84-.45 0-.72-.83-.36-1.92.35-1.09 1.4-2.86 1.85-3.52.78-1.14 1.3-1.92 1.3-3.28C8.95 3.69 7.31 3 6.44 3 5.12 3 3.97 4 3.72 4.25c-.36.36-.66.66-.88.93zm9.29 11.66c-.31 0-.74-.26-.74-.72 0-.6.73-2.2 2.87-2.76-.3 2.69-1.43 3.48-2.13 3.48"}),"Gesture"),ry=(0,Fe.A)((0,R.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-7 9h-2V5h2zm0 4h-2v-2h2z"}),"Announcement"),oy=(0,Fe.A)((0,R.jsx)("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8z"}),"Login"),iy=(0,Fe.A)((0,R.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),ay={[Fv.Qy.Click]:Vv,[Fv.Qy.DoubleClick]:Vv,[Fv.Qy.DragAndDrop]:Uv,[Fv.Qy.Input]:Wv,[Fv.Qy.ClickAndType]:Wv,[Fv.Qy.ClearAndType]:qv,[Fv.Qy.Check]:Hv,[Fv.Qy.UnCheck]:Yv,[Fv.Qy.Hover]:Gv,[Fv.Qy.Navigation]:Kv,[Fv.Qy.Keystroke]:$v,[Fv.Qy.SelectOption]:Qv,[Fv.Qy.UploadFiles]:Xv,[Fv.Qy.Wait]:Jv,[Fv.Qy.SwitchTab]:Zv,[Fv.Qy.CustomCode]:ey,[Fv.Qy.LogoutLogin]:ty,[Fv.Qy.CanvasClick]:ny,[Fv.Qy.NativeDialogAccept]:ry,[Fv.Qy.NativeDialogDismiss]:ry,[Fv.Qy.Login]:oy},sy=e=>e&&ay[e]||iy,ly=(0,i.createContext)(null),cy=()=>{const e=(0,i.useContext)(ly);if(!e)throw new Error("useDialog must be used within DialogProvider");return e};let uy=function(e){return e.Confirm="confirm",e.Prompt="prompt",e.MultipleChoice="multiple-choice",e}({});const dy=function(){let{id:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[t,n]=Dv(),[r,o]=jv(),[a,s]=Lv(),[l,c]=Mv(),u=iV(),d=uV(),f=(0,i.useCallback)((t=>{if(!t&&!e)throw new Error("An 'id' is required.");return null!==t&&void 0!==t?t:e}),[e]),p=hW(),h=(0,i.useCallback)((e=>{let{id:n,data:r,options:o}=e;t({id:f(n),data:r,options:o}).unwrap()}),[f,t]),m=(0,i.useCallback)((e=>{let{id:t,data:n,options:o}=e;r({id:f(t),data:n,options:o})}),[f,r]),v=(0,i.useRef)(null),y=(0,i.useCallback)((e=>{let{id:t,data:n,options:r}=e;const o=p(f(t)),i=l({id:f(t),data:(0,g.A)((0,g.A)({},n),{},{codeValue:o}),options:(0,g.A)({},r)});return v.current=i.abort,i.unwrap()}),[f,l,p]),b=(0,i.useRef)(!0);(0,i.useEffect)((()=>()=>{b.current=!1}),[]);const w=(0,i.useCallback)((e=>{let{id:t,options:n}=e;const r=f(t),o=d.findNeighbourStepId(r);a({id:r,options:(0,g.A)((0,g.A)({},n),{},{skipSuccessToast:!1})}).unwrap().then((()=>{b.current&&o&&u(o,{origin:Qo.Step,useTemporaryTab:!0})}))}),[f,a,u,d]);return(0,i.useMemo)((()=>({[sW.Create]:{state:CW(n),handler:h},[sW.Update]:{state:CW(o),handler:m},[sW.Execute]:{state:CW(c),handler:y,abortMutation:v.current},[sW.Delete]:{state:CW(s),handler:w}})),[s,w,y,c,m,o,h,n])};let fy=function(e){return e.DELETE_ALL="delete-all",e.MOVE_ASSERTIONS="move-assertions",e}({});const py="no-assertions",hy=e=>{let{id:t,replayerActions:n}=e;const{showDialog:r}=cy(),o=uV(),a=Kt(),{delete:s}=dy({id:t}),{currentStep:l}=AI(),c=Jz(),u=iV(),d=(0,i.useCallback)((async e=>{const{assertions:n}=o.findAssertionsByActionId(t);if(0===n.length)return py;return await r({mode:uy.MultipleChoice,title:"Delete Action",message:"This action has assertions. Please decide whether to delete the assertions as well or move them to the previous action.",options:my(e),cancelText:"Cancel"})}),[r,o,t]),f=(0,i.useCallback)((async e=>{await s.handler(e),a(xi(e.id))}),[s,a]);return{handleDelete:(0,i.useCallback)((async e=>{e&&e.preventDefault&&e.preventDefault();const r=o.findActionBeforeStepById(t),i=await d(r);if(!i)return;const{handlerBody:a,nextStep:s}=(()=>{if(i===py){const{step:e}=o.findNextStepDataById(t);return{handlerBody:{id:t},nextStep:e}}if(i===fy.MOVE_ASSERTIONS){const{step:e}=o.findNextStepDataById(t);return{handlerBody:{id:t,options:{withAssertions:!1,prevActionId:null===r||void 0===r?void 0:r.id}},nextStep:e}}const e=o.findNextActionByStepId(t),n=e?{id:e.id,type:Zo.Action}:null;return{handlerBody:{id:t,options:{withAssertions:!0}},nextStep:n}})();IW({id:t,currentStep:l,replayerActions:n,deleteHandler:()=>f(a),activeStep:c,activateStep:u,nextStep:s})}),[t,d,f,o,n,l,c,u]),handleDeleteAction:f,getDeletePromptResult:d}},my=e=>{const t=[{id:fy.DELETE_ALL,label:"Delete action and all assertions",shortLabel:"Delete all assertions",tooltip:"Delete this action and all its assertions"}];return e&&t.push({id:fy.MOVE_ASSERTIONS,label:"Delete action and move assertions to previous action",shortLabel:"Delete action only",tooltip:"Delete this action and move its assertions to the previous action"}),t},gy=(0,Fe.A)((0,R.jsx)("path",{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25z"}),"AutoAwesome"),vy=(0,Fe.A)((0,R.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop"),yy=(0,Fe.A)((0,R.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"}),"Replay"),by=(0,Fe.A)((0,R.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");var wy=__webpack_require__(8976),xy=__webpack_require__(6662),Ay=__webpack_require__(6649),Sy=__webpack_require__.n(Ay);const _y=Object.prototype.toString,ky=Error.prototype.toString,Cy=RegExp.prototype.toString,Ey="undefined"!==typeof Symbol?Symbol.prototype.toString:()=>"",Oy=/^Symbol\((.*)\)(.*)$/;function Ty(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null==e||!0===e||!1===e)return""+e;const n=typeof e;if("number"===n)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===n)return t?'"'.concat(e,'"'):e;if("function"===n)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===n)return Ey.call(e).replace(Oy,"Symbol($1)");const r=_y.call(e).slice(8,-1);return"Date"===r?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===r||e instanceof Error?"["+ky.call(e)+"]":"RegExp"===r?Cy.call(e):null}function Iy(e,t){let n=Ty(e,t);return null!==n?n:JSON.stringify(e,(function(e,n){let r=Ty(this[e],t);return null!==r?r:n}),2)}function Ry(e){return null==e?[]:[].concat(e)}let Py,My,Dy,Ly=/\$\{\s*(\w+)\s*\}/g;Py=Symbol.toStringTag;class jy{constructor(e,t,n,r){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[Py]="Error",this.name="ValidationError",this.value=t,this.path=n,this.type=r,this.errors=[],this.inner=[],Ry(e).forEach((e=>{if(Ny.isError(e)){this.errors.push(...e.errors);const t=e.inner.length?e.inner:[e];this.inner.push(...t)}else this.errors.push(e)})),this.message=this.errors.length>1?"".concat(this.errors.length," errors occurred"):this.errors[0]}}My=Symbol.hasInstance,Dy=Symbol.toStringTag;class Ny extends Error{static formatError(e,t){const n=t.label||t.path||"this";return t=Object.assign({},t,{path:n,originalPath:t.path}),"string"===typeof e?e.replace(Ly,((e,n)=>Iy(t[n]))):"function"===typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,n,r,o){const i=new jy(e,t,n,r);if(o)return i;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[Dy]="Error",this.name=i.name,this.message=i.message,this.type=i.type,this.value=i.value,this.path=i.path,this.errors=i.errors,this.inner=i.inner,Error.captureStackTrace&&Error.captureStackTrace(this,Ny)}static[My](e){return jy[Symbol.hasInstance](e)||super[Symbol.hasInstance](e)}}let Fy={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:e=>{let{path:t,type:n,value:r,originalValue:o}=e;const i=null!=o&&o!==r?" (cast from the value `".concat(Iy(o,!0),"`)."):".";return"mixed"!==n?"".concat(t," must be a `").concat(n,"` type, ")+"but the final value was: `".concat(Iy(r,!0),"`")+i:"".concat(t," must match the configured type. ")+"The validated value was: `".concat(Iy(r,!0),"`")+i}},zy={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},By={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},Vy={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},Uy={isValue:"${path} field must be ${value}"},Wy={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},qy={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},Hy={notType:e=>{const{path:t,value:n,spec:r}=e,o=r.types.length;if(Array.isArray(n)){if(n.length<o)return"".concat(t," tuple value has too few items, expected a length of ").concat(o," but got ").concat(n.length," for value: `").concat(Iy(n,!0),"`");if(n.length>o)return"".concat(t," tuple value has too many items, expected a length of ").concat(o," but got ").concat(n.length," for value: `").concat(Iy(n,!0),"`")}return Ny.formatError(Fy.notType,e)}};Object.assign(Object.create(null),{mixed:Fy,string:zy,number:By,date:Vy,object:Wy,array:qy,boolean:Uy,tuple:Hy});const Yy=e=>e&&e.__isYupSchema__;class Gy{static fromOptions(e,t){if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:n,then:r,otherwise:o}=t,i="function"===typeof n?n:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.every((e=>e===n))};return new Gy(e,((e,t)=>{var n;let a=i(...e)?r:o;return null!=(n=null==a?void 0:a(t))?n:t}))}constructor(e,t){this.fn=void 0,this.refs=e,this.refs=e,this.fn=t}resolve(e,t){let n=this.refs.map((e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context))),r=this.fn(n,e,t);if(void 0===r||r===e)return e;if(!Yy(r))throw new TypeError("conditions must return a schema object");return r.resolve(t)}}const Ky="$",$y=".";class Qy{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!==typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===Ky,this.isValue=this.key[0]===$y,this.isSibling=!this.isContext&&!this.isValue;let n=this.isContext?Ky:this.isValue?$y:"";this.path=this.key.slice(n.length),this.getter=this.path&&(0,wy.getter)(this.path,!0),this.map=t.map}getValue(e,t,n){let r=this.isContext?n:this.isValue?e:t;return this.getter&&(r=this.getter(r||{})),this.map&&(r=this.map(r)),r}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return"Ref(".concat(this.key,")")}static isRef(e){return e&&e.__isYupRef}}Qy.prototype.__isYupRef=!0;const Xy=e=>null==e;function Jy(e){function t(t,n,r){let{value:o,path:i="",options:a,originalValue:s,schema:l}=t;const{name:c,test:u,params:d,message:f,skipAbsent:p}=e;let{parent:h,context:m,abortEarly:g=l.spec.abortEarly,disableStackTrace:v=l.spec.disableStackTrace}=a;function y(e){return Qy.isRef(e)?e.getValue(o,h,m):e}function b(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Object.assign({value:o,originalValue:s,label:l.spec.label,path:e.path||i,spec:l.spec,disableStackTrace:e.disableStackTrace||v},d,e.params);for(const r of Object.keys(t))t[r]=y(t[r]);const n=new Ny(Ny.formatError(e.message||f,t),o,t.path,e.type||c,t.disableStackTrace);return n.params=t,n}const w=g?n:r;let x={path:i,parent:h,type:c,from:a.from,createError:b,resolve:y,options:a,originalValue:s,schema:l};const A=e=>{Ny.isError(e)?w(e):e?r(null):w(b())},S=e=>{Ny.isError(e)?w(e):n(e)};if(p&&Xy(o))return A(!0);let _;try{var k;if(_=u.call(x,o,x),"function"===typeof(null==(k=_)?void 0:k.then)){if(a.sync)throw new Error('Validation test of type: "'.concat(x.type,'" returned a Promise during a synchronous validate. ')+"This test will finish after the validate call has returned");return Promise.resolve(_).then(A,S)}}catch(C){return void S(C)}A(_)}return t.OPTIONS=e,t}function Zy(e,t,n){let r,o,i,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return t?((0,wy.forEach)(t,((s,l,c)=>{let u=l?s.slice(1,s.length-1):s,d="tuple"===(e=e.resolve({context:a,parent:r,value:n})).type,f=c?parseInt(u,10):0;if(e.innerType||d){if(d&&!c)throw new Error('Yup.reach cannot implicitly index into a tuple type. the path part "'.concat(i,'" must contain an index to the tuple element, e.g. "').concat(i,'[0]"'));if(n&&f>=n.length)throw new Error("Yup.reach cannot resolve an array item at index: ".concat(s,", in the path: ").concat(t,". ")+"because there is no value at that index. ");r=n,n=n&&n[f],e=d?e.spec.types[f]:e.innerType}if(!c){if(!e.fields||!e.fields[u])throw new Error("The schema does not contain the path: ".concat(t,". ")+"(failed at: ".concat(i,' which is a type: "').concat(e.type,'")'));r=n,n=n&&n[u],e=e.fields[u]}o=u,i=l?"["+s+"]":"."+s})),{schema:e,parent:r,parentPath:o}):{parent:r,parentPath:t,schema:e}}class eb extends Set{describe(){const e=[];for(const t of this.values())e.push(Qy.isRef(t)?t.describe():t);return e}resolveAll(e){let t=[];for(const n of this.values())t.push(e(n));return t}clone(){return new eb(this.values())}merge(e,t){const n=this.clone();return e.forEach((e=>n.add(e))),t.forEach((e=>n.delete(e))),n}}function tb(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map;if(Yy(e)||!e||"object"!==typeof e)return e;if(n.has(e))return n.get(e);if(e instanceof Date)t=new Date(e.getTime()),n.set(e,t);else if(e instanceof RegExp)t=new RegExp(e),n.set(e,t);else if(Array.isArray(e)){t=new Array(e.length),n.set(e,t);for(let r=0;r<e.length;r++)t[r]=tb(e[r],n)}else if(e instanceof Map){t=new Map,n.set(e,t);for(const[r,o]of e.entries())t.set(r,tb(o,n))}else if(e instanceof Set){t=new Set,n.set(e,t);for(const r of e)t.add(tb(r,n))}else{if(!(e instanceof Object))throw Error("Unable to clone ".concat(e));t={},n.set(e,t);for(const[r,o]of Object.entries(e))t[r]=tb(o,n)}return t}class nb{constructor(e){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new eb,this._blacklist=new eb,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation((()=>{this.typeError(Fy.notType)})),this.type=e.type,this._typeCheck=e.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},null==e?void 0:e.spec),this.withMutation((e=>{e.nonNullable()}))}get _type(){return this.type}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeCheck=this._typeCheck,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.internalTests=Object.assign({},this.internalTests),t.exclusiveTests=Object.assign({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=tb(Object.assign({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(){if(0===arguments.length)return this.spec.meta;let e=this.clone();return e.spec.meta=Object.assign(e.spec.meta||{},arguments.length<=0?void 0:arguments[0]),e}withMutation(e){let t=this._mutate;this._mutate=!0;let n=e(this);return this._mutate=t,n}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError("You cannot `concat()` schema's of different types: ".concat(this.type," and ").concat(e.type));let t=this,n=e.clone();const r=Object.assign({},t.spec,n.spec);return n.spec=r,n.internalTests=Object.assign({},t.internalTests,n.internalTests),n._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),n._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),n.tests=t.tests,n.exclusiveTests=t.exclusiveTests,n.withMutation((t=>{e.tests.forEach((e=>{t.test(e.OPTIONS)}))})),n.transforms=[...t.transforms,...n.transforms],n}isType(e){return null==e?!(!this.spec.nullable||null!==e)||!(!this.spec.optional||void 0!==e):this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let n=t.conditions;t=t.clone(),t.conditions=[],t=n.reduce(((t,n)=>n.resolve(t,e)),t),t=t.resolve(e)}return t}resolveOptions(e){var t,n,r,o;return Object.assign({},e,{from:e.from||[],strict:null!=(t=e.strict)?t:this.spec.strict,abortEarly:null!=(n=e.abortEarly)?n:this.spec.abortEarly,recursive:null!=(r=e.recursive)?r:this.spec.recursive,disableStackTrace:null!=(o=e.disableStackTrace)?o:this.spec.disableStackTrace})}cast(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.resolve(Object.assign({value:e},t)),r="ignore-optionality"===t.assert,o=n._cast(e,t);if(!1!==t.assert&&!n.isType(o)){if(r&&Xy(o))return o;let i=Iy(e),a=Iy(o);throw new TypeError("The value of ".concat(t.path||"field"," could not be cast to a value ")+'that satisfies the schema type: "'.concat(n.type,'". \n\n')+"attempted value: ".concat(i," \n")+(a!==i?"result of cast: ".concat(a):""))}return o}_cast(e,t){let n=void 0===e?e:this.transforms.reduce(((t,n)=>n.call(this,t,e,this)),e);return void 0===n&&(n=this.getDefault(t)),n}_validate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,{path:o,originalValue:i=e,strict:a=this.spec.strict}=t,s=e;a||(s=this._cast(s,Object.assign({assert:!1},t)));let l=[];for(let c of Object.values(this.internalTests))c&&l.push(c);this.runTests({path:o,value:s,originalValue:i,options:t,tests:l},n,(e=>{if(e.length)return r(e,s);this.runTests({path:o,value:s,originalValue:i,options:t,tests:this.tests},n,r)}))}runTests(e,t,n){let r=!1,{tests:o,value:i,originalValue:a,path:s,options:l}=e,c=e=>{r||(r=!0,t(e,i))},u=e=>{r||(r=!0,n(e,i))},d=o.length,f=[];if(!d)return u([]);let p={value:i,originalValue:a,path:s,options:l,schema:this};for(let h=0;h<o.length;h++){(0,o[h])(p,c,(function(e){e&&(Array.isArray(e)?f.push(...e):f.push(e)),--d<=0&&u(f)}))}}asNestedTest(e){let{key:t,index:n,parent:r,parentPath:o,originalParent:i,options:a}=e;const s=null!=t?t:n;if(null==s)throw TypeError("Must include `key` or `index` for nested validations");const l="number"===typeof s;let c=r[s];const u=Object.assign({},a,{strict:!0,parent:r,value:c,originalValue:i[s],key:void 0,[l?"index":"key"]:s,path:l||s.includes(".")?"".concat(o||"","[").concat(l?s:'"'.concat(s,'"'),"]"):(o?"".concat(o,"."):"")+t});return(e,t,n)=>this.resolve(u)._validate(c,u,t,n)}validate(e,t){var n;let r=this.resolve(Object.assign({},t,{value:e})),o=null!=(n=null==t?void 0:t.disableStackTrace)?n:r.spec.disableStackTrace;return new Promise(((n,i)=>r._validate(e,t,((e,t)=>{Ny.isError(e)&&(e.value=t),i(e)}),((e,t)=>{e.length?i(new Ny(e,t,void 0,void 0,o)):n(t)}))))}validateSync(e,t){var n;let r,o=this.resolve(Object.assign({},t,{value:e})),i=null!=(n=null==t?void 0:t.disableStackTrace)?n:o.spec.disableStackTrace;return o._validate(e,Object.assign({},t,{sync:!0}),((e,t)=>{throw Ny.isError(e)&&(e.value=t),e}),((t,n)=>{if(t.length)throw new Ny(t,e,void 0,void 0,i);r=n})),r}isValid(e,t){return this.validate(e,t).then((()=>!0),(e=>{if(Ny.isError(e))return!1;throw e}))}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(n){if(Ny.isError(n))return!1;throw n}}_getDefault(e){let t=this.spec.default;return null==t?t:"function"===typeof t?t.call(this,e):tb(t)}getDefault(e){return this.resolve(e||{})._getDefault(e)}default(e){if(0===arguments.length)return this._getDefault();return this.clone({default:e})}strict(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.clone({strict:e})}nullability(e,t){const n=this.clone({nullable:e});return n.internalTests.nullable=Jy({message:t,name:"nullable",test(e){return null!==e||this.schema.spec.nullable}}),n}optionality(e,t){const n=this.clone({optional:e});return n.internalTests.optionality=Jy({message:t,name:"optionality",test(e){return void 0!==e||this.schema.spec.optional}}),n}optional(){return this.optionality(!0)}defined(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fy.defined;return this.optionality(!1,e)}nullable(){return this.nullability(!0)}nonNullable(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fy.notNull;return this.nullability(!1,e)}required(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fy.required;return this.clone().withMutation((t=>t.nonNullable(e).defined(e)))}notRequired(){return this.clone().withMutation((e=>e.nullable().optional()))}transform(e){let t=this.clone();return t.transforms.push(e),t}test(){let e;if(e=1===arguments.length?"function"===typeof(arguments.length<=0?void 0:arguments[0])?{test:arguments.length<=0?void 0:arguments[0]}:arguments.length<=0?void 0:arguments[0]:2===arguments.length?{name:arguments.length<=0?void 0:arguments[0],test:arguments.length<=1?void 0:arguments[1]}:{name:arguments.length<=0?void 0:arguments[0],message:arguments.length<=1?void 0:arguments[1],test:arguments.length<=2?void 0:arguments[2]},void 0===e.message&&(e.message=Fy.default),"function"!==typeof e.test)throw new TypeError("`test` is a required parameters");let t=this.clone(),n=Jy(e),r=e.exclusive||e.name&&!0===t.exclusiveTests[e.name];if(e.exclusive&&!e.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return e.name&&(t.exclusiveTests[e.name]=!!e.exclusive),t.tests=t.tests.filter((t=>{if(t.OPTIONS.name===e.name){if(r)return!1;if(t.OPTIONS.test===n.OPTIONS.test)return!1}return!0})),t.tests.push(n),t}when(e,t){Array.isArray(e)||"string"===typeof e||(t=e,e=".");let n=this.clone(),r=Ry(e).map((e=>new Qy(e)));return r.forEach((e=>{e.isSibling&&n.deps.push(e.key)})),n.conditions.push("function"===typeof t?new Gy(r,t):Gy.fromOptions(r,t)),n}typeError(e){let t=this.clone();return t.internalTests.typeError=Jy({message:e,name:"typeError",skipAbsent:!0,test(e){return!!this.schema._typeCheck(e)||this.createError({params:{type:this.schema.type}})}}),t}oneOf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fy.oneOf,n=this.clone();return e.forEach((e=>{n._whitelist.add(e),n._blacklist.delete(e)})),n.internalTests.whiteList=Jy({message:t,name:"oneOf",skipAbsent:!0,test(e){let t=this.schema._whitelist,n=t.resolveAll(this.resolve);return!!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}notOneOf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fy.notOneOf,n=this.clone();return e.forEach((e=>{n._blacklist.add(e),n._whitelist.delete(e)})),n.internalTests.blacklist=Jy({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,n=t.resolveAll(this.resolve);return!n.includes(e)||this.createError({params:{values:Array.from(t).join(", "),resolved:n}})}}),n}strip(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.clone();return t.spec.strip=e,t}describe(e){const t=(e?this.resolve(e):this).clone(),{label:n,meta:r,optional:o,nullable:i}=t.spec;return{meta:r,label:n,optional:o,nullable:i,default:t.getDefault(e),type:t.type,oneOf:t._whitelist.describe(),notOneOf:t._blacklist.describe(),tests:t.tests.map((e=>({name:e.OPTIONS.name,params:e.OPTIONS.params}))).filter(((e,t,n)=>n.findIndex((t=>t.name===e.name))===t))}}}nb.prototype.__isYupSchema__=!0;for(const hK of["validate","validateSync"])nb.prototype["".concat(hK,"At")]=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{parent:r,parentPath:o,schema:i}=Zy(this,e,t,n.context);return i[hK](r&&r[o],Object.assign({},n,{parent:r,path:e}))};for(const hK of["equals","is"])nb.prototype[hK]=nb.prototype.oneOf;for(const hK of["not","nope"])nb.prototype[hK]=nb.prototype.notOneOf;const rb=()=>!0;class ob extends nb{constructor(e){super("function"===typeof e?{type:"mixed",check:e}:Object.assign({type:"mixed",check:rb},e))}}ob.prototype;class ib extends nb{constructor(){super({type:"boolean",check:e=>(e instanceof Boolean&&(e=e.valueOf()),"boolean"===typeof e)}),this.withMutation((()=>{this.transform(((e,t,n)=>{if(n.spec.coerce&&!n.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e}))}))}isTrue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Uy.isValue;return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test:e=>Xy(e)||!0===e})}isFalse(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Uy.isValue;return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:e=>Xy(e)||!1===e})}default(e){return super.default(e)}defined(e){return super.defined(e)}optional(){return super.optional()}required(e){return super.required(e)}notRequired(){return super.notRequired()}nullable(){return super.nullable()}nonNullable(e){return super.nonNullable(e)}strip(e){return super.strip(e)}}ib.prototype;const ab=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function sb(e){var t,n;const r=ab.exec(e);return r?{year:lb(r[1]),month:lb(r[2],1)-1,day:lb(r[3],1),hour:lb(r[4]),minute:lb(r[5]),second:lb(r[6]),millisecond:r[7]?lb(r[7].substring(0,3)):0,precision:null!=(t=null==(n=r[7])?void 0:n.length)?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:lb(r[10]),minuteOffset:lb(r[11])}:null}function lb(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Number(e)||t}let cb=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ub=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,db=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,fb=new RegExp("".concat("^\\d{4}-\\d{2}-\\d{2}","T").concat("\\d{2}:\\d{2}:\\d{2}","(\\.\\d+)?").concat("(([+-]\\d{2}(:?\\d{2})?)|Z)","$")),pb=e=>Xy(e)||e===e.trim(),hb={}.toString();function mb(){return new gb}class gb extends nb{constructor(){super({type:"string",check:e=>(e instanceof String&&(e=e.valueOf()),"string"===typeof e)}),this.withMutation((()=>{this.transform(((e,t,n)=>{if(!n.spec.coerce||n.isType(e))return e;if(Array.isArray(e))return e;const r=null!=e&&e.toString?e.toString():e;return r===hb?e:r}))}))}required(e){return super.required(e).withMutation((t=>t.test({message:e||Fy.required,name:"required",skipAbsent:!0,test:e=>!!e.length})))}notRequired(){return super.notRequired().withMutation((e=>(e.tests=e.tests.filter((e=>"required"!==e.OPTIONS.name)),e)))}length(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zy.length;return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zy.min;return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zy.max;return this.test({name:"max",exclusive:!0,message:t,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}matches(e,t){let n,r,o=!1;return t&&("object"===typeof t?({excludeEmptyString:o=!1,message:n,name:r}=t):n=t),this.test({name:r||"matches",message:n||zy.matches,params:{regex:e},skipAbsent:!0,test:t=>""===t&&o||-1!==t.search(e)})}email(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zy.email;return this.matches(cb,{name:"email",message:e,excludeEmptyString:!0})}url(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zy.url;return this.matches(ub,{name:"url",message:e,excludeEmptyString:!0})}uuid(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zy.uuid;return this.matches(db,{name:"uuid",message:e,excludeEmptyString:!1})}datetime(e){let t,n,r="";return e&&("object"===typeof e?({message:r="",allowOffset:t=!1,precision:n}=e):r=e),this.matches(fb,{name:"datetime",message:r||zy.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:r||zy.datetime_offset,params:{allowOffset:t},skipAbsent:!0,test:e=>{if(!e||t)return!0;const n=sb(e);return!!n&&!!n.z}}).test({name:"datetime_precision",message:r||zy.datetime_precision,params:{precision:n},skipAbsent:!0,test:e=>{if(!e||void 0==n)return!0;const t=sb(e);return!!t&&t.precision===n}})}ensure(){return this.default("").transform((e=>null===e?"":e))}trim(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zy.trim;return this.transform((e=>null!=e?e.trim():e)).test({message:e,name:"trim",test:pb})}lowercase(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zy.lowercase;return this.transform((e=>Xy(e)?e:e.toLowerCase())).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>Xy(e)||e===e.toLowerCase()})}uppercase(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:zy.uppercase;return this.transform((e=>Xy(e)?e:e.toUpperCase())).test({message:e,name:"string_case",exclusive:!0,skipAbsent:!0,test:e=>Xy(e)||e===e.toUpperCase()})}}mb.prototype=gb.prototype;class vb extends nb{constructor(){super({type:"number",check:e=>(e instanceof Number&&(e=e.valueOf()),"number"===typeof e&&!(e=>e!=+e)(e))}),this.withMutation((()=>{this.transform(((e,t,n)=>{if(!n.spec.coerce)return e;let r=e;if("string"===typeof r){if(r=r.replace(/\s/g,""),""===r)return NaN;r=+r}return n.isType(r)||null===r?r:parseFloat(r)}))}))}min(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:By.min;return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t>=this.resolve(e)}})}max(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:By.max;return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t<=this.resolve(e)}})}lessThan(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:By.lessThan;return this.test({message:t,name:"max",exclusive:!0,params:{less:e},skipAbsent:!0,test(t){return t<this.resolve(e)}})}moreThan(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:By.moreThan;return this.test({message:t,name:"min",exclusive:!0,params:{more:e},skipAbsent:!0,test(t){return t>this.resolve(e)}})}positive(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:By.positive;return this.moreThan(0,e)}negative(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:By.negative;return this.lessThan(0,e)}integer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:By.integer;return this.test({name:"integer",message:e,skipAbsent:!0,test:e=>Number.isInteger(e)})}truncate(){return this.transform((e=>Xy(e)?e:0|e))}round(e){var t;let n=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===n.indexOf(e.toLowerCase()))throw new TypeError("Only valid options for round() are: "+n.join(", "));return this.transform((t=>Xy(t)?t:Math[e](t)))}}vb.prototype;let yb=new Date("");function bb(){return new wb}class wb extends nb{constructor(){super({type:"date",check(e){return t=e,"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t}}),this.withMutation((()=>{this.transform(((e,t,n)=>!n.spec.coerce||n.isType(e)||null===e?e:(e=function(e){const t=sb(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(void 0===t.z&&void 0===t.plusMinus)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return"Z"!==t.z&&void 0!==t.plusMinus&&(n=60*t.hourOffset+t.minuteOffset,"+"===t.plusMinus&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}(e),isNaN(e)?wb.INVALID_DATE:new Date(e))))}))}prepareParam(e,t){let n;if(Qy.isRef(e))n=e;else{let r=this.cast(e);if(!this._typeCheck(r))throw new TypeError("`".concat(t,"` must be a Date or a value that can be `cast()` to a Date"));n=r}return n}min(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vy.min,n=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(e){return e>=this.resolve(n)}})}max(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vy.max,n=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(e){return e<=this.resolve(n)}})}}function xb(e,t){let n=1/0;return e.some(((e,r)=>{var o;if(null!=(o=t.path)&&o.includes(e))return n=r,!0})),n}function Ab(e){return(t,n)=>xb(e,t)-xb(e,n)}wb.INVALID_DATE=yb,bb.prototype=wb.prototype,bb.INVALID_DATE=yb;const Sb=(e,t,n)=>{if("string"!==typeof e)return e;let r=e;try{r=JSON.parse(e)}catch(o){}return n.isType(r)?r:e};function _b(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=_b(r);return e.setFields(t)}if("array"===e.type){const t=e.optional();return t.innerType&&(t.innerType=_b(t.innerType)),t}return"tuple"===e.type?e.optional().clone({types:e.spec.types.map(_b)}):"optional"in e?e.optional():e}let kb=e=>"[object Object]"===Object.prototype.toString.call(e);function Cb(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter((e=>-1===n.indexOf(e)))}const Eb=Ab([]);function Ob(e){return new Tb(e)}class Tb extends nb{constructor(e){super({type:"object",check:e=>kb(e)||"function"===typeof e}),this.fields=Object.create(null),this._sortErrors=Eb,this._nodes=[],this._excludedEdges=[],this.withMutation((()=>{e&&this.shape(e)}))}_cast(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n;let r=super._cast(e,t);if(void 0===r)return this.getDefault(t);if(!this._typeCheck(r))return r;let o=this.fields,i=null!=(n=t.stripUnknown)?n:this.spec.noUnknown,a=[].concat(this._nodes,Object.keys(r).filter((e=>!this._nodes.includes(e)))),s={},l=Object.assign({},t,{parent:s,__validating:t.__validating||!1}),c=!1;for(const u of a){let e=o[u],n=u in r;if(e){let n,o=r[u];l.path=(t.path?"".concat(t.path,"."):"")+u,e=e.resolve({value:o,context:t.context,parent:s});let i=e instanceof nb?e.spec:void 0,a=null==i?void 0:i.strict;if(null!=i&&i.strip){c=c||u in r;continue}n=t.__validating&&a?r[u]:e.cast(r[u],l),void 0!==n&&(s[u]=n)}else n&&!i&&(s[u]=r[u]);n===u in s&&s[u]===r[u]||(c=!0)}return c?s:r}_validate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,{from:o=[],originalValue:i=e,recursive:a=this.spec.recursive}=t;t.from=[{schema:this,value:i},...o],t.__validating=!0,t.originalValue=i,super._validate(e,t,n,((e,o)=>{if(!a||!kb(o))return void r(e,o);i=i||o;let s=[];for(let n of this._nodes){let e=this.fields[n];e&&!Qy.isRef(e)&&s.push(e.asNestedTest({options:t,key:n,parent:o,parentPath:t.path,originalParent:i}))}this.runTests({tests:s,value:o,originalValue:i,options:t},n,(t=>{r(t.sort(this._sortErrors).concat(e),o)}))}))}clone(e){const t=super.clone(e);return t.fields=Object.assign({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),n=t.fields;for(let[r,o]of Object.entries(this.fields)){const e=n[r];n[r]=void 0===e?o:e}return t.withMutation((t=>t.setFields(n,[...this._excludedEdges,...e._excludedEdges])))}_getDefault(e){if("default"in this.spec)return super._getDefault(e);if(!this._nodes.length)return;let t={};return this._nodes.forEach((n=>{var r;const o=this.fields[n];let i=e;null!=(r=i)&&r.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[n]})),t[n]=o&&"getDefault"in o?o.getDefault(i):void 0})),t}setFields(e,t){let n=this.clone();return n.fields=e,n._nodes=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=new Set,o=new Set(t.map((e=>{let[t,n]=e;return"".concat(t,"-").concat(n)})));function i(e,t){let i=(0,wy.split)(e)[0];r.add(i),o.has("".concat(t,"-").concat(i))||n.push([t,i])}for(const a of Object.keys(e)){let t=e[a];r.add(a),Qy.isRef(t)&&t.isSibling?i(t.path,a):Yy(t)&&"deps"in t&&t.deps.forEach((e=>i(e,a)))}return Sy().array(Array.from(r),n).reverse()}(e,t),n._sortErrors=Ab(Object.keys(e)),t&&(n._excludedEdges=t),n}shape(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.clone().withMutation((n=>{let r=n._excludedEdges;return t.length&&(Array.isArray(t[0])||(t=[t]),r=[...n._excludedEdges,...t]),n.setFields(Object.assign(n.fields,e),r)}))}partial(){const e={};for(const[t,n]of Object.entries(this.fields))e[t]="optional"in n&&n.optional instanceof Function?n.optional():n;return this.setFields(e)}deepPartial(){return _b(this)}pick(e){const t={};for(const n of e)this.fields[n]&&(t[n]=this.fields[n]);return this.setFields(t,this._excludedEdges.filter((t=>{let[n,r]=t;return e.includes(n)&&e.includes(r)})))}omit(e){const t=[];for(const n of Object.keys(this.fields))e.includes(n)||t.push(n);return this.pick(t)}from(e,t,n){let r=(0,wy.getter)(e,!0);return this.transform((o=>{if(!o)return o;let i=o;return((e,t)=>{const n=[...(0,wy.normalizePath)(t)];if(1===n.length)return n[0]in e;let r=n.pop(),o=(0,wy.getter)((0,wy.join)(n),!0)(e);return!(!o||!(r in o))})(o,e)&&(i=Object.assign({},o),n||delete i[e],i[t]=r(o)),i}))}json(){return this.transform(Sb)}exact(e){return this.test({name:"exact",exclusive:!0,message:e||Wy.exact,test(e){if(null==e)return!0;const t=Cb(this.schema,e);return 0===t.length||this.createError({params:{properties:t.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wy.noUnknown;"boolean"!==typeof e&&(t=e,e=!0);let n=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;const n=Cb(this.schema,t);return!e||0===n.length||this.createError({params:{unknown:n.join(", ")}})}});return n.spec.noUnknown=e,n}unknown(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wy.noUnknown;return this.noUnknown(!e,t)}transformKeys(e){return this.transform((t=>{if(!t)return t;const n={};for(const r of Object.keys(t))n[e(r)]=t[r];return n}))}camelCase(){return this.transformKeys(xy.camelCase)}snakeCase(){return this.transformKeys(xy.snakeCase)}constantCase(){return this.transformKeys((e=>(0,xy.snakeCase)(e).toUpperCase()))}describe(e){const t=(e?this.resolve(e):this).clone(),n=super.describe(e);n.fields={};for(const[o,i]of Object.entries(t.fields)){var r;let t=e;null!=(r=t)&&r.value&&(t=Object.assign({},t,{parent:t.value,value:t.value[o]})),n.fields[o]=i.describe(t)}return n}}Ob.prototype=Tb.prototype;class Ib extends nb{constructor(e){super({type:"array",spec:{types:e},check:e=>Array.isArray(e)}),this.innerType=void 0,this.innerType=e}_cast(e,t){const n=super._cast(e,t);if(!this._typeCheck(n)||!this.innerType)return n;let r=!1;const o=n.map(((e,n)=>{const o=this.innerType.cast(e,Object.assign({},t,{path:"".concat(t.path||"","[").concat(n,"]")}));return o!==e&&(r=!0),o}));return r?o:n}_validate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;var o;let i=this.innerType,a=null!=(o=t.recursive)?o:this.spec.recursive;null!=t.originalValue&&t.originalValue,super._validate(e,t,n,((o,s)=>{var l;if(!a||!i||!this._typeCheck(s))return void r(o,s);let c=new Array(s.length);for(let n=0;n<s.length;n++){var u;c[n]=i.asNestedTest({options:t,index:n,parent:s,parentPath:t.path,originalParent:null!=(u=t.originalValue)?u:e})}this.runTests({value:s,tests:c,originalValue:null!=(l=t.originalValue)?l:e,options:t},n,(e=>r(e.concat(o),s)))}))}clone(e){const t=super.clone(e);return t.innerType=this.innerType,t}json(){return this.transform(Sb)}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!Yy(e))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Iy(e));return t.innerType=e,t.spec=Object.assign({},t.spec,{types:e}),t}length(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qy.length;return this.test({message:t,name:"length",exclusive:!0,params:{length:e},skipAbsent:!0,test(t){return t.length===this.resolve(e)}})}min(e,t){return t=t||qy.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},skipAbsent:!0,test(t){return t.length>=this.resolve(e)}})}max(e,t){return t=t||qy.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},skipAbsent:!0,test(t){return t.length<=this.resolve(e)}})}ensure(){return this.default((()=>[])).transform(((e,t)=>this._typeCheck(e)?e:null==t?[]:[].concat(t)))}compact(e){let t=e?(t,n,r)=>!e(t,n,r):e=>!!e;return this.transform((e=>null!=e?e.filter(t):e))}describe(e){const t=(e?this.resolve(e):this).clone(),n=super.describe(e);if(t.innerType){var r;let o=e;null!=(r=o)&&r.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[0]})),n.innerType=t.innerType.describe(o)}return n}}Ib.prototype;class Rb extends nb{constructor(e){super({type:"tuple",spec:{types:e},check(e){const t=this.spec.types;return Array.isArray(e)&&e.length===t.length}}),this.withMutation((()=>{this.typeError(Hy.notType)}))}_cast(e,t){const{types:n}=this.spec,r=super._cast(e,t);if(!this._typeCheck(r))return r;let o=!1;const i=n.map(((e,n)=>{const i=e.cast(r[n],Object.assign({},t,{path:"".concat(t.path||"","[").concat(n,"]")}));return i!==r[n]&&(o=!0),i}));return o?i:r}_validate(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=this.spec.types;super._validate(e,t,n,((i,a)=>{var s;if(!this._typeCheck(a))return void r(i,a);let l=[];for(let[n,r]of o.entries()){var c;l[n]=r.asNestedTest({options:t,index:n,parent:a,parentPath:t.path,originalParent:null!=(c=t.originalValue)?c:e})}this.runTests({value:a,tests:l,originalValue:null!=(s=t.originalValue)?s:e,options:t},n,(e=>r(e.concat(i),a)))}))}describe(e){const t=(e?this.resolve(e):this).clone(),n=super.describe(e);return n.innerType=t.spec.types.map(((t,n)=>{var r;let o=e;return null!=(r=o)&&r.value&&(o=Object.assign({},o,{parent:o.value,value:o.value[n]})),t.describe(o)})),n}}Rb.prototype;let Pb=function(e){return e.ToBeAttached="toBeAttached",e.ToBeChecked="toBeChecked",e.ToBeDisabled="toBeDisabled",e.ToBeEditable="toBeEditable",e.ToBeEmpty="toBeEmpty",e.ToBeEnabled="toBeEnabled",e.ToBeFocused="toBeFocused",e.ToBeHidden="toBeHidden",e.ToBeInViewport="toBeInViewport",e.ToBeVisible="toBeVisible",e.ToContainText="toContainText",e.ToHaveAccessibleDescription="toHaveAccessibleDescription",e.ToHaveAccessibleName="toHaveAccessibleName",e.ToHaveClass="toHaveClass",e.ToHaveId="toHaveId",e.ToHaveRole="toHaveRole",e.ToHaveScreenshot="toHaveScreenshot",e.ToHaveText="toHaveText",e.ToHaveValue="toHaveValue",e.ToHaveTitle="toHaveTitle",e.ToHaveURL="toHaveURL",e.ToHaveAttribute="toHaveAttribute",e.ToHaveCSS="toHaveCSS",e.ToHaveJSProperty="toHaveJSProperty",e.ToHaveCount="toHaveCount",e.ToHaveValues="toHaveValues",e.ToMatchAriaSnapshot="toMatchAriaSnapshot",e}({});const Mb=e=>e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g,"$1 $2").replace(/^./,(e=>e.toUpperCase())),Db=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{value:e,label:Mb(e),fields:[...t,{name:"soft",type:"boolean",group:"checkboxes"},{name:"not",type:"boolean",group:"checkboxes"}]}},Lb=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Db(e,n.map((e=>({name:e,type:"string"}))))},jb=[...[Pb.ToBeAttached,Pb.ToBeChecked,Pb.ToBeDisabled,Pb.ToBeEditable,Pb.ToBeEmpty,Pb.ToBeEnabled,Pb.ToBeFocused,Pb.ToBeHidden,Pb.ToBeInViewport,Pb.ToBeVisible,Pb.ToMatchAriaSnapshot].map((e=>Db(e))),Lb(Pb.ToContainText,"text"),Lb(Pb.ToHaveAccessibleDescription,"name"),Lb(Pb.ToHaveClass,"className"),Lb(Pb.ToHaveId,"id"),Lb(Pb.ToHaveRole,"role"),Lb(Pb.ToHaveScreenshot,"name"),Lb(Pb.ToHaveText,"text"),Lb(Pb.ToHaveValue,"value"),Lb(Pb.ToHaveTitle,"title"),Lb(Pb.ToHaveURL,"url"),Lb(Pb.ToHaveAttribute,"name","value"),Lb(Pb.ToHaveCSS,"property","value"),Lb(Pb.ToHaveJSProperty,"propertyName","value"),Db(Pb.ToHaveCount,[{name:"count",type:"number"}]),Db(Pb.ToHaveValues,[{name:"values",type:"string[]"}])],Nb=Ob().shape({matcher:mb().oneOf(jb.map((e=>e.value)),"Invalid matcher").required("Matcher is required"),locator:mb(),thought:mb()}),Fb=(e,t)=>{const n=jb.find((t=>{let{value:n}=t;return n===e}));if(!n)throw console.log("Unknown matcher: ".concat(e)),new Error("Unknown matcher: ".concat(e));const r=t.not,o=n.fields.filter((e=>{let{name:t}=e;return"not"!==t&&"soft"!==t})).map((e=>{const n=t[e.name];if(void 0===n)return"";switch(e.type){case"string":default:return"'".concat(n,"'");case"number":case"boolean":return n;case"string[]":return"[".concat(n.toString().split(",").map((e=>"'".concat(e.trim(),"'"))).join(", "),"]")}})).filter(Boolean).join(", ");return"".concat(r?"not.":"").concat(e,"(").concat(o,")")},zb=async(e,t)=>{let n={matcher:"toBeVisible()"};if(tp.getState().settings.useCodeBasedSteps){if(n=await WU(e.codeValue,t.id,Zo.Assertion,t.timestamp),!n)return}else n.matcher=Fb(e.matcher,e.dynamicFields);const r=(0,g.A)((0,g.A)({},t),n);return(0,g.A)((0,g.A)({},r),{},{isSoft:!!e.dynamicFields.soft,timestamp:e.timestamp,actionId:t.actionId,codeContext:n.codeContext})},Bb=e=>(0,g.A)((0,g.A)({codeValue:""},e),{},{locator:(null===e||void 0===e?void 0:e.locator)||"",thought:null===e||void 0===e?void 0:e.thought},(e=>{if(!e)return{matcher:"toBeVisible",dynamicFields:{}};let t=e.matcher,n=!1;t.startsWith("not.")&&(n=!0,t=t.slice(4));const r=(e=>{const t=e.match(/^(\w+)\(([\s\S]*)\)$/);if(!t)return{match:!1};const[,n,r]=t;return{fnArguments:r,functionName:n,match:!0}})(t);if(!r.match)throw new Error("Invalid matcher format: ".concat(e.matcher));const{fnArguments:o,functionName:i}=r,a=""===o?[]:o.split(",").map((e=>e.trim())),s=jb.find((e=>{let{value:t}=e;return t===i}));if(!s)throw console.log("Unknown matcher: ".concat(i)),new Error("Unknown matcher: ".concat(i));const l=s.fields.filter((e=>{let{name:t}=e;return"not"!==t&&"soft"!==t})).reduce(((e,t,n)=>(void 0!==a[n]&&(e[t.name]=a[n].replace(/^['"](.*)['"]$/,"$1")),e)),{});return l.not=!!n,l.soft=!!e.isSoft,{matcher:i,dynamicFields:l}})(e)),Vb=function(){let{actionId:e,assertionId:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[n,r]=rE(),[o,a]=nE(),[s,l]=oE(),[c,u]=ZC(),d=iV(),f=uV(),p=hW(),h=(0,i.useCallback)((e=>{if(!e&&!t)throw new Error("An 'assertionId' is required.");return null!==e&&void 0!==e?e:t}),[t]),m=(0,i.useCallback)((async e=>{let{id:t,data:r,options:o}=e;return(await n({id:h(t),data:r,options:o}).unwrap()).step}),[h,n]),v=(0,i.useCallback)((async t=>{let{actionId:n=e,data:r,id:i=r.id,options:a}=t;return(await o({id:h(i),data:r,options:a}).unwrap()).step}),[e,o,h]),y=(0,i.useRef)(null),b=(0,i.useCallback)((async t=>{var n;let{actionId:r=e,data:o,id:i,options:a}=t;const s=null!==(n=o.codeValue)&&void 0!==n?n:p(h(i)),l=c({id:h(i),data:(0,g.A)((0,g.A)({},o),{},{codeValue:s}),options:a});return y.current=l.abort,l.unwrap()}),[p,e,c,h]),w=(0,i.useCallback)((e=>{let{id:n=t,options:r}=e;const o=h(n),i=f.findNeighbourStepId(o);s({id:o,options:r}),i&&d(i,{origin:Qo.Step,useTemporaryTab:!0})}),[e,t,h,s,d,f]);return(0,i.useMemo)((()=>({[sW.Create]:{state:CW(r),handler:m},[sW.Update]:{state:CW(a),handler:v},[sW.Execute]:{state:CW(u),handler:b,abortMutation:y.current},[sW.Delete]:{state:CW(l),handler:w}})),[r,m,a,v,u,b,l,w])};let Ub=function(e){return e.File="file",e.Text="text",e.Number="number",e.Locator="locator",e.Checkbox="checkbox",e.Code="code",e.Dropdown="dropdown",e}({});const Wb=[{name:"soft",label:"Soft",type:Ub.Checkbox,defaultChecked:!1,group:"checkboxes",usePrefixFieldNamePrefix:!0},{name:"not",label:"Not",type:Ub.Checkbox,defaultChecked:!1,group:"checkboxes",usePrefixFieldNamePrefix:!0}],qb=[{type:Ub.Locator,name:"locator",label:"Locator"}],Hb=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{withLocator:t=!0,WithCheckboxes:n=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,g.A)((0,g.A)({locators:t?qb:void 0},e),{},{checkboxes:n?Wb:void 0})},Yb={[Pb.ToBeAttached]:Hb(),[Pb.ToBeChecked]:Hb(),[Pb.ToBeDisabled]:Hb(),[Pb.ToBeEditable]:Hb(),[Pb.ToBeEmpty]:Hb(),[Pb.ToBeEnabled]:Hb(),[Pb.ToBeFocused]:Hb(),[Pb.ToBeHidden]:Hb(),[Pb.ToBeInViewport]:Hb(),[Pb.ToBeVisible]:Hb(),[Pb.ToContainText]:Hb({inputs:[{type:Ub.Text,name:"text",label:"Text",usePrefixFieldNamePrefix:!0}]}),[Pb.ToHaveAccessibleDescription]:Hb({inputs:[{type:Ub.Text,name:"description",label:"Description",usePrefixFieldNamePrefix:!0}]}),[Pb.ToHaveAccessibleName]:Hb({inputs:[{type:Ub.Text,name:"name",label:"Name",usePrefixFieldNamePrefix:!0}]}),[Pb.ToHaveClass]:Hb({inputs:[{type:Ub.Text,name:"className",label:"Class",usePrefixFieldNamePrefix:!0}]}),[Pb.ToHaveId]:Hb({inputs:[{type:Ub.Text,name:"id",label:"Id",usePrefixFieldNamePrefix:!0}]}),[Pb.ToHaveRole]:Hb({inputs:[{type:Ub.Text,name:"role",label:"Role",usePrefixFieldNamePrefix:!0}]}),[Pb.ToHaveScreenshot]:Hb({inputs:[{type:Ub.Text,name:"name",label:"Name",usePrefixFieldNamePrefix:!0}]}),[Pb.ToHaveText]:Hb({inputs:[{type:Ub.Text,name:"text",label:"Text",usePrefixFieldNamePrefix:!0}]}),[Pb.ToHaveValue]:Hb({inputs:[{type:Ub.Text,name:"value",label:"Value",usePrefixFieldNamePrefix:!0}]}),[Pb.ToHaveTitle]:Hb({inputs:[{type:Ub.Text,name:"title",label:"Title",usePrefixFieldNamePrefix:!0}]}),[Pb.ToHaveURL]:Hb({inputs:[{type:Ub.Text,name:"url",label:"Url",usePrefixFieldNamePrefix:!0}]}),[Pb.ToHaveAttribute]:Hb({inputs:[{type:Ub.Text,name:"name",label:"Name",usePrefixFieldNamePrefix:!0},{type:Ub.Text,name:"value",label:"Value",usePrefixFieldNamePrefix:!0}]}),[Pb.ToHaveCSS]:Hb({inputs:[{type:Ub.Text,name:"property",label:"Property",usePrefixFieldNamePrefix:!0},{type:Ub.Text,name:"value",label:"Value",usePrefixFieldNamePrefix:!0}]}),[Pb.ToHaveJSProperty]:Hb({inputs:[{type:Ub.Text,name:"propertyName",label:"Property Name",usePrefixFieldNamePrefix:!0},{type:Ub.Text,name:"value",label:"Value",usePrefixFieldNamePrefix:!0}]}),[Pb.ToHaveCount]:Hb({inputs:[{type:Ub.Number,name:"count",label:"Count",usePrefixFieldNamePrefix:!0}]}),[Pb.ToHaveValues]:Hb({inputs:[{type:Ub.Text,name:"values",label:"Values",usePrefixFieldNamePrefix:!0}]})};function Gb(e){var t=(0,i.useRef)();return(0,i.useEffect)((function(){t.current=e})),t.current}var Kb=__webpack_require__(2747);function $b(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=(0,i.useRef)(e);(0,i.useEffect)((()=>{r.current=e}),[e]);const o=(0,i.useCallback)((0,Kb.debounce)((function(){return r.current(...arguments)}),t,n),[]);return o}var Qb=__webpack_require__(665);function Xb(e){return(0,Ee.Ay)("MuiDialog",e)}const Jb=(0,L.A)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);const Zb=i.createContext({}),ew=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],tw=(0,U.Ay)(Nm,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),nw=(0,U.Ay)(Jm,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),rw=(0,U.Ay)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t["scroll".concat((0,V.A)(n.scroll))]]}})((e=>{let{ownerState:t}=e;return(0,w.A)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})})),ow=(0,U.Ay)(Ot,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t["scrollPaper".concat((0,V.A)(n.scroll))],t["paperWidth".concat((0,V.A)(String(n.maxWidth)))],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((e=>{let{theme:t,ownerState:n}=e;return(0,w.A)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===n.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===n.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!n.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===n.maxWidth&&{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):"max(".concat(t.breakpoints.values.xs).concat(t.breakpoints.unit,", 444px)"),["&.".concat(Jb.paperScrollBody)]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},n.maxWidth&&"xs"!==n.maxWidth&&{maxWidth:"".concat(t.breakpoints.values[n.maxWidth]).concat(t.breakpoints.unit),["&.".concat(Jb.paperScrollBody)]:{[t.breakpoints.down(t.breakpoints.values[n.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},n.fullWidth&&{width:"calc(100% - 64px)"},n.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,["&.".concat(Jb.paperScrollBody)]:{margin:0,maxWidth:"100%"}})})),iw=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiDialog"}),r=Ni(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:l,BackdropProps:c,children:u,className:d,disableEscapeKeyDown:f=!1,fullScreen:p=!1,fullWidth:h=!1,maxWidth:m="sm",onBackdropClick:g,onClick:v,onClose:y,open:b,PaperComponent:S=Ot,PaperProps:_={},scroll:k="paper",TransitionComponent:C=Mm,transitionDuration:E=o,TransitionProps:O}=n,T=(0,x.A)(n,ew),I=(0,w.A)({},n,{disableEscapeKeyDown:f,fullScreen:p,fullWidth:h,maxWidth:m,scroll:k}),P=(e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container","scroll".concat((0,V.A)(n))],paper:["paper","paperScroll".concat((0,V.A)(n)),"paperWidth".concat((0,V.A)(String(r))),o&&"paperFullWidth",i&&"paperFullScreen"]};return(0,z.A)(a,Xb,t)})(I),M=i.useRef(),D=(0,Qb.A)(s),L=i.useMemo((()=>({titleId:D})),[D]);return(0,R.jsx)(nw,(0,w.A)({className:(0,A.A)(P.root,d),closeAfterTransition:!0,components:{Backdrop:tw},componentsProps:{backdrop:(0,w.A)({transitionDuration:E,as:l},c)},disableEscapeKeyDown:f,onClose:y,open:b,ref:t,onClick:e=>{v&&v(e),M.current&&(M.current=null,g&&g(e),y&&y(e,"backdropClick"))},ownerState:I},T,{children:(0,R.jsx)(C,(0,w.A)({appear:!0,in:b,timeout:E,role:"presentation"},O,{children:(0,R.jsx)(rw,{className:(0,A.A)(P.container),onMouseDown:e=>{M.current=e.target===e.currentTarget},ownerState:I,children:(0,R.jsx)(ow,(0,w.A)({as:S,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":D},_,{className:(0,A.A)(P.paper,_.className),ownerState:I,children:(0,R.jsx)(Zb.Provider,{value:L,children:u})}))})}))}))}));function aw(e){return(0,Ee.Ay)("MuiDialogTitle",e)}const sw=(0,L.A)("MuiDialogTitle",["root"]),lw=["className","id"],cw=(0,U.Ay)(tt,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),uw=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiDialogTitle"}),{className:r,id:o}=n,a=(0,x.A)(n,lw),s=n,l=(e=>{const{classes:t}=e;return(0,z.A)({root:["root"]},aw,t)})(s),{titleId:c=o}=i.useContext(Zb);return(0,R.jsx)(cw,(0,w.A)({component:"h2",className:(0,A.A)(l.root,r),ownerState:s,ref:t,variant:"h6",id:null!=o?o:c},a))}));function dw(e){return(0,Ee.Ay)("MuiDialogContent",e)}(0,L.A)("MuiDialogContent",["root","dividers"]);const fw=["className","dividers"],pw=(0,U.Ay)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})((e=>{let{theme:t,ownerState:n}=e;return(0,w.A)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},n.dividers?{padding:"16px 24px",borderTop:"1px solid ".concat((t.vars||t).palette.divider),borderBottom:"1px solid ".concat((t.vars||t).palette.divider)}:{[".".concat(sw.root," + &")]:{paddingTop:0}})})),hw=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiDialogContent"}),{className:r,dividers:o=!1}=n,i=(0,x.A)(n,fw),a=(0,w.A)({},n,{dividers:o}),s=(e=>{const{classes:t,dividers:n}=e,r={root:["root",n&&"dividers"]};return(0,z.A)(r,dw,t)})(a);return(0,R.jsx)(pw,(0,w.A)({className:(0,A.A)(s.root,r),ownerState:a,ref:t},i))}));function mw(e){return(0,Ee.Ay)("MuiFormGroup",e)}(0,L.A)("MuiFormGroup",["root","row","error"]);const gw=["className","row"],vw=(0,U.Ay)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})((e=>{let{ownerState:t}=e;return(0,w.A)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"})})),yw=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiFormGroup"}),{className:r,row:o=!1}=n,i=(0,x.A)(n,gw),a=Wa({props:n,muiFormControl:Y(),states:["error"]}),s=(0,w.A)({},n,{row:o,error:a.error}),l=(e=>{const{classes:t,row:n,error:r}=e,o={root:["root",n&&"row",r&&"error"]};return(0,z.A)(o,mw,t)})(s);return(0,R.jsx)(vw,(0,w.A)({className:(0,A.A)(l.root,r),ownerState:s,ref:t},i))})),bw=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],ww=(0,U.Ay)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((e=>{let{theme:t,ownerState:n}=e;return(0,w.A)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},n.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},n.light&&{borderColor:t.vars?"rgba(".concat(t.vars.palette.dividerChannel," / 0.08)"):(0,B.X4)(t.palette.divider,.08)},"inset"===n.variant&&{marginLeft:72},"middle"===n.variant&&"horizontal"===n.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===n.variant&&"vertical"===n.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===n.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},n.flexItem&&{alignSelf:"stretch",height:"auto"})}),(e=>{let{ownerState:t}=e;return(0,w.A)({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})}),(e=>{let{theme:t,ownerState:n}=e;return(0,w.A)({},n.children&&"vertical"!==n.orientation&&{"&::before, &::after":{width:"100%",borderTop:"thin solid ".concat((t.vars||t).palette.divider),borderTopStyle:"inherit"}})}),(e=>{let{theme:t,ownerState:n}=e;return(0,w.A)({},n.children&&"vertical"===n.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:"thin solid ".concat((t.vars||t).palette.divider),borderLeftStyle:"inherit"}})}),(e=>{let{ownerState:t}=e;return(0,w.A)({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})})),xw=(0,U.Ay)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((e=>{let{theme:t,ownerState:n}=e;return(0,w.A)({display:"inline-block",paddingLeft:"calc(".concat(t.spacing(1)," * 1.2)"),paddingRight:"calc(".concat(t.spacing(1)," * 1.2)")},"vertical"===n.orientation&&{paddingTop:"calc(".concat(t.spacing(1)," * 1.2)"),paddingBottom:"calc(".concat(t.spacing(1)," * 1.2)")})})),Aw=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:f="fullWidth"}=n,p=(0,x.A)(n,bw),h=(0,w.A)({},n,{absolute:r,component:a,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:f}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e,c={root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]};return(0,z.A)(c,bg,r)})(h);return(0,R.jsx)(ww,(0,w.A)({as:a,className:(0,A.A)(m.root,i),role:u,ref:t,ownerState:h},p,{children:o?(0,R.jsx)(xw,{className:m.wrapper,ownerState:h,children:o}):null}))}));Aw.muiSkipListHighlight=!0;const Sw=Aw,_w=sp.injectEndpoints({endpoints:e=>({updateSettings:e.mutation({query:e=>({method:"POST",url:"/settings",body:e,successToastMessage:"Settings have been successfully updated"})}),getEditorTypes:e.mutation({query:e=>({url:"/monaco/editor/types",method:"POST",body:e})}),getSettings:e.query({query:()=>({url:"/settings",method:"GET"}),onQueryStarted:async(e,t)=>{const n=await t.queryFulfilled;"data"in n&&t.dispatch(Iw(n.data))}})})}),{useUpdateSettingsMutation:kw,useGetSettingsQuery:Cw,useGetEditorTypesMutation:Ew,endpoints:Ow}=_w,Tw=Jr({name:"settings",initialState:{autoGenerateAssertions:null,autoGenerateThoughts:null,optimizeLocators:null,useOptimizedLocatorDefault:null,autoLogin:null,autoRunSteps:null,disableAutoGenerateAssertions:null,disableGenerateThoughts:null,disableAILocators:null,useCodeBasedSteps:null,displayUIInspector:null,mergeCustomCodeSteps:null,useVariableTransformation:null},reducers:{updateSettings:(e,t)=>Object.assign(e,t.payload)}}),{updateSettings:Iw}=Tw.actions,Rw=Tw.reducer,Pw=e=>{let{onClose:t}=e;const n=jw(),r=(0,i.useRef)(n),o=Kt(),{isServerReadyToInteract:a}=un(),{isLoading:s}=Cw(void 0,{skip:!a}),[l,{isLoading:c}]=kw(),u=s||c,d=(0,i.useCallback)((e=>{o(Iw({autoLogin:e.target.checked})),e.target.checked||o(Iw({autoRunSteps:e.target.checked}))}),[o]),f=(0,i.useCallback)((e=>{o(Iw({autoRunSteps:e.target.checked})),e.target.checked&&o(Iw({autoLogin:e.target.checked}))}),[o]),p=(0,i.useCallback)((e=>{o(Iw({optimizeLocators:e.target.checked}))}),[o]),h=(0,i.useCallback)((e=>{o(Iw({useOptimizedLocatorDefault:e.target.checked}))}),[o]),m=(0,i.useCallback)((e=>{o(Iw({autoGenerateAssertions:e.target.checked}))}),[o]),g=(0,i.useCallback)((e=>{o(Iw({autoGenerateThoughts:e.target.checked}))}),[o]),v=(0,i.useCallback)((e=>{o(Iw({displayUIInspector:e.target.checked}))}),[o]),y=(0,i.useCallback)((e=>{o(Iw({mergeCustomCodeSteps:e.target.checked}))}),[o]),b=(0,i.useCallback)((e=>{o(Iw({useVariableTransformation:e.target.checked}))}),[o]),w=(0,i.useCallback)((()=>{Mw(n,r.current)&&l(n).then((()=>{r.current=n})),t()}),[n,r,l,t]),{disabled:x,toggleVTGStepsMode:A,tooltipMessage:S}=(e=>{let{settings:t}=e;const n=Kt(),r=Zz(),o=t.useCodeBasedSteps,{disabled:a,tooltipMessage:s}=(0,i.useMemo)((()=>{const e=Object.keys(r).length>0&&o;let t="Use ".concat(o?"fields":"code"," based forms");return e&&(t="Some steps are updating, field based form is unavailable. Please wait"),{disabled:e,tooltipMessage:t}}),[r,o]);return{toggleVTGStepsMode:(0,i.useCallback)((e=>{console.log(e.target),n(Iw({useCodeBasedSteps:e.target.checked}))}),[n]),disabled:a,tooltipMessage:s}})({settings:n}),_=(0,i.useMemo)((()=>ep.A.devToolsInspector.enabled),[]);return{settings:n,handleAutoGenerateAssertionsChange:m,handleAutoGenerateActionThoughtsChange:g,handleAutoLoginChange:d,handleAutoRunStepsChange:f,handleOptimizeLocatorsChange:p,handleUseOptimizedLocatorChange:h,handleClose:w,handleDisplayUIInspectorChange:v,handleMergeCustomCodeStepsChange:y,devToolsInspectorEnabled:_,isSettingsLoading:u,vtgStepsModeDisabled:x,toggleVTGStepsMode:A,vtgStepsModeTooltipMessage:S,handleUseVariableTransformationChange:b}},Mw=(e,t)=>Object.keys(e).some((n=>e[n]!==t[n])),Dw=e=>{let{isOpen:t,onClose:n}=e;const{settings:r,handleAutoLoginChange:o,handleAutoRunStepsChange:i,handleOptimizeLocatorsChange:a,handleUseOptimizedLocatorChange:s,handleClose:l,handleAutoGenerateAssertionsChange:c,handleAutoGenerateActionThoughtsChange:u,handleMergeCustomCodeStepsChange:d,handleUseVariableTransformationChange:f,vtgStepsModeDisabled:p,toggleVTGStepsMode:h,vtgStepsModeTooltipMessage:m,handleDisplayUIInspectorChange:g,devToolsInspectorEnabled:v}=Pw({onClose:n});return(0,rs.FD)(iw,{open:t,onClose:l,"data-testid":Ng.SettingsModal,children:[(0,rs.Y)(uw,{children:"Settings"}),(0,rs.Y)(hw,{children:(0,rs.FD)(yw,{children:[(0,rs.Y)(tt,{variant:"caption",children:"Run options"}),(0,rs.Y)(Ga,{control:(0,rs.Y)($e,{checked:r.autoLogin,onChange:o,"data-testid":Fg.AutoLogin}),label:"Auto login"}),(0,rs.Y)(Ga,{control:(0,rs.Y)($e,{checked:r.autoRunSteps,onChange:i,"data-testid":Fg.AutoRunSteps}),label:"Auto run steps"}),(0,rs.Y)(Sw,{sx:{mb:2}}),(0,rs.Y)(tt,{variant:"caption",children:"AI options"}),(0,rs.Y)(Ga,{control:(0,rs.Y)($e,{disabled:r.disableAutoGenerateAssertions,checked:r.autoGenerateAssertions,onChange:c,"data-testid":Fg.CreateAssertionsWithAI}),label:"Create assertions with AI".concat(r.disableAutoGenerateAssertions?" (disabled by env var)":"")}),(0,rs.Y)(Ga,{control:(0,rs.Y)($e,{disabled:r.disableGenerateThoughts,checked:r.autoGenerateThoughts,onChange:u,"data-testid":Fg.CreateThoughtsWithAI}),label:"Create thoughts with AI".concat(r.disableGenerateThoughts?" (disabled by env var)":"")}),(0,rs.Y)(Ga,{control:(0,rs.Y)($e,{checked:r.optimizeLocators,onChange:a,"data-testid":Fg.OptimizeLocators}),label:"Optimize locators"}),null,(0,rs.Y)(Sw,{sx:{mb:2}}),(0,rs.Y)(tt,{variant:"caption",children:"Code options"}),(0,rs.Y)(pm,{title:m,placement:"left-start",children:(0,rs.Y)("span",{children:(0,rs.Y)(Ga,{control:(0,rs.Y)($e,{checked:r.useCodeBasedSteps,onChange:h,disabled:p,"data-testid":Fg.UseCodeBasedSteps}),label:"Use code based steps forms"})})}),(0,rs.Y)(Ga,{control:(0,rs.Y)($e,{checked:r.mergeCustomCodeSteps,onChange:d}),label:"Merge custom code steps"}),(0,rs.Y)(Ga,{control:(0,rs.Y)($e,{checked:r.useVariableTransformation,onChange:f}),label:"Use variable transformation"}),(0,rs.Y)(Sw,{sx:{mb:2}}),(0,rs.Y)(tt,{variant:"caption",children:"Advanced options"}),v?[(0,rs.Y)(Sw,{sx:{mb:2}},"0"),(0,rs.Y)(Ga,{control:(0,rs.Y)($e,{checked:r.displayUIInspector,onChange:g}),label:"Display devtools Inspector"},"1")]:null]})})]})},Lw=e=>e.settings,jw=()=>(0,o.d4)(Lw),Nw=["thought"],Fw=e=>{try{const t=e.split("\n");return t[0].startsWith("Error:")&&t.shift(),t.join("\n")}catch(t){return console.warn("Error sanitizing error message:",t),e}},zw=e=>{let{locator:t,parentFramesSelectors:n=[]}=e;return n.reverse().reduce(((e,t)=>"frameLocator('".concat(t,"').").concat(e)),t)},Bw="inspector-selection",Vw=(0,Fe.A)((0,R.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility"),Uw=e=>Vw,Ww=e=>{let{id:t,replayerActions:n}=e;const{delete:r}=Vb({assertionId:t}),{currentStep:o}=AI(),a=Jz(),s=iV(),l=uV();return{handleDelete:(0,i.useCallback)((async e=>{e&&e.preventDefault&&e.preventDefault();const{step:i}=l.findNextStepDataById(t);IW({id:t,currentStep:o,replayerActions:n,deleteHandler:async()=>r.handler({id:t}),activeStep:a,activateStep:s,nextStep:i})}),[r,t,n,o,a,s,l])}},qw=e=>{let{id:t,isTabActive:n,replayerActions:r}=e;const o=RC(t),a=mO(null===o||void 0===o?void 0:o.actionId),s=(0,i.useMemo)((()=>Bb(o)),[o]),l=jw().useCodeBasedSteps,[c,u]=(0,i.useState)(s.matcher),d=function(){let{actionId:e,assertionId:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=Kt(),r=Vb({actionId:e,assertionId:t}),o=(0,i.useCallback)((async e=>{let{data:t,options:n}=e;try{const e=await r[sW.Execute].handler({data:t,options:(0,g.A)((0,g.A)({},n),{},{target:"time-machine"})});return"data"in e&&(e.success||Zf.error(e.message)),e}catch(o){console.error("Error playing assertion:",o),Zf.error(o instanceof Error?o.message:String(o))}}),[r[sW.Execute]]),a=(0,i.useCallback)((async(e,t)=>{const n=Fb(e.matcher,e.dynamicFields);return(0,g.A)((0,g.A)({},t),{},{locator:e.locator,matcher:n})}),[]),s=(0,i.useCallback)((e=>{r[sW.Update].handler((0,g.A)((0,g.A)({},e),{},{options:(0,g.A)((0,g.A)({},e.options),{},{preventIncreaseCodeBasedStepsSavingCount:!0})}))}),[n,t,r]),l=(0,i.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{id:t};n(xi(e.id)),r[sW.Delete].handler(e)}),[n,t,r[sW.Delete]]);return(0,i.useMemo)((()=>(0,g.A)((0,g.A)({},r),{},{[sW.Create]:(0,g.A)((0,g.A)({},r[sW.Create]),{},{transformer:zb}),[sW.Update]:(0,g.A)((0,g.A)({},r[sW.Update]),{},{handler:s,transformer:zb}),[sW.Execute]:(0,g.A)((0,g.A)({},r[sW.Execute]),{},{handler:o,transformer:(e,t)=>a(e,t)}),[sW.Delete]:(0,g.A)((0,g.A)({},r[sW.Delete]),{},{handler:l})})),[l,o,r,a,s])}({actionId:null===a||void 0===a?void 0:a.id,assertionId:null===o||void 0===o?void 0:o.id}),f=Vb(),{methods:p,handleUpdate:h,isFormDirty:m,isLoading:v}=cW({entity:o,validationSchema:Nb,defaultValuesGenerator:Bb,mutations:d,allowedKeys:["locator","alternateLocators","thought","codeValue"]}),{watch:y,formState:{errors:b,dirtyFields:w},setValue:x,getValues:A,reset:S}=p,{matcherFieldsByGroup:_,initializeDynamicFields:k}=(e=>{let{setValue:t,selectedMatcher:n}=e;return{matcherFieldsByGroup:(0,i.useMemo)((()=>EW(n,Yb)),[n]),initializeDynamicFields:(0,i.useCallback)((e=>{const n=jb.find((t=>t.value===e));if(n){const e=n.fields.reduce(((e,t)=>("boolean"===t.type?e[t.name]=!1:"number"===t.type?e[t.name]=0:e[t.name]="",e)),{});t("dynamicFields",e)}else t("dynamicFields",{})}),[t])}})({setValue:x,selectedMatcher:c}),{isAssertionValid:C,assertionValidityMessage:E}=(e=>{let{executeMutation:t,setSelectedMatcher:n,initializeDynamicFields:r,watch:o,assertion:a,getValues:s}=e;const l=jw().useCodeBasedSteps,c=dW(),u=fn(),[d,f]=(0,i.useState)(null),[p,h]=(0,i.useState)(null),m=cn(),v=$b((0,i.useCallback)((async()=>{const e=(await c(a.id)).stepData,n=s();if(m!==ni.TimeMachine||u===ti.Processing)return;const r=await t.transformer(n,e);if(n.locator&&n.matcher)try{const o=await t.handler({data:(0,g.A)((0,g.A)({},r),{},{codeValue:n.codeValue}),id:e.id});f(o.success),h(o.success?null:Fw(o.message||"Unknown error"))}catch(o){console.error("Error verifying assertion:",o),f(!1)}else f(null)}),[t,a,m,u,c,s]),500);(0,i.useEffect)((()=>{let e;return e=o(l?(e,t)=>{let{name:n}=t;"codeValue"===n&&v()}:(e,t)=>{let{name:o}=t;"matcher"===o&&(n(e.matcher),r(e.matcher)),Nw.includes(o)||v()}),()=>e.unsubscribe()}),[o,r,v,n,l]);const y=Jz(),b=Gb(null===y||void 0===y?void 0:y.id);return(0,i.useEffect)((()=>{b!==(null===y||void 0===y?void 0:y.id)&&(null===y||void 0===y?void 0:y.id)===a.id&&v()}),[b,y,a,v]),(0,i.useEffect)((()=>{m===ni.TimeMachine&&v()}),[m]),(0,i.useEffect)((()=>{u!==ti.Processing&&v()}),[u]),(0,i.useEffect)((()=>{v()}),[null===y||void 0===y?void 0:y.timestamp]),(0,i.useEffect)((()=>()=>{v.cancel()}),[v]),{isAssertionValid:d,assertionValidityMessage:p}})({executeMutation:d[sW.Execute],setSelectedMatcher:u,initializeDynamicFields:k,watch:y,assertion:o,getValues:A}),{saveFormBlur:O,formRef:T}=pW({isDirty:m,data:o,getValues:A,updateMutation:d[sW.Update],reset:S});(e=>{let{setValue:t,isTabActive:n,updateMutation:r,assertion:o}=e;const a=jw().useCodeBasedSteps,s=(0,i.useCallback)((async e=>{const n=zw(e);if(a){const e=mE((0,g.A)((0,g.A)({},o),{},{locator:n}),o,{isNew:!1});await r.handler({id:o.id,data:e})}else t("locator",zw(e))}),[t,a,o,r]);wz({setSelection:s,isTabActive:n,eventName:Bw})})({assertion:o,isTabActive:n,setValue:x,updateMutation:f.update}),wW({data:o,keys:[],setValue:x});const I=(0,i.useCallback)((async e=>{try{await h(e)}catch(t){console.error("Error generating selector from locator:",t),Zf.error(t instanceof Error?t.message:String(t))}}),[h]),R=(0,i.useMemo)((()=>o?Uw(o.matcher):void 0),[o]),{handleDelete:P}=Ww({id:t,replayerActions:r});return{methods:p,setSelectedMatcher:u,initializeDynamicFields:k,isSavingAssertion:v,isAssertionValid:C,assertionValidityMessage:E,isPlayingAssertion:d[sW.Execute].state.isLoading,handleClickAway:O,assertion:o,matcherFieldsByGroup:_,action:a,handleDelete:P,handleSave:I,formRef:T,isDirty:m,isCodeBasedStepsModeActive:l,updateMutation:f.update,icon:R}};let Hw=function(e){return e.Filtered="filtered",e.WithCSSKeyFeatures="withCSSKeyFeatures",e.AI="ai",e.Calculated="calculated",e.None="none",e}({}),Yw=function(e){return e.Action="action",e.DropTarget="dropTarget",e.Assertion="assertion",e.CompoundSelector="compoundSelector",e}({}),Gw=function(e){return e.Action="action",e.Assertion="assertion",e}({});var Kw=__webpack_require__(7481);const $w=e=>{const t=i.useRef({});return i.useEffect((()=>{t.current=e})),t.current};function Qw(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Xw(e,t){for(let n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}const Jw=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(e,s)=>{let{inputValue:l,getOptionLabel:c}=s,u=a?l.trim():l;n&&(u=u.toLowerCase()),t&&(u=Qw(u));const d=u?e.filter((e=>{let r=(i||c)(e);return n&&(r=r.toLowerCase()),t&&(r=Qw(r)),"start"===o?0===r.indexOf(u):r.indexOf(u)>-1})):e;return"number"===typeof r?d.slice(0,r):d}}(),Zw=e=>{var t;return null!==e.current&&(null==(t=e.current.parentElement)?void 0:t.contains(document.activeElement))},ex=[];const tx=function(e){const{unstable_isActiveElementInListbox:t=Zw,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:c=!1,componentName:u="useAutocomplete",defaultValue:d=(e.multiple?ex:null),disableClearable:f=!1,disableCloseOnSelect:p=!1,disabled:h,disabledItemsFocusable:m=!1,disableListWrap:g=!1,filterOptions:v=Jw,filterSelectedOptions:y=!1,freeSolo:b=!1,getOptionDisabled:x,getOptionKey:A,getOptionLabel:S=e=>{var t;return null!=(t=e.label)?t:e},groupBy:_,handleHomeEndKeys:k=!e.freeSolo,id:C,includeInputInList:E=!1,inputValue:O,isOptionEqualToValue:T=(e,t)=>e===t,multiple:I=!1,onChange:R,onClose:P,onHighlightChange:M,onInputChange:D,onOpen:L,open:j,openOnFocus:N=!1,options:F,readOnly:z=!1,selectOnFocus:B=!e.freeSolo,value:V}=e,U=(0,Qb.A)(C);let W=S;W=e=>{const t=S(e);return"string"!==typeof t?String(t):t};const q=i.useRef(!1),H=i.useRef(!0),Y=i.useRef(null),G=i.useRef(null),[K,$]=i.useState(null),[Q,X]=i.useState(-1),J=o?0:-1,Z=i.useRef(J),[ee,te]=(0,Kw.A)({controlled:V,default:d,name:u}),[ne,re]=(0,Kw.A)({controlled:O,default:"",name:u,state:"inputValue"}),[oe,ie]=i.useState(!1),ae=i.useCallback(((e,t)=>{if(!(I?ee.length<t.length:null!==t)&&!l)return;let n;if(I)n="";else if(null==t)n="";else{const e=W(t);n="string"===typeof e?e:""}ne!==n&&(re(n),D&&D(e,n,"reset"))}),[W,ne,I,D,re,l,ee]),[se,le]=(0,Kw.A)({controlled:j,default:!1,name:u,state:"open"}),[ce,ue]=i.useState(!0),de=!I&&null!=ee&&ne===W(ee),fe=se&&!z,pe=fe?v(F.filter((e=>!y||!(I?ee:[ee]).some((t=>null!==t&&T(e,t))))),{inputValue:de&&ce?"":ne,getOptionLabel:W}):[],he=$w({filteredOptions:pe,value:ee,inputValue:ne});i.useEffect((()=>{const e=ee!==he.value;oe&&!e||b&&!e||ae(null,ee)}),[ee,ae,oe,he.value,b]);const me=se&&pe.length>0&&!z,ge=(0,Fm.A)((e=>{-1===e?Y.current.focus():K.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));i.useEffect((()=>{I&&Q>ee.length-1&&(X(-1),ge(-1))}),[ee,I,Q,ge]);const ve=(0,Fm.A)((e=>{let{event:t,index:r,reason:o="auto"}=e;if(Z.current=r,-1===r?Y.current.removeAttribute("aria-activedescendant"):Y.current.setAttribute("aria-activedescendant","".concat(U,"-option-").concat(r)),M&&M(t,-1===r?null:pe[r],o),!G.current)return;const i=G.current.querySelector('[role="option"].'.concat(n,"-focused"));i&&(i.classList.remove("".concat(n,"-focused")),i.classList.remove("".concat(n,"-focusVisible")));let a=G.current;if("listbox"!==G.current.getAttribute("role")&&(a=G.current.parentElement.querySelector('[role="listbox"]')),!a)return;if(-1===r)return void(a.scrollTop=0);const s=G.current.querySelector('[data-option-index="'.concat(r,'"]'));if(s&&(s.classList.add("".concat(n,"-focused")),"keyboard"===o&&s.classList.add("".concat(n,"-focusVisible")),a.scrollHeight>a.clientHeight&&"mouse"!==o&&"touch"!==o)){const e=s,t=a.clientHeight+a.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?a.scrollTop=n-a.clientHeight:e.offsetTop-e.offsetHeight*(_?1.3:0)<a.scrollTop&&(a.scrollTop=e.offsetTop-e.offsetHeight*(_?1.3:0))}})),ye=(0,Fm.A)((e=>{let{event:t,diff:n,direction:o="next",reason:i="auto"}=e;if(!fe)return;const a=function(e,t){if(!G.current||e<0||e>=pe.length)return-1;let n=e;for(;;){const r=G.current.querySelector('[data-option-index="'.concat(n,'"]')),o=!m&&(!r||r.disabled||"true"===r.getAttribute("aria-disabled"));if(r&&r.hasAttribute("tabindex")&&!o)return n;if(n="next"===t?(n+1)%pe.length:(n-1+pe.length)%pe.length,n===e)return-1}}((()=>{const e=pe.length-1;if("reset"===n)return J;if("start"===n)return 0;if("end"===n)return e;const t=Z.current+n;return t<0?-1===t&&E?-1:g&&-1!==Z.current||Math.abs(n)>1?0:e:t>e?t===e+1&&E?-1:g||Math.abs(n)>1?e:0:t})(),o);if(ve({index:a,reason:i,event:t}),r&&"reset"!==n)if(-1===a)Y.current.value=ne;else{const e=W(pe[a]);Y.current.value=e;0===e.toLowerCase().indexOf(ne.toLowerCase())&&ne.length>0&&Y.current.setSelectionRange(ne.length,e.length)}})),be=i.useCallback((()=>{if(!fe)return;const e=(()=>{if(-1!==Z.current&&he.filteredOptions&&he.filteredOptions.length!==pe.length&&he.inputValue===ne&&(I?ee.length===he.value.length&&he.value.every(((e,t)=>W(ee[t])===W(e))):(e=he.value,t=ee,(e?W(e):"")===(t?W(t):"")))){const e=he.filteredOptions[Z.current];if(e)return Xw(pe,(t=>W(t)===W(e)))}var e,t;return-1})();if(-1!==e)return void(Z.current=e);const t=I?ee[0]:ee;if(0!==pe.length&&null!=t){if(G.current)if(null==t)Z.current>=pe.length-1?ve({index:pe.length-1}):ve({index:Z.current});else{const e=pe[Z.current];if(I&&e&&-1!==Xw(ee,(t=>T(e,t))))return;const n=Xw(pe,(e=>T(e,t)));-1===n?ye({diff:"reset"}):ve({index:n})}}else ye({diff:"reset"})}),[pe.length,!I&&ee,y,ye,ve,fe,ne,I]),we=(0,Fm.A)((e=>{(0,Wh.A)(G,e),e&&be()}));i.useEffect((()=>{be()}),[be]);const xe=e=>{se||(le(!0),ue(!0),L&&L(e))},Ae=(e,t)=>{se&&(le(!1),P&&P(e,t))},Se=(e,t,n,r)=>{if(I){if(ee.length===t.length&&ee.every(((e,n)=>e===t[n])))return}else if(ee===t)return;R&&R(e,t,n,r),te(t)},_e=i.useRef(!1),ke=function(e,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"selectOption",o=t;if(I){o=Array.isArray(ee)?ee.slice():[];const e=Xw(o,(e=>T(t,e)));-1===e?o.push(t):"freeSolo"!==n&&(o.splice(e,1),r="removeOption")}ae(e,o),Se(e,o,r,{option:t}),p||e&&(e.ctrlKey||e.metaKey)||Ae(e,r),(!0===s||"touch"===s&&_e.current||"mouse"===s&&!_e.current)&&Y.current.blur()},Ce=(e,t)=>{if(!I)return;""===ne&&Ae(e,"toggleInput");let n=Q;-1===Q?""===ne&&"previous"===t&&(n=ee.length-1):(n+="next"===t?1:-1,n<0&&(n=0),n===ee.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;let n=e;for(;;){if("next"===t&&n===ee.length||"previous"===t&&-1===n)return-1;const e=K.querySelector('[data-tag-index="'.concat(n,'"]'));if(e&&e.hasAttribute("tabindex")&&!e.disabled&&"true"!==e.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),X(n),ge(n)},Ee=e=>{q.current=!0,re(""),D&&D(e,"","clear"),Se(e,I?[]:null,"clear")},Oe=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(-1!==Q&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(X(-1),ge(-1)),229!==t.which))switch(t.key){case"Home":fe&&k&&(t.preventDefault(),ye({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":fe&&k&&(t.preventDefault(),ye({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),ye({diff:-5,direction:"previous",reason:"keyboard",event:t}),xe(t);break;case"PageDown":t.preventDefault(),ye({diff:5,direction:"next",reason:"keyboard",event:t}),xe(t);break;case"ArrowDown":t.preventDefault(),ye({diff:1,direction:"next",reason:"keyboard",event:t}),xe(t);break;case"ArrowUp":t.preventDefault(),ye({diff:-1,direction:"previous",reason:"keyboard",event:t}),xe(t);break;case"ArrowLeft":Ce(t,"previous");break;case"ArrowRight":Ce(t,"next");break;case"Enter":if(-1!==Z.current&&fe){const e=pe[Z.current],n=!!x&&x(e);if(t.preventDefault(),n)return;ke(t,e,"selectOption"),r&&Y.current.setSelectionRange(Y.current.value.length,Y.current.value.length)}else b&&""!==ne&&!1===de&&(I&&t.preventDefault(),ke(t,ne,"createOption","freeSolo"));break;case"Escape":fe?(t.preventDefault(),t.stopPropagation(),Ae(t,"escape")):c&&(""!==ne||I&&ee.length>0)&&(t.preventDefault(),t.stopPropagation(),Ee(t));break;case"Backspace":if(I&&!z&&""===ne&&ee.length>0){const e=-1===Q?ee.length-1:Q,n=ee.slice();n.splice(e,1),Se(t,n,"removeOption",{option:ee[e]})}break;case"Delete":if(I&&!z&&""===ne&&ee.length>0&&-1!==Q){const e=Q,n=ee.slice();n.splice(e,1),Se(t,n,"removeOption",{option:ee[e]})}}},Te=e=>{ie(!0),N&&!q.current&&xe(e)},Ie=e=>{t(G)?Y.current.focus():(ie(!1),H.current=!0,q.current=!1,a&&-1!==Z.current&&fe?ke(e,pe[Z.current],"blur"):a&&b&&""!==ne?ke(e,ne,"blur","freeSolo"):l&&ae(e,ee),Ae(e,"blur"))},Re=e=>{const t=e.target.value;ne!==t&&(re(t),ue(!1),D&&D(e,t,"input")),""===t?f||I||Se(e,null,"clear"):xe(e)},Pe=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));Z.current!==t&&ve({event:e,index:t,reason:"mouse"})},Me=e=>{ve({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"touch"}),_e.current=!0},De=e=>{const t=Number(e.currentTarget.getAttribute("data-option-index"));ke(e,pe[t],"selectOption"),_e.current=!1},Le=e=>t=>{const n=ee.slice();n.splice(e,1),Se(t,n,"removeOption",{option:ee[e]})},je=e=>{se?Ae(e,"toggleInput"):xe(e)},Ne=e=>{e.currentTarget.contains(e.target)&&e.target.getAttribute("id")!==U&&e.preventDefault()},Fe=e=>{e.currentTarget.contains(e.target)&&(Y.current.focus(),B&&H.current&&Y.current.selectionEnd-Y.current.selectionStart===0&&Y.current.select(),H.current=!1)},ze=e=>{h||""!==ne&&se||je(e)};let Be=b&&ne.length>0;Be=Be||(I?ee.length>0:null!==ee);let Ve=pe;if(_){new Map;Ve=pe.reduce(((e,t,n)=>{const r=_(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e}),[])}return h&&oe&&Ie(),{getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,w.A)({"aria-owns":me?"".concat(U,"-listbox"):null},e,{onKeyDown:Oe(e),onMouseDown:Ne,onClick:Fe})},getInputLabelProps:()=>({id:"".concat(U,"-label"),htmlFor:U}),getInputProps:()=>({id:U,value:ne,onBlur:Ie,onFocus:Te,onChange:Re,onMouseDown:ze,"aria-activedescendant":fe?"":null,"aria-autocomplete":r?"both":"list","aria-controls":me?"".concat(U,"-listbox"):void 0,"aria-expanded":me,autoComplete:"off",ref:Y,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Ee}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:je}),getTagProps:e=>{let{index:t}=e;return(0,w.A)({key:t,"data-tag-index":t,tabIndex:-1},!z&&{onDelete:Le(t)})},getListboxProps:()=>({role:"listbox",id:"".concat(U,"-listbox"),"aria-labelledby":"".concat(U,"-label"),ref:we,onMouseDown:e=>{e.preventDefault()}}),getOptionProps:e=>{let{index:t,option:n}=e;var r;const o=(I?ee:[ee]).some((e=>null!=e&&T(n,e))),i=!!x&&x(n);return{key:null!=(r=null==A?void 0:A(n))?r:W(n),tabIndex:-1,role:"option",id:"".concat(U,"-option-").concat(t),onMouseMove:Pe,onClick:De,onTouchStart:Me,"data-option-index":t,"aria-disabled":i,"aria-selected":o}},id:U,inputValue:ne,value:ee,dirty:Be,expanded:fe&&K,popupOpen:fe,focused:oe||-1!==Q,anchorEl:K,setAnchorEl:$,focusedTag:Q,groupedOptions:Ve}};function nx(e){return(0,Ee.Ay)("MuiListSubheader",e)}(0,L.A)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const rx=["className","color","component","disableGutters","disableSticky","inset"],ox=(0,U.Ay)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t["color".concat((0,V.A)(n.color))],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((e=>{let{theme:t,ownerState:n}=e;return(0,w.A)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===n.color&&{color:(t.vars||t).palette.primary.main},"inherit"===n.color&&{color:"inherit"},!n.disableGutters&&{paddingLeft:16,paddingRight:16},n.inset&&{paddingLeft:72},!n.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper})})),ix=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiListSubheader"}),{className:r,color:o="default",component:i="li",disableGutters:a=!1,disableSticky:s=!1,inset:l=!1}=n,c=(0,x.A)(n,rx),u=(0,w.A)({},n,{color:o,component:i,disableGutters:a,disableSticky:s,inset:l}),d=(e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,a={root:["root","default"!==n&&"color".concat((0,V.A)(n)),!r&&"gutters",o&&"inset",!i&&"sticky"]};return(0,z.A)(a,nx,t)})(u);return(0,R.jsx)(ox,(0,w.A)({as:i,className:(0,A.A)(d.root,r),ref:t,ownerState:u},c))}));ix.muiSkipListHighlight=!0;const ax=ix,sx=(0,Fe.A)((0,R.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function lx(e){return(0,Ee.Ay)("MuiChip",e)}const cx=(0,L.A)("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),ux=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],dx=(0,U.Ay)("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{["& .".concat(cx.avatar)]:t.avatar},{["& .".concat(cx.avatar)]:t["avatar".concat((0,V.A)(s))]},{["& .".concat(cx.avatar)]:t["avatarColor".concat((0,V.A)(r))]},{["& .".concat(cx.icon)]:t.icon},{["& .".concat(cx.icon)]:t["icon".concat((0,V.A)(s))]},{["& .".concat(cx.icon)]:t["iconColor".concat((0,V.A)(o))]},{["& .".concat(cx.deleteIcon)]:t.deleteIcon},{["& .".concat(cx.deleteIcon)]:t["deleteIcon".concat((0,V.A)(s))]},{["& .".concat(cx.deleteIcon)]:t["deleteIconColor".concat((0,V.A)(r))]},{["& .".concat(cx.deleteIcon)]:t["deleteIcon".concat((0,V.A)(l),"Color").concat((0,V.A)(r))]},t.root,t["size".concat((0,V.A)(s))],t["color".concat((0,V.A)(r))],i&&t.clickable,i&&"default"!==r&&t["clickableColor".concat((0,V.A)(r),")")],a&&t.deletable,a&&"default"!==r&&t["deletableColor".concat((0,V.A)(r))],t[l],t["".concat(l).concat((0,V.A)(r))]]}})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode?t.palette.grey[700]:t.palette.grey[300];return(0,w.A)({maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",["&.".concat(cx.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},["& .".concat(cx.avatar)]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:r,fontSize:t.typography.pxToRem(12)},["& .".concat(cx.avatarColorPrimary)]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},["& .".concat(cx.avatarColorSecondary)]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},["& .".concat(cx.avatarSmall)]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},["& .".concat(cx.icon)]:(0,w.A)({marginLeft:5,marginRight:-6},"small"===n.size&&{fontSize:18,marginLeft:4,marginRight:-4},n.iconColor===n.color&&(0,w.A)({color:t.vars?t.vars.palette.Chip.defaultIconColor:r},"default"!==n.color&&{color:"inherit"})),["& .".concat(cx.deleteIcon)]:(0,w.A)({WebkitTapHighlightColor:"transparent",color:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / 0.26)"):(0,B.X4)(t.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.vars?"rgba(".concat(t.vars.palette.text.primaryChannel," / 0.4)"):(0,B.X4)(t.palette.text.primary,.4)}},"small"===n.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==n.color&&{color:t.vars?"rgba(".concat(t.vars.palette[n.color].contrastTextChannel," / 0.7)"):(0,B.X4)(t.palette[n.color].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[n.color].contrastText}})},"small"===n.size&&{height:24},"default"!==n.color&&{backgroundColor:(t.vars||t).palette[n.color].main,color:(t.vars||t).palette[n.color].contrastText},n.onDelete&&{["&.".concat(cx.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,B.X4)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},n.onDelete&&"default"!==n.color&&{["&.".concat(cx.focusVisible)]:{backgroundColor:(t.vars||t).palette[n.color].dark}})}),(e=>{let{theme:t,ownerState:n}=e;return(0,w.A)({},n.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,B.X4)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)},["&.".concat(cx.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.action.selectedChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,B.X4)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},"&:active":{boxShadow:(t.vars||t).shadows[1]}},n.clickable&&"default"!==n.color&&{["&:hover, &.".concat(cx.focusVisible)]:{backgroundColor:(t.vars||t).palette[n.color].dark}})}),(e=>{let{theme:t,ownerState:n}=e;return(0,w.A)({},"outlined"===n.variant&&{backgroundColor:"transparent",border:t.vars?"1px solid ".concat(t.vars.palette.Chip.defaultBorder):"1px solid ".concat("light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[700]),["&.".concat(cx.clickable,":hover")]:{backgroundColor:(t.vars||t).palette.action.hover},["&.".concat(cx.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["& .".concat(cx.avatar)]:{marginLeft:4},["& .".concat(cx.avatarSmall)]:{marginLeft:2},["& .".concat(cx.icon)]:{marginLeft:4},["& .".concat(cx.iconSmall)]:{marginLeft:2},["& .".concat(cx.deleteIcon)]:{marginRight:5},["& .".concat(cx.deleteIconSmall)]:{marginRight:3}},"outlined"===n.variant&&"default"!==n.color&&{color:(t.vars||t).palette[n.color].main,border:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / 0.7)"):(0,B.X4)(t.palette[n.color].main,.7)),["&.".concat(cx.clickable,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,B.X4)(t.palette[n.color].main,t.palette.action.hoverOpacity)},["&.".concat(cx.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.focusOpacity,")"):(0,B.X4)(t.palette[n.color].main,t.palette.action.focusOpacity)},["& .".concat(cx.deleteIcon)]:{color:t.vars?"rgba(".concat(t.vars.palette[n.color].mainChannel," / 0.7)"):(0,B.X4)(t.palette[n.color].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[n.color].main}}})})),fx=(0,U.Ay)("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t["label".concat((0,V.A)(r))]]}})((e=>{let{ownerState:t}=e;return(0,w.A)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"outlined"===t.variant&&{paddingLeft:11,paddingRight:11},"small"===t.size&&{paddingLeft:8,paddingRight:8},"small"===t.size&&"outlined"===t.variant&&{paddingLeft:7,paddingRight:7})}));function px(e){return"Backspace"===e.key||"Delete"===e.key}const hx=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiChip"}),{avatar:r,className:o,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:f,onClick:p,onDelete:h,onKeyDown:m,onKeyUp:g,size:v="medium",variant:y="filled",tabIndex:b,skipFocusWhenDisabled:S=!1}=n,_=(0,x.A)(n,ux),k=i.useRef(null),C=(0,K.A)(k,t),E=e=>{e.stopPropagation(),h&&h(e)},O=!(!1===a||!p)||a,T=O||h?Pe:l||"div",I=(0,w.A)({},n,{component:T,disabled:u,size:v,color:s,iconColor:i.isValidElement(d)&&d.props.color||s,onDelete:!!h,clickable:O,variant:y}),P=(e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,n&&"disabled","size".concat((0,V.A)(r)),"color".concat((0,V.A)(o)),s&&"clickable",s&&"clickableColor".concat((0,V.A)(o)),a&&"deletable",a&&"deletableColor".concat((0,V.A)(o)),"".concat(l).concat((0,V.A)(o))],label:["label","label".concat((0,V.A)(r))],avatar:["avatar","avatar".concat((0,V.A)(r)),"avatarColor".concat((0,V.A)(o))],icon:["icon","icon".concat((0,V.A)(r)),"iconColor".concat((0,V.A)(i))],deleteIcon:["deleteIcon","deleteIcon".concat((0,V.A)(r)),"deleteIconColor".concat((0,V.A)(o)),"deleteIcon".concat((0,V.A)(l),"Color").concat((0,V.A)(o))]};return(0,z.A)(c,lx,t)})(I),M=T===Pe?(0,w.A)({component:l||"div",focusVisibleClassName:P.focusVisible},h&&{disableRipple:!0}):{};let D=null;h&&(D=c&&i.isValidElement(c)?i.cloneElement(c,{className:(0,A.A)(c.props.className,P.deleteIcon),onClick:E}):(0,R.jsx)(sx,{className:(0,A.A)(P.deleteIcon),onClick:E}));let L=null;r&&i.isValidElement(r)&&(L=i.cloneElement(r,{className:(0,A.A)(P.avatar,r.props.className)}));let j=null;return d&&i.isValidElement(d)&&(j=i.cloneElement(d,{className:(0,A.A)(P.icon,d.props.className)})),(0,R.jsxs)(dx,(0,w.A)({as:T,className:(0,A.A)(P.root,o),disabled:!(!O||!u)||void 0,onClick:p,onKeyDown:e=>{e.currentTarget===e.target&&px(e)&&e.preventDefault(),m&&m(e)},onKeyUp:e=>{e.currentTarget===e.target&&(h&&px(e)?h(e):"Escape"===e.key&&k.current&&k.current.blur()),g&&g(e)},ref:C,tabIndex:S&&u?-1:b,ownerState:I},M,_,{children:[L||j,(0,R.jsx)(fx,{className:(0,A.A)(P.label),ownerState:I,children:f}),D]}))}));function mx(e){return(0,Ee.Ay)("MuiInputBase",e)}const gx=(0,L.A)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);function vx(e){return(0,Ee.Ay)("MuiInput",e)}const yx=(0,w.A)({},gx,(0,L.A)("MuiInput",["root","underline","input"]));function bx(e){return(0,Ee.Ay)("MuiOutlinedInput",e)}const wx=(0,w.A)({},gx,(0,L.A)("MuiOutlinedInput",["root","notchedOutline","input"]));function xx(e){return(0,Ee.Ay)("MuiFilledInput",e)}const Ax=(0,w.A)({},gx,(0,L.A)("MuiFilledInput",["root","underline","input"])),Sx=(0,Fe.A)((0,R.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function _x(e){return(0,Ee.Ay)("MuiAutocomplete",e)}const kx=(0,L.A)("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var Cx,Ex;const Ox=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],Tx=["ref"],Ix=["key"],Rx=["key"],Px=(0,U.Ay)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:s}=n;return[{["& .".concat(kx.tag)]:t.tag},{["& .".concat(kx.tag)]:t["tagSize".concat((0,V.A)(s))]},{["& .".concat(kx.inputRoot)]:t.inputRoot},{["& .".concat(kx.input)]:t.input},{["& .".concat(kx.input)]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})({["&.".concat(kx.focused," .").concat(kx.clearIndicator)]:{visibility:"visible"},"@media (pointer: fine)":{["&:hover .".concat(kx.clearIndicator)]:{visibility:"visible"}},["& .".concat(kx.tag)]:{margin:3,maxWidth:"calc(100% - 6px)"},["& .".concat(kx.inputRoot)]:{[".".concat(kx.hasPopupIcon,"&, .").concat(kx.hasClearIcon,"&")]:{paddingRight:30},[".".concat(kx.hasPopupIcon,".").concat(kx.hasClearIcon,"&")]:{paddingRight:56},["& .".concat(kx.input)]:{width:0,minWidth:30}},["& .".concat(yx.root)]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},["& .".concat(yx.root,".").concat(gx.sizeSmall)]:{["& .".concat(yx.input)]:{padding:"2px 4px 3px 0"}},["& .".concat(wx.root)]:{padding:9,[".".concat(kx.hasPopupIcon,"&, .").concat(kx.hasClearIcon,"&")]:{paddingRight:39},[".".concat(kx.hasPopupIcon,".").concat(kx.hasClearIcon,"&")]:{paddingRight:65},["& .".concat(kx.input)]:{padding:"7.5px 4px 7.5px 5px"},["& .".concat(kx.endAdornment)]:{right:9}},["& .".concat(wx.root,".").concat(gx.sizeSmall)]:{paddingTop:6,paddingBottom:6,paddingLeft:6,["& .".concat(kx.input)]:{padding:"2.5px 4px 2.5px 8px"}},["& .".concat(Ax.root)]:{paddingTop:19,paddingLeft:8,[".".concat(kx.hasPopupIcon,"&, .").concat(kx.hasClearIcon,"&")]:{paddingRight:39},[".".concat(kx.hasPopupIcon,".").concat(kx.hasClearIcon,"&")]:{paddingRight:65},["& .".concat(Ax.input)]:{padding:"7px 4px"},["& .".concat(kx.endAdornment)]:{right:9}},["& .".concat(Ax.root,".").concat(gx.sizeSmall)]:{paddingBottom:1,["& .".concat(Ax.input)]:{padding:"2.5px 4px"}},["& .".concat(gx.hiddenLabel)]:{paddingTop:8},["& .".concat(Ax.root,".").concat(gx.hiddenLabel)]:{paddingTop:0,paddingBottom:0,["& .".concat(kx.input)]:{paddingTop:16,paddingBottom:17}},["& .".concat(Ax.root,".").concat(gx.hiddenLabel,".").concat(gx.sizeSmall)]:{["& .".concat(kx.input)]:{paddingTop:8,paddingBottom:9}},["& .".concat(kx.input)]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{["& .".concat(kx.tag)]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{["& .".concat(kx.input)]:{opacity:1}}},{props:{multiple:!0},style:{["& .".concat(kx.inputRoot)]:{flexWrap:"wrap"}}}]}),Mx=(0,U.Ay)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),Dx=(0,U.Ay)(Lt,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),Lx=(0,U.Ay)(Lt,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,w.A)({},t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen)}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),jx=(0,U.Ay)(tm,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& .".concat(kx.option)]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})((e=>{let{theme:t}=e;return{zIndex:(t.vars||t).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}})),Nx=(0,U.Ay)(Ot,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((e=>{let{theme:t}=e;return(0,w.A)({},t.typography.body1,{overflow:"auto"})})),Fx=(0,U.Ay)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),zx=(0,U.Ay)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((e=>{let{theme:t}=e;return{color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}})),Bx=(0,U.Ay)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((e=>{let{theme:t}=e;return{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",["& .".concat(kx.option)]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[t.breakpoints.up("sm")]:{minHeight:"auto"},["&.".concat(kx.focused)]:{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},["&.".concat(kx.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,B.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(kx.focused)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,B.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},["&.".concat(kx.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,B.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}}}}})),Vx=(0,U.Ay)(ax,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((e=>{let{theme:t}=e;return{backgroundColor:(t.vars||t).palette.background.paper,top:-8}})),Ux=(0,U.Ay)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,["& .".concat(kx.option)]:{paddingLeft:24}}),Wx=i.forwardRef((function(e,t){var n,r,o,a;const s=(0,G.b)({props:e,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:c=!1,autoSelect:u=!1,blurOnSelect:d=!1,ChipProps:f,className:p,clearIcon:h=Cx||(Cx=(0,R.jsx)(Bt,{fontSize:"small"})),clearOnBlur:m=!s.freeSolo,clearOnEscape:g=!1,clearText:v="Clear",closeText:y="Close",componentsProps:b={},defaultValue:S=(s.multiple?[]:null),disableClearable:_=!1,disableCloseOnSelect:k=!1,disabled:C=!1,disabledItemsFocusable:E=!1,disableListWrap:O=!1,disablePortal:T=!1,filterSelectedOptions:I=!1,forcePopupIcon:P="auto",freeSolo:M=!1,fullWidth:D=!1,getLimitTagsText:L=e=>"+".concat(e),getOptionLabel:j,groupBy:N,handleHomeEndKeys:F=!s.freeSolo,includeInputInList:B=!1,limitTags:U=-1,ListboxComponent:W="ul",ListboxProps:q,loading:H=!1,loadingText:Y="Loading\u2026",multiple:$=!1,noOptionsText:Q="No options",openOnFocus:X=!1,openText:J="Open",PaperComponent:Z=Ot,PopperComponent:ee=tm,popupIcon:te=Ex||(Ex=(0,R.jsx)(Sx,{})),readOnly:ne=!1,renderGroup:re,renderInput:oe,renderOption:ie,renderTags:ae,selectOnFocus:se=!s.freeSolo,size:le="medium",slotProps:ce={}}=s,ue=(0,x.A)(s,Ox),{getRootProps:de,getInputProps:fe,getInputLabelProps:pe,getPopupIndicatorProps:he,getClearProps:me,getTagProps:ge,getListboxProps:ve,getOptionProps:ye,value:be,dirty:we,expanded:xe,id:Ae,popupOpen:Se,focused:_e,focusedTag:ke,anchorEl:Ce,setAnchorEl:Ee,inputValue:Oe,groupedOptions:Te}=tx((0,w.A)({},s,{componentName:"Autocomplete"})),Ie=!_&&!C&&we&&!ne,Re=(!M||!0===P)&&!1!==P,{onMouseDown:Pe}=fe(),{ref:Me}=null!=q?q:{},De=ve(),{ref:Le}=De,je=(0,x.A)(De,Tx),Ne=(0,K.A)(Le,Me),Fe=j||(e=>{var t;return null!=(t=e.label)?t:e}),ze=(0,w.A)({},s,{disablePortal:T,expanded:xe,focused:_e,fullWidth:D,getOptionLabel:Fe,hasClearIcon:Ie,hasPopupIcon:Re,inputFocused:-1===ke,popupOpen:Se,size:le}),Be=(e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:u}=e,d={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag","tagSize".concat((0,V.A)(u))],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return(0,z.A)(d,_x,t)})(ze);let Ve;if($&&be.length>0){const e=e=>(0,w.A)({className:Be.tag,disabled:C},ge(e));Ve=ae?ae(be,e,ze):be.map(((t,n)=>{const r=e({index:n}),{key:o}=r,i=(0,x.A)(r,Ix);return(0,R.jsx)(hx,(0,w.A)({label:Fe(t),size:le},i,f),o)}))}if(U>-1&&Array.isArray(Ve)){const e=Ve.length-U;!_e&&e>0&&(Ve=Ve.splice(0,U),Ve.push((0,R.jsx)("span",{className:Be.tag,children:L(e)},Ve.length)))}const Ue=re||(e=>(0,R.jsxs)("li",{children:[(0,R.jsx)(Vx,{className:Be.groupLabel,ownerState:ze,component:"div",children:e.group}),(0,R.jsx)(Ux,{className:Be.groupUl,ownerState:ze,children:e.children})]},e.key)),We=ie||((e,t)=>{const{key:n}=e,r=(0,x.A)(e,Rx);return(0,R.jsx)("li",(0,w.A)({},r,{children:Fe(t)}),n)}),qe=(e,t)=>{const n=ye({option:e,index:t});return We((0,w.A)({},n,{className:Be.option}),e,{selected:n["aria-selected"],index:t,inputValue:Oe},ze)},He=null!=(n=ce.clearIndicator)?n:b.clearIndicator,Ye=null!=(r=ce.paper)?r:b.paper,Ge=null!=(o=ce.popper)?o:b.popper,Ke=null!=(a=ce.popupIndicator)?a:b.popupIndicator,$e=e=>(0,R.jsx)(jx,(0,w.A)({as:ee,disablePortal:T,style:{width:Ce?Ce.clientWidth:null},ownerState:ze,role:"presentation",anchorEl:Ce,open:Se},Ge,{className:(0,A.A)(Be.popper,null==Ge?void 0:Ge.className),children:(0,R.jsx)(Nx,(0,w.A)({ownerState:ze,as:Z},Ye,{className:(0,A.A)(Be.paper,null==Ye?void 0:Ye.className),children:e}))}));let Qe=null;return Te.length>0?Qe=$e((0,R.jsx)(Bx,(0,w.A)({as:W,className:Be.listbox,ownerState:ze},je,q,{ref:Ne,children:Te.map(((e,t)=>N?Ue({key:e.key,group:e.group,children:e.options.map(((t,n)=>qe(t,e.index+n)))}):qe(e,t)))}))):H&&0===Te.length?Qe=$e((0,R.jsx)(Fx,{className:Be.loading,ownerState:ze,children:Y})):0!==Te.length||M||H||(Qe=$e((0,R.jsx)(zx,{className:Be.noOptions,ownerState:ze,role:"presentation",onMouseDown:e=>{e.preventDefault()},children:Q}))),(0,R.jsxs)(i.Fragment,{children:[(0,R.jsx)(Px,(0,w.A)({ref:t,className:(0,A.A)(Be.root,p),ownerState:ze},de(ue),{children:oe({id:Ae,disabled:C,fullWidth:!0,size:"small"===le?"small":void 0,InputLabelProps:pe(),InputProps:(0,w.A)({ref:Ee,className:Be.inputRoot,startAdornment:Ve,onClick:e=>{e.target===e.currentTarget&&Pe(e)}},(Ie||Re)&&{endAdornment:(0,R.jsxs)(Mx,{className:Be.endAdornment,ownerState:ze,children:[Ie?(0,R.jsx)(Dx,(0,w.A)({},me(),{"aria-label":v,title:v,ownerState:ze},He,{className:(0,A.A)(Be.clearIndicator,null==He?void 0:He.className),children:h})):null,Re?(0,R.jsx)(Lx,(0,w.A)({},he(),{disabled:C,"aria-label":Se?y:J,title:Se?y:J,ownerState:ze},Ke,{className:(0,A.A)(Be.popupIndicator,null==Ke?void 0:Ke.className),children:te})):null]})}),inputProps:(0,w.A)({className:Be.input,disabled:C,readOnly:ne},fe())})})),Ce?Qe:null]})}));var qx=__webpack_require__(8145),Hx=__webpack_require__(7477);const Yx=["onChange","maxRows","minRows","style","value"];function Gx(e){return parseInt(e,10)||0}const Kx={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const $x=i.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:a,value:s}=e,l=(0,x.A)(e,Yx),{current:c}=i.useRef(null!=s),u=i.useRef(null),d=(0,pt.A)(t,u),f=i.useRef(null),p=i.useRef(null),h=i.useCallback((()=>{const t=u.current,n=(0,Bm.A)(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0,overflowing:!1};const i=p.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n.boxSizing,s=Gx(n.paddingBottom)+Gx(n.paddingTop),l=Gx(n.borderBottomWidth)+Gx(n.borderTopWidth),c=i.scrollHeight;i.value="x";const d=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*d,f)),r&&(f=Math.min(Number(r)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?s+l:0),overflowing:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),m=i.useCallback((()=>{const e=h();if(void 0===(t=e)||null===t||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const n=e.outerHeightStyle,r=u.current;f.current!==n&&(f.current=n,r.style.height="".concat(n,"px")),r.style.overflow=e.overflowing?"hidden":""}),[h]);(0,Ip.A)((()=>{const e=()=>{m()};let t;const n=(0,Hx.A)(e),r=u.current,o=(0,Bm.A)(r);let i;return o.addEventListener("resize",n),"undefined"!==typeof ResizeObserver&&(i=new ResizeObserver(e),i.observe(r)),()=>{n.clear(),cancelAnimationFrame(t),o.removeEventListener("resize",n),i&&i.disconnect()}}),[h,m]),(0,Ip.A)((()=>{m()}));return(0,R.jsxs)(i.Fragment,{children:[(0,R.jsx)("textarea",(0,w.A)({value:s,onChange:e=>{c||m(),n&&n(e)},ref:d,rows:o,style:a},l)),(0,R.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:(0,w.A)({},Kx,a,{paddingTop:0,paddingBottom:0})})]})}));var Qx=__webpack_require__(4248);const Xx=function(e){let{styles:t,themeId:n,defaultTheme:r={}}=e;const o=I(r),i="function"===typeof t?t(n&&o[n]||o):t;return(0,R.jsx)(Qx.A,{styles:i})};const Jx=function(e){return(0,R.jsx)(Xx,(0,w.A)({},e,{defaultTheme:ji.A,themeId:D.A}))};function Zx(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function eA(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(Zx(e.value)&&""!==e.value||t&&Zx(e.defaultValue)&&""!==e.defaultValue)}const tA=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],nA=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t["color".concat((0,V.A)(n.color))],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},rA=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},oA=(0,U.Ay)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:nA})((e=>{let{theme:t,ownerState:n}=e;return(0,w.A)({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",["&.".concat(gx.disabled)]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},n.multiline&&(0,w.A)({padding:"4px 0 5px"},"small"===n.size&&{paddingTop:1}),n.fullWidth&&{width:"100%"})})),iA=(0,U.Ay)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:rA})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode,o=(0,w.A)({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),i={opacity:"0 !important"},a=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return(0,w.A)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},["label[data-shrink=false] + .".concat(gx.formControl," &")]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},["&.".concat(gx.disabled)]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===n.size&&{paddingTop:1},n.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===n.type&&{MozAppearance:"textfield"})})),aA=(0,R.jsx)(Jx,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),sA=i.forwardRef((function(e,t){var n;const r=(0,G.b)({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,components:c={},componentsProps:u={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:p,endAdornment:h,fullWidth:m=!1,id:g,inputComponent:v="input",inputProps:y={},inputRef:b,maxRows:S,minRows:_,multiline:k=!1,name:C,onBlur:E,onChange:O,onClick:T,onFocus:I,onKeyDown:P,onKeyUp:M,placeholder:D,readOnly:L,renderSuffix:j,rows:N,slotProps:F={},slots:B={},startAdornment:U,type:W="text",value:q}=r,$=(0,x.A)(r,tA),Q=null!=y.value?y.value:q,{current:X}=i.useRef(null!=Q),J=i.useRef(),Z=i.useCallback((e=>{0}),[]),ee=(0,K.A)(J,b,y.ref,Z),[te,ne]=i.useState(!1),re=Y();const oe=Wa({props:r,muiFormControl:re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});oe.focused=re?re.focused:te,i.useEffect((()=>{!re&&f&&te&&(ne(!1),E&&E())}),[re,f,te,E]);const ie=re&&re.onFilled,ae=re&&re.onEmpty,se=i.useCallback((e=>{eA(e)?ie&&ie():ae&&ae()}),[ie,ae]);(0,Wi.A)((()=>{X&&se({value:Q})}),[Q,se,X]);i.useEffect((()=>{se(J.current)}),[]);let le=v,ce=y;k&&"input"===le&&(ce=N?(0,w.A)({type:void 0,minRows:N,maxRows:N},ce):(0,w.A)({type:void 0,maxRows:S,minRows:_},ce),le=$x);i.useEffect((()=>{re&&re.setAdornedStart(Boolean(U))}),[re,U]);const ue=(0,w.A)({},r,{color:oe.color||"primary",disabled:oe.disabled,endAdornment:h,error:oe.error,focused:oe.focused,formControl:re,fullWidth:m,hiddenLabel:oe.hiddenLabel,multiline:k,size:oe.size,startAdornment:U,type:W}),de=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:f,startAdornment:p,type:h}=e,m={root:["root","color".concat((0,V.A)(n)),r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",f&&"medium"!==f&&"size".concat((0,V.A)(f)),u&&"multiline",p&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===f&&"inputSizeSmall",c&&"inputHiddenLabel",p&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return(0,z.A)(m,mx,t)})(ue),fe=B.root||c.Root||oA,pe=F.root||u.root||{},he=B.input||c.Input||iA;return ce=(0,w.A)({},ce,null!=(n=F.input)?n:u.input),(0,R.jsxs)(i.Fragment,{children:[!p&&aA,(0,R.jsxs)(fe,(0,w.A)({},pe,!ht(fe)&&{ownerState:(0,w.A)({},ue,pe.ownerState)},{ref:t,onClick:e=>{J.current&&e.currentTarget===e.target&&J.current.focus(),T&&T(e)}},$,{className:(0,A.A)(de.root,pe.className,l,L&&"MuiInputBase-readOnly"),children:[U,(0,R.jsx)(H.Provider,{value:null,children:(0,R.jsx)(he,(0,w.A)({ownerState:ue,"aria-invalid":oe.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:d,disabled:oe.disabled,id:g,onAnimationStart:e=>{se("mui-auto-fill-cancel"===e.animationName?J.current:{value:"x"})},name:C,placeholder:D,readOnly:L,required:oe.required,rows:N,value:Q,onKeyDown:P,onKeyUp:M,type:W},ce,!ht(he)&&{as:le,ownerState:(0,w.A)({},ue,ce.ownerState)},{ref:ee,className:(0,A.A)(de.input,ce.className,L&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),y.onBlur&&y.onBlur(e),re&&re.onBlur?re.onBlur(e):ne(!1)},onChange:function(e){if(!X){const t=e.target||J.current;if(null==t)throw new Error((0,qx.A)(1));se({value:t.value})}for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];y.onChange&&y.onChange(e,...n),O&&O(e,...n)},onFocus:e=>{oe.disabled?e.stopPropagation():(I&&I(e),y.onFocus&&y.onFocus(e),re&&re.onFocus?re.onFocus(e):ne(!0))}}))}),h,j?j((0,w.A)({},oe,{startAdornment:U})):null]}))]})})),lA=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],cA=(0,U.Ay)(oA,{shouldForwardProp:e=>(0,W.A)(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nA(e,t),!n.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:n}=e;let r="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(r="rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")")),(0,w.A)({position:"relative"},n.formControl&&{"label + &":{marginTop:16}},!n.disableUnderline&&{"&::after":{borderBottom:"2px solid ".concat((t.vars||t).palette[n.color].main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(yx.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(yx.error)]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:"1px solid ".concat(r),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(yx.disabled,", .").concat(yx.error,"):before")]:{borderBottom:"2px solid ".concat((t.vars||t).palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(r)}},["&.".concat(yx.disabled,":before")]:{borderBottomStyle:"dotted"}})})),uA=(0,U.Ay)(iA,{name:"MuiInput",slot:"Input",overridesResolver:rA})({}),dA=i.forwardRef((function(e,t){var n,r,o,i;const a=(0,G.b)({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:f=!1,slotProps:p,slots:h={},type:m="text"}=a,g=(0,x.A)(a,lA),v=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},o=(0,z.A)(r,vx,t);return(0,w.A)({},t,o)})(a),y={root:{ownerState:{disableUnderline:s}}},b=(null!=p?p:c)?(0,wa.A)(null!=p?p:c,y):y,A=null!=(n=null!=(r=h.root)?r:l.Root)?n:cA,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:uA;return(0,R.jsx)(sA,(0,w.A)({slots:{root:A,input:S},slotProps:b,fullWidth:u,inputComponent:d,multiline:f,ref:t,type:m},g,{classes:v}))}));dA.muiName="Input";const fA=dA,pA=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],hA=(0,U.Ay)(oA,{shouldForwardProp:e=>(0,W.A)(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...nA(e,t),!n.disableUnderline&&t.underline]}})((e=>{let{theme:t,ownerState:n}=e;var r;const o="light"===t.palette.mode,i=o?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=o?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=o?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=o?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return(0,w.A)({position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:a}},["&.".concat(Ax.focused)]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:a},["&.".concat(Ax.disabled)]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:l}},!n.disableUnderline&&{"&::after":{borderBottom:"2px solid ".concat(null==(r=(t.vars||t).palette[n.color||"primary"])?void 0:r.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},["&.".concat(Ax.focused,":after")]:{transform:"scaleX(1) translateX(0)"},["&.".concat(Ax.error)]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:"1px solid ".concat(t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / ").concat(t.vars.opacity.inputUnderline,")"):i),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},["&:hover:not(.".concat(Ax.disabled,", .").concat(Ax.error,"):before")]:{borderBottom:"1px solid ".concat((t.vars||t).palette.text.primary)},["&.".concat(Ax.disabled,":before")]:{borderBottomStyle:"dotted"}},n.startAdornment&&{paddingLeft:12},n.endAdornment&&{paddingRight:12},n.multiline&&(0,w.A)({padding:"25px 12px 8px"},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9}))})),mA=(0,U.Ay)(iA,{name:"MuiFilledInput",slot:"Input",overridesResolver:rA})((e=>{let{theme:t,ownerState:n}=e;return(0,w.A)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9},n.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})})),gA=i.forwardRef((function(e,t){var n,r,o,i;const a=(0,G.b)({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:c=!1,inputComponent:u="input",multiline:d=!1,slotProps:f,slots:p={},type:h="text"}=a,m=(0,x.A)(a,pA),g=(0,w.A)({},a,{fullWidth:c,inputComponent:u,multiline:d,type:h}),v=(e=>{const{classes:t,disableUnderline:n}=e,r={root:["root",!n&&"underline"],input:["input"]},o=(0,z.A)(r,xx,t);return(0,w.A)({},t,o)})(a),y={root:{ownerState:g},input:{ownerState:g}},b=(null!=f?f:l)?(0,wa.A)(y,null!=f?f:l):y,A=null!=(n=null!=(r=p.root)?r:s.Root)?n:hA,S=null!=(o=null!=(i=p.input)?i:s.Input)?o:mA;return(0,R.jsx)(sA,(0,w.A)({slots:{root:A,input:S},componentsProps:b,fullWidth:c,inputComponent:u,multiline:d,ref:t,type:h},m,{classes:v}))}));gA.muiName="Input";const vA=gA;var yA;const bA=["children","classes","className","label","notched"],wA=(0,U.Ay)("fieldset",{shouldForwardProp:W.A})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),xA=(0,U.Ay)("legend",{shouldForwardProp:W.A})((e=>{let{ownerState:t,theme:n}=e;return(0,w.A)({float:"unset",width:"auto",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:n.transitions.create("width",{duration:150,easing:n.transitions.easing.easeOut})},t.withLabel&&(0,w.A)({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:n.transitions.create("max-width",{duration:50,easing:n.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:n.transitions.create("max-width",{duration:100,easing:n.transitions.easing.easeOut,delay:50})}))}));const AA=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],SA=(0,U.Ay)(oA,{shouldForwardProp:e=>(0,W.A)(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:nA})((e=>{let{theme:t,ownerState:n}=e;const r="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return(0,w.A)({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,["&:hover .".concat(wx.notchedOutline)]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{["&:hover .".concat(wx.notchedOutline)]:{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):r}},["&.".concat(wx.focused," .").concat(wx.notchedOutline)]:{borderColor:(t.vars||t).palette[n.color].main,borderWidth:2},["&.".concat(wx.error," .").concat(wx.notchedOutline)]:{borderColor:(t.vars||t).palette.error.main},["&.".concat(wx.disabled," .").concat(wx.notchedOutline)]:{borderColor:(t.vars||t).palette.action.disabled}},n.startAdornment&&{paddingLeft:14},n.endAdornment&&{paddingRight:14},n.multiline&&(0,w.A)({padding:"16.5px 14px"},"small"===n.size&&{padding:"8.5px 14px"}))})),_A=(0,U.Ay)((function(e){const{className:t,label:n,notched:r}=e,o=(0,x.A)(e,bA),i=null!=n&&""!==n,a=(0,w.A)({},e,{notched:r,withLabel:i});return(0,R.jsx)(wA,(0,w.A)({"aria-hidden":!0,className:t,ownerState:a},o,{children:(0,R.jsx)(xA,{ownerState:a,children:i?(0,R.jsx)("span",{children:n}):yA||(yA=(0,R.jsx)("span",{className:"notranslate",children:"\u200b"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((e=>{let{theme:t}=e;const n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?"rgba(".concat(t.vars.palette.common.onBackgroundChannel," / 0.23)"):n}})),kA=(0,U.Ay)(iA,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:rA})((e=>{let{theme:t,ownerState:n}=e;return(0,w.A)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===n.size&&{padding:"8.5px 14px"},n.multiline&&{padding:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0})})),CA=i.forwardRef((function(e,t){var n,r,o,a,s;const l=(0,G.b)({props:e,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:d="input",label:f,multiline:p=!1,notched:h,slots:m={},type:g="text"}=l,v=(0,x.A)(l,AA),y=(e=>{const{classes:t}=e,n=(0,z.A)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},bx,t);return(0,w.A)({},t,n)})(l),b=Y(),A=Wa({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=(0,w.A)({},l,{color:A.color||"primary",disabled:A.disabled,error:A.error,focused:A.focused,formControl:b,fullWidth:u,hiddenLabel:A.hiddenLabel,multiline:p,size:A.size,type:g}),_=null!=(n=null!=(r=m.root)?r:c.Root)?n:SA,k=null!=(o=null!=(a=m.input)?a:c.Input)?o:kA;return(0,R.jsx)(sA,(0,w.A)({slots:{root:_,input:k},renderSuffix:e=>(0,R.jsx)(_A,{ownerState:S,className:y.notchedOutline,label:null!=f&&""!==f&&A.required?s||(s=(0,R.jsxs)(i.Fragment,{children:[f,"\u2009","*"]})):f,notched:"undefined"!==typeof h?h:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:d,multiline:p,ref:t,type:g},v,{classes:(0,w.A)({},y,{notchedOutline:null})}))}));CA.muiName="Input";const EA=CA;function OA(e){return(0,Ee.Ay)("MuiFormLabel",e)}const TA=(0,L.A)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),IA=["children","className","color","component","disabled","error","filled","focused","required"],RA=(0,U.Ay)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,w.A)({},t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled)}})((e=>{let{theme:t,ownerState:n}=e;return(0,w.A)({color:(t.vars||t).palette.text.secondary},t.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",["&.".concat(TA.focused)]:{color:(t.vars||t).palette[n.color].main},["&.".concat(TA.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(TA.error)]:{color:(t.vars||t).palette.error.main}})})),PA=(0,U.Ay)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((e=>{let{theme:t}=e;return{["&.".concat(TA.error)]:{color:(t.vars||t).palette.error.main}}})),MA=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiFormLabel"}),{children:r,className:o,component:i="label"}=n,a=(0,x.A)(n,IA),s=Wa({props:n,muiFormControl:Y(),states:["color","required","focused","disabled","error","filled"]}),l=(0,w.A)({},n,{color:s.color||"primary",component:i,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),c=(e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root","color".concat((0,V.A)(n)),o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return(0,z.A)(l,OA,t)})(l);return(0,R.jsxs)(RA,(0,w.A)({as:i,ownerState:l,className:(0,A.A)(c.root,o),ref:t},a,{children:[r,s.required&&(0,R.jsxs)(PA,{ownerState:l,"aria-hidden":!0,className:c.asterisk,children:["\u2009","*"]})]}))}));function DA(e){return(0,Ee.Ay)("MuiInputLabel",e)}(0,L.A)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const LA=["disableAnimation","margin","shrink","variant","className"],jA=(0,U.Ay)(MA,{shouldForwardProp:e=>(0,W.A)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& .".concat(TA.asterisk)]:t.asterisk},t.root,n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,w.A)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},n.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===n.size&&{transform:"translate(0, 17px) scale(1)"},n.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!n.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===n.variant&&(0,w.A)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(12px, 13px) scale(1)"},n.shrink&&(0,w.A)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===n.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===n.variant&&(0,w.A)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(14px, 9px) scale(1)"},n.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))})),NA=i.forwardRef((function(e,t){const n=(0,G.b)({name:"MuiInputLabel",props:e}),{disableAnimation:r=!1,shrink:o,className:i}=n,a=(0,x.A)(n,LA),s=Y();let l=o;"undefined"===typeof l&&s&&(l=s.filled||s.focused||s.adornedStart);const c=Wa({props:n,muiFormControl:s,states:["size","variant","required","focused"]}),u=(0,w.A)({},n,{disableAnimation:r,formControl:s,shrink:l,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),d=(e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,l={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&"normal"!==r&&"size".concat((0,V.A)(r)),a],asterisk:[s&&"asterisk"]},c=(0,z.A)(l,DA,t);return(0,w.A)({},t,c)})(u);return(0,R.jsx)(jA,(0,w.A)({"data-shrink":l,ownerState:u,ref:t,className:(0,A.A)(d.root,i)},a,{classes:d}))}));var FA=__webpack_require__(575);function zA(e){return(0,Ee.Ay)("MuiFormControl",e)}(0,L.A)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const BA=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],VA=(0,U.Ay)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return(0,w.A)({},t.root,t["margin".concat((0,V.A)(n.margin))],n.fullWidth&&t.fullWidth)}})((e=>{let{ownerState:t}=e;return(0,w.A)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})})),UA=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiFormControl"}),{children:r,className:o,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:f=!1,margin:p="none",required:h=!1,size:m="medium",variant:g="outlined"}=n,v=(0,x.A)(n,BA),y=(0,w.A)({},n,{color:a,component:s,disabled:l,error:c,fullWidth:d,hiddenLabel:f,margin:p,required:h,size:m,variant:g}),b=(e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root","none"!==n&&"margin".concat((0,V.A)(n)),r&&"fullWidth"]};return(0,z.A)(o,zA,t)})(y),[S,_]=i.useState((()=>{let e=!1;return r&&i.Children.forEach(r,(t=>{if(!(0,FA.A)(t,["Input","Select"]))return;const n=(0,FA.A)(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)})),e})),[k,C]=i.useState((()=>{let e=!1;return r&&i.Children.forEach(r,(t=>{(0,FA.A)(t,["Input","Select"])&&(eA(t.props,!0)||eA(t.props.inputProps,!0))&&(e=!0)})),e})),[E,O]=i.useState(!1);l&&E&&O(!1);const T=void 0===u||l?E:u;let I;const P=i.useMemo((()=>({adornedStart:S,setAdornedStart:_,color:a,disabled:l,error:c,filled:k,focused:T,fullWidth:d,hiddenLabel:f,size:m,onBlur:()=>{O(!1)},onEmpty:()=>{C(!1)},onFilled:()=>{C(!0)},onFocus:()=>{O(!0)},registerEffect:I,required:h,variant:g})),[S,a,l,c,k,T,d,f,I,h,m,g]);return(0,R.jsx)(H.Provider,{value:P,children:(0,R.jsx)(VA,(0,w.A)({as:s,ownerState:y,className:(0,A.A)(b.root,o),ref:t},v,{children:r}))})}));function WA(e){return(0,Ee.Ay)("MuiFormHelperText",e)}const qA=(0,L.A)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var HA;const YA=["children","className","component","disabled","error","filled","focused","margin","required","variant"],GA=(0,U.Ay)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t["size".concat((0,V.A)(n.size))],n.contained&&t.contained,n.filled&&t.filled]}})((e=>{let{theme:t,ownerState:n}=e;return(0,w.A)({color:(t.vars||t).palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,["&.".concat(qA.disabled)]:{color:(t.vars||t).palette.text.disabled},["&.".concat(qA.error)]:{color:(t.vars||t).palette.error.main}},"small"===n.size&&{marginTop:4},n.contained&&{marginLeft:14,marginRight:14})})),KA=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiFormHelperText"}),{children:r,className:o,component:i="p"}=n,a=(0,x.A)(n,YA),s=Wa({props:n,muiFormControl:Y(),states:["variant","size","disabled","error","filled","focused","required"]}),l=(0,w.A)({},n,{component:i,contained:"filled"===s.variant||"outlined"===s.variant,variant:s.variant,size:s.size,disabled:s.disabled,error:s.error,filled:s.filled,focused:s.focused,required:s.required}),c=(e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=e,c={root:["root",o&&"disabled",i&&"error",r&&"size".concat((0,V.A)(r)),n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return(0,z.A)(c,WA,t)})(l);return(0,R.jsx)(GA,(0,w.A)({as:i,ownerState:l,className:(0,A.A)(c.root,o),ref:t},a,{children:" "===r?HA||(HA=(0,R.jsx)("span",{className:"notranslate",children:"\u200b"})):r}))}));function $A(e){return(0,Ee.Ay)("MuiNativeSelect",e)}const QA=(0,L.A)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),XA=["className","disabled","error","IconComponent","inputRef","variant"],JA=e=>{let{ownerState:t,theme:n}=e;return(0,w.A)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":(0,w.A)({},n.vars?{backgroundColor:"rgba(".concat(n.vars.palette.common.onBackgroundChannel," / 0.05)")}:{backgroundColor:"light"===n.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},["&.".concat(QA.disabled)]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(n.vars||n).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===t.variant&&{"&&&":{paddingRight:32}},"outlined"===t.variant&&{borderRadius:(n.vars||n).shape.borderRadius,"&:focus":{borderRadius:(n.vars||n).shape.borderRadius},"&&&":{paddingRight:32}})},ZA=(0,U.Ay)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:W.A,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{["&.".concat(QA.multiple)]:t.multiple}]}})(JA),eS=e=>{let{ownerState:t,theme:n}=e;return(0,w.A)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(n.vars||n).palette.action.active,["&.".concat(QA.disabled)]:{color:(n.vars||n).palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},tS=(0,U.Ay)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t["icon".concat((0,V.A)(n.variant))],n.open&&t.iconOpen]}})(eS),nS=i.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:a,inputRef:s,variant:l="standard"}=e,c=(0,x.A)(e,XA),u=(0,w.A)({},e,{disabled:r,variant:l,error:o}),d=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon","icon".concat((0,V.A)(n)),i&&"iconOpen",r&&"disabled"]};return(0,z.A)(s,$A,t)})(u);return(0,R.jsxs)(i.Fragment,{children:[(0,R.jsx)(ZA,(0,w.A)({ownerState:u,className:(0,A.A)(d.select,n),disabled:r,ref:s||t},c)),e.multiple?null:(0,R.jsx)(tS,{as:a,ownerState:u,className:d.icon})]})}));var rS=__webpack_require__(7138);function oS(e){return(0,Ee.Ay)("MuiSelect",e)}const iS=(0,L.A)("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var aS;const sS=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],lS=(0,U.Ay)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["&.".concat(iS.select)]:t.select},{["&.".concat(iS.select)]:t[n.variant]},{["&.".concat(iS.error)]:t.error},{["&.".concat(iS.multiple)]:t.multiple}]}})(JA,{["&.".concat(iS.select)]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),cS=(0,U.Ay)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t["icon".concat((0,V.A)(n.variant))],n.open&&t.iconOpen]}})(eS),uS=(0,U.Ay)("input",{shouldForwardProp:e=>(0,rS.A)(e)&&"classes"!==e,name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function dS(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function fS(e){return null==e||"string"===typeof e&&!e.trim()}const pS=i.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:a,autoWidth:s,children:l,className:c,defaultOpen:u,defaultValue:d,disabled:f,displayEmpty:p,error:h=!1,IconComponent:m,inputRef:g,labelId:v,MenuProps:y={},multiple:b,name:S,onBlur:_,onChange:k,onClose:C,onFocus:E,onOpen:O,open:T,readOnly:I,renderValue:P,SelectDisplayProps:M={},tabIndex:D,value:L,variant:j="standard"}=e,N=(0,x.A)(e,sS),[F,B]=(0,q.A)({controlled:L,default:d,name:"Select"}),[U,W]=(0,q.A)({controlled:T,default:u,name:"Select"}),H=i.useRef(null),Y=i.useRef(null),[G,$]=i.useState(null),{current:Q}=i.useRef(null!=T),[X,J]=i.useState(),Z=(0,K.A)(t,g),ee=i.useCallback((e=>{Y.current=e,e&&$(e)}),[]),te=null==G?void 0:G.parentNode;i.useImperativeHandle(Z,(()=>({focus:()=>{Y.current.focus()},node:H.current,value:F})),[F]),i.useEffect((()=>{u&&U&&G&&!Q&&(J(s?null:te.clientWidth),Y.current.focus())}),[G,s]),i.useEffect((()=>{a&&Y.current.focus()}),[a]),i.useEffect((()=>{if(!v)return;const e=(0,na.A)(Y.current).getElementById(v);if(e){const t=()=>{getSelection().isCollapsed&&Y.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[v]);const ne=(e,t)=>{e?O&&O(t):C&&C(t),Q||(J(s?null:te.clientWidth),W(e))},re=i.Children.toArray(l),oe=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(b){n=Array.isArray(F)?F.slice():[];const t=F.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),F!==n&&(B(n),k)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:S}}),k(o,e)}b||ne(!1,t)}},ie=null!==G&&U;let ae,se;delete N["aria-invalid"];const le=[];let ce=!1,ue=!1;(eA({value:F})||p)&&(P?ae=P(F):ce=!0);const de=re.map((e=>{if(!i.isValidElement(e))return null;let t;if(b){if(!Array.isArray(F))throw new Error((0,qx.A)(2));t=F.some((t=>dS(t,e.props.value))),t&&ce&&le.push(e.props.children)}else t=dS(F,e.props.value),t&&ce&&(se=e.props.children);return t&&(ue=!0),i.cloneElement(e,{"aria-selected":t?"true":"false",onClick:oe(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ce&&(ae=b?0===le.length?null:le.reduce(((e,t,n)=>(e.push(t),n<le.length-1&&e.push(", "),e)),[]):se);let fe,pe=X;!s&&Q&&G&&(pe=te.clientWidth),fe="undefined"!==typeof D?D:f?null:0;const he=M.id||(S?"mui-component-select-".concat(S):void 0),me=(0,w.A)({},e,{variant:j,value:F,open:ie,error:h}),ge=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon","icon".concat((0,V.A)(n)),i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return(0,z.A)(s,oS,t)})(me),ve=(0,w.A)({},y.PaperProps,null==(n=y.slotProps)?void 0:n.paper),ye=(0,Qb.A)();return(0,R.jsxs)(i.Fragment,{children:[(0,R.jsx)(lS,(0,w.A)({ref:ee,tabIndex:fe,role:"combobox","aria-controls":ye,"aria-disabled":f?"true":void 0,"aria-expanded":ie?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[v,he].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!I){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ne(!0,e))}},onMouseDown:f||I?null:e=>{0===e.button&&(e.preventDefault(),Y.current.focus(),ne(!0,e))},onBlur:e=>{!ie&&_&&(Object.defineProperty(e,"target",{writable:!0,value:{value:F,name:S}}),_(e))},onFocus:E},M,{ownerState:me,className:(0,A.A)(M.className,ge.select,c),id:he,children:fS(ae)?aS||(aS=(0,R.jsx)("span",{className:"notranslate",children:"\u200b"})):ae})),(0,R.jsx)(uS,(0,w.A)({"aria-invalid":h,value:Array.isArray(F)?F.join(","):F,name:S,ref:H,"aria-hidden":!0,onChange:e=>{const t=re.find((t=>t.props.value===e.target.value));void 0!==t&&(B(t.props.value),k&&k(e,t))},tabIndex:-1,disabled:f,className:ge.nativeInput,autoFocus:a,ownerState:me},N)),(0,R.jsx)(cS,{as:m,className:ge.icon,ownerState:me}),(0,R.jsx)(yg,(0,w.A)({id:"menu-".concat(S||""),anchorEl:te,open:ie,onClose:e=>{ne(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},y,{MenuListProps:(0,w.A)({"aria-labelledby":v,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:ye},y.MenuListProps),slotProps:(0,w.A)({},y.slotProps,{paper:(0,w.A)({},ve,{style:(0,w.A)({minWidth:pe},null!=ve?ve.style:null)})}),children:de}))]})})),hS=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],mS=["root"],gS={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,W.A)(e)&&"variant"!==e,slot:"Root"},vS=(0,U.Ay)(fA,gS)(""),yS=(0,U.Ay)(EA,gS)(""),bS=(0,U.Ay)(vA,gS)(""),wS=i.forwardRef((function(e,t){const n=(0,G.b)({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=Sx,id:d,input:f,inputProps:p,label:h,labelId:m,MenuProps:g,multiple:v=!1,native:y=!1,onClose:b,onOpen:S,open:_,renderValue:k,SelectDisplayProps:C,variant:E="outlined"}=n,O=(0,x.A)(n,hS),T=y?nS:pS,I=Wa({props:n,muiFormControl:Y(),states:["variant","error"]}),P=I.variant||E,M=(0,w.A)({},n,{variant:P,classes:a}),D=(e=>{const{classes:t}=e;return t})(M),L=(0,x.A)(D,mS),j=f||{standard:(0,R.jsx)(vS,{ownerState:M}),outlined:(0,R.jsx)(yS,{label:h,ownerState:M}),filled:(0,R.jsx)(bS,{ownerState:M})}[P],N=(0,K.A)(t,dp(j));return(0,R.jsx)(i.Fragment,{children:i.cloneElement(j,(0,w.A)({inputComponent:T,inputProps:(0,w.A)({children:o,error:I.error,IconComponent:u,variant:P,type:void 0,multiple:v},y?{id:d}:{autoWidth:r,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:g,onClose:b,onOpen:S,open:_,renderValue:k,SelectDisplayProps:(0,w.A)({id:d},C)},p,{classes:p?(0,wa.A)(L,p.classes):L},f?f.props.inputProps:{})},(v&&y||c)&&"outlined"===P?{notched:!0}:{},{ref:N,className:(0,A.A)(j.props.className,s,D.root)},!f&&{variant:P},O))})}));wS.muiName="Select";const xS=wS;function AS(e){return(0,Ee.Ay)("MuiTextField",e)}(0,L.A)("MuiTextField",["root"]);const SS=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],_S={standard:fA,filled:vA,outlined:EA},kS=(0,U.Ay)(UA,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),CS=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiTextField"}),{autoComplete:r,autoFocus:o=!1,children:i,className:a,color:s="primary",defaultValue:l,disabled:c=!1,error:u=!1,FormHelperTextProps:d,fullWidth:f=!1,helperText:p,id:h,InputLabelProps:m,inputProps:g,InputProps:v,inputRef:y,label:b,maxRows:S,minRows:_,multiline:k=!1,name:C,onBlur:E,onChange:O,onFocus:T,placeholder:I,required:P=!1,rows:M,select:D=!1,SelectProps:L,type:j,value:N,variant:F="outlined"}=n,B=(0,x.A)(n,SS),V=(0,w.A)({},n,{autoFocus:o,color:s,disabled:c,error:u,fullWidth:f,multiline:k,required:P,select:D,variant:F}),U=(e=>{const{classes:t}=e;return(0,z.A)({root:["root"]},AS,t)})(V);const W={};"outlined"===F&&(m&&"undefined"!==typeof m.shrink&&(W.notched=m.shrink),W.label=b),D&&(L&&L.native||(W.id=void 0),W["aria-describedby"]=void 0);const q=(0,Qb.A)(h),H=p&&q?"".concat(q,"-helper-text"):void 0,Y=b&&q?"".concat(q,"-label"):void 0,K=_S[F],$=(0,R.jsx)(K,(0,w.A)({"aria-describedby":H,autoComplete:r,autoFocus:o,defaultValue:l,fullWidth:f,multiline:k,name:C,rows:M,maxRows:S,minRows:_,type:j,value:N,id:q,inputRef:y,onBlur:E,onChange:O,onFocus:T,placeholder:I,inputProps:g},W,v));return(0,R.jsxs)(kS,(0,w.A)({className:(0,A.A)(U.root,a),disabled:c,error:u,fullWidth:f,ref:t,required:P,color:s,variant:F,ownerState:V},B,{children:[null!=b&&""!==b&&(0,R.jsx)(NA,(0,w.A)({htmlFor:q,id:Y},m,{children:b})),D?(0,R.jsx)(xS,(0,w.A)({"aria-describedby":H,id:q,labelId:Y,value:N,input:$},L,{children:i})):$,p&&(0,R.jsx)(KA,(0,w.A)({id:H},d,{children:p}))]}))}));function ES(e){return(0,Ee.Ay)("MuiInputAdornment",e)}const OS=(0,L.A)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var TS;const IS=["children","className","component","disablePointerEvents","disableTypography","position","variant"],RS=(0,U.Ay)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["position".concat((0,V.A)(n.position))],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,w.A)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===n.variant&&{["&.".concat(OS.positionStart,"&:not(.").concat(OS.hiddenLabel,")")]:{marginTop:16}},"start"===n.position&&{marginRight:8},"end"===n.position&&{marginLeft:8},!0===n.disablePointerEvents&&{pointerEvents:"none"})})),PS=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:u}=n,d=(0,x.A)(n,IS),f=Y()||{};let p=u;u&&f.variant,f&&!p&&(p=f.variant);const h=(0,w.A)({},n,{hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:s,position:c,variant:p}),m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&"position".concat((0,V.A)(o)),a,r&&"hiddenLabel",i&&"size".concat((0,V.A)(i))]};return(0,z.A)(s,ES,t)})(h);return(0,R.jsx)(H.Provider,{value:null,children:(0,R.jsx)(RS,(0,w.A)({as:a,ownerState:h,className:(0,A.A)(m.root,o),ref:t},d,{children:"string"!==typeof r||l?(0,R.jsxs)(i.Fragment,{children:["start"===c?TS||(TS=(0,R.jsx)("span",{className:"notranslate",children:"\u200b"})):null,r]}):(0,R.jsx)(tt,{color:"text.secondary",children:r})}))})})),MS=["children"],DS=["name"],LS=["_f"],jS=["_f"],NS=["ref","message","type"];var FS=e=>"checkbox"===e.type,zS=e=>e instanceof Date,BS=e=>null==e;const VS=e=>"object"===typeof e;var US=e=>!BS(e)&&!Array.isArray(e)&&VS(e)&&!zS(e),WS=e=>US(e)&&e.target?FS(e.target)?e.target.checked:e.target.value:e,qS=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),HS="undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement&&"undefined"!==typeof document;function YS(e){let t;const n=Array.isArray(e),r="undefined"!==typeof FileList&&e instanceof FileList;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(HS&&(e instanceof Blob||r)||!n&&!US(e))return e;if(t=n?[]:{},n||(e=>{const t=e.constructor&&e.constructor.prototype;return US(t)&&t.hasOwnProperty("isPrototypeOf")})(e))for(const n in e)e.hasOwnProperty(n)&&(t[n]=YS(e[n]));else t=e}return t}var GS=e=>Array.isArray(e)?e.filter(Boolean):[],KS=e=>void 0===e,$S=(e,t,n)=>{if(!t||!US(e))return n;const r=GS(t.split(/[,[\].]+?/)).reduce(((e,t)=>BS(e)?e:e[t]),e);return KS(r)||r===e?KS(e[t])?n:e[t]:r},QS=e=>"boolean"===typeof e,XS=e=>/^\w*$/.test(e),JS=e=>GS(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ZS=(e,t,n)=>{let r=-1;const o=XS(t)?[t]:JS(t),i=o.length,a=i-1;for(;++r<i;){const t=o[r];let i=n;if(r!==a){const n=e[t];i=US(n)||Array.isArray(n)?n:isNaN(+o[r+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=i,e=e[t]}return e};const e_="blur",t_="focusout",n_="change",r_="onBlur",o_="onChange",i_="onSubmit",a_="onTouched",s_="all",l_="max",c_="min",u_="maxLength",d_="minLength",f_="pattern",p_="required",h_="validate",m_=i.createContext(null),g_=()=>i.useContext(m_),v_=e=>{const{children:t}=e,n=(0,ns.A)(e,MS);return i.createElement(m_.Provider,{value:n},t)};var y_=function(e,t,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const o=i;return t._proxyFormState[o]!==s_&&(t._proxyFormState[o]=!r||s_),n&&(n[o]=!0),e[o]}});return o},b_=e=>US(e)&&!Object.keys(e).length,w_=(e,t,n,r)=>{n(e);const{name:o}=e,i=(0,ns.A)(e,DS);return b_(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find((e=>t[e]===(!r||s_)))},x_=e=>Array.isArray(e)?e:[e],A_=(e,t,n)=>!e||!t||e===t||x_(e).some((e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))));function S_(e){const t=i.useRef(e);t.current=e,i.useEffect((()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}}),[e.disabled])}var __=e=>"string"===typeof e,k_=(e,t,n,r,o)=>__(e)?(r&&t.watch.add(e),$S(n,e,o)):Array.isArray(e)?e.map((e=>(r&&t.watch.add(e),$S(n,e)))):(r&&(t.watchAll=!0),n);function C_(e){const t=g_(),{control:n=t.control,name:r,defaultValue:o,disabled:a,exact:s}=e||{},l=i.useRef(r);l.current=r,S_({disabled:a,subject:n._subjects.values,next:e=>{A_(l.current,e.name,s)&&u(YS(k_(l.current,n._names,e.values||n._formValues,!1,o)))}});const[c,u]=i.useState(n._getWatch(r,o));return i.useEffect((()=>n._removeUnmounted())),c}function E_(e){const t=g_(),{name:n,disabled:r,control:o=t.control,shouldUnregister:a}=e,s=qS(o._names.array,n),l=C_({control:o,name:n,defaultValue:$S(o._formValues,n,$S(o._defaultValues,n,e.defaultValue)),exact:!0}),c=function(e){const t=g_(),{control:n=t.control,disabled:r,name:o,exact:a}=e||{},[s,l]=i.useState(n._formState),c=i.useRef(!0),u=i.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=i.useRef(o);return d.current=o,S_({disabled:r,next:e=>c.current&&A_(d.current,e.name,a)&&w_(e,u.current,n._updateFormState)&&l((0,g.A)((0,g.A)({},n._formState),e)),subject:n._subjects.state}),i.useEffect((()=>(c.current=!0,u.current.isValid&&n._updateValid(!0),()=>{c.current=!1})),[n]),i.useMemo((()=>y_(s,n,u.current,!1)),[s,n])}({control:o,name:n,exact:!0}),u=i.useRef(o.register(n,(0,g.A)((0,g.A)({},e.rules),{},{value:l},QS(e.disabled)?{disabled:e.disabled}:{}))),d=i.useMemo((()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!$S(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!$S(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!$S(c.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!$S(c.validatingFields,n)},error:{enumerable:!0,get:()=>$S(c.errors,n)}})),[c,n]),f=i.useMemo((()=>(0,g.A)((0,g.A)({name:n,value:l},QS(r)||c.disabled?{disabled:c.disabled||r}:{}),{},{onChange:e=>u.current.onChange({target:{value:WS(e),name:n},type:n_}),onBlur:()=>u.current.onBlur({target:{value:$S(o._formValues,n),name:n},type:e_}),ref:e=>{const t=$S(o._fields,n);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}})),[n,o._formValues,r,c.disabled,l,o._fields]);return i.useEffect((()=>{const e=o._options.shouldUnregister||a,t=(e,t)=>{const n=$S(o._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){const e=YS($S(o._options.defaultValues,n));ZS(o._defaultValues,n,e),KS($S(o._formValues,n))&&ZS(o._formValues,n,e)}return!s&&o.register(n),()=>{(s?e&&!o._state.action:e)?o.unregister(n):t(n,!1)}}),[n,o,s,a]),i.useEffect((()=>{o._updateDisabledField({disabled:r,fields:o._fields,name:n})}),[r,n,o]),i.useMemo((()=>({field:f,formState:c,fieldState:d})),[f,c,d])}const O_=e=>e.render(E_(e));var T_=(e,t,n,r,o)=>t?(0,g.A)((0,g.A)({},n[e]),{},{types:(0,g.A)((0,g.A)({},n[e]&&n[e].types?n[e].types:{}),{},{[r]:o||!0})}):{},I_=e=>({isOnSubmit:!e||e===i_,isOnBlur:e===r_,isOnChange:e===o_,isOnAll:e===s_,isOnTouch:e===a_}),R_=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const P_=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const n=$S(e,o);if(n){const{_f:e}=n,i=(0,ns.A)(n,LS);if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],o)&&!r)return!0;if(e.ref&&t(e.ref,e.name)&&!r)return!0;if(P_(i,t))break}else if(US(i)&&P_(i,t))break}}};var M_=(e,t,n)=>{const r=x_($S(e,n));return ZS(r,"root",t[n]),ZS(e,n,r),e},D_=e=>"file"===e.type,L_=e=>"function"===typeof e,j_=e=>{if(!HS)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},N_=e=>__(e),F_=e=>"radio"===e.type,z_=e=>e instanceof RegExp;const B_={value:!1,isValid:!1},V_={value:!0,isValid:!0};var U_=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!KS(e[0].attributes.value)?KS(e[0].value)||""===e[0].value?V_:{value:e[0].value,isValid:!0}:V_:B_}return B_};const W_={isValid:!1,value:null};var q_=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),W_):W_;function H_(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"validate";if(N_(e)||Array.isArray(e)&&e.every(N_)||QS(e)&&!e)return{type:n,message:N_(e)?e:"",ref:t}}var Y_=e=>US(e)&&!z_(e)?e:{value:e,message:""},G_=async(e,t,n,r,o,i)=>{const{ref:a,refs:s,required:l,maxLength:c,minLength:u,min:d,max:f,pattern:p,validate:h,name:m,valueAsNumber:v,mount:y}=e._f,b=$S(n,m);if(!y||t.has(m))return{};const w=s?s[0]:a,x=e=>{o&&w.reportValidity&&(w.setCustomValidity(QS(e)?"":e||""),w.reportValidity())},A={},S=F_(a),_=FS(a),k=S||_,C=(v||D_(a))&&KS(a.value)&&KS(b)||j_(a)&&""===a.value||""===b||Array.isArray(b)&&!b.length,E=T_.bind(null,m,r,A),O=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u_,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:d_;const i=e?t:n;A[m]=(0,g.A)({type:e?r:o,message:i,ref:a},E(e?r:o,i))};if(i?!Array.isArray(b)||!b.length:l&&(!k&&(C||BS(b))||QS(b)&&!b||_&&!U_(s).isValid||S&&!q_(s).isValid)){const{value:e,message:t}=N_(l)?{value:!!l,message:l}:Y_(l);if(e&&(A[m]=(0,g.A)({type:p_,message:t,ref:w},E(p_,t)),!r))return x(t),A}if(!C&&(!BS(d)||!BS(f))){let e,t;const n=Y_(f),o=Y_(d);if(BS(b)||isNaN(b)){const r=a.valueAsDate||new Date(b),i=e=>new Date((new Date).toDateString()+" "+e),s="time"==a.type,l="week"==a.type;__(n.value)&&b&&(e=s?i(b)>i(n.value):l?b>n.value:r>new Date(n.value)),__(o.value)&&b&&(t=s?i(b)<i(o.value):l?b<o.value:r<new Date(o.value))}else{const r=a.valueAsNumber||(b?+b:b);BS(n.value)||(e=r>n.value),BS(o.value)||(t=r<o.value)}if((e||t)&&(O(!!e,n.message,o.message,l_,c_),!r))return x(A[m].message),A}if((c||u)&&!C&&(__(b)||i&&Array.isArray(b))){const e=Y_(c),t=Y_(u),n=!BS(e.value)&&b.length>+e.value,o=!BS(t.value)&&b.length<+t.value;if((n||o)&&(O(n,e.message,t.message),!r))return x(A[m].message),A}if(p&&!C&&__(b)){const{value:e,message:t}=Y_(p);if(z_(e)&&!b.match(e)&&(A[m]=(0,g.A)({type:f_,message:t,ref:a},E(f_,t)),!r))return x(t),A}if(h)if(L_(h)){const e=H_(await h(b,n),w);if(e&&(A[m]=(0,g.A)((0,g.A)({},e),E(h_,e.message)),!r))return x(e.message),A}else if(US(h)){let e={};for(const t in h){if(!b_(e)&&!r)break;const o=H_(await h[t](b,n),w,t);o&&(e=(0,g.A)((0,g.A)({},o),E(t,o.message)),x(o.message),r&&(A[m]=e))}if(!b_(e)&&(A[m]=(0,g.A)({ref:w},e),!r))return A}return x(!0),A};function K_(e,t){const n=Array.isArray(t)?t:XS(t)?[t]:JS(t),r=1===n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=KS(e)?r++:e[t[r++]];return e}(e,n),o=n.length-1,i=n[o];return r&&delete r[i],0!==o&&(US(r)&&b_(r)||Array.isArray(r)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!KS(e[t]))return!1;return!0}(r))&&K_(e,n.slice(0,-1)),e}var $_=()=>{let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},Q_=e=>BS(e)||!VS(e);function X_(e,t){if(Q_(e)||Q_(t))return e===t;if(zS(e)&&zS(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n){const n=e[o];if(!r.includes(o))return!1;if("ref"!==o){const e=t[o];if(zS(n)&&zS(e)||US(n)&&US(e)||Array.isArray(n)&&Array.isArray(e)?!X_(n,e):n!==e)return!1}}return!0}var J_=e=>"select-multiple"===e.type,Z_=e=>j_(e)&&e.isConnected,ek=e=>{for(const t in e)if(L_(e[t]))return!0;return!1};function tk(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Array.isArray(e);if(US(e)||n)for(const r in e)Array.isArray(e[r])||US(e[r])&&!ek(e[r])?(t[r]=Array.isArray(e[r])?[]:{},tk(e[r],t[r])):BS(e[r])||(t[r]=!0);return t}function nk(e,t,n){const r=Array.isArray(e);if(US(e)||r)for(const o in e)Array.isArray(e[o])||US(e[o])&&!ek(e[o])?KS(t)||Q_(n[o])?n[o]=Array.isArray(e[o])?tk(e[o],[]):(0,g.A)({},tk(e[o])):nk(e[o],BS(t)?{}:t[o],n[o]):n[o]=!X_(e[o],t[o]);return n}var rk=(e,t)=>nk(e,t,tk(t)),ok=(e,t)=>{let{valueAsNumber:n,valueAsDate:r,setValueAs:o}=t;return KS(e)?e:n?""===e?NaN:e?+e:e:r&&__(e)?new Date(e):o?o(e):e};function ik(e){const t=e.ref;return D_(t)?t.files:F_(t)?q_(e.refs).value:J_(t)?[...t.selectedOptions].map((e=>{let{value:t}=e;return t})):FS(t)?U_(e.refs).value:ok(KS(t.value)?e.ref.value:t.value,e)}var ak=e=>KS(e)?e:z_(e)?e.source:US(e)?z_(e.value)?e.value.source:e.value:e;const sk="AsyncFunction";function lk(e,t,n){const r=$S(e,n);if(r||XS(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const r=o.join("."),i=$S(t,r),a=$S(e,r);if(i&&!Array.isArray(i)&&n!==r)return{name:n};if(a&&a.type)return{name:r,error:a};o.pop()}return{name:n}}const ck={mode:i_,reValidateMode:o_,shouldFocusError:!0};function uk(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,g.A)((0,g.A)({},ck),t),r={submitCount:0,isDirty:!1,isLoading:L_(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},o={},i=(US(n.defaultValues)||US(n.values))&&YS(n.defaultValues||n.values)||{},a=n.shouldUnregister?{}:YS(i),s={action:!1,mount:!1,watch:!1},l={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:$_(),array:$_(),state:$_()},f=I_(n.mode),p=I_(n.reValidateMode),h=n.criteriaMode===s_,m=async e=>{if(!n.disabled&&(u.isValid||e)){const e=n.resolver?b_((await x()).errors):await A(o,!0);e!==r.isValid&&d.state.next({isValid:e})}},v=(e,t)=>{n.disabled||!u.isValidating&&!u.validatingFields||((e||Array.from(l.mount)).forEach((e=>{e&&(t?ZS(r.validatingFields,e,t):K_(r.validatingFields,e))})),d.state.next({validatingFields:r.validatingFields,isValidating:!b_(r.validatingFields)}))},y=(e,t,n,r)=>{const l=$S(o,e);if(l){const o=$S(a,e,KS(n)?$S(i,e):n);KS(o)||r&&r.defaultChecked||t?ZS(a,e,t?o:ik(l._f)):k(e,o),s.mount&&m()}},b=(e,t,a,s,l)=>{let c=!1,f=!1;const p={name:e};if(!n.disabled){const n=!!($S(o,e)&&$S(o,e)._f&&$S(o,e)._f.disabled);if(!a||s){u.isDirty&&(f=r.isDirty,r.isDirty=p.isDirty=S(),c=f!==p.isDirty);const o=n||X_($S(i,e),t);f=!(n||!$S(r.dirtyFields,e)),o||n?K_(r.dirtyFields,e):ZS(r.dirtyFields,e,!0),p.dirtyFields=r.dirtyFields,c=c||u.dirtyFields&&f!==!o}if(a){const t=$S(r.touchedFields,e);t||(ZS(r.touchedFields,e,a),p.touchedFields=r.touchedFields,c=c||u.touchedFields&&t!==a)}c&&l&&d.state.next(p)}return c?p:{}},w=(t,o,i,a)=>{const s=$S(r.errors,t),l=u.isValid&&QS(o)&&r.isValid!==o;var f;if(n.delayError&&i?(f=()=>((e,t)=>{ZS(r.errors,e,t),d.state.next({errors:r.errors})})(t,i),e=e=>{clearTimeout(c),c=setTimeout(f,e)},e(n.delayError)):(clearTimeout(c),e=null,i?ZS(r.errors,t,i):K_(r.errors,t)),(i?!X_(s,i):s)||!b_(a)||l){const e=(0,g.A)((0,g.A)((0,g.A)({},a),l&&QS(o)?{isValid:o}:{}),{},{errors:r.errors,name:t});r=(0,g.A)((0,g.A)({},r),e),d.state.next(e)}},x=async e=>{v(e,!0);const t=await n.resolver(a,n.context,((e,t,n,r)=>{const o={};for(const i of e){const e=$S(t,i);e&&ZS(o,i,e._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}})(e||l.mount,o,n.criteriaMode,n.shouldUseNativeValidation));return v(e),t},A=async function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{valid:!0};for(const s in e){const c=e[s];if(c){const{_f:e}=c,d=(0,ns.A)(c,jS);if(e){const d=l.array.has(e.name),f=c._f&&(!!(i=c._f)&&!!i.validate&&!!(L_(i.validate)&&i.validate.constructor.name===sk||US(i.validate)&&Object.values(i.validate).find((e=>e.constructor.name===sk))));f&&u.validatingFields&&v([s],!0);const p=await G_(c,l.disabled,a,h,n.shouldUseNativeValidation&&!t,d);if(f&&u.validatingFields&&v([s]),p[e.name]&&(o.valid=!1,t))break;!t&&($S(p,e.name)?d?M_(r.errors,p,e.name):ZS(r.errors,e.name,p[e.name]):K_(r.errors,e.name))}!b_(d)&&await A(d,t,o)}}var i;return o.valid},S=(e,t)=>!n.disabled&&(e&&t&&ZS(a,e,t),!X_(R(),i)),_=(e,t,n)=>k_(e,l,(0,g.A)({},s.mount?a:KS(t)?i:__(e)?{[e]:t}:t),n,t),k=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=$S(o,e);let i=t;if(r){const n=r._f;n&&(!n.disabled&&ZS(a,e,ok(t,n)),i=j_(n.ref)&&BS(t)?"":t,J_(n.ref)?[...n.ref.options].forEach((e=>e.selected=i.includes(e.value))):n.refs?FS(n.ref)?n.refs.length>1?n.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(i)?!!i.find((t=>t===e.value)):i===e.value))):n.refs[0]&&(n.refs[0].checked=!!i):n.refs.forEach((e=>e.checked=e.value===i)):D_(n.ref)?n.ref.value="":(n.ref.value=i,n.ref.type||d.values.next({name:e,values:(0,g.A)({},a)})))}(n.shouldDirty||n.shouldTouch)&&b(e,i,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&I(e)},C=(e,t,n)=>{for(const r in t){const i=t[r],a="".concat(e,".").concat(r),s=$S(o,a);(l.array.has(e)||US(i)||s&&!s._f)&&!zS(i)?C(a,i,n):k(a,i,n)}},E=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const c=$S(o,e),f=l.array.has(e),p=YS(t);ZS(a,e,p),f?(d.array.next({name:e,values:(0,g.A)({},a)}),(u.isDirty||u.dirtyFields)&&n.shouldDirty&&d.state.next({name:e,dirtyFields:rk(i,a),isDirty:S(e,p)})):!c||c._f||BS(p)?k(e,p,n):C(e,p,n),R_(e,l)&&d.state.next((0,g.A)({},r)),d.values.next({name:s.mount?e:void 0,values:(0,g.A)({},a)})},O=async t=>{s.mount=!0;const i=t.target;let c=i.name,y=!0;const S=$S(o,c),_=e=>{y=Number.isNaN(e)||zS(e)&&isNaN(e.getTime())||X_(e,$S(a,c,e))};if(S){let s,C;const E=i.type?ik(S._f):WS(t),O=t.type===e_||t.type===t_,T=!((k=S._f).mount&&(k.required||k.min||k.max||k.maxLength||k.minLength||k.pattern||k.validate))&&!n.resolver&&!$S(r.errors,c)&&!S._f.deps||((e,t,n,r,o)=>!o.isOnAll&&(!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:!(n?r.isOnChange:o.isOnChange)||e))(O,$S(r.touchedFields,c),r.isSubmitted,p,f),R=R_(c,l,O);ZS(a,c,E),O?(S._f.onBlur&&S._f.onBlur(t),e&&e(0)):S._f.onChange&&S._f.onChange(t);const P=b(c,E,O,!1),M=!b_(P)||R;if(!O&&d.values.next({name:c,type:t.type,values:(0,g.A)({},a)}),T)return u.isValid&&("onBlur"===n.mode&&O?m():O||m()),M&&d.state.next((0,g.A)({name:c},R?{}:P));if(!O&&R&&d.state.next((0,g.A)({},r)),n.resolver){const{errors:e}=await x([c]);if(_(E),y){const t=lk(r.errors,o,c),n=lk(e,o,t.name||c);s=n.error,c=n.name,C=b_(e)}}else v([c],!0),s=(await G_(S,l.disabled,a,h,n.shouldUseNativeValidation))[c],v([c]),_(E),y&&(s?C=!1:u.isValid&&(C=await A(o,!0)));y&&(S._f.deps&&I(S._f.deps),w(c,C,s,P))}var k},T=(e,t)=>{if($S(r.errors,t)&&e.focus)return e.focus(),1},I=async function(e){let t,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=x_(e);if(n.resolver){const n=await(async e=>{const{errors:t}=await x(e);if(e)for(const n of e){const e=$S(t,n);e?ZS(r.errors,n,e):K_(r.errors,n)}else r.errors=t;return t})(KS(e)?e:s);t=b_(n),i=e?!s.some((e=>$S(n,e))):t}else e?(i=(await Promise.all(s.map((async e=>{const t=$S(o,e);return await A(t&&t._f?{[e]:t}:t)})))).every(Boolean),(i||r.isValid)&&m()):i=t=await A(o);return d.state.next((0,g.A)((0,g.A)((0,g.A)({},!__(e)||u.isValid&&t!==r.isValid?{}:{name:e}),n.resolver||!e?{isValid:t}:{}),{},{errors:r.errors})),a.shouldFocus&&!i&&P_(o,T,e?s:l.mount),i},R=e=>{const t=(0,g.A)({},s.mount?a:i);return KS(e)?t:__(e)?$S(t,e):e.map((e=>$S(t,e)))},P=(e,t)=>({invalid:!!$S((t||r).errors,e),isDirty:!!$S((t||r).dirtyFields,e),error:$S((t||r).errors,e),isValidating:!!$S(r.validatingFields,e),isTouched:!!$S((t||r).touchedFields,e)}),M=(e,t,n)=>{const i=($S(o,e,{_f:{}})._f||{}).ref,a=$S(r.errors,e)||{},{ref:s,message:l,type:c}=a,u=(0,ns.A)(a,NS);ZS(r.errors,e,(0,g.A)((0,g.A)((0,g.A)({},u),t),{},{ref:i})),d.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&i&&i.focus&&i.focus()},D=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(const s of e?x_(e):l.mount)l.mount.delete(s),l.array.delete(s),t.keepValue||(K_(o,s),K_(a,s)),!t.keepError&&K_(r.errors,s),!t.keepDirty&&K_(r.dirtyFields,s),!t.keepTouched&&K_(r.touchedFields,s),!t.keepIsValidating&&K_(r.validatingFields,s),!n.shouldUnregister&&!t.keepDefaultValue&&K_(i,s);d.values.next({values:(0,g.A)({},a)}),d.state.next((0,g.A)((0,g.A)({},r),t.keepDirty?{isDirty:S()}:{})),!t.keepIsValid&&m()},L=e=>{let{disabled:t,name:n,field:r,fields:o}=e;(QS(t)&&s.mount||t||l.disabled.has(n))&&(t?l.disabled.add(n):l.disabled.delete(n),b(n,ik(r?r._f:$S(o,n)._f),!1,!1,!0))},j=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=$S(o,e);const a=QS(t.disabled)||QS(n.disabled);return ZS(o,e,(0,g.A)((0,g.A)({},r||{}),{},{_f:(0,g.A)((0,g.A)({},r&&r._f?r._f:{ref:{name:e}}),{},{name:e,mount:!0},t)})),l.mount.add(e),r?L({field:r,disabled:QS(t.disabled)?t.disabled:n.disabled,name:e}):y(e,!0,t.value),(0,g.A)((0,g.A)((0,g.A)({},a?{disabled:t.disabled||n.disabled}:{}),n.progressive?{required:!!t.required,min:ak(t.min),max:ak(t.max),minLength:ak(t.minLength),maxLength:ak(t.maxLength),pattern:ak(t.pattern)}:{}),{},{name:e,onChange:O,onBlur:O,ref:a=>{if(a){j(e,t),r=$S(o,e);const n=KS(a.value)&&a.querySelectorAll&&a.querySelectorAll("input,select,textarea")[0]||a,s=(e=>F_(e)||FS(e))(n),l=r._f.refs||[];if(s?l.find((e=>e===n)):n===r._f.ref)return;ZS(o,e,{_f:(0,g.A)((0,g.A)({},r._f),s?{refs:[...l.filter(Z_),n,...Array.isArray($S(i,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n})}),y(e,!1,void 0,n)}else r=$S(o,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!qS(l.array,e)||!s.action)&&l.unMount.add(e)}})},N=()=>n.shouldFocusError&&P_(o,T,l.mount),F=(e,t)=>async i=>{let s;i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let c=YS(a);if(l.disabled.size)for(const e of l.disabled)ZS(c,e,void 0);if(d.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await x();r.errors=e,c=t}else await A(o);if(K_(r.errors,"root"),b_(r.errors)){d.state.next({errors:{}});try{await e(c,i)}catch(u){s=u}}else t&&await t((0,g.A)({},r.errors),i),N(),setTimeout(N);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:b_(r.errors)&&!s,submitCount:r.submitCount+1,errors:r.errors}),s)throw s},z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const c=e?YS(e):i,f=YS(c),p=b_(e),h=p?i:f;if(t.keepDefaultValues||(i=c),!t.keepValues){if(t.keepDirtyValues){const e=new Set([...l.mount,...Object.keys(rk(i,a))]);for(const t of Array.from(e))$S(r.dirtyFields,t)?ZS(h,t,$S(a,t)):E(t,$S(h,t))}else{if(HS&&KS(e))for(const e of l.mount){const t=$S(o,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(j_(e)){const t=e.closest("form");if(t){t.reset();break}}}}o={}}a=n.shouldUnregister?t.keepDefaultValues?YS(i):{}:YS(h),d.array.next({values:(0,g.A)({},h)}),d.values.next({values:(0,g.A)({},h)})}l={mount:t.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!u.isValid||!!t.keepIsValid||!!t.keepDirtyValues,s.watch=!!n.shouldUnregister,d.state.next({submitCount:t.keepSubmitCount?r.submitCount:0,isDirty:!p&&(t.keepDirty?r.isDirty:!(!t.keepDefaultValues||X_(e,i))),isSubmitted:!!t.keepIsSubmitted&&r.isSubmitted,dirtyFields:p?{}:t.keepDirtyValues?t.keepDefaultValues&&a?rk(i,a):r.dirtyFields:t.keepDefaultValues&&e?rk(i,e):t.keepDirty?r.dirtyFields:{},touchedFields:t.keepTouched?r.touchedFields:{},errors:t.keepErrors?r.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1})},B=(e,t)=>z(L_(e)?e(a):e,t);return{control:{register:j,unregister:D,getFieldState:P,handleSubmit:F,setError:M,_executeSchema:x,_getWatch:_,_getDirty:S,_updateValid:m,_removeUnmounted:()=>{for(const e of l.unMount){const t=$S(o,e);t&&(t._f.refs?t._f.refs.every((e=>!Z_(e))):!Z_(t._f.ref))&&D(e)}l.unMount=new Set},_updateFieldArray:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],l=arguments.length>2?arguments[2]:void 0,c=arguments.length>3?arguments[3]:void 0,f=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],p=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(c&&l&&!n.disabled){if(s.action=!0,p&&Array.isArray($S(o,e))){const t=l($S(o,e),c.argA,c.argB);f&&ZS(o,e,t)}if(p&&Array.isArray($S(r.errors,e))){const t=l($S(r.errors,e),c.argA,c.argB);f&&ZS(r.errors,e,t),((e,t)=>{!GS($S(e,t)).length&&K_(e,t)})(r.errors,e)}if(u.touchedFields&&p&&Array.isArray($S(r.touchedFields,e))){const t=l($S(r.touchedFields,e),c.argA,c.argB);f&&ZS(r.touchedFields,e,t)}u.dirtyFields&&(r.dirtyFields=rk(i,a)),d.state.next({name:e,isDirty:S(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else ZS(a,e,t)},_updateDisabledField:L,_getFieldArray:e=>GS($S(s.mount?a:i,e,n.shouldUnregister?$S(i,e,[]):[])),_reset:z,_resetDefaultValues:()=>L_(n.defaultValues)&&n.defaultValues().then((e=>{B(e,n.resetOptions),d.state.next({isLoading:!1})})),_updateFormState:e=>{r=(0,g.A)((0,g.A)({},r),e)},_disableForm:e=>{QS(e)&&(d.state.next({disabled:e}),P_(o,((t,n)=>{const r=$S(o,n);r&&(t.disabled=r._f.disabled||e,Array.isArray(r._f.refs)&&r._f.refs.forEach((t=>{t.disabled=r._f.disabled||e})))}),0,!1))},_subjects:d,_proxyFormState:u,_setErrors:e=>{r.errors=e,d.state.next({errors:r.errors,isValid:!1})},get _fields(){return o},get _formValues(){return a},get _state(){return s},set _state(e){s=e},get _defaultValues(){return i},get _names(){return l},set _names(e){l=e},get _formState(){return r},set _formState(e){r=e},get _options(){return n},set _options(e){n=(0,g.A)((0,g.A)({},n),e)}},trigger:I,register:j,handleSubmit:F,watch:(e,t)=>L_(e)?d.values.subscribe({next:n=>e(_(void 0,t),n)}):_(e,t,!0),setValue:E,getValues:R,reset:B,resetField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};$S(o,e)&&(KS(t.defaultValue)?E(e,YS($S(i,e))):(E(e,t.defaultValue),ZS(i,e,YS(t.defaultValue))),t.keepTouched||K_(r.touchedFields,e),t.keepDirty||(K_(r.dirtyFields,e),r.isDirty=t.defaultValue?S(e,YS($S(i,e))):S()),t.keepError||(K_(r.errors,e),u.isValid&&m()),d.state.next((0,g.A)({},r)))},clearErrors:e=>{e&&x_(e).forEach((e=>K_(r.errors,e))),d.state.next({errors:e?r.errors:{}})},unregister:D,setError:M,setFocus:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=$S(o,e),r=n&&n._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&L_(e.select)&&e.select())}},getFieldState:P}}const dk=sp.injectEndpoints({endpoints:e=>({verifyLocatorOrSelector:e.mutation({query:e=>({method:"POST",url:"/locators/play",body:e})}),testLocatorsIdentity:e.mutation({query:e=>({method:"POST",url:"/locators/test-identical",body:e})}),generateAILocator:e.mutation({query:e=>({method:"POST",url:"/ai/locators/generate",body:e})}),extractCSS:e.mutation({query:e=>({method:"POST",url:"/ai/locators/extract-css",body:e})}),filterLocators:e.mutation({query:e=>({method:"POST",url:"/ai/locators/filter",body:e})}),cancelAILocatorProcess:e.mutation({query:e=>({method:"DELETE",url:"/ai/locators/process/".concat(e.id)})})})}),{useVerifyLocatorOrSelectorMutation:fk,useTestLocatorsIdentityMutation:pk,useGenerateAILocatorMutation:hk,useExtractCSSMutation:mk,useFilterLocatorsMutation:gk,useCancelAILocatorProcessMutation:vk,endpoints:yk}=dk;__webpack_require__(9411);let bk=function(e){return e.Valid="valid",e.Invalid="invalid",e.NotApplicable="not-applicable",e.Loading="loading",e}({});const wk=Jr({name:"locators",initialState:{locatorsAlternatesCache:[],locatorsVerificationCache:[],locatorSuggestions:{},currentLocatorValidationStatus:{validityStatus:bk.NotApplicable}},reducers:{addLocatorVerificationCache:(e,t)=>{e.locatorsVerificationCache.push(t.payload)},addLocatorAlternateCache:(e,t)=>{e.locatorsAlternatesCache.push(t.payload)},clearLocatorAlternateCache:e=>{e.locatorsAlternatesCache=[]},addLocatorSuggestion:(e,t)=>{const{id:n,suggestion:r}=t.payload;e.locatorSuggestions[n]=r},deleteLocatorSuggestion:(e,t)=>{delete e.locatorSuggestions[t.payload.id]},setLocatorValidityStatus:(e,t)=>{e.currentLocatorValidationStatus=t.payload},resetLocatorValidityStatus:e=>{e.currentLocatorValidationStatus={validityStatus:bk.NotApplicable}}}}),{addLocatorVerificationCache:xk,addLocatorAlternateCache:Ak,clearLocatorAlternateCache:Sk,addLocatorSuggestion:_k,deleteLocatorSuggestion:kk,setLocatorValidityStatus:Ck,resetLocatorValidityStatus:Ek}=wk.actions,Ok=wk.reducer,Tk=e=>e.locators.currentLocatorValidationStatus,Ik=(e,t)=>{switch(e.type){case Yw.DropTarget:return t.dropTarget;case Yw.Assertion:case Yw.Action:return t;default:return{locator:null,alternateLocators:null}}},Rk=e=>{const t=tp.getState();var n,r;return[Yw.Action,Yw.DropTarget].includes(e.type)?null===(n=t.actions.actions)||void 0===n?void 0:n[e.id]:e.type===Yw.Assertion?null===(r=t.assertions.assertions)||void 0===r?void 0:r[e.id]:void 0},Pk=async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{var n;const o=tp.getState(),{locator:i,alternates:a,origin:s,target:l}=e;try{const{locator:e,alternateLocators:{origin:t}}=Ik(l,Rk(l));if(e===i&&t===s)return}catch(r){}const c=e=>{var t;const n=null===(t=o.actions.actions)||void 0===t?void 0:t[e];if(!n)throw new Error("No action found");return n},u=(()=>{var e,t;switch(l.type){case Yw.DropTarget:const n=c(l.id);return{dropTarget:(0,g.A)((0,g.A)({},null!==(e=n.dropTarget)&&void 0!==e?e:{}),{},{locator:i,alternateLocators:{origin:s,locators:a}})};case Yw.Assertion:const r=null===(t=o.assertions.assertions)||void 0===t?void 0:t[l.id];return r?{id:r.id,locator:i,actionId:r.actionId,alternateLocators:{origin:s,locators:a}}:(console.error("No assertion found",l.id),null);case Yw.Action:return{id:l.id,locator:i,alternateLocators:{origin:s,locators:a}};default:return null}})();if(!u)return;const d=tp.getDispatch(),f=o.settings.useCodeBasedSteps,p=Vz(o,o.steps.activeStep.id),h=null!==(n=p.assertion)&&void 0!==n?n:p.action;if(h.id===l.id&&f)return!function(e,t){const n=e=>e.replace(/['"\s]/g,"");return n(e).trim()===n(t).trim()}(h.locator,u.locator)&&t&&(d(_k({id:l.id,suggestion:u.locator})),delete u.locator),l.type===Yw.Assertion&&d(HC({id:l.id,data:u})),void(l.type===Yw.Action&&d(Sv({id:l.id,data:u})));l.type===Yw.Assertion?await d(iE.updateAssertion.initiate({id:l.id,data:u})).unwrap():await d(Nv.updateAction.initiate({id:l.id,data:u})).unwrap()}catch(r){console.error("Error setting locator for action",r)}},Mk=e=>{const t=tp.getDispatch();if(e.target&&!e.timestamp){var n;const t=null===(n=Rk(e.target))||void 0===n?void 0:n.timestamp;if(!t)return void console.error("No timestamp found for target",e.target);e.timestamp=t}t(Ak((0,g.A)((0,g.A)({},e),{},{locator:e.locator,alternates:e.alternates})))},Dk=e=>{tp.getDispatch()(xk(e))},Lk=function(e,t,n){var r;let{rrwebId:o}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=tp.getState(),a=Nk(e),s=(e=>e.locators.locatorsAlternatesCache)(i).filter((e=>e.timestamp===t&&(Nk(e.locator)===a||e.alternates.map(Nk).includes(a)||!!o&&e.rrwebId===o)));return n?s.find((e=>e.origin===n)):null===(r=s.sort(((e,t)=>{var n,r;return(null!==(n=jk.get(e.origin))&&void 0!==n?n:1/0)-(null!==(r=jk.get(t.origin))&&void 0!==r?r:1/0)})))||void 0===r?void 0:r[0]},jk=new Map(Object.keys(Hw).map(((e,t)=>[Hw[e],t]))),Nk=e=>{if(e)return e.replace(/\s+/g,"").replace(/,\s*}/g,"}").replace(/,\s*]/g,"]").replace(/'/g,'"')};function Fk(e){if(!e)return!1;const t=e.getBoundingClientRect();return t.top<=window.innerHeight&&t.left<=window.innerWidth&&t.bottom>=0&&t.right>=0}function zk(e){try{return"fixed"===getComputedStyle(e).position||!(!e.parentElement||e.parentElement===document.body)&&zk(e.parentElement)}catch(t){return console.error("isAncestorOrSelfFixed",t),!1}}function Bk(e){const{top:t}=e.getBoundingClientRect();return t<0?-t:0}function Vk(e){const{bottom:t}=e.getBoundingClientRect(),n=window.innerHeight;return t>n?t-n:0}const Uk=e=>{const t=e.parentElement;if(t)return t;switch(e.nodeType){case Node.ELEMENT_NODE:const t=e;if(t.assignedSlot)return t.assignedSlot;break;case Node.DOCUMENT_FRAGMENT_NODE:return e.host}const n=e.parentNode;if(n)switch(n.nodeType){case Node.DOCUMENT_FRAGMENT_NODE:return n.host;case Node.DOCUMENT_NODE:if(window.document===n)return null;const e=Array.from(window.document.querySelectorAll("iframe")).find((e=>e.contentDocument===n));if(e)return e}return null};class Wk{constructor(e){this.element=void 0,this.elRect=void 0,this.initialScrollPositions=void 0,this.element=e,this.elRect=this.element.getBoundingClientRect()}scrollIntoView(){let{dontScrollIfAlreadyInView:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e&&Fk(this.element))return this;if(this.getScrollableParentsPositions(),!this.initialScrollPositions.length)return this;if(this.element.scrollIntoView({block:"center",inline:"center"}),!Fk(this.element))for(const t of this.initialScrollPositions){const e=t.element.getBoundingClientRect();if(this.elRect.top<e.top||this.elRect.bottom>e.bottom){const n=this.elRect.top-e.top+t.element.scrollTop;t.element.scrollTop=n}}return this}restore(){this.initialScrollPositions&&this.initialScrollPositions.forEach((e=>{let{element:t,top:n,left:r}=e;try{t.scroll(r,n)}catch(o){console.warn("[ScrollHelper/restore] couldn't restore initial scroll for",{element:t,top:n,left:r},o)}}))}static getScrollData(e){const t=t=>{const n="top"===t?"scrollTop":"scrollLeft",r=e[n];try{if(e[n]=r+1,e[n]!==r)return!0;if(e[n]=r-1,e[n]!==r)return!0}finally{e[n]=r}return!1},n=e.scrollHeight>e.clientHeight&&t("top"),r=e.scrollWidth>e.clientWidth&&t("left");return{canScrollY:n,canScrollX:r,progressY:n?e.scrollTop/(e.scrollHeight-e.clientHeight):void 0,progressX:r?e.scrollLeft/(e.scrollWidth-e.clientWidth):void 0}}static scrollScrollableElement(e,t,n){const r="y"===t,o=r?e.scrollHeight:e.scrollWidth,i=r?e.clientHeight:e.clientWidth,a=r?e.scrollTop:e.scrollLeft;let s;switch(n){case"forward":s=a+i;break;case"backwards":s=Math.max(0,a-i);break;case"end":s=o-i;break;case"start":s=0;break;default:if("number"!==typeof n)return console.log('Invalid length parameter: expected "next", "end", "start", or a number, but received '.concat(n)),{result:!1,error:'Invalid parameter: expected "next", "end", "start", or a number, but received '.concat(n)};s=(o-i)*Math.max(0,Math.min(n,100))/100}if(s=Math.max(0,Math.min(s,o-i)),console.log("ScrollHelper/scrollScrollableElement: new, left, top",s,e.scrollLeft,e.scrollTop),r){if(e.scrollTop===s)return{result:!1,error:"The element is already scrolled to the desired position"};e.scrollTop=s}else{if(e.scrollLeft===s)return{result:!1,error:"The element is already scrolled to the desired position"};e.scrollLeft=s}return{result:!0}}getScrollableParentsPositions(){this.initialScrollPositions=[];let e=Uk(this.element);for(;null!=e;)(e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth)&&this.initialScrollPositions.push({element:e,top:e.scrollTop,left:e.scrollLeft}),e=Uk(e)}}const qk=new class{constructor(){this.lastHighlights=[]}clearHighlights(){this.lastHighlights.length&&(this.lastHighlights.forEach((e=>e.remove())),this.lastHighlights=[])}highlightElement(e){let{highlightStyle:t={},textStyle:n={},mousePosition:r,text:o,textType:i="static",textPosition:a="overlap",textWidthType:s="rect",clear:l=!0,shouldFlipHighlightTextOutsideViewport:c=!0,pointerEvents:u,classNames:d=[],renderDocument:f,scroll:p=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(l&&this.clearHighlights(),!e)return;const h={left:0,top:0,right:0,bottom:0};let m=1,g=1;if(f!==e.ownerDocument){var v;let t=null===(v=e.ownerDocument.defaultView)||void 0===v?void 0:v.frameElement;for(;t&&t.contentDocument!==f;){var y;const e=t.getBoundingClientRect(),n=this.getScaleFromStyles(t);m*=n.scaleX,g*=n.scaleY,h.left+=e.left,h.top+=e.top,t=null===(y=t.ownerDocument.defaultView)||void 0===y?void 0:y.frameElement}}const b=null!==f&&void 0!==f?f:e.ownerDocument,w=zk(e),x=e.getBoundingClientRect(),A={top:x.top*g+h.top,left:x.left*m+h.left};if(!w){var S,_;const e=(null===(S=b.defaultView)||void 0===S?void 0:S.scrollX)||0,t=(null===(_=b.defaultView)||void 0===_?void 0:_.scrollY)||0;A.left+=e,A.top+=t}const k=b.createElement("div");if(k.style.outline="2px dashed rgba(255,0,0,.75)",k.style.position=w?"fixed":"absolute",k.style.left=A.left+"px",k.style.top=A.top+"px",k.style.width=x.width*m+"px",k.style.height=x.height*g+"px",k.style.pointerEvents=null!==u&&void 0!==u?u:"none",k.style.zIndex="2147483647",k.className=["checksum-dom-cache-ignore",...d].join(" "),this.mergeStyle(k,t),r){const e=b.createElement("div");if(e.style.position="absolute",e.style.left=+r.x-16+"px",e.style.top=+r.y-16+"px",e.style.color="#004DFF",e.className=["checksum-dom-cache-ignore","mouse-cross",...d].join(" "),e.style.zIndex="2147483648",!b.head.querySelector("style[role=mouse-location]")){var C=b.head.appendChild(b.createElement("style"));C.setAttribute("role","mouse-location"),C.innerHTML=".mouse-cross:before, .mouse-cross:after {position: absolute;left: 15px;content: ' ';height: 33px;width: 3px;background-color: #004DFF;}.mouse-cross:before {transform: rotate(0deg);}.mouse-cross:after {transform: rotate(-90deg);}"}b.body.appendChild(e),this.lastHighlights.push(e)}const E=b.createElement("div");o&&(E.className=["checksum-dom-cache-ignore",...d].join(" "),E.innerText=o,E.style.fontSize="12px",E.style.width="rect"===s?"".concat(x.width,"px"):"auto",E.style.background="#000000a1",E.style.color="white",E.style.padding="5px",E.style.position="absolute",E.style.pointerEvents="none",E.style.userSelect="none","above"===a?E.style.bottom="".concat(x.height,"px"):"below"===a&&(E.style.top="".concat(x.height,"px")),this.mergeStyle(E,n),k.appendChild(E),k.style.pointerEvents=null!==u&&void 0!==u?u:"none","hover"===i&&(E.style.display="none",k.addEventListener("mouseover",(()=>{E.style.display="block"})),k.addEventListener("mouseout",(()=>{E.style.display="none"})))),b.body.appendChild(k),"above"===a&&Bk(E)>0?(E.style.bottom="initial",E.style.top="".concat(x.height,"px")):"below"===a&&Vk(E)>0&&(E.style.top="initial",E.style.bottom="".concat(x.height,"px")),this.lastHighlights.push(k),c&&this.flipHighlightTextPositionOutsideViewport(E,a,x.height),p&&new Wk(e).scrollIntoView()}getScaleFromStyles(e){const t=window.getComputedStyle(e),n=t.transform;if(n.startsWith("matrix")){return{scaleX:parseFloat(n.split(",")[0].replace("matrix(",""))||1,scaleY:parseFloat(n.split(",")[3])||1}}if(t.scale){return{scaleX:parseFloat(t.scale)||1,scaleY:parseFloat(t.scale)||1}}return{scaleX:1,scaleY:1}}mergeStyle(e,t){for(const n in t)e.style[n]=t[n]}flipHighlightTextPositionOutsideViewport(e,t,n){"above"===t&&Bk(e)>0?(e.style.bottom="initial",e.style.top="".concat(n,"px")):"below"===t&&Vk(e)>0&&(e.style.top="initial",e.style.bottom="".concat(n,"px"))}};var Hk;class Yk{constructor(e){this.lastPosition=void 0,this.animationFrameId=void 0,this.observer=void 0,this.element=void 0,this.isElementInView=()=>{const e=this.element.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)},this.trackPosition=()=>{const e=this.element.getBoundingClientRect(),t=this.lastPosition;t&&e.top===t.top&&e.left===t.left||(this.lastPosition=e,this.highlight()),this.animationFrameId=requestAnimationFrame(this.trackPosition)},this.onIntersection=e=>{e.forEach((e=>{e.isIntersecting?this.animationFrameId||this.trackPosition():(this.animationFrameId&&(cancelAnimationFrame(this.animationFrameId),this.animationFrameId=null),qk.clearHighlights())}))},this.initObserver=()=>{this.observer=new IntersectionObserver(this.onIntersection,{root:null,threshold:[0]}),this.observer.observe(this.element)},this.destroy=()=>{this.observer&&this.observer.disconnect(),this.animationFrameId&&cancelAnimationFrame(this.animationFrameId),qk.clearHighlights()},this.element=e}start(){this.isElementInView()||new Wk(this.element).scrollIntoView(),this.initObserver(),this.highlight()}highlight(){qk.highlightElement(this.element,{renderDocument:yz.getFrameContentWindowDocument(),highlightStyle:{outline:"2px dashed blue"}})}}Hk=Yk,Yk.run=e=>{const t=new Hk(e);return t.start(),t};let Gk=function(e){return e.Assertions="assertions",e.Locators="locators",e.Thoughts="thoughts",e.ActionsThoughts="actions-thoughts",e.AssertionsThoughts="assertions-thoughts",e}({}),Kk=function(e){return e.Running="Running",e.GotResponse="GotResponse",e.Processing="Processing",e.Failed="Failed",e.Stopping="Stopping",e.Stopped="Stopped",e}({}),$k=function(e){return e[e.StartProcess=0]="StartProcess",e[e.StopProcess=1]="StopProcess",e}({});const Qk=Jr({name:"async-processes",initialState:{processes:[]},reducers:{createProcess:(e,t)=>{e.processes.push((0,g.A)((0,g.A)({},t.payload),{},{startedAt:Date.now()}))},updateProcess:(e,t)=>{const n=e.processes.findIndex((e=>{let{id:n}=e;return n===t.payload.id}));-1!==n?e.processes[n]=(0,g.A)((0,g.A)({},e.processes[n]),t.payload):console.error("No process found for id",t.payload.id)},updateWithResponse:(e,t)=>{const n=e.processes.findIndex((e=>{let{id:n}=e;return n===t.payload.processId}));-1!==n?e.processes[n]=(0,g.A)((0,g.A)({},e.processes[n]),{},{response:t.payload,status:t.payload.error?Kk.Failed:Kk.GotResponse}):console.error("No process found for id",t.payload.processId)},removeAsyncProcess:(e,t)=>{e.processes=e.processes.filter((e=>{let{id:n,startedAt:r}=e;return n!==t.payload.id}))}}}),{createProcess:Xk,updateProcess:Jk,updateWithResponse:Zk,removeAsyncProcess:eC}=Qk.actions,tC=Qk.reducer;class nC{getProcessDataPayload(e){}getTimeout(){return 6e4}}const rC=e=>e.asyncProcesses.processes,oC=hl([rC],(e=>e.filter((e=>e.status===Kk.Running))));function iC(e,t,n){return aC(e,t,n).find((e=>e.status===Kk.Running))}function aC(e,t,n){return e.asyncProcesses.processes.filter((e=>e.type===t&&e.stepId===n))}function sC(e,t,n){let{effects:r}=n;const o=e=>{if(!e||"function"!==typeof e)throw new Error("Invalid matcher provided to registerListeners.")};t.matchPending&&o(t.matchPending),t.matchFulfilled&&o(t.matchFulfilled),t.matchRejected&&o(t.matchRejected),r.onPending&&e.startListening({predicate:t.matchPending,effect:async(e,t)=>{var n;await(null===(n=r.onPending)||void 0===n?void 0:n.call(r,lC(e),t))}}),r.onFulfilled&&e.startListening({predicate:t.matchFulfilled,effect:async(e,t)=>{await r.onFulfilled(lC(e),t)}}),r.onRejected&&e.startListening({predicate:t.matchRejected,effect:async(e,t)=>{await r.onRejected(lC(e),t)}})}const lC=e=>{var t,n;return{args:null===e||void 0===e||null===(t=e.meta)||void 0===t||null===(n=t.arg)||void 0===n?void 0:n.originalArgs,response:e.payload}};class cC{constructor(e){this.middleware=e,this.generators=[],this.onDeleteStep=async(e,t)=>{const n=oC(t.getState()).filter((t=>t.stepId===e.payload.id)),r=n.map((e=>{let{type:t}=e;return t}));this.generators.filter((e=>{let{type:t}=e;return r.includes(t)})).forEach((n=>n.stopGeneration(e.payload,t))),n.forEach((e=>t.dispatch(eC({id:e.id}))))},this.onProcessResponse=async(e,t)=>{const n=rC(t.getState()).find((t=>{let{id:n}=t;return n===e.payload.processId}));if(!n)return;const r=this.generators.find((e=>{let{type:t}=e;return t===n.type}));r&&(n.status===Kk.GotResponse?(r.handleResponse(e.payload,t),t.dispatch(Jk({id:n.id,status:Kk.Stopped}))):n.status===Kk.Failed&&r.handleError(e.payload,t))}}startListening(e){[e.deleteAction,e.deleteAssertion].forEach((e=>{this.middleware.startListening({actionCreator:e,effect:this.onDeleteStep.bind(this)})})),this.middleware.startListening({actionCreator:Zk,effect:this.onProcessResponse.bind(this)})}registerGenerators(e){return this.generators=e,this.addGeneratorsAPIListeners(),this}addGeneratorsAPIListeners(){this.generators.forEach((e=>{e.getApiEndpointsEffects().forEach((t=>{t.actions.forEach((n=>{sC(this.middleware,n,{effects:{onFulfilled:async(n,r)=>{if(t.effect===$k.StartProcess){const{processId:t,stepId:o}=n.response;r.dispatch(Xk({id:t,type:e.type,stepId:o,data:e.getProcessDataPayload(n),status:Kk.Running}))}else if(t.effect===$k.StopProcess){const{stepId:t}=n.response,o=oC(r.getState()).find((n=>n.stepId===t&&n.type===e.type));if(!o)return;r.dispatch(eC({id:o.id}))}}}})}))}))}))}}const uC=()=>(0,o.d4)(oC);var dC=__webpack_require__(3605);class fC extends nC{constructor(){super(...arguments),this.triggerNextProcess=(e,t)=>{const n=(()=>{switch(t){case Hw.AI:return this.extractCSSFeatures;case Hw.WithCSSKeyFeatures:return this.filterAndRank;default:return null}})();if(!n)return;const r=Rk(e.data.target);if(!r)return void console.log("No step found for target",e.data.target);const{target:o}=e.data;n(r,o)},this.locatorTargetBeingProcessed=(e,t)=>{try{return!!rC(t).filter((e=>{let{type:t}=e;return t===Gk.Locators})).some((t=>{const{status:n,data:{target:{id:r,type:o}}={}}=t;return r===e.id&&o===e.type&&n===Kk.Running}))&&(console.log("Already running process for target",e),!0)}catch(n){return!1}},this.extractCSSFeatures=(e,t)=>{var n;const r=tp.getState();if(!this.canGenerate(t,r))return;const o=(null===(n=e.alternateLocators)||void 0===n?void 0:n.origin)===Hw.AI?[e.locator,...e.alternateLocators.locators]:[];if(e){tp.getDispatch()(yk.extractCSS.initiate({step:e,target:t,llmLocators:o,processId:(0,dC.DU)()}))}},this.generateAILocators=(e,t)=>{const n=tp.getState();this.canGenerate(t,n)&&tp.getDispatch()(yk.generateAILocator.initiate({step:e,target:t,processId:(0,dC.DU)()}))},this.filterAndRank=(e,t)=>{var n;const r=tp.getState();if(!this.canGenerate(t,r))return;if((null===(n=e.alternateLocators)||void 0===n?void 0:n.origin)!==Hw.WithCSSKeyFeatures)return;const o=Ik(t,e),i=[o.locator,...o.alternateLocators.locators],a=Lk(o.locator,e.timestamp,Hw.Calculated);a&&i.push(a.locator),tp.getDispatch()(yk.filterLocators.initiate({step:e,target:t,candidates:(0,Kb.uniq)(i),processId:(0,dC.DU)()}))}}getApiEndpointsEffects(){return[{actions:[yk.generateAILocator,yk.extractCSS,yk.filterLocators],effect:$k.StartProcess}]}getProcessDataPayload(e){try{const{target:t,step:{locator:n}}=e.args;return{target:t,originalLocator:n}}catch(t){return console.error("Error getting process data payload",t),{target:null}}}canGenerate(e,t){return!!Rk(e).timestamp&&(!this.locatorTargetBeingProcessed(e,t)&&this.isEnabled(t))}isStepInState(e,t){throw new Error("Method not implemented.")}isEnabled(e){const t=Lw(e);return!t.disableAILocators&&t.optimizeLocators}initiateGeneration(e,t){throw new Error("Method not used.")}generate(e){var t;const n=tp.getState();if(!this.isEnabled(n))return;const r={type:"matcher"in e?Yw.Assertion:Yw.Action,id:e.id,rrwebid:null!==(t=e.rrwebId)&&void 0!==t?t:e.rrwebid};if(!this.canGenerate(r,n))return;tp.getDispatch()(yk.generateAILocator.initiate({step:e,target:r,processId:(0,dC.DU)()}))}handleResponse(e,t){let n;try{if(n=rC(t.getState()).find((t=>{let{id:n}=t;return n===e.processId})),!n)return;if(!e.locator||!e.alternates)return"AI locators process (".concat(n.id,") returned empty respnse, ignoring"),void this.triggerNextProcess(n,e.origin);"Handling AI locators process reponse (".concat(n.id,") ");const r=Rk(n.data.target);if(!r)return console.error("Can't find target step for process",n),void t.dispatch(Jk({id:n.id,status:Kk.Failed}));Mk((0,g.A)((0,g.A)({},e),{},{timestamp:r.timestamp}));const{locator:o}=Ik(n.data.target,r);if(o!==n.data.originalLocator){const t=e.locator;e=(0,g.A)((0,g.A)({},e),{},{locator:o,alternates:(0,Kb.uniq)([t,...e.alternates])})}Pk((0,g.A)((0,g.A)({},e),{},{target:n.data.target}),!0),this.triggerNextProcess(n,e.origin)}catch(r){console.error("Error handling AI locators process (".concat(n.id,")"),e,n)}}handleError(e,t){}stopGeneration(e,t){t.dispatch(yk.cancelAILocatorProcess.initiate(e))}get type(){return Gk.Locators}}const pC=()=>(0,o.d4)(Tk),hC=e=>{let{target:t,fieldsValues:n,stepData:r}=e;const[o,{isLoading:a}]=fk(),s=pC(),l=fn(),c=Gb(l),[u,d]=(0,i.useState)(null),[f,p]=(0,i.useState)(Hw.None),[h,m]=(0,i.useState)([]),[v,y]=(0,i.useState)(null),[b,w]=(0,i.useState)(!1),{highlightElementByLocator:x,stopHighlighting:A}=(()=>{const e=(0,i.useRef)(null),t=(0,i.useCallback)((t=>{t&&(e.current&&e.current.destroy(),e.current=Yk.run(t))}),[]),n=(0,i.useCallback)((()=>{var t;null===(t=e.current)||void 0===t||t.destroy()}),[]);return(0,i.useEffect)((()=>{var t;return null===(t=e.current)||void 0===t?void 0:t.destroy}),[]),{highlightElementByLocator:(0,i.useCallback)((async e=>{try{if(!e)throw new Error("Hightlight element empty rrwebId");const n=yz.getTimeMachineFrameChecksumInterface().timeMachine.sessionReplayer.getNodeById(e);if(!n)throw new Error("Hightlight element node not found");return t(n),{element:n}}catch(r){return console.error(r.message),n(),{element:null}}}),[t,n]),stopHighlighting:n}})(),S=cn(),_=Gb(S),k=uC().filter((e=>e.type===Gk.Locators));(0,i.useEffect)((()=>{w(k.some((e=>{try{const{data:{target:n}}=e;return n.id===t.id&&n.type===t.type}catch(n){return!1}})))}),[k,null===t||void 0===t?void 0:t.id,null===t||void 0===t?void 0:t.type]);const C=(0,i.useCallback)(((e,t,n,o)=>Lk(e,null!==n&&void 0!==n?n:null===r||void 0===r?void 0:r.timestamp,t,{rrwebId:o})),[r]),E=(0,i.useCallback)(((e,n,o,i)=>{Pk({locator:e,alternates:n,origin:o,target:t}),Mk({locator:e,alternates:n,origin:o,timestamp:null===r||void 0===r?void 0:r.timestamp,rrwebId:i})}),[t,Mk,null===r||void 0===r?void 0:r.timestamp]),O=(0,i.useCallback)(((e,t)=>{const n=[{label:e,value:e,suggested:!1},...(null!==t&&void 0!==t?t:[]).filter((t=>t!==e)).map((e=>({label:e,value:e,suggested:!0})))];m(n)}),[m,r]),T=(0,i.useRef)({validating:!1});(0,i.useEffect)((()=>{v&&A()}),[v,A]);const I=(0,i.useCallback)((()=>{if(n)return n;const{locator:e,alternateLocators:o}=Ik(t,r);return{fieldValue:e,alternateFieldValue:o}}),[r,t,n]),{fieldValue:R,alternateFieldValue:P}=I(),M=(0,i.useCallback)((async function(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(S===ni.TimeMachine&&l!==ti.Processing&&(!T.current.validating||T.current.value!==e||T.current.timestamp!==r.timestamp))try{T.current={validating:!0,value:e,timestamp:r.timestamp};const a=async()=>{const n=await o({type:"locator",value:e,fetchRrwebId:!0}).unwrap(),{success:i,message:a,rrwebId:s}=n;if(e!==R)throw new gC;if(!i)throw new Error(a);if(!s)throw new vC;return Dk({locator:e,timestamp:r.timestamp,success:i,message:a,rrwebId:s}),Tz(t.type===Yw.DropTarget?{dropTarget:(0,g.A)((0,g.A)({},r.dropTarget),{},{rrwebId:s})}:{rrwebId:s}),d(!0),y(null),n};if(e)try{const{rrwebId:o}=await a();if(!o)throw new Error("play locator failed");try{const{element:i}=await x(o);if(o){const n=C(e,void 0,r.timestamp,o);if(n)return void Pk((0,g.A)((0,g.A)({},mC(n,e)),{},{target:t}))}if(i&&n&&!h.some((t=>{let{value:n,suggested:r}=t;return n===e&&r}))){const t=await(async e=>{try{var t;const n=yz.getTimeMachineInjectedScript();return(await(null===(t=n.checksum)||void 0===t?void 0:t.testGenerator.buildCustomPlaywrightSelectors(e,[],{addCSSSelectorGenerator:!1,expandCSSKeyElements:!0}))).map((e=>e.locator)).sort(((e,t)=>e.length-t.length)).slice(0,10)}catch(n){return[]}})(i);if(!t.length)return;E(e,t.filter((t=>t!==e)),Hw.Calculated,o)}}catch(i){}}catch(i){if(i instanceof gC||i instanceof vC)return;d(!1),y(i instanceof Error?i.message:String(i)),p(Hw.None),O(e,[])}else d(null),y(null)}finally{T.current={validating:!1,value:void 0,timestamp:void 0}}}),[S,l,o,Dk,r.timestamp,x,h,E,O,C,R]);(0,i.useEffect)((()=>{P&&(p(P.origin),O(R,P.locators))}),[P,R,O]);const D=$b(M,1e3),L=$b((0,i.useCallback)((function(){let{timestamp:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(S!==ni.TimeMachine)return;const n=C(R,void 0,e);let o;n?(Pk((0,g.A)((0,g.A)({},mC(n,R)),{},{origin:n.origin,target:t})),p(n.origin)):null!==R&&void 0!==R&&R.length&&!h.length&&m([{label:R,value:R,suggested:!1}]),n||p(Hw.None),n&&(o=((e,t)=>{return(n=tp.getState(),n.locators.locatorsVerificationCache).find((n=>n.timestamp===t&&n.locator===e));var n})(R,null===r||void 0===r?void 0:r.timestamp),o&&(d(o.success),y(o.success?null:o.message),x(o.rrwebId))),o||D(R,!n)}),[S,l,C,R,h.length,O,t,x,D]),100,{leading:!0}),j=Kt();return(0,i.useEffect)((()=>{j(Ck({validityStatus:S!==ni.TimeMachine?bk.NotApplicable:a?bk.Loading:null===u?bk.NotApplicable:u?bk.Valid:bk.Invalid,message:v}))}),[S,j,u,v,a]),(0,i.useEffect)((()=>{null!==R&&void 0!==R&&R.length&&l!==ti.Processing?L():A()}),[R,l,A]),(0,i.useEffect)((()=>{l!==ti.Processing&&c===ti.Processing&&L()}),[l,c]),(0,i.useEffect)((()=>{void 0!==_&&S===ni.TimeMachine&&_!==S&&L()}),[S,_]),{validityStatus:s.validityStatus,validationError:v,suggestedSelectors:h,aiState:f,locatorProcessing:b,generateWithAI:()=>{switch(f){case Hw.WithCSSKeyFeatures:case Hw.AI:(new fC).extractCSSFeatures(r,t);break;case Hw.Filtered:p(Hw.None),(new fC).generateAILocators(r,t);break;case Hw.None:case Hw.Calculated:(new fC).generateAILocators(r,t)}}}},mC=(e,t)=>{const n=(0,Kb.uniq)(e.alternates.concat([e.locator]).filter((e=>e!==t)));return(0,g.A)((0,g.A)({},e),{},{locator:t,alternates:n})};class gC extends Error{}class vC extends Error{}var yC=__webpack_require__(1427),bC=__webpack_require__(9674);const wC=e=>{let{aiState:t,locatorProcessing:n,onClick:r,isValid:o}=e;return o?n?(0,rs.Y)(pm,{title:"Processing...",children:(0,rs.Y)("span",{children:(0,rs.FD)(Lt,{disabled:!0,sx:{padding:"8px"},children:[(0,rs.Y)(Ps,{size:24})," "]})})}):t===Hw.AI?(0,rs.Y)(pm,{title:"Run LLM Filtering",children:(0,rs.Y)("span",{children:(0,rs.FD)(Lt,{sx:{padding:"8px 0"},style:{color:"#79b1e9"},onClick:r,children:[(0,rs.Y)(yC.A,{})," "]})})}):t===Hw.Filtered?(0,rs.Y)(pm,{title:"Generated and filtered with AI",children:(0,rs.Y)("span",{children:(0,rs.FD)(Lt,{disabled:!0,sx:{padding:"8px 0"},style:{color:"#1976d2"},children:[(0,rs.Y)(yC.A,{})," "]})})}):t===Hw.WithCSSKeyFeatures?(0,rs.Y)(pm,{title:"Extended CSS features with AI",children:(0,rs.FD)(Lt,{sx:{padding:"8px 0"},style:{color:"#a39b00"},children:[(0,rs.Y)(bC.A,{})," "]})}):(0,rs.Y)(pm,{title:"Generate with AI",children:(0,rs.FD)(Lt,{sx:{padding:"8px 0"},style:{color:"rgba(130, 130, 130, 1)"},onClick:r,children:[(0,rs.Y)(yC.A,{})," "]})}):(0,rs.Y)(rs.FK,{})};var xC=__webpack_require__(2302),AC=function(e,t){return"boolean"===typeof t?t:!e};const SC=function(e){return(0,i.useReducer)(AC,e)},_C=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const[t,n]=SC(e),r=(0,i.useCallback)((()=>{n(!0)}),[n]);return{isOn:t,off:(0,i.useCallback)((()=>{n(!1)}),[n]),on:r,toggle:n}},kC=e=>{let{timestamp:t,onClick:n,ref:r,buttonStyles:o,eventName:a}=e;const{handleClick:s,tooltipMessage:l,active:c}=(e=>{let{timestamp:t,onClick:n,eventName:r}=e;const o=Kt(),{isOn:a,toggle:s}=_C(),l=(0,i.useMemo)((()=>"Turn Inspector ".concat(a?"off":"on"," ")),[a]);return{handleClick:(0,i.useCallback)((e=>{e.stopPropagation(),e.preventDefault(),a?yz.stopInspector():(o(di()),yz.startInspector({timestamp:t,eventName:null!==r&&void 0!==r?r:Bw})),s(),null===n||void 0===n||n()}),[n,t,a]),tooltipMessage:l,active:a}})({onClick:n,timestamp:t,eventName:a}),u=(e=>{let{active:t,buttonStyles:n}=e;return(0,i.useMemo)((()=>({button:(0,le.AH)({color:t?"#1976d2":"gray"},n,"","")})),[t,n])})({active:c,buttonStyles:o});return(0,rs.Y)(pm,{title:l,children:(0,rs.Y)(Lt,{onClick:s,css:u.button,ref:r,"data-testid":Ng.SelectLocatorButton,children:(0,rs.Y)(xC.A,{})})})},CC=e=>{let{name:t,target:n,alternatesName:r,label:o="Locator",onArrowClick:a,isActive:s,stepData:l}=e;const{validityStatus:c,validationError:u,handleOnArrowClick:d,handleInputChange:f,suggestedSelectors:p,aiState:h,locatorProcessing:m,generateWithAI:v}=(e=>{let{name:t,target:n,alternatesName:r,onArrowClick:o,stepData:a}=e;const{setValue:s,control:l}=g_(),c=C_({control:l,name:t}),u=C_({control:l,name:r}),d=(0,i.useMemo)((()=>({fieldValue:c,alternateFieldValue:u})),[c,u]),{validityStatus:f,validationError:p,suggestedSelectors:h,aiState:m,locatorProcessing:g,generateWithAI:v}=hC({target:n,stepData:a,fieldsValues:d});return{validityStatus:f,validationError:p,suggestedSelectors:h,aiState:m,locatorProcessing:g,generateWithAI:v,handleOnArrowClick:(0,i.useCallback)((()=>{null===o||void 0===o||o(t)}),[o,t]),handleInputChange:(0,i.useCallback)(((e,n)=>{s(t,n,{shouldDirty:!0})}),[s,t])}})({name:t,target:n,alternatesName:r,onArrowClick:a,stepData:l}),{control:y,formState:{errors:b}}=g_(),w=(e=>{let{validityStatus:t}=e;return(0,i.useMemo)((()=>{function e(e){return t===bk.NotApplicable?e:t===bk.Valid?"green":t===bk.Invalid?"red":e}const n=e("inherit");return{"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:n,borderWidth:"medium"},"&:hover fieldset":{borderColor:n,borderWidth:"medium"},"&.Mui-focused fieldset":{borderColor:e("primary.main"),borderWidth:"medium"},"&.MuiInputBase-root.MuiOutlinedInput-root.MuiInputBase-adornedEnd":{paddingRight:"0px"}}}}),[t])})({validityStatus:c});return(0,rs.Y)(F,{sx:{},children:(0,rs.Y)(O_,{name:t,control:y,render:e=>{let{field:n}=e;return(0,rs.Y)(Wx,(0,g.A)((0,g.A)({filterOptions:e=>e},n),{},{options:p,getOptionLabel:e=>"string"===typeof e?e:e.label,value:p.find((e=>{let{value:t}=e;return t===n.value}))||n.value||null,onInputChange:f,fullWidth:!0,size:"small",freeSolo:!0,renderInput:e=>{var n;return(0,rs.Y)(CS,(0,g.A)((0,g.A)({},e),{},{label:"Select locator",size:"small",multiline:!0,maxRows:4,fullWidth:!0,error:!!b[t]||c===bk.Invalid,helperText:(null===(n=b[t])||void 0===n?void 0:n.message)||u,InputProps:(0,g.A)((0,g.A)({},e.InputProps),{},{endAdornment:(0,rs.FD)(PS,{position:"end",sx:{paddingRight:0},children:[(0,rs.Y)(wC,{locatorProcessing:m,aiState:h,onClick:v,isValid:c!==bk.Invalid}),(0,rs.Y)(kC,{onClick:d,timestamp:null===l||void 0===l?void 0:l.timestamp})]})})}))},onChange:(e,t)=>{const r=t?"string"===typeof t?t:t.value:"";n.onChange(r)},sx:w}))}})})};class EC{constructor(e){this.middleware=e,this.generator=new fC,this.identityCache={},this.onCreateStep=async(e,t)=>{this.triggerGenerationForCreatedStep(e.payload.data)},this.onDeleteStep=async(e,t)=>{this.generator.stopGeneration(e.payload,t)},this.onUpdateStep=async(e,t)=>{var n;const r=iC(t.getState(),Gk.Locators,e.payload.id);if(!r)return;if(null===(n=e.payload.data.locator)||void 0===n||!n.length||Nk(r.data.originalLocator)===Nk(e.payload.data.locator))return;const o="rrwebId"in e.payload.data?e.payload.data.rrwebId:"rrwebid"in e.payload.data?e.payload.data.rrwebid:void 0;if(o&&r.data.target.rrwebid===o)return;const i=e=>{this.generator.stopGeneration({id:e},t),t.dispatch(eC({id:e}))};console.log("stopping process due to changed locator",r.id),i(r.id)}}startListening(e){const{createAction:t,createAssertion:n,updateAction:r,updateAssertion:o,deleteAction:i,deleteAssertion:a}=e;[t,n].forEach((e=>{this.middleware.startListening({actionCreator:e,effect:this.onCreateStep.bind(this)})})),[r,o].forEach((e=>{this.middleware.startListening({actionCreator:e,effect:this.onUpdateStep.bind(this)})})),[i,a].forEach((e=>{this.middleware.startListening({actionCreator:e,effect:this.onDeleteStep.bind(this)})}))}getGenerators(){return[this.generator]}triggerGenerationForCreatedStep(e){e.locator&&this.generator.generate(e)}getFromIdentityCache(e,t,n){return this.identityCache[e]?this.identityCache[e].find((e=>e.locator===t&&e.compareLocator===n)):null}}function OC(e){let{id:t,isTabActive:n,replayerActions:r}=e;const{methods:o,setSelectedMatcher:i,initializeDynamicFields:a,isSavingAssertion:s,isAssertionValid:l,assertionValidityMessage:c,isPlayingAssertion:u,handleClickAway:d,assertion:f,formRef:p,matcherFieldsByGroup:h,action:m,handleDelete:g,handleSave:v,isDirty:y,isCodeBasedStepsModeActive:b,updateMutation:w,icon:x}=qw({id:t,isTabActive:n,replayerActions:r}),{validityStatus:A,message:S}=pC();return(0,rs.FD)(wV,{methods:o,formRef:p,handleClickAway:d,gap:b?0:void 0,children:[(0,rs.Y)(TV,{Icon:x,disabled:b,methods:o,options:jb,label:"Matcher",stepData:f,useMatcher:!0,autocompleteInputProps:{disableClearable:!1,ListboxProps:{style:{maxHeight:150}},onChange:e=>{i(e?e.value:null),e&&a(e.value)}}}),b?(0,rs.Y)(eW,{onBlur:d,methods:o,updateMutation:w,stepData:f,target:{type:Yw.Assertion,id:t,rrwebid:Number(f.rrwebid)},type:Zo.Assertion,id:t}):(0,rs.Y)(bU,{type:Zo.Assertion,isAssertionValid:l,assertion:f,methods:o,dynamicFieldsGrouped:h,action:m,fieldNamePrefix:"dynamicFields",isTabActive:n}),(0,rs.Y)(SV,{onBlur:d,children:(0,rs.FD)(AV,{isSaving:s,onSave:v,onDelete:g,isDirty:y,id:t,children:[(0,rs.Y)(rW,{name:"assertion",isValid:l,isPlaying:u,show:null!==l,message:(0,rs.Y)(yv,{children:c})}),(0,rs.Y)(rW,{name:"locator",isValid:A===bk.Valid,message:S,isPlaying:A===bk.Loading,show:A!==bk.NotApplicable})]})})]})}const TC=e=>e.assertions.assertions;function IC(e,t){return e.assertions.assertions[t]}const RC=e=>(0,o.d4)((t=>IC(t,e)),o.bN),PC=e=>(0,o.d4)((t=>iC(t,Gk.Assertions,e)),o.bN);var MC=__webpack_require__(7869);const DC=e=>(t,n,r)=>"Verify ".concat(t||"element"," is ").concat(r?"not ":"").concat(e),LC=e=>{switch(e){case"has":return"does not have";case"contains":return"does not contain";case"matches":return"does not match"}},jC=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"has";return(r,o,i)=>{let[a=t]=o;return"Verify ".concat(r||"element"," ").concat(i?LC(n):n," ").concat(e).concat(a?" '".concat(a,"'"):"")}},NC=e=>(t,n,r)=>{let[o,i]=n;return"Verify ".concat(null!==t&&void 0!==t?t:"element"," ").concat(r?LC("has"):"has"," ").concat(e).concat(o?" '".concat(o,"'"):"").concat(i?" equal to '".concat(i,"'"):"")},FC=e=>(t,n,r)=>{let[o]=n;return"Verify that page ".concat(r?LC("has"):"has"," ").concat(e).concat(t&&o?" '".concat(o,"'"):"")},zC={toBeChecked:DC("checked"),toBeDisabled:DC("disabled"),toBeEditable:DC("editable"),toBeEmpty:DC("empty"),toBeEnabled:DC("enabled"),toBeFocused:DC("focused"),toBeHidden:DC("hidden"),toBeVisible:DC("visible"),toBeAttached:DC("attached"),toBeInViewport:DC("in viewport"),toHaveClass:jC("class"),toHaveId:jC("ID"),toHaveRole:jC("role"),toHaveAccessibleDescription:jC("accessible description"),toHaveAccessibleName:jC("accessible name"),toHaveValues:jC("values"),toHaveCount:jC("matching elements"),toHaveText:jC("text","some text"),toHaveValue:jC("value","a value"),toContainText:jC("text","some text","contains"),toHaveScreenshot:jC("screenshot","a screenshot name","matches"),toHaveAttribute:NC("attribute"),toHaveCSS:NC("CSS property"),toHaveJSProperty:NC("JS property"),toHaveTitle:FC("title"),toHaveURL:FC("URL")};const BC=(e,t)=>{const n=function(e){let{locator:t,matcher:n}=e;try{const{notPrefix:e,matcherMethodName:r,matcherParamsArray:o}=(0,MC.J9)(n),i=zC[r];return i?i(t,o,!!e):""}catch(r){return""}}(e),r=(null===t||void 0===t?void 0:t.thought)!==e.thought,o=e.thought===n;return e.thought?o||null!==t&&void 0!==t&&t.isDefaultThought&&!r?{isDefaultThought:!0,thought:n}:void 0===e.isDefaultThought?e.thought?{isDefaultThought:!1,thought:e.thought}:{isDefaultThought:!0,thought:n}:{isDefaultThought:!1,thought:e.thought}:{isDefaultThought:!0,thought:n}},VC={assertions:{}},UC=Jr({name:"assertions",initialState:VC,reducers:{createAssertion(e,t){const{data:n,options:r}=t.payload;e.assertions[n.id]=n},updateAssertion:(e,t)=>{var n;const{data:r,id:o,options:i={}}=t.payload,a=e.assertions[o];if(!a)return;const s=Object.assign({},a,r),{thought:l,isDefaultThought:c}=BC(s,{thought:a.thought,isDefaultThought:a.isDefaultThought});s.thought=l,s.isDefaultThought=c,s.sortAfterSyncPlay=null!==(n=i.sortAfterSyncPlay)&&void 0!==n?n:a.sortAfterSyncPlay,e.assertions[o]=s},deleteAssertion:(e,t)=>{delete e.assertions[t.payload.id]},reassignActionToAssertions(e,t){const{assertionSteps:n,actionId:r}=t.payload;n.forEach((t=>{if(e.assertions[t.id]){const n=(0,g.A)((0,g.A)({},e.assertions[t.id]),{},{actionId:r});e.assertions[t.id]=n}else console.warn("Assertion ".concat(t.id," not found in state"))}))},resetAssertions:()=>VC}}),{createAssertion:WC,deleteAssertion:qC,updateAssertion:HC,reassignActionToAssertions:YC,resetAssertions:GC}=UC.actions,KC=UC.reducer;var $C=__webpack_require__(9754);const QC=e=>{let{id:t,index:n,componentId:r,replayerActions:o}=e;const{displayText:a,Icon:s,sortAfterSyncPlay:l,verified:c,markAssertionAsVerified:u,handleDelete:d}=(e=>{let{id:t,replayerActions:n}=e;const r=Kt(),o=RC(t),a=(0,i.useCallback)((()=>{r(HC({id:t,data:{verified:!0}})),Zf.success("Assertion marked as verified!")}),[r,t]),s=(0,i.useMemo)((()=>({verified:o.verified,Icon:Uw(o.matcher),displayText:o.thought,sortAfterSyncPlay:o.sortAfterSyncPlay})),[o]),{handleDelete:l}=Ww({id:t,replayerActions:n});return(0,g.A)((0,g.A)({},s),{},{markAssertionAsVerified:a,handleDelete:l})})({id:t,replayerActions:o});return(0,rs.Y)(gV,{handleDelete:d,Icon:s,replayerActions:o,index:n,componentId:r,id:t,displayText:a,playTooltipText:"Play assertion",statusIcons:(0,rs.Y)(rs.FK,{children:c?l?(0,rs.Y)(pm,{title:"The correct location will be determined after play is completed.",children:(0,rs.Y)($C.A,{})}):null:(0,rs.Y)(wU,{onClick:u,message:"The assertion has not been executed as part of a playback sequence. Click to mark as in-sync."})})})},XC=e=>({id:e.id,options:e.options,data:{locator:e.data.locator,matcher:e.data.matcher,actionId:e.data.actionId,matcherOptions:e.data.matcherOptions,codeValue:e.data.codeValue}});const JC=sp.injectEndpoints({endpoints:e=>({createAssertion:e.mutation({query:e=>{return{method:"POST",url:"/createStep",body:(t=e,(0,g.A)((0,g.A)({},t),{},{type:Zo.Assertion}))};var t}}),updateAssertion:e.mutation({query:e=>{return{method:"PATCH",url:"/updateStep",body:(t=e,(0,g.A)((0,g.A)({},t),{},{type:Zo.Assertion}))};var t}}),deleteAssertion:e.mutation({query:e=>{var t,n;return{method:"DELETE",url:"/deleteStep",successToastMessage:null!==(t=e.options)&&void 0!==t&&t.skipSuccessToast?void 0:"Step has been deleted successfully",body:(n=e,(0,g.A)((0,g.A)({},n),{},{type:Zo.Assertion}))}}}),verifyAssertion:e.mutation({query:e=>({method:"POST",url:"/assertion/verify/".concat(e.options.target),body:XC(e),makeErrorFromResponse:e=>{var t,n;return null!==e&&void 0!==e&&null!==(t=e.data)&&void 0!==t&&t.aborted?null:wv(null===e||void 0===e||null===(n=e.data)||void 0===n?void 0:n.message)},errorToastOptions:{autoClose:!1,style:{maxWidth:"live"===e.options.target?"unset":"var(--toastify-toast-width)"}}})}),generateAiAssertions:e.mutation({query:e=>({method:"POST",url:"/assertions/generate",body:e})}),stopGeneratingAiAssertions:e.mutation({query:e=>({method:"POST",url:"/assertions/stop-generate",body:e})})})}),{useVerifyAssertionMutation:ZC,useStopGeneratingAiAssertionsMutation:eE,useGenerateAiAssertionsMutation:tE,useUpdateAssertionMutation:nE,useCreateAssertionMutation:rE,useDeleteAssertionMutation:oE,endpoints:iE}=JC;var aE,sE=new Uint8Array(16);function lE(){if(!aE&&!(aE="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return aE(sE)}const cE=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const uE=function(e){return"string"===typeof e&&cE.test(e)};for(var dE=[],fE=0;fE<256;++fE)dE.push((fE+256).toString(16).substr(1));const pE=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(dE[e[t+0]]+dE[e[t+1]]+dE[e[t+2]]+dE[e[t+3]]+"-"+dE[e[t+4]]+dE[e[t+5]]+"-"+dE[e[t+6]]+dE[e[t+7]]+"-"+dE[e[t+8]]+dE[e[t+9]]+"-"+dE[e[t+10]]+dE[e[t+11]]+dE[e[t+12]]+dE[e[t+13]]+dE[e[t+14]]+dE[e[t+15]]).toLowerCase();if(!uE(n))throw TypeError("Stringified UUID is invalid");return n};const hE=function(e,t,n){var r=(e=e||{}).random||(e.rng||lE)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return pE(r)},mE=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isNew:!0};const r=(0,g.A)({},e);n.isNew&&(r.createdAt=Date.now(),r.id||(r.id=hE())),r.matcher||(console.error("No matcher found for assertion",r),r.matcher="toBeVisible()");const{thought:o,isDefaultThought:i}=BC(r,{isDefaultThought:null===t||void 0===t?void 0:t.isDefaultThought,thought:null===t||void 0===t?void 0:t.thought});return r.thought=o,r.isDefaultThought=i,r},gE=sp.injectEndpoints({endpoints:e=>({generateAssertionAiThoughts:e.mutation({query:e=>({method:"POST",url:"/thoughts/assertions/generate",body:e}),onQueryStarted:async(e,t)=>{let{dispatch:n,queryFulfilled:r,getState:o}=t;try{await r}catch(i){console.log("Error in generateAssertionAiThoughts",i)}}}),generateActionAiThoughts:e.mutation({query:e=>({method:"POST",url:"/thoughts/actions/generate",body:e}),onQueryStarted:async(e,t)=>{let{dispatch:n,queryFulfilled:r,getState:o}=t;try{await r}catch(i){console.log("Error in generateActionAiThoughts",i)}}}),stopThoughtGeneration:e.mutation({query:e=>({method:"POST",url:"/thoughts/stop-generate",body:e})})})}),{endpoints:vE,useGenerateActionAiThoughtsMutation:yE,useGenerateAssertionAiThoughtsMutation:bE,useStopThoughtGenerationMutation:wE}=gE,xE=Jr({name:"thoughts",initialState:{thoughtSuggestions:{}},reducers:{addThoughtSuggestion:(e,t)=>{const{id:n,suggestion:r}=t.payload;e.thoughtSuggestions[n]=r},deleteThoughtSuggestion:(e,t)=>{delete e.thoughtSuggestions[t.payload.id]}}}),{addThoughtSuggestion:AE,deleteThoughtSuggestion:SE}=xE.actions,_E=xE.reducer;class kE extends nC{constructor(e){super(),this.slice=e}get callStopAPI(){return vE.stopThoughtGeneration.initiate}getPreviousAction(e,t){var n;const r=Kz(e,Zo.Action),o=r.findIndex((e=>{let{id:n}=e;return n===t}));if(-1===o||0===o)return;const i=null===(n=r[o-1])||void 0===n?void 0:n.id;return e.actions.actions[i]}async isStepInState(e,t){const n=t=>!!this.getStepData(t)[e];return n(t.getState())||await t.condition(((e,t)=>n(t)))}getStepData(e){return e[this.slice][this.slice]}isEnabled(e){return!!e.settings.autoGenerateThoughts}stopGeneration(e,t){const{id:n}=e.payload;t.dispatch(this.callStopAPI({stepId:n}))}async generate(e){const t=tp.getDispatch(),n=tp.getState(),r="actions"===this.slice,o=r?"action":"assertion";t(this.callInitAPI({[o]:e,processId:(0,dC.DU)(5),parentActionId:r?void 0:cO(n,e.actionId).id}))}handleError(e,t){console.error("Receved thought generation error for process",e)}get type(){return Gk.Thoughts}handleCodeBasedResponse(e,t){var n;const r=e.getState(),o=r.settings.useCodeBasedSteps,i=Vz(r,r.steps.activeStep.id),a=null!==(n=i.assertion)&&void 0!==n?n:i.action;return a.id!==t.id||!o||(a.thought!==t.thought&&e.dispatch(AE({id:t.id,suggestion:t.thought})),!1)}}class CE extends kE{constructor(){super("actions")}get callInitAPI(){return gE.endpoints.generateActionAiThoughts.initiate}canGenerate(e,t){if(!e.syncedWithNextStep)return!1;if(!this.isEnabled(t))return!1;if(e.isAIThoughtGenerationTriggered||e.loadedFromFile)return!1;if(iC(t,this.type,e.id))return!1;const n=uO(t,e.id);return!(!e||!n)&&!(!e.isDefaultThought||!e.isDefaultThought&&e.thought)}async initiateGeneration(e,t){const{id:n}=e.payload;if(!await this.isStepInState(n,t))return;const r=t.getState(),o=Kz(r,Zo.Action);for(const i of o){const e=cO(r,i.id);this.canGenerate(e,r)&&this.generate(e)}}getApiEndpointsEffects(){return[{actions:[vE.generateActionAiThoughts],effect:$k.StartProcess}]}handleResponse(e,t){const{id:n,thought:r}=e;super.handleCodeBasedResponse(t,e)&&t.dispatch(Nv.updateAction.initiate({id:n,data:{isDefaultThought:!1,thought:r}}))}async generate(e){const t=tp.getDispatch();t(Sv({id:e.id,data:{isAIThoughtGenerationTriggered:!0}})),t(this.callInitAPI({action:e,processId:(0,dC.DU)(5)}))}get type(){return Gk.ActionsThoughts}}class EE extends kE{constructor(){super("assertions")}get callInitAPI(){return gE.endpoints.generateAssertionAiThoughts.initiate}canGenerate(e,t){if(!e.verified)return!1;if(!this.isEnabled(t))return!1;if(!e.locator)return!1;if(e.source===Jo.AI)return!1;if(e.isAIThoughtGenerationTriggered||e.loadedFromFile)return!1;if(iC(t,this.type,e.id))return!1;return!!cO(t,e.actionId)}async initiateGeneration(e,t){const{id:n}=e.payload;if(!await this.isStepInState(n,t))return;const r=t.getState(),o=IC(r,n);this.canGenerate(o,r)&&this.generate(o)}getApiEndpointsEffects(){return[{actions:[gE.endpoints.generateAssertionAiThoughts],effect:$k.StartProcess}]}handleResponse(e,t){const n=IC(t.getState(),e.id),{id:r,thought:o}=e;super.handleCodeBasedResponse(t,e)&&t.dispatch(iE.updateAssertion.initiate({id:r,data:{actionId:n.actionId,thought:o}}))}get type(){return Gk.AssertionsThoughts}async generate(e){const t=tp.getDispatch();t(HC({id:e.id,data:{isAIThoughtGenerationTriggered:!0}})),t(this.callInitAPI({assertion:e,processId:(0,dC.DU)(5),parentActionId:e.actionId}))}}class OE{constructor(e){this.middleware=e,this.actionsHelper=new CE,this.assertionsHelper=new EE,this.onCreateAction=async(e,t)=>{this.actionsHelper.initiateGeneration(e,t)},this.onUpdateAction=async(e,t)=>{},this.onCreateAssertion=async(e,t)=>{this.assertionsHelper.initiateGeneration(e,t)},this.onUpdateAssertion=async(e,t)=>{}}startListening(e){e.createAction&&this.middleware.startListening({actionCreator:e.createAction,effect:this.onCreateAction.bind(this)}),e.createAssertion&&this.middleware.startListening({actionCreator:e.createAssertion,effect:this.onCreateAssertion.bind(this)})}getGenerators(){return[this.actionsHelper,this.assertionsHelper]}}const TE=(0,Fe.A)((0,R.jsx)("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined"),IE=e=>{let{title:t,info:n,required:r=!1}=e;return(0,rs.FD)(Ba,{flexDirection:"row",alignItems:"center",gap:1,children:[t,r?"*":null,n?(0,rs.Y)(pm,{title:n,children:(0,rs.Y)(TE,{})}):null]})};var RE={name:"0",styles:""};const PE=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:22;return(0,i.useMemo)((()=>{if(!e)return{FormHelperTextPropsSX:{},InputPropsSX:{},errorEnabledField:RE};const n=(0,le.AH)({marginBottom:"".concat(t,"px !important")},"","");return{FormHelperTextPropsSX:{bottom:-t,marginLeft:0,marginTop:0,height:0},InputPropsSX:{marginBottom:"3px"},errorEnabledField:n}}),[t,e])},ME=["styles","errors","register","registerOptions","required","info","label","name","hasErrorMessage","children","textFieldRef"],DE=(0,i.forwardRef)(((e,t)=>{var n,r,o;const{styles:i,errors:a,register:s,registerOptions:l,required:c,info:u,label:d,name:f,hasErrorMessage:p,children:h,textFieldRef:m}=e,v=(0,ns.A)(e,ME),{FormHelperTextPropsSX:y,InputPropsSX:b,errorEnabledField:w}=PE(!!p);return(0,rs.Y)(CS,(0,g.A)((0,g.A)({},v),{},{ref:m,name:f,css:[w,i,"",""],FormHelperTextProps:(0,g.A)((0,g.A)({},v.FormHelperTextProps),{},{sx:(0,g.A)((0,g.A)({},y),null===(n=v.FormHelperTextProps)||void 0===n?void 0:n.sx)}),InputLabelProps:(0,g.A)({shrink:!0},v.InputLabelProps),InputProps:(0,g.A)((0,g.A)({},v.InputProps),{},{sx:(0,g.A)((0,g.A)({},b),null===(r=v.InputProps)||void 0===r?void 0:r.sx),inputRef:s?s(f,l):void 0}),label:d&&(0,rs.Y)(IE,{title:d,info:u,required:!!c}),error:!(null===a||void 0===a||!a[f]),helperText:p?null===a||void 0===a||null===(o=a[f])||void 0===o?void 0:o.message:e.helperText,children:h}))})),LE=e=>{let{stepData:t}=e;const n=uC(),r=(0,o.d4)(rC),[a,s]=(0,i.useState)(!1),[l,c]=(0,i.useState)(!1),u=(0,i.useCallback)((()=>t&&"matcher"in t),[t]);(0,i.useEffect)((()=>{s(t&&n.some((e=>e.stepId===t.id&&(u()?e.type===Gk.AssertionsThoughts:e.type===Gk.ActionsThoughts))))}),[n,null===t||void 0===t?void 0:t.id,u]),(0,i.useEffect)((()=>{c(t&&r.some((e=>e.stepId===t.id&&e.status!==Kk.Failed&&(u()?e.type===Gk.AssertionsThoughts:e.type===Gk.ActionsThoughts))))}),[r,null===t||void 0===t?void 0:t.id]);const d=(0,i.useCallback)((()=>u()?new EE:new CE),[u]);return{handleOnGenerateWithAIClick:e=>{if(null===e||void 0===e||e.stopPropagation(),null===e||void 0===e||e.preventDefault(),!t)return;d().generate(t)},thoughtProcessing:a,isAiThought:l}},jE=e=>{let{isAiThought:t,thoughtProcessing:n,onClick:r}=e;return n?(0,rs.Y)(pm,{title:"Processing...",children:(0,rs.Y)("span",{children:(0,rs.FD)(Lt,{disabled:!0,sx:{padding:"8px"},children:[(0,rs.Y)(Ps,{size:24})," "]})})}):!0===t?(0,rs.Y)(pm,{title:"Generated with AI",children:(0,rs.Y)("span",{children:(0,rs.FD)(Lt,{sx:{padding:"8px 0"},style:{color:"#1976d2"},onClick:r,children:[(0,rs.Y)(yC.A,{})," "]})})}):(0,rs.Y)(pm,{title:"Generate with AI",children:(0,rs.FD)(Lt,{sx:{padding:"8px 0"},style:{color:"rgba(130, 130, 130, 1)"},onClick:r,children:[(0,rs.Y)(yC.A,{})," "]})})},NE=e=>{let{name:t,stepData:n,methods:r,maxRows:o=4}=e;const{handleOnGenerateWithAIClick:a,thoughtProcessing:s,isAiThought:l,control:c,label:u}=(e=>{let{stepData:t,methods:n}=e;const{control:r}=n,{handleOnGenerateWithAIClick:o,thoughtProcessing:a,isAiThought:s}=LE({stepData:t});return{handleOnGenerateWithAIClick:o,thoughtProcessing:a,isAiThought:s,control:r,label:(0,i.useMemo)((()=>"eventCode"in t&&t.eventCode===Fv.Qy.CustomCode?"Thought (Keep empty to use code within test scope)":"Thought"),[t])}})({name:t,stepData:n,methods:r});return(0,rs.Y)(F,{sx:{flexGrow:1},children:(0,rs.Y)(O_,{name:t,control:c,render:e=>{let{field:t}=e;return(0,rs.Y)(DE,(0,g.A)((0,g.A)({},t),{},{value:null===n||void 0===n||!n.isDefaultThought||null!==t&&void 0!==t&&t.value&&t.value!==n.thought?t.value:"",name:"thought",label:u,fullWidth:!0,size:"small",multiline:!0,maxRows:o,placeholder:null!==n&&void 0!==n&&n.isDefaultThought?null===n||void 0===n?void 0:n.thought:"",InputProps:{"data-testid":Ng.LocatorInput,endAdornment:(0,rs.Y)(PS,{position:"end",sx:{paddingRight:0},children:(0,rs.Y)(jE,{thoughtProcessing:s,isAiThought:l,onClick:a})})}}))}})})};class FE{constructor(e){this.middleware=e,this.thoughtGenerator=new EE}startListening(){this.middleware.startListening({actionCreator:HC,effect:async(e,t)=>{var n;const r=t.getState().assertions.assertions[e.payload.id];r?null!==(n=e.payload.options)&&void 0!==n&&n.forceUpdateTimestamp&&null!==r&&void 0!==r&&r.isDefaultThought&&this.thoughtGenerator.initiateGeneration(e,t):console.error("[AssertionsSyncListener] Error: Assertion not found")}})}}class zE extends nC{get callStopAPI(){return iE.stopGeneratingAiAssertions.initiate}get callInitAPI(){return iE.generateAiAssertions.initiate}async isStepInState(e,t){const n=t=>Boolean(cO(t,e));return n(t.getState())||await t.condition(((e,t)=>n(t)))}stopGeneration(e,t){const{id:n}=e.payload;t.dispatch(this.callStopAPI({id:n}))}getApiEndpointsEffects(){return[{actions:[iE.generateAiAssertions],effect:$k.StartProcess},{actions:[iE.stopGeneratingAiAssertions],effect:$k.StopProcess}]}handleResponse(e,t){const{assertions:n,actionId:r}=e,o=t.dispatch,i=(e=>Object.values(e.assertions.assertions))(t.getState()).filter((e=>e.actionId===r));(0,MC.BX)(i,n).forEach((e=>{const t=mE((0,g.A)((0,g.A)({},e),{},{verified:!0}));o(iE.createAssertion.initiate({data:t,id:t.id,options:{type:Az.InsertAfter,afterStepId:r}}))}))}handleError(e,t){}isEnabled(e){return!!e.settings.autoGenerateAssertions}isAllowedActionEventCode(e){return![Fv.Qy.Login,Fv.Qy.Navigation].includes(e.eventCode)}canGenerate(e,t){if(!e.syncedWithNextStep)return!1;if(!this.isAllowedActionEventCode(e))return!1;if(e.isAIAssertionsGenerationTriggered||e.loadedFromFile)return!1;const n=function(e,t){return e.steps.steps.find((e=>e.id===t))}(t,e.id),r=Uz(t,e.id,Zo.Action),o=cO(t,null===r||void 0===r?void 0:r.id);return!(!n||!o)&&!(aC(t,this.type,e.id).length>0)}async generate(e){const t=Date.now(),n=tp.getDispatch();n(Sv({id:e.id,data:{isAIAssertionsGenerationTriggered:!0}})),n(this.callInitAPI({id:e.id,startedAt:t,processId:(0,dC.DU)(5)}))}async initiateGeneration(e,t){if(!this.isEnabled(t.getState()))return;const n=t.getState();sO(n).filter((e=>this.canGenerate(e,n))).forEach((e=>{this.generate(e)}))}get type(){return Gk.Assertions}}class BE{constructor(e){this.middleware=e,this.generator=new zE,this.onCreateAction=async(e,t)=>{this.generator.initiateGeneration(e,t)}}startListening(e){this.middleware.startListening({actionCreator:e.createAction,effect:this.onCreateAction.bind(this)})}getGenerators(){return[this.generator]}}const VE=()=>{const[e]=eE(),[t]=tE(),n=Kt();return{handleGenerate:(0,i.useCallback)((e=>{let{id:n}=e;const r=Date.now();t({id:n,startedAt:r,processId:(0,dC.DU)()})}),[n,t]),handleAbort:(0,i.useCallback)((t=>{let{id:n}=t;e({id:n})}),[e])}};class UE{constructor(e){this.middleware=e,this.onCreateActionBeforeAssertion=async(e,t)=>{if(e.payload.options.type===Az.InsertAfter&&e.payload.type===Zo.Action){const n=Uz(t.getState(),e.payload.id);if((null===n||void 0===n?void 0:n.type)===Zo.Assertion){const r=Bz(t.getState()),o=WE(r,n);o.length>0&&t.dispatch(YC({assertionSteps:o,actionId:e.payload.id}))}}}}startListening(){this.middleware.startListening({actionCreator:kz,effect:this.onCreateActionBeforeAssertion.bind(this)})}}const WE=(e,t)=>{const n=e.findIndex((e=>{let{id:n}=e;return n===t.id}));if(-1===n)return[];const r=[];for(let o=n;o<e.length;o++){if(e[o].type!==Zo.Assertion)return r;r.push(e[o])}return r};class qE{constructor(e){this.middleware=e,this.onDeleteAction=async(e,t)=>{var n,r;const o=Object.values(t.getState().assertions.assertions).filter((t=>{let{actionId:n}=t;return n===e.payload.id}));null!==(n=e.payload.options)&&void 0!==n&&n.withAssertions||null===(r=e.payload.options)||void 0===r||!r.prevActionId?o.forEach((e=>{t.dispatch(Cz({id:e.id,type:Zo.Assertion}))})):t.dispatch(YC({assertionSteps:o.map((e=>(0,g.A)((0,g.A)({},e),{},{type:Zo.Assertion}))),actionId:e.payload.options.prevActionId}))}}startListening(){this.middleware.startListening({actionCreator:Cv,effect:this.onDeleteAction.bind(this)})}}class HE{constructor(e){this.middleware=e}startListening(){new UE(this.middleware).startListening(),new qE(this.middleware).startListening()}}var YE=__webpack_require__(4631),GE=__webpack_require__(3657);function KE(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return(0,GE.A)(e,t,n)}function $E(e){if(e.type)return e;if("#"===e.charAt(0))return $E(function(e){e=e.slice(1);const t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", "),")"):""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,qx.A)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,qx.A)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function QE(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),r=-1!==t.indexOf("color")?"".concat(n," ").concat(r.join(" ")):"".concat(r.join(", ")),"".concat(t,"(").concat(r,")")}function XE(e,t){return e=$E(e),t=KE(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,QE(e)}const JE=(0,U.Ay)((e=>(0,rs.Y)(yg,(0,g.A)({elevation:0,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}},e))))((e=>{let{theme:t}=e;return{"& .MuiPaper-root":{borderRadius:6,marginTop:t.spacing(1),minWidth:100,color:t.palette.text.secondary,boxShadow:"rgb(255, 255, 255) 0px 0px 0px 0px, rgba(0, 0, 0, 0.05) 0px 0px 0px 1px, rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px","& .MuiMenu-list":{padding:"4px 0"},"& .MuiMenuItem-root":{"& .MuiSvgIcon-root":{fontSize:18,color:t.palette.text.secondary,marginRight:t.spacing(1.5)},"&:active":{backgroundColor:XE(t.palette.primary.main,t.palette.action.selectedOpacity)}}}}})),ZE=e=>{let{children:t,icon:n,text:r,registerClose:o,preventDefaultOnClick:i=!1}=e;const{open:a,anchorElement:s,handleClose:l,handleClick:c}=eO({registerClose:o,preventDefaultOnClick:i});return(0,rs.FD)(rs.FK,{children:[(0,rs.Y)(Lt,{"data-testid":Ng.ThreeDotMenu,onClick:c,children:n||(0,rs.Y)(YE.A,{})}),(0,rs.Y)(JE,{anchorEl:s,open:a,onClose:l,children:t})]})},eO=e=>{let{registerClose:t,preventDefaultOnClick:n=!1}=e;const[r,o]=(0,i.useState)(null),a=(0,i.useCallback)((e=>{n&&(e.stopPropagation(),e.preventDefault()),o(e.currentTarget)}),[o,n]),s=(0,i.useCallback)((()=>{o(null)}),[o]);return(0,i.useEffect)((()=>{null===t||void 0===t||t(s)}),[t,s]),{anchorElement:r,open:!!r,handleClick:a,handleClose:s}},tO=e=>{let{id:t}=e;const{handleAbort:n,handleRetryFailed:r,status:o,shouldDisplay:a}=(e=>{let{id:t}=e;const{handleAbort:n,handleGenerate:r}=VE(),o=PC(t),a=null===o||void 0===o?void 0:o.status,s=(0,i.useMemo)((()=>[Kk.Running,Kk.Failed].includes(a)),[a]);return{handleRetryFailed:(0,i.useCallback)((()=>{a===Kk.Failed&&r({id:t})}),[r,t,a]),handleAbort:(0,i.useCallback)((()=>{a!==Kk.Running&&a!==Kk.Failed||n({id:t})}),[t,n,a]),status:a,shouldDisplay:s}})({id:t});return a?(0,rs.FD)(F,{sx:{justifyContent:"start",padding:0,opacity:.7},children:[(0,rs.Y)(rO,{status:o,handleAbort:n,handleRetryFailed:r}),(0,rs.Y)(nO,{status:o})]}):null},nO=e=>{let{status:t}=e;return(0,rs.FD)(tt,{variant:"caption",children:[t===Kk.Running?"Generating assertions...":null,t===Kk.Failed?"Failed Generating assertions":null]})},rO=e=>{let{status:t,handleAbort:n,handleRetryFailed:r}=e;return(0,rs.FD)(ZE,{icon:(0,rs.Y)(gy,{fontSize:"small"}),preventDefaultOnClick:!0,children:[t===Kk.Running?(0,rs.FD)(Og,{onClick:n,children:[(0,rs.Y)(vy,{fontSize:"small"})," Stop"]}):null,t===Kk.Failed?[(0,rs.FD)(Og,{onClick:r,children:[(0,rs.Y)(yy,{fontSize:"small"})," Retry"]},"0"),(0,rs.FD)(Og,{onClick:n,children:[(0,rs.Y)(by,{fontSize:"small"})," Close"]},"1")]:null]})},oO=e=>{let{id:t,index:n,componentId:r,replayerActions:o}=e;const{action:a,displayText:s,Icon:l,outOfSync:c,markActionsAsSynced:u,displayTextStyle:d,handleDelete:f}=(e=>{let{id:t,replayerActions:n}=e;const r=Kt(),o=uV([sV.Steps]),a=mO(t),s=(0,i.useCallback)((()=>{r(Ev({id:t,syncedWithNextStep:!0})),Zf.success("Action marked as synchronized with next action!")}),[r,t]),l=(0,i.useMemo)((()=>{const e=o.findLastAction(),t=(null===e||void 0===e?void 0:e.id)===a.id;return!a.syncedWithNextStep&&!t}),[a,o,o.steps]),{Icon:c,displayText:u}=(0,i.useMemo)((()=>({Icon:sy(a.eventCode),displayText:zv(a)})),[a]),d=(0,i.useMemo)((()=>a.eventCode===Fv.Qy.CustomCode?{fontFamily:"'Source Code Pro', 'Menlo', 'Monaco', 'Courier New', monospace",fontSize:"12px"}:{}),[a]),{handleDelete:f}=hy({id:t,replayerActions:n});return{markActionsAsSynced:s,Icon:c,displayText:u,outOfSync:l,action:a,displayTextStyle:d,handleDelete:f}})({id:t,replayerActions:o});return(0,rs.Y)(rs.FK,{children:(0,rs.FD)(gV,{handleDelete:f,Icon:l,replayerActions:o,index:n,componentId:r,id:t,displayText:s,displayTextStyle:d,playTooltipText:"Play action",statusIcons:c?(0,rs.Y)(wU,{onClick:u,message:"Action is out of sync with next action, play this action with next to synchronize. Click on this icon to mark action synchronized"}):null,children:[(0,rs.Y)(iO,{action:a}),(0,rs.Y)(tO,{id:t})]})})},iO=e=>{let{action:t}=e;const n=Kt(),r=(0,i.useCallback)((e=>{e.stopPropagation()}),[]),o=(0,i.useCallback)((e=>{n(Sv({id:t.id,data:e}))}),[n,t.id]);return t.eventCode===Fv.Qy.Login?(0,rs.FD)(F,{sx:{display:"flex",alignItems:"center"},children:[(0,rs.Y)($e,{size:"small",checked:!!t.loginOnPlay,onClick:r,onChange:e=>o({loginOnPlay:e.target.checked})}),(0,rs.Y)(tt,{variant:"caption",children:"Login on play"})]}):null},aO=Ob().shape({thought:mb(),eventCode:mb().required("Action type is required")}),sO=e=>Object.values(e.actions.actions),lO=e=>e.actions.actions;function cO(e,t){return e.actions.actions[t]}function uO(e,t){const n=e.steps.steps,r=e.actions.actions,o=n.findIndex((e=>{let{id:n}=e;return t===n}));if(-1===o)return null;for(let i=o+1;i<=n.length;i++){const e=n.at(i);if(e&&e.type===Zo.Action)return r[e.id]}}function dO(e,t){const n=e.steps.steps,r=e.actions.actions,o=n.findIndex((e=>{let{id:n}=e;return t===n}));if(-1===o)return null;for(let i=o-1;i>=0;i--){const e=n.at(i);if(e&&e.type===Zo.Action)return r[e.id]}}const fO=e=>e.actions.aiSuggestedAction,pO=()=>(0,o.d4)(sO,o.bN),hO=()=>(0,o.d4)(lO),mO=e=>(0,o.d4)((t=>cO(t,e)),o.bN),gO=[Fv.Qy.ClickAndType,Fv.Qy.ClearAndType,Fv.Qy.GetMoreItems,Fv.Qy.LogoutLogin];const vO=e=>e?e.fillValue:"",yO=e=>{var t,n,r;let o={role:"",environment:""};return"login"===e.eventCode&&(o=e.login),{codeValue:"",eventCode:e.eventCode,fillValue:vO(e),customCodeFillValue:vO(e),dropTargetLocator:null!==(t=null===(n=e.dropTarget)||void 0===n?void 0:n.locator)&&void 0!==t?t:"",dropTargetAlternateLocators:null===(r=e.dropTarget)||void 0===r?void 0:r.alternateLocators,login:o,canvas:e.canvas,loginOnPlay:e.loginOnPlay,locator:e.locator,alternateLocators:e.alternateLocators,thought:e.thought,isDefaultThought:e.isDefaultThought,timestamp:e.timestamp}},bO=e=>e.fillValueName?e.fillValueName:(e=>{var t;if("string"!==typeof e)return;return(null===(t=e.match(/^\$\{([^{}]+)\}$/))||void 0===t?void 0:t[1])||'"'.concat((n=e)?n.replaceAll(/\\/g,"\\\\").replaceAll(/"/g,'\\"').replaceAll("\n","\\n"):"",'"');var n})(e.fillValue),wO={[Fv.Qy.UploadFiles]:e=>{var t;const n=(null===(t=e.files)||void 0===t?void 0:t.join(", "))||"",r=e.locator||"";return n&&r?"Upload files ".concat(n," to element ").concat(r):n?"Upload files ".concat(n):r?"Upload files to the element ".concat(r):"Use input to upload files"},[Fv.Qy.Input]:e=>{const t=bO(e),n=e.locator||"";return t&&n?"Input ".concat(t," into ").concat(n):t?"Input ".concat(t):n?"Input into ".concat(n):"Fill with input"},[Fv.Qy.Keystroke]:e=>{const t=bO(e);return t?"Press ".concat(t):"Press key"},[Fv.Qy.Wait]:e=>{const t=bO(e);return t?"Wait ".concat(t," seconds"):"Wait for a moment"},[Fv.Qy.DragAndDrop]:e=>{const{dropTarget:t}=e,n=e.locator||"Unknown source element",r=(null===t||void 0===t?void 0:t.locator)||"Unknown target element";return n&&r?"Drag ".concat(n," and drop it over ").concat(r):n?"Drag ".concat(n):r?"Drop element over ".concat(r):"Drag and drop"},[Fv.Qy.Navigation]:e=>{const t=bO(e);return t?"Navigate to ".concat(t):"Navigate to a URL"},[Fv.Qy.CanvasClick]:e=>{var t,n;const r=(null===(t=e.canvas)||void 0===t?void 0:t.canvasText)||"",o=void 0!==(null===(n=e.canvas)||void 0===n?void 0:n.rectSizeIndex)?e.canvas.rectSizeIndex:"";return r&&o?"Click on canvas containing '".concat(r,"' at rectangle size index '").concat(o,"'"):r?"Click on canvas containing '".concat(r,"'"):o?"Click on canvas element at rectangle size index '".concat(o,"'"):"Click on canvas element"},[Fv.Qy.Login]:e=>{var t,n;const r=(null===(t=e.login)||void 0===t?void 0:t.role)||"",o=(null===(n=e.login)||void 0===n?void 0:n.environment)||"";return r&&o?"Log in as '".concat(r,"' in '").concat(o,"' environment"):r?"Log in as '".concat(r,"'"):o?"Log in in '".concat(o,"' environment"):"Log in"},[Fv.Qy.LogoutLogin]:e=>{const{role:t}=e.login||{};return t?"Log out and log in as '".concat(t,"'"):"Log out and log in"},[Fv.Qy.Click]:e=>{const t=e.locator||"";return t?"Click on ".concat(t):"Click on the element"},[Fv.Qy.DoubleClick]:e=>{const t=e.locator||"";return t?"Double click on ".concat(t):"Double click on the element"},[Fv.Qy.Check]:e=>{const t=e.locator||"";return t?"Check ".concat(t):"Check the checkbox/radio button"},[Fv.Qy.UnCheck]:e=>{const t=e.locator||"";return t?"Uncheck ".concat(t):"Uncheck the checkbox/radio button"},[Fv.Qy.Hover]:e=>{const t=e.locator||"";return t?"Hover over ".concat(t):"Hover over the element"},[Fv.Qy.SelectOption]:e=>{const t=e.locator||"";return t?"Select option from ".concat(t):"Select an option"},[Fv.Qy.SwitchTab]:e=>{var t;const n=(null===(t=e.switchToTab)||void 0===t?void 0:t.index)||void 0;return n?"Switch to tab '".concat(n,"'"):"Switch to a tab"},[Fv.Qy.NativeDialogAccept]:e=>{var t,n;const r=(null===(t=e.nativeDialog)||void 0===t?void 0:t.dialogType)||"",o=(null===(n=e.nativeDialog)||void 0===n?void 0:n.dialogResult)||"";return r===Fv.ss.Prompt&&o?"Accept '".concat(r,"' dialog with '").concat(o,"'"):"Accept '".concat(r,"' dialog")},[Fv.Qy.NativeDialogDismiss]:e=>{var t;const n=(null===(t=e.nativeDialog)||void 0===t?void 0:t.dialogType)||"";return n?"Dismiss '".concat(n,"' dialog"):"Dismiss dialog"}},xO=(e,t)=>{var n;const r=null===(n=(e=>{const t=wO[e.eventCode];return t?t(e):""})(e))||void 0===n?void 0:n.replaceAll("\n",""),o=(null===t||void 0===t?void 0:t.thought)!==e.thought,i=e.thought===r;return e.thought?i||null!==t&&void 0!==t&&t.isDefaultThought&&!o?{isDefaultThought:!0,thought:r}:void 0===e.isDefaultThought?e.thought?{isDefaultThought:!1,thought:e.thought}:{isDefaultThought:!0,thought:r}:{isDefaultThought:!1,thought:e.thought}:{isDefaultThought:!0,thought:r}},AO=(e,t)=>{const n=tp.getState().settings.useCodeBasedSteps;try{return n?_O(e,t):SO(e,t)}catch(r){return void console.log("Error generating action body",r)}},SO=(e,t)=>{delete e.codeValue;const n=e.eventCode===Fv.Qy.DragAndDrop?{parentFramesSelectors:[],locator:e.dropTargetLocator}:void 0,r=e.eventCode===Fv.Qy.Login?{environment:e.login.environment,role:e.login.role}:void 0,o=e.eventCode===Fv.Qy.CanvasClick?{canvasText:e.canvas.canvasText,rectSizeIndex:e.canvas.rectSizeIndex}:void 0,i=(0,g.A)((0,g.A)({},e),{},{dropTarget:n,fillValue:(a=e,a.eventCode===Fv.Qy.CustomCode?a.customCodeFillValue:a.fillValue),login:r,id:t.id,source:t.source,canvas:o,thought:e.thought,isDefaultThought:!!t.isDefaultThought,customCodeFillValue:"",syncedWithNextStep:t.syncedWithNextStep,codeContext:t.codeContext});var a;return(0,g.A)((0,g.A)({},i),xO(i,{thought:t.thought,isDefaultThought:t.isDefaultThought}))},_O=async(e,t)=>{try{const n=await WU(e.codeValue,t.id,Zo.Action,t.timestamp);return n?(0,g.A)((0,g.A)((0,g.A)({},t),n),{},{timestamp:e.timestamp,codeContext:n.codeContext}):null}catch(n){return console.log("Error generating code based form",n),t}},kO=e=>{let{activeLocatorInputNameRef:t,action:n,setValue:r,watch:o,isTabActive:a,updateMutation:s,id:l}=e;const c=(0,i.useCallback)((e=>{t.current=e}),[]),u=jw().useCodeBasedSteps,d=o("eventCode"),f=(0,i.useCallback)((async e=>{const o=zw(e);if(u){const e=oI((0,g.A)((0,g.A)({},n),{},{locator:o}),n,{isNew:!1});await s.handler({id:l,data:e})}d===Fv.Qy.CustomCode?(await(async e=>{await navigator.clipboard.writeText(e)})("page.".concat(o)),Zf.success("Locator copied to clipboard")):r(t.current,o,{shouldDirty:!0})}),[d,r,u]);return wz({setSelection:f,isTabActive:a,eventName:Bw}),{trackActiveLocatorFieldToSetValueFromInspector:c}},CO=[{type:Ub.Locator,name:"locator",label:"Locator"}],EO=e=>({locators:e}),OO={[Fv.Qy.UploadFiles]:{locators:CO,inputs:[{type:Ub.File,name:"uploadFiles"}]},[Fv.Qy.Input]:{locators:CO,inputs:[{type:Ub.Text,name:"fillValue",label:"Text"}]},[Fv.Qy.SelectOption]:{locators:CO,inputs:[{type:Ub.Text,name:"fillValue",label:"Option Value"}]},[Fv.Qy.Keystroke]:{inputs:[{type:Ub.Text,name:"fillValue",label:"Key"}]},[Fv.Qy.Wait]:{inputs:[{type:Ub.Number,name:"fillValue",label:"Duration [ms]"}]},[Fv.Qy.DragAndDrop]:{locators:[...CO,{type:Ub.Locator,name:"dropTargetLocator",alternatesName:"dropTargetAlternateLocators",target:{type:Yw.DropTarget},label:"Drop locator"}]},[Fv.Qy.Navigation]:{inputs:[{type:Ub.Text,name:"fillValue",label:"URL"}]},[Fv.Qy.CanvasClick]:{locators:CO,inputs:[{type:Ub.Text,name:"canvas.canvasText",label:"Text"},{type:Ub.Number,name:"canvas.rectSizeIndex",label:"Rectangle Size"}]},[Fv.Qy.Login]:{inputs:[{type:Ub.Text,name:"login.role",label:"User Role"},{type:Ub.Text,name:"login.environment",label:"Environment"}],checkboxes:[{group:"checkbox",type:Ub.Checkbox,name:"loginOnPlay",label:"Should play",defaultChecked:!1}]},[Fv.Qy.CustomCode]:{inputs:[{type:Ub.Code,name:"customCodeFillValue",label:"Code"}]},[Fv.Qy.Click]:EO(CO),[Fv.Qy.DoubleClick]:EO(CO),[Fv.Qy.Check]:EO(CO),[Fv.Qy.UnCheck]:EO(CO),[Fv.Qy.Hover]:EO(CO),[Fv.Qy.SwitchTab]:EO(CO),[Fv.Qy.NativeDialogAccept]:EO(CO),[Fv.Qy.NativeDialogDismiss]:EO(CO)},TO=e=>{let{id:t,isTabActive:n,replayerActions:r}=e;const o=mO(t),a=(0,i.useRef)("locator"),s=jw().useCodeBasedSteps,[l,c]=(0,i.useMemo)((()=>{const e=Object.entries(Fv.Qy).filter((e=>{let[t,n]=e;return"string"===typeof n&&!gO.includes(n)})).map((e=>{let[t,n]=e;return{label:(r=n,r.split("_").map((e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase())).join(" ")),value:n.toString()};var r}));return o?s?[!0,e]:o.eventCode===Fv.Qy.CustomCode?[!0,[{label:"Custom Code",value:Fv.Qy.CustomCode}]]:[!1,e.filter((e=>e.value!==Fv.Qy.CustomCode))]:[!1,e]}),[o,s]),u=(e=>{let{id:t}=e;const n=Kt(),r=dy({id:t}),o=uV([sV.Assertions]),a=(0,i.useCallback)((e=>{r.update.handler((0,g.A)((0,g.A)({},e),{},{options:(0,g.A)((0,g.A)({},e.options),{},{preventIncreaseCodeBasedStepsSavingCount:!0})}))}),[r]),s=(0,i.useCallback)((function(){var e;let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{id:t};const{assertions:a}=o.findAssertionsByActionId(t),s=o.findActionBeforeStepById(t);let l=!0;a.length&&s&&(l=window.confirm("Do you want to delete assertions as well?")),n(xi(null!==(e=i.id)&&void 0!==e?e:t)),r.delete.handler((0,g.A)((0,g.A)({},i),{},{options:(0,g.A)((0,g.A)({},i.options),{},{withAssertions:l,prevActionId:null===s||void 0===s?void 0:s.id})}))}),[n,r,t,o]);return(0,i.useMemo)((()=>(0,g.A)((0,g.A)({},r),{},{[sW.Create]:(0,g.A)((0,g.A)({},r.create),{},{transformer:(e,t)=>AO(e,t)}),[sW.Update]:(0,g.A)((0,g.A)({},r.update),{},{handler:a,transformer:async(e,t)=>AO(e,t)}),[sW.Execute]:(0,g.A)((0,g.A)({},r.execute),{},{transformer:(e,t)=>AO(e,t)}),[sW.Delete]:(0,g.A)((0,g.A)({},r.delete),{},{handler:s})})),[r,s,a])})({id:t}),d=dy(),{methods:f,handleUpdate:p,isLoading:h,isFormDirty:m}=cW({entity:o,validationSchema:aO,defaultValuesGenerator:yO,mutations:u,allowedKeys:["locator","alternateLocators","dropTargetLocator","dropTargetAlternateLocators","thought","codeValue"]}),{watch:v,setValue:y,getValues:b,reset:w}=f;(e=>{let{methods:t,id:n,isCodeBasedMode:r}=e;const{getValues:o,setValue:a}=t,s=jw(),l=(0,i.useRef)(s.useCodeBasedSteps);(0,i.useEffect)((()=>{if(l.current===r||r)return;l.current=r;const e=o();e.eventCode===Fv.Qy.CustomCode&&e.codeValue&&a("customCodeFillValue",e.codeValue,{shouldDirty:!1})}),[r,o,a,n])})({methods:f,id:t,isCodeBasedMode:s});const x=(0,i.useCallback)((e=>{p(e)}),[p]),{handleDelete:A}=hy({id:t,replayerActions:r}),{saveFormBlur:S,formRef:_}=pW({isDirty:m,data:o,getValues:b,updateMutation:u[sW.Update],reset:w}),{trackActiveLocatorFieldToSetValueFromInspector:k}=kO({activeLocatorInputNameRef:a,action:o,setValue:y,watch:v,isTabActive:n,updateMutation:d.update,id:t}),C=u[sW.Execute].state.isLoading,E=v("eventCode"),O=(0,i.useMemo)((()=>EW(E,OO)),[E]);wW({data:o,keys:["eventCode"],setValue:y});const T=(0,i.useMemo)((()=>o?sy(o.eventCode):void 0),[o]);return{methods:f,handleSave:x,isSavingAction:h,handleDelete:A,isPlayActionLoading:C,handleClickAway:S,action:o,trackActiveLocatorFieldToSetValueFromInspector:k,formRef:_,dynamicFieldsGrouped:O,isDirty:m,actionTypeSelectionDisabled:l,actionTypes:c,isCodeBasedStepsModeActive:s,updateMutation:d.update,icon:T}};function IO(e){let{id:t,isTabActive:n,replayerActions:r}=e;const{methods:o,handleSave:i,isSavingAction:a,action:s,handleClickAway:l,formRef:c,isDirty:u,handleDelete:d,trackActiveLocatorFieldToSetValueFromInspector:f,dynamicFieldsGrouped:p,actionTypeSelectionDisabled:h,actionTypes:m,isCodeBasedStepsModeActive:g,updateMutation:v,icon:y}=TO({id:t,isTabActive:n,replayerActions:r}),{validityStatus:b,message:w}=pC();return(0,rs.FD)(wV,{formRef:c,methods:o,handleClickAway:l,gap:g?0:void 0,children:[(0,rs.Y)(TV,{methods:o,options:m,label:"Action type",stepData:s,disabled:h,autocompleteInputProps:{disablePortal:!0,ListboxProps:{style:{maxHeight:200}}},Icon:y}),g?(0,rs.Y)(eW,{onBlur:l,updateMutation:v,methods:o,stepData:s,target:{type:Yw.Action,id:t,rrwebid:s.rrwebId},type:Zo.Action,id:t}):(0,rs.Y)(bU,{type:Zo.Action,methods:o,action:s,dynamicFieldsGrouped:p,trackActiveLocatorFieldToSetValueFromInspector:f,isTabActive:n}),(0,rs.Y)(SV,{onBlur:l,children:(0,rs.Y)(AV,{isDirty:u,onDelete:d,onSave:i,isSaving:a,id:t,children:[Fv.Qy.CustomCode,Fv.Qy.Login].includes(s.eventCode)?null:(0,rs.Y)(rW,{name:"locator",isValid:b===bk.Valid,message:w,isPlaying:b===bk.Loading,show:b!==bk.NotApplicable})})})]})}function RO(e){return(0,Ee.Ay)("MuiRadioGroup",e)}(0,L.A)("MuiRadioGroup",["root","row","error"]);const PO=i.createContext(void 0),MO=["actions","children","className","defaultValue","name","onChange","value"],DO=i.forwardRef((function(e,t){const{actions:n,children:r,className:o,defaultValue:a,name:s,onChange:l,value:c}=e,u=(0,x.A)(e,MO),d=i.useRef(null),f=(e=>{const{classes:t,row:n,error:r}=e,o={root:["root",n&&"row",r&&"error"]};return(0,z.A)(o,RO,t)})(e),[p,h]=(0,q.A)({controlled:c,default:a,name:"RadioGroup"});i.useImperativeHandle(n,(()=>({focus:()=>{let e=d.current.querySelector("input:not(:disabled):checked");e||(e=d.current.querySelector("input:not(:disabled)")),e&&e.focus()}})),[]);const m=(0,K.A)(t,d),g=(0,nm.A)(s),v=i.useMemo((()=>({name:g,onChange(e){h(e.target.value),l&&l(e,e.target.value)},value:p})),[g,l,h,p]);return(0,R.jsx)(PO.Provider,{value:v,children:(0,R.jsx)(yw,(0,w.A)({role:"radiogroup",ref:m,className:(0,A.A)(f.root,o)},u,{children:r}))})})),LO=(0,Fe.A)((0,R.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),jO=(0,Fe.A)((0,R.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),NO=(0,U.Ay)("span",{shouldForwardProp:W.A})({position:"relative",display:"flex"}),FO=(0,U.Ay)(LO)({transform:"scale(1)"}),zO=(0,U.Ay)(jO)((e=>{let{theme:t,ownerState:n}=e;return(0,w.A)({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest})},n.checked&&{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})})}));const BO=function(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=(0,w.A)({},e,{checked:t});return(0,R.jsxs)(NO,{className:n.root,ownerState:o,children:[(0,R.jsx)(FO,{fontSize:r,className:n.background,ownerState:o}),(0,R.jsx)(zO,{fontSize:r,className:n.dot,ownerState:o})]})};var VO=__webpack_require__(6754);function UO(e){return(0,Ee.Ay)("MuiRadio",e)}const WO=(0,L.A)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),qO=["checked","checkedIcon","color","icon","name","onChange","size","className"],HO=(0,U.Ay)(Ne,{shouldForwardProp:e=>(0,W.A)(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t["size".concat((0,V.A)(n.size))],t["color".concat((0,V.A)(n.color))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,w.A)({color:(t.vars||t).palette.text.secondary},!n.disableRipple&&{"&:hover":{backgroundColor:t.vars?"rgba(".concat("default"===n.color?t.vars.palette.action.activeChannel:t.vars.palette[n.color].mainChannel," / ").concat(t.vars.palette.action.hoverOpacity,")"):(0,B.X4)("default"===n.color?t.palette.action.active:t.palette[n.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==n.color&&{["&.".concat(WO.checked)]:{color:(t.vars||t).palette[n.color].main}},{["&.".concat(WO.disabled)]:{color:(t.vars||t).palette.action.disabled}})}));const YO=(0,R.jsx)(BO,{checked:!0}),GO=(0,R.jsx)(BO,{}),KO=i.forwardRef((function(e,t){var n,r;const o=(0,G.b)({props:e,name:"MuiRadio"}),{checked:a,checkedIcon:s=YO,color:l="primary",icon:c=GO,name:u,onChange:d,size:f="medium",className:p}=o,h=(0,x.A)(o,qO),m=(0,w.A)({},o,{color:l,size:f}),g=(e=>{const{classes:t,color:n,size:r}=e,o={root:["root","color".concat((0,V.A)(n)),"medium"!==r&&"size".concat((0,V.A)(r))]};return(0,w.A)({},t,(0,z.A)(o,UO,t))})(m),v=i.useContext(PO);let y=a;const b=(0,VO.A)(d,v&&v.onChange);let S=u;var _,k;return v&&("undefined"===typeof y&&(_=v.value,y="object"===typeof(k=o.value)&&null!==k?_===k:String(_)===String(k)),"undefined"===typeof S&&(S=v.name)),(0,R.jsx)(HO,(0,w.A)({type:"radio",icon:i.cloneElement(c,{fontSize:null!=(n=GO.props.fontSize)?n:f}),checkedIcon:i.cloneElement(s,{fontSize:null!=(r=YO.props.fontSize)?r:f}),ownerState:m,classes:g,name:S,checked:y,onChange:b,ref:t,className:(0,A.A)(g.root,p)},h))}));function $O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function XO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QO(Object(n),!0).forEach((function(t){$O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function JO(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ZO(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function eT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tT(Object(n),!0).forEach((function(t){eT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rT(e){return function t(){for(var n=this,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return t.apply(n,[].concat(o,r))}}}function oT(e){return{}.toString.call(e).includes("Object")}function iT(e){return"function"===typeof e}var aT=rT((function(e,t){throw new Error(e[t]||e.default)}))({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),sT={changes:function(e,t){return oT(t)||aT("changeType"),Object.keys(t).some((function(t){return n=e,r=t,!Object.prototype.hasOwnProperty.call(n,r);var n,r}))&&aT("changeField"),t},selector:function(e){iT(e)||aT("selectorType")},handler:function(e){iT(e)||oT(e)||aT("handlerType"),oT(e)&&Object.values(e).some((function(e){return!iT(e)}))&&aT("handlersType")},initial:function(e){var t;e||aT("initialIsRequired"),oT(e)||aT("initialType"),t=e,Object.keys(t).length||aT("initialContent")}};function lT(e,t){return iT(t)?t(e.current):t}function cT(e,t){return e.current=nT(nT({},e.current),t),t}function uT(e,t,n){return iT(t)?t(e.current):Object.keys(n).forEach((function(n){var r;return null===(r=t[n])||void 0===r?void 0:r.call(t,e.current[n])})),n}const dT={create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};sT.initial(e),sT.handler(t);var n={current:e},r=rT(uT)(n,t),o=rT(cT)(n),i=rT(sT.changes)(e),a=rT(lT)(n);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return sT.selector(e),e(n.current)},function(e){!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}}(r,o,i,a)(e)}]}};const fT={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}};const pT=function(e){return{}.toString.call(e).includes("Object")};var hT={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},mT=function(e){return function t(){for(var n=this,r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return t.apply(n,[].concat(o,r))}}}((function(e,t){throw new Error(e[t]||e.default)}))(hT);const gT={config:function(e){return e||mT("configIsRequired"),pT(e)||mT("configType"),e.urls?(console.warn(hT.deprecation),{paths:{vs:e.urls.monacoBase}}):e}};const vT=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return t.reduceRight((function(e,t){return t(e)}),e)}};const yT=function e(t,n){return Object.keys(n).forEach((function(r){n[r]instanceof Object&&t[r]&&Object.assign(n[r],e(t[r],n[r]))})),XO(XO({},t),n)};var bT={type:"cancelation",msg:"operation is manually canceled"};const wT=function(e){var t=!1,n=new Promise((function(n,r){e.then((function(e){return t?r(bT):n(e)})),e.catch(r)}));return n.cancel=function(){return t=!0},n};var xT,AT,ST=dT.create({config:fT,isInitialized:!1,resolve:null,reject:null,monaco:null}),_T=(AT=2,function(e){if(Array.isArray(e))return e}(xT=ST)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(l){o=!0,i=l}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(xT,AT)||function(e,t){if(e){if("string"===typeof e)return ZO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ZO(e,t):void 0}}(xT,AT)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),kT=_T[0],CT=_T[1];function ET(e){return document.body.appendChild(e)}function OT(e){var t=kT((function(e){return{config:e.config,reject:e.reject}})),n=function(e){var t=document.createElement("script");return e&&(t.src=e),t}("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function TT(){var e=kT((function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}})),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],(function(t){IT(t),e.resolve(t)}),(function(t){e.reject(t)}))}function IT(e){kT().monaco||CT({monaco:e})}var RT=new Promise((function(e,t){return CT({resolve:e,reject:t})}));const PT={config:function(e){var t=gT.config(e),n=t.monaco,r=JO(t,["monaco"]);CT((function(e){return{config:yT(e.config,r),monaco:n}}))},init:function(){var e=kT((function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}}));if(!e.isInitialized){if(CT({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),wT(RT);if(window.monaco&&window.monaco.editor)return IT(window.monaco),e.resolve(window.monaco),wT(RT);vT(ET,OT)(TT)}return wT(RT)},__getMonacoInstance:function(){return kT((function(e){return e.monaco}))}};var MT={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},DT={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}};var LT=function(e){let{children:t}=e;return i.createElement("div",{style:DT.container},t)};var jT=function(e){let{width:t,height:n,isEditorReady:r,loading:o,_ref:a,className:s,wrapperProps:l}=e;return i.createElement("section",(0,g.A)({style:(0,g.A)((0,g.A)({},MT.wrapper),{},{width:t,height:n})},l),!r&&i.createElement(LT,null,o),i.createElement("div",{ref:a,style:(0,g.A)((0,g.A)({},MT.fullWidth),!r&&MT.hide),className:s}))},NT=(0,i.memo)(jT);var FT=function(e){(0,i.useEffect)(e,[])};var zT=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=(0,i.useRef)(!0);(0,i.useEffect)(r.current||!n?()=>{r.current=!1}:e,t)};function BT(){}function VT(e,t,n,r){return function(e,t){return e.editor.getModel(UT(e,t))}(e,r)||function(e,t,n,r){return e.editor.createModel(t,n,r?UT(e,r):void 0)}(e,t,n,r)}function UT(e,t){return e.Uri.parse(t)}var WT=function(){let[e,t]=(0,i.useState)(PT.__getMonacoInstance());return FT((()=>{let n;return e||(n=PT.init(),n.then((e=>{t(e)}))),()=>{var e;return null===(e=n)||void 0===e?void 0:e.cancel()}})),e};var qT=function(e){let t=(0,i.useRef)();return(0,i.useEffect)((()=>{t.current=e}),[e]),t.current},HT=new Map;var YT=function(e){let{defaultValue:t,defaultLanguage:n,defaultPath:r,value:o,language:a,path:s,theme:l="light",line:c,loading:u="Loading...",options:d={},overrideServices:f={},saveViewState:p=!0,keepCurrentModel:h=!1,width:m="100%",height:v="100%",className:y,wrapperProps:b={},beforeMount:w=BT,onMount:x=BT,onChange:A,onValidate:S=BT}=e,[_,k]=(0,i.useState)(!1),[C,E]=(0,i.useState)(!0),O=(0,i.useRef)(null),T=(0,i.useRef)(null),I=(0,i.useRef)(null),R=(0,i.useRef)(x),P=(0,i.useRef)(w),M=(0,i.useRef)(),D=(0,i.useRef)(o),L=qT(s),j=(0,i.useRef)(!1),N=(0,i.useRef)(!1);FT((()=>{let e=PT.init();return e.then((e=>(O.current=e)&&E(!1))).catch((e=>"cancelation"!==(null===e||void 0===e?void 0:e.type)&&console.error("Monaco initialization: error:",e))),()=>T.current?function(){var e,t;null!==(e=M.current)&&void 0!==e&&e.dispose(),h?p&&HT.set(s,T.current.saveViewState()):null===(t=T.current.getModel())||void 0===t||t.dispose(),T.current.dispose()}():e.cancel()})),zT((()=>{var e,i,l,c;let u=VT(O.current,t||o||"",n||a||"",s||r||"");u!==(null===(e=T.current)||void 0===e?void 0:e.getModel())&&(p&&HT.set(L,null===(i=T.current)||void 0===i?void 0:i.saveViewState()),null!==(l=T.current)&&void 0!==l&&l.setModel(u),p&&(null===(c=T.current)||void 0===c||c.restoreViewState(HT.get(s))))}),[s],_),zT((()=>{var e;null===(e=T.current)||void 0===e||e.updateOptions(d)}),[d],_),zT((()=>{!T.current||void 0===o||(T.current.getOption(O.current.editor.EditorOption.readOnly)?T.current.setValue(o):o!==T.current.getValue()&&(N.current=!0,T.current.executeEdits("",[{range:T.current.getModel().getFullModelRange(),text:o,forceMoveMarkers:!0}]),T.current.pushUndoStop(),N.current=!1))}),[o],_),zT((()=>{var e,t;let n=null===(e=T.current)||void 0===e?void 0:e.getModel();n&&a&&(null===(t=O.current)||void 0===t||t.editor.setModelLanguage(n,a))}),[a],_),zT((()=>{var e;void 0!==c&&(null===(e=T.current)||void 0===e||e.revealLine(c))}),[c],_),zT((()=>{var e;null===(e=O.current)||void 0===e||e.editor.setTheme(l)}),[l],_);let F=(0,i.useCallback)((()=>{if(I.current&&O.current&&!j.current){var e;P.current(O.current);let i=s||r,u=VT(O.current,o||t||"",n||a||"",i||"");T.current=null===(e=O.current)||void 0===e?void 0:e.editor.create(I.current,(0,g.A)({model:u,automaticLayout:!0},d),f),p&&T.current.restoreViewState(HT.get(i)),O.current.editor.setTheme(l),void 0!==c&&T.current.revealLine(c),k(!0),j.current=!0}}),[t,n,r,o,a,s,d,f,p,l,c]);return(0,i.useEffect)((()=>{_&&R.current(T.current,O.current)}),[_]),(0,i.useEffect)((()=>{!C&&!_&&F()}),[C,_,F]),D.current=o,(0,i.useEffect)((()=>{var e,t;_&&A&&(null!==(e=M.current)&&void 0!==e&&e.dispose(),M.current=null===(t=T.current)||void 0===t?void 0:t.onDidChangeModelContent((e=>{N.current||A(T.current.getValue(),e)})))}),[_,A]),(0,i.useEffect)((()=>{if(_){let e=O.current.editor.onDidChangeMarkers((e=>{var t;let n=null===(t=T.current.getModel())||void 0===t?void 0:t.uri;if(n&&e.find((e=>e.path===n.path))){let e=O.current.editor.getModelMarkers({resource:n});null===S||void 0===S||S(e)}}));return()=>{null===e||void 0===e||e.dispose()}}return()=>{}}),[_,S]),i.createElement(NT,{width:m,height:v,isEditorReady:_,loading:u,_ref:I,className:y,wrapperProps:b})},GT=(0,i.memo)(YT);function KT(e){return(0,Ee.Ay)("MuiLoadingButton",e)}const $T=(0,L.A)("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),QT=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],XT=(0,U.Ay)(ft,{shouldForwardProp:e=>(e=>"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e&&"classes"!==e)(e)||"classes"===e,name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{["& .".concat($T.startIconLoadingStart)]:t.startIconLoadingStart},t.endIconLoadingEnd&&{["& .".concat($T.endIconLoadingEnd)]:t.endIconLoadingEnd}]})((e=>{let{ownerState:t,theme:n}=e;return(0,w.A)({["& .".concat($T.startIconLoadingStart,", & .").concat($T.endIconLoadingEnd)]:{transition:n.transitions.create(["opacity"],{duration:n.transitions.duration.short}),opacity:0}},"center"===t.loadingPosition&&{transition:n.transitions.create(["background-color","box-shadow","border-color"],{duration:n.transitions.duration.short}),["&.".concat($T.loading)]:{color:"transparent"}},"start"===t.loadingPosition&&t.fullWidth&&{["& .".concat($T.startIconLoadingStart,", & .").concat($T.endIconLoadingEnd)]:{transition:n.transitions.create(["opacity"],{duration:n.transitions.duration.short}),opacity:0,marginRight:-8}},"end"===t.loadingPosition&&t.fullWidth&&{["& .".concat($T.startIconLoadingStart,", & .").concat($T.endIconLoadingEnd)]:{transition:n.transitions.create(["opacity"],{duration:n.transitions.duration.short}),opacity:0,marginLeft:-8}})})),JT=(0,U.Ay)("span",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t["loadingIndicator".concat((0,V.A)(n.loadingPosition))]]}})((e=>{let{theme:t,ownerState:n}=e;return(0,w.A)({position:"absolute",visibility:"visible",display:"flex"},"start"===n.loadingPosition&&("outlined"===n.variant||"contained"===n.variant)&&{left:"small"===n.size?10:14},"start"===n.loadingPosition&&"text"===n.variant&&{left:6},"center"===n.loadingPosition&&{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled},"end"===n.loadingPosition&&("outlined"===n.variant||"contained"===n.variant)&&{right:"small"===n.size?10:14},"end"===n.loadingPosition&&"text"===n.variant&&{right:6},"start"===n.loadingPosition&&n.fullWidth&&{position:"relative",left:-10},"end"===n.loadingPosition&&n.fullWidth&&{position:"relative",right:-10})})),ZT=i.forwardRef((function(e,t){const n=i.useContext(it),r=(0,nt.A)(n,e),o=(0,G.b)({props:r,name:"MuiLoadingButton"}),{children:a,disabled:s=!1,id:l,loading:c=!1,loadingIndicator:u,loadingPosition:d="center",variant:f="text"}=o,p=(0,x.A)(o,QT),h=(0,nm.A)(l),m=null!=u?u:(0,R.jsx)(Ps,{"aria-labelledby":h,color:"inherit",size:16}),g=(0,w.A)({},o,{disabled:s,loading:c,loadingIndicator:m,loadingPosition:d,variant:f}),v=(e=>{const{loading:t,loadingPosition:n,classes:r}=e,o={root:["root",t&&"loading"],startIcon:[t&&"startIconLoading".concat((0,V.A)(n))],endIcon:[t&&"endIconLoading".concat((0,V.A)(n))],loadingIndicator:["loadingIndicator",t&&"loadingIndicator".concat((0,V.A)(n))]},i=(0,z.A)(o,KT,r);return(0,w.A)({},r,i)})(g),y=c?(0,R.jsx)(JT,{className:v.loadingIndicator,ownerState:g,children:m}):null;return(0,R.jsxs)(XT,(0,w.A)({disabled:s||c,id:h,ref:t},p,{variant:f,classes:v,ownerState:g,children:["end"===g.loadingPosition?a:y,"end"===g.loadingPosition?y:a]}))})),eI=e=>{let{iterateAiStep:t}=e;const n=(0,o.d4)(fO),r=null===n||void 0===n?void 0:n.action,a=null===r||void 0===r?void 0:r.id,s=ln(),l=Kt(),{execute:c,update:u,create:d}=dy(),[f,p]=(0,i.useState)(null),[h,m]=(0,i.useState)(5),[v,y]=(0,i.useState)(null),[b,w]=(0,i.useState)(""),[x,A]=(0,i.useState)(""),[S,_]=(0,i.useState)(""),k=c.state.isLoading,C=(0,i.useCallback)((()=>{c.handler({id:a,data:r,options:{}})}),[c,r,a]),E=(0,i.useCallback)((async(e,t)=>{try{await d.handler({id:e.id,data:(0,g.A)((0,g.A)({},e),{},{syncedWithNextStep:!0,source:Jo.AI}),options:{type:n.replace?Az.ReplaceLast:Az.InsertLast}}),c.handler({id:e.id,data:e,options:{valueChanged:t,isAISuggestion:!0}})}catch(r){Zf("Create new action failed")}}),[c,d,n]),O=(0,i.useCallback)((()=>{if(!r)return;let e=r,n=!1,o=!1;if(v){if(e=(0,g.A)((0,g.A)({},r),{},{thought:b,fillValue:S}),null!==r&&void 0!==r&&r.executed)return void u.handler({id:e.id,data:e});const t=!!x&&(null===x||void 0===x?void 0:x.trim())!==r.thought.trim();n=!!S&&(null===S||void 0===S?void 0:S.trim())!==r.fillValue.trim()&&!!b&&(null===b||void 0===b?void 0:b.trim())!==r.thought.trim(),t&&(o=!0)}o?t({guidance:x}):E(e,n),y(null),p(null)}),[r,v,b,S,x,u,t,E]),T=(0,i.useCallback)((()=>{l(Cz({id:a,type:Zo.Action})),yz.clearHighlights(),l(ci(!1))}),[l,a]);return(0,i.useEffect)((()=>{var e;(y(null),r)&&(w(r.thought),A(r.thought),_(null!==(e=null===r||void 0===r?void 0:r.fillValue)&&void 0!==e?e:""),null!==r&&void 0!==r&&r.executed&&y(tI.Thought))}),[r]),(0,i.useEffect)((()=>{var e;if(!r)return;const t="".concat(r.thought).concat(null!==(e=r.fillValue)&&void 0!==e&&e.length?' with "'.concat(r.fillValue,'"'):"");p(t),m(5)}),[r]),(0,i.useEffect)((()=>{let e;return f&&h>0?e=setTimeout((()=>m(h-1)),1e3):f&&0===h&&(p(null),m(5),E(r,!1),y(null)),()=>clearTimeout(e)}),[r,f,h,E]),(0,i.useEffect)((()=>{!c.state.isLoading&&c.state.isSuccess&&s&&t()}),[c.state,s,t]),{isActionExecutionLoading:c.state.isLoading,updateActionMode:v,setUpdateActionMode:y,fillValue:S,setFillValue:_,thought:b,guidance:x,setThought:w,action:r,setGuidance:A,currentAlert:f,timeLeft:h,onCancel:T,isAPILoading:k,setCurrentAlert:p,setTimeLeft:m,handlePlayAction:C,handleExecuteStep:O}};let tI=function(e){return e.Thought="thought",e.ThoughtAndValue="thought-and-value",e.Guidance="guidance",e}({});const nI=e=>{let{iterateAiStep:t,isLoading:n=!1}=e;const{isActionExecutionLoading:r,updateActionMode:o,setUpdateActionMode:i,fillValue:a,setFillValue:s,thought:l,guidance:c,setThought:u,setGuidance:d,currentAlert:f,timeLeft:p,onCancel:h,action:m,isAPILoading:g,setCurrentAlert:v,setTimeLeft:y,handlePlayAction:b,handleExecuteStep:w}=eI({iterateAiStep:t});return n||r?(0,rs.Y)(F,{sx:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,rs.Y)(Ds,{circularProgressSize:26,children:"Generating next step..."})}):(0,rs.FD)(F,{sx:{display:"flex",justifyContent:"space-between"},children:[o?(0,rs.FD)(F,{sx:{display:"flex",flexDirection:"column",gap:2},children:[(0,rs.Y)(UA,{children:(0,rs.FD)(DO,{defaultValue:tI.Thought,onChange:(e,t)=>i(t),sx:{display:"flex",flexDirection:"row"},children:[(0,rs.Y)(Ga,{value:tI.Thought,control:(0,rs.Y)(KO,{}),label:"Yes"}),(0,rs.Y)(Ga,{value:tI.ThoughtAndValue,control:(0,rs.Y)(KO,{}),label:"Yes, but use different value"}),(0,rs.Y)(Ga,{value:tI.Guidance,control:(0,rs.Y)(KO,{}),label:"No, I will provide guidance"})]})}),(0,rs.FD)(F,{sx:{display:"flex",flexDirection:"column",gap:1},children:[[tI.ThoughtAndValue].includes(o)&&m.eventCode!==Fv.Qy.CustomCode?(0,rs.Y)(CS,{size:"small",id:"outlined-basic",label:"Value",variant:"outlined",defaultValue:null===m||void 0===m?void 0:m.fillValue,value:a,onChange:e=>{s(e.target.value)}}):null,[tI.ThoughtAndValue].includes(o)&&m.eventCode===Fv.Qy.CustomCode?(0,rs.Y)(GT,{width:"500px",height:"180px",defaultLanguage:"javascript",defaultValue:"async (frame) => {}",onChange:s,theme:"vs-dark",value:a,options:{minimap:{enabled:!1},fontSize:14}}):null,[tI.ThoughtAndValue,tI.Thought].includes(o)?(0,rs.Y)(CS,{size:"small",id:"outlined-basic",label:"Thought",variant:"outlined",value:l,onChange:e=>{u(e.target.value)}}):null,[tI.Guidance].includes(o)?(0,rs.Y)(CS,{size:"small",id:"outlined-basic",label:"Guidance",variant:"outlined",defaultValue:null===m||void 0===m?void 0:m.thought,value:c,onChange:e=>{d(e.target.value)}}):null]})]}):null,f?(0,rs.Y)(F,{sx:{padding:"16px"},children:(0,rs.FD)(Gt,{severity:"info",sx:{margin:"16px auto"},children:["Will approve action ".concat(f," in ").concat(p," seconds..."),(0,rs.Y)("br",{})]})}):null,(0,rs.FD)(F,{sx:{display:"flex",gap:1,alignItems:"end"},children:[(0,rs.Y)(ZT,{onClick:h,loading:g,children:"Cancel"}),o?null:(0,rs.Y)(ZT,{onClick:()=>{i(tI.Thought),v(null),y(10)},loading:g,children:"Update"}),(0,rs.Y)(ZT,{loading:r,size:"small",onClick:b,children:"Play action"}),(0,rs.Y)(ZT,{size:"small",loading:g,onClick:w,children:"Continue"})]})]})};const rI=new class{constructor(){this._recentSuccessfullyPlayedAction=null}reset(){this._recentSuccessfullyPlayedAction=null}handleConsecutiveRecordingActionsSync(e,t){const n=e.getState(),r=dO(n,t.id),o=uO(n,t.id);r&&t.data.source===Jo.Recording&&r.source===Jo.Recording&&this.dispatchUpdateActionInSyncWithNextAction(r,!0,e),o&&this.dispatchUpdateActionInSyncWithNextAction(o,!1,e)}handleExecuteActionsSync(e,t){const n=e.getState();this.dispatchUpdateActionInSyncWithNextAction(t.data,!1,e);const r=uO(n,t.id);r&&this.dispatchUpdateActionInSyncWithNextAction(r,!1,e);const o=dO(n,t.id);this.isConsecutiveActionsSequenceSuccessfullyExecuted(o)&&this.dispatchUpdateActionInSyncWithNextAction(o,!0,e),this.onPlayActionSuccess(t.data)}detectActionsSynced(e,t){return Object.keys(t).some((n=>{var r;return!(null!==(r=e[n])&&void 0!==r&&r.syncedWithNextStep)&&!!t[n].syncedWithNextStep}))}handleActionBecameOutOfSyncWithNext(e,t){const n=t.getState(),{id:r,data:o}=e.payload,i=uO(n,r),a=cO(n,r);i&&i.timestamp<o.timestamp&&a.syncedWithNextStep&&this.dispatchUpdateActionInSyncWithNextAction((0,g.A)((0,g.A)({},o),{},{id:r}),!1,t)}dispatchUpdateActionInSyncWithNextAction(e,t,n){let{id:r,eventCode:o}=e;[Fv.Qy.Login].includes(o)&&(t=!0),n.dispatch(Ev({id:r,syncedWithNextStep:t}))}onPlayActionSuccess(e){this._recentSuccessfullyPlayedAction=e}isConsecutiveActionsSequenceSuccessfullyExecuted(e){return!(!e||!this._recentSuccessfullyPlayedAction)&&this._recentSuccessfullyPlayedAction.id===e.id}},oI=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isNew:!0,loginOnPlay:!0};const r=(0,g.A)({},e);n.isNew&&(r.createdAt=Date.now(),e.eventCode===Fv.Qy.Login&&n.loginOnPlay&&(r.loginOnPlay=!0),e.id||(r.id=hE()));const{thought:o,isDefaultThought:i}=xO(r,{isDefaultThought:null===t||void 0===t?void 0:t.isDefaultThought,thought:null===t||void 0===t?void 0:t.thought});return r.thought=o,r.isDefaultThought=i,r},iI=()=>{const e=pO(),{iterateAiStep:t,handleStartAiIterate:n,isAIIterateLoading:r}=function(){let{shouldActivateMainTab:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{shouldActivateMainTab:!0};const t=Kt(),[n,{isSuccess:r,isLoading:o}]=Rv(),[a,{isLoading:s}]=Pv(),l=(0,i.useCallback)((()=>{e&&t(wi("main"))}),[e,t]),c=(0,i.useCallback)((e=>{t(ci(!0)),l(),a(e)}),[l,a,t]),u=(0,i.useCallback)((async()=>{t(ci(!0)),l(),n()}),[l,n,t]);return(0,i.useEffect)((()=>{r&&!o&&a()}),[r,o,a]),{iterateAiStep:c,handleStartAiIterate:u,isAIIterateLoading:s}}();return{actions:e,iterateAiStep:t,handleStartAiIterate:n,isAIIterateLoading:r}};class aI{constructor(e){this.middleware=e,this.assertionsGenerator=new zE,this.thoughtGenerator=new CE}startListening(){this.middleware.startListening({predicate:this.getIsRecordingStopped,effect:this.onSetIsRecording}),this.middleware.startListening({actionCreator:vI,effect:this.onReplayerStop.bind(this)}),this.middleware.startListening({actionCreator:Sv,effect:rI.handleActionBecameOutOfSyncWithNext.bind(rI)}),this.middleware.startListening({predicate:this.getIsStepSynced,effect:async(e,t)=>{this.assertionsGenerator.initiateGeneration(e,t),this.thoughtGenerator.initiateGeneration(e,t)}})}onSetIsRecording(e){e.payload.recordingActions||rI.reset()}onReplayerStop(){rI.reset()}getIsRecordingStopped(e,t,n){var r;return"volatile/setIsRecordingActions"===(null===(r=e.payload)||void 0===r?void 0:r.type)&&(n.volatile.recordingActions&&!t.volatile.recordingActions)}getIsStepSynced(e,t,n){if("actions/updateActionInSyncWithNextAction"!==e.type)return!1;const r=t.actions.actions,o=n.actions.actions;return rI.detectActionsSynced(o,r)}}class sI{constructor(e){this.middleware=e,this.onEventCodeChanged=(e,t)=>{const n=t.getState(),r=Qz(n)[e.payload.id];r&&("locator"in r&&t.dispatch(kk({id:e.payload.id})),"thought"in r&&t.dispatch(SE({id:e.payload.id})));const o=function(e,t,n){return function(e,t,n){return e.asyncProcesses.processes.filter((e=>t.includes[e.type]&&e.stepId===n))}(e,t,n).find((e=>e.status===Kk.Running))}(n,[Gk.Locators,Gk.ActionsThoughts,Gk.AssertionsThoughts],e.payload.id);if(Object.keys(o).length>0)for(const i in o)t.dispatch(eC({id:i}))}}startListening(){this.middleware.startListening({predicate:this.isEventCodeChanged,effect:this.onEventCodeChanged})}isEventCodeChanged(e,t,n){if("actions/updateAction"!==e.type)return!1;const r=n.actions.actions[e.payload.id],o=t.actions.actions[e.payload.id];return r.eventCode!==o.eventCode}}const lI={pauseState:{paused:!1,breakpointStepId:null,errorStepId:null},stopStep:{type:null,id:null},currentStep:{type:null,id:null},breakpoints:{},stepsCurrentlyPlaying:{},error:null},cI=Jr({name:"replayer",initialState:lI,reducers:{setPauseState(e,t){e.pauseState=(0,g.A)((0,g.A)({},e.pauseState),t.payload)},setStopStep(e,t){e.stopStep=t.payload},setCurrentStep(e,t){e.currentStep=t.payload},toggleBreakpoint(e,t){const n=t.payload;e.breakpoints[n]=!e.breakpoints[n]},setStepsCurrentlyPlaying(e,t){const{stepId:n,playing:r}=t.payload;e.stepsCurrentlyPlaying[n]=r},setError(e,t){e.error=t.payload},resetReplayer:e=>lI,stop(e){e.currentStep={type:null,id:null},e.pauseState={paused:!1,breakpointStepId:null,errorStepId:null},e.stopStep=null,e.error=null}}}),{setPauseState:uI,setStopStep:dI,setCurrentStep:fI,toggleBreakpoint:pI,setStepsCurrentlyPlaying:hI,setError:mI,resetReplayer:gI,stop:vI}=cI.actions,yI=cI.reducer;class bI{constructor(e){this.middleware=e,this.onReplayerInactive=async(e,t)=>{var n;if(null===(n=e.payload)||void 0===n||!n.id){const e=t.getState(),n=e.assertions.assertions,r=e.actions.actions;t.dispatch(jz({options:{stepsTimestampsMap:iW(r,n)}}));for(const o in n)t.dispatch(HC({id:o,data:{},options:{sortAfterSyncPlay:!1}}))}}}startListening(){this.middleware.startListening({predicate:(e,t,n)=>!wI(t)&&wI(n),effect:this.onReplayerInactive.bind(this)})}}const wI=e=>{var t;return!(null===(t=e.replayer.currentStep)||void 0===t||!t.id)},xI=e=>e.replayer,AI=()=>{var e,t,n;const r=(0,o.d4)(xI);return(0,g.A)((0,g.A)({},r),{},{currentStep:null!==(e=r.currentStep)&&void 0!==e?e:{type:null,id:null},playing:!(null===(t=r.currentStep)||void 0===t||!t.id),paused:!(null===(n=r.pauseState)||void 0===n||!n.paused),pausedOnBreakpointStepId:r.pauseState.breakpointStepId,pausedOnErrorStepId:r.pauseState.errorStepId,error:r.error})},SI=()=>{const e=(()=>{const e=pO();return(0,i.useMemo)((()=>e.map((e=>(0,g.A)((0,g.A)({},e),{},{parentFramesSelectors:[]})))),[e])})(),t=uV(),n=dW(),r=(()=>{const e=Kt();return{setError:t=>e(mI(t)),clearError:()=>e(mI(null))}})(),{isInitFinished:o}=un(),{autoLogin:a,autoRunSteps:s}=jw(),{pauseState:l,stopStep:c,currentStep:u,breakpoints:d,stepsCurrentlyPlaying:f}=AI(),p=iV(),{execute:h}=dy(),{execute:m}=Vb(),v=(0,i.useRef)(!1),y=(0,i.useRef)(!1),b=(0,i.useRef)(!0),w=(0,i.useRef)(!0),x=(0,i.useRef)(Date.now());(e=>{let{hasAdvanced:t,playActionState:n,playAssertionState:r,shouldAdvanceAfterSuccess:o}=e;const a=Kt(),s=uV(),l=dW(),{currentStep:c,pauseState:u}=AI(),d=(0,i.useRef)(null),f=(0,i.useRef)(null),p=(0,i.useCallback)((async()=>{if(!o.current)return;const{step:e}=s.findNextStepDataById(c.id);c.type===Zo.Action&&n.reset(),c.type===Zo.Assertion&&r.reset(),e||await l(c.id),t.current=!0,a(fI(e)),c&&u.errorStepId===c.id&&a(uI({errorStepId:null}))}),[c,s,n,r,o,a,u.errorStepId,t,l]);(0,i.useEffect)((()=>{d.current=p}),[p]);const h=(0,i.useCallback)((()=>{a(uI({paused:!0,breakpointStepId:null,errorStepId:c.id})),t.current=!0}),[c.id,a,t]);(0,i.useEffect)((()=>{f.current=h}),[h]),(0,i.useEffect)((()=>{var e;c.type!==Zo.Action||t.current||n.isLoading||!n.isSuccess||null===(e=d.current)||void 0===e||e.call(d)}),[n.isSuccess,n.isLoading,c.type,t]),(0,i.useEffect)((()=>{var e;n.aborted||!n.isError||c.type!==Zo.Action||t.current||u.paused||null===(e=f.current)||void 0===e||e.call(f)}),[n.isError,n.aborted,c.type,u.paused,t]),(0,i.useEffect)((()=>{var e;c.type!==Zo.Assertion||t.current||r.isLoading||!r.isSuccess||null===(e=d.current)||void 0===e||e.call(d)}),[r.isLoading,r.isSuccess,c.type,t,d]),(0,i.useEffect)((()=>{var e;r.aborted||!r.isError||t.current||c.type!==Zo.Assertion||u.paused||null===(e=f.current)||void 0===e||e.call(f)}),[r.isError,r.aborted,c.type,u.paused,t,f])})({hasAdvanced:y,actions:e,playActionState:h.state,playAssertionState:m.state,shouldAdvanceAfterSuccess:b});const A=(0,i.useRef)(e);(0,i.useEffect)((()=>{A.current=e}),[e]);const S=Kt(),_=(0,i.useCallback)((()=>{var e,t;u.id&&S(fI({type:null,id:null})),S(uI({paused:!1,breakpointStepId:null,errorStepId:null})),S(dI(null)),w.current=!0,null===(e=h.abortMutation)||void 0===e||e.call(h),null===(t=m.abortMutation)||void 0===t||t.call(m)}),[u.id]),k=(0,i.useCallback)((function(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{action:r,step:o}=e;return!(!r||o.type!==Zo.Action)&&(r.eventCode===Fv.Qy.Login&&(!n&&!r.loginOnPlay&&(Zf.info("Skipping login",{autoClose:1e3,toastId:e.action.id}),e=t.findNextStepDataById(e.step.id),S(fI(e.step)),!0)))}),[S,t]),C=(0,i.useCallback)((e=>{var n;let r;return e.eventCode!==Fv.Qy.Login||v.current||(null===(n=t.steps.at(0))||void 0===n?void 0:n.id)!==e.id||(r=!1,v.current=!0),r}),[t]),E=(0,i.useCallback)((async function(e){let{force:t=!1,enableSuccessToast:o=!1,advanceAfterSuccess:i=!0,singlePlay:a=!1,forceUpdateTimestamp:s=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};b.current=i,w.current&&(w.current=s);const u=await n(e.id),f=u.step;if(r.clearError(),!f)return void Zf.error("The step you're trying to play couldn't execute. It might have been deleted or its type may have changed. If it's present, try playing it again.");if(k(u,t))return;let{action:v,assertion:A,step:E}=u;if(null===p||void 0===p||p(E.id,{switchToSnapshotTab:!1,origin:Qo.Replayer}),!t){if((null===c||void 0===c?void 0:c.id)===f.id)return void _();if(d[f.id]){if(l.breakpointStepId!==f.id)return void S(uI({paused:!0,breakpointStepId:f.id,errorStepId:null}));S(uI({breakpointStepId:null}))}}if(v&&(f.type!==Zo.Assertion||A)){y.current=!1;try{switch(S(hI({stepId:f.id,playing:!0})),f.type){case Zo.Action:const e=C(v);await h.handler({id:v.id,data:(0,g.A)((0,g.A)({},v),void 0!==e&&{loginOnPlay:e}),options:{singlePlay:a,forceUpdateTimestamp:w.current,runStartedAt:x.current}}),o&&Zf.success("Action has been executed successfully",{autoClose:1e3,toastId:"replayer-action-success"});break;case Zo.Assertion:const t=await m.handler({id:A.id,data:{id:A.id,locator:A.locator,matcher:A.matcher,matcherOptions:A.matcherOptions,actionId:v.id},options:{target:"live",singlePlay:a,forceUpdateTimestamp:w.current,runStartedAt:x.current}});o&&t.success&&Zf.success("Assertion has been verified successfully",{autoClose:1e3,toastId:"replayer-assertion-success"})}}catch(M){var O,T,I,R,P;if(Zf.error(M),null!==M&&void 0!==M&&null!==(O=M.data)&&void 0!==O&&O.error)r.setError(null===M||void 0===M||null===(R=M.data)||void 0===R?void 0:R.error);if(!1===(null===M||void 0===M||null===(T=M.data)||void 0===T?void 0:T.success)&&null!==M&&void 0!==M&&null!==(I=M.data)&&void 0!==I&&I.message)r.setError(null===M||void 0===M||null===(P=M.data)||void 0===P?void 0:P.message)}finally{S(hI({stepId:f.id,playing:!1}))}}}),[S,k,h,m,d,l,c,_,n,t.steps,t.assertions,t.actions,p]),O=sn();(0,i.useEffect)((()=>{O&&Object.values(f).some((e=>e))&&yz.toggleOrSetShouldRecordActions({recordingOptions:{mode:Xo.InsertLast},shouldRecordActions:!1,message:"Recording stopped"})}),[f,O]);const T=(0,i.useCallback)((()=>{x.current=Date.now(),S(fi())}),[S]),I=(0,i.useCallback)(((e,n)=>{const r=t.findStepById(e);r?(T(),E(r,{force:!0,enableSuccessToast:!0,advanceAfterSuccess:!1,singlePlay:!0,forceUpdateTimestamp:!1})):console.log("[playSingleStep] Step not found",e)}),[T,E,t.actions,t.assertions]),R=(0,i.useRef)(E);(0,i.useEffect)((()=>{R.current=E}),[E]),(0,i.useEffect)((()=>{u.id?u.id&&!l.paused&&R.current(u):_()}),[u.id,l.paused,_]);const P=(0,i.useCallback)((async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{forceUpdateTimestamp:!0};w.current=e.forceUpdateTimestamp,S(dI(null));const n=t.getStepIdAtIndex(0),r=t.findStepById(n);await(0,dC.uc)(1e3),T(),S(fI(r))}),[t,T,S]),M=(0,i.useCallback)((function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{forceUpdateTimestamp:!0};_(),w.current=n.forceUpdateTimestamp;const r=t.findStepById(e);T(),S(fI(r))}),[T,_,S,t]),D=(0,i.useCallback)((function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{forceUpdateTimestamp:!0};_(),w.current=n.forceUpdateTimestamp;const{step:r}=t.findNextStepDataById(e);S(dI(r||null));const o=t.steps.at(0);T(),S(fI(o))}),[T,_,S,t]),L=(0,i.useCallback)((e=>{S(pI(e))}),[S]),j=(0,i.useCallback)((()=>{S(uI({paused:!0}))}),[S]),N=(0,i.useCallback)((()=>{S(fi()),S(uI({paused:!1})),y.current=!0}),[S]),F=(0,i.useCallback)((async(e,n)=>{if(!u.id)return;const r=null!==n&&void 0!==n?n:t.findNextStepDataById(u.id).step;"function"===typeof e&&await e(),S(fI(r)),S(uI({paused:!1,errorStepId:null,breakpointStepId:null}))}),[u.id,S,t]);return(0,i.useEffect)((()=>{var t;!v.current&&o&&null!==e&&void 0!==e&&e.length&&(e.some((e=>e.eventCode===Fv.Qy.Login))||(v.current=!0),(null===u||void 0===u||!u.id||v.current)&&(a?s?P({forceUpdateTimestamp:!0}):D((null===(t=e[1])||void 0===t?void 0:t.eventCode)===Fv.Qy.Navigation?e[1].id:e[0].id,{forceUpdateTimestamp:!0}):s&&P({forceUpdateTimestamp:!0})))}),[o,a,s,e,P,D,null===u||void 0===u?void 0:u.id]),{playAll:P,playSingleStep:I,playFrom:M,playUntil:D,toggleBreakpoint:L,stop:_,pause:j,resume:N,breakpoints:d,skipCurrentStep:F}},_I=()=>{const e=(0,o.wA)(),t=(0,o.d4)(Xs),n=(0,o.d4)(Js),r=Jz(),a=uW(),s=uV(),{error:l,pausedOnErrorStepId:c}=AI(),u=(e=>{const t=(0,o.d4)(Ks);return e&&t[e]||[]})(null===r||void 0===r?void 0:r.id),d=(0,o.d4)($s),f=(0,o.d4)(Qs),[p,h]=(0,i.useState)(""),[m,v]=(0,i.useState)(Ys.find((e=>"claude-4-sonnet"===e.id))||Ys[0]),[y,b]=(0,i.useState)(null),[w,x]=(0,i.useState)(!1),[A,S]=(0,i.useState)(!1),[_,k]=(0,i.useState)({image:!1,html:!0,code:!0}),[C,E]=(0,i.useState)(null),O=(0,i.useRef)(null),T=(0,i.useRef)(null),I=(0,i.useRef)(0),R=(0,i.useRef)(0),[P]=cp(),M=tB(null===r||void 0===r?void 0:r.id),D=()=>{b(null)},L=async t=>{if(!t.trim()||d||!r)return;const n=await a(r.id),{stepData:o}=s.findStepDataById(n.id);o||Zf.error("Cannot find step data");const i=(null===C||void 0===C?void 0:C.locator)||o.locator,p=u.filter((e=>"warning"!==e.type)),h={message:t,selection:i?{locator:i}:void 0,stepCode:M,messageHistory:p,model:(0,g.A)((0,g.A)({},m),m.supportsThinking&&{thinking:w}),includeImage:_.image,includeHtml:_.html,includeCode:_.code,timestamp:o.timestamp||Date.now(),error:c===n.id?l:void 0};e(nl(null)),e(tl(!0)),e(el({type:"user",content:t,timestamp:(new Date).toISOString(),stepId:r.id}));try{var v;const t=await P(h).unwrap();null!==(v=t.contextErrors)&&void 0!==v&&v.length&&t.contextErrors.forEach((t=>{e(el({type:"warning",content:t,timestamp:(new Date).toISOString(),stepId:r.id}))})),e(el({type:"assistant",content:t.message,timestamp:t.timestamp,stepId:r.id,thinking:t.thinking}))}catch(f){e(nl(f instanceof Error?f.message:"An error occurred")),console.error("Error sending message:",f)}finally{e(tl(!1))}},j=async e=>{e.preventDefault(),await L(p),h("")};return(0,i.useEffect)((()=>{const t=t=>{if(!A)return;const n=I.current-t.clientX,r=Math.max(300,Math.min(800,R.current+n));e(al(r))},n=()=>{S(!1)};return A&&(document.addEventListener("mousemove",t),document.addEventListener("mouseup",n)),()=>{document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",n)}}),[A,e]),(0,i.useEffect)((()=>{var e;null===(e=O.current)||void 0===e||e.scrollIntoView({behavior:"smooth"})}),[u]),(0,i.useEffect)((()=>{t&&setTimeout((()=>{var e;null===(e=T.current)||void 0===e||e.focus()}),0)}),[t]),(0,i.useEffect)((()=>{E(null)}),[null===r||void 0===r?void 0:r.id]),(0,i.useEffect)((()=>{const e=async e=>{const{data:{data:t,type:n}}=e;n===Gs&&(E(t),yz.stopInspector())};return window.addEventListener("message",e),()=>{window.removeEventListener("message",e)}}),[]),{isOpen:t,input:p,width:n,isResizing:A,selectedModel:m,anchorEl:y,contextTypes:_,selectedElement:C,messagesEndRef:O,messages:u,loading:d,error:f,handleClose:()=>{e(il(!1))},setInput:h,setSelectedModel:v,handleSubmit:j,handleSubmitDirectly:async e=>{await L(e)},handleKeyDown:async e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),await j(e))},handleMenuOpen:e=>{b(e.currentTarget)},handleMenuClose:D,handleClearChat:()=>{e(r?ol(r.id):rl()),D()},handleContextTypeChange:(e,t)=>{k({image:t.includes("image"),html:t.includes("html"),code:t.includes("code")})},inputRef:T,handleToggle:()=>{e(il(!t))},isThinking:w,setIsThinking:x,handleMouseDown:e=>{e.preventDefault(),S(!0),I.current=e.clientX,R.current=n},setSelectedElement:E}},kI=(0,Fe.A)([(0,R.jsx)("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),(0,R.jsx)("path",{d:"M13 3C9.25 3 6.2 5.94 6.02 9.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v3h7v-4.68c2.36-1.12 4-3.53 4-6.32 0-3.87-3.13-7-7-7m3 7c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")],"Psychology"),CI=(0,Fe.A)((0,R.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear"),EI=(0,Fe.A)((0,R.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert"),OI=e=>{let{onClose:t,onMenuOpen:n,onMenuClose:r,onClearChat:o,anchorEl:i,selectedModel:a,onModelChange:s,selectedElement:l,isThinking:c,onThinkingChange:u,onClearSelectedElement:d}=e;const f=Hs({width:0});return(0,rs.FD)(F,{sx:f.header,children:[(0,rs.FD)(F,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,rs.Y)(UA,{size:"small",sx:{minWidth:120},children:(0,rs.Y)(xS,{value:a.id,onChange:e=>s(Ys.find((t=>t.id===e.target.value))||Ys[0]),sx:f.modelSelect,children:Ys.map((e=>(0,rs.Y)(Og,{value:e.id,children:e.name},e.id)))})}),a.supportsThinking&&(0,rs.Y)(pm,{title:c?"Disable thinking mode":"Enable thinking mode",children:(0,rs.Y)(Lt,{size:"small",onClick:()=>u(!c),color:c?"primary":"default",children:(0,rs.Y)(kI,{})})})]}),(0,rs.FD)(F,{sx:{display:"flex",alignItems:"center",gap:.5},children:[l&&(0,rs.FD)(F,{sx:{display:"flex",alignItems:"center",mr:1},children:[(0,rs.Y)(pm,{title:l.locator,children:(0,rs.FD)(F,{sx:{fontSize:"0.75rem",color:"text.secondary",maxWidth:200,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:["Selected: ",l.locator]})}),(0,rs.Y)(pm,{title:"Clear selection",children:(0,rs.Y)(Lt,{size:"small",onClick:d,sx:{ml:.5,p:.5},children:(0,rs.Y)(CI,{fontSize:"small"})})})]}),(0,rs.Y)(F,{sx:f.inspectorButtonWrapper,children:(0,rs.Y)(kC,{eventName:Gs})}),(0,rs.Y)(Lt,{onClick:n,size:"small",children:(0,rs.Y)(EI,{})}),(0,rs.Y)(yg,{anchorEl:i,open:Boolean(i),onClose:r,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:(0,rs.Y)(Og,{onClick:o,children:"Clear conversation"})}),(0,rs.Y)(pm,{title:"Close chat",children:(0,rs.Y)(Lt,{onClick:t,size:"small",children:(0,rs.Y)(by,{})})})]})]})},TI=(0,Fe.A)((0,R.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow"),II=(0,Fe.A)((0,R.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var RI=__webpack_require__(4997),PI=__webpack_require__(4636);function MI(e){return e&&"object"===typeof e?"position"in e||"type"in e?LI(e.position):"start"in e||"end"in e?LI(e):"line"in e||"column"in e?DI(e):"":""}function DI(e){return jI(e&&e.line)+":"+jI(e&&e.column)}function LI(e){return DI(e&&e.start)+"-"+DI(e&&e.end)}function jI(e){return e&&"number"===typeof e?e:1}class NI extends Error{constructor(e,t,n){const r=[null,null];let o={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"===typeof t&&(n=t,t=void 0),"string"===typeof n){const e=n.indexOf(":");-1===e?r[1]=n:(r[0]=n.slice(0,e),r[1]=n.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(o=t.position):"start"in t||"end"in t?o=t:("line"in t||"column"in t)&&(o.start=t)),this.name=MI(t)||"1:1",this.message="object"===typeof e?e.message:e,this.stack="","object"===typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=o.start.line,this.column=o.start.column,this.position=o,this.source=r[0],this.ruleId=r[1],this.file,this.actual,this.expected,this.url,this.note}}NI.prototype.file="",NI.prototype.name="",NI.prototype.reason="",NI.prototype.message="",NI.prototype.stack="",NI.prototype.fatal=null,NI.prototype.column=null,NI.prototype.line=null,NI.prototype.source=null,NI.prototype.ruleId=null,NI.prototype.position=null;const FI={basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');zI(e);let n,r=0,o=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.charCodeAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(47===e.charCodeAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(o=i):(s=-1,o=a));r===o?o=a:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(zI(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},extname:function(e){zI(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const s=e.charCodeAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===a||1===a&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(){let e,t=-1;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];for(;++t<r.length;)zI(r[t]),r[t]&&(e=void 0===e?r[t]:e+"/"+r[t]);return void 0===e?".":function(e){zI(e);const t=47===e.charCodeAt(0);let n=function(e,t){let n,r,o="",i=0,a=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.charCodeAt(l);else{if(47===n)break;n=47}if(47===n){if(a===l-1||1===s);else if(a!==l-1&&2===s){if(o.length<2||2!==i||46!==o.charCodeAt(o.length-1)||46!==o.charCodeAt(o.length-2))if(o.length>2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=l,s=0;continue}}else if(o.length>0){o="",i=0,a=l,s=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,l):o=e.slice(a+1,l),i=l-a-1;a=l,s=0}else 46===n&&s>-1?s++:s=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/");return t?"/"+n:n}(e)},sep:"/"};function zI(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const BI={cwd:function(){return"/"}};function VI(e){return null!==e&&"object"===typeof e&&e.href&&e.origin}function UI(e){if("string"===typeof e)e=new URL(e);else if(!VI(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.charCodeAt(n)&&50===t.charCodeAt(n+1)){const e=t.charCodeAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const WI=["history","path","basename","stem","extname","dirname"];class qI{constructor(e){let t;t=e?"string"===typeof e||function(e){return PI(e)}(e)?{value:e}:VI(e)?{path:e}:e:{},this.data={},this.messages=[],this.history=[],this.cwd=BI.cwd(),this.value,this.stored,this.result,this.map;let n,r=-1;for(;++r<WI.length;){const e=WI[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)WI.includes(n)||(this[n]=t[n])}get path(){return this.history[this.history.length-1]}set path(e){VI(e)&&(e=UI(e)),YI(e,"path"),this.path!==e&&this.history.push(e)}get dirname(){return"string"===typeof this.path?FI.dirname(this.path):void 0}set dirname(e){GI(this.basename,"dirname"),this.path=FI.join(e||"",this.basename)}get basename(){return"string"===typeof this.path?FI.basename(this.path):void 0}set basename(e){YI(e,"basename"),HI(e,"basename"),this.path=FI.join(this.dirname||"",e)}get extname(){return"string"===typeof this.path?FI.extname(this.path):void 0}set extname(e){if(HI(e,"extname"),GI(this.dirname,"extname"),e){if(46!==e.charCodeAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=FI.join(this.dirname,this.stem+(e||""))}get stem(){return"string"===typeof this.path?FI.basename(this.path,this.extname):void 0}set stem(e){YI(e,"stem"),HI(e,"stem"),this.path=FI.join(this.dirname||"",e+(this.extname||""))}toString(e){return(this.value||"").toString(e||void 0)}message(e,t,n){const r=new NI(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=null,r}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}}function HI(e,t){if(e&&e.includes(FI.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+FI.sep+"`")}function YI(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function GI(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function KI(e){if(e)throw e}var $I=__webpack_require__(8282),QI=__webpack_require__(2709);function XI(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function JI(){const e=[],t={run:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];let o=-1;const i=n.pop();if("function"!==typeof i)throw new TypeError("Expected function as last argument, not "+i);!function t(r){const a=e[++o];let s=-1;if(r)i(r);else{for(var l=arguments.length,c=new Array(l>1?l-1:0),u=1;u<l;u++)c[u-1]=arguments[u];for(;++s<n.length;)null!==c[s]&&void 0!==c[s]||(c[s]=n[s]);n=c,a?function(e,t){let n;return o;function o(){for(var t=arguments.length,o=new Array(t),s=0;s<t;s++)o[s]=arguments[s];const l=e.length>o.length;let c;l&&o.push(i);try{c=e.apply(this,o)}catch(r){if(l&&n)throw r;return i(r)}l||(c&&c.then&&"function"===typeof c.then?c.then(a,i):c instanceof Error?i(c):a(c))}function i(e){if(!n){n=!0;for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];t(e,...o)}}function a(e){i(null,e)}}(a,t)(...c):i(null,...c)}}(null,...n)},use:function(n){if("function"!==typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const ZI=function e(){const t=JI(),n=[];let r,o={},i=-1;return a.data=function(e,t){if("string"===typeof e)return 2===arguments.length?(oR("data",r),o[e]=t,a):eR.call(o,e)&&o[e]||null;if(e)return oR("data",r),o=e,a;return o},a.Parser=void 0,a.Compiler=void 0,a.freeze=function(){if(r)return a;for(;++i<n.length;){const[e,...r]=n[i];if(!1===r[0])continue;!0===r[0]&&(r[0]=void 0);const o=e.call(a,...r);"function"===typeof o&&t.use(o)}return r=!0,i=Number.POSITIVE_INFINITY,a},a.attachers=n,a.use=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),s=1;s<t;s++)i[s-1]=arguments[s];let l;if(oR("use",r),null===e||void 0===e);else if("function"===typeof e)f(e,...i);else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?d(e):u(e)}l&&(o.settings=Object.assign(o.settings||{},l));return a;function c(e){if("function"===typeof e)f(e);else{if("object"!==typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;f(t,...n)}else u(e)}}function u(e){d(e.plugins),e.settings&&(l=Object.assign(l||{},e.settings))}function d(e){let t=-1;if(null===e||void 0===e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){c(e[t])}}}function f(e,t){let r,o=-1;for(;++o<n.length;)if(n[o][0]===e){r=n[o];break}r?(XI(r[1])&&XI(t)&&(t=QI(!0,r[1],t)),r[1]=t):n.push([...arguments])}},a.parse=function(e){a.freeze();const t=sR(e),n=a.Parser;if(nR("parse",n),tR(n,"parse"))return new n(String(t),t).parse();return n(String(t),t)},a.stringify=function(e,t){a.freeze();const n=sR(t),r=a.Compiler;if(rR("stringify",r),iR(e),tR(r,"compile"))return new r(e,n).compile();return r(e,n)},a.run=function(e,n,r){iR(e),a.freeze(),r||"function"!==typeof n||(r=n,n=void 0);if(!r)return new Promise(o);function o(o,i){function a(t,n,a){n=n||e,t?i(t):o?o(n):r(null,n,a)}t.run(e,sR(n),a)}o(null,r)},a.runSync=function(e,t){let n,r;return a.run(e,t,o),aR("runSync","run",r),n;function o(e,t){KI(e),n=t,r=!0}},a.process=function(e,t){if(a.freeze(),nR("process",a.Parser),rR("process",a.Compiler),!t)return new Promise(n);function n(n,r){const o=sR(e);function i(e,o){e||!o?r(e):n?n(o):t(null,o)}a.run(a.parse(o),o,((e,t,n)=>{if(!e&&t&&n){const o=a.stringify(t,n);void 0===o||null===o||("string"===typeof(r=o)||$I(r)?n.value=o:n.result=o),i(e,n)}else i(e);var r}))}n(null,t)},a.processSync=function(e){let t;a.freeze(),nR("processSync",a.Parser),rR("processSync",a.Compiler);const n=sR(e);return a.process(n,r),aR("processSync","process",t),n;function r(e){t=!0,KI(e)}},a;function a(){const t=e();let r=-1;for(;++r<n.length;)t.use(...n[r]);return t.data(QI(!0,{},o)),t}}().freeze(),eR={}.hasOwnProperty;function tR(e,t){return"function"===typeof e&&e.prototype&&(function(e){let t;for(t in e)if(eR.call(e,t))return!0;return!1}(e.prototype)||t in e.prototype)}function nR(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `Parser`")}function rR(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `Compiler`")}function oR(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function iR(e){if(!XI(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function aR(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function sR(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new qI(e)}const lR={};function cR(e,t,n){if(function(e){return Boolean(e&&"object"===typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return uR(e.children,t,n)}return Array.isArray(e)?uR(e,t,n):""}function uR(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=cR(e[o],t,n);return r.join("")}function dR(e,t,n,r){const o=e.length;let i,a=0;if(t=t<0?-t>o?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a<r.length;)i=r.slice(a,a+1e4),i.unshift(t,0),e.splice(...i),a+=1e4,t+=1e4}function fR(e,t){return e.length>0?(dR(e,e.length,0,t),e):t}const pR={}.hasOwnProperty;function hR(e,t){let n;for(n in t){const r=(pR.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let i;if(o)for(i in o){pR.call(r,i)||(r[i]=[]);const e=o[i];mR(r[i],Array.isArray(e)?e:e?[e]:[])}}}function mR(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);dR(e,0,0,r)}const gR=OR(/[A-Za-z]/),vR=OR(/[\dA-Za-z]/),yR=OR(/[#-'*+\--9=?A-Z^-~]/);function bR(e){return null!==e&&(e<32||127===e)}const wR=OR(/\d/),xR=OR(/[\dA-Fa-f]/),AR=OR(/[!-/:-@[-`{-~]/);function SR(e){return null!==e&&e<-2}function _R(e){return null!==e&&(e<0||32===e)}function kR(e){return-2===e||-1===e||32===e}const CR=OR(/[!-\/:-@\[-`\{-~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/),ER=OR(/\s/);function OR(e){return function(t){return null!==t&&e.test(String.fromCharCode(t))}}function TR(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(kR(r))return e.enter(n),a(r);return t(r)};function a(r){return kR(r)&&i++<o?(e.consume(r),a):(e.exit(n),t(r))}}const IR={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,(function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),TR(e,t,"linePrefix")}),(function(t){return e.enter("paragraph"),r(t)}));let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):SR(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),o)}}};const RR={tokenize:function(e){const t=this,n=[];let r,o,i,a=0;return s;function s(r){if(a<n.length){const o=n[a];return t.containerState=o[1],e.attempt(o[0].continuation,l,c)(r)}return c(r)}function l(e){if(a++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();const n=t.events.length;let o,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){o=t.events[i][1].end;break}v(a);let s=n;for(;s<t.events.length;)t.events[s][1].end=Object.assign({},o),s++;return dR(t.events,i+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(o){if(a===n.length){if(!r)return f(o);if(r.currentConstruct&&r.currentConstruct.concrete)return h(o);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(PR,u,d)(o)}function u(e){return r&&y(),v(a),f(e)}function d(e){return t.parser.lazy[t.now().line]=a!==n.length,i=t.now().offset,h(e)}function f(n){return t.containerState={},e.attempt(PR,p,h)(n)}function p(e){return a++,n.push([t.currentConstruct,t.containerState]),f(e)}function h(n){return null===n?(r&&y(),v(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:r}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),v(0),void e.consume(n)):SR(n)?(e.consume(n),g(e.exit("chunkFlow")),a=0,t.interrupt=void 0,s):(e.consume(n),m)}function g(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=o,o&&(o.next=e),o=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let o,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(o){s=t.events[l][1].end;break}o=!0}for(v(a),e=n;e<t.events.length;)t.events[e][1].end=Object.assign({},s),e++;dR(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function v(r){let o=n.length;for(;o-- >r;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function y(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},PR={tokenize:function(e,t,n){return TR(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const MR={tokenize:function(e,t,n){return function(t){return kR(t)?TR(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||SR(e)?t(e):n(e)}},partial:!0};function DR(e){const t={};let n,r,o,i,a,s,l,c=-1;for(;++c<e.length;){for(;c in t;)c=t[c];if(n=e[c],c&&"chunkFlow"===n[1].type&&"listItemPrefix"===e[c-1][1].type&&(s=n[1]._tokenizer.events,o=0,o<s.length&&"lineEndingBlank"===s[o][1].type&&(o+=2),o<s.length&&"content"===s[o][1].type))for(;++o<s.length&&"content"!==s[o][1].type;)"chunkText"===s[o][1].type&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,LR(e,c)),c=t[c],l=!0);else if(n[1]._container){for(o=c,r=void 0;o--&&(i=e[o],"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type);)"enter"===i[0]&&(r&&(e[r][1].type="lineEndingBlank"),i[1].type="lineEnding",r=o);r&&(n[1].end=Object.assign({},e[r][1].start),a=e.slice(r,c),a.unshift(n),dR(e,r,c-r+1,a))}}return!l}function LR(e,t){const n=e[t][1],r=e[t][2];let o=t-1;const i=[],a=n._tokenizer||r.parser[n.contentType](n.start),s=a.events,l=[],c={};let u,d,f=-1,p=n,h=0,m=0;const g=[m];for(;p;){for(;e[++o][1]!==p;);i.push(o),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(u),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)"exit"===s[f][0]&&"enter"===s[f-1][0]&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(m=f+1,g.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){const t=s.slice(g[f],g[f+1]),n=i.pop();l.unshift([n,n+t.length-1]),dR(e,n,2,t)}for(f=-1;++f<l.length;)c[h+l[f][0]]=h+l[f][1],h+=l[f][1]-l[f][0]-1;return c}const jR={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):SR(t)?e.check(NR,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return DR(e),e}},NR={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),TR(e,o,"linePrefix")};function o(o){if(null===o||SR(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}},partial:!0};const FR={tokenize:function(e){const t=this,n=e.attempt(MR,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,TR(e,e.attempt(this.parser.constructs.flow,r,e.attempt(jR,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const zR={resolveAll:WR()},BR=UR("string"),VR=UR("text");function UR(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return l(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),o(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o<t.length;){const e=t[o];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}},resolveAll:WR("text"===e?qR:void 0)}}function WR(e){return function(t,n){let r,o=-1;for(;++o<=t.length;)void 0===r?t[o]&&"data"===t[o][1].type&&(r=o,o++):t[o]&&"data"===t[o][1].type||(o!==r+2&&(t[r][1].end=t[o-1][1].end,t.splice(r+2,o-r-2),o=r+2),r=void 0);return e?e(t,n):t}}function qR(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],o=t.sliceStream(r);let i,a=o.length,s=-1,l=0;for(;a--;){const e=o[a];if("string"===typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)i=!0,l++;else if(-1!==e){a++;break}}if(l){const o={type:n===e.length||i||l<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-l,offset:r.end.offset-l,_index:r.start._index+a,_bufferIndex:a?s:r.start._bufferIndex+s},end:Object.assign({},r.end)};r.end=Object.assign({},o.start),r.start.offset===r.end.offset?Object.assign(r,o):(e.splice(n,0,["enter",o,t],["exit",o,t]),n+=2)}n++}return e}function HR(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}function YR(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const o={},i=[];let a=[],s=[],l=!0;const c={consume:function(e){SR(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,w()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++));u.previous=e,l=!0},enter:function(e,t){const n=t||{};return n.type=e,n.start=h(),u.events.push(["enter",n,u]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=h(),u.events.push(["exit",t,u]),t},attempt:y((function(e,t){b(e,t.from)})),check:y(v),interrupt:y(v,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:p,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let a;if("string"===typeof i)a=i;else switch(i){case-5:a="\r";break;case-4:a="\n";break;case-3:a="\r\n";break;case-2:a=t?" ":"\t";break;case-1:if(!t&&o)continue;a=" ";break;default:a=String.fromCharCode(i)}o=-2===i,r.push(a)}return r.join("")}(p(e),t)},now:h,defineSkip:function(e){o[e.line]=e.column,w()},write:function(e){if(a=fR(a,e),m(),null!==a[a.length-1])return[];return b(t,0),u.events=HR(i,u.events,u),u.events}};let d,f=t.tokenize.call(u,c);return t.resolveAll&&i.push(t),u;function p(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let a;if(n===o)a=[e[n].slice(r,i)];else{if(a=e.slice(n,o),r>-1){const e=a[0];"string"===typeof e?a[0]=e.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}(a,e)}function h(){const{line:e,column:t,offset:n,_index:o,_bufferIndex:i}=r;return{line:e,column:t,offset:n,_index:o,_bufferIndex:i}}function m(){let e;for(;r._index<a.length;){const t=a[r._index];if("string"===typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)g(t.charCodeAt(r._bufferIndex));else g(t)}}function g(e){l=void 0,d=e,f=f(e)}function v(e,t){t.restore()}function y(e,t){return function(n,o,i){let a,d,f,p;return Array.isArray(n)?m(n):"tokenize"in n?m([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return m([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function m(e){return a=e,d=0,0===e.length?i:g(e[d])}function g(e){return function(n){p=function(){const e=h(),t=u.previous,n=u.currentConstruct,o=u.events.length,i=Array.from(s);return{restore:a,from:o};function a(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=o,s=i,w()}}(),f=e,e.partial||(u.currentConstruct=e);if(e.name&&u.parser.constructs.disable.null.includes(e.name))return y(n);return e.tokenize.call(t?Object.assign(Object.create(u),t):u,c,v,y)(n)}}function v(t){return l=!0,e(f,p),o}function y(e){return l=!0,p.restore(),++d<a.length?g(a[d]):i}}}function b(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&dR(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function w(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}const GR={name:"thematicBreak",tokenize:function(e,t,n){let r,o=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),a(i)):o>=3&&(null===i||SR(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){return t===r?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),kR(t)?TR(e,i,"whitespace")(t):i(t))}}};const KR={name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:wR(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(GR,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return wR(t)&&++a<10?(e.consume(t),s):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(MR,r.interrupt?n:c,e.attempt($R,d,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function u(t){return kR(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(MR,(function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,TR(e,t,"listItemIndent",r.containerState.size+1)(n)}),(function(n){if(r.containerState.furtherBlankLines||!kR(n))return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n);return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(QR,t,o)(n)}));function o(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,TR(e,e.attempt(KR,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},$R={tokenize:function(e,t,n){const r=this;return TR(e,(function(e){const o=r.events[r.events.length-1];return!kR(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},QR={tokenize:function(e,t,n){const r=this;return TR(e,(function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};const XR={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return kR(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(kR(t))return TR(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(XR,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function JR(e,t,n,r,o,i,a,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d;if(null===t||32===t||41===t||bR(t))return n(t);return e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(t)};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||SR(t)?n(t):(e.consume(t),92===t?p:f)}function p(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function h(o){return u||null!==o&&41!==o&&!_R(o)?u<c&&40===o?(e.consume(o),u++,h):41===o?(e.consume(o),u--,h):null===o||32===o||40===o||bR(o)?n(o):(e.consume(o),92===o?m:h):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(o))}function m(t){return 40===t||41===t||92===t?(e.consume(t),h):h(t)}}function ZR(e,t,n,r,o,i){const a=this;let s,l=0;return function(t){return e.enter(r),e.enter(o),e.consume(t),e.exit(o),e.enter(i),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):SR(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||SR(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!kR(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function eP(e,t,n,r,o,i){let a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,s;return n(t)};function s(n){return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),l(n))}function l(t){return t===a?(e.exit(i),s(a)):null===t?n(t):SR(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),TR(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===a||null===t||SR(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===a||92===t?(e.consume(t),c):c(t)}}function tP(e,t){let n;return function r(o){if(SR(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(kR(o))return TR(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}function nP(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const rP={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return ZR.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=nP(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return _R(t)?tP(e,s)(t):s(t)}function s(t){return JR(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(oP,c,c)(t)}function c(t){return kR(t)?TR(e,u,"whitespace")(t):u(t)}function u(i){return null===i||SR(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},oP={tokenize:function(e,t,n){return function(t){return _R(t)?tP(e,r)(t):n(t)};function r(t){return eP(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return kR(t)?TR(e,i,"whitespace")(t):i(t)}function i(e){return null===e||SR(e)?t(e):n(e)}},partial:!0};const iP={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),TR(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?s(t):SR(t)?e.attempt(aP,i,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||SR(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},aP={tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):SR(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):TR(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):SR(e)?o(e):n(e)}},partial:!0};const sP={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||_R(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||SR(n)?(e.exit("atxHeading"),t(n)):kR(n)?TR(e,i,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function s(t){return null===t||35===t||_R(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)}},resolve:function(e,t){let n,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},dR(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}};const lP={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let o;return function(t){let a,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){a="paragraph"===r.events[s][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),kR(t)?TR(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||SR(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[o][1].end)):e[n][1]=a;return e.push(["exit",a,t]),e}};const cP=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],uP=["pre","script","style","textarea"],dP={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let o,i,a,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),i=!0,p):63===s?(e.consume(s),o=3,r.interrupt?t:D):gR(s)?(e.consume(s),a=String.fromCharCode(s),h):n(s)}function u(i){return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,s=0,f):gR(i)?(e.consume(i),o=4,r.interrupt?t:D):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:D):n(o)}function f(o){const i="CDATA[";return o===i.charCodeAt(s++)?(e.consume(o),6===s?r.interrupt?t:C:f):n(o)}function p(t){return gR(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(s){if(null===s||47===s||62===s||_R(s)){const l=47===s,c=a.toLowerCase();return l||i||!uP.includes(c)?cP.includes(a.toLowerCase())?(o=6,l?(e.consume(s),m):r.interrupt?t(s):C(s)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):i?g(s):v(s)):(o=1,r.interrupt?t(s):C(s))}return 45===s||vR(s)?(e.consume(s),a+=String.fromCharCode(s),h):n(s)}function m(o){return 62===o?(e.consume(o),r.interrupt?t:C):n(o)}function g(t){return kR(t)?(e.consume(t),g):_(t)}function v(t){return 47===t?(e.consume(t),_):58===t||95===t||gR(t)?(e.consume(t),y):kR(t)?(e.consume(t),v):_(t)}function y(t){return 45===t||46===t||58===t||95===t||vR(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),w):kR(t)?(e.consume(t),b):v(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,x):kR(t)?(e.consume(t),w):A(t)}function x(t){return t===l?(e.consume(t),l=null,S):null===t||SR(t)?n(t):(e.consume(t),x)}function A(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||_R(t)?b(t):(e.consume(t),A)}function S(e){return 47===e||62===e||kR(e)?v(e):n(e)}function _(t){return 62===t?(e.consume(t),k):n(t)}function k(t){return null===t||SR(t)?C(t):kR(t)?(e.consume(t),k):n(t)}function C(t){return 45===t&&2===o?(e.consume(t),I):60===t&&1===o?(e.consume(t),R):62===t&&4===o?(e.consume(t),L):63===t&&3===o?(e.consume(t),D):93===t&&5===o?(e.consume(t),M):!SR(t)||6!==o&&7!==o?null===t||SR(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),C):(e.exit("htmlFlowData"),e.check(fP,j,E)(t))}function E(t){return e.check(pP,O,j)(t)}function O(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),T}function T(t){return null===t||SR(t)?E(t):(e.enter("htmlFlowData"),C(t))}function I(t){return 45===t?(e.consume(t),D):C(t)}function R(t){return 47===t?(e.consume(t),a="",P):C(t)}function P(t){if(62===t){const n=a.toLowerCase();return uP.includes(n)?(e.consume(t),L):C(t)}return gR(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),P):C(t)}function M(t){return 93===t?(e.consume(t),D):C(t)}function D(t){return 62===t?(e.consume(t),L):45===t&&2===o?(e.consume(t),D):C(t)}function L(t){return null===t||SR(t)?(e.exit("htmlFlowData"),j(t)):(e.consume(t),L)}function j(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},fP={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(MR,t,n)}},partial:!0},pP={tokenize:function(e,t,n){const r=this;return function(t){if(SR(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};const hP={tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},mP={name:"codeFenced",tokenize:function(e,t,n){const r=this,o={tokenize:function(e,t,n){let o=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),kR(t)?TR(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===i?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===i?(o++,e.consume(t),u):o>=s?(e.exit("codeFencedFenceSequence"),kR(t)?TR(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||SR(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let i,a=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===i?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),kR(t)?TR(e,c,"whitespace")(t):c(t))}function c(n){return null===n||SR(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(hP,p,y)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||SR(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):kR(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),TR(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function d(t){return null===t||SR(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||SR(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),f)}function p(t){return e.attempt(o,y,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return a>0&&kR(t)?TR(e,g,"linePrefix",a+1)(t):g(t)}function g(t){return null===t||SR(t)?e.check(hP,p,y)(t):(e.enter("codeFlowValue"),v(t))}function v(t){return null===t||SR(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),v)}function y(n){return e.exit("codeFenced"),t(n)}},concrete:!0};const gP=document.createElement("i");function vP(e){const t="&"+e+";";gP.innerHTML=t;const n=gP.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}const yP={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),o=31,i=vR,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=xR,c):(e.enter("characterReferenceValue"),o=7,i=wR,c(t))}function c(s){if(59===s&&a){const o=e.exit("characterReferenceValue");return i!==vR||vP(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&a++<o?(e.consume(s),c):n(s)}}};const bP={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return AR(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const wP={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),TR(e,t,"linePrefix")}}};const xP={name:"labelEnd",tokenize:function(e,t,n){const r=this;let o,i,a=r.events.length;for(;a--;)if(("labelImage"===r.events[a][1].type||"labelLink"===r.events[a][1].type)&&!r.events[a][1]._balanced){o=r.events[a][1];break}return function(t){if(!o)return n(t);if(o._inactive)return u(t);return i=r.parser.defined.includes(nP(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s};function s(t){return 40===t?e.attempt(AP,c,i?c:u)(t):91===t?e.attempt(SP,c,i?l:u)(t):i?c(t):u(t)}function l(t){return e.attempt(_P,c,u)(t)}function c(e){return t(e)}function u(e){return o._balanced=!0,n(e)}},resolveTo:function(e,t){let n,r,o,i,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(o){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(o=a);const l={type:"labelLink"===e[r][1].type?"link":"image",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[r][1].start),end:Object.assign({},e[o][1].end)},u={type:"labelText",start:Object.assign({},e[r+s+2][1].end),end:Object.assign({},e[o-2][1].start)};return i=[["enter",l,t],["enter",c,t]],i=fR(i,e.slice(r+1,r+s+3)),i=fR(i,[["enter",u,t]]),i=fR(i,HR(t.parser.constructs.insideSpan.null,e.slice(r+s+4,o-3),t)),i=fR(i,[["exit",u,t],e[o-2],e[o-1],["exit",c,t]]),i=fR(i,e.slice(o+1)),i=fR(i,[["exit",l,t]]),dR(e,r,e.length,i),e},resolveAll:function(e){let t=-1;for(;++t<e.length;){const n=e[t][1];"labelImage"!==n.type&&"labelLink"!==n.type&&"labelEnd"!==n.type||(e.splice(t+1,"labelImage"===n.type?4:2),n.type="data",t++)}return e}},AP={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return _R(t)?tP(e,o)(t):o(t)}function o(t){return 41===t?c(t):JR(e,i,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return _R(t)?tP(e,s)(t):c(t)}function a(e){return n(e)}function s(t){return 34===t||39===t||40===t?eP(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return _R(t)?tP(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},SP={tokenize:function(e,t,n){const r=this;return function(t){return ZR.call(r,e,o,i,"reference","referenceMarker","referenceString")(t)};function o(e){return r.parser.defined.includes(nP(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},_P={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const kP={name:"labelStartImage",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),o};function o(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:xP.resolveAll};function CP(e){return null===e||_R(e)||ER(e)?1:CR(e)?2:void 0}const EP={name:"attention",tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=CP(r);let i;return function(t){return i=t,e.enter("attentionSequence"),a(t)};function a(s){if(s===i)return e.consume(s),a;const l=e.exit("attentionSequence"),c=CP(s),u=!c||2===c&&o||n.includes(s),d=!o||2===o&&c||n.includes(r);return l._open=Boolean(42===i?u:u&&(o||!d)),l._close=Boolean(42===i?d:d&&(c||!u)),t(s)}},resolveAll:function(e,t){let n,r,o,i,a,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d=Object.assign({},e[n][1].end),f=Object.assign({},e[u][1].start);OP(d,-s),OP(f,s),i={type:s>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:f},o={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[u][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},i.start),e[u][1].start=Object.assign({},a.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=fR(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=fR(l,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),l=fR(l,HR(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=fR(l,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=fR(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,dR(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e}};function OP(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const TP={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o};function o(t){return gR(t)?(e.consume(t),i):l(t)}function i(e){return 43===e||45===e||46===e||vR(e)?(r=1,a(e)):l(e)}function a(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||vR(t))&&r++<32?(e.consume(t),a):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||bR(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):yR(t)?(e.consume(t),l):n(t)}function c(e){return vR(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||vR(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const IP={name:"htmlText",tokenize:function(e,t,n){const r=this;let o,i,a;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),w):63===t?(e.consume(t),y):gR(t)?(e.consume(t),S):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,p):gR(t)?(e.consume(t),v):n(t)}function c(t){return 45===t?(e.consume(t),f):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):SR(t)?(a=u,P(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),f):u(t)}function f(e){return 62===e?R(e):45===e?d(e):u(e)}function p(t){const r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),6===i?h:p):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):SR(t)?(a=h,P(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?R(t):93===t?(e.consume(t),g):h(t)}function v(t){return null===t||62===t?R(t):SR(t)?(a=v,P(t)):(e.consume(t),v)}function y(t){return null===t?n(t):63===t?(e.consume(t),b):SR(t)?(a=y,P(t)):(e.consume(t),y)}function b(e){return 62===e?R(e):y(e)}function w(t){return gR(t)?(e.consume(t),x):n(t)}function x(t){return 45===t||vR(t)?(e.consume(t),x):A(t)}function A(t){return SR(t)?(a=A,P(t)):kR(t)?(e.consume(t),A):R(t)}function S(t){return 45===t||vR(t)?(e.consume(t),S):47===t||62===t||_R(t)?_(t):n(t)}function _(t){return 47===t?(e.consume(t),R):58===t||95===t||gR(t)?(e.consume(t),k):SR(t)?(a=_,P(t)):kR(t)?(e.consume(t),_):R(t)}function k(t){return 45===t||46===t||58===t||95===t||vR(t)?(e.consume(t),k):C(t)}function C(t){return 61===t?(e.consume(t),E):SR(t)?(a=C,P(t)):kR(t)?(e.consume(t),C):_(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),o=t,O):SR(t)?(a=E,P(t)):kR(t)?(e.consume(t),E):(e.consume(t),T)}function O(t){return t===o?(e.consume(t),o=void 0,I):null===t?n(t):SR(t)?(a=O,P(t)):(e.consume(t),O)}function T(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||_R(t)?_(t):(e.consume(t),T)}function I(e){return 47===e||62===e||_R(e)?_(e):n(e)}function R(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function P(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),M}function M(t){return kR(t)?TR(e,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):D(t)}function D(t){return e.enter("htmlTextData"),a(t)}}};const RP={name:"labelStartLink",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),o};function o(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}},resolveAll:xP.resolveAll};const PP={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return SR(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const MP={name:"codeText",tokenize:function(e,t,n){let r,o,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),a(t)};function a(t){return 96===t?(e.consume(t),i++,a):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(o=e.enter("codeTextSequence"),r=0,c(t)):SR(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||SR(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(o.type="codeTextData",l(n))}},resolve:function(e){let t,n,r=e.length-4,o=3;if(("lineEnding"===e[o][1].type||"space"===e[o][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type))for(t=o;++t<r;)if("codeTextData"===e[t][1].type){e[o][1].type="codeTextPadding",e[r][1].type="codeTextPadding",o+=2,r-=2;break}t=o-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type}};const DP={42:KR,43:KR,45:KR,48:KR,49:KR,50:KR,51:KR,52:KR,53:KR,54:KR,55:KR,56:KR,57:KR,62:XR},LP={91:rP},jP={[-2]:iP,[-1]:iP,32:iP},NP={35:sP,42:GR,45:[lP,GR],60:dP,61:lP,95:GR,96:mP,126:mP},FP={38:yP,92:bP},zP={[-5]:wP,[-4]:wP,[-3]:wP,33:kP,38:yP,42:EP,60:[TP,IP],91:RP,92:[PP,bP],93:xP,95:EP,96:MP},BP={null:[EP,zR]},VP={null:[42,95]},UP={null:[]};function WP(e){const n={defined:[],lazy:{},constructs:function(e){const t={};let n=-1;for(;++n<e.length;)hR(t,e[n]);return t}([t,...(e||{}).extensions||[]]),content:r(IR),document:r(RR),flow:r(FR),string:r(BR),text:r(VR)};return n;function r(e){return function(t){return YR(n,e,t)}}}const qP=/[\0\t\n\r]/g;function HP(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCharCode(n)}const YP=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function GP(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return HP(n.slice(t?2:1),t?16:10)}return vP(n)||e}const KP={}.hasOwnProperty,$P=function(e,t,n){return"string"!==typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ne),autolinkProtocol:E,autolinkEmail:E,atxHeading:s(J),blockQuote:s(G),characterEscape:E,characterReference:E,codeFenced:s(K),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(K,l),codeText:s($,l),codeTextData:E,data:E,codeFlowValue:E,definition:s(Q),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(X),hardBreakEscape:s(Z),hardBreakTrailing:s(Z),htmlFlow:s(ee,l),htmlFlowData:E,htmlText:s(ee,l),htmlTextData:E,image:s(te),label:l,link:s(ne),listItem:s(oe),listItemValue:h,listOrdered:s(re,p),listUnordered:s(re),paragraph:s(ie),reference:V,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(J),strong:s(ae),thematicBreak:s(le)},exit:{atxHeading:u(),atxHeadingSequence:S,autolink:u(),autolinkEmail:Y,autolinkProtocol:H,blockQuote:u(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:W,characterReferenceMarkerNumeric:W,characterReferenceValue:q,codeFenced:u(y),codeFencedFence:v,codeFencedFenceInfo:m,codeFencedFenceMeta:g,codeFlowValue:O,codeIndented:u(b),codeText:u(M),codeTextData:O,data:O,definition:u(),definitionDestinationString:A,definitionLabelString:w,definitionTitleString:x,emphasis:u(),hardBreakEscape:u(I),hardBreakTrailing:u(I),htmlFlow:u(R),htmlFlowData:O,htmlText:u(P),htmlTextData:O,image:u(L),label:N,labelText:j,lineEnding:T,link:u(D),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:U,resourceDestinationString:F,resourceTitleString:z,resource:B,setextHeading:u(C),setextHeadingLineSequence:k,setextHeadingText:_,strong:u(),thematicBreak:u()}};XP(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let n={type:"root",children:[]};const r={stack:[n],tokenStack:[],config:t,enter:c,exit:d,buffer:l,resume:f,setData:i,getData:a},s=[];let u=-1;for(;++u<e.length;)if("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type)if("enter"===e[u][0])s.push(u);else{u=o(e,s.pop(),u)}for(u=-1;++u<e.length;){const n=t[e[u][0]];KP.call(n,e[u][1].type)&&n[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},r),e[u][1])}if(r.tokenStack.length>0){const e=r.tokenStack[r.tokenStack.length-1];(e[1]||ZP).call(r,void 0,e[0])}for(n.position={start:QP(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:QP(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)n=t.transforms[u](n)||n;return n}function o(e,t,n){let r,o,i,a,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];if("listUnordered"===t[1].type||"listOrdered"===t[1].type||"blockQuote"===t[1].type?("enter"===t[0]?l++:l--,a=void 0):"lineEndingBlank"===t[1].type?"enter"===t[0]&&(!r||a||l||i||(i=s),a=void 0):"linePrefix"===t[1].type||"listItemValue"===t[1].type||"listItemMarker"===t[1].type||"listItemPrefix"===t[1].type||"listItemPrefixWhitespace"===t[1].type||(a=void 0),!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let a=s;for(o=void 0;a--;){const t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;o&&(e[o][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",o=a}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!o||i<o)&&(r._spread=!0),r.end=Object.assign({},o?e[o][1].start:t[1].end),e.splice(o||s,0,["exit",r,t[2]]),s++,n++}"listItemPrefix"===t[1].type&&(r={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0},e.splice(s,0,["enter",r,t[2]]),s++,n++,i=void 0,a=!0)}}return e[t][1]._spread=c,n}function i(e,t){n[e]=t}function a(e){return n[e]}function s(e,t){return n;function n(n){c.call(this,e(n),n),t&&t.call(this,n)}}function l(){this.stack.push({type:"fragment",children:[]})}function c(e,t,n){return this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n]),e.position={start:QP(t.start)},e}function u(e){return t;function t(t){e&&e.call(this,t),d.call(this,t)}}function d(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+MI({start:e.start,end:e.end})+"): it\u2019s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||ZP).call(this,e,r[0])}return n.position.end=QP(e.end),n}function f(){return function(e,t){const n=t||lR;return cR(e,"boolean"!==typeof n.includeImageAlt||n.includeImageAlt,"boolean"!==typeof n.includeHtml||n.includeHtml)}(this.stack.pop())}function p(){i("expectingFirstListItemValue",!0)}function h(e){if(a("expectingFirstListItemValue")){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),i("expectingFirstListItemValue")}}function m(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function g(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function v(){a("flowCodeInside")||(this.buffer(),i("flowCodeInside",!0))}function y(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),i("flowCodeInside")}function b(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function w(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=nP(this.sliceSerialize(e)).toLowerCase()}function x(){const e=this.resume();this.stack[this.stack.length-1].title=e}function A(){const e=this.resume();this.stack[this.stack.length-1].url=e}function S(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function _(){i("setextHeadingSlurpLineEnding",!0)}function k(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).charCodeAt(0)?1:2}function C(){i("setextHeadingSlurpLineEnding")}function E(e){const t=this.stack[this.stack.length-1];let n=t.children[t.children.length-1];n&&"text"===n.type||(n=se(),n.position={start:QP(e.start)},t.children.push(n)),this.stack.push(n)}function O(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=QP(e.end)}function T(e){const n=this.stack[this.stack.length-1];if(a("atHardBreak")){return n.children[n.children.length-1].position.end=QP(e.end),void i("atHardBreak")}!a("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(n.type)&&(E.call(this,e),O.call(this,e))}function I(){i("atHardBreak",!0)}function R(){const e=this.resume();this.stack[this.stack.length-1].value=e}function P(){const e=this.resume();this.stack[this.stack.length-1].value=e}function M(){const e=this.resume();this.stack[this.stack.length-1].value=e}function D(){const e=this.stack[this.stack.length-1];if(a("inReference")){const t=a("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;i("referenceType")}function L(){const e=this.stack[this.stack.length-1];if(a("inReference")){const t=a("referenceType")||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;i("referenceType")}function j(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(YP,GP)}(t),n.identifier=nP(t).toLowerCase()}function N(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(i("inReference",!0),"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function F(){const e=this.resume();this.stack[this.stack.length-1].url=e}function z(){const e=this.resume();this.stack[this.stack.length-1].title=e}function B(){i("inReference")}function V(){i("referenceType","collapsed")}function U(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=nP(this.sliceSerialize(e)).toLowerCase(),i("referenceType","full")}function W(e){i("characterReferenceType",e.type)}function q(e){const t=this.sliceSerialize(e),n=a("characterReferenceType");let r;if(n)r=HP(t,"characterReferenceMarkerNumeric"===n?10:16),i("characterReferenceType");else{r=vP(t)}const o=this.stack.pop();o.value+=r,o.position.end=QP(e.end)}function H(e){O.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function Y(e){O.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function G(){return{type:"blockquote",children:[]}}function K(){return{type:"code",lang:null,meta:null,value:""}}function $(){return{type:"inlineCode",value:""}}function Q(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function J(){return{type:"heading",depth:void 0,children:[]}}function Z(){return{type:"break"}}function ee(){return{type:"html",value:""}}function te(){return{type:"image",title:null,url:"",alt:null}}function ne(){return{type:"link",title:null,url:"",children:[]}}function re(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function oe(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ie(){return{type:"paragraph",children:[]}}function ae(){return{type:"strong",children:[]}}function se(){return{type:"text",value:""}}function le(){return{type:"thematicBreak"}}}(n)(function(e){for(;!DR(e););return e}(WP(n).document().write(function(){let e,t=1,n="",r=!0;return function(o,i,a){const s=[];let l,c,u,d,f;for(o=n+o.toString(i),u=0,n="",r&&(65279===o.charCodeAt(0)&&u++,r=void 0);u<o.length;){if(qP.lastIndex=u,l=qP.exec(o),d=l&&void 0!==l.index?l.index:o.length,f=o.charCodeAt(d),!l){n=o.slice(u);break}if(10===f&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(o.slice(u,d)),t+=d-u),f){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return a&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))};function QP(e){return{line:e.line,column:e.column,offset:e.offset}}function XP(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?XP(e,r):JP(e,r)}}function JP(e,t){let n;for(n in t)if(KP.call(t,n))if("canContainEols"===n){const r=t[n];r&&e[n].push(...r)}else if("transforms"===n){const r=t[n];r&&e[n].push(...r)}else if("enter"===n||"exit"===n){const r=t[n];r&&Object.assign(e[n],r)}}function ZP(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+MI({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+MI({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+MI({start:t.start,end:t.end})+") is still open")}function eM(e){Object.assign(this,{Parser:t=>{const n=this.data("settings");return $P(t,Object.assign({},n,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function tM(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let a="";if(37===i&&vR(e.charCodeAt(n+1))&&vR(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(a=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="\ufffd"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}const nM=function(e){if(void 0===e||null===e)return oM;if("string"===typeof e)return function(e){return rM(t);function t(t){return t&&t.type===e}}(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=nM(e[n]);return rM(r);function r(){let e=-1;for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];for(;++e<t.length;)if(t[e].call(this,...r))return!0;return!1}}(e):function(e){return rM(t);function t(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0}}(e);if("function"===typeof e)return rM(e);throw new Error("Expected function, string, or object as test")};function rM(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Boolean(t&&"object"===typeof t&&"type"in t&&Boolean(e.call(this,t,...r)))}}function oM(){return!0}const iM=!0,aM=!1,sM=function(e,t,n,r){"function"===typeof t&&"function"!==typeof n&&(r=n,n=t,t=null);const o=nM(t),i=r?-1:1;!function e(a,s,l){const c=a&&"object"===typeof a?a:{};if("string"===typeof c.type){const e="string"===typeof c.tagName?c.tagName:"string"===typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node ("+a.type+(e?"<"+e+">":"")+")"})}return u;function u(){let c,u,d,f=[];if((!t||o(a,s,l[l.length-1]||null))&&(f=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[iM,e];return[e]}(n(a,l)),f[0]===aM))return f;if(a.children&&"skip"!==f[0])for(u=(r?a.children.length:-1)+i,d=l.concat(a);u>-1&&u<a.children.length;){if(c=e(a.children[u],u,d)(),c[0]===aM)return c;u="number"===typeof c[1]?c[1]:u+i}return f}}(e,void 0,[])()};const lM=function(e,t,n,r){"function"===typeof t&&"function"!==typeof n&&(r=n,n=t,t=null),sM(e,t,(function(e,t){const r=t[t.length-1];return n(e,r?r.children.indexOf(e):null,r)}),r)},cM=dM("start"),uM=dM("end");function dM(e){return function(t){const n=t&&t.position&&t.position[e]||{};return{line:n.line||null,column:n.column||null,offset:n.offset>-1?n.offset:null}}}const fM={}.hasOwnProperty;function pM(e){return String(e||"").toUpperCase()}function hM(e,t){const n=String(t.identifier).toUpperCase(),r=tM(n.toLowerCase()),o=e.footnoteOrder.indexOf(n);let i;-1===o?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,i=e.footnoteOrder.length):(e.footnoteCounts[n]++,i=o+1);const a=e.footnoteCounts[n],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(i)}]};e.patch(t,s);const l={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,l),e.applyData(t,l)}function mM(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return{type:"text",value:"!["+t.alt+r};const o=e.all(t),i=o[0];i&&"text"===i.type?i.value="["+i.value:o.unshift({type:"text",value:"["});const a=o[o.length-1];return a&&"text"===a.type?a.value+=r:o.push({type:"text",value:r}),o}function gM(e){const t=e.spread;return void 0===t||null===t?e.children.length>1:t}function vM(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(yM(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(yM(t.slice(o),o>0,!1)),i.join("")}function yM(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;9===t||32===t;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const bM={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,o={};r&&(o.className=["language-"+r]);let i={type:"element",tagName:"code",properties:o,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:hM,footnote:function(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const o=String(r);return n[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},hM(e,{type:"footnoteReference",identifier:o,position:t.position})},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null},imageReference:function(e,t){const n=e.definition(t.identifier);if(!n)return mM(e,t);const r={src:tM(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(r.title=n.title);const o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:tM(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=e.definition(t.identifier);if(!n)return mM(e,t);const r={href:tM(n.url||"")};null!==n.title&&void 0!==n.title&&(r.title=n.title);const o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:tM(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=gM(n[r])}return t}(n):gM(t),i={},a=[];if("boolean"===typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(o||0!==s||"element"!==e.type||"p"!==e.tagName)&&a.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||o?a.push(e):a.push(...e.children)}const l=r[r.length-1];l&&(o||"element"!==l.type||"p"!==l.tagName)&&a.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:i,children:a};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let o=-1;for("number"===typeof t.start&&1!==t.start&&(n.start=t.start);++o<r.length;){const e=r[o];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),o.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=cM(t.children[1]),a=uM(t.children[t.children.length-1]);i.line&&a.line&&(r.position={start:i,end:a}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,a=i?i.length:t.children.length;let s=-1;const l=[];for(;++s<a;){const n=t.children[s],r={},a=i?i[s]:void 0;a&&(r.align=a);let c={type:"element",tagName:o,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(t,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:vM(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:wM,yaml:wM,definition:wM,footnoteDefinition:wM};function wM(){return null}const xM={}.hasOwnProperty;function AM(e,t){const n=t||{},r=n.allowDangerousHtml||!1,o={};return a.dangerous=r,a.clobberPrefix=void 0===n.clobberPrefix||null===n.clobberPrefix?"user-content-":n.clobberPrefix,a.footnoteLabel=n.footnoteLabel||"Footnotes",a.footnoteLabelTagName=n.footnoteLabelTagName||"h2",a.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},a.footnoteBackLabel=n.footnoteBackLabel||"Back to content",a.unknownHandler=n.unknownHandler,a.passThrough=n.passThrough,a.handlers=(0,g.A)((0,g.A)({},bM),n.handlers),a.definition=function(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return lM(e,"definition",(e=>{const n=pM(e.identifier);n&&!fM.call(t,n)&&(t[n]=e)})),function(e){const n=pM(e);return n&&fM.call(t,n)?t[n]:null}}(e),a.footnoteById=o,a.footnoteOrder=[],a.footnoteCounts={},a.patch=SM,a.applyData=_M,a.one=function(e,t){return kM(a,e,t)},a.all=function(e){return CM(a,e)},a.wrap=EM,a.augment=i,lM(e,"footnoteDefinition",(e=>{const t=String(e.identifier).toUpperCase();xM.call(o,t)||(o[t]=e)})),a;function i(e,t){if(e&&"data"in e&&e.data){const n=e.data;n.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties=(0,g.A)((0,g.A)({},t.properties),n.hProperties)),"children"in t&&t.children&&n.hChildren&&(t.children=n.hChildren)}if(e){const r="type"in e?e:{position:e};(n=r)&&n.position&&n.position.start&&n.position.start.line&&n.position.start.column&&n.position.end&&n.position.end.line&&n.position.end.column&&(t.position={start:cM(r),end:uM(r)})}var n;return t}function a(e,t,n,r){return Array.isArray(n)&&(r=n,n={}),i(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}function SM(e,t){var n;e.position&&(t.position={start:cM(n=e),end:uM(n)})}function _M(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,o=e.data.hProperties;"string"===typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:[]}),"element"===n.type&&o&&(n.properties=(0,g.A)((0,g.A)({},n.properties),o)),"children"in n&&n.children&&null!==r&&void 0!==r&&(n.children=r)}return n}function kM(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return xM.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?(0,g.A)((0,g.A)({},t),{},{children:CM(e,t)}):t:e.unknownHandler?e.unknownHandler(e,t,n):function(e,t){const n=t.data||{},r=!("value"in t)||xM.call(n,"hProperties")||xM.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:CM(e,t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}(e,t)}function CM(e,t){const n=[];if("children"in t){const r=t.children;let o=-1;for(;++o<r.length;){const i=kM(e,r[o],t);if(i){if(o&&"break"===r[o-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=i.value.replace(/^\s+/,"")),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=e.value.replace(/^\s+/,""))}Array.isArray(i)?n.push(...i):n.push(i)}}}return n}function EM(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function OM(e,t){const n=AM(e,t),r=n.one(e,null),o=function(e){const t=[];let n=-1;for(;++n<e.footnoteOrder.length;){const r=e.footnoteById[e.footnoteOrder[n]];if(!r)continue;const o=e.all(r),i=String(r.identifier).toUpperCase(),a=tM(i.toLowerCase());let s=0;const l=[];for(;++s<=e.footnoteCounts[i];){const t={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"\u21a9"}]};s>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),l.length>0&&l.push({type:"text",value:" "}),l.push(t)}const c=o[o.length-1];if(c&&"element"===c.type&&"p"===c.tagName){const e=c.children[c.children.length-1];e&&"text"===e.type?e.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...l)}else o.push(...l);const u={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:e.wrap(o,!0)};e.patch(r,u),t.push(u)}if(0!==t.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:(0,g.A)((0,g.A)({},JSON.parse(JSON.stringify(e.footnoteLabelProperties))),{},{id:"footnote-label"}),children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:"\n"}]}}(n);return o&&r.children.push({type:"text",value:"\n"},o),Array.isArray(r)?{type:"root",children:r}:r}const TM=function(e,t){return e&&"run"in e?function(e,t){return(n,r,o)=>{e.run(OM(n,t),r,(e=>{o(e)}))}}(e,t):function(e){return t=>OM(t,e)}(e||t)};var IM=__webpack_require__(5360);class RM{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function PM(e,t){const n={},r={};let o=-1;for(;++o<e.length;)Object.assign(n,e[o].property),Object.assign(r,e[o].normal);return new RM(n,r,t)}function MM(e){return e.toLowerCase()}RM.prototype.property={},RM.prototype.normal={},RM.prototype.space=null;class DM{constructor(e,t){this.property=e,this.attribute=t}}DM.prototype.space=null,DM.prototype.boolean=!1,DM.prototype.booleanish=!1,DM.prototype.overloadedBoolean=!1,DM.prototype.number=!1,DM.prototype.commaSeparated=!1,DM.prototype.spaceSeparated=!1,DM.prototype.commaOrSpaceSeparated=!1,DM.prototype.mustUseProperty=!1,DM.prototype.defined=!1;let LM=0;const jM=WM(),NM=WM(),FM=WM(),zM=WM(),BM=WM(),VM=WM(),UM=WM();function WM(){return 2**++LM}const qM=Object.keys(n);class HM extends DM{constructor(e,t,r,o){let i=-1;if(super(e,t),YM(this,"space",o),"number"===typeof r)for(;++i<qM.length;){const e=qM[i];YM(this,qM[i],(r&n[e])===n[e])}}}function YM(e,t,n){n&&(e[t]=n)}HM.prototype.defined=!0;const GM={}.hasOwnProperty;function KM(e){const t={},n={};let r;for(r in e.properties)if(GM.call(e.properties,r)){const o=e.properties[r],i=new HM(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[MM(r)]=r,n[MM(i.attribute)]=r}return new RM(t,n,e.space)}const $M=KM({space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),QM=KM({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function XM(e,t){return t in e?e[t]:t}function JM(e,t){return XM(e,t.toLowerCase())}const ZM=KM({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:JM,properties:{xmlns:null,xmlnsXLink:null}}),eD=KM({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:NM,ariaAutoComplete:null,ariaBusy:NM,ariaChecked:NM,ariaColCount:zM,ariaColIndex:zM,ariaColSpan:zM,ariaControls:BM,ariaCurrent:null,ariaDescribedBy:BM,ariaDetails:null,ariaDisabled:NM,ariaDropEffect:BM,ariaErrorMessage:null,ariaExpanded:NM,ariaFlowTo:BM,ariaGrabbed:NM,ariaHasPopup:null,ariaHidden:NM,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:BM,ariaLevel:zM,ariaLive:null,ariaModal:NM,ariaMultiLine:NM,ariaMultiSelectable:NM,ariaOrientation:null,ariaOwns:BM,ariaPlaceholder:null,ariaPosInSet:zM,ariaPressed:NM,ariaReadOnly:NM,ariaRelevant:null,ariaRequired:NM,ariaRoleDescription:BM,ariaRowCount:zM,ariaRowIndex:zM,ariaRowSpan:zM,ariaSelected:NM,ariaSetSize:zM,ariaSort:null,ariaValueMax:zM,ariaValueMin:zM,ariaValueNow:zM,ariaValueText:null,role:null}}),tD=KM({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:JM,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:VM,acceptCharset:BM,accessKey:BM,action:null,allow:null,allowFullScreen:jM,allowPaymentRequest:jM,allowUserMedia:jM,alt:null,as:null,async:jM,autoCapitalize:null,autoComplete:BM,autoFocus:jM,autoPlay:jM,blocking:BM,capture:null,charSet:null,checked:jM,cite:null,className:BM,cols:zM,colSpan:null,content:null,contentEditable:NM,controls:jM,controlsList:BM,coords:zM|VM,crossOrigin:null,data:null,dateTime:null,decoding:null,default:jM,defer:jM,dir:null,dirName:null,disabled:jM,download:FM,draggable:NM,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:jM,formTarget:null,headers:BM,height:zM,hidden:jM,high:zM,href:null,hrefLang:null,htmlFor:BM,httpEquiv:BM,id:null,imageSizes:null,imageSrcSet:null,inert:jM,inputMode:null,integrity:null,is:null,isMap:jM,itemId:null,itemProp:BM,itemRef:BM,itemScope:jM,itemType:BM,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:jM,low:zM,manifest:null,max:null,maxLength:zM,media:null,method:null,min:null,minLength:zM,multiple:jM,muted:jM,name:null,nonce:null,noModule:jM,noValidate:jM,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:jM,optimum:zM,pattern:null,ping:BM,placeholder:null,playsInline:jM,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:jM,referrerPolicy:null,rel:BM,required:jM,reversed:jM,rows:zM,rowSpan:zM,sandbox:BM,scope:null,scoped:jM,seamless:jM,selected:jM,shadowRootClonable:jM,shadowRootDelegatesFocus:jM,shadowRootMode:null,shape:null,size:zM,sizes:null,slot:null,span:zM,spellCheck:NM,src:null,srcDoc:null,srcLang:null,srcSet:null,start:zM,step:null,style:null,tabIndex:zM,target:null,title:null,translate:null,type:null,typeMustMatch:jM,useMap:null,value:NM,width:zM,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:BM,axis:null,background:null,bgColor:null,border:zM,borderColor:null,bottomMargin:zM,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:jM,declare:jM,event:null,face:null,frame:null,frameBorder:null,hSpace:zM,leftMargin:zM,link:null,longDesc:null,lowSrc:null,marginHeight:zM,marginWidth:zM,noResize:jM,noHref:jM,noShade:jM,noWrap:jM,object:null,profile:null,prompt:null,rev:null,rightMargin:zM,rules:null,scheme:null,scrolling:NM,standby:null,summary:null,text:null,topMargin:zM,valueType:null,version:null,vAlign:null,vLink:null,vSpace:zM,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:jM,disableRemotePlayback:jM,prefix:null,property:null,results:zM,security:null,unselectable:null}}),nD=KM({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:XM,properties:{about:UM,accentHeight:zM,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:zM,amplitude:zM,arabicForm:null,ascent:zM,attributeName:null,attributeType:null,azimuth:zM,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:zM,by:null,calcMode:null,capHeight:zM,className:BM,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:zM,diffuseConstant:zM,direction:null,display:null,dur:null,divisor:zM,dominantBaseline:null,download:jM,dx:null,dy:null,edgeMode:null,editable:null,elevation:zM,enableBackground:null,end:null,event:null,exponent:zM,externalResourcesRequired:null,fill:null,fillOpacity:zM,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:VM,g2:VM,glyphName:VM,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:zM,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:zM,horizOriginX:zM,horizOriginY:zM,id:null,ideographic:zM,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:zM,k:zM,k1:zM,k2:zM,k3:zM,k4:zM,kernelMatrix:UM,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:zM,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:zM,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:zM,overlineThickness:zM,paintOrder:null,panose1:null,path:null,pathLength:zM,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:BM,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:zM,pointsAtY:zM,pointsAtZ:zM,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:UM,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:UM,rev:UM,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:UM,requiredFeatures:UM,requiredFonts:UM,requiredFormats:UM,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:zM,specularExponent:zM,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:zM,strikethroughThickness:zM,string:null,stroke:null,strokeDashArray:UM,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:zM,strokeOpacity:zM,strokeWidth:null,style:null,surfaceScale:zM,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:UM,tabIndex:zM,tableValues:null,target:null,targetX:zM,targetY:zM,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:UM,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:zM,underlineThickness:zM,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:zM,values:null,vAlphabetic:zM,vMathematical:zM,vectorEffect:null,vHanging:zM,vIdeographic:zM,version:null,vertAdvY:zM,vertOriginX:zM,vertOriginY:zM,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:zM,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),rD=PM([QM,$M,ZM,eD,tD],"html"),oD=PM([QM,$M,ZM,eD,nD],"svg");function iD(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{lM(t,"element",((t,n,r)=>{const o=r;let i;if(e.allowedElements?i=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(i=e.disallowedElements.includes(t.tagName)),!i&&e.allowElement&&"number"===typeof n&&(i=!e.allowElement(t,n,o)),i&&"number"===typeof n)return e.unwrapDisallowed&&t.children?o.children.splice(n,1,...t.children):o.children.splice(n,1),n}))}}var aD=__webpack_require__(5791);function sD(e){const t=e&&"object"===typeof e&&"text"===e.type?e.value||"":e;return"string"===typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}const lD=/^data[-\w.:]+$/i,cD=/-[a-z]/g,uD=/[A-Z]/g;function dD(e){return"-"+e.toLowerCase()}function fD(e){return e.charAt(1).toUpperCase()}const pD={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};const hD=__webpack_require__(9800),mD=["http","https","mailto","tel"];function gD(e){const t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;const r=t.indexOf(":");if(-1===r)return t;let o=-1;for(;++o<mD.length;){const e=mD[o];if(r===e.length&&t.slice(0,e.length).toLowerCase()===e)return t}return o=t.indexOf("?"),-1!==o&&r>o?t:(o=t.indexOf("#"),-1!==o&&r>o?t:"javascript:void(0)")}const vD={}.hasOwnProperty,yD=new Set(["table","thead","tbody","tfoot","tr"]);function bD(e,t){const n=[];let r,o=-1;for(;++o<t.children.length;)r=t.children[o],"element"===r.type?n.push(wD(e,r,o,t)):"text"===r.type?"element"===t.type&&yD.has(t.tagName)&&sD(r)||n.push(r.value):"raw"!==r.type||e.options.skipHtml||n.push(r.value);return n}function wD(e,t,n,r){const o=e.options,i=void 0===o.transformLinkUri?gD:o.transformLinkUri,a=e.schema,s=t.tagName,l={};let c,u=a;if("html"===a.space&&"svg"===s&&(u=oD,e.schema=u),t.properties)for(c in t.properties)vD.call(t.properties,c)&&AD(l,c,t.properties[c],e);"ol"!==s&&"ul"!==s||e.listDepth++;const d=bD(e,t);"ol"!==s&&"ul"!==s||e.listDepth--,e.schema=a;const f=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},p=o.components&&vD.call(o.components,s)?o.components[s]:s,h="string"===typeof p||p===RI.Fragment;if(!aD.isValidElementType(p))throw new TypeError("Component for name `".concat(s,"` not defined or is not renderable"));if(l.key=n,"a"===s&&o.linkTarget&&(l.target="function"===typeof o.linkTarget?o.linkTarget(String(l.href||""),t.children,"string"===typeof l.title?l.title:null):o.linkTarget),"a"===s&&i&&(l.href=i(String(l.href||""),t.children,"string"===typeof l.title?l.title:null)),h||"code"!==s||"element"!==r.type||"pre"===r.tagName||(l.inline=!0),h||"h1"!==s&&"h2"!==s&&"h3"!==s&&"h4"!==s&&"h5"!==s&&"h6"!==s||(l.level=Number.parseInt(s.charAt(1),10)),"img"===s&&o.transformImageUri&&(l.src=o.transformImageUri(String(l.src||""),String(l.alt||""),"string"===typeof l.title?l.title:null)),!h&&"li"===s&&"element"===r.type){const e=function(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if("element"===n.type&&"input"===n.tagName)return n}return null}(t);l.checked=e&&e.properties?Boolean(e.properties.checked):null,l.index=xD(r,t),l.ordered="ol"===r.tagName}var m;return h||"ol"!==s&&"ul"!==s||(l.ordered="ol"===s,l.depth=e.listDepth),"td"!==s&&"th"!==s||(l.align&&(l.style||(l.style={}),l.style.textAlign=l.align,delete l.align),h||(l.isHeader="th"===s)),h||"tr"!==s||"element"!==r.type||(l.isHeader=Boolean("thead"===r.tagName)),o.sourcePos&&(l["data-sourcepos"]=[(m=f).start.line,":",m.start.column,"-",m.end.line,":",m.end.column].map(String).join("")),!h&&o.rawSourcePos&&(l.sourcePosition=t.position),!h&&o.includeElementIndex&&(l.index=xD(r,t),l.siblingCount=xD(r)),h||(l.node=t),d.length>0?RI.createElement(p,l,d):RI.createElement(p,l)}function xD(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)"element"===e.children[n].type&&r++;return r}function AD(e,t,n,r){const o=function(e,t){const n=MM(t);let r=t,o=DM;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&lD.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(cD,fD);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!cD.test(e)){let n=e.replace(uD,dD);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=HM}return new o(r,t)}(r.schema,t);let i=n;null!==i&&void 0!==i&&i===i&&(Array.isArray(i)&&(i=o.commaSeparated?function(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(i):i.join(" ").trim()),"style"===o.property&&"string"===typeof i&&(i=function(e){const t={};try{hD(e,n)}catch(r){}return t;function n(e,n){const r="-ms-"===e.slice(0,4)?"ms-".concat(e.slice(4)):e;t[r.replace(/-([a-z])/g,SD)]=n}}(i)),o.space&&o.property?e[vD.call(pD,o.property)?pD[o.property]:o.property]=i:o.attribute&&(e[o.attribute]=i))}function SD(e,t){return t.toUpperCase()}const _D={}.hasOwnProperty,kD={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function CD(e){for(const i in kD)if(_D.call(kD,i)&&_D.call(e,i)){const e=kD[i];console.warn("[react-markdown] Warning: please ".concat(e.to?"use `".concat(e.to,"` instead of"):"remove"," `").concat(i,"` (see <").concat("https://github.com/remarkjs/react-markdown/blob/main/changelog.md","#").concat(e.id,"> for more info)")),delete kD[i]}const t=ZI().use(eM).use(e.remarkPlugins||[]).use(TM,(0,g.A)((0,g.A)({},e.remarkRehypeOptions),{},{allowDangerousHtml:!0})).use(e.rehypePlugins||[]).use(iD,e),n=new qI;"string"===typeof e.children?n.value=e.children:void 0!==e.children&&null!==e.children&&console.warn("[react-markdown] Warning: please pass a string as `children` (not: `".concat(e.children,"`)"));const r=t.runSync(t.parse(n),n);if("root"!==r.type)throw new TypeError("Expected a `root` node");let o=RI.createElement(RI.Fragment,{},bD({options:e,schema:rD,listDepth:0},r));return e.className&&(o=RI.createElement("div",{className:e.className},o)),o}CD.propTypes={children:IM.string,className:IM.string,allowElement:IM.func,allowedElements:IM.arrayOf(IM.string),disallowedElements:IM.arrayOf(IM.string),unwrapDisallowed:IM.bool,remarkPlugins:IM.arrayOf(IM.oneOfType([IM.object,IM.func,IM.arrayOf(IM.oneOfType([IM.bool,IM.string,IM.object,IM.func,IM.arrayOf(IM.any)]))])),rehypePlugins:IM.arrayOf(IM.oneOfType([IM.object,IM.func,IM.arrayOf(IM.oneOfType([IM.bool,IM.string,IM.object,IM.func,IM.arrayOf(IM.any)]))])),sourcePos:IM.bool,rawSourcePos:IM.bool,skipHtml:IM.bool,includeElementIndex:IM.bool,transformLinkUri:IM.oneOfType([IM.func,IM.bool]),linkTarget:IM.oneOfType([IM.func,IM.string]),transformImageUri:IM.func,components:IM.object};const ED=()=>{const e={mb:1,fontSize:"0.8125rem"};return{codeBlockContainer:{position:"relative"},codeBlockActions:{position:"absolute",right:4,top:4,display:"flex",gap:1},codeBlockButton:{color:"primary.main","&:hover":{color:"primary.dark"}},copyButton:{color:"grey.500","&:hover":{color:"grey.700"}},copiedButton:{color:"success.main","&:hover":{color:"success.main"}},codeBlock:{m:0,p:1.5,bgcolor:"grey.900",color:"grey.100",borderRadius:1,fontFamily:"monospace",fontSize:"0.75rem",whiteSpace:"pre-wrap",wordBreak:"break-word"},thinkingContainer:{mb:1.5,p:1,bgcolor:"grey.50",borderRadius:1},thinkingLabel:{display:"block",mb:.5,fontSize:"0.75rem"},thinkingContent:{whiteSpace:"pre-wrap",fontSize:"0.75rem"},typographyBase:e,typographyHeading:(0,g.A)((0,g.A)({},e),{},{fontWeight:600}),listContainer:{mb:1,pl:2}}},OD=["className","children"],TD=e=>{let{children:t,onApplyCode:n}=e;const r=ED(),{copied:o,handleCopy:a,handleApply:s}=(e=>{let{onApplyCode:t}=e;const[n,r]=(0,i.useState)(!1);return{copied:n,handleCopy:async e=>{await navigator.clipboard.writeText(e),r(!0),setTimeout((()=>r(!1)),2e3)},handleApply:e=>{t&&t(e)}}})({onApplyCode:n});return(0,rs.FD)(F,{sx:r.codeBlockContainer,children:[(0,rs.FD)(F,{sx:r.codeBlockActions,children:[n?(0,rs.Y)(pm,{title:"Apply code",children:(0,rs.Y)(Lt,{size:"small",onClick:()=>s(t),sx:r.codeBlockButton,children:(0,rs.Y)(TI,{fontSize:"small"})})}):null,(0,rs.Y)(pm,{title:o?"Copied!":"Copy code",children:(0,rs.Y)(Lt,{size:"small",onClick:()=>a(t),sx:o?r.copiedButton:r.copyButton,children:o?(0,rs.Y)(II,{fontSize:"small"}):(0,rs.Y)(Xg,{fontSize:"small"})})})]}),(0,rs.Y)(F,{component:"pre",sx:r.codeBlock,children:(0,rs.Y)("code",{children:t})})]})},ID=e=>{let{content:t,thinking:n,onApplyCode:r}=e;const o=ED(),i={code:e=>{let{className:t,children:n}=e,o=(0,ns.A)(e,OD);const i=/language-(\w+)/.exec(t||"");return!t||!i?(0,rs.Y)("code",(0,g.A)((0,g.A)({className:t},o),{},{children:n})):(0,rs.Y)(TD,{onApplyCode:r,children:String(n).replace(/\n$/,"")})},p:e=>{let{children:t}=e;return(0,rs.Y)(tt,{variant:"body2",sx:o.typographyBase,children:t})},h1:e=>{let{children:t}=e;return(0,rs.Y)(tt,{variant:"body2",sx:o.typographyHeading,children:t})},h2:e=>{let{children:t}=e;return(0,rs.Y)(tt,{variant:"body2",sx:o.typographyHeading,children:t})},h3:e=>{let{children:t}=e;return(0,rs.Y)(tt,{variant:"body2",sx:o.typographyHeading,children:t})},ul:e=>{let{children:t}=e;return(0,rs.Y)(F,{component:"ul",sx:o.listContainer,children:t})},ol:e=>{let{children:t}=e;return(0,rs.Y)(F,{component:"ol",sx:o.listContainer,children:t})},li:e=>{let{children:t}=e;return(0,rs.Y)(tt,{variant:"body2",component:"li",sx:o.typographyBase,children:t})}};return(0,rs.FD)(F,{children:[n?(0,rs.FD)(F,{sx:o.thinkingContainer,children:[(0,rs.Y)(tt,{variant:"body2",color:"text.secondary",sx:o.thinkingLabel,children:"Thinking process:"}),(0,rs.Y)(tt,{variant:"body2",component:"div",sx:o.thinkingContent,children:n})]}):null,(0,rs.Y)(CD,{components:i,children:t})]})};const RD=new class{constructor(){this.handlers=[]}subscribe(e){return this.handlers.push(e),()=>{this.handlers=this.handlers.filter((t=>t!==e))}}publish(e){this.handlers.forEach((t=>t(e)))}},PD=e=>{let{messages:t,loading:n,error:r,messagesEndRef:o}=e;const a=Hs({width:0}),{handleApplyCode:s}={handleApplyCode:(0,i.useCallback)((e=>{RD.publish(e)}),[])};return(0,rs.FD)(rs.FK,{children:[t.map(((e,t)=>(0,rs.Y)(F,{sx:{width:"100%",mb:1},children:(0,rs.Y)(Ot,{elevation:0,sx:(0,g.A)((0,g.A)({},a.messageBubble("user"===e.type,"warning"===e.type)),{},{width:"100%"}),children:(0,rs.Y)(ID,{content:e.content,thinking:e.thinking,onApplyCode:s})})},t))),n&&(0,rs.Y)(F,{sx:{display:"flex",justifyContent:"flex-start"},children:(0,rs.Y)(Ot,{elevation:0,sx:a.loadingBubble,children:(0,rs.Y)(Ps,{size:20})})}),r&&(0,rs.Y)(F,{sx:a.errorMessage,children:(0,rs.Y)(tt,{color:"error",variant:"body2",children:r})}),(0,rs.Y)("div",{ref:o})]})};function MD(e){return(0,Ee.Ay)("MuiToggleButton",e)}const DD=(0,L.A)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]);const LD=i.createContext({});const jD=i.createContext(void 0);function ND(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.indexOf(e)>=0:e===t)}const FD=["value"],zD=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],BD=(0,U.Ay)(Pe,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["size".concat((0,V.A)(n.size))]]}})((e=>{let t,{theme:n,ownerState:r}=e,o="standard"===r.color?n.palette.text.primary:n.palette[r.color].main;return n.vars&&(o="standard"===r.color?n.vars.palette.text.primary:n.vars.palette[r.color].main,t="standard"===r.color?n.vars.palette.text.primaryChannel:n.vars.palette[r.color].mainChannel),(0,w.A)({},n.typography.button,{borderRadius:(n.vars||n).shape.borderRadius,padding:11,border:"1px solid ".concat((n.vars||n).palette.divider),color:(n.vars||n).palette.action.active},r.fullWidth&&{width:"100%"},{["&.".concat(DD.disabled)]:{color:(n.vars||n).palette.action.disabled,border:"1px solid ".concat((n.vars||n).palette.action.disabledBackground)},"&:hover":{textDecoration:"none",backgroundColor:n.vars?"rgba(".concat(n.vars.palette.text.primaryChannel," / ").concat(n.vars.palette.action.hoverOpacity,")"):XE(n.palette.text.primary,n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(DD.selected)]:{color:o,backgroundColor:n.vars?"rgba(".concat(t," / ").concat(n.vars.palette.action.selectedOpacity,")"):XE(o,n.palette.action.selectedOpacity),"&:hover":{backgroundColor:n.vars?"rgba(".concat(t," / calc(").concat(n.vars.palette.action.selectedOpacity," + ").concat(n.vars.palette.action.hoverOpacity,"))"):XE(o,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:n.vars?"rgba(".concat(t," / ").concat(n.vars.palette.action.selectedOpacity,")"):XE(o,n.palette.action.selectedOpacity)}}}},"small"===r.size&&{padding:7,fontSize:n.typography.pxToRem(13)},"large"===r.size&&{padding:15,fontSize:n.typography.pxToRem(15)})})),VD=i.forwardRef((function(e,t){const n=i.useContext(LD),{value:r}=n,o=(0,x.A)(n,FD),a=i.useContext(jD),s=(0,nt.A)((0,w.A)({},o,{selected:ND(e.value,r)}),e),l=(0,G.b)({props:s,name:"MuiToggleButton"}),{children:c,className:u,color:d="standard",disabled:f=!1,disableFocusRipple:p=!1,fullWidth:h=!1,onChange:m,onClick:g,selected:v,size:y="medium",value:b}=l,S=(0,x.A)(l,zD),_=(0,w.A)({},l,{color:d,disabled:f,disableFocusRipple:p,fullWidth:h,size:y}),k=(e=>{const{classes:t,fullWidth:n,selected:r,disabled:o,size:i,color:a}=e,s={root:["root",r&&"selected",o&&"disabled",n&&"fullWidth","size".concat((0,V.A)(i)),a]};return(0,z.A)(s,MD,t)})(_),C=a||"";return(0,R.jsx)(BD,(0,w.A)({className:(0,A.A)(o.className,k.root,u,C),disabled:f,focusRipple:!p,ref:t,onClick:e=>{g&&(g(e,b),e.defaultPrevented)||m&&m(e,b)},onChange:m,value:b,ownerState:_,"aria-pressed":v},S,{children:c}))}));function UD(e){return(0,Ee.Ay)("MuiToggleButtonGroup",e)}const WD=(0,L.A)("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),qD=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],HD=(0,U.Ay)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& .".concat(WD.grouped)]:t.grouped},{["& .".concat(WD.grouped)]:t["grouped".concat((0,V.A)(n.orientation))]},{["& .".concat(WD.firstButton)]:t.firstButton},{["& .".concat(WD.lastButton)]:t.lastButton},{["& .".concat(WD.middleButton)]:t.middleButton},t.root,"vertical"===n.orientation&&t.vertical,n.fullWidth&&t.fullWidth]}})((e=>{let{ownerState:t,theme:n}=e;return(0,w.A)({display:"inline-flex",borderRadius:(n.vars||n).shape.borderRadius},"vertical"===t.orientation&&{flexDirection:"column"},t.fullWidth&&{width:"100%"},{["& .".concat(WD.grouped)]:(0,w.A)({},"horizontal"===t.orientation?{["&.".concat(WD.selected," + .").concat(WD.grouped,".").concat(WD.selected)]:{borderLeft:0,marginLeft:0}}:{["&.".concat(WD.selected," + .").concat(WD.grouped,".").concat(WD.selected)]:{borderTop:0,marginTop:0}})},"horizontal"===t.orientation?{["& .".concat(WD.firstButton,",& .").concat(WD.middleButton)]:{borderTopRightRadius:0,borderBottomRightRadius:0},["& .".concat(WD.lastButton,",& .").concat(WD.middleButton)]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{["& .".concat(WD.firstButton,",& .").concat(WD.middleButton)]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},["& .".concat(WD.lastButton,",& .").concat(WD.middleButton)]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},"horizontal"===t.orientation?{["& .".concat(WD.lastButton,".").concat(DD.disabled,",& .").concat(WD.middleButton,".").concat(DD.disabled)]:{borderLeft:"1px solid transparent"}}:{["& .".concat(WD.lastButton,".").concat(DD.disabled,",& .").concat(WD.middleButton,".").concat(DD.disabled)]:{borderTop:"1px solid transparent"}})})),YD=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiToggleButtonGroup"}),{children:r,className:o,color:a="standard",disabled:s=!1,exclusive:l=!1,fullWidth:c=!1,onChange:u,orientation:d="horizontal",size:f="medium",value:p}=n,h=(0,x.A)(n,qD),m=(0,w.A)({},n,{disabled:s,fullWidth:c,orientation:d,size:f}),g=(e=>{const{classes:t,orientation:n,fullWidth:r,disabled:o}=e,i={root:["root","vertical"===n&&"vertical",r&&"fullWidth"],grouped:["grouped","grouped".concat((0,V.A)(n)),o&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,z.A)(i,UD,t)})(m),v=i.useCallback(((e,t)=>{if(!u)return;const n=p&&p.indexOf(t);let r;p&&n>=0?(r=p.slice(),r.splice(n,1)):r=p?p.concat(t):[t],u(e,r)}),[u,p]),y=i.useCallback(((e,t)=>{u&&u(e,p===t?null:t)}),[u,p]),b=i.useMemo((()=>({className:g.grouped,onChange:l?y:v,value:p,size:f,fullWidth:c,color:a,disabled:s})),[g.grouped,l,y,v,p,f,c,a,s]),S=function(e){return i.Children.toArray(e).filter((e=>i.isValidElement(e)))}(r),_=S.length,k=e=>{const t=0===e,n=e===_-1;return t&&n?"":t?g.firstButton:n?g.lastButton:g.middleButton};return(0,R.jsx)(HD,(0,w.A)({role:"group",className:(0,A.A)(g.root,o),ref:t,ownerState:m},h,{children:(0,R.jsx)(LD.Provider,{value:b,children:S.map(((e,t)=>(0,R.jsx)(jD.Provider,{value:k(t),children:e},t)))})}))})),GD=(0,Fe.A)((0,R.jsx)("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"}),"Image"),KD=(0,Fe.A)((0,R.jsx)("path",{d:"M3.5 9H5v6H3.5v-2.5h-2V15H0V9h1.5v2h2zm14 0H13c-.55 0-1 .45-1 1v5h1.5v-4.5h1V14H16v-3.51h1V15h1.5v-5c0-.55-.45-1-1-1M11 9H6v1.5h1.75V15h1.5v-4.5H11zm13 6v-1.5h-2.5V9H20v6z"}),"Html");var $D=__webpack_require__(5421);const QD=e=>{let{value:t,icon:n,label:r,isEnabled:o}=e;return(0,rs.FD)(VD,{value:t,children:[n,r,o?(0,rs.Y)(II,{fontSize:"small",sx:{ml:.5,color:"success.main",fontSize:"0.875rem"}}):(0,rs.Y)(by,{fontSize:"small",sx:{ml:.5,color:"text.secondary",fontSize:"0.875rem"}})]})},XD=e=>{let{input:t,onInputChange:n,onSubmit:r,onKeyDown:o,loading:i,error:a,inputRef:s,contextTypes:l,onContextTypeChange:c,messages:u,handleSubmitDirectly:d}=e;const f=Hs({width:0}),{pauseState:p,error:h}=AI(),m=Jz();return(0,rs.FD)(F,{component:"form",onSubmit:r,sx:f.inputContainer,children:[(0,rs.FD)(YD,{value:Object.entries(l).filter((e=>{let[t,n]=e;return n})).map((e=>{let[t]=e;return t})),onChange:c,size:"small",fullWidth:!0,color:"primary",children:[(0,rs.Y)(QD,{value:"code",icon:(0,rs.Y)(ey,{fontSize:"small",sx:{mr:.5}}),label:"Code",isEnabled:l.code}),(0,rs.Y)(QD,{value:"image",icon:(0,rs.Y)(GD,{fontSize:"small",sx:{mr:.5}}),label:"Image",isEnabled:l.image}),(0,rs.Y)(QD,{value:"html",icon:(0,rs.Y)(KD,{fontSize:"small",sx:{mr:.5}}),label:"Element",isEnabled:l.html})]}),(0,rs.FD)(F,{sx:(0,g.A)((0,g.A)({},f.inputWrapper),{},{display:"flex",alignItems:"center",gap:1}),children:[(0,rs.Y)(CS,{fullWidth:!0,multiline:!0,maxRows:4,value:t,onChange:e=>n(e.target.value),onKeyDown:o,placeholder:"Type your message... (Press Enter to send)",disabled:i,size:"small",error:!!a,inputRef:s,sx:f.textField}),h&&p.errorStepId===(null===m||void 0===m?void 0:m.id)&&(0,rs.Y)(pm,{title:"Fix current step error",children:(0,rs.Y)(Lt,{size:"small",onClick:()=>{h&&p.errorStepId===(null===m||void 0===m?void 0:m.id)&&d("Please help me fix the current step error")},disabled:i,color:"primary",children:(0,rs.Y)($D.A,{})})})]})]})};function JD(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=JD(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}const ZD=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=JD(e))&&(r&&(r+=" "),r+=t);return r};var eL=__webpack_require__(4502),tL=__webpack_require__.n(eL),nL="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};const rL="object"===("undefined"===typeof window?"undefined":nL(window))&&"object"===("undefined"===typeof document?"undefined":nL(document))&&9===document.nodeType;var oL=__webpack_require__(1369);function iL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(0,oL.A)(r.key),r)}}function aL(e,t,n){return t&&iL(e.prototype,t),n&&iL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var sL={}.constructor;function lL(e){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(lL);if(e.constructor!==sL)return e;var t={};for(var n in e)t[n]=lL(e[n]);return t}function cL(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,o=lL(t),i=r.plugins.onCreateRule(e,o,n);return i||(e[0],null)}var uL=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},dL=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=uL(e[n]," ");else t=uL(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function fL(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function pL(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function hL(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var o=n.indent,i=void 0===o?0:o,a=t.fallbacks;!1===n.format&&(i=-1/0);var s=fL(n),l=s.linebreak,c=s.space;if(e&&i++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var f in d){var p=d[f];null!=p&&(r&&(r+=l),r+=pL(f+":"+c+dL(p)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(r&&(r+=l),r+=pL(h+":"+c+dL(m)+";",i))}for(var g in t){var v=t[g];null!=v&&"fallbacks"!==g&&(r&&(r+=l),r+=pL(g+":"+c+dL(v)+";",i))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),pL(""+e+c+"{"+r,--i)+pL("}",i)):r}var mL=/([[\].#*$><+~=|^:(),"'`\s])/g,gL="undefined"!==typeof CSS&&CSS.escape,vL=function(e){return gL?gL(e):e.replace(mL,"\\$1")},yL=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,o=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var o=t;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!r)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),bL=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var i=r.selector,a=r.scoped,s=r.sheet,l=r.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(J(J(o)),s),o.selectorText="."+vL(o.id)),o}ee(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!==typeof n?e[t]=n:Array.isArray(n)&&(e[t]=dL(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,w.A)({},e,{allowEmpty:!0}):e;return hL(this.selectorText,this.style,n)},aL(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(yL),wL={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new bL(e,t,n)}},xL={indent:1,children:!0},AL=/@([\w-]+)/,SL=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(AL);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new YL((0,w.A)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=xL);var t=fL(e).linebreak;if(null==e.indent&&(e.indent=xL.indent),null==e.children&&(e.children=xL.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),_L=/@container|@media|@supports\s+/,kL={onCreateRule:function(e,t,n){return _L.test(e)?new SL(e,t,n):null}},CL={indent:1,children:!0},EL=/@keyframes\s+([\w-]+)/,OL=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(EL);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,i=n.sheet,a=n.generateId;for(var s in this.id=!1===o?this.name:vL(a(this,i)),this.rules=new YL((0,w.A)({},n,{parent:this})),t)this.rules.add(s,t[s],(0,w.A)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=CL);var t=fL(e).linebreak;if(null==e.indent&&(e.indent=CL.indent),null==e.children&&(e.children=CL.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),TL=/@keyframes\s+/,IL=/\$([\w-]+)/g,RL=function(e,t){return"string"===typeof e?e.replace(IL,(function(e,n){return n in t?t[n]:e})):e},PL=function(e,t,n){var r=e[t],o=RL(r,n);o!==r&&(e[t]=o)},ML={onCreateRule:function(e,t,n){return"string"===typeof e&&TL.test(e)?new OL(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&PL(e,"animation-name",n.keyframes),"animation"in e&&PL(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return RL(e,r.keyframes);default:return e}}},DL=function(e){function t(){return e.apply(this,arguments)||this}return ee(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,w.A)({},e,{allowEmpty:!0}):e;return hL(this.key,this.style,n)},t}(yL),LL={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new DL(e,t,n):null}},jL=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=fL(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=hL(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return hL(this.at,this.style,e)},e}(),NL=/@font-face/,FL={onCreateRule:function(e,t,n){return NL.test(e)?new jL(e,t,n):null}},zL=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return hL(this.key,this.style,e)},e}(),BL={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new zL(e,t,n):null}},VL=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),UL={"@charset":!0,"@import":!0,"@namespace":!0},WL=[wL,kL,ML,LL,FL,BL,{onCreateRule:function(e,t,n){return e in UL?new VL(e,t,n):null}}],qL={process:!0},HL={force:!0,process:!0},YL=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,i=r.sheet,a=r.jss,s=r.Renderer,l=r.generateId,c=r.scoped,u=(0,w.A)({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+vL(this.classes[d]));var f=cL(d,t,u);if(!f)return null;this.register(f);var p=void 0===u.index?this.index.length:u.index;return this.index.splice(p,0,f),f},t.replace=function(e,t,n){var r=this.get(e),o=this.index.indexOf(r);r&&this.remove(r);var i=n;return-1!==o&&(i=(0,w.A)({},n,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof bL?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof OL&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof bL?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof OL&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"===typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=qL);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(i.onUpdate(n,t,a,r),r.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,HL)}for(var u in s){var d=t.style[u],f=s[u];null==d&&d!==f&&t.prop(u,null,HL)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=fL(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+=o),t+=a)}return t},e}(),GL=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=(0,w.A)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new YL(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var o=this.rules.replace(e,t,n);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?r.renderable&&this.renderer.replaceRule(r.renderable,o):this.renderer.deleteRule(r)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var o=this.addRule(r,e[r],t);o&&n.push(o)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"===typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),KL=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var o=this.registry.onCreateRule[r](e,t,n);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,o=0;o<this.registry.onChangeValue.length;o++)r=this.registry.onChangeValue[o](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),$L=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,x.A)(t,["attached"]),o=fL(r).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=n&&s.attached!==n||(i&&(i+=o),i+=s.toString(r))}return i},aL(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),QL=new $L,XL="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window&&window.Math===Math?window:"undefined"!==typeof self&&self.Math===Math?self:Function("return this")(),JL="2f1acc6c3a606b082e5eef5e54414ffb";null==XL[JL]&&(XL[JL]=0);var ZL=XL[JL]++,ej=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var o="",i="";return r&&(r.options.classNamePrefix&&(i=r.options.classNamePrefix),null!=r.options.jss.id&&(o=String(r.options.jss.id))),e.minify?""+(i||"c")+ZL+o+t:i+n.key+"-"+ZL+(o?"-"+o:"")+"-"+t}},tj=function(e){var t;return function(){return t||(t=e()),t}},nj=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(n){return""}},rj=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=dL(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var o=r?r.indexOf("!important"):-1,i=o>-1?r.substr(0,o-1):r;e.style.setProperty(t,i,o>-1?"important":"")}}catch(a){return!1}return!0},oj=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(n){}},ij=function(e,t){return e.selectorText=t,e.selectorText===t},aj=tj((function(){return document.querySelector("head")}));function sj(e){var t=QL.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"===typeof r){var o=function(e){for(var t=aj(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var lj=tj((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),cj=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(r){return!1}return e.cssRules[n]},uj=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},dj=function(){function e(e){this.getPropertyValue=nj,this.setProperty=rj,this.removeProperty=oj,this.setSelector=ij,this.hasInsertedRules=!1,this.cssRules=[],e&&QL.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var i=lj();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=sj(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"===typeof n.nodeType){var o=n,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else aj().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,o=n;if("conditional"===e.type||"keyframes"===e.type){var i=uj(n,t);if(!1===(o=cj(n,r.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(r.rules,o),o}var a=e.toString();if(!a)return!1;var s=uj(n,t),l=cj(n,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof GL&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),fj=0,pj=function(){function e(e){this.id=fj++,this.version="10.10.0",this.plugins=new KL,this.options={id:{minify:!1},createGenerateId:ej,Renderer:rL?dj:null,plugins:[]},this.generateId=ej({minify:!1});for(var t=0;t<WL.length;t++)this.plugins.use(WL[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=(0,w.A)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!==typeof n&&(n=0===QL.index?0:QL.index+1);var r=new GL(e,(0,w.A)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),QL.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"===typeof e)return this.createRule(void 0,e,t);var r=(0,w.A)({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=cL(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),hj=function(e){return new pj(e)},mj="object"===typeof CSS&&null!=CSS&&"number"in CSS;function gj(e){var t=null;for(var n in e){var r=e[n],o=typeof r;if("function"===o)t||(t={}),t[n]=r;else if("object"===o&&null!==r&&!Array.isArray(r)){var i=gj(r);i&&(t||(t={}),t[n]=i)}}return t}hj();function vj(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var r=(0,w.A)({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}var yj={set:function(e,t,n,r){var o=e.get(t);o||(o=new Map,e.set(t,o)),o.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}};const bj=yj;const wj=i.createContext(null);function xj(){return i.useContext(wj)}const Aj="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";var Sj=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var _j=Date.now(),kj="fnValues"+_j,Cj="fnStyle"+ ++_j;const Ej=function(){return{onCreateRule:function(e,t,n){if("function"!==typeof t)return null;var r=cL(e,{},n);return r[Cj]=t,r},onProcessStyle:function(e,t){if(kj in t||Cj in t)return e;var n={};for(var r in e){var o=e[r];"function"===typeof o&&(delete e[r],n[r]=o)}return t[kj]=n,e},onUpdate:function(e,t,n,r){var o=t,i=o[Cj];i&&(o.style=i(e)||{});var a=o[kj];if(a)for(var s in a)o.prop(s,a[s](e),r)}}};var Oj="@global",Tj="@global ",Ij=function(){function e(e,t,n){for(var r in this.type="global",this.at=Oj,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new YL((0,w.A)({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Rj=function(){function e(e,t,n){this.type="global",this.at=Oj,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(8);this.rule=n.jss.createRule(r,t,(0,w.A)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Pj=/\s*,\s*/g;function Mj(e,t){for(var n=e.split(Pj),r="",o=0;o<n.length;o++)r+=t+" "+n[o].trim(),n[o+1]&&(r+=", ");return r}const Dj=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Oj)return new Ij(e,t,n);if("@"===e[0]&&e.substr(0,8)===Tj)return new Rj(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[Oj]:null;if(o){for(var i in o)t.addRule(i,o[i],(0,w.A)({},n,{selector:Mj(i,e.selector)}));delete r[Oj]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,7)===Oj){var i=Mj(o.substr(7),e.selector);t.addRule(i,r[o],(0,w.A)({},n,{selector:i})),delete r[o]}}(e,t))}}};var Lj=/\s*,\s*/g,jj=/&/g,Nj=/\$([\w-]+)/g;const Fj=function(){function e(e,t){return function(n,r){var o=e.getRule(r)||t&&t.getRule(r);return o?o.selector:r}}function t(e,t){for(var n=t.split(Lj),r=e.split(Lj),o="",i=0;i<n.length;i++)for(var a=n[i],s=0;s<r.length;s++){var l=r[s];o&&(o+=", "),o+=-1!==l.indexOf("&")?l.replace(jj,a):a+" "+l}return o}function n(e,t,n){if(n)return(0,w.A)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=(0,w.A)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,i){if("style"!==o.type)return r;var a,s,l=o,c=l.options.parent;for(var u in r){var d=-1!==u.indexOf("&"),f="@"===u[0];if(d||f){if(a=n(l,c,a),d){var p=t(u,l.selector);s||(s=e(c,i)),p=p.replace(Nj,s);var h=l.key+"-"+u;"replaceRule"in c?c.replaceRule(h,r[u],(0,w.A)({},a,{selector:p})):c.addRule(h,r[u],(0,w.A)({},a,{selector:p}))}else f&&c.addRule(u,{},a).addRule(l.key,r[u],{selector:l.selector});delete r[u]}}return r}}};var zj=/[A-Z]/g,Bj=/^ms-/,Vj={};function Uj(e){return"-"+e.toLowerCase()}const Wj=function(e){if(Vj.hasOwnProperty(e))return Vj[e];var t=e.replace(zj,Uj);return Vj[e]=Bj.test(t)?"-"+t:t};function qj(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:Wj(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(qj):t.fallbacks=qj(e.fallbacks)),t}const Hj=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=qj(e[t]);return e}return qj(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Wj(t);return t===r?e:(n.prop(r,e),null)}}};var Yj=mj&&CSS?CSS.px:"px",Gj=mj&&CSS?CSS.ms:"ms",Kj=mj&&CSS?CSS.percent:"%";function $j(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var o in e)r[o]=e[o],r[o.replace(t,n)]=e[o];return r}var Qj=$j({"animation-delay":Gj,"animation-duration":Gj,"background-position":Yj,"background-position-x":Yj,"background-position-y":Yj,"background-size":Yj,border:Yj,"border-bottom":Yj,"border-bottom-left-radius":Yj,"border-bottom-right-radius":Yj,"border-bottom-width":Yj,"border-left":Yj,"border-left-width":Yj,"border-radius":Yj,"border-right":Yj,"border-right-width":Yj,"border-top":Yj,"border-top-left-radius":Yj,"border-top-right-radius":Yj,"border-top-width":Yj,"border-width":Yj,"border-block":Yj,"border-block-end":Yj,"border-block-end-width":Yj,"border-block-start":Yj,"border-block-start-width":Yj,"border-block-width":Yj,"border-inline":Yj,"border-inline-end":Yj,"border-inline-end-width":Yj,"border-inline-start":Yj,"border-inline-start-width":Yj,"border-inline-width":Yj,"border-start-start-radius":Yj,"border-start-end-radius":Yj,"border-end-start-radius":Yj,"border-end-end-radius":Yj,margin:Yj,"margin-bottom":Yj,"margin-left":Yj,"margin-right":Yj,"margin-top":Yj,"margin-block":Yj,"margin-block-end":Yj,"margin-block-start":Yj,"margin-inline":Yj,"margin-inline-end":Yj,"margin-inline-start":Yj,padding:Yj,"padding-bottom":Yj,"padding-left":Yj,"padding-right":Yj,"padding-top":Yj,"padding-block":Yj,"padding-block-end":Yj,"padding-block-start":Yj,"padding-inline":Yj,"padding-inline-end":Yj,"padding-inline-start":Yj,"mask-position-x":Yj,"mask-position-y":Yj,"mask-size":Yj,height:Yj,width:Yj,"min-height":Yj,"max-height":Yj,"min-width":Yj,"max-width":Yj,bottom:Yj,left:Yj,top:Yj,right:Yj,inset:Yj,"inset-block":Yj,"inset-block-end":Yj,"inset-block-start":Yj,"inset-inline":Yj,"inset-inline-end":Yj,"inset-inline-start":Yj,"box-shadow":Yj,"text-shadow":Yj,"column-gap":Yj,"column-rule":Yj,"column-rule-width":Yj,"column-width":Yj,"font-size":Yj,"font-size-delta":Yj,"letter-spacing":Yj,"text-decoration-thickness":Yj,"text-indent":Yj,"text-stroke":Yj,"text-stroke-width":Yj,"word-spacing":Yj,motion:Yj,"motion-offset":Yj,outline:Yj,"outline-offset":Yj,"outline-width":Yj,perspective:Yj,"perspective-origin-x":Kj,"perspective-origin-y":Kj,"transform-origin":Kj,"transform-origin-x":Kj,"transform-origin-y":Kj,"transform-origin-z":Kj,"transition-delay":Gj,"transition-duration":Gj,"vertical-align":Yj,"flex-basis":Yj,"shape-margin":Yj,size:Yj,gap:Yj,grid:Yj,"grid-gap":Yj,"row-gap":Yj,"grid-row-gap":Yj,"grid-column-gap":Yj,"grid-template-rows":Yj,"grid-template-columns":Yj,"grid-auto-rows":Yj,"grid-auto-columns":Yj,"box-shadow-x":Yj,"box-shadow-y":Yj,"box-shadow-blur":Yj,"box-shadow-spread":Yj,"font-line-height":Yj,"text-shadow-x":Yj,"text-shadow-y":Yj,"text-shadow-blur":Yj});function Xj(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=Xj(e,t[r],n);else if("object"===typeof t)if("fallbacks"===e)for(var o in t)t[o]=Xj(o,t[o],n);else for(var i in t)t[i]=Xj(e+"-"+i,t[i],n);else if("number"===typeof t&&!1===isNaN(t)){var a=n[e]||Qj[e];return!a||0===t&&a===Yj?t.toString():"function"===typeof a?a(t).toString():""+t+a}return t}const Jj=function(e){void 0===e&&(e={});var t=$j(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=Xj(r,e[r],t);return e},onChangeValue:function(e,n){return Xj(n,e,t)}}};function Zj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function eN(e,t){if(e){if("string"==typeof e)return Zj(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zj(e,t):void 0}}function tN(e){return function(e){if(Array.isArray(e))return Zj(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||eN(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var nN="",rN="",oN="",iN="",aN=rL&&"ontouchstart"in document.documentElement;if(rL){var sN={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},lN=document.createElement("p").style;for(var cN in sN)if(cN+"Transform"in lN){nN=cN,rN=sN[cN];break}"Webkit"===nN&&"msHyphens"in lN&&(nN="ms",rN=sN.ms,iN="edge"),"Webkit"===nN&&"-apple-trailing-word"in lN&&(oN="apple")}var uN=nN,dN=rN,fN=oN,pN=iN,hN=aN;var mN={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===uN?"-webkit-"+e:dN+e)}},gN={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===uN?dN+"print-"+e:e)}},vN=/[-\s]+(.)?/g;function yN(e,t){return t?t.toUpperCase():""}function bN(e){return e.replace(vN,yN)}function wN(e){return bN("-"+e)}var xN,AN={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===uN){var n="mask-image";if(bN(n)in t)return e;if(uN+wN(n)in t)return dN+e}return e}},SN={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==fN||hN?e:dN+e)}},_N={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:dN+e)}},kN={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:dN+e)}},CN={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===uN||"ms"===uN&&"edge"!==pN?dN+e:e)}},EN={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===uN||"ms"===uN||"apple"===fN?dN+e:e)}},ON={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===uN?"WebkitColumn"+wN(e)in t&&dN+"column-"+e:"Moz"===uN&&("page"+wN(e)in t&&"page-"+e))}},TN={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===uN)return e;var n=e.replace("-inline","");return uN+wN(n)in t&&dN+n}},IN={supportedProperty:function(e,t){return bN(e)in t&&e}},RN={supportedProperty:function(e,t){var n=wN(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:uN+n in t?dN+e:"Webkit"!==uN&&"Webkit"+n in t&&"-webkit-"+e}},PN={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===uN?""+dN+e:e)}},MN={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===uN?dN+"scroll-chaining":e)}},DN={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},LN={supportedProperty:function(e,t){var n=DN[e];return!!n&&(uN+wN(n)in t&&dN+n)}},jN={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},NN=Object.keys(jN),FN=function(e){return dN+e},zN={supportedProperty:function(e,t,n){var r=n.multiple;if(NN.indexOf(e)>-1){var o=jN[e];if(!Array.isArray(o))return uN+wN(o)in t&&dN+o;if(!r)return!1;for(var i=0;i<o.length;i++)if(!(uN+wN(o[0])in t))return!1;return o.map(FN)}return!1}},BN=[mN,gN,AN,SN,_N,kN,CN,EN,ON,TN,IN,RN,PN,MN,LN,zN],VN=BN.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),UN=BN.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,tN(t.noPrefill)),e}),[]),WN={};if(rL){xN=document.createElement("p");var qN=window.getComputedStyle(document.documentElement,"");for(var HN in qN)isNaN(HN)||(WN[qN[HN]]=qN[HN]);UN.forEach((function(e){return delete WN[e]}))}function YN(e,t){if(void 0===t&&(t={}),!xN)return e;if(null!=WN[e])return WN[e];"transition"!==e&&"transform"!==e||(t[e]=e in xN.style);for(var n=0;n<VN.length&&(WN[e]=VN[n](e,xN.style,t),!WN[e]);n++);try{xN.style[e]=""}catch(r){return!1}return WN[e]}var GN,KN={},$N={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},QN=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function XN(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?YN(t):", "+YN(n);return r||(t||n)}function JN(e,t){var n=t;if(!GN||"content"===e)return t;if("string"!==typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=KN[r])return KN[r];try{GN.style[e]=n}catch(o){return KN[r]=!1,!1}if($N[e])n=n.replace(QN,XN);else if(""===GN.style[e]&&("-ms-flex"===(n=dN+n)&&(GN.style[e]="-ms-flexbox"),GN.style[e]=n,""===GN.style[e]))return KN[r]=!1,!1;return GN.style[e]="",KN[r]=n,KN[r]}rL&&(GN=document.createElement("p"));const ZN=function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var o=!1,i=YN(n);i&&i!==n&&(o=!0);var a=!1,s=JN(i,dL(r));s&&s!==r&&(a=!0),(o||a)&&(o&&delete t[n],t[i||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at="-"===(n=t.at)[1]||"ms"===uN?n:"@"+dN+"keyframes"+n.substr(10)}var n},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return JN(t,dL(e))||e}}};const eF=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},o=Object.keys(t).sort(e),i=0;i<o.length;i++)r[o[i]]=t[o[i]];return r}}};var tF=hj({plugins:[Ej(),Dj(),Fj(),Hj(),Jj(),"undefined"===typeof window?null:ZN(),eF()]}),nF={disableGeneration:!1,generateClassName:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,c=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Sj.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[Aj]&&""===a?"".concat(i,"-").concat(c()):i}return"".concat(s).concat(o).concat(c())}}(),jss:tF,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},rF=i.createContext(nF);var oF=-1e9;var iF=__webpack_require__(7545);function aF(e){return e&&"object"===(0,iF.A)(e)&&e.constructor===Object}function sF(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?(0,w.A)({},e):e;return aF(e)&&aF(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(aF(t[o])&&o in e?r[o]=sF(e[o],t[o],n):r[o]=t[o])})),r}const lF={};function cF(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=bj.get(o.sheetsManager,i,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},bj.set(o.sheetsManager,i,r,s));var l=(0,w.A)({},i.options,o,{theme:r,flip:"boolean"===typeof o.flip?o.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var c=o.sheetsRegistry;if(0===s.refs){var u;o.sheetsCache&&(u=bj.get(o.sheetsCache,i,r));var d=i.create(r,a);u||((u=o.jss.createStyleSheet(d,(0,w.A)({link:!1},l))).attach(),o.sheetsCache&&bj.set(o.sheetsCache,i,r,u)),c&&c.add(u),s.staticSheet=u,s.dynamicStyles=gj(d)}if(s.dynamicStyles){var f=o.jss.createStyleSheet(s.dynamicStyles,(0,w.A)({link:!0},l));f.update(t),f.attach(),n.dynamicSheet=f,n.classes=vj({baseClasses:s.staticSheet.classes,newClasses:f.classes}),c&&c.add(f)}else n.classes=s.staticSheet.classes;s.refs+=1}}function uF(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,r=t.classNamePrefix,o=t.Component,a=t.defaultTheme,s=void 0===a?lF:a,l=(0,ns.A)(t,["name","classNamePrefix","Component","defaultTheme"]),c=function(e){var t="function"===typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(s){throw s}if(!r||!n.overrides||!n.overrides[r])return o;var i=n.overrides[r],a=(0,w.A)({},o);return Object.keys(i).forEach((function(e){a[e]=sF(a[e],i[e])})),a},options:{}}}(e),u=n||r||"makeStyles";c.options={index:oF+=1,name:n,meta:u,classNamePrefix:u};return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=xj()||s,r=(0,w.A)({},i.useContext(rF),l),a=i.useRef(),u=i.useRef();!function(e,t){var n,r=i.useRef([]),o=i.useMemo((function(){return{}}),t);r.current!==o&&(r.current=o,n=e()),i.useEffect((function(){return function(){n&&n()}}),[o])}((function(){var o={name:n,state:{},stylesCreator:c,stylesOptions:r,theme:t};return cF(o,e),u.current=!1,a.current=o,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,o=e.stylesCreator;if(!r.disableGeneration){var i=bj.get(r.sheetsManager,o,n);i.refs-=1;var a=r.sheetsRegistry;0===i.refs&&(bj.delete(r.sheetsManager,o,n),r.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}(o)}}),[t,c]),i.useEffect((function(){u.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(a.current,e),u.current=!0}));var d=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var o=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,o=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,o=!0),o&&(r.cacheClasses.value=vj({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(a.current,e.classes,o);return d}}const dF=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var r=t.defaultTheme,o=t.withTheme,a=void 0!==o&&o,s=t.name,l=(0,ns.A)(t,["defaultTheme","withTheme","name"]);var c=s,u=uF(e,(0,w.A)({defaultTheme:r,Component:n,name:s||n.displayName,classNamePrefix:c},l)),d=i.forwardRef((function(e,t){e.classes;var o,l=e.innerRef,c=(0,ns.A)(e,["classes","innerRef"]),d=u((0,w.A)({},n.defaultProps,e)),f=c;return("string"===typeof s||a)&&(o=xj()||r,s&&(f=function(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r}({theme:o,name:s,props:c})),a&&!f.theme&&(f.theme=o)),i.createElement(n,(0,w.A)({ref:l||t,classes:d},f))}));return tL()(d,n),d}};var fF=["xs","sm","md","lg","xl"];var pF=__webpack_require__(4586);function hF(e,t,n){var r;return(0,w.A)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,w.A)({paddingLeft:t(2),paddingRight:t(2)},n,(0,pF.A)({},e.up("sm"),(0,w.A)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,pF.A)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,pF.A)(r,e.up("sm"),{minHeight:64}),r)},n)}function mF(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}const gF={black:"#000",white:"#fff"};const vF={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};const yF={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};const bF={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};const wF={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"};const xF={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"};const AF={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"};const SF={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"};function _F(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function kF(e){if(e.type)return e;if("#"===e.charAt(0))return kF(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(mF(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function CF(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function EF(e){var t="hsl"===(e=kF(e)).type?kF(function(e){var t=(e=kF(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),CF({type:s,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function OF(e,t){if(e=kF(e),t=_F(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return CF(e)}function TF(e,t){if(e=kF(e),t=_F(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return CF(e)}var IF={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:gF.white,default:vF[50]},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}},RF={text:{primary:gF.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:vF[800],default:"#303030"},action:{active:gF.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 PF(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=TF(e.main,o):"dark"===t&&(e.dark=OF(e.main,i)))}function MF(e){var t=e.primary,n=void 0===t?{light:yF[300],main:yF[500],dark:yF[700]}:t,r=e.secondary,o=void 0===r?{light:bF.A200,main:bF.A400,dark:bF.A700}:r,i=e.error,a=void 0===i?{light:wF[300],main:wF[500],dark:wF[700]}:i,s=e.warning,l=void 0===s?{light:xF[300],main:xF[500],dark:xF[700]}:s,c=e.info,u=void 0===c?{light:AF[300],main:AF[500],dark:AF[700]}:c,d=e.success,f=void 0===d?{light:SF[300],main:SF[500],dark:SF[700]}:d,p=e.type,h=void 0===p?"light":p,m=e.contrastThreshold,g=void 0===m?3:m,v=e.tonalOffset,y=void 0===v?.2:v,b=(0,ns.A)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){var t=function(e,t){var n=EF(e),r=EF(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,RF.text.primary)>=g?RF.text.primary:IF.text.primary;return t}var A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,w.A)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(mF(4,t));if("string"!==typeof e.main)throw new Error(mF(5,JSON.stringify(e.main)));return PF(e,"light",n,y),PF(e,"dark",r,y),e.contrastText||(e.contrastText=x(e.main)),e},S={dark:RF,light:IF};return sF((0,w.A)({common:gF,type:h,primary:A(n),secondary:A(o,"A400","A200","A700"),error:A(a),warning:A(l),info:A(u),success:A(f),grey:vF,contrastThreshold:g,getContrastText:x,augmentColor:A,tonalOffset:y},S[h]),b)}function DF(e){return Math.round(1e5*e)/1e5}function LF(e){return DF(e)}var jF={textTransform:"uppercase"},NF='"Roboto", "Helvetica", "Arial", sans-serif';function FF(e,t){var n="function"===typeof t?t(e):t,r=n.fontFamily,o=void 0===r?NF:r,i=n.fontSize,a=void 0===i?14:i,s=n.fontWeightLight,l=void 0===s?300:s,c=n.fontWeightRegular,u=void 0===c?400:c,d=n.fontWeightMedium,f=void 0===d?500:d,p=n.fontWeightBold,h=void 0===p?700:p,m=n.htmlFontSize,g=void 0===m?16:m,v=n.allVariants,y=n.pxToRem,b=(0,ns.A)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var x=a/14,A=y||function(e){return"".concat(e/g*x,"rem")},S=function(e,t,n,r,i){return(0,w.A)({fontFamily:o,fontWeight:e,fontSize:A(t),lineHeight:n},o===NF?{letterSpacing:"".concat(DF(r/t),"em")}:{},i,v)},_={h1:S(l,96,1.167,-1.5),h2:S(l,60,1.2,-.5),h3:S(u,48,1.167,0),h4:S(u,34,1.235,.25),h5:S(u,24,1.334,0),h6:S(f,20,1.6,.15),subtitle1:S(u,16,1.75,.15),subtitle2:S(f,14,1.57,.1),body1:S(u,16,1.5,.15),body2:S(u,14,1.43,.15),button:S(f,14,1.75,.4,jF),caption:S(u,12,1.66,.4),overline:S(u,12,2.66,1,jF)};return sF((0,w.A)({htmlFontSize:g,pxToRem:A,round:LF,fontFamily:o,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:f,fontWeightBold:h},_),b,{clone:!1})}function zF(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}const BF=["none",zF(0,2,1,-1,0,1,1,0,0,1,3,0),zF(0,3,1,-2,0,2,2,0,0,1,5,0),zF(0,3,3,-2,0,3,4,0,0,1,8,0),zF(0,2,4,-1,0,4,5,0,0,1,10,0),zF(0,3,5,-1,0,5,8,0,0,1,14,0),zF(0,3,5,-1,0,6,10,0,0,1,18,0),zF(0,4,5,-2,0,7,10,1,0,2,16,1),zF(0,5,5,-3,0,8,10,1,0,3,14,2),zF(0,5,6,-3,0,9,12,1,0,3,16,2),zF(0,6,6,-3,0,10,14,1,0,4,18,3),zF(0,6,7,-4,0,11,15,1,0,4,20,3),zF(0,7,8,-4,0,12,17,2,0,5,22,4),zF(0,7,8,-4,0,13,19,2,0,5,24,4),zF(0,7,9,-4,0,14,21,2,0,5,26,4),zF(0,8,9,-5,0,15,22,2,0,6,28,5),zF(0,8,10,-5,0,16,24,2,0,6,30,5),zF(0,8,11,-5,0,17,26,2,0,6,32,5),zF(0,9,11,-5,0,18,28,2,0,7,34,6),zF(0,9,12,-6,0,19,29,2,0,7,36,6),zF(0,10,13,-6,0,20,31,3,0,8,38,7),zF(0,10,13,-6,0,21,33,3,0,8,40,7),zF(0,10,14,-6,0,22,35,3,0,8,42,7),zF(0,11,14,-7,0,23,36,3,0,9,44,8),zF(0,11,15,-7,0,24,38,3,0,9,46,8)];const VF={borderRadius:4};function UF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||eN(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var WF={xs:0,sm:600,md:960,lg:1280,xl:1920},qF={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(WF[e],"px)")}};const HF=function(e,t){return t?sF(e,t,{clone:!1}):e};var YF={m:"margin",p:"padding"},GF={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},KF={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},$F=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!KF[e])return[e];e=KF[e]}var t=UF(e.split(""),2),n=t[0],r=t[1],o=YF[n],i=GF[r]||"";return Array.isArray(i)?i.map((function(e){return o+e})):[o+i]})),QF=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function XF(e){var t=e.spacing||8;return"number"===typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"===typeof t?t:function(){}}function JF(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function ZF(e){var t=XF(e.theme);return Object.keys(e).map((function(n){if(-1===QF.indexOf(n))return null;var r=JF($F(n),t),o=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||qF;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===(0,iF.A)(t)){var o=e.theme.breakpoints||qF;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}(e,o,r)})).reduce(HF,{})}ZF.propTypes={},ZF.filterProps=QF;var ez={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)"},tz={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function nz(e){return"".concat(Math.round(e),"ms")}const rz={easing:ez,duration:tz,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?tz.standard:n,o=t.easing,i=void 0===o?ez.easeInOut:o,a=t.delay,s=void 0===a?0:a;(0,ns.A)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof r?r:nz(r)," ").concat(i," ").concat("string"===typeof s?s:nz(s))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};const oz={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function iz(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,i=e.palette,a=void 0===i?{}:i,s=e.spacing,l=e.typography,c=void 0===l?{}:l,u=(0,ns.A)(e,["breakpoints","mixins","palette","spacing","typography"]),d=MF(a),f=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,o=void 0===r?"px":r,i=e.step,a=void 0===i?5:i,s=(0,ns.A)(e,["values","unit","step"]);function l(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function c(e,t){var r=fF.indexOf(t);return r===fF.length-1?l(e):"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[fF[r+1]]?n[fF[r+1]]:t)-a/100).concat(o,")")}return(0,w.A)({keys:fF,values:n,up:l,down:function(e){var t=fF.indexOf(e)+1,r=n[fF[t]];return t===fF.length?l("xs"):"@media (max-width:".concat(("number"===typeof r&&t>0?r:e)-a/100).concat(o,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},s)}(n),p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=XF({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"===typeof e)return e;var n=t(e);return"number"===typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}(s),h=sF({breakpoints:f,direction:"ltr",mixins:hF(f,p,o),overrides:{},palette:d,props:{},shadows:BF,typography:FF(d,c),spacing:p,shape:VF,transitions:rz,zIndex:oz},u),m=arguments.length,g=new Array(m>1?m-1:0),v=1;v<m;v++)g[v-1]=arguments[v];return h=g.reduce((function(e,t){return sF(e,t)}),h)}const az=iz();const sz=function(e,t){return dF(e,(0,w.A)({defaultTheme:az},t))};function lz(e){if("string"!==typeof e)throw new Error(mF(7));return e.charAt(0).toUpperCase()+e.slice(1)}var cz=i.forwardRef((function(e,t){var n=e.children,r=e.classes,o=e.className,a=e.color,s=void 0===a?"inherit":a,l=e.component,c=void 0===l?"svg":l,u=e.fontSize,d=void 0===u?"medium":u,f=e.htmlColor,p=e.titleAccess,h=e.viewBox,m=void 0===h?"0 0 24 24":h,g=(0,ns.A)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return i.createElement(c,(0,w.A)({className:ZD(r.root,o,"inherit"!==s&&r["color".concat(lz(s))],"default"!==d&&"medium"!==d&&r["fontSize".concat(lz(d))]),focusable:"false",viewBox:m,color:f,"aria-hidden":!p||void 0,role:p?"img":void 0,ref:t},g),n,p?i.createElement("title",null,p):null)}));cz.muiName="SvgIcon";const uz=sz((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(cz);const dz=function(e){var t=function(t,n){return i.createElement(uz,(0,w.A)({ref:n},t),e)};return t.muiName=uz.muiName,i.memo(i.forwardRef(t))}(i.createElement("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z"})),fz=()=>{const{isOpen:e,input:t,width:n,isResizing:r,selectedModel:o,anchorEl:i,contextTypes:a,selectedElement:s,messagesEndRef:l,messages:c,loading:u,error:d,handleClose:f,setInput:p,setSelectedModel:h,handleSubmit:m,handleKeyDown:g,handleMenuOpen:v,handleMenuClose:y,handleClearChat:b,handleContextTypeChange:w,inputRef:x,handleToggle:A,isThinking:S,setIsThinking:_,handleMouseDown:k,setSelectedElement:C,handleSubmitDirectly:E}=_I(),O=Hs({width:n});return(0,rs.FD)(rs.FK,{children:[(0,rs.Y)(qs,{color:"primary",size:"medium",onClick:A,sx:{position:"absolute",bottom:20,right:20,zIndex:1e3,display:e?"none":"flex"},children:(0,rs.Y)(dz,{})}),e?(0,rs.FD)(F,{sx:O.container,children:[(0,rs.FD)(Ot,{sx:O.paper,children:[(0,rs.Y)(OI,{onClose:f,onMenuOpen:v,onMenuClose:y,onClearChat:b,anchorEl:i,selectedModel:o,onModelChange:h,contextTypes:a,onContextTypeChange:w,isThinking:S,onThinkingChange:_,selectedElement:s,onClearSelectedElement:()=>C(null)}),(0,rs.Y)(F,{sx:O.messagesContainer,children:(0,rs.Y)(PD,{messages:c,loading:u,error:d,messagesEndRef:l})}),(0,rs.Y)(XD,{input:t,onInputChange:p,onSubmit:m,onKeyDown:g,loading:u,error:d,inputRef:x,contextTypes:a,onContextTypeChange:w,handleSubmitDirectly:E,messages:c})]}),r&&(0,rs.Y)(F,{sx:O.resizeOverlay}),(0,rs.Y)(F,{sx:O.resizeHandle,onMouseDown:k})]}):null]})};function pz(e){let{controlBarHeight:t}=e;const{tmRef:n,liveRef:r,isInitFinished:o,activeFrame:a,handleChange:s,setIsAdaptiveScalingActive:l,isAdaptiveScalingActive:c,activeStep:u,isSeekbarActive:d,resyncLiveFrame:f,showBlank:p}=Ci(),h=(e=>{let{activeFrame:t,controlBarHeight:n,isAdaptiveScalingActive:r}=e;return(0,i.useMemo)((()=>{const e=(0,le.AH)({height:n,minHeight:n},"",""),o=[e,hs],i=t===ni.Live?{sx:ps}:{},a=(0,le.AH)({fontSize:"inherit",animation:"".concat(ms," 1.5s infinite ease-in-out")},"",""),s=[fs];return r&&s.push(ds),{tab:e,liveTab:o,tabsIndicatorProps:i,liveIcon:a,iframe:s}}),[n,t,r])})({activeFrame:a,controlBarHeight:t,isAdaptiveScalingActive:c});return(0,rs.FD)(F,{sx:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column"},children:[(0,rs.Y)(F,{sx:{borderBottom:1,borderColor:"divider",height:t,zIndex:1001},children:(0,rs.FD)(ha,{value:a,onChange:s,"aria-label":"VTG view tabs",TabIndicatorProps:h.tabsIndicatorProps,sx:{height:t},children:[(0,rs.Y)(ba,(0,g.A)({css:h.liveTab,icon:(0,rs.Y)(hz,{styles:h.liveIcon,activeTab:a,resyncLiveFrame:f}),iconPosition:"start",label:"Live",value:ni.Live},as(0))),(0,rs.Y)(ba,(0,g.A)((0,g.A)({label:"Step Snapshot",value:ni.TimeMachine},as(1)),{},{css:h.tab})),(0,rs.Y)(mz,{setIsAdaptiveScalingActive:l,isAdaptiveScalingActive:c})]})}),(0,rs.FD)(F,{sx:{flex:1,display:"flex",position:"relative"},children:[(0,rs.FD)(F,{sx:{flex:1,height:"100%",transition:"width 0.3s ease",display:"flex",flexDirection:"column"},children:[(0,rs.Y)(Ns,{loading:!o}),(0,rs.Y)(is,{value:a,index:ni.Live,withPadding:c,fullHeight:!0,children:(0,rs.Y)("iframe",{ref:r,className:"live-iframe",name:"live-iframe",title:"Live",css:h.iframe,"data-testid":Ng.LiveFrame})}),(0,rs.FD)(is,{value:a,index:ni.TimeMachine,withPadding:c,fullHeight:!0,children:[(0,rs.FD)(F,{sx:{position:"relative",width:"100%",height:"100%"},children:[(0,rs.Y)("iframe",{ref:n,className:"time-machine-iframe",name:"time-machine-iframe",title:"Time Machine",css:h.iframe,"data-testid":Ng.TimeMachineFrame}),p?(0,rs.FD)(F,{sx:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",backgroundColor:"#fff",gap:2},children:[(0,rs.Y)(ss,{sx:{fontSize:48,color:"text.secondary"}}),(0,rs.Y)(tt,{variant:"h6",color:"text.secondary",children:"Application state hasn't been captured yet for this step"})]}):null]}),u?(0,rs.Y)(KB,{step:u,isSeekbarActive:d}):null]})]}),(0,rs.Y)(fz,{})]})]})}function hz(e){let{styles:t,activeTab:n,resyncLiveFrame:r}=e;const[o,a]=(0,i.useState)(!1);return(0,rs.Y)(F,{display:"flex",sx:{mr:1},onMouseLeave:()=>a(!1),onMouseEnter:()=>a(!0),children:o&&n===ni.Live?(0,rs.Y)(ls,{fontSize:"inherit",css:t,onClick:r}):(0,rs.Y)(cs,{fontSize:"inherit",css:t})})}function mz(e){let{setIsAdaptiveScalingActive:t,isAdaptiveScalingActive:n}=e;return(0,rs.Y)(F,{sx:{display:"flex",alignItems:"center",marginLeft:"auto"},children:(0,rs.Y)(Ga,{control:(0,rs.Y)(ts,{checked:n,onChange:(e,n)=>t(n)}),label:(0,rs.Y)(tt,{variant:"caption",children:"Fit to screen"})})})}var gz=(e=>(e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back",e.Destroy="destroy",e))(gz||{});class vz{constructor(e){this.className=e,this.getTimeMachineFrame=()=>document.querySelector(".".concat(this.className)),this.getTimeMachineReplayerIframeContentWindow=()=>{var e,t;return null===(e=this.getTimeMachineFrame())||void 0===e||null===(t=e.contentDocument.querySelector("iframe"))||void 0===t?void 0:t.contentWindow},this.getTimeMachineFrameChecksumInterface=()=>{var e,t;return null===(e=this.getTimeMachineFrame())||void 0===e||null===(t=e.contentWindow)||void 0===t?void 0:t.checksum},this.getTimeMachineInjectedScript=()=>{try{return this.getTimeMachineFrame().contentWindow}catch(e){console.error("Failed getting time-machine injected script",e)}},this.goLiveTimeMachine=()=>{this.wrapWithLoadingState({eventCastId:"goLive",events:[gz.Start],actionCallback:()=>{var e;null===(e=this.getTimeMachineFrameChecksumInterface())||void 0===e||e.timeMachine.goLive()},doneState:ti.Live})},this.getFirstEventTimestamp=()=>{var e;return null===(e=this.getTimeMachineFrameChecksumInterface())||void 0===e?void 0:e.timeMachine.getFirstEventTimestamp()},this.isConnected=()=>{var e;return null===(e=this.getTimeMachineFrameChecksumInterface())||void 0===e?void 0:e.timeMachine.isConnected()},this.clearHighlights=()=>{var e;null===(e=this.getTimeMachineFrameChecksumInterface())||void 0===e||e.testGenerator.clearHighlights()},this.goBackTimeMachineByTimestamp=e=>{this.wrapWithLoadingState({eventCastId:"goBackPause",events:[gz.Pause],actionCallback:()=>{var t;null===(t=this.getTimeMachineFrameChecksumInterface())||void 0===t||t.timeMachine.goBack(e)},doneState:ti.Paused})},this.wrapWithLoadingState=e=>{var t;let{eventCastId:n,events:r,actionCallback:o,doneState:i}=e;const a=tp.getDispatch();a(_i(ti.Processing)),null===(t=this.getTimeMachineFrameChecksumInterface())||void 0===t||t.timeMachine.subscribeToEventCast(n,r,(()=>{var e;setTimeout((()=>a(_i(i))),100),null===(e=this.getTimeMachineFrameChecksumInterface())||void 0===e||e.timeMachine.unsubscribeFromEventCast(n)})),o()},this.toggleOrSetShouldRecordActions=e=>{var t,n;let{shouldRecordActions:r,message:o,recordingOptions:i}=e;const a=tp.getDispatch(),s=null===tp||void 0===tp||null===(t=tp.getState())||void 0===t||null===(n=t.volatile)||void 0===n?void 0:n.recordingActions,l=null!==r&&void 0!==r?r:!s;try{var c;a(ui({recordingActions:l})),a(mi(l?i:{mode:Xo.InsertLast})),null===(c=this.getTimeMachineFrameChecksumInterface())||void 0===c||c.timeMachine.setShouldHandleEvents(l),s!==l&&o&&Zf.info(o)}catch(u){console.error(u)}},this.startInspector=e=>{var t,n;let{eventName:r,timestamp:o}=e;null===(t=this.getTimeMachineFrameChecksumInterface())||void 0===t||null===(n=t.visualTestGenerator)||void 0===n||n.startInspector({singleSelection:!1,rootDocument:this.getTimeMachineFrame().contentDocument,timestamp:o,eventName:r})},this.stopInspector=()=>{var e,t;null===(e=this.getTimeMachineFrameChecksumInterface())||void 0===e||null===(t=e.visualTestGenerator)||void 0===t||t.stopInspector()}}getFrameContentWindowDocument(){return this.getTimeMachineFrame().contentDocument}}const yz=new vz("time-machine-iframe"),bz=new vz("live-iframe"),wz=e=>{let{setSelection:t,isTabActive:n=!1,eventName:r}=e;const[o,a]=(0,i.useState)(null);return(0,i.useEffect)((()=>{if(!n)return;const e=async e=>{const{data:{data:n,type:o}}=e;o===r&&(await t(n),a(n))};return window.addEventListener("message",e),()=>{window.removeEventListener("message",e)}}),[n,t]),{selection:o}},xz={P:"#1661ab",C:"#1976d2",N:"#70a6dc"};let Az=function(e){return e.InsertAfter="insertAfter",e.InsertLast="insertLast",e.Replace="replace",e.ReplaceLast="replaceLast",e}({});const Sz=(e,t)=>{const n=e=>t[e];if(!e.length)return e;const r=[...e],o=e=>e.sort(((e,t)=>{const{timestamp:r,createdAt:o}=n(e.id),{timestamp:i,createdAt:a}=n(t.id);return r!==i?r-i:o-a}));let i=[],a=[];return r.forEach(((e,t)=>{e.type===Zo.Assertion?a.push(e):(a.length>0&&(i.push(...o(a)),a=[]),i.push(e)),t===r.length-1&&a.length>0&&i.push(...o(a))})),i},_z=Jr({name:"steps",initialState:{steps:[],activeStep:null,savingSteps:{},savingCodeBasedSteps:{},isStepSeekbarActive:{},snapshotTimestamp:null,stepsCodeMap:{}},reducers:{createStep:(e,t)=>{let{payload:{type:n,id:r,options:o}}=t;const i={type:n,id:r};switch(o.type){case Az.InsertAfter:{const t=e.steps.findIndex((e=>e.id===o.afterStepId));-1!==t&&e.steps.splice(t+1,0,i);break}case Az.InsertLast:e.steps.push(i);break;case Az.Replace:{const t=e.steps.findIndex((e=>e.id===o.stepId));-1!==t&&e.steps.splice(t,1,i);break}case Az.ReplaceLast:e.steps.length>0&&(e.steps[e.steps.length-1]=i)}o.stepsTimestampsMap&&(e.steps=Sz(Yn(e.steps),o.stepsTimestampsMap))},updateStep:(e,t)=>{let{payload:{type:n,data:r,id:o,options:i}}=t;i.stepsTimestampsMap&&(e.steps=Sz(Yn(e.steps),i.stepsTimestampsMap))},sortSteps:(e,t)=>{let{payload:{options:n}}=t;n.stepsTimestampsMap&&(e.steps=Sz(Yn(e.steps),n.stepsTimestampsMap))},deleteStep:(e,t)=>{const n=e.steps.findIndex((e=>e.id===t.payload.id));-1!==n&&(e.steps.splice(n,1),delete e.stepsCodeMap[t.payload.id])},setActiveStep:(e,t)=>{e.activeStep=t.payload?Object.assign(t.payload):t.payload},updateActiveStep:(e,t)=>{t.payload?e.activeStep&&(e.activeStep=Object.assign(e.activeStep,t.payload)):e.activeStep=null},increaseStepSavingCount:(e,t)=>{var n;e.savingSteps[t.payload]=(null!==(n=e.savingSteps[t.payload])&&void 0!==n?n:0)+1},decreaseStepSavingCount:(e,t)=>{e.savingSteps[t.payload]&&(e.savingSteps[t.payload]--,e.savingSteps[t.payload]<=0&&(e.savingSteps[t.payload]<0&&console.error("saving count is negative value for step: ",t.payload,"value: ",e.savingSteps[t.payload]<0),delete e.savingSteps[t.payload]))},increaseCodeBasedStepSavingCount:(e,t)=>{var n;e.savingCodeBasedSteps[t.payload]=(null!==(n=e.savingCodeBasedSteps[t.payload])&&void 0!==n?n:0)+1},decreaseCodeBasedStepSavingCount:(e,t)=>{e.savingCodeBasedSteps[t.payload]&&(e.savingCodeBasedSteps[t.payload]--,e.savingCodeBasedSteps[t.payload]<=0&&(e.savingCodeBasedSteps[t.payload]<0&&console.error("saving count for code based steps is negative value for step: ",t.payload,"value: ",e.savingCodeBasedSteps[t.payload]<0),delete e.savingCodeBasedSteps[t.payload]))},resetStepSavingCountsForStep:(e,t)=>{delete e.savingSteps[t.payload],delete e.savingCodeBasedSteps[t.payload]},setIsStepSeekbarActive:(e,t)=>{const{stepId:n,active:r}=t.payload;e.isStepSeekbarActive[n]=r},setSnapshotTimestamp:(e,t)=>{e.snapshotTimestamp=t.payload},updateStepCode:(e,t)=>{const{id:n,code:r}=t.payload;e.stepsCodeMap[n]=r}}}),{createStep:kz,deleteStep:Cz,updateStep:Ez,setActiveStep:Oz,updateActiveStep:Tz,increaseStepSavingCount:Iz,decreaseStepSavingCount:Rz,increaseCodeBasedStepSavingCount:Pz,decreaseCodeBasedStepSavingCount:Mz,resetStepSavingCountsForStep:Dz,setIsStepSeekbarActive:Lz,sortSteps:jz,setSnapshotTimestamp:Nz,updateStepCode:Fz}=_z.actions,zz=_z.reducer,Bz=e=>e.steps.steps;function Vz(e,t){return{action:cO(e,t),assertion:IC(e,t),step:e.steps.steps.find((e=>e.id===t))}}function Uz(e,t,n){const r=n?Kz(e,n):Bz(e),o=r.findIndex((e=>{let{id:n}=e;return n===t}));if(-1!==o&&o!==r.length-1)return r[o+1]}const Wz=e=>e.steps.activeStep,qz=e=>e.steps.savingSteps,Hz=e=>e.steps.savingCodeBasedSteps,Yz=e=>e.steps.stepsCodeMap,Gz=e=>e.steps.isStepSeekbarActive,Kz=(e,t)=>e.steps.steps.filter((e=>e.type===t)),$z=e=>e.steps.snapshotTimestamp,Qz=e=>{const t=(e=>e.thoughts.thoughtSuggestions)(e),n=(e=>e.locators.locatorSuggestions)(e),r=new Set([...Object.keys(t),...Object.keys(n)]);return Array.from(r).reduce(((e,r)=>(e[r]={locator:n[r],thought:t[r]},e)),{})},Xz=()=>(0,o.d4)(Bz),Jz=()=>(0,o.d4)(Wz),Zz=()=>(0,o.d4)(Hz),eB=()=>(0,o.d4)(Yz),tB=e=>(0,o.d4)(Yz)[e],nB=e=>!!(0,o.d4)(Gz)[e],rB=()=>(0,o.d4)($z),oB=e=>(0,o.d4)(Qz,o.bN)[e],iB=e=>{let{stepId:t}=e;const n=Kt(),r=nB(t);return{closeSeekbar:(0,i.useCallback)((()=>{n(Lz({stepId:t,active:!1}))}),[n,t]),isSeekbarActive:r,openSeekbar:(0,i.useCallback)((()=>{n(di()),n(Lz({stepId:t,active:!0}))}),[n,t])}},aB=()=>{const e=Kt(),t=rB(),n=(0,i.useCallback)((()=>{const t=Date.now();return e(di()),e(Nz(t)),yz.goBackTimeMachineByTimestamp(t),t}),[e]),r=(0,i.useCallback)((()=>{e(Tz({timestamp:t}))}),[e,t]),o=(0,i.useCallback)((()=>{const t=n();e(Tz({timestamp:t}))}),[e,n]),a=(0,i.useCallback)(((t,n)=>{e(Nz(n))}),[e]);return{captureLive:n,saveTimestamp:r,onTimestampChange:a,captureLiveAndSave:o}},sB=e=>{let{step:t}=e;const n=Kt(),[r,o]=(0,i.useState)(!0),[a,s]=(0,i.useState)(!0),l=rB(),c=(e=>{let{step:t,focusMode:n}=e;const r=uV([sV.Actions]),{initFinishedTimestamp:o}=un(),[a,s]=(0,i.useState)((()=>({startTime:yz.getFirstEventTimestamp(),endTime:Date.now(),isOutOfSync:!1})));return(0,i.useEffect)((()=>{if(o){const e=r.findActionBeforeStepById(t.id),o=e?r.findIndexByStepId(e.id):void 0,i=r.findNextActionByStepId(t.id),a=i?r.findIndexByStepId(i.id):void 0,l=yz.getFirstEventTimestamp();s((r=>(0,g.A)((0,g.A)({},r),{},{startTime:n?Math.max(t.timestamp-3e4,l):l,endTime:n?Math.min(t.timestamp+3e4,Date.now()):Date.now(),isOutOfSync:!1,previousAction:e,nextAction:i,previousActionIndex:o,nextActionIndex:a})))}}),[t,null===t||void 0===t?void 0:t.timestamp,r,n,o]),a})({step:t,focusMode:r}),{formattedTime:u,shouldDisplayFormattedTime:d}=(0,i.useMemo)((()=>{const e=(e=>{const t=Math.floor(e/1e3),n=Math.floor(t/60),r=t%60;return"".concat(n,":").concat(r.toString().padStart(2,"0"))})(l-c.startTime);return{formattedTime:e,shouldDisplayFormattedTime:!e.includes("NaN")&&l>c.startTime}}),[c.startTime,l]),{captureLive:f,saveTimestamp:p,onTimestampChange:h}=aB(),m=(0,i.useCallback)((()=>{f(),o(!1)}),[f,o]),{closeSeekbar:v}=iB({stepId:t.id}),y=(0,i.useCallback)((()=>{p(),v()}),[p,v]),b=(0,i.useCallback)((()=>{o((e=>!e))}),[]);(0,i.useEffect)((()=>{null!==t&&void 0!==t&&t.timestamp?s(!0):(s(!1),o(!1))}),[t]);const w=(0,i.useRef)(!1),x=(0,i.useCallback)(((e,t)=>{w.current=!0,h(void 0,t)}),[h]),A=(0,i.useCallback)((()=>{h(void 0,null===t||void 0===t?void 0:t.timestamp),yz.goBackTimeMachineByTimestamp(null===t||void 0===t?void 0:t.timestamp),v()}),[h,v,null===t||void 0===t?void 0:t.timestamp]),S=l<c.startTime||l>c.endTime,_=(0,i.useRef)(c);(0,i.useEffect)((()=>{S||(_.current=c)}),[c,S]);const k=(0,i.useMemo)((()=>{var e;const{previousAction:t,nextAction:n,previousActionIndex:r,nextActionIndex:o}=S?null!==(e=_.current)&&void 0!==e?e:{}:c,i=S?"Use":"Using";return t&&n?"".concat(i," time between steps #").concat(r+1,' "').concat(t.thought,'" and #').concat(o+1,' "').concat(n.thought,'"'):t?"".concat(i," time after step #").concat(r+1,' "').concat(t.thought,'"'):n?"".concat(i," time before step #").concat(o+1,' "').concat(n.thought,'"'):"".concat(i," time in between steps")}),[c,S]);(0,i.useEffect)((()=>{n(Nz(t.timestamp))}),[t.timestamp,n]),(0,i.useEffect)((()=>{w.current&&(yz.goBackTimeMachineByTimestamp(l),w.current=!1)}),[l]);const C=(0,i.useMemo)((()=>{var e,n;return[{label:"P",description:"Previous action",timestamp:null===(e=c.previousAction)||void 0===e?void 0:e.timestamp},{label:"N",description:"Next action",timestamp:null===(n=c.nextAction)||void 0===n?void 0:n.timestamp},{label:"C",description:"Current step",timestamp:t.timestamp}]}),[c,t.timestamp]);return(0,g.A)({focusMode:r,focusModeEnabled:a,handleFocusModeChange:b,handleSeek:x,handleLiveClick:m,currentTimestamp:l,formattedTime:u,handleCancel:A,handleSaveTimestamp:y,shouldDisplayFormattedTime:d,isTimeOutOfBoundaries:S,seekbarOrientationText:k,markers:C},c)};var lB=__webpack_require__(1989);const cB={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};const uB=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(e,t)=>e===t;return e.length===t.length&&e.every(((e,r)=>n(e,t[r])))};function dB(e,t){return e-t}function fB(e,t){var n;const{index:r}=null!=(n=e.reduce(((e,n,r)=>{const o=Math.abs(t-n);return null===e||o<e.distance||o===e.distance?{distance:o,index:r}:e}),null))?n:{};return r}function pB(e,t){if(void 0!==t.current&&e.changedTouches){const n=e;for(let e=0;e<n.changedTouches.length;e+=1){const r=n.changedTouches[e];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function hB(e,t,n){return 100*(e-t)/(n-t)}function mB(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(function(e){if(Math.abs(e)<1){const t=e.toExponential().split("e-"),n=t[0].split(".")[1];return(n?n.length:0)+parseInt(t[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}(t)))}function gB(e){let{values:t,newValue:n,index:r}=e;const o=t.slice();return o[r]=n,o.sort(dB)}function vB(e){let{sliderRef:t,activeIndex:n,setActive:r}=e;var o,i;const a=(0,Rp.A)(t.current);var s;null!=(o=t.current)&&o.contains(a.activeElement)&&Number(null==a||null==(i=a.activeElement)?void 0:i.getAttribute("data-index"))===n||(null==(s=t.current)||s.querySelector('[type="range"][data-index="'.concat(n,'"]')).focus());r&&r(n)}function yB(e,t){return"number"===typeof e&&"number"===typeof t?e===t:"object"===typeof e&&"object"===typeof t&&uB(e,t)}const bB={horizontal:{offset:e=>({left:"".concat(e,"%")}),leap:e=>({width:"".concat(e,"%")})},"horizontal-reverse":{offset:e=>({right:"".concat(e,"%")}),leap:e=>({width:"".concat(e,"%")})},vertical:{offset:e=>({bottom:"".concat(e,"%")}),leap:e=>({height:"".concat(e,"%")})}},wB=e=>e;let xB;function AB(){return void 0===xB&&(xB="undefined"===typeof CSS||"function"!==typeof CSS.supports||CSS.supports("touch-action","none")),xB}const SB=e=>!e||!ht(e);function _B(e){return(0,Ee.Ay)("MuiSlider",e)}const kB=(0,L.A)("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);const CB=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function EB(e){return e}const OB=(0,U.Ay)("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t["color".concat((0,V.A)(n.color))],"medium"!==n.size&&t["size".concat((0,V.A)(n.size))],n.marked&&t.marked,"vertical"===n.orientation&&t.vertical,"inverted"===n.track&&t.trackInverted,!1===n.track&&t.trackFalse]}})((e=>{let{theme:t}=e;var n;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},["&.".concat(kB.disabled)]:{pointerEvents:"none",cursor:"default",color:(t.vars||t).palette.grey[400]},["&.".concat(kB.dragging)]:{["& .".concat(kB.thumb,", & .").concat(kB.track)]:{transition:"none"}},variants:[...Object.keys((null!=(n=t.vars)?n:t).palette).filter((e=>{var n;return(null!=(n=t.vars)?n:t).palette[e].main})).map((e=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}}))),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}})),TB=(0,U.Ay)("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),IB=(0,U.Ay)("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})((e=>{let{theme:t}=e;var n;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys((null!=(n=t.vars)?n:t).palette).filter((e=>{var n;return(null!=(n=t.vars)?n:t).palette[e].main})).map((e=>({props:{color:e,track:"inverted"},style:(0,w.A)({},t.vars?{backgroundColor:t.vars.palette.Slider["".concat(e,"Track")],borderColor:t.vars.palette.Slider["".concat(e,"Track")]}:(0,w.A)({backgroundColor:(0,B.a)(t.palette[e].main,.62),borderColor:(0,B.a)(t.palette[e].main,.62)},t.applyStyles("dark",{backgroundColor:(0,B.e$)(t.palette[e].main,.5)}),t.applyStyles("dark",{borderColor:(0,B.e$)(t.palette[e].main,.5)})))})))]}})),RB=(0,U.Ay)("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t["thumbColor".concat((0,V.A)(n.color))],"medium"!==n.size&&t["thumbSize".concat((0,V.A)(n.size))]]}})((e=>{let{theme:t}=e;var n;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow","left","bottom"],{duration:t.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(t.vars||t).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},["&.".concat(kB.disabled)]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys((null!=(n=t.vars)?n:t).palette).filter((e=>{var n;return(null!=(n=t.vars)?n:t).palette[e].main})).map((e=>({props:{color:e},style:{["&:hover, &.".concat(kB.focusVisible)]:(0,w.A)({},t.vars?{boxShadow:"0px 0px 0px 8px rgba(".concat(t.vars.palette[e].mainChannel," / 0.16)")}:{boxShadow:"0px 0px 0px 8px ".concat((0,B.X4)(t.palette[e].main,.16))},{"@media (hover: none)":{boxShadow:"none"}}),["&.".concat(kB.active)]:(0,w.A)({},t.vars?{boxShadow:"0px 0px 0px 14px rgba(".concat(t.vars.palette[e].mainChannel," / 0.16)")}:{boxShadow:"0px 0px 0px 14px ".concat((0,B.X4)(t.palette[e].main,.16))})}})))]}})),PB=(0,U.Ay)((function(e){const{children:t,className:n,value:r}=e,o=(e=>{const{open:t}=e;return{offset:(0,A.A)(t&&kB.valueLabelOpen),circle:kB.valueLabelCircle,label:kB.valueLabelLabel}})(e);return t?i.cloneElement(t,{className:(0,A.A)(t.props.className)},(0,R.jsxs)(i.Fragment,{children:[t.props.children,(0,R.jsx)("span",{className:(0,A.A)(o.offset,n),"aria-hidden":!0,children:(0,R.jsx)("span",{className:o.circle,children:(0,R.jsx)("span",{className:o.label,children:r})})})]})):null}),{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})((e=>{let{theme:t}=e;return(0,w.A)({zIndex:1,whiteSpace:"nowrap"},t.typography.body2,{fontWeight:500,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),position:"absolute",backgroundColor:(t.vars||t).palette.grey[600],borderRadius:2,color:(t.vars||t).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},["&.".concat(kB.valueLabelOpen)]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},["&.".concat(kB.valueLabelOpen)]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:t.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})})),MB=(0,U.Ay)("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>(0,rS.A)(e)&&"markActive"!==e,overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})((e=>{let{theme:t}=e;return{position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8}}]}})),DB=(0,U.Ay)("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>(0,rS.A)(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})((e=>{let{theme:t}=e;return(0,w.A)({},t.typography.body2,{color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(t.vars||t).palette.text.primary}}]})})),LB=e=>{let{children:t}=e;return t},jB=i.forwardRef((function(e,t){var n,r,o,a,s,l,c,u,d,f,p,h,m,g,v,y,b,S,_,k,C,E,O,T;const I=(0,G.b)({props:e,name:"MuiSlider"}),P=Pi(),{"aria-label":M,"aria-valuetext":D,"aria-labelledby":L,component:j="span",components:N={},componentsProps:F={},color:B="primary",classes:U,className:W,disableSwap:q=!1,disabled:H=!1,getAriaLabel:Y,getAriaValueText:K,marks:$=!1,max:Q=100,min:X=0,orientation:J="horizontal",shiftStep:Z=10,size:ee="medium",step:te=1,scale:ne=EB,slotProps:re,slots:oe,track:ie="normal",valueLabelDisplay:ae="off",valueLabelFormat:se=EB}=I,le=(0,x.A)(I,CB),ce=(0,w.A)({},I,{isRtl:P,max:Q,min:X,classes:U,disabled:H,disableSwap:q,orientation:J,marks:$,color:B,size:ee,step:te,shiftStep:Z,scale:ne,track:ie,valueLabelDisplay:ae,valueLabelFormat:se}),{axisProps:ue,getRootProps:de,getHiddenInputProps:fe,getThumbProps:pe,open:he,active:me,axis:ge,focusedThumbIndex:ve,range:ye,dragging:be,marks:we,values:xe,trackOffset:Ae,trackLeap:Se,getThumbStyle:_e}=function(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:a=!1,marks:s=!1,max:l=100,min:c=0,name:u,onChange:d,onChangeCommitted:f,orientation:p="horizontal",rootRef:h,scale:m=wB,step:g=1,shiftStep:v=10,tabIndex:y,value:b}=e,x=i.useRef(void 0),[A,S]=i.useState(-1),[_,k]=i.useState(-1),[C,E]=i.useState(!1),O=i.useRef(0),[T,I]=(0,Kw.A)({controlled:b,default:null!=n?n:c,name:"Slider"}),R=d&&((e,t,n)=>{const r=e.nativeEvent||e,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:t,name:u}}),d(o,t,n)}),P=Array.isArray(T);let M=P?T.slice().sort(dB):[T];M=M.map((e=>null==e?c:(0,GE.A)(e,c,l)));const D=!0===s&&null!==g?[...Array(Math.floor((l-c)/g)+1)].map(((e,t)=>({value:c+g*t}))):s||[],L=D.map((e=>e.value)),{isFocusVisibleRef:j,onBlur:N,onFocus:F,ref:z}=(0,lB.A)(),[B,V]=i.useState(-1),U=i.useRef(null),W=(0,pt.A)(z,U),q=(0,pt.A)(h,W),H=e=>t=>{var n;const r=Number(t.currentTarget.getAttribute("data-index"));F(t),!0===j.current&&V(r),k(r),null==e||null==(n=e.onFocus)||n.call(e,t)},Y=e=>t=>{var n;N(t),!1===j.current&&V(-1),k(-1),null==e||null==(n=e.onBlur)||n.call(e,t)},G=(e,t)=>{const n=Number(e.currentTarget.getAttribute("data-index")),r=M[n],i=L.indexOf(r);let a=t;if(D&&null==g){const e=L[L.length-1];a=a>e?e:a<L[0]?L[0]:a<r?L[i-1]:L[i+1]}if(a=(0,GE.A)(a,c,l),P){o&&(a=(0,GE.A)(a,M[n-1]||-1/0,M[n+1]||1/0));const e=a;a=gB({values:M,newValue:a,index:n});let t=n;o||(t=a.indexOf(e)),vB({sliderRef:U,activeIndex:t})}I(a),V(n),R&&!yB(a,T)&&R(e,a,n),f&&f(e,a)},K=e=>t=>{var n;if(null!==g){const e=Number(t.currentTarget.getAttribute("data-index")),n=M[e];let r=null;("ArrowLeft"===t.key||"ArrowDown"===t.key)&&t.shiftKey||"PageDown"===t.key?r=Math.max(n-v,c):(("ArrowRight"===t.key||"ArrowUp"===t.key)&&t.shiftKey||"PageUp"===t.key)&&(r=Math.min(n+v,l)),null!==r&&(G(t,r),t.preventDefault())}null==e||null==(n=e.onKeyDown)||n.call(e,t)};(0,Ip.A)((()=>{var e;r&&U.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[r]),r&&-1!==A&&S(-1),r&&-1!==B&&V(-1);const $=i.useRef(void 0);let Q=p;a&&"horizontal"===p&&(Q+="-reverse");const X=e=>{let{finger:t,move:n=!1}=e;const{current:r}=U,{width:i,height:a,bottom:s,left:u}=r.getBoundingClientRect();let d,f;if(d=0===Q.indexOf("vertical")?(s-t.y)/a:(t.x-u)/i,-1!==Q.indexOf("-reverse")&&(d=1-d),f=function(e,t,n){return(n-t)*e+t}(d,c,l),g)f=mB(f,g,c);else{const e=fB(L,f);f=L[e]}f=(0,GE.A)(f,c,l);let p=0;if(P){p=n?$.current:fB(M,f),o&&(f=(0,GE.A)(f,M[p-1]||-1/0,M[p+1]||1/0));const e=f;f=gB({values:M,newValue:f,index:p}),o&&n||(p=f.indexOf(e),$.current=p)}return{newValue:f,activeIndex:p}},J=(0,Fm.A)((e=>{const t=pB(e,x);if(!t)return;if(O.current+=1,"mousemove"===e.type&&0===e.buttons)return void Z(e);const{newValue:n,activeIndex:r}=X({finger:t,move:!0});vB({sliderRef:U,activeIndex:r,setActive:S}),I(n),!C&&O.current>2&&E(!0),R&&!yB(n,T)&&R(e,n,r)})),Z=(0,Fm.A)((e=>{const t=pB(e,x);if(E(!1),!t)return;const{newValue:n}=X({finger:t,move:!0});S(-1),"touchend"===e.type&&k(-1),f&&f(e,n),x.current=void 0,te()})),ee=(0,Fm.A)((e=>{if(r)return;AB()||e.preventDefault();const t=e.changedTouches[0];null!=t&&(x.current=t.identifier);const n=pB(e,x);if(!1!==n){const{newValue:t,activeIndex:r}=X({finger:n});vB({sliderRef:U,activeIndex:r,setActive:S}),I(t),R&&!yB(t,T)&&R(e,t,r)}O.current=0;const o=(0,Rp.A)(U.current);o.addEventListener("touchmove",J,{passive:!0}),o.addEventListener("touchend",Z,{passive:!0})})),te=i.useCallback((()=>{const e=(0,Rp.A)(U.current);e.removeEventListener("mousemove",J),e.removeEventListener("mouseup",Z),e.removeEventListener("touchmove",J),e.removeEventListener("touchend",Z)}),[Z,J]);i.useEffect((()=>{const{current:e}=U;return e.addEventListener("touchstart",ee,{passive:AB()}),()=>{e.removeEventListener("touchstart",ee),te()}}),[te,ee]),i.useEffect((()=>{r&&te()}),[r,te]);const ne=hB(P?M[0]:c,c,l),re=hB(M[M.length-1],c,l)-ne,oe=e=>t=>{var n;null==(n=e.onMouseLeave)||n.call(e,t),k(-1)};return{active:A,axis:Q,axisProps:bB,dragging:C,focusedThumbIndex:B,getHiddenInputProps:function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var o;const i=vt(n),s={onChange:(d=i||{},e=>{var t;null==(t=d.onChange)||t.call(d,e),G(e,e.target.valueAsNumber)}),onFocus:H(i||{}),onBlur:Y(i||{}),onKeyDown:K(i||{})};var d;const f=(0,w.A)({},i,s);return(0,w.A)({tabIndex:y,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":m(l),"aria-valuemin":m(c),name:u,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":null!=(o=e.step)?o:void 0,disabled:r},n,f,{style:(0,w.A)({},cB,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=vt(e),n={onMouseDown:(o=t||{},e=>{var t;if(null==(t=o.onMouseDown)||t.call(o,e),r)return;if(e.defaultPrevented)return;if(0!==e.button)return;e.preventDefault();const n=pB(e,x);if(!1!==n){const{newValue:t,activeIndex:r}=X({finger:n});vB({sliderRef:U,activeIndex:r,setActive:S}),I(t),R&&!yB(t,T)&&R(e,t,r)}O.current=0;const i=(0,Rp.A)(U.current);i.addEventListener("mousemove",J,{passive:!0}),i.addEventListener("mouseup",Z)})};var o;const i=(0,w.A)({},t,n);return(0,w.A)({},e,{ref:q},i)},getThumbProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=vt(e),n={onMouseOver:(r=t||{},e=>{var t;null==(t=r.onMouseOver)||t.call(r,e);const n=Number(e.currentTarget.getAttribute("data-index"));k(n)}),onMouseLeave:oe(t||{})};var r;return(0,w.A)({},e,t,n)},marks:D,open:_,range:P,rootRef:q,trackLeap:re,trackOffset:ne,values:M,getThumbStyle:e=>({pointerEvents:-1!==A&&A!==e?"none":void 0})}}((0,w.A)({},ce,{rootRef:t}));ce.marked=we.length>0&&we.some((e=>e.label)),ce.dragging=be,ce.focusedThumbIndex=ve;const ke=(e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:a,color:s,size:l}=e,c={root:["root",t&&"disabled",n&&"dragging",r&&"marked","vertical"===o&&"vertical","inverted"===i&&"trackInverted",!1===i&&"trackFalse",s&&"color".concat((0,V.A)(s)),l&&"size".concat((0,V.A)(l))],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&"thumbSize".concat((0,V.A)(l)),s&&"thumbColor".concat((0,V.A)(s))],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return(0,z.A)(c,_B,a)})(ce),Ce=null!=(n=null!=(r=null==oe?void 0:oe.root)?r:N.Root)?n:OB,Ee=null!=(o=null!=(a=null==oe?void 0:oe.rail)?a:N.Rail)?o:TB,Oe=null!=(s=null!=(l=null==oe?void 0:oe.track)?l:N.Track)?s:IB,Te=null!=(c=null!=(u=null==oe?void 0:oe.thumb)?u:N.Thumb)?c:RB,Ie=null!=(d=null!=(f=null==oe?void 0:oe.valueLabel)?f:N.ValueLabel)?d:PB,Re=null!=(p=null!=(h=null==oe?void 0:oe.mark)?h:N.Mark)?p:MB,Pe=null!=(m=null!=(g=null==oe?void 0:oe.markLabel)?g:N.MarkLabel)?m:DB,Me=null!=(v=null!=(y=null==oe?void 0:oe.input)?y:N.Input)?v:"input",De=null!=(b=null==re?void 0:re.root)?b:F.root,Le=null!=(S=null==re?void 0:re.rail)?S:F.rail,je=null!=(_=null==re?void 0:re.track)?_:F.track,Ne=null!=(k=null==re?void 0:re.thumb)?k:F.thumb,Fe=null!=(C=null==re?void 0:re.valueLabel)?C:F.valueLabel,ze=null!=(E=null==re?void 0:re.mark)?E:F.mark,Be=null!=(O=null==re?void 0:re.markLabel)?O:F.markLabel,Ve=null!=(T=null==re?void 0:re.input)?T:F.input,Ue=Li({elementType:Ce,getSlotProps:de,externalSlotProps:De,externalForwardedProps:le,additionalProps:(0,w.A)({},SB(Ce)&&{as:j}),ownerState:(0,w.A)({},ce,null==De?void 0:De.ownerState),className:[ke.root,W]}),We=Li({elementType:Ee,externalSlotProps:Le,ownerState:ce,className:ke.rail}),qe=Li({elementType:Oe,externalSlotProps:je,additionalProps:{style:(0,w.A)({},ue[ge].offset(Ae),ue[ge].leap(Se))},ownerState:(0,w.A)({},ce,null==je?void 0:je.ownerState),className:ke.track}),He=Li({elementType:Te,getSlotProps:pe,externalSlotProps:Ne,ownerState:(0,w.A)({},ce,null==Ne?void 0:Ne.ownerState),className:ke.thumb}),Ye=Li({elementType:Ie,externalSlotProps:Fe,ownerState:(0,w.A)({},ce,null==Fe?void 0:Fe.ownerState),className:ke.valueLabel}),Ge=Li({elementType:Re,externalSlotProps:ze,ownerState:ce,className:ke.mark}),Ke=Li({elementType:Pe,externalSlotProps:Be,ownerState:ce,className:ke.markLabel}),$e=Li({elementType:Me,getSlotProps:fe,externalSlotProps:Ve,ownerState:ce});return(0,R.jsxs)(Ce,(0,w.A)({},Ue,{children:[(0,R.jsx)(Ee,(0,w.A)({},We)),(0,R.jsx)(Oe,(0,w.A)({},qe)),we.filter((e=>e.value>=X&&e.value<=Q)).map(((e,t)=>{const n=hB(e.value,X,Q),r=ue[ge].offset(n);let o;return o=!1===ie?-1!==xe.indexOf(e.value):"normal"===ie&&(ye?e.value>=xe[0]&&e.value<=xe[xe.length-1]:e.value<=xe[0])||"inverted"===ie&&(ye?e.value<=xe[0]||e.value>=xe[xe.length-1]:e.value>=xe[0]),(0,R.jsxs)(i.Fragment,{children:[(0,R.jsx)(Re,(0,w.A)({"data-index":t},Ge,!ht(Re)&&{markActive:o},{style:(0,w.A)({},r,Ge.style),className:(0,A.A)(Ge.className,o&&ke.markActive)})),null!=e.label?(0,R.jsx)(Pe,(0,w.A)({"aria-hidden":!0,"data-index":t},Ke,!ht(Pe)&&{markLabelActive:o},{style:(0,w.A)({},r,Ke.style),className:(0,A.A)(ke.markLabel,Ke.className,o&&ke.markLabelActive),children:e.label})):null]},t)})),xe.map(((e,t)=>{const n=hB(e,X,Q),r=ue[ge].offset(n),o="off"===ae?LB:Ie;return(0,R.jsx)(o,(0,w.A)({},!ht(o)&&{valueLabelFormat:se,valueLabelDisplay:ae,value:"function"===typeof se?se(ne(e),t):se,index:t,open:he===t||me===t||"on"===ae,disabled:H},Ye,{children:(0,R.jsx)(Te,(0,w.A)({"data-index":t},He,{className:(0,A.A)(ke.thumb,He.className,me===t&&ke.active,ve===t&&ke.focusVisible),style:(0,w.A)({},r,_e(t),He.style),children:(0,R.jsx)(Me,(0,w.A)({"data-index":t,"aria-label":Y?Y(t):M,"aria-valuenow":ne(e),"aria-labelledby":L,"aria-valuetext":K?K(ne(e),t):D,value:xe[t]},$e))}))}),t)}))]}))})),NB=(0,U.Ay)(jB,{shouldForwardProp:e=>!["isOutOfSync"].includes(e)})((e=>{let{isOutOfSync:t}=e;return{color:"#1976d2",height:4,"& .MuiSlider-thumb":{width:12,height:12,"&:hover, &.Mui-focusVisible":{boxShadow:"0px 0px 0px 8px rgba(25, 118, 210, 0.16)"}},"& .MuiSlider-rail":{opacity:.28,background:t?"#ff4444":"#1976d2"},"& .MuiSlider-mark":{backgroundColor:"#ff4444",height:12,width:3,borderRadius:"2px",marginTop:"-4px"}}}));var FB={name:"pw7jst",styles:"position:relative;width:100%"},zB={name:"1f58t30",styles:"background:none;padding:0"},BB={name:"1039bnm",styles:"position:absolute;top:0;right:30px;width:30px"},VB={name:"1fmgkpl",styles:"min-width:150px"},UB={name:"1ff36h2",styles:"flex-grow:1"},WB={name:"1etckdf",styles:"background:#76afd926"},qB={name:"1wus6y5",styles:"display:flex;justify-content:center;font-size:14px;color:#666"};var HB={name:"xqwqpb",styles:"position:absolute;display:flex;flex-direction:column;align-items:center;cursor:pointer;pointer-events:auto"},YB={name:"1ew0mzt",styles:"position:absolute;top:100%;margin-top:0;left:0;right:0;height:40px;pointer-events:none"};const GB=e=>{let{startTime:t,endTime:n,markers:r,handleSeek:o}=e;const a=(0,i.useCallback)((e=>{try{if(n-t===0)return;return"".concat((e-t)/(n-t)*100,"%")}catch(r){return void console.error("Error calculating left position for marker",r)}}),[n,t]),s=(0,i.useMemo)((()=>({overlay:YB,markerContainer:HB,caret:e=>(0,le.AH)("width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid ",xz[e],";margin-bottom:4px;",""),label:e=>(0,le.AH)("background-color:",xz[e],";color:#fff;padding:2px 8px;border-radius:4px;font-size:0.75rem;white-space:nowrap;box-shadow:0 2px 6px rgba(0, 0, 0, 0.15);","")})),[]);return(0,rs.Y)(F,{css:s.overlay,children:r.filter((e=>e.timestamp&&e.timestamp>t&&e.timestamp<n)).map(((e,t)=>(0,rs.Y)(pm,{title:e.description||"",children:(0,rs.FD)(F,{onClick:t=>o(t,e.timestamp),css:(0,le.AH)(s.markerContainer," left:",a(e.timestamp),";transform:translateX(-50%);",""),children:[(0,rs.Y)(F,{css:s.caret(e.label)}),(0,rs.Y)(tt,{variant:"caption",css:s.label(e.label),children:e.label})]})},t)))})},KB=e=>{let{step:t,isSeekbarActive:n}=e;const{formattedTime:r,handleSeek:o,handleLiveClick:a,currentTimestamp:s,shouldDisplayFormattedTime:l,endTime:c,startTime:u,isOutOfSync:d,handleSaveTimestamp:f,handleCancel:p,isTimeOutOfBoundaries:h,seekbarOrientationText:m,markers:g,focusMode:v,focusModeEnabled:y,handleFocusModeChange:b}=sB({step:t}),w=(e=>{let{isTimeOutOfBoundaries:t}=e;const n=Ni();return(0,i.useMemo)((()=>{const e=(0,le.AH)({width:"85%",maxWidth:"1000px",minWidth:"500px",padding:n.spacing(1),position:"absolute",bottom:n.spacing(1),background:"#ffffffcf",boxShadow:"0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12)",border:"1px solid #cdcdcd8f",zIndex:3},"",""),r=(0,le.AH)({display:"flex",gap:n.spacing(2)},"",""),o=qB,i=(0,le.AH)({display:"flex",flexDirection:"column",padding:10,transition:"background 0.5s",gap:n.spacing(.5)},"",""),a=WB,s=[i,UB],l=[i,VB];t?l.push(a):s.push(a);const c=(0,le.AH)({display:"flex",marginTop:n.spacing(1)},"","");return{container:e,boundaries:o,seekbarContent:r,liveCaptureColumn:l,seekbarColumn:s,buttonsContainer:(0,le.AH)({display:"flex",gap:n.spacing(1),marginLeft:"auto"},"",""),alert:zB,displaySeekbarButton:BB,bottomBar:c,overlayWrapper:FB}}),[n,t])})({isTimeOutOfBoundaries:h});return n?(0,rs.FD)(F,{sx:w.container,children:[(0,rs.FD)(F,{sx:w.seekbarContent,children:[(0,rs.FD)(F,{sx:w.seekbarColumn,children:[(0,rs.FD)(F,{display:"flex",alignItems:"center",children:[(0,rs.Y)($e,{disabled:!y,checked:v,onChange:b,color:"primary",title:y?"Will focus around current step":"Focus mode is disabled because current step is not synced"}),(0,rs.Y)(tt,{children:"Focus mode"})]}),(0,rs.FD)(F,{sx:w.overlayWrapper,children:[(0,rs.Y)(GB,{startTime:u,endTime:c,markers:g,handleSeek:o}),(0,rs.Y)(NB,{value:s,min:u,max:c,step:100,onChange:o,isOutOfSync:d}),null]})]}),(0,rs.FD)(F,{sx:w.liveCaptureColumn,children:[(0,rs.Y)($B,{text:h?"Captured":"Capture live",condition:h}),(0,rs.Y)(ft,{variant:"outlined",onClick:a,size:"small",color:"primary","data-testid":Ng.SeekbarLiveButton,children:"Live"})]})]}),(0,rs.FD)(F,{sx:w.bottomBar,children:[d?(0,rs.Y)(Gt,{severity:"warning",sx:w.alert,children:"Events are not in sync."}):null,(0,rs.FD)(F,{sx:w.buttonsContainer,children:[(0,rs.Y)(ft,{onClick:p,size:"small",color:"primary",variant:"text",children:"Cancel"}),(0,rs.Y)(ft,{onClick:f,size:"small",color:"primary",variant:"text",children:"Save"})]})]})]}):null};function $B(e){let{text:t,condition:n}=e;return(0,rs.FD)(F,{sx:{display:"flex",alignItems:"center",gap:.5},children:[n?(0,rs.Y)(Hv,{color:"success",fontSize:"small"}):null,(0,rs.Y)(tt,{variant:"caption",children:t})]})}const QB=(e,t)=>{switch(e){case"active":return{border:"1.5px solid ".concat(t.palette.primary.main),background:t.palette.action.hover};case"inReplay":case"playing":return{border:"1.5px solid ".concat(t.palette.secondary.main)};case"error":return{border:"1.5px solid ".concat(t.palette.error.main),background:t.palette.error.light};default:return{border:"none",background:t.palette.background.paper}}},XB=e=>"step-list-item-".concat(e),JB=(e,t,n,r,o)=>QB(r?"error":e?"active":t&&n?"playing":t?"inReplay":"default",o),ZB=e=>{let{replayerActions:t,id:n,index:r,type:o}=e;return(0,rs.Y)(F,{sx:{width:"100%"},children:(0,rs.FD)(F,{children:[o===Zo.Action?(0,rs.Y)(oO,{componentId:XB(n),id:n,index:r,replayerActions:t}):null,o===Zo.Assertion?(0,rs.Y)(QC,{id:n,index:r,componentId:XB(n),replayerActions:t},n):null]})})},eV=e=>{let{replayerActions:t}=e;const{listRef:n,steps:r}=(()=>{const e=Jz(),t=(0,i.useRef)(null),n=sn(),{currentStep:r,paused:o}=AI(),a=r.id,s=null===e||void 0===e?void 0:e.id,l=Xz();return(0,i.useEffect)((()=>{let n=!1,r=s;a&&(r=a,n=!0);const i=(!e||(null===e||void 0===e?void 0:e.setOrigin)===Qo.Step)&&!n;if(!r||!t.current||i||o)return;const l=t.current,c=t.current.querySelector("#".concat(XB(r)));if(c){const e=l.getBoundingClientRect(),t=c.getBoundingClientRect();if(t.top>=e.top&&t.bottom<=e.bottom)return;const n=l.clientHeight,r=c.offsetTop-n/2+c.offsetHeight/2;requestAnimationFrame((()=>{l.scrollTo({top:r,behavior:"smooth"})}))}}),[s,a,n]),{listRef:t,steps:l}})();return(0,rs.Y)(F,{sx:{flexGrow:1,overflowY:"auto",display:"flex",flexDirection:"column",alignItems:"center",py:"8px",px:{xs:.5,md:1}},ref:n,children:r.map(((e,n)=>{let{id:r,type:o}=e;return(0,rs.Y)(ZB,{type:o,id:r,index:n,replayerActions:t},r)}))})};function tV(e){return(0,Ee.Ay)("MuiCard",e)}(0,L.A)("MuiCard",["root"]);const nV=["className","raised"],rV=(0,U.Ay)(Ot,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"}))),oV=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiCard"}),{className:r,raised:o=!1}=n,i=(0,x.A)(n,nV),a=(0,w.A)({},n,{raised:o}),s=(e=>{const{classes:t}=e;return(0,z.A)({root:["root"]},tV,t)})(a);return(0,R.jsx)(rV,(0,w.A)({className:(0,A.A)(s.root,r),elevation:o?8:void 0,ref:t,ownerState:a},i))})),iV=()=>{const e=Kt(),t=uV(),n=uW();return(0,i.useCallback)((async function(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{origin:Qo.Step,useTemporaryTab:!0};const i=await n(r),{stepData:a,step:s}=t.findStepDataById(i.id);if(o.switchToSnapshotTab){e(di());const t=a.timestamp;t&&yz.goBackTimeMachineByTimestamp(t)}s&&TW(a,s.type,e,origin,o.useTemporaryTab)}),[e,t,n])},aV=e=>{let{id:t,index:n,replayerActions:r}=e;const[o,a]=(0,i.useState)(!1),s=dn(),l=(()=>{const e=iV(),t=(0,i.useRef)(null);return(0,i.useEffect)((()=>()=>{t.current&&(clearTimeout(t.current),t.current=null)}),[]),(n,r)=>{const o=async t=>{try{await e(r,{origin:Qo.Step,useTemporaryTab:t,switchToSnapshotTab:!0})}catch(n){console.error("Failed to activate step:",n)}};if(2===n.detail)return t.current&&(clearTimeout(t.current),t.current=null),o(!1);t.current&&clearTimeout(t.current),t.current=setTimeout((()=>{t.current=null,o(!0)}),500)}})(),c=AI(),u=(0,i.useMemo)((()=>{var e;return{pausedOnError:c.pausedOnErrorStepId===t,pausedOnBreakpoint:c.pausedOnBreakpointStepId===t,isPlaying:t===(null===(e=c.currentStep)||void 0===e?void 0:e.id),hasBreakpoint:c.breakpoints[t],isWaitingForStepToPlay:c.stepsCurrentlyPlaying[t],isActive:(null===s||void 0===s?void 0:s.id)===t,formattedIndex:n+1}}),[null===s||void 0===s?void 0:s.id,t,c,n]),d=(0,i.useCallback)((e=>{(null===s||void 0===s?void 0:s.id)!==t&&l(e,t)}),[l,t,null===s||void 0===s?void 0:s.id]),f=(0,i.useCallback)((()=>{r.toggleBreakpoint(t)}),[t,r.toggleBreakpoint]),p=(0,i.useCallback)((e=>{r.playSingleStep(t,e)}),[r.playSingleStep,t]),h=(0,i.useCallback)((e=>{r.playFrom(t,e)}),[r.playFrom,t]),m=(0,i.useCallback)((e=>{r.playUntil(t,e)}),[r.playUntil,t]);return(0,g.A)({handleToggleBreakpoint:f,handlePlaySingleStep:p,handlePlayFrom:h,handlePlayUntil:m,handleClick:d,handleMouseEnter:()=>a(!0),handleMouseLeave:()=>a(!1),handleSkipCurrentStep:r.skipCurrentStep,isHovered:o},u)};let sV=function(e){return e.Steps="steps",e.Actions="actions",e.Assertions="assertions",e}({});const lV=new class{constructor(){this._actions={},this._steps=[],this._assertions={},this.updatedAt=Date.now(),this.eventListeners={}}on(e,t){return e.forEach((e=>{this.eventListeners[e]||(this.eventListeners[e]=[]),this.eventListeners[e].push(t)})),()=>{e.forEach((e=>{this.eventListeners[e]=this.eventListeners[e].filter((e=>e!==t))}))}}notifySubscribers(e){this.eventListeners[e]&&this.eventListeners[e].forEach((e=>e()))}set actions(e){this._actions=e,this.notifySubscribers(sV.Actions)}set steps(e){this._steps=e,this.notifySubscribers(sV.Steps)}set assertions(e){this._assertions=e,this.notifySubscribers(sV.Assertions)}get actions(){return this._actions}get steps(){return this._steps}get assertions(){return this._assertions}getStepIdAtIndex(e){var t;return null===(t=this._steps[e])||void 0===t?void 0:t.id}findIndexByStepId(e){return this._steps.findIndex((t=>{let{id:n}=t;return n===e}))}findStepById(e){return this._steps.find((t=>{let{id:n}=t;return n===e}))||null}findStepDataById(e){const t=this.findStepById(e);if(!t)return{step:null,assertion:null,action:null,stepData:null};if(t.type===Zo.Assertion){const e=this._assertions[t.id];return{assertion:e,action:this._actions[null===e||void 0===e?void 0:e.actionId],step:t,stepData:e}}if(t.type===Zo.Action){const e=this._actions[t.id];return{assertion:null,action:e,step:t,stepData:e}}throw new Error("[StepsStateUtils.findStepById] unknown step type")}findNextStepDataById(e){var t;const n=this._steps.findIndex((t=>{let{id:n}=t;return e===n}));return-1===n?{step:null,assertion:null,action:null,stepData:null}:this.findStepDataById(null===(t=this._steps.at(n+1))||void 0===t?void 0:t.id)}findActionBeforeStepById(e){const t=this.findStepIndex(e);if(-1===t)return null;for(let n=t-1;n>=0;n--){const e=this._steps.at(n);if(e&&e.type===Zo.Action)return this.findStepDataById(e.id).action}}findNextActionByStepId(e){const t=this.findStepIndex(e);if(-1===t)return null;for(let n=t+1;n<=this._steps.length;n++){const e=this._steps.at(n);if(e&&e.type===Zo.Action)return this.findStepDataById(e.id).action}}findAssertionsByActionId(e){const t=Object.values(this._assertions).filter((t=>{let{actionId:n}=t;return n===e})),n=t.map((e=>{let{id:t}=e;return t}));return{assertions:t,assertionIds:n}}findNeighbourStepId(e){var t,n;const r=this.findStepIndex(e);if(this._steps.length<=1||-1===r)return;const{step:o}=this.findStepDataById(e);switch(o.type){case Zo.Assertion:return null===(t=this._steps[r-1])||void 0===t?void 0:t.id;case Zo.Action:for(let e=r+1;e<this._steps.length;e++)if(this._steps[e].type===Zo.Action)return this._steps[e].id;return null===(n=this._steps[r-1])||void 0===n?void 0:n.id;default:return}}getAllStepsData(){return this.steps.map((e=>{let{id:t,type:n}=e;return n===Zo.Assertion?this.assertions[t]:n===Zo.Action?this.actions[t]:void 0}))}findLastAction(){var e;let t=null;for(let n=this._steps.length-1;n>=0;n--){const e=this._steps.at(n);if(e&&e.type===Zo.Action){t=e;break}}return this.findStepDataById(null===(e=t)||void 0===e?void 0:e.id).action}findStepIndex(e){return this._steps.findIndex((t=>{let{id:n}=t;return e===n}))}},cV=()=>{const e=hO(),t=(0,o.d4)(TC,o.bN),n=Xz();(0,i.useEffect)((()=>{lV.actions=e,lV.assertions=t,lV.steps=n}),[n,e,t])},uV=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[sV.Steps,sV.Actions,sV.Assertions];const[t,n]=(0,i.useState)(Date.now());return(0,i.useEffect)((()=>{const t=lV.on(e,(()=>n(Date.now())));return()=>t()}),[e]),lV},dV=e=>{let{id:t,onClose:n}=e;const r=uV([sV.Steps,sV.Actions]),{shouldShowActionHandlers:o,shouldShowAssertionHandlers:a}=(0,i.useMemo)((()=>((e,t)=>{if(!e)return{shouldShowAssertionHandlers:!1,shouldShowActionHandlers:!0};const{step:n}=t.findNextStepDataById(e);return n&&(null===n||void 0===n?void 0:n.type)!==Zo.Action?(null===n||void 0===n?void 0:n.type)===Zo.Assertion?{shouldShowAssertionHandlers:!0,shouldShowActionHandlers:!1}:void 0:{shouldShowAssertionHandlers:!0,shouldShowActionHandlers:!0}})(t,r)),[r,t]),{onAddAssertion:s,onAddAction:l,onAddCustomCode:c,onAddAssertionWithAi:u}=yW(),d=PC(t),f=mO(t),p=(0,i.useMemo)((()=>!!f&&Boolean(f.syncedWithNextStep&&u&&![Kk.Running,Kk.Failed].includes(null===d||void 0===d?void 0:d.status))),[f,null===d||void 0===d?void 0:d.status,u]),h=(0,i.useCallback)((()=>{null===s||void 0===s||s(t),n()}),[s,n,t]),m=(0,i.useCallback)((()=>{u({id:t}),n()}),[u,n,t]),g=(0,i.useCallback)((()=>{c(t),n()}),[c,n,t]),v=(0,i.useCallback)((()=>{l(t),n()}),[l,n,t]),{isRecording:y,recordSteps:b}=(()=>{const e=uV();return{isRecording:sn(),recordSteps:(0,i.useCallback)((t=>{const n=e.findStepById(t);e.findNextStepDataById(t).assertion&&!window.confirm("Next step is assertion and will be related to newly recorded steps. Record?")||yz.toggleOrSetShouldRecordActions({recordingOptions:{mode:Xo.InsertAfterStep,stepId:n.id}})}),[e.steps])}})();return{handleAddAction:v,handleAddAssertion:h,handleAddAssertionWithAI:m,handleAddCustomCode:g,shouldAllowAIAssertion:p,shouldShowAssertionHandlers:a,shouldShowActionHandlers:o,isRecording:y,handleRecordSteps:(0,i.useCallback)((()=>{b(t),n()}),[n,b,t])}},fV=e=>{let{id:t,anchorEl:n,onClose:r}=e;const{handleAddAction:o,handleAddAssertion:i,handleAddAssertionWithAI:a,handleAddCustomCode:s,shouldAllowAIAssertion:l,shouldShowAssertionHandlers:c,isRecording:u,handleRecordSteps:d}=dV({id:t,onClose:r});return(0,rs.Y)(F,{children:(0,rs.FD)(JE,{anchorEl:n,open:!!n,onClose:r,PaperProps:{sx:{minWidth:"200px"}},children:[c?[(0,rs.Y)(Og,{onClick:i,children:"Add Assertion"},"0"),l?(0,rs.Y)(Og,{onClick:a,children:"Add Assertion with AI"},"1"):null]:null,(0,rs.Y)(Og,{onClick:s,children:"Add Custom Code"}),(0,rs.Y)(Og,{onClick:o,children:"Add New Action"}),u?null:(0,rs.Y)(Og,{onClick:d,children:"Start Recording From Here"})]})})};var pV=__webpack_require__(4266);const hV=e=>{let{onClick:t}=e;return(0,rs.Y)(Lt,{onClick:t,sx:{padding:0,"&:hover":{backgroundColor:"transparent"}},"data-testid":Ng.OpenMenuIconButton,children:(0,rs.Y)(pV.A,{})})},mV=e=>{let{id:t,display:n}=e;const{handleClick:r,handleCloseMenu:o,open:a,anchorEl:s}=(()=>{const[e,t]=(0,i.useState)(null),n=Boolean(e);return{anchorEl:e,handleClick:(0,i.useCallback)((e=>{t(e.currentTarget)}),[]),handleCloseMenu:(0,i.useCallback)((()=>{t(null)}),[]),open:n}})();return(0,rs.FD)(F,{sx:{height:"32px",display:"flex",alignItems:"center",justifyContent:"center",opacity:n?1:0,visibility:n?"visible":"hidden",transition:"opacity 0.15s ease-in-out, visibility 0.15s ease-in-out"},children:[(0,rs.Y)(hV,{onClick:r}),(0,rs.Y)(fV,{id:t,anchorEl:s,onClose:o})]})},gV=e=>{let{id:t,index:n,replayerActions:r,componentId:o,Icon:i,displayText:a,playTooltipText:s,statusIcons:l,children:c,displayTextStyle:u,handleDelete:d}=e;const f=Ni(),{handleToggleBreakpoint:p,handlePlaySingleStep:h,handlePlayFrom:m,handlePlayUntil:v,handleClick:y,handleSkipCurrentStep:b,hasBreakpoint:w,isPlaying:x,isActive:A,pausedOnError:S,pausedOnBreakpoint:_,formattedIndex:k,isHovered:C,handleMouseLeave:E,handleMouseEnter:O,isWaitingForStepToPlay:T}=aV({id:t,index:n,replayerActions:r});return(0,rs.FD)("div",{onMouseEnter:O,onMouseLeave:E,"data-testid":"".concat(Ng.Step,"-").concat(n),"data-id":t,"data-active":A,children:[(0,rs.FD)(oV,{sx:(0,g.A)((0,g.A)({width:"100%",display:"flex",flexDirection:"column",p:1},JB(A,x,x,S,f)),{},{cursor:"pointer"}),id:o,onClick:y,children:[(0,rs.FD)(F,{sx:{display:"flex",gap:1,mb:1,justifyContent:"space-between"},children:[(0,rs.FD)(F,{sx:{display:"flex",gap:1,overflow:"hidden"},children:[(0,rs.Y)(i,{sx:{color:f.palette.text.secondary,fontSize:"20px",mt:"2px",flexShrink:0},"data-testid":Ng.StepIcon}),(0,rs.Y)(tt,{sx:(0,g.A)({fontSize:14,lineHeight:1.5,overflow:"hidden",flex:1,display:"-webkit-box",WebkitLineClamp:5,WebkitBoxOrient:"vertical",overflowWrap:"break-word"},u),color:"text.secondary",children:a})]}),l]}),c,(0,rs.FD)(F,{sx:{display:"flex",alignItems:"end",justifyContent:"end",height:24},children:[(0,rs.Y)(Ug,{onPlayStep:h,onPlayFrom:m,onPlayUntil:v,onToggleBreakpoint:p,onSkipCurrentStep:b,hasBreakpoint:w,isWaitingForStepToPlay:T,isHovered:C,playTooltipText:s,pausedOnError:S,pausedOnBreakpoint:_,handleDelete:d}),(0,rs.Y)(tt,{sx:{opacity:.7,fontSize:12,color:f.palette.text.secondary,ml:1},children:k})]})]}),(0,rs.Y)(F,{sx:{height:"32px"},children:(0,rs.Y)(mV,{id:t,display:C})})]})},vV=e=>{let{type:t,id:n,isTabActive:r,iterateAiStep:o,isAIIterateLoading:i,replayerActions:a}=e;const s=ln();return"main"===n?s?(0,rs.Y)(nI,{iterateAiStep:o,isLoading:i}):null:t===Zo.Action?(0,rs.Y)(IO,{id:n,isTabActive:r,replayerActions:a}):t===Zo.Assertion?(0,rs.Y)(OC,{id:n,isTabActive:r,replayerActions:a}):null};function yV(e){return e.substring(2).toLowerCase()}function bV(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:a="onTouchEnd"}=e,s=i.useRef(!1),l=i.useRef(null),c=i.useRef(!1),u=i.useRef(!1);i.useEffect((()=>(setTimeout((()=>{c.current=!0}),0),()=>{c.current=!1})),[]);const d=(0,pt.A)(dp(t),l),f=(0,Fm.A)((e=>{const t=u.current;u.current=!1;const r=(0,Rp.A)(l.current);if(!c.current||!l.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,r))return;if(s.current)return void(s.current=!1);let i;i=e.composedPath?e.composedPath().indexOf(l.current)>-1:!r.documentElement.contains(e.target)||l.current.contains(e.target),i||!n&&t||o(e)})),p=e=>n=>{u.current=!0;const r=t.props[e];r&&r(n)},h={ref:d};return!1!==a&&(h[a]=p(a)),i.useEffect((()=>{if(!1!==a){const e=yV(a),t=(0,Rp.A)(l.current),n=()=>{s.current=!0};return t.addEventListener(e,f),t.addEventListener("touchmove",n),()=>{t.removeEventListener(e,f),t.removeEventListener("touchmove",n)}}}),[f,a]),!1!==r&&(h[r]=p(r)),i.useEffect((()=>{if(!1!==r){const e=yV(r),t=(0,Rp.A)(l.current);return t.addEventListener(e,f),()=>{t.removeEventListener(e,f)}}}),[f,r]),(0,R.jsx)(i.Fragment,{children:i.cloneElement(t,h)})}const wV=e=>{let{children:t,methods:n,handleClickAway:r,formRef:o,gap:i=2}=e;return(0,rs.Y)(v_,(0,g.A)((0,g.A)({},n),{},{children:(0,rs.Y)(bV,{mouseEvent:"onMouseDown",touchEvent:"onTouchStart",onClickAway:()=>{r()},children:(0,rs.Y)(F,{component:"form",ref:o,sx:{display:"flex",flexDirection:"column",height:"100%",width:"100%",position:"relative",gap:i},children:t})})}))},xV=e=>{let{condition:t,wrapper:n,children:r}=e;return t?n(r):r},AV=e=>{let{onDelete:t,onSave:n,isSaving:r,isDirty:o,id:a,children:s}=e;const{isSeekbarActive:l,openSeekbar:c,captureLiveAndSave:u,disableDeleteButton:d}=(e=>{let{id:t}=e;const{openSeekbar:n,isSeekbarActive:r}=iB({stepId:t}),{captureLiveAndSave:o}=aB(),{currentStep:a,pauseState:s}=AI();return{captureLiveAndSave:o,openSeekbar:n,isSeekbarActive:r,disableDeleteButton:(0,i.useMemo)((()=>a.id===t&&!s.paused&&s.errorStepId!==t),[a.id,s.paused,s.errorStepId,t])}})({id:a}),f=(()=>{const e=Ni();return(0,i.useMemo)((()=>({container:(0,le.AH)({display:"flex",justifyContent:"space-between",alignItems:"center",gap:e.spacing(1),padding:e.spacing(1),borderTop:"1px solid ".concat(e.palette.divider),backgroundColor:e.palette.background.paper,height:e.spacing(5),width:"100%"},"",""),actionsContainer:(0,le.AH)({display:"flex",alignItems:"start",gap:e.spacing(1)},"",""),buttonsContainer:(0,le.AH)({width:"100%",display:"flex",gap:e.spacing(1),justifyContent:"end"},"","")})),[e])})();return(0,rs.FD)(F,{css:f.container,children:[(0,rs.Y)(F,{css:f.actionsContainer,children:s}),(0,rs.FD)(F,{css:f.buttonsContainer,children:[l?null:(0,rs.Y)(ft,{onClick:u,size:"small",variant:"text",disabled:l,children:"Live"}),(0,rs.Y)(ft,{onClick:c,size:"small",variant:"text",disabled:l,children:"Edit time"}),(0,rs.Y)(ft,{onClick:t,size:"small",variant:"text",disabled:d,"data-testid":"delete-step-button",children:"Delete"}),(0,rs.Y)(xV,{condition:!o,wrapper:e=>(0,rs.Y)(pm,{title:"No changes to save",children:(0,rs.Y)("span",{children:e})}),children:(0,rs.Y)(ZT,{variant:"text",color:"primary",loading:r,onClick:n,disabled:!o,size:"small","data-prevent-blur":!0,children:"Save"})})]})]})},SV=e=>{let{children:t,onBlur:n}=e;const r=jw().useCodeBasedSteps,o=(()=>{const e=Ni();return(0,i.useMemo)((()=>({wrapper:(0,le.AH)({display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",position:"sticky",bottom:0,overflow:"hidden",minHeight:e.spacing(5),zIndex:100},"","")})),[e])})(),a=(0,i.useCallback)((e=>{const t=e.target,r="BUTTON"===t.tagName?t:t.closest("button");r&&r.hasAttribute("data-prevent-blur")||null===n||void 0===n||n(!1,!1)}),[n]),s=e=>{let{children:t}=e;return(0,rs.Y)(F,{onClick:a,css:o.wrapper,children:t})};return(0,rs.Y)(xV,{condition:r,wrapper:e=>(0,rs.Y)(s,{children:e}),children:t})},_V=["name","methods","options","label","getOptionLabel","onChange","textFieldProps"],kV=e=>{let{name:t,methods:n,options:r,label:o,getOptionLabel:i=e=>e.label,onChange:a,textFieldProps:s}=e,l=(0,ns.A)(e,_V);const{control:c,register:u,formState:d,setValue:f,getValues:p}=n,h=p(t);return(0,rs.Y)(Wx,(0,g.A)((0,g.A)({},l),{},{options:r,getOptionLabel:i,value:r.find((e=>{let{value:t}=e;return t===h}))||null,onChange:(e,n)=>{var r;console.log("on matcher change",n,t);const o=null!==(r=null===n||void 0===n?void 0:n.value)&&void 0!==r?r:"toBeVisible";f(t,o,{shouldDirty:!0}),a&&a(n)},disableClearable:!0,renderInput:e=>(0,rs.Y)(DE,(0,g.A)((0,g.A)({},e),{},{name:t,label:o,fullWidth:!0,size:"small",register:u,errors:d.errors}))}))};var CV={name:"1o3nkn",styles:"margin-left:auto"};const EV=sp.injectEndpoints({endpoints:e=>({evaluateCode:e.mutation({query:e=>({method:"POST",body:e,url:"/evaluator/execute",successToastMessage:"Code evaluated successfully"})})})}),{useEvaluateCodeMutation:OV}=EV,TV=e=>{let{methods:t,options:n=[],useMatcher:r=!1,stepData:o,autocompleteInputProps:a={},label:s,disabled:l,Icon:c}=e;const u=r?"matcher":"eventCode",d=jw().useCodeBasedSteps,f=(0,i.useMemo)((()=>{try{let e=null===o||void 0===o?void 0:o[u];"string"===typeof e&&e.includes("(")&&(e=e.split("(")[0]);const t=n.find((t=>{let{value:n}=t;return n===e}));return null===t||void 0===t?void 0:t.label}catch(e){return}}),[n,u,o]),p=Jz(),[,{isLoading:h}]=OV({fixedCacheKey:null===p||void 0===p?void 0:p.id}),m=(()=>{const e=Ni();return(0,i.useMemo)((()=>({codeBasedStepLabel:(0,le.AH)({padding:e.spacing(.5),background:e.colors.ide.dark.background,color:e.colors.ide.dark.text,fontFamily:'Menlo, Monaco, "Courier New", monospace',width:"100%",paddingLeft:e.spacing(2),borderTop:"2px solid white",borderBottom:"1px solid grey",display:"flex",alignItems:"center",gap:8},"",""),evaluatingCodeCircularProgress:CV})),[e])})();return(0,rs.FD)(F,{sx:{display:"flex",gap:d?0:2,px:d?0:2,flexShrink:0,pt:d?0:2},children:[d?(0,rs.FD)(tt,{variant:"body2",css:m.codeBasedStepLabel,children:[c?(0,rs.Y)(c,{}):null,f,h?(0,rs.Y)(Ds,{styles:m.evaluatingCodeCircularProgress,circularProgressSize:14,children:"Evaluating..."}):null]}):(0,rs.Y)(F,{sx:{width:"400px",minWidth:"200px",maxWidth:"500px",flexShrink:0},children:(0,rs.Y)(kV,(0,g.A)((0,g.A)({name:u,methods:t,options:n,label:s},a),{},{disabled:l}))}),(0,rs.Y)(xV,{condition:d,wrapper:e=>(0,rs.Y)("div",{style:{display:"none"},children:e}),children:(0,rs.Y)(NE,{name:"thought",stepData:o,methods:t,maxRows:d?1:4})})]})},IV=e=>{var t;let{name:n,control:r,errors:o,action:i}=e;return(0,rs.FD)(F,{sx:{display:"flex",flexDirection:"column"},children:[(0,rs.Y)(O_,{name:n,control:r,rules:{required:"File is required"},render:e=>{let{field:{onChange:t,onBlur:r}}=e;return(0,rs.FD)(rs.FK,{children:[(0,rs.FD)(ft,{variant:"contained",component:"label",children:["Upload File",(0,rs.Y)("input",{type:"file",hidden:!0,multiple:!0,onChange:e=>{const n=Array.from(e.target.files);t(n)},onBlur:r})]}),o[n]&&(0,rs.Y)(tt,{color:"error",variant:"body2",children:o[n]})]})}}),(0,rs.FD)(tt,{variant:"body1",children:["Selected files: ",null===(t=i.files)||void 0===t?void 0:t.map((e=>e))]})]})},RV="200px",PV="500px",MV="400px",DV=["styles","errors","register","registerOptions","required","info","name","label","hasErrorMessage","options"],LV=(0,i.forwardRef)(((e,t)=>{var n;const{styles:r,errors:o,register:i,registerOptions:a,required:s,info:l,name:c,label:u,hasErrorMessage:d,options:f}=e,p=(0,ns.A)(e,DV),{FormHelperTextPropsSX:h,InputPropsSX:m,errorEnabledField:v}=PE(!!d);return(0,rs.FD)(UA,{fullWidth:!0,error:!(null===o||void 0===o||!o[c]),css:[v,r,"",""],ref:t,children:[u&&(0,rs.FD)(NA,{htmlFor:c,children:[u,s&&" *"]}),(0,rs.Y)(xS,(0,g.A)((0,g.A)({},p),{},{id:c,name:c,inputProps:(0,g.A)({},i?i(c,a):{}),sx:(0,g.A)((0,g.A)({},m),p.sx),children:f.map((e=>(0,rs.Y)(Og,{value:e.value,children:e.label},e.value)))})),d&&(0,rs.Y)(KA,{sx:h,children:null===o||void 0===o||null===(n=o[c])||void 0===n?void 0:n.message})]})})),jV={minimap:{enabled:!1},fontSize:16,tabSize:2,fixedOverflowWidgets:!0,wordWrap:"on"},NV=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"page",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return BV.map((o=>({label:o.label,kind:e.languages.CompletionItemKind.Snippet,insertText:"".concat(r?"await ":"").concat(n,".").concat(o.insertText),insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:void 0,command:(0,Kb.merge)({},t,{arguments:[{columnOffset:o.columnOffset+n.length+(r?6:0)}]})})))},FV=(e,t)=>zV.map((n=>({label:n.label,kind:e.languages.CompletionItemKind.Snippet,insertText:n.insertText,insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:void 0,command:(0,Kb.merge)({},t,{arguments:[{columnOffset:n.columnOffset}]})}))),zV=[{label:"Assert visible",insertText:'await expect(page., "").toBeVisible()',columnOffset:18},{label:"Assert to be",insertText:"await expect(page.).toBe(true)",columnOffset:18}],BV=[{label:"Get by text",insertText:'getByText("")',columnOffset:12},{label:"Get by role",insertText:'getByRole("")',columnOffset:12}];class VV{constructor(){this.registeredProviders=new Map,this.importedLibraries=new Map,this.registeredEditorEvents=new Map,this.registeredCompletionItemProviders=new Map}static getInstance(){return VV.instance||(VV.instance=new VV),VV.instance}isProviderRegistered(e,t){var n;const r=this.registeredProviders.get(e);return null!==(n=null===r||void 0===r?void 0:r.has(t))&&void 0!==n&&n}markProviderAsRegistered(e,t){this.registeredProviders.has(e)||this.registeredProviders.set(e,new Set),this.registeredProviders.get(e).add(t)}isLibraryImported(e){var t;return null!==(t=this.importedLibraries.get(e))&&void 0!==t&&t}markLibraryAsImported(e){this.importedLibraries.set(e,!0)}isEditorEventRegistered(e,t){var n;const r=this.registeredEditorEvents.get(e);return null!==(n=null===r||void 0===r?void 0:r.has(t))&&void 0!==n&&n}markEditorEventAsRegistered(e,t){this.registeredEditorEvents.has(e)||this.registeredEditorEvents.set(e,new Set),this.registeredEditorEvents.get(e).add(t)}isCompletionItemProviderRegistered(e){var t;return null!==(t=this.registeredCompletionItemProviders.get(e))&&void 0!==t&&t}markCompletionItemProviderAsRegistered(e){this.registeredCompletionItemProviders.set(e,!0)}reset(){this.registeredProviders.clear(),this.importedLibraries.clear(),this.registeredEditorEvents.clear(),this.registeredCompletionItemProviders.clear()}}VV.instance=void 0;const UV=VV,WV=()=>{const e=Jz(),t=hO(),n=Xz(),r=eB(),o=(0,i.useMemo)((()=>{const r=[];for(const o of n)if(t[o.id]&&t[o.id].eventCode===Fv.Qy.CustomCode&&r.push(o.id),o.id===(null===e||void 0===e?void 0:e.id))break;return r}),[n,t,e]),a=(0,i.useMemo)((()=>o.map((e=>r[e]))),[o,r]),s=(0,i.useMemo)((()=>(e=>{const t=/\b(?:variableStore|vs)\.(\w+)\s*=/g;return Array.from(new Set(e.filter((e=>!!e)).flatMap((e=>Array.from(e.matchAll(t)).map((e=>e[1]))))))})(a)),[a]);return"import type { StepVariableStore as StepVS } from 'variableStoreIntellisense';\n\ndeclare global {\n interface StepVariableStore extends StepVS {\n [key: string]: any;\n ".concat(s.map((e=>"".concat(e,": any;"))).join("\n "),"\n }\n const vs: StepVariableStore;\n const variableStore: StepVariableStore;\n}\n")},qV=e=>{let{editorRef:t,type:n}=e;const r=WT(),[o]=Ew(),a=WV(),[s,l]=(0,i.useState)(null),c=(0,i.useCallback)(((e,t,r,o)=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0;return[...n?[]:[{label:"Compound Selection",kind:e.languages.CompletionItemKind.Snippet,insertText:"".concat(r?"":"await ","page.compoundSelection(base => [])"),insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:void 0,command:(0,Kb.merge)({},t,{arguments:[{columnOffset:32+(r?0:6)}]})}],...NV(e,t,n?"base":"page",!n&&!r&&o!==Zo.Assertion),...n?[]:FV(e,t)]}(e,t,r,o,n)),[r,n]),u=function(e){var t,n;let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=r.editor.getEditors()[0];if(!i||null!==(t=i.getModel())&&void 0!==t&&null!==(n=t.isDisposed)&&void 0!==n&&n.call(t))return!1;return i.getModel().getValueInRange({startLineNumber:o?e.lineNumber:Math.max(e.lineNumber-3,1),startColumn:1,endLineNumber:e.lineNumber,endColumn:e.column})},d=(0,i.useCallback)(((e,t)=>{t.editor.defineTheme("vscode-dark-plus",{base:"vs-dark",inherit:!0,rules:[{token:"comment",foreground:"#6A9955"},{token:"keyword",foreground:"#569CD6"},{token:"identifier",foreground:"#9CDCFE"},{token:"string",foreground:"#CE9178"},{token:"number",foreground:"#B5CEA8"},{token:"type",foreground:"#4EC9B0"},{token:"function",foreground:"#DCDCAA"},{token:"variable",foreground:"#9CDCFE"},{token:"operator",foreground:"#D4D4D4"},{token:"predefined",foreground:"#C586C0"}],colors:{"editor.foreground":"#D4D4D4","editor.background":"#1E1E1E","editorCursor.foreground":"#A0A0A0","editor.lineHighlightBackground":"#2E2E2E","editor.selectionBackground":"#264F78","editor.inactiveSelectionBackground":"#3A3D41"}}),t.editor.setTheme("vscode-dark-plus")}),[]);return(0,i.useEffect)((()=>{const e=t.current;if(e&&r){r.languages.typescript.typescriptDefaults.setDiagnosticsOptions({diagnosticCodesToIgnore:[1375]}),r.languages.typescript.typescriptDefaults.setCompilerOptions({target:r.languages.typescript.ScriptTarget.ESNext,allowNonTsExtensions:!0,moduleResolution:r.languages.typescript.ModuleResolutionKind.NodeJs,module:r.languages.typescript.ModuleKind.ESNext,allowTopLevelAwait:!0}),e.getContribution("editor.contrib.suggestController").widget.value._setDetailsVisible(!0);const n=UV.getInstance(),o="slash-completion";n.isProviderRegistered("typescript",o)||(r.languages.registerCompletionItemProvider("typescript",{triggerCharacters:["/"],provideCompletionItems:(e,t,n,o)=>{if(o.isCancellationRequested)return{suggestions:[]};try{if(!e.getValueInRange({startLineNumber:t.lineNumber,startColumn:1,endLineNumber:t.lineNumber,endColumn:t.column}).endsWith("/"))return{suggestions:[]};const n={id:"remove-slash",title:"Remove Slash",arguments:[{range:{startLineNumber:t.lineNumber,endLineNumber:t.lineNumber,startColumn:t.column-1,endColumn:t.column}}]},o=(e=>{const t=u(e,!0);return!!t&&/(await\s+page\.)?(compoundSelection\(base\s*=>\s*\[?\s*(?:[^[\]()]*|\([^()]*\)?)*$)/.test(t)})(t),i=(e=>{const t=u(e);return!!t&&/=>\s*(?:[^{}\n]*(?:\([^()]*\)?)*)*$/.test(t)})(t);return{suggestions:c(r,n,o,i)}}catch(i){return i instanceof r.CancellationError||console.error(i),{suggestions:[]}}}}),r.editor.registerCommand("remove-slash",((e,n)=>{setTimeout((()=>{try{var e,o;if(!r||!t.current)return;const i=r.editor.getEditors()[0];if(!i||null!==(e=i.getModel())&&void 0!==e&&null!==(o=e.isDisposed)&&void 0!==o&&o.call(e))return;const a=i.getModel(),{range:s,columnOffset:l}=n;if(a&&s){a.pushEditOperations([],[{range:new r.Range(s.startLineNumber,s.startColumn,s.endLineNumber,s.endColumn),text:""}],(()=>null));const e={lineNumber:s.startLineNumber,column:s.startColumn+l};setTimeout((()=>{i.setPosition(e),i.revealPositionInCenter(e)}),0)}}catch(i){"Canceled"===(null===i||void 0===i?void 0:i.name)||i instanceof r.CancellationError||console.error("remove-slash failed:",i)}}),0)})),n.markProviderAsRegistered("typescript",o))}}),[r,t,c]),(0,i.useEffect)((()=>{(async()=>{if(!r)return;const e=UV.getInstance(),t=ei.Checksum;if(!e.isLibraryImported(t))try{(await o({libs:[ei.Checksum]}).unwrap()).types.forEach((e=>{r.languages.typescript.typescriptDefaults.addExtraLib(e.content,e.filePath)})),e.markLibraryAsImported(t)}catch(n){console.error(n)}})(),(async()=>{if(!r)return;s&&s.dispose();const e=r.languages.typescript.typescriptDefaults.addExtraLib(a,"ts:variableStore.d.ts");l(e)})()}),[r,o,a]),{defineMonacoWorker:d}},HV=e=>{const{onRefsChange:t}=e,n=(0,i.useRef)(null),{width:r,height:o}=(e=>{const[t,n]=(0,i.useState)(600),[r,o]=(0,i.useState)(200),a=$b(n,500),s=$b(o,500);return(0,i.useEffect)((()=>{const t=e.current;if(!t)return;const r=t.getBoundingClientRect().width,i=t.getBoundingClientRect().height;n(r),o(i);const l=new ResizeObserver((e=>{for(let t of e)a(t.contentRect.width),s(t.contentRect.height)}));return l.observe(t),()=>l.disconnect()}),[a,s,e]),{width:"".concat(t-40,"px"),height:"".concat(r,"px")}})(n),{onRefsChange:a}=(()=>{const e=(0,i.useRef)(null),t=sn(),[n,r]=(0,i.useState)(null),o=Jz(),[a]=OV({fixedCacheKey:null===o||void 0===o?void 0:o.id});(0,i.useEffect)((()=>{const n=e.current;if(!n)return;const r=e=>{if(e.shiftKey&&"Enter"===e.key){const r=n.getSelection();if(r){e.preventDefault();const o=n.getModel().getValueInRange(r);t&&yz.toggleOrSetShouldRecordActions({recordingOptions:{mode:Xo.InsertLast},shouldRecordActions:!1,message:"Recording stopped"}),a({code:o})}}},o=n.getDomNode();return o&&o.addEventListener("keydown",r),()=>{o&&o.removeEventListener("keydown",r)}}),[n,a,t]);const s=(0,i.useCallback)((t=>{let{editor:n,monacoInstance:o,monaco:i}=t;n&&(e.current=n,r(n)),o&&(i.current=o)}),[]);return{onRefsChange:s}})(),s=(0,i.useCallback)((e=>{let{editor:n,monacoInstance:r,monaco:o}=e;t&&t({editor:n,monacoInstance:r,monaco:o}),a({editor:n,monacoInstance:r,monaco:o})}),[a,t]),{onMount:l,editorRef:c,monacoRef:u,monaco:d}=(e=>{let{type:t,onRefsChange:n}=e;const r=(0,i.useRef)(null),o=(0,i.useRef)(null),a=WT(),{defineMonacoWorker:s}=qV({editorRef:r,type:t}),l=(0,i.useCallback)(((e,t)=>{r.current=e,o.current=t,s(e,t),null===n||void 0===n||n({editor:e,monacoInstance:t,monaco:t})}),[n,s]);return(0,i.useEffect)((()=>{n&&n({editor:r.current,monacoInstance:o.current,monaco:a})}),[a,n]),{monaco:a,onMount:l,editorRef:r,monacoRef:o}})((0,g.A)((0,g.A)({},e),{},{onRefsChange:s}));return{wrapperRef:n,width:r,height:o,onMount:l,editorRef:c,monacoRef:u,monaco:d,editorInstance:c.current}};var YV={name:"enxmnl",styles:'.codicon-account:before{content:"\\ec10"!important;width:16px;height:16px;}'},GV={name:"1fttcpj",styles:"display:flex;flex-direction:column"},KV={name:"mf3i44",styles:"height:fit-content;width:40px;padding:10px;flex:0 0 40px"},$V={name:"422zza",styles:".monaco-editor .suggest-widget{z-index:20;}.editorLocatorMarker{text-decoration:underline dotted gray;text-underline-offset:2px;font-style:italic;}"},QV={name:"1ycm4va",styles:"flex:1 1 auto;min-width:0"};const XV=Jr({name:"logs",initialState:{feLogs:[],beLogs:[],maxLogs:500,isLogsVisible:!1,width:300},reducers:{addLog:(e,t)=>{const n=(0,g.A)((0,g.A)({},t.payload),{},{id:"".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9))});"FE"===n.source?(e.feLogs.push(n),e.feLogs.length>e.maxLogs&&(e.feLogs=e.feLogs.slice(-e.maxLogs))):"BE"===n.source&&(e.beLogs.push(n),e.beLogs.length>e.maxLogs&&(e.beLogs=e.beLogs.slice(-e.maxLogs)))},clearLogs:e=>{e.feLogs=[],e.beLogs=[]},setMaxLogs:(e,t)=>{e.maxLogs=t.payload,e.feLogs.length>e.maxLogs&&(e.feLogs=e.feLogs.slice(-e.maxLogs)),e.beLogs.length>e.maxLogs&&(e.beLogs=e.beLogs.slice(-e.maxLogs))},toggleLogsVisibility:e=>{e.isLogsVisible=!e.isLogsVisible},setWidth:(e,t)=>{e.width=t.payload}}}),{addLog:JV,clearLogs:ZV,setMaxLogs:eU,toggleLogsVisibility:tU,setWidth:nU}=XV.actions,rU=XV.reducer,oU=e=>e.logs.feLogs,iU=e=>e.logs.beLogs,aU=e=>[...e.logs.feLogs,...e.logs.beLogs],sU=(hl([aU,(e,t)=>t],((e,t)=>e.filter((e=>e.level===t)))),hl([aU,(e,t)=>t],((e,t)=>e.slice(-t))),e=>e.logs.width);var lU={name:"fbywzj",styles:"font-size:0.75rem;margin:0;& .MuiFormControlLabel-label{font-size:0.75rem;}"},cU={name:"3bjztn",styles:"font-size:11px;font-family:'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;word-break:keep-all;white-space:nowrap;flex-shrink:0"},uU={name:"7zbxzd",styles:"flex:1;overflow:hidden;display:flex;flex-direction:column"};const dU=()=>{const e=Jz(),t=(0,o.d4)(oU),n=(0,o.d4)(iU),r=(0,o.d4)(sU),a=(0,o.wA)(),[s,l]=(0,i.useState)(!0),[c,u]=(0,i.useState)(!0),d=(0,i.useRef)(null),f=(0,i.useRef)(!1),p=(0,i.useRef)(null),h=(0,i.useMemo)((()=>{const e=[];return s&&e.push(...t),c&&e.push(...n),e}),[t,n,s,c]);(0,i.useEffect)((()=>{p.current&&(p.current.scrollTop=p.current.scrollHeight)}),[h]);const m=(0,i.useCallback)((e=>{var t,n;if(!f.current)return;const r=null===(t=d.current)||void 0===t||null===(n=t.parentElement)||void 0===n?void 0:n.getBoundingClientRect();if(!r)return;const o=r.right-e.clientX;o>=200&&o<=800&&a(nU(o))}),[a]),g=(0,i.useCallback)((()=>{f.current=!1,document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",g)}),[m]),v=(0,i.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),f.current=!0,document.addEventListener("mousemove",m),document.addEventListener("mouseup",g)}),[m,g]),y=(0,i.useCallback)((()=>{l((e=>!e))}),[]),b=(0,i.useCallback)((()=>{u((e=>!e))}),[]);return{handleClearLogs:()=>{a(ZV())},getLogLevelColor:(0,i.useCallback)((e=>{switch(e){case"error":return"#ef4444";case"warn":return"#f59e0b";case"info":return"#3b82f6";case"debug":return"#8b5cf6";default:return"#6b7280"}}),[]),formatTimestamp:e=>{const t=new Date(e);return"[".concat(t.toLocaleTimeString([],{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}),"]")},activeStep:e,logs:h,width:r,resizeRef:d,logsListRef:p,handleMouseDown:v,showFELogs:s,showBELogs:c,handleFELogsToggle:y,handleBELogsToggle:b}},fU=()=>{const{handleClearLogs:e,getLogLevelColor:t,formatTimestamp:n,activeStep:r,logs:o,width:a,resizeRef:s,logsListRef:l,handleMouseDown:c,showFELogs:u,showBELogs:d,handleFELogsToggle:f,handleBELogsToggle:p}=dU(),h=(e=>{let{width:t}=e;const n=Ni(),r=(0,i.useCallback)((e=>(0,le.AH)({wordBreak:"break-all",whiteSpace:"pre-wrap",fontWeight:400,fontSize:"12px",fontFamily:"'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace",lineHeight:1.4,color:e,display:"flex",gap:n.spacing(1),minWidth:0,width:"100%",overflowWrap:"break-word",alignItems:"baseline"},"","")),[n]),o=(0,i.useMemo)((()=>{const e=(0,le.AH)({width:"".concat(t,"px"),height:"calc(100% - 40px)",display:"flex",flexDirection:"column",borderLeft:"1px solid ".concat(n.palette.divider),backgroundColor:n.palette.background.paper,position:"absolute",right:"40px",top:0,bottom:0,zIndex:1e3,boxShadow:"-2px 0 8px rgba(0, 0, 0, 0.1)"},"",""),r=(0,le.AH)({display:"flex",alignItems:"center",justifyContent:"space-between",padding:n.spacing(0,.5),borderBottom:"1px solid ".concat(n.palette.divider),backgroundColor:n.palette.grey[50],height:"35px"},"",""),o=(0,le.AH)({fontSize:"0.875rem",fontWeight:600,color:n.palette.text.primary,margin:0},"",""),i=uU,a=(0,le.AH)({flex:1,overflowY:"auto",overflowX:"hidden",padding:n.spacing(1)},"",""),s=(0,le.AH)({marginBottom:n.spacing(.5),fontSize:"13px",fontFamily:"'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace",lineHeight:1.4},"",""),l=cU,c=(0,le.AH)({flex:1,minWidth:0,margin:"".concat(n.spacing(.25)," 0"),wordBreak:"break-all",overflowWrap:"break-word",whiteSpace:"pre-wrap"},"",""),u=(0,le.AH)({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",color:"dark"===n.palette.mode?"#a0a0a0":n.palette.text.secondary,textAlign:"center",padding:n.spacing(2)},"",""),d=(0,le.AH)({fontSize:"0.875rem",marginBottom:n.spacing(.5)},"",""),f=(0,le.AH)({fontSize:"0.75rem",color:n.palette.text.disabled},"",""),p=(0,le.AH)({position:"absolute",left:0,top:0,bottom:0,width:"2px",cursor:"col-resize",backgroundColor:"transparent",transition:"background-color 0.2s ease",zIndex:1001,"&:hover":{backgroundColor:n.palette.primary.main},"&:active":{backgroundColor:n.palette.primary.dark}},"","");return{panel:e,header:r,headerTitle:o,headerControls:(0,le.AH)({display:"flex",alignItems:"center",gap:n.spacing(1)},"",""),formControlLabel:lU,content:i,logsList:a,logItem:s,logTimestamp:l,logMessage:c,emptyState:u,emptyStateText:d,emptyStateSubtext:f,resizeHandle:p}}),[n,t]);return(0,g.A)({getLogMessage:r},o)})({width:a});return(0,rs.FD)(F,{css:h.panel,children:[(0,rs.FD)(F,{css:h.header,children:[(0,rs.Y)(tt,{css:h.headerTitle,children:"Console Logs"}),(0,rs.FD)(F,{css:h.headerControls,children:[null,(0,rs.Y)(pm,{title:"Clear all logs",children:(0,rs.Y)(Lt,{size:"small",onClick:e,disabled:!o.length,children:(0,rs.Y)(Ig,{fontSize:"small"})})})]})]}),(0,rs.Y)(F,{css:h.content,children:0===o.length?(0,rs.FD)(F,{css:h.emptyState,children:[(0,rs.Y)(tt,{css:h.emptyStateText,children:"No console logs yet"}),(0,rs.Y)(tt,{css:h.emptyStateSubtext,sx:{maxWidth:350},children:"You'll start seeing the log stream once steps using console will be played or when errors are encountered"})]}):(0,rs.Y)(F,{css:h.logsList,ref:l,children:o.map((e=>(0,rs.Y)(F,{css:h.logItem,children:(0,rs.FD)(F,{css:h.getLogMessage(t(e.level)),children:[(0,rs.Y)("span",{css:h.logTimestamp,children:n(e.timestamp)}),(0,rs.Y)(yv,{styles:h.logMessage,children:e.message})]})},e.id)))})}),(0,rs.Y)("div",{ref:s,css:h.resizeHandle,onMouseDown:c})]})};var pU=__webpack_require__(5070);const hU=e=>{let{active:t=!1,tooltipMessage:n=(t?"Click to hide logs":"Click to see logs"),handleClick:r,buttonStyles:o}=e;const i=mU({active:t,buttonStyles:o});return(0,rs.Y)(pm,{title:n,children:(0,rs.Y)(Lt,{onClick:r,css:i.button,"data-testid":Ng.ToggleLogsButton,children:(0,rs.Y)(pU.A,{})})})},mU=e=>{let{active:t,buttonStyles:n}=e;return(0,i.useMemo)((()=>({button:(0,le.AH)({color:t?"#1976d2":"gray"},n,"","")})),[t,n])},gU=e=>{let{name:t,type:n,control:r,onRefsChange:o,onToggleLogs:a,logsVisible:s=!1}=e;const{wrapperRef:l,width:c,height:u,onMount:d}=HV({type:n,name:t,control:r,onRefsChange:o}),f=(()=>{const e=Ni();return(0,i.useMemo)((()=>({container:(0,le.AH)({display:"flex",width:"100%",height:"100%",background:e.colors.ide.dark.background,gap:e.spacing(1.25)},"",""),editorInlineStyles:$V,editorWrapper:QV,inspectButton:KV,monacoAiIconStyle:YV,buttonsContainer:GV})),[e])})();return GT?(0,rs.FD)(F,{css:f.container,ref:l,children:[(0,rs.FD)(F,{css:f.editorWrapper,children:[(0,rs.Y)(le.mL,{styles:f.monacoAiIconStyle}),(0,rs.Y)(O_,{name:t,control:r,render:e=>{let{field:t}=e;return(0,rs.Y)(GT,{loading:(0,rs.Y)(vU,{backgroundColor:"black"}),value:t.value,defaultValue:"",onChange:t.onChange,onMount:d,css:f.editorInlineStyles,width:c,height:u,options:jV,theme:"checksum",defaultLanguage:"typescript",className:"custom-code-input"})}})]}),(0,rs.FD)(F,{css:f.buttonsContainer,children:[(0,rs.Y)(kC,{buttonStyles:f.inspectButton}),(0,rs.Y)(hU,{active:s,handleClick:a,buttonStyles:f.inspectButton})]})]}):null},vU=e=>{let{backgroundColor:t="black"}=e;return(0,rs.Y)("div",{style:{width:"100%",height:"100%",backgroundColor:t}})},yU=e=>{var t;let{type:n,field:r,methods:o,action:a,isTabActive:s,trackActiveLocatorFieldToSetValueFromInspector:l,isAssertionValid:c=!1,assertion:u,fieldNamePrefix:d}=e;const{additionalSXStyles:f,control:p,fieldName:h,errors:m}=(e=>{let{methods:t,type:n,field:r,isAssertionValid:o,fieldNamePrefix:a}=e;const{control:s,formState:{errors:l}}=t,c=(0,i.useMemo)((()=>n===Zo.Action?{}:{"& .MuiOutlinedInput-root":{"& fieldset":{borderColor:!0===o?"green":!1===o?"red":"inherit"}}}),[n]);return{control:s,errors:l,fieldName:(0,i.useMemo)((()=>function(e,t){return t&&arguments.length>2&&void 0!==arguments[2]&&arguments[2]?"".concat(t,".").concat(e):e}(r.name,a,r.usePrefixFieldNamePrefix)),[r,a]),additionalSXStyles:c}})({methods:o,field:r,fieldNamePrefix:d,type:n,isAssertionValid:c});return r.type===Ub.Code?(0,rs.Y)(gU,{name:h,control:p,type:n}):r.type===Ub.Locator?(0,rs.Y)(F,{sx:{width:MV,minWidth:RV,maxWidth:PV},children:(0,rs.Y)(CC,{name:h,alternatesName:"dropTargetLocator"===h?"dropTargetAlternateLocators":"alternateLocators",target:{type:null!==u&&void 0!==u&&u.id?Yw.Assertion:"dropTargetLocator"===r.name?Yw.DropTarget:Yw.Action,id:null!==(t=null===u||void 0===u?void 0:u.id)&&void 0!==t?t:null===a||void 0===a?void 0:a.id},label:"Locator",onArrowClick:()=>null===l||void 0===l?void 0:l(h),isActive:s,stepData:null!==u&&void 0!==u&&u.id?u:a})}):r.type===Ub.Checkbox?(0,rs.Y)(O_,{name:h,control:p,render:e=>{let{field:t}=e;return(0,rs.Y)(Ga,{control:(0,rs.Y)($e,(0,g.A)((0,g.A)({},t),{},{checked:!!t.value,onChange:e=>o.setValue(h,e.target.checked,{shouldDirty:!0})})),label:r.label})}},h):r.type===Ub.File?(0,rs.Y)(IV,{name:h,control:p,errors:m,action:a}):[Ub.Text,Ub.Number].includes(r.type)?(0,rs.Y)(F,{sx:(0,g.A)({width:MV,minWidth:RV,maxWidth:PV},f),children:(0,rs.Y)(O_,{name:h,control:p,render:e=>{var t;let{field:n}=e;return(0,rs.Y)(DE,(0,g.A)((0,g.A)({},n),{},{label:r.label,fullWidth:!0,size:"small",errors:m,type:r.type,helperText:null===(t=m[h])||void 0===t?void 0:t.message,multiline:!0,maxRows:4}))}})},h):r.type===Ub.Dropdown?(0,rs.Y)(F,{sx:(0,g.A)({width:MV,minWidth:RV,maxWidth:PV},f),children:(0,rs.Y)(O_,{name:h,control:p,render:e=>{var t;let{field:n}=e;return(0,rs.Y)(LV,(0,g.A)((0,g.A)({},n),{},{label:r.label,fullWidth:!0,size:"small",errors:m,options:r.options,hasErrorMessage:!0,helperText:null===(t=m[h])||void 0===t?void 0:t.message}))}})},h):null},bU=e=>{let{methods:t,action:n,trackActiveLocatorFieldToSetValueFromInspector:r,isTabActive:o,dynamicFieldsGrouped:a,isAssertionValid:s=!0,assertion:l,type:c,fieldNamePrefix:u}=e;const d=(0,i.useMemo)((()=>c===Zo.Action&&n.eventCode===Fv.Qy.CustomCode?1:0),[c,null===n||void 0===n?void 0:n.eventCode]);return(0,rs.Y)(F,{sx:{flexGrow:1,overflow:"auto",px:2,display:"flex",flexDirection:"column",gap:2,pb:2,pt:1},children:Object.keys(a).map((e=>(0,rs.Y)(F,{sx:{display:"flex",gap:"16px",flexGrow:d},children:a[e].map(((e,i)=>(0,rs.Y)(yU,{action:n,field:e,methods:t,type:c,trackActiveLocatorFieldToSetValueFromInspector:r,isTabActive:o,isAssertionValid:s,assertion:l,fieldNamePrefix:u},i+e.name)))},e)))})},wU=e=>{let{message:t,onClick:n}=e;return(0,rs.Y)(pm,{title:t,children:(0,rs.Y)($C.A,{onClick:n})})};let xU=function(e){return e.Locator="locator",e.Thought="thought",e}({});const AU=()=>{const e=(()=>{const e=Ni();return(0,i.useMemo)((()=>({container:(0,le.AH)({position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(255, 255, 255, 0.7)",borderRadius:e.spacing(.5)},"","")})),[e])})();return(0,rs.Y)(F,{css:e.container,children:(0,rs.Y)(Ds,{circularProgressSize:26,children:"Saving code..."})})};var SU={name:"o8pjdc",styles:"display:flex;align-items:center;flex-direction:column;height:100%"};const _U=(0,Fe.A)((0,R.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),kU=(0,Fe.A)((0,R.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");var CU=__webpack_require__(7253),EU=__webpack_require__(7705);var OU={name:"qm1jzy",styles:"display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center"},TU={name:"1066lcq",styles:"display:flex;justify-content:space-between;align-items:center"};const IU=e=>{let{suggestion:t,onAccept:n,onReject:r,index:o,length:a}=e;const{handleReject:s,handleAccept:l,handleCopy:c,copyTooltipMessage:u,count:d}=(e=>{let{onReject:t,onAccept:n,suggestion:r,length:o,index:a}=e;const{isCopied:s,handleCopy:l}=nv({preventDefault:!0,text:r.value}),c=(0,i.useMemo)((()=>s?"Copied":"Copy"),[s]),u=(0,i.useMemo)((()=>o<2?void 0:"(".concat(a+1,"/").concat(o,")")),[o,a]);return{handleReject:(0,i.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),t(e,r.type)}),[t,r.type]),handleAccept:(0,i.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),n(e,r.type,r.value)}),[n,r]),handleCopy:l,copyTooltipMessage:c,preventBlur:(0,i.useCallback)((e=>{e.preventDefault()}),[]),count:u}})({onAccept:n,onReject:r,suggestion:t,length:a,index:o}),f=(e=>{let{index:t}=e;const n=Ni();return(0,i.useMemo)((()=>{const e=(0,le.AH)({height:60,padding:n.spacing(.2),borderRadius:n.spacing(1),display:"flex",gap:n.spacing(1)},"",""),t=TU,r=OU;return{container:e,suggestionContent:(0,le.AH)({backgroundColor:n.colors.white,padding:"".concat(n.spacing(1)," ").concat(n.spacing(1)),borderRadius:n.spacing(1),display:"flex",alignItems:"center",justifyContent:"center",overflow:"auto",whiteSpace:"normal",wordBreak:"break-word",flexWrap:"wrap",minWidth:"360px"},"",""),contentWrapper:t,titleContentWrapper:r}}),[n])})({index:o});return(0,rs.FD)(F,{css:f.container,children:[(0,rs.FD)(F,{css:f.titleContentWrapper,children:[(0,rs.FD)(tt,{variant:"body2",fontWeight:"bold",children:["New ",t.type]}),d?(0,rs.Y)(tt,{component:"div",variant:"caption",children:d}):null]}),(0,rs.FD)(F,{css:f.suggestionContent,children:[(0,rs.Y)(tt,{variant:"body2",children:t.value}),(0,rs.Y)(pm,{title:u,placement:"top",children:(0,rs.Y)(Lt,{size:"small",onClick:c,children:(0,rs.Y)(Xg,{fontSize:"small"})})})]}),(0,rs.FD)(F,{css:f.contentWrapper,children:[(0,rs.Y)(pm,{title:"Reject",placement:"top",children:(0,rs.Y)(Lt,{size:"small",onClick:s,color:"error",children:(0,rs.Y)(EU.A,{fontSize:"small"})})}),(0,rs.Y)(pm,{title:"Accept",placement:"top",children:(0,rs.Y)(Lt,{size:"small",onClick:l,color:"success",children:(0,rs.Y)(CU.A,{fontSize:"small"})})})]})]})},RU=e=>{let{suggestionsList:t,onAccept:n,onReject:r}=e;const{handlePrev:o,handleNext:a,currentSuggestion:s,currentIndex:l,displayArrow:c,handleAccept:u}=(e=>{let{suggestionsList:t,onAccept:n}=e;const[r,o]=(0,i.useState)(0),{displayArrow:a,currentSuggestion:s}=(0,i.useMemo)((()=>({displayArrow:t.length>1,currentSuggestion:t[r]})),[t,r]),l=(0,i.useCallback)((()=>{o((e=>(e-1+t.length)%t.length))}),[t.length]),c=(0,i.useCallback)((()=>{o((e=>(e+1)%t.length))}),[t.length]),u=(0,i.useCallback)(((e,t,r)=>{o(0),n(e,t,r)}),[n,o]);return{handlePrev:l,handleNext:c,currentIndex:r,currentSuggestion:s,displayArrow:a,handleAccept:u}})({suggestionsList:t,onAccept:n}),d=(()=>{const e=Ni();return(0,i.useMemo)((()=>{const t=(0,le.AH)({position:"absolute",right:e.spacing(2),top:e.spacing(2),cursor:"pointer",marginRight:e.spacing(5)},"",""),n=(0,le.AH)({position:"absolute",bottom:"50px",right:"-".concat(e.spacing(1)),zIndex:10,backgroundColor:"#93c6e1e3",boxShadow:e.shadows[3],borderRadius:e.spacing(1.5),padding:"".concat(e.spacing(.5)," ").concat(e.spacing(1)),display:"flex",alignItems:"center",justifyContent:"space-between"},"",""),r=(0,le.AH)({flexGrow:1,p:e.spacing(1)},"","");return{container:t,suggestionContainer:n,suggestionsAmount:(0,le.AH)({position:"absolute",top:e.spacing(-1),left:e.spacing(0)},"",""),suggestion:r}}),[e])})();return t.length?(0,rs.FD)(F,{css:d.suggestionContainer,children:[c?(0,rs.Y)(Lt,{onClick:o,children:(0,rs.Y)(_U,{})}):null,(0,rs.Y)(F,{css:d.suggestion,children:(0,rs.Y)(IU,{index:l,suggestion:s,length:t.length,onAccept:u,onReject:r},l)}),c?(0,rs.Y)(Lt,{onClick:a,children:(0,rs.Y)(kU,{})}):null]}):null};let PU=function(e){return e.ActionToAssertion="action-assertion",e.AssertionToAction="assertion-action",e.IdenticalWithFollowingSteps="identical-with-following-steps",e}({});const MU=(e,t,n)=>{if(null===e||void 0===e||!e.length)return{data:[],firstStepTypeConversion:null};const r=e[0],o="matcher"in r?Zo.Assertion:Zo.Action;let i=null;n.type===Zo.Action&&o===Zo.Assertion&&(i=PU.ActionToAssertion),o===Zo.Action&&n.type===Zo.Assertion&&(i=PU.AssertionToAction),o===n.type&&e.length>1&&(i=PU.IdenticalWithFollowingSteps);let a=e;return i&&(a=e.map((e=>(0,g.A)((0,g.A)({},e),{},{timestamp:n.timestamp})))),{data:a,firstStepTypeConversion:i}},DU=["id"],LU=sp.injectEndpoints({endpoints:e=>({createStep:e.mutation({query:e=>({method:"POST",url:"/createStep",body:e})}),updateStep:e.mutation({query:e=>({method:"PATCH",url:"/updateStep",body:e})}),deleteStep:e.mutation({query:e=>{let{id:t,options:n}=e;return{method:"DELETE",url:"/deleteStep",successToastMessage:null!==n&&void 0!==n&&n.skipSuccessToast?void 0:"Step has been deleted successfully",body:{id:t,options:n}}}}),clearTest:e.mutation({query:()=>({url:"/clear-test",method:"POST"})}),reloadTestFromFile:e.mutation({query:e=>({url:"/reload-test-from-file",method:"POST",body:e,successToastMessage:"Test has been reloaded successfully"})}),codeToSteps:e.mutation({query:e=>{let{id:t}=e;return{url:"/code-to-steps",method:"POST",body:(0,ns.A)(e,DU),errorToastMessage:"Failed to compile code"}},transformResponse:MU})})}),{useDeleteStepMutation:jU,endpoints:NU,useCreateStepMutation:FU,useUpdateStepMutation:zU,useClearTestMutation:BU,useReloadTestFromFileMutation:VU,useCodeToStepsMutation:UU}=LU,WU=async function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{ignoreSaving:!1};const i=tp.getDispatch();try{var a;const l=await i(NU.codeToSteps.initiate({code:e,id:t,type:n,timestamp:r,options:o})).unwrap().catch((e=>{throw console.error("Error in formatCodeToStep:",e),new Error("Failed to format code to step")}));if(null===l||void 0===l||null===(a=l.data)||void 0===a||!a.length)return console.error("No steps data in response"),null;const{data:c,firstStepTypeConversion:u}=l,d=(0,g.A)({},c[0]);try{return n===Zo.Assertion&&("matcherOptions"in d&&null!=d.matcherOptions||(d.matcherOptions=""),delete d.actionId),n===Zo.Action&&("actionOptions"in d||(d.actionOptions=""),"locator"in d||(d.locator="")),"thought"in d||(d.thought=""),delete d.id,u?null:d}catch(s){return console.error("Error processing step data:",s),null}}catch(s){throw console.error("Error in formatCodeToStep:",s),new Error("Failed to format code to step")}};let qU=function(e){return e.Processing="processing",e.Generate="generate",e.Generated="Re-generate",e}({});class HU{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0;this.position=e,this.monaco=t,this.editor=n,this.type=r,this.range=o,this.domNode=void 0,this.widgetId=void 0,this.button=void 0,this.state=qU.Generate,this.isVisible=!1,this.widgetId="ai-button-widget-".concat(HU.widgetIndex++),this.domNode=document.createElement("div"),this.domNode.id=this.widgetId,Object.assign(this.domNode.style,{position:"absolute",zIndex:"9999",pointerEvents:"auto",display:"none"}),this.button=document.createElement("button"),this.setButtonContent(),Object.assign(this.button.style,{display:"flex",alignItems:"center",gap:"6px",backgroundColor:"#2d2d2d",color:"#ffffff",border:"none",borderRadius:"6px",padding:"4px 10px",fontSize:"12px",cursor:"pointer",boxShadow:"0 2px 6px rgba(0, 0, 0, 0.2)",whiteSpace:"nowrap"}),this.button.onmouseenter=()=>{this.button.style.backgroundColor="#444"},this.button.onmouseleave=()=>{this.button.style.backgroundColor="#2d2d2d"},this.button.onclick=e=>{e.preventDefault(),this.state!==qU.Processing&&(this.hide(),i())},this.domNode.appendChild(this.button),document.body.appendChild(this.domNode),n&&(n.onMouseMove((e=>{var t,n;if(!this.range)return;const r=e.event.browserEvent,o=null===(t=e.target.position)||void 0===t?void 0:t.lineNumber,i=null===(n=e.target.position)||void 0===n?void 0:n.column,a=this.getDomNode().getBoundingClientRect();o===this.range.startLineNumber&&i>=this.range.startColumn&&i<=this.range.endColumn||r.clientX>=a.left&&r.clientX<=a.right&&r.clientY>=a.top-5&&r.clientY<=a.bottom?(this.isVisible||(this.position={lineNumber:o,column:i},this.editor.layoutContentWidget(this)),this.show()):this.hide()})),n.onMouseLeave((()=>{this.hide()})))}setButtonContent(){switch(this.state){case qU.Processing:this.button.innerHTML='<span style="margin-right: -2px;">\u2728</span>Processing...';break;case qU.Generated:this.button.innerHTML='<span style="margin-right: -2px;">\u2728</span>Re-Generate';break;case qU.Generate:default:this.button.innerHTML='<span style="margin-right: -2px;">\u2728</span>Generate '.concat(this.type?this.type+" ":"","with AI")}}getId(){return this.widgetId}getDomNode(){return this.domNode}getPosition(){return{position:this.position,preference:[this.monaco.editor.ContentWidgetPositionPreference.BELOW,this.monaco.editor.ContentWidgetPositionPreference.ABOVE]}}setState(e){this.state=e,this.setButtonContent()}setRange(e){this.range=e}show(){this.isVisible=!0,this.domNode.style.display="block",this.editor.layoutContentWidget(this)}hide(){this.isVisible=!1,this.domNode.style.display="none"}dispose(){this.editor.removeContentWidget(this)}}HU.widgetIndex=0;const YU="Locator Error",GU=e=>{let{editorRef:t,monaco:n,aiState:r,stepData:o,onAccept:a,isValid:s,validationError:l,locatorProcessing:c,generateWithAI:u,fieldsValues:d}=e;const[f,p]=(0,i.useState)(null),[h,m]=(0,i.useState)(null),[g,v]=(0,i.useState)(null),[y,b]=(0,i.useState)(null),{optimizeLocators:w}=jw(),x=o.timestamp&&w,A=(0,i.useRef)([]),S=(0,i.useRef)(d.alternateFieldValue),_=(0,i.useRef)(h);(0,i.useEffect)((()=>{JSON.stringify(S.current)!==JSON.stringify(d.alternateFieldValue)&&(S.current=d.alternateFieldValue,k())}),[d.alternateFieldValue]),(0,i.useEffect)((()=>{_.current!==h&&(_.current=h),g&&g.setRange(h)}),[h,g]);const k=(0,i.useCallback)((()=>{var e;if(null===(e=d.fieldValue)||void 0===e||!e.length)return void m(null);const n=t.current;if(!n)return;const r=n.getModel();if(!r)return;const o=function(e,t){const n=t.getValue();if(null===e||void 0===e||!e.length||null===n||void 0===n||!n.length)return;let r=null;const o=(0,dC.Sd)($U(e)),i=$U(n),a=function(e){const t=[],n=/checksumAI\s*\(\s*(['"])/g;let r;for(;null!==(r=n.exec(e));){const o=r[1],i=n.lastIndex;let a=i,s=!1;for(;a<e.length;){const t=e[a];if("\\"!==t||s){if(t===o&&!s)break;s=!1,a++}else s=!0,a++}if(!(a<e.length))break;t.push([i,a]),n.lastIndex=a+1}return t}(n),s=function(e,t,n,r){let o=0;for(;-1!==(o=e.indexOf(n,o));){let e=0,n=0;for(let r=0;r<t.length&&n<o;r++)/\s/.test(t[r])||n++,e++;if(!KU(e,r))return e;o+=1}return-1}(i,n,o,a);if(-1===s)return void(r=null);let l=o.length,c=s;for(;l>0&&c<n.length;)/\s/.test(n[c])||l--,c++;const u=t.getPositionAt(s),d=t.getPositionAt(c);return r={startLineNumber:u.lineNumber,startColumn:u.column,endLineNumber:d.lineNumber,endColumn:d.column},r}(d.fieldValue,r);if(o)return m(o),o;m(null)}),[t.current,d.fieldValue]);(0,i.useEffect)((()=>{if(!t.current||!n)return;const e=t.current,r=e.onMouseDown((t=>{var n,r;if(e.updateOptions({hover:{enabled:!0}}),!t.target.position)return;if(!e.getModel())return;const o=t.target.position;if(!o)return;if(!s)return;const i=k();if(!i)return void console.log("Locator not found in code",d.fieldValue);if(null===(n=S.current)||void 0===n||null===(r=n.locators)||void 0===r||!r.length)return void console.log("No locator suggestions found");m(i);const a=function(e,t){return(e.lineNumber>t.startLineNumber||e.lineNumber===t.startLineNumber&&e.column>=t.startColumn)&&(e.lineNumber<t.endLineNumber||e.lineNumber===t.endLineNumber&&e.column<=t.endColumn)}(o,i);a&&(b(o),e.updateOptions({hover:{enabled:!1}}),setTimeout((()=>{e.focus(),e.setPosition(o),e.trigger("mouse","editor.action.triggerSuggest",{})}),10))}));return()=>{r.dispose()}}),[null===t||void 0===t?void 0:t.current,n,S.current,d.fieldValue,k,s]);const C=(0,i.useCallback)((()=>{var e;if(x&&null!==(e=d.fieldValue)&&void 0!==e&&e.length&&s)return c?qU.Processing:r===Hw.Filtered?qU.Generated:qU.Generate}),[d.fieldValue,c,r,s,x]);(0,i.useEffect)((()=>{const e=C();!e&&g?(g.dispose(),v(null)):e&&!g?E(e):g&&g.setState(e)}),[C]);const E=(0,i.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(!_.current)return;g&&(g.dispose(),v(null));const r=t.current,o=new HU({lineNumber:_.current.startLineNumber,column:_.current.startColumn},n,r,"locator",_.current,(()=>{console.log("Generating locator with AI..."),u()}));v(o),e&&o.setState(e),r.addContentWidget(o),r.layoutContentWidget(o),o.hide()}),[_.current,t.current,n]);(0,i.useEffect)((()=>{if(!n||!t.current)return;const e=t.current.getModel();if(!e)return;const r=()=>{n.editor.setModelMarkers(e,YU,[]),A.current.length&&t.current.deltaDecorations(A.current,[])};if(r(),!_.current)return;if(s||!l)return void(A.current=t.current.deltaDecorations([],[{range:_.current,options:{inlineClassName:"editorLocatorMarker"}}]));var o,i;o=n.MarkerSeverity.Error,i="Locator is invalid: ".concat(l),n.editor.setModelMarkers(e,YU,[{startLineNumber:_.current.startLineNumber,startColumn:_.current.startColumn,endLineNumber:_.current.endLineNumber,endColumn:_.current.endColumn,message:i,severity:o}]);const a=t.current.onDidChangeModelContent((()=>{r(),a.dispose()}));return()=>{r()}}),[s,l,t.current,n,_.current]),(0,i.useEffect)((()=>{t.current&&n&&k()}),[k]),(0,i.useEffect)((()=>{if(!n)return;f&&f.dispose();let e=null;return e=n.languages.registerCompletionItemProvider("typescript",{provideCompletionItems:function(e,t){if(!S.current||!_.current)return{suggestions:[]};const r=y?y.lineNumber:_.current.startLineNumber,o=y?y.column:_.current.endColumn;return{suggestions:S.current.locators.map((t=>({label:null===t||void 0===t?void 0:t.slice(0,40),kind:n.languages.CompletionItemKind.User,insertText:"",keepEditorSelection:!0,documentation:{value:t,isTrusted:!0,supportThemeIcons:!0,kind:"markdown"},insertTextRules:n.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:{startLineNumber:r,startColumn:o,endLineNumber:r,endColumn:o},command:{id:"locator-suggestion-selected",title:"Locator Suggestion Selected",arguments:[{value:t,range:_.current,code:e.getValue()}]}}))),incomplete:!1}}}),p(e),()=>{e.dispose()}}),[_.current,S.current,n,y]),(0,i.useEffect)((()=>{if(!n)return;const e=n.editor.registerCommand("locator-suggestion-selected",(async(e,i)=>{try{var s,l;if(!n||!t.current)return;const e=n.editor.getEditors()[0];if(!e||null!==(s=e.getModel())&&void 0!==s&&null!==(l=s.isDisposed)&&void 0!==l&&l.call(s))return;if(!e.getModel())return;e.updateOptions({hover:{enabled:!0}});const{value:c,range:u,code:d}=i;if(-1===S.current.locators.indexOf(c))return void console.log("locator not found in suggested locators");e.setValue(d),console.log("Setting locator for action",c),Pk({locator:c,alternates:S.current.locators.filter((e=>e!==c)),origin:r,target:{type:o&&"matcher"in o?Yw.Assertion:Yw.Action,id:o.id}}),await a(null,xU.Locator,c)}catch(c){console.error("locator-suggestion-selected failed:",c)}}));return()=>{e.dispose()}}),[n,t.current,S.current,o])};function KU(e,t){return t.some((t=>{let[n,r]=t;return e>=n&&e<=r}))}function $U(e){return e.replace(/\s+/g,"").replace(/,\s*}/g,"}").replace(/,\s*]/g,"]").replace(/'/g,'"')}const QU=e=>{let{editor:t,monaco:n,stepData:r}=e;const[o,a]=(0,i.useState)(null),[s,l]=(0,i.useState)(null),[c,u]=(0,i.useState)(null),[d,f]=(0,i.useState)(""),[p,h]=(0,i.useState)(""),{watch:m}=g_(),{autoGenerateThoughts:g}=jw();(0,i.useEffect)((()=>{const e=m(((e,t)=>{let{name:n}=t;"thought"!==n&&"isDefaultThought"!==n||f(e.thought||""),"codeValue"===n&&h(e.codeValue||"")}));return()=>e.unsubscribe()}),[m,f]);const v=(0,i.useRef)(o),{thoughtProcessing:y,isAiThought:b,handleOnGenerateWithAIClick:w}=LE({stepData:r});(0,i.useEffect)((()=>{v.current!==o&&(v.current=o),s&&s.setRange(o)}),[o,s]),(0,i.useEffect)((()=>{u(y?qU.Processing:qU.Generate)}),[y]);const x=(0,i.useCallback)((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(!v.current||!t||!g)return;s&&(s.dispose(),l(null));const r=new HU({lineNumber:v.current.startLineNumber,column:v.current.startColumn},n,t,"thought",v.current,(()=>{console.log("Generating thought with AI..."),w()}));l(r),e&&r.setState(e),t.addContentWidget(r),t.layoutContentWidget(r),r.hide()}),[n,s,t,g]);(0,i.useEffect)((()=>{const e=c;!g&&s&&(s.dispose(),l(null)),!e&&s?(s.dispose(),l(null)):e&&!s?x(e):s&&s.setState(e)}),[s,x,c,o,g]),(0,i.useEffect)((()=>{if(!t)return;const e=t.getModel();if(!e||!d||!p)return;const n=function(e,t){if(null===e||void 0===e||!e.length||!t)return;const n=XU(t.getValue()),r=n.indexOf(XU(e));if(-1===r)return;const o=t.getPositionAt(r),i=t.getPositionAt(r+e.length);return{startLineNumber:o.lineNumber,startColumn:o.column,endLineNumber:i.lineNumber,endColumn:i.column}}(d,e);a(n)}),[d,n,t,p])},XU=e=>e.replace(/\\/g,"");const JU=e=>{let{control:t,name:n="customCodeFillValue",stepData:r,target:a,onAccept:s=(e,t,n)=>{},id:l=null,type:c=null}=e;const u=(0,i.useRef)(null),d=(0,i.useRef)(null),[f,p]=(0,i.useState)(null),[h,m]=(0,i.useState)(null),v=(e=>{let{control:t,name:n,id:r,type:o,stepData:a,target:s}=e;const{formState:{dirtyFields:l},setValue:c}=g_(),u=!!l.codeValue,d=C_({control:t,name:n}),f=C_({control:t,name:"locator"}),p=(0,i.useCallback)((()=>{if(!s||!a)return;const{alternateLocators:e}=Ik(s,a);return e}),[s,a]),h=p(),[m,v]=(0,i.useState)((()=>({fieldValue:f,alternateFieldValue:h})));(0,i.useEffect)((()=>{v((e=>(0,g.A)((0,g.A)({},e),{},{alternateFieldValue:p()})))}),[p]),(0,i.useEffect)((()=>{v((e=>(0,g.A)((0,g.A)({},e),{},{fieldValue:f})))}),[f]);const y=$b((0,i.useCallback)((async()=>{if(!(r&&o&&d))return;const e=await WU(d,r,o,null===a||void 0===a?void 0:a.timestamp,{ignoreSaving:!0});e&&(c("thought",e.thought),v((t=>(0,g.A)((0,g.A)({},t),{},{fieldValue:e.locator}))))}),[d,r,o]),1e3);return(0,i.useEffect)((()=>{u&&y()}),[y,d,u,f,h]),m})({control:t,name:n,id:l,type:c,stepData:r,target:a}),{aiState:y,validationError:b,validityStatus:w,locatorProcessing:x,generateWithAI:A}=hC({stepData:r,target:a,fieldsValues:v});GU({editorRef:u,monaco:f,aiState:y,stepData:r,onAccept:s,isValid:w===bk.Valid,validationError:b,locatorProcessing:x,generateWithAI:A,fieldsValues:v}),QU({monaco:f,stepData:r,editor:h});const S=(0,i.useCallback)((e=>{let{editor:t,monacoInstance:n,monaco:r}=e;t&&(u.current=t,m(t)),n&&(d.current=n),p(r)}),[]),_=(0,o.d4)((e=>(e=>e.logs.isLogsVisible)(e))),k=(0,o.wA)();return{onRefsChange:S,logsVisible:_,toggleLogs:(0,i.useCallback)((()=>{k(tU())}),[k])}},ZU=e=>{let{control:t,name:n="customCodeFillValue",stepData:r,target:o,onAccept:i=(e,t,n)=>{},id:a=null,type:s=null}=e;const{onRefsChange:l,toggleLogs:c,logsVisible:u}=JU({control:t,name:n,stepData:r,target:o,onAccept:i,id:a,type:s});return(0,rs.FD)(rs.FK,{children:[(0,rs.Y)(gU,{type:s,control:t,name:n,onRefsChange:l,onToggleLogs:c,logsVisible:u}),u?(0,rs.Y)(fU,{}):null]})},eW=e=>{let{id:t,fieldName:n="codeValue",methods:r,onBlur:o,updateMutation:a,type:s,target:l,stepData:c}=e;const{loading:u,onAccept:d,onReject:f,suggestionsList:p,handleBlur:h}=(e=>{let{id:t,updateMutation:n,onBlur:r,methods:o,fieldName:a,type:s}=e;const l=oB(t),c=Zz(),u=(0,i.useMemo)((()=>l?Object.entries(l).map((e=>{let[t,n]=e;return{value:n,type:t}})).filter((e=>{let{value:t}=e;return t})):[]),[l]),d=(0,i.useMemo)((()=>{const e=c[t];if(e<0)throw new Error("code based step could not be less than 0");return!!e&&0!==e}),[t,c]),f=Kt(),p=uV(),h=(0,i.useCallback)((e=>{e===xU.Locator?f(kk({id:t})):f(SE({id:t}))}),[f,t]);return{loading:d,onAccept:(0,i.useCallback)((async(e,r,i)=>{var l;let c;var u,d;if(null===e||void 0===e||e.preventDefault(),null===e||void 0===e||e.stopPropagation(),o.formState.dirtyFields[a]&&(c=await WU(o.getValues()[a],t,s,null===(u=p.findStepDataById(t))||void 0===u||null===(d=u.stepData)||void 0===d?void 0:d.timestamp),null===e||void 0===e||e.preventDefault(),null===e||void 0===e||e.stopPropagation(),!c))return null;const{stepData:f}=p.findStepDataById(t),m=(0,g.A)((0,g.A)((0,g.A)({},f),null!==(l=c)&&void 0!==l?l:{}),{},{[r]:i}),v=s===Zo.Action?oI:mE;await n.handler({data:v(m,f,{isNew:!1}),id:t,options:{preventIncreaseCodeBasedStepsSavingCount:!!c}}),h(r)}),[n,h,s,p,t,o,a]),onReject:(0,i.useCallback)(((e,t)=>{e.preventDefault(),e.stopPropagation(),h(t)}),[h]),suggestionsList:u,handleBlur:(0,i.useCallback)((async()=>{}),[r])}})({id:t,updateMutation:a,fieldName:n,methods:r,onBlur:o,type:s}),m=(()=>{const e=Ni();return(0,i.useMemo)((()=>{const t=SU;return{row:(0,le.AH)({display:"flex",alignItems:"end",maxHeight:"60px",gap:e.spacing(1)},"",""),container:t}}),[e])})();return(0,rs.FD)(F,{css:m.container,children:[p.length?(0,rs.Y)(RU,{suggestionsList:p,onAccept:d,onReject:f}):null,(0,rs.Y)(ZU,{control:r.control,name:n,stepData:c,target:l,onAccept:(e,t,n)=>{d(e,t,n)},id:t,type:s}),u?(0,rs.Y)(AU,{}):null]})};var tW=__webpack_require__(1709),nW=__webpack_require__(3347);const rW=e=>{let{isValid:t,isPlaying:n,name:r,show:o,message:a}=e;const s=(e=>{let{isValid:t,isPlaying:n}=e;const r=Ni();return(0,i.useMemo)((()=>({tooltip:{maxWidth:"none","& .MuiTooltip-tooltip":{maxWidth:"none"}},color:n?r.colors.text.primary:t?r.colors.success.main:r.colors.error.main,typographyStyles:{fontWeight:"bold",transition:"all 0.3s ease",transform:n?"scale(0.90)":"scale(1)"}})),[r,n,t])})({isPlaying:n,isValid:t});return(0,rs.Y)(xV,{condition:!t&&a,wrapper:e=>(0,rs.Y)(pm,{title:a,componentsProps:{tooltip:{sx:s.tooltip}},children:(0,rs.Y)("span",{children:e})}),children:(0,rs.Y)(Mm,{in:o||n,children:(0,rs.FD)(F,{display:"flex",alignItems:"center",gap:1,justifyContent:"center",children:[(0,rs.Y)(oW,{isValid:t,isPlaying:n}),(0,rs.Y)(tt,{component:"div",whiteSpace:"nowrap",color:s.color,sx:s.typographyStyles,children:n?["Validating ",r,"..."]:t?["Valid ",r]:["Invalid ",r]})]})})})};function oW(e){let{isValid:t,isPlaying:n}=e;return n?(0,rs.Y)(Ps,{size:20}):t?(0,rs.Y)(tW.A,{color:"success"}):(0,rs.Y)(nW.A,{color:"error"})}const iW=(e,t,n)=>{const r={},o=(0,g.A)((0,g.A)({},e),t);return n&&(o[n.id]=n),Object.entries(o).forEach((e=>{var t,n;let[o,i]=e;r[o]={timestamp:null!==(t=i.timestamp)&&void 0!==t?t:0,createdAt:null!==(n=i.createdAt)&&void 0!==n?n:0}})),r},aW=e=>{let{forceUpdate:t,newTimestamp:n,oldTimestamp:r}=e;return t&&n?{syncActions:!0,updateTimestamp:!0,timestamp:n}:t||r?{updateTimestamp:!1,syncActions:!1}:{syncActions:!1,updateTimestamp:!0,timestamp:null!==n&&void 0!==n?n:Date.now()}};let sW=function(e){return e.Execute="execute",e.Create="create",e.Update="update",e.Delete="delete",e}({});const lW=[sW.Delete,sW.Create,sW.Update],cW=e=>{let{entity:t,validationSchema:n,defaultValuesGenerator:r,mutations:o,allowedKeys:a}=e;const s=(0,i.useRef)(null),l=(e=>(0,i.useCallback)((async t=>{try{return{values:await e.validate(t,{abortEarly:!1}),errors:{}}}catch(n){return{values:{},errors:n.inner.reduce(((e,t)=>{var n;return(0,g.A)((0,g.A)({},e),{},{[t.path]:{type:null!==(n=t.type)&&void 0!==n?n:"validation",message:t.message}})}),{})}}}),[e]))(n),c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=i.useRef(void 0),n=i.useRef(void 0),[r,o]=i.useState({isDirty:!1,isValidating:!1,isLoading:L_(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:L_(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current=(0,g.A)((0,g.A)({},uk(e)),{},{formState:r}));const a=t.current.control;return a._options=e,S_({subject:a._subjects.state,next:e=>{w_(e,a._proxyFormState,a._updateFormState,!0)&&o((0,g.A)({},a._formState))}}),i.useEffect((()=>a._disableForm(e.disabled)),[a,e.disabled]),i.useEffect((()=>{if(a._proxyFormState.isDirty){const e=a._getDirty();e!==r.isDirty&&a._subjects.state.next({isDirty:e})}}),[a,r.isDirty]),i.useEffect((()=>{e.values&&!X_(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values,o((e=>(0,g.A)({},e)))):a._resetDefaultValues()}),[e.values,a]),i.useEffect((()=>{e.errors&&a._setErrors(e.errors)}),[e.errors,a]),i.useEffect((()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next((0,g.A)({},a._formState))),a._removeUnmounted()})),i.useEffect((()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})}),[e.shouldUnregister,a]),t.current.formState=y_(r,a),t.current}({resolver:l,defaultValues:(0,i.useMemo)((()=>r(t)),[t])}),{handleSubmit:u,formState:{dirtyFields:d,isSubmitting:f},getValues:p,setValue:h,reset:m}=c,v=Gb(t),y=(0,i.useMemo)((()=>Object.keys(d).length>0),[Object.keys(d).length]);(0,i.useEffect)((()=>{if(!t)return;const e=(e,t)=>{var n;if(t)return["dropTargetLocator","dropTargetAlternateLocators"].includes(e)?(null===(n=t.dropTarget)||void 0===n?void 0:n[e])||[]:t[e]},n=r(t);null===a||void 0===a||a.forEach((r=>{e(r,t)!==e(r,v)&&h(r,n[r])}))}),[t,h]);const b=(0,i.useCallback)((async e=>{if(o[sW.Create])try{const n=o[sW.Create].transformer(e,t);await o[sW.Create].handler({data:n})}catch(n){throw console.error("Create error:",n),n}}),[o[sW.Create],t]),w=(0,i.useCallback)((async e=>{if(o[sW.Update])try{const n=await o[sW.Update].transformer(e,t);if(!n)return;await o[sW.Update].handler({data:n})}catch(n){throw console.error("Update error:",n),n}}),[o[sW.Update],t]),x=((0,i.useCallback)((async e=>{if(o[sW.Execute])try{const n=c.getValues(),r=await o[sW.Execute].transformer(n,t);await o[sW.Execute].handler({data:r,options:e})}catch(n){throw console.error("Execute error:",n),n}}),[o[sW.Execute],c,t]),(0,i.useCallback)((async e=>{if(o[sW.Delete])try{await o[sW.Delete].handler({options:e})}catch(t){throw console.error("Delete error:",t),t}}),[o[sW.Delete]])),A=(0,i.useCallback)(u((e=>{console.log("Execute handler:",e)})),[u]),S=(0,i.useCallback)(u(w),[w]),_=(0,i.useCallback)(u(b),[b]),k=(0,i.useCallback)((async e=>{x()}),[x]),{isLoading:C,isSuccess:E,isError:O}=(0,i.useMemo)((()=>{const{isLoading:e,isSuccess:t,isError:n}=lW.reduce(((e,t)=>{const n=o[t];return n&&(e.isLoading=e.isLoading||n.state.isLoading,e.isSuccess=e.isSuccess||n.state.isSuccess,e.isError=e.isError||n.state.isError),e}),{isLoading:f,isSuccess:!1,isError:!1});return{isLoading:e,isSuccess:t,isError:n}}),[o,f]);return(e=>{let{id:t,setValue:n}=e;const r=Jz(),o=uV();(0,i.useEffect)((()=>{if(!t)return;const{stepData:e}=o.findStepDataById(t);null!==r&&void 0!==r&&r.id&&null!==e&&void 0!==e&&e.id&&r.id===e.id&&r.timestamp!==e.timestamp&&n("timestamp",r.timestamp,{shouldDirty:!!r.timestamp})}),[null===r||void 0===r?void 0:r.id,null===r||void 0===r?void 0:r.timestamp,n,o.steps])})({id:null===t||void 0===t?void 0:t.id,setValue:c.setValue}),(0,i.useEffect)((()=>{E&&!C&&m(p(),{keepDefaultValues:!1})}),[C,E,p]),(e=>{let{data:t,setValue:n}=e;const r=tB(t.id);(0,i.useEffect)((()=>{r&&n("codeValue",r)}),[r,n]),(0,i.useEffect)((()=>(window.vtg&&(window.vtg.getCodeValue=()=>r,window.vtg.setCodeValue=e=>{n("codeValue",e,{shouldDirty:!0,shouldTouch:!0})}),()=>{window.vtg&&(window.vtg.getCodeValue=void 0,window.vtg.setCodeValue=void 0)})),[r,n])})({data:t,setValue:h}),(0,i.useEffect)((()=>{const e=RD.subscribe((e=>{null!==t&&void 0!==t&&t.id&&h("codeValue",e,{shouldDirty:!0})}));return()=>{e()}}),[null===t||void 0===t?void 0:t.id,h]),{methods:c,isFormDirty:y,formRef:s,handleCreate:_,handleUpdate:S,handleExecute:A,handleDelete:k,isLoading:C,isSuccess:E,isError:O}},uW=()=>{const e=Xz(),t=(0,i.useRef)({});(0,i.useEffect)((()=>{e.forEach((n=>{let{id:r}=n;return(n=>{(t.current[n]||[]).forEach((t=>{t(e.find((e=>e.id===n)))})),delete t.current[n]})(r)}))}),[e]);return(0,i.useCallback)((n=>new Promise((r=>{const o=e.find((e=>e.id===n));o&&r(o),t.current[n]=t.current[n]?[...t.current[n],r]:[r]}))),[e])},dW=()=>{const e=(0,o.d4)(qz),t=Zz(),n=uV(),r=(0,i.useRef)({}),a=(0,i.useMemo)((()=>fW(e,t)),[e,t]);return(0,i.useEffect)((()=>{Object.entries(a).forEach((e=>{let[t,o]=e;if(0===o&&r.current[t]){const e=n.findStepDataById(t);r.current[t].forEach((t=>t(e))),delete r.current[t]}})),0===Object.keys(a).length&&(Object.keys(r.current).forEach((e=>{const t=n.findStepDataById(e);r.current[e].forEach((e=>e(t)))})),r.current={})}),[a,n]),(0,i.useCallback)((e=>new Promise((t=>{if(0!==a[e]&&void 0!==a[e])r.current[e]=r.current[e]?[...r.current[e],t]:[t];else{t(n.findStepDataById(e))}}))),[a,n,n.actions,n.steps,n.assertions])},fW=(e,t)=>{const n={};return new Set([...Object.keys(e),...Object.keys(t)]).forEach((r=>{n[r]=(e[r]||0)+(t[r]||0)})),n},pW=e=>{let{isDirty:t,data:n,getValues:r,reset:o,updateMutation:a}=e;const s=Kt(),l=(0,i.useRef)(null),c=(0,i.useRef)(!1),u=oB(n.id);return{saveFormBlur:(0,i.useCallback)((async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(c.current)return;const l=i&&Object.keys(null!==u&&void 0!==u?u:{}).length>0;if(t||e||l){var d;c.current=!0;const e=null!==(d=i?u:{})&&void 0!==d?d:{};try{const t=await a.transformer(r(),n);if(!t)return;"function"===typeof(null===a||void 0===a?void 0:a.handler)&&await a.handler({data:(0,g.A)((0,g.A)({},t),Object.fromEntries(Object.entries((0,g.A)({},e)).filter((e=>{let[t,n]=e;return n&&""!==n})))),id:n.id}),"locator"in e&&s(kk({id:n.id})),"thought"in e&&s(SE({id:n.id})),o(r(),{keepDefaultValues:!1})}finally{c.current=!1}}}),[r,o,a,t,n,s,u]),formRef:l}},hW=()=>{const e=eB(),t=jw().useCodeBasedSteps,n=(0,i.useRef)(e),r=(0,i.useRef)(t);return(0,i.useEffect)((()=>{n.current=e,r.current=t}),[e,t]),(0,i.useCallback)((e=>{if(r.current)return n.current[e]}),[])},mW=function(e){var t;const n=gW(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]),r=gW(e);return r?n&&n.timestamp||r.source!==Jo.Recording?(null!==(t=null===n||void 0===n?void 0:n.timestamp)&&void 0!==t?t:0)<r.timestamp&&r.source===Jo.Recording?r:void 0:r:null},gW=e=>e.reduce(((e,t)=>!e||!e.timestamp||t.timestamp>e.timestamp?t:e),void 0),vW=()=>{const e=Jz();(()=>{const e=Kt(),t=sn(),n=uV(),r=iV(),o=(0,i.useMemo)((()=>n.getAllStepsData()),[n.steps]),a=Gb(o);(0,i.useEffect)((()=>{const e=mW(o,a);t&&e&&r(null===e||void 0===e?void 0:e.id,{switchToSnapshotTab:!0,origin:Qo.Recording})}),[t,r,a,o]),(0,i.useEffect)((()=>{var n,r;t&&e(wi("main"));const o=t?"live":"vtg";null===(n=(r=window).checksumBringPageToFront)||void 0===n||n.call(r,o)}),[t,e])})(),(0,i.useEffect)((()=>{yz.stopInspector()}),[null===e||void 0===e?void 0:e.id])},yW=()=>{const e=Kt(),[t,n]=(0,i.useState)(null),{create:r}=dy(),{create:o}=Vb(),a=uV(),s=function(t){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e(di());const{action:i}=a.findStepDataById(t),{action:s,step:l}=a.findNextStepDataById(t),c=bW(s,i),u=oI({eventCode:o?Fv.Qy.CustomCode:Fv.Qy.Click,timestamp:c,source:Jo.Manual,syncedWithNextStep:!1}),d=i?{type:Az.InsertAfter,afterStepId:t}:{type:Az.InsertLast};r.handler({data:u,options:d,id:u.id}),n(u.id)},{handleGenerate:l}=VE(),c=iV();return(0,i.useEffect)((()=>{a.findStepById(t)&&(c(t,{useTemporaryTab:!0,switchToSnapshotTab:!0,origin:Qo.Step}),n(null))}),[t,a.steps]),{onAddAssertion:t=>{e(di());const{step:r,stepData:i}=a.findStepDataById(t),s=r.id;let l=t;r.type===Zo.Assertion&&(l=i.actionId);const c=a.findNextActionByStepId(s);let u;u=null!==c&&void 0!==c&&c.timestamp?c.timestamp-1:null!==i&&void 0!==i&&i.timestamp?i.timestamp+1:Date.now();const d=mE({actionId:l,timestamp:u});o.handler({id:d.id,actionId:l,data:d,options:{type:Az.InsertAfter,afterStepId:s}}),n(d.id)},onAddAction:e=>{s(e,!1)},onAddCustomCode:e=>{s(e,!0)},onAddAssertionWithAi:l}},bW=(e,t)=>null!==e&&void 0!==e&&e.timestamp?e.timestamp-1:t&&t.timestamp&&t.eventCode!==Fv.Qy.Login?t.timestamp+1:Date.now();function wW(e){let{data:t,keys:n=[],setValue:r}=e;const o=(0,i.useMemo)((()=>n.map((e=>t[e]))),[t,n]);(0,i.useEffect)((()=>{n.forEach((e=>{r(e,t[e],{shouldDirty:!1,shouldTouch:!1,shouldValidate:!1})}))}),o)}class xW{constructor(e){this.middleware=e,this.onCreate=void 0,this.onUpdate=void 0,this.onDelete=void 0}startListening(e){this.middleware.startListening({actionCreator:e.create,effect:this.onCreate.bind(this)}),this.middleware.startListening({actionCreator:e.update,effect:this.onUpdate.bind(this)}),this.middleware.startListening({actionCreator:e.delete,effect:this.onDelete.bind(this)})}}class AW extends xW{constructor(e,t){super(e),this.type=t,this.slice=void 0,this.onCreate=async(e,t)=>{let{payload:{data:n,options:r,id:o}}=e;const i=e=>!!e[this.slice][this.slice][o],a=i(t.getState())||await t.condition(((e,t)=>i(t))),s=t.getState(),l=iW(s.actions.actions,s.assertions.assertions,(0,g.A)((0,g.A)({},n),{},{id:o}));a&&t.dispatch(kz({type:this.type,id:o,data:n,options:(0,g.A)((0,g.A)({},r),{},{stepsTimestampsMap:l})}))},this.onUpdate=async(e,t)=>{let n,{payload:{data:r,options:o,id:i}}=e;const a=t.getState();null!==o&&void 0!==o&&o.forceUpdateTimestamp||!r.timestamp||wI(a)||(n=iW(a.actions.actions,a.assertions.assertions,(0,g.A)((0,g.A)({},r),{},{id:i}))),t.dispatch(Ez({type:this.type,id:i,data:r,options:(0,g.A)((0,g.A)({},null!==o&&void 0!==o?o:{}),{},{stepsTimestampsMap:n})}))},this.onDelete=async(e,t)=>{let{payload:{options:n,id:r,type:o}}=e;const i=e=>!e[this.slice][this.slice][r];(i(t.getState())||await t.condition(((e,t)=>i(t))))&&(o===Zo.Action?t.dispatch(Cv({id:r,options:n})):o===Zo.Assertion&&t.dispatch(qC({id:r,options:n})))},this.slice=t===Zo.Assertion?"assertions":"actions"}}class SW{constructor(e){this.middleware=e,this.onResetAssertions=async(e,t)=>{t.getState().steps.steps.filter((e=>{let{type:t}=e;return t===Zo.Assertion})).forEach((e=>{let{type:n,id:r}=e;t.dispatch(Cz({id:r,type:n}))}))}}startListening(){this.middleware.startListening({actionCreator:GC,effect:this.onResetAssertions.bind(this)})}}class _W{constructor(e){this.middleware=e,this.onRemoveStep=async(e,t)=>{t.dispatch(xi(e.payload.id)),t.dispatch(Dz(e.payload.id))}}startListening(){this.middleware.startListening({actionCreator:Cz,effect:this.onRemoveStep.bind(this)})}}const kW=(e,t,n)=>{let{effects:r,enableDefaultSavingSteps:o=!0}=n;const i=(e,t,n)=>{var r;if(!o)return;const i=null===e||void 0===e||null===(r=e.args)||void 0===r?void 0:r.id;i&&t.dispatch(n?Iz(i):Rz(i))};return sC(e,t,{effects:{onPending:async(e,t)=>{i(e,t,!0),r.onPending&&await r.onPending(e,t)},onRejected:async(e,t)=>{i(e,t,!1),r.onRejected&&await r.onRejected(e,t)},onFulfilled:async(e,t)=>{i(e,t,!1),r.onFulfilled&&await r.onFulfilled(e,t)}},enableDefaultSavingSteps:o})},CW=e=>{const{isLoading:t,isSuccess:n,isError:r,error:o,originalArgs:i,reset:a}=e;return{isLoading:t,isSuccess:n,isError:r,error:o,originalArgs:i,reset:a,aborted:r&&!!o&&"AbortError"===(null===o||void 0===o?void 0:o.name)}},EW=(e,t)=>e?Object.values(t[e]).flat().reduce(((e,t)=>{var n;const r=null!==(n=t.group)&&void 0!==n?n:"default";return e[r]||(e[r]=[]),e[r].push(t),e}),{}):(console.error("[formatDynamicFieldsByGroup] key is not defined"),{}),OW=(e,t)=>{let{isNew:n=!1,isTemporary:r=!0}=t;return{type:e.type,id:e.id,isNew:n,isTemporary:r,openedAt:Date.now()}};const TW=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Qo.Step,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];n(Ai({tab:OW({id:e.id,type:t},{isNew:!1,isTemporary:o}),switch:!0})),n(Ek()),n(Oz((0,g.A)((0,g.A)({},e),{},{setOrigin:r})))};async function IW(e){let{id:t,currentStep:n,replayerActions:r,deleteHandler:o,activeStep:i,activateStep:a,nextStep:s}=e;if((null===n||void 0===n?void 0:n.id)===t)await r.skipCurrentStep((async()=>{await o()}),s);else{const e=(null===i||void 0===i?void 0:i.id)===t;await o(),!e&&i&&a(i.id,{origin:Qo.Step,useTemporaryTab:!0}),e&&s&&a(s.id,{origin:Qo.Step,useTemporaryTab:!0})}}class RW{constructor(e){this.listenerApi=e}async handleCodeToStepsResponse(e,t){var n;0===t.data.length&&this.listenerApi.dispatch(Mz(e.id)),!t.firstStepTypeConversion||null!==(n=e.options)&&void 0!==n&&n.ignoreSaving||(t.firstStepTypeConversion===PU.ActionToAssertion&&await this.handleActionToAssertion(e,t),t.firstStepTypeConversion===PU.AssertionToAction&&await this.handleAssertionToAction(e,t),t.firstStepTypeConversion===PU.IdenticalWithFollowingSteps&&await this.handleSameMultipleSteps(e,t))}async handleActionToAssertion(e,t){let n=dO(this.listenerApi.getState(),e.id);const r=!!n;n||(n=oI({eventCode:Fv.Qy.CustomCode}),await this.listenerApi.dispatch(Nv.createAction.initiate({id:n.id,data:n,options:{type:Az.Replace,stepId:e.id}})).unwrap());const[o,...i]=t.data,a=mE((0,g.A)((0,g.A)({},o),{},{actionId:n.id}));await this.listenerApi.dispatch(iE.createAssertion.initiate({data:a,id:a.id,options:{type:Az.InsertAfter,afterStepId:n.id}})).unwrap();const{lastCreatedStep:s,lastCreatedStepType:l}=await this.createMultipleSteps(i,n.id,a.id,Zo.Assertion);r&&await this.listenerApi.dispatch(Nv.deleteAction.initiate({id:e.id,options:{withAssertions:!1,prevActionId:n.id,skipSuccessToast:!0}})).unwrap();TW(null!==s&&void 0!==s?s:a,l,this.listenerApi.dispatch)}async handleAssertionToAction(e,t){const[n,...r]=t.data,o=oI(n);await this.listenerApi.dispatch(Nv.createAction.initiate({data:o,id:o.id,options:{type:Az.InsertAfter,afterStepId:e.id}})),await this.listenerApi.dispatch(iE.deleteAssertion.initiate({id:e.id,options:{skipSuccessToast:!0}})).unwrap();const{lastCreatedStep:i,lastCreatedStepType:a}=await this.createMultipleSteps(r,o.id,o.id,Zo.Action);TW(null!==i&&void 0!==i?i:o,a,this.listenerApi.dispatch)}async handleSameMultipleSteps(e,t){var n,r,o,i;const[a,...s]=t.data;let l,c=null,u=null;this.isAction(a)?(c=oI((0,g.A)((0,g.A)({},a),{},{id:e.id})),await this.listenerApi.dispatch(Nv.updateAction.initiate({data:c,id:c.id,options:{preventIncreaseCodeBasedStepsSavingCount:!0}})),l=Zo.Action):(c=dO(this.listenerApi.getState(),e.id),u=mE((0,g.A)((0,g.A)({},a),{},{id:e.id,actionId:c.id})),await this.listenerApi.dispatch(iE.updateAssertion.initiate({data:u,id:u.id,options:{preventIncreaseCodeBasedStepsSavingCount:!0}})),l=Zo.Assertion);const{lastCreatedStep:d,lastCreatedStepType:f}=await this.createMultipleSteps(s,null===(n=c)||void 0===n?void 0:n.id,null!==(r=null===(o=u)||void 0===o?void 0:o.id)&&void 0!==r?r:null===(i=c)||void 0===i?void 0:i.id,l);TW(null!==d&&void 0!==d?d:a,f,this.listenerApi.dispatch)}async createMultipleSteps(e,t,n,r){let o=t,i=n,a=null,s=r;for(const l of e)if(this.isAction(l)){const e=oI((0,g.A)({},l));await this.listenerApi.dispatch(Nv.createAction.initiate({id:e.id,data:e,options:{type:Az.InsertAfter,afterStepId:i}})).unwrap(),o=e.id,i=e.id,a=e,s=Zo.Action}else{const e=mE((0,g.A)((0,g.A)({},l),{},{actionId:o}));await this.listenerApi.dispatch(iE.createAssertion.initiate({data:e,id:e.id,options:{type:Az.InsertAfter,afterStepId:i}})),i=e.id,a=e,s=Zo.Assertion}return{lastCreatedStep:a,lastCreatedStepType:s}}isAction(e){return!!e.eventCode}}const PW=e=>{kW(e,NU.clearTest,{effects:{onPending:async(e,t)=>{const n=t.getState().steps.steps,{login:r,navigation:o}=sO(t.getState()).reduce(((e,t)=>(t.eventCode!==Fv.Qy.Navigation||e.navigation||(e.navigation=t),t.eventCode!==Fv.Qy.Login||e.login||(e.login=t),e)),{navigation:null,login:null});n.forEach((e=>{let{id:n,type:i}=e;[null===o||void 0===o?void 0:o.id,null===r||void 0===r?void 0:r.id].includes(n)&&i!==Zo.Assertion||t.dispatch(Cz({id:n,type:i}))}))}}}),kW(e,NU.reloadTestFromFile,{effects:{onPending:async(e,t)=>{t.getState().steps.steps.forEach((e=>{let{id:n,type:r}=e;t.dispatch(Cz({id:n,type:r}))}))},onFulfilled:async(e,t)=>{let{response:n}=e;t.dispatch(gI()),yz.toggleOrSetShouldRecordActions({shouldRecordActions:!1,recordingOptions:{mode:Xo.InsertLast}}),n.forEach(((e,n)=>{let{step:r,type:o,code:i}=e;if(o===Zo.Assertion&&t.dispatch(WC({data:mE(r),id:r.id,options:{type:Az.InsertLast}})),o===Zo.Action){const e=oI(r,void 0,{loginOnPlay:!!n,isNew:!0});t.dispatch(kv({data:e,id:r.id,options:{type:Az.InsertLast}}))}t.dispatch(Fz({id:r.id,code:i}))}))}}}),kW(e,NU.codeToSteps,{effects:{onPending:async(e,t)=>{var n;let{args:r}=e;null!==(n=r.options)&&void 0!==n&&n.ignoreSaving||t.dispatch(Pz(r.id))},onFulfilled:async(e,t)=>{let{args:n,response:r}=e;const o=new RW(t);await o.handleCodeToStepsResponse(n,r)}}})},MW=()=>{const e=(0,i.useMemo)((()=>(0,h.A)({typography:v,components:{MuiCssBaseline:m},colors:b})),[]);return cV(),{theme:e}};const DW=i.createContext(null);function LW(){return i.useContext(DW)}const jW="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";const NW=function(e){const{children:t,theme:n}=e,r=LW(),o=i.useMemo((()=>{const e=null===r?n:function(e,t){if("function"===typeof t)return t(e);return(0,w.A)({},e,t)}(r,n);return null!=e&&(e[jW]=null!==r),e}),[n,r]);return(0,R.jsx)(DW.Provider,{value:o,children:t})};var FW=__webpack_require__(729);const zW={};function BW(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return i.useMemo((()=>{const o=e&&t[e]||t;if("function"===typeof n){const i=n(o),a=e?(0,w.A)({},t,{[e]:i}):i;return r?()=>a:a}return e?(0,w.A)({},t,{[e]:n}):(0,w.A)({},t,n)}),[e,t,n,r])}const VW=function(e){const{children:t,theme:n,themeId:r}=e,o=O(zW),i=LW()||zW,a=BW(r,o,n),s=BW(r,i,n,!0),l="rtl"===a.direction;return(0,R.jsx)(NW,{theme:s,children:(0,R.jsx)(E.T.Provider,{value:a,children:(0,R.jsx)(Mi,{value:l,children:(0,R.jsx)(FW.A,{value:null==a?void 0:a.components,children:t})})})})},UW=["theme"];function WW(e){let{theme:t}=e,n=(0,x.A)(e,UW);const r=t[D.A];return(0,R.jsx)(VW,(0,w.A)({},n,{themeId:r?D.A:void 0,theme:r||t}))}const qW=(e,t)=>(0,w.A)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),HW=e=>(0,w.A)({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}});const YW=function(e){const t=(0,G.b)({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return(0,R.jsxs)(i.Fragment,{children:[(0,R.jsx)(Jx,{styles:e=>function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach((t=>{let[n,o]=t;var i;r[e.getColorSchemeSelector(n).replace(/\s*&/,"")]={colorScheme:null==(i=o.palette)?void 0:i.mode}}));let o=(0,w.A)({html:qW(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:(0,w.A)({margin:0},HW(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const i=null==(n=e.components)||null==(n=n.MuiCssBaseline)?void 0:n.styleOverrides;return i&&(o=[o,i]),o}(e,r)}),n]})};const GW=function(){return(0,rs.Y)(Vf,{position:"top-center",autoClose:7e3,hideProgressBar:!0,limit:5,transition:Bf,closeButton:e=>{let{closeToast:t}=e;return(0,rs.Y)(Lt,{"data-testid":Ng.ToastCloseButton,size:"small",onClick:t,children:(0,rs.Y)(EU.A,{fontSize:"small"})})}})};var KW,$W=__webpack_require__(7309),QW=__webpack_require__.t($W,2);function XW(){return XW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XW.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(KW||(KW={}));function JW(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function ZW(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var eq,tq;(tq=eq||(eq={})).data="data",tq.deferred="deferred",tq.redirect="redirect",tq.error="error";new Set(["lazy","caseSensitive","path","id","index","children"]);function nq(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function rq(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function oq(e,t){let n=rq(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function iq(e,t,n,r){let o;void 0===r&&(r=!1),"string"===typeof e?o=ZW(e):(o=XW({},e),JW(!o.pathname||!o.pathname.includes("?"),nq("?","pathname","search",o)),JW(!o.pathname||!o.pathname.includes("#"),nq("#","pathname","hash",o)),JW(!o.search||!o.search.includes("#"),nq("#","search","hash",o)));let i,a=""===e||""===o.pathname,s=a?"/":o.pathname;if(null==s)i=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;o.pathname=t.join("/")}i=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:o=""}="string"===typeof e?ZW(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:sq(r),hash:lq(o)}}(o,i),c=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}const aq=e=>e.join("/").replace(/\/\/+/g,"/"),sq=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",lq=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;const cq=["post","put","patch","delete"],uq=(new Set(cq),["get",...cq]);new Set(uq),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function dq(){return dq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dq.apply(this,arguments)}const fq=$W.createContext(null);const pq=$W.createContext(null);const hq=$W.createContext(null);const mq=$W.createContext({outlet:null,matches:[],isDataRoute:!1});function gq(){return null!=$W.useContext(hq)}function vq(){return gq()||JW(!1),$W.useContext(hq).location}function yq(e){$W.useContext(pq).static||$W.useLayoutEffect(e)}function bq(){let{isDataRoute:e}=$W.useContext(mq);return e?function(){let{router:e}=Aq(wq.UseNavigateStable),t=Sq(xq.UseNavigateStable),n=$W.useRef(!1);return yq((()=>{n.current=!0})),$W.useCallback((function(r,o){void 0===o&&(o={}),n.current&&("number"===typeof r?e.navigate(r):e.navigate(r,dq({fromRouteId:t},o)))}),[e,t])}():function(){gq()||JW(!1);let e=$W.useContext(fq),{basename:t,future:n,navigator:r}=$W.useContext(pq),{matches:o}=$W.useContext(mq),{pathname:i}=vq(),a=JSON.stringify(oq(o,n.v7_relativeSplatPath)),s=$W.useRef(!1);return yq((()=>{s.current=!0})),$W.useCallback((function(n,o){if(void 0===o&&(o={}),!s.current)return;if("number"===typeof n)return void r.go(n);let l=iq(n,JSON.parse(a),i,"path"===o.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:aq([t,l.pathname])),(o.replace?r.replace:r.push)(l,o.state,o)}),[t,r,a,i,e])}()}$W.Component;var wq=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(wq||{}),xq=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(xq||{});function Aq(e){let t=$W.useContext(fq);return t||JW(!1),t}function Sq(e){let t=function(){let e=$W.useContext(mq);return e||JW(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||JW(!1),n.route.id}QW.startTransition;function _q(e){let{to:t,replace:n,state:r,relative:o}=e;gq()||JW(!1);let{future:i,static:a}=$W.useContext(pq),{matches:s}=$W.useContext(mq),{pathname:l}=vq(),c=bq(),u=iq(t,oq(s,i.v7_relativeSplatPath),l,"path"===o),d=JSON.stringify(u);return $W.useEffect((()=>c(JSON.parse(d),{replace:n,state:r,relative:o})),[c,d,o,n,r]),null}new Promise((()=>{}));$W.Component;(0,rs.Y)(_q,{replace:!0,to:"/authenticate"}),(0,rs.Y)(_q,{replace:!0,to:"/"});__webpack_require__(7099);const kq=["shouldHideRemoveIcon","label","onClose"],Cq=e=>{let{shouldHideRemoveIcon:t=!1,label:n,onClose:r}=e,o=(0,ns.A)(e,kq);const[a,s]=(0,i.useState)(!1);return(0,rs.Y)(ba,(0,g.A)({sx:{minHeight:"24px",height:"24px",paddingRight:"20px",position:"relative","&:hover .close-button":{opacity:1}},label:n,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),icon:t?null:(0,rs.Y)(EU.A,{fontSize:"small",className:"close-button",onClick:e=>{e.stopPropagation(),r()},sx:{position:"absolute",right:5,top:"50%",transform:"translateY(-50%)",opacity:a?1:0,transition:"opacity 0.2s",padding:"2px"}}),iconPosition:"end"},o))},Eq=e=>{let{activeBottomPaneTabId:t,handleChange:n,tabs:r,playing:o,paused:i,isAIIterateLoading:a}=e;const{removeTab:s}=Oq();return(0,rs.Y)(F,{sx:{flexShrink:0,height:"32px",bgcolor:"#f5f5f5",borderBottom:"1px solid #e0e0e0"},children:(0,rs.Y)(ha,{value:t,onChange:n,"aria-label":"action tabs",variant:"scrollable",scrollButtons:"auto",sx:{minHeight:"32px",height:"32px","& .MuiTabs-indicator":{height:"2px"},"& .MuiTab-root":{minHeight:"32px",height:"32px",padding:"6px 16px"}},children:r.map((e=>{let{id:t,isNew:n,label:r,title:o,isTemporary:i}=e;return(0,rs.Y)(Cq,(0,g.A)((0,g.A)({value:t,label:r,title:o,onClose:()=>s(t),shouldHideRemoveIcon:"main"===t},as(t)),{},{sx:{fontStyle:i?"italic":"normal"}}),t)}))})})},Oq=()=>{const e=Kt();return{removeTab:t=>{e(xi(t))}}},Tq=e=>{let{isAIIterateLoading:t}=e;const n=Kt(),r=sn(),a=Xz(),s=(0,o.d4)(nn),l=uV(),c=iV(),u=dn(),{playing:d,paused:f}=AI(),p=(0,i.useCallback)(((e,t)=>{if(t)return"main"===t?(n(fi()),n(wi("main")),void Oz(null)):void c(t,{origin:Qo.Tab,switchToSnapshotTab:!0});yz.goLiveTimeMachine()}),[n,c]),h=(0,i.useCallback)((e=>{if("main"===e.id){let e="Idle";return t?e="Generating test flow with AI...":r?e="Recording test flow...":f?e="Paused":d&&(e="Playing"),{label:e,title:e}}const{stepData:n}=l.findStepDataById(e.id),o=(i=n)&&i.thought||"Untitled";var i;const s=a.findIndex((t=>{let{id:n}=t;return n===e.id}))+1,c="".concat(o," (").concat(s,")"),u=o.length>30?"".concat(o.slice(0,30),"..."):o;return{label:"".concat(u," (").concat(s,")"),title:c}}),[t,r,f,d,a,l]);return{handleChange:p,sortedTabsWithLabels:(0,i.useMemo)((()=>s.map((e=>(0,g.A)((0,g.A)({},e),h(e)))).sort(((e,t)=>"main"===e.id?-1:"main"===t.id?1:e.openedAt-t.openedAt))),[s,h]),tabsInfo:(0,i.useMemo)((()=>s.map((e=>{const t="main"===e.id;if(t)return(0,g.A)((0,g.A)({},e),{},{isMainTab:t});const{action:n,assertion:r}=l.findStepDataById(e.id);return!n||!r&&e.type===Zo.Assertion?null:(0,g.A)((0,g.A)({},e),{},{action:n,assertion:r,isMainTab:t})})).filter((e=>!!e))),[s]),activeTab:u}};const Iq=e=>{let{iterateAiStep:t,isAIIterateLoading:n,replayerActions:r}=e;const{handleChange:o,sortedTabsWithLabels:i,tabsInfo:a,activeTab:s}=Tq({isAIIterateLoading:n});return(0,rs.FD)(F,{sx:{height:"100%",display:"flex",flexDirection:"column",minHeight:"32px"},children:[(0,rs.Y)(Eq,{activeBottomPaneTabId:null===s||void 0===s?void 0:s.id,handleChange:o,tabs:i,playing:!1,paused:!1,isAIIterateLoading:n}),(0,rs.Y)(F,{sx:{flexGrow:1,minHeight:0,position:"relative",overflow:"hidden"},children:a.map((e=>(0,rs.Y)(is,{value:null===s||void 0===s?void 0:s.id,index:e.id,fullHeight:!0,children:(0,rs.Y)(vV,{isTabActive:(null===s||void 0===s?void 0:s.id)===e.id,id:e.id,type:e.type,iterateAiStep:t,isAIIterateLoading:n,replayerActions:r})},e.id)))})]})},Rq=sp.injectEndpoints({endpoints:e=>({uploadGeneratedTest:e.mutation({query:()=>({url:"/test/upload",method:"POST",successToastMessage:"Test has been uploaded successfully"})}),generateTestFileString:e.mutation({query:e=>({url:"/test/generate-test-file-string",method:"POST",body:e,successToastMessage:"Test file has been generated successfully"})}),generateBackup:e.mutation({query:e=>({method:"POST",url:"/test/backup",body:e,errorToastMessage:"Error saving test, check console for more details"}),onQueryStarted:async(e,t)=>{let{dispatch:n,queryFulfilled:r}=t;try{const t=await r;e.backupFolderName&&n(gi(e.backupFolderName));const{filePath:o,error:i}=t.data;i?Zf.error(wv(i,"Test was saved to ".concat(o,", although there was an error processing the code:")),{autoClose:!1}):Zf.success("Test has been saved successfully at ".concat(o))}catch(o){return}}}),localSave:e.mutation({query:e=>({method:"POST",url:"/test/local-save",body:e})}),generateExtendedJSONBackup:e.mutation({query:e=>({method:"POST",url:"/test/extended-json-backup",body:e})}),verifySaveLocationExists:e.mutation({query:e=>({method:"POST",url:"/test/verify-save-location",body:e})})})}),{useGenerateBackupMutation:Pq,useUploadGeneratedTestMutation:Mq,useGenerateTestFileStringMutation:Dq,useLocalSaveMutation:Lq,useVerifySaveLocationExistsMutation:jq,useGenerateExtendedJSONBackupMutation:Nq}=Rq;let Fq=function(e){return e.Upload="upload",e.SaveAs="save-as",e.Save="save",e.SaveTestFile="save-test-file",e}({});const zq=()=>{const e=(0,o.d4)(Zt),{showDialog:t}=cy(),[n,r]=(0,i.useState)(null),[a,{isLoading:s}]=Mq(),[l,{isLoading:c}]=Dq(),[u,{isLoading:d}]=Pq(),[f,{isLoading:p}]=Nq(),h=(0,o.d4)(an),[m]=jq(),g=(()=>{const e=(0,o.d4)(qz);return Object.values(e).some((e=>0!==e))})(),v=(0,i.useRef)(""),y=(0,i.useRef)(""),b=async n=>{const r=await m({location:n});let o=!0;const i=e===n;n&&"data"in r&&(r.data.exists&&!i&&(o=await t({message:"Folder with name ".concat(n,", already exists. Rewrite it?"),mode:uy.Confirm})),o&&await u({backupFolderName:n}),v.current="")},w=async()=>{g?r(Fq.Save):await u({backupFolderName:e})},x=async()=>{g?r(Fq.Upload):await a()},A=async e=>{l({fileName:e})};(0,i.useEffect)((()=>{!g&&n&&(async()=>{switch(n){case Fq.SaveAs:await b(v.current);break;case Fq.Save:await w();break;case Fq.Upload:await x();break;case Fq.SaveTestFile:await A(y.current)}r(null)})()}),[g,n]);const S=Boolean(e||h),_=!h,k=h;return(0,i.useEffect)((()=>{c||n!==Fq.SaveAs||v.current||r(null)}),[c,n]),{handleSaveChangesLocallyToPrevLocation:w,onGenerateBackup:async()=>{const e=await t({message:"Name the folder for this VTG session (saved under checksum/drafts).\nFuture saves and reloads will use the test file in this folder.",mode:uy.Prompt});if(g)return v.current=e,void r(Fq.SaveAs);await b(e)},currentLocalSaveFolder:e,showSaveButton:S,showSaveTestFileButton:_,showReloadFromFileButton:k,isGeneratingBackup:d||n===Fq.SaveAs,onGenerateExtendedJSONBackup:async()=>{await f()},isGeneratingExtendedJSONBackup:p,isGeneratingPR:s||n===Fq.Upload,generateBackup:u,handleUploadTest:x,isSavingTestFile:c||n===Fq.SaveTestFile,onSaveTestFile:async()=>{const e=await t({message:"Provide the a name for the test file",mode:uy.Prompt});if(g)return y.current=e,void r(Fq.SaveTestFile);await A(e)}}},Bq=e=>{let{iterateAiStep:t}=e;const n=Kt(),[r]=BU(),[a,{isLoading:s}]=VU(),l=(0,o.d4)(wI),c=(0,i.useRef)((()=>{})),u=(0,i.useCallback)((e=>{c.current=(t,n)=>{e(),t&&Zf.info(t,n)}}),[]),d=(0,i.useRef)(new Map),f=(0,i.useCallback)(((e,t,n,r)=>{if(!d.current.has(e)){const o=()=>{c.current(t,n),r?setTimeout(e,r):e()};d.current.set(e,o)}return d.current.get(e)}),[]),{playing:p,stepsCurrentlyPlaying:h}=AI(),m=ln(),g=sn(),v=pO(),{isOn:y,on:b,off:w}=_C(),{isOn:x,on:A,off:S}=_C(),_=(0,i.useMemo)((()=>p||Object.values(h).some(Boolean)||m),[p,h,m]),k=(0,i.useMemo)((()=>p||g||Object.values(h).some(Boolean)),[p,g,h]),C=(0,i.useCallback)((async e=>{e.preventDefault(),v.some((e=>{let{thought:t}=e;return!t||""===t.trim()}))?Zf.error("There are steps without provided thought. AI generation may be incorrect."):await t()}),[v,t]),{showDialog:E}=cy(),O=(0,i.useCallback)((async()=>{await E({message:"Are you sure you want to clear all steps (login and initial navigation will not be deleted)?",mode:uy.Confirm})&&(await r().unwrap(),Zf.success("Test has been cleared",{autoClose:1e3}))}),[r,E]),T=(0,i.useCallback)((async()=>a()),[a]),I=(0,i.useCallback)((async()=>a({useLLM:!0})),[a]),{handleSaveChangesLocallyToPrevLocation:R,onGenerateBackup:P,currentLocalSaveFolder:M,isGeneratingBackup:D,isGeneratingPR:L,handleUploadTest:j,onSaveTestFile:N,isSavingTestFile:F,showSaveButton:z,showSaveTestFileButton:B,showReloadFromFileButton:V,onGenerateExtendedJSONBackup:U,isGeneratingExtendedJSONBackup:W}=zq(),q=(0,i.useCallback)((()=>{n(ci(!1)),yz.clearHighlights()}),[n]),H=(0,i.useCallback)((()=>{yz.toggleOrSetShouldRecordActions({recordingOptions:{mode:Xo.InsertLast}})}),[]),Y=(0,i.useCallback)((e=>{m?q():C(e)}),[m,q,C]);return{isAiGenerating:m,isRecording:g,handleStartAI:C,handleStopAi:q,handleUploadTest:j,setShouldRecordActions:H,isSettingsDialogOpen:y,openSettingsDialog:b,onSettingsDialogClosed:w,handleSaveChangesLocallyToPrevLocation:R,onGenerateBackup:P,currentLocalSaveFolder:M,isGeneratingPR:L,isGeneratingBackup:D,handleClearAllSteps:O,isRecordDisabled:_,isGenerateAiDisabled:k,toggleGenerateAi:Y,onSaveTestFile:N,isSavingTestFile:F,handleReloadFromFile:T,handleReloadFromFileWithLLM:I,isReloadingFromFile:s,showReloadFromFileButton:V,showSaveButton:z,showSaveTestFileButton:B,registerCloseMenu:u,makeMenuActionHandler:f,isExecutingSteps:l,isHelpDialogOpen:x,openHelpDialog:A,onHelpDialogClosed:S,onGenerateExtendedJSONBackup:U,isGeneratingExtendedJSONBackup:W}},Vq=(0,Fe.A)((0,R.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"}),"CloudUpload"),Uq=(0,Fe.A)((0,R.jsx)("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),Wq=(0,Fe.A)((0,R.jsx)("path",{d:"M21 12.4V7l-4-4H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h7.4zM15 15c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3M6 6h9v4H6zm13.99 10.25 1.77 1.77L16.77 23H15v-1.77zm3.26.26-.85.85-1.77-1.77.85-.85c.2-.2.51-.2.71 0l1.06 1.06c.2.2.2.52 0 .71"}),"SaveAs"),qq=(0,Fe.A)((0,R.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"}),"Settings"),Hq=(0,Fe.A)((0,R.jsx)("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4z"}),"Cached"),Yq=(0,Fe.A)((0,R.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}),"Help"),Gq=(0,Fe.A)((0,R.jsx)("path",{d:"M4 7v2c0 .55-.45 1-1 1H2v4h1c.55 0 1 .45 1 1v2c0 1.65 1.35 3 3 3h3v-2H7c-.55 0-1-.45-1-1v-2c0-1.3-.84-2.42-2-2.83v-.34C5.16 11.42 6 10.3 6 9V7c0-.55.45-1 1-1h3V4H7C5.35 4 4 5.35 4 7m17 3c-.55 0-1-.45-1-1V7c0-1.65-1.35-3-3-3h-3v2h3c.55 0 1 .45 1 1v2c0 1.3.84 2.42 2 2.83v.34c-1.16.41-2 1.52-2 2.83v2c0 .55-.45 1-1 1h-3v2h3c1.65 0 3-1.35 3-3v-2c0-.55.45-1 1-1h1v-4z"}),"DataObject");var Kq={name:"vbly8x",styles:"display:flex;align-items:center;height:40px;padding:0 16px;gap:16px;border-bottom:1px solid #e0e0e0"};function $q(e){return(0,Ee.Ay)("MuiListItem",e)}const Qq=(0,L.A)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);const Xq=(0,L.A)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Jq(e){return(0,Ee.Ay)("MuiListItemSecondaryAction",e)}(0,L.A)("MuiListItemSecondaryAction",["root","disableGutters"]);const Zq=["className"],eH=(0,U.Ay)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((e=>{let{ownerState:t}=e;return(0,w.A)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0})})),tH=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=(0,x.A)(n,Zq),a=i.useContext(hm),s=(0,w.A)({},n,{disableGutters:a.disableGutters}),l=(e=>{const{disableGutters:t,classes:n}=e,r={root:["root",t&&"disableGutters"]};return(0,z.A)(r,Jq,n)})(s);return(0,R.jsx)(eH,(0,w.A)({className:(0,A.A)(l.root,r),ownerState:s,ref:t},o))}));tH.muiName="ListItemSecondaryAction";const nH=tH,rH=["className"],oH=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],iH=(0,U.Ay)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((e=>{let{theme:t,ownerState:n}=e;return(0,w.A)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!n.disablePadding&&(0,w.A)({paddingTop:8,paddingBottom:8},n.dense&&{paddingTop:4,paddingBottom:4},!n.disableGutters&&{paddingLeft:16,paddingRight:16},!!n.secondaryAction&&{paddingRight:48}),!!n.secondaryAction&&{["& > .".concat(Xq.root)]:{paddingRight:48}},{["&.".concat(Qq.focusVisible)]:{backgroundColor:(t.vars||t).palette.action.focus},["&.".concat(Qq.selected)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,B.X4)(t.palette.primary.main,t.palette.action.selectedOpacity),["&.".concat(Qq.focusVisible)]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.focusOpacity,"))"):(0,B.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&.".concat(Qq.disabled)]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"flex-start"===n.alignItems&&{alignItems:"flex-start"},n.divider&&{borderBottom:"1px solid ".concat((t.vars||t).palette.divider),backgroundClip:"padding-box"},n.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&.".concat(Qq.selected,":hover")]:{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / calc(").concat(t.vars.palette.action.selectedOpacity," + ").concat(t.vars.palette.action.hoverOpacity,"))"):(0,B.X4)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?"rgba(".concat(t.vars.palette.primary.mainChannel," / ").concat(t.vars.palette.action.selectedOpacity,")"):(0,B.X4)(t.palette.primary.main,t.palette.action.selectedOpacity)}}},n.hasSecondaryAction&&{paddingRight:48})})),aH=(0,U.Ay)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),sH=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:a=!1,children:s,className:l,component:c,components:u={},componentsProps:d={},ContainerComponent:f="li",ContainerProps:{className:p}={},dense:h=!1,disabled:m=!1,disableGutters:g=!1,disablePadding:v=!1,divider:y=!1,focusVisibleClassName:b,secondaryAction:S,selected:_=!1,slotProps:k={},slots:C={}}=n,E=(0,x.A)(n.ContainerProps,rH),O=(0,x.A)(n,oH),T=i.useContext(hm),I=i.useMemo((()=>({dense:h||T.dense||!1,alignItems:r,disableGutters:g})),[r,T.dense,h,g]),P=i.useRef(null);(0,Wi.A)((()=>{o&&P.current&&P.current.focus()}),[o]);const M=i.Children.toArray(s),D=M.length&&(0,FA.A)(M[M.length-1],["ListItemSecondaryAction"]),L=(0,w.A)({},n,{alignItems:r,autoFocus:o,button:a,dense:I.dense,disabled:m,disableGutters:g,disablePadding:v,divider:y,hasSecondaryAction:D,selected:_}),j=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e,d={root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]};return(0,z.A)(d,$q,r)})(L),N=(0,K.A)(P,t),F=C.root||u.Root||iH,B=k.root||d.root||{},V=(0,w.A)({className:(0,A.A)(j.root,B.className,l),disabled:m},O);let U=c||"li";return a&&(V.component=c||"div",V.focusVisibleClassName=(0,A.A)(Qq.focusVisible,b),U=Pe),D?(U=V.component||c?U:"div","li"===f&&("li"===U?U="div":"li"===V.component&&(V.component="div")),(0,R.jsx)(hm.Provider,{value:I,children:(0,R.jsxs)(aH,(0,w.A)({as:f,className:(0,A.A)(j.container,p),ref:N,ownerState:L},E,{children:[(0,R.jsx)(F,(0,w.A)({},B,!ht(F)&&{as:U,ownerState:(0,w.A)({},L,B.ownerState)},V,{children:M})),M.pop()]}))})):(0,R.jsx)(hm.Provider,{value:I,children:(0,R.jsxs)(F,(0,w.A)({},B,{as:U,ref:N},!ht(F)&&{ownerState:(0,w.A)({},L,B.ownerState)},V,{children:[M,S&&(0,R.jsx)(nH,{children:S})]}))})})),lH=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],cH=(0,U.Ay)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{["& .".concat(Sg.primary)]:t.primary},{["& .".concat(Sg.secondary)]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})((e=>{let{ownerState:t}=e;return(0,w.A)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})})),uH=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiListItemText"}),{children:r,className:o,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d}=n,f=(0,x.A)(n,lH),{dense:p}=i.useContext(hm);let h=null!=l?l:r,m=u;const g=(0,w.A)({},n,{disableTypography:a,inset:s,primary:!!h,secondary:!!m,dense:p}),v=(e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e,a={root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,z.A)(a,Ag,t)})(g);return null==h||h.type===tt||a||(h=(0,R.jsx)(tt,(0,w.A)({variant:p?"body2":"body1",className:v.primary,component:null!=c&&c.variant?void 0:"span",display:"block"},c,{children:h}))),null==m||m.type===tt||a||(m=(0,R.jsx)(tt,(0,w.A)({variant:"body2",className:v.secondary,color:"text.secondary",display:"block"},d,{children:m}))),(0,R.jsxs)(cH,(0,w.A)({className:(0,A.A)(v.root,o),ownerState:g,ref:t},f,{children:[h,m]}))})),dH=e=>{let{isOpen:t,onClose:n}=e;return(0,rs.FD)(iw,{open:t,onClose:n,children:[(0,rs.Y)(uw,{children:"Help"}),(0,rs.Y)(hw,{children:(0,rs.FD)(yw,{children:[(0,rs.Y)(tt,{variant:"caption",gutterBottom:!0,children:"General"}),(0,rs.Y)(tt,{variant:"body1",paragraph:!0,children:"..."}),(0,rs.Y)(tt,{variant:"caption",children:"Recording keyboard shortcuts"}),(0,rs.FD)(ym,{children:[(0,rs.Y)(ax,{children:"Assertions"}),(0,rs.Y)(sH,{children:(0,rs.Y)(uH,{children:'Add "toHaveText" assertion: ctrl+\u2318+a'})}),(0,rs.Y)(sH,{children:(0,rs.Y)(uH,{children:'Add "toBeVisible" assertion: ctrl+\u2318+s'})}),(0,rs.Y)(sH,{children:(0,rs.Y)(uH,{children:"Exit assertion mode: esc"})}),(0,rs.Y)(ax,{children:"Actions"}),(0,rs.Y)(sH,{children:(0,rs.Y)(uH,{children:"Hover (hover, then use the shortcut): ctrl+\u2318+h"})})]})]})})]})},fH=e=>{let{iterateAiStep:t}=e;const n=(0,i.useMemo)((()=>({container:Kq})),[]);return(0,rs.FD)(F,{css:n.container,children:[(0,rs.Y)(pH,{}),(0,rs.Y)(hH,{iterateAiStep:t})]})},pH=()=>{const e=(0,o.d4)(on),t=(0,i.useMemo)((()=>null!==e&&void 0!==e?e:"Checksum Test Generation"),[e]);return(0,rs.Y)(F,{children:(0,rs.Y)(tt,{variant:"h5",sx:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",maxWidth:500,cursor:"default"},title:t,children:t})})},hH=e=>{let{iterateAiStep:t}=e;const{isAiGenerating:n,isRecording:r,isGeneratingPR:o,handleUploadTest:i,setShouldRecordActions:a,onGenerateBackup:s,isGeneratingBackup:l,currentLocalSaveFolder:c,handleSaveChangesLocallyToPrevLocation:u,isSettingsDialogOpen:d,handleClearAllSteps:f,openSettingsDialog:p,onSettingsDialogClosed:h,isRecordDisabled:m,isGenerateAiDisabled:g,toggleGenerateAi:v,onSaveTestFile:y,isSavingTestFile:b,handleReloadFromFile:w,handleReloadFromFileWithLLM:x,isReloadingFromFile:A,showReloadFromFileButton:S,showSaveButton:_,showSaveTestFileButton:k,registerCloseMenu:C,makeMenuActionHandler:E,isExecutingSteps:O,isHelpDialogOpen:T,openHelpDialog:I,onHelpDialogClosed:R,isGeneratingExtendedJSONBackup:P,onGenerateExtendedJSONBackup:M}=Bq({iterateAiStep:t});return(0,rs.FD)(F,{sx:{marginLeft:"auto"},"data-testid":Ng.HeaderContent,children:[(0,rs.Y)(ft,{disabled:m,onClick:a,startIcon:r?(0,rs.Y)(vy,{}):(0,rs.Y)(cs,{}),"data-testid":Ng.RecordButton,children:r?"Stop Recording":"Record"}),(0,rs.Y)(ft,{onClick:v,disabled:g,startIcon:n?(0,rs.Y)(vy,{}):(0,rs.Y)(gy,{}),children:n?"Stop AI":"AI Generate"}),(0,rs.FD)(ZE,{registerClose:C,children:[(0,rs.FD)(Og,{disableRipple:!0,onClick:E(i),disabled:o,children:[(0,rs.Y)(Vq,{}),o?"Uploading...":'Upload test as "verifying"']}),_?(0,rs.Y)(Og,{disableRipple:!0,onClick:E(u),disabled:l,"data-testid":Ng.SaveProgressToPrevious,children:(0,rs.Y)(pm,{title:"Save progress to ".concat(c),children:(0,rs.FD)("span",{children:[(0,rs.Y)(Uq,{}),l?"Saving...":"Save"]})})}):null,(0,rs.FD)(Og,{disableRipple:!0,onClick:E(s),disabled:l||O,"data-testid":Ng.SaveProgressAs,children:[(0,rs.Y)(Wq,{}),l?"Saving...":"Save as..."]}),k?(0,rs.FD)(Og,{disableRipple:!0,onClick:E(y),disabled:b,children:[(0,rs.Y)(Wq,{}),b?"Saving...":"Save test file..."]}):null,(0,rs.FD)(Og,{disableRipple:!0,onClick:E(p),"data-testid":Ng.SettingsButton,children:[(0,rs.Y)(qq,{}),"Settings"]}),(0,rs.FD)(Og,{disableRipple:!0,disabled:O,onClick:E(f),"data-testid":Ng.ClearTest,children:[(0,rs.Y)(Ig,{}),"Clear test"]}),S?(0,rs.FD)(Og,{"data-testid":Ng.ReloadTest,disableRipple:!0,disabled:O,onClick:E(w,(0,rs.FD)(rs.FK,{children:[(0,rs.Y)("div",{children:"Reloading the test file..."}),(0,rs.Y)("div",{children:'Run the test to re-sync the steps."'})]}),void 0,1e3),children:[(0,rs.Y)(Hq,{}),A?"Reloading...":"Reload file"]}):null,(0,rs.FD)(Og,{disableRipple:!0,onClick:E(I),children:[(0,rs.Y)(Yq,{}),"Help"]}),(0,rs.Y)(Sw,{}),S?(0,rs.FD)(Og,{disableRipple:!0,disabled:O,onClick:E(x,(0,rs.FD)(rs.FK,{children:[(0,rs.Y)("div",{children:"Reloading the test file with LLM, this may take a while..."}),(0,rs.Y)("div",{children:"Some steps may be out of sync."})]}),void 0,1e3),children:[(0,rs.Y)(Hq,{}),A?"Reloading...":"Reload file with LLM - experimental"]}):null,(0,rs.FD)(Og,{disableRipple:!0,onClick:E(M),disabled:P||O,children:[(0,rs.Y)(Gq,{}),l?"Saving...":"Save extended JSON"]})]}),(0,rs.Y)(Dw,{isOpen:d,onClose:h}),(0,rs.Y)(dH,{isOpen:T,onClose:R})]})},mH=["children","className","collapsedSize","collapsible","defaultSize","forwardedRef","id","maxSize","minSize","onCollapse","onExpand","onResize","order","style","tagName"],gH=["autoSaveId","children","className","direction","forwardedRef","id","onLayout","keyboardResizeBy","storage","style","tagName"],vH=["children","className","disabled","hitAreaMargins","id","onBlur","onDragging","onFocus","style","tabIndex","tagName"],{createElement:yH,createContext:bH,createRef:wH,forwardRef:xH,useCallback:AH,useContext:SH,useEffect:_H,useImperativeHandle:kH,useLayoutEffect:CH,useMemo:EH,useRef:OH,useState:TH}=a,IH=a["useId".concat(Math.random()).slice(0,5)],RH=CH,PH=bH(null);PH.displayName="PanelGroupContext";const MH=RH,DH="function"===typeof IH?IH:()=>null;let LH=0;function jH(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=DH(),n=OH(e||t||null);return null===n.current&&(n.current=""+LH++),null!==e&&void 0!==e?e:n.current}function NH(e){let{children:t,className:n="",collapsedSize:r,collapsible:o,defaultSize:i,forwardedRef:a,id:s,maxSize:l,minSize:c,onCollapse:u,onExpand:d,onResize:f,order:p,style:h,tagName:m="div"}=e,v=(0,ns.A)(e,mH);const y=SH(PH);if(null===y)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:b,expandPanel:w,getPanelSize:x,getPanelStyle:A,groupId:S,isPanelCollapsed:_,reevaluatePanelConstraints:k,registerPanel:C,resizePanel:E,unregisterPanel:O}=y,T=jH(s),I=OH({callbacks:{onCollapse:u,onExpand:d,onResize:f},constraints:{collapsedSize:r,collapsible:o,defaultSize:i,maxSize:l,minSize:c},id:T,idIsFromProps:void 0!==s,order:p});OH({didLogMissingDefaultSizeWarning:!1}),MH((()=>{const{callbacks:e,constraints:t}=I.current,n=(0,g.A)({},t);I.current.id=T,I.current.idIsFromProps=void 0!==s,I.current.order=p,e.onCollapse=u,e.onExpand=d,e.onResize=f,t.collapsedSize=r,t.collapsible=o,t.defaultSize=i,t.maxSize=l,t.minSize=c,n.collapsedSize===t.collapsedSize&&n.collapsible===t.collapsible&&n.maxSize===t.maxSize&&n.minSize===t.minSize||k(I.current,n)})),MH((()=>{const e=I.current;return C(e),()=>{O(e)}}),[p,T,C,O]),kH(a,(()=>({collapse:()=>{b(I.current)},expand:e=>{w(I.current,e)},getId:()=>T,getSize:()=>x(I.current),isCollapsed:()=>_(I.current),isExpanded:()=>!_(I.current),resize:e=>{E(I.current,e)}})),[b,w,x,_,T,E]);const R=A(I.current,i);return yH(m,(0,g.A)((0,g.A)({},v),{},{children:t,className:n,id:s,style:(0,g.A)((0,g.A)({},R),h),"data-panel":"","data-panel-collapsible":o||void 0,"data-panel-group-id":S,"data-panel-id":T,"data-panel-size":parseFloat(""+R.flexGrow).toFixed(1)}))}const FH=xH(((e,t)=>yH(NH,(0,g.A)((0,g.A)({},e),{},{forwardedRef:t}))));let zH;NH.displayName="Panel",FH.displayName="forwardRef(Panel)";let BH=null,VH=!0,UH=null;function WH(e,t){if(!VH)return;const n=function(e,t){if(t){const e=0!==(t&rY),n=0!==(t&oY);if(0!==(t&tY))return e?"se-resize":n?"ne-resize":"e-resize";if(0!==(t&nY))return e?"sw-resize":n?"nw-resize":"w-resize";if(e)return"s-resize";if(n)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}(e,t);if(BH!==n){if(BH=n,null===UH){UH=document.createElement("style");const e=zH;e&&UH.setAttribute("nonce",e),document.head.appendChild(UH)}UH.innerHTML="*{cursor: ".concat(n,"!important;}")}}function qH(e){return"keydown"===e.type}function HH(e){return e.type.startsWith("pointer")}function YH(e){return e.type.startsWith("mouse")}function GH(e){if(HH(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(YH(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function KH(e,t,n){return n?e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y:e.x<=t.x+t.width&&e.x+e.width>=t.x&&e.y<=t.y+t.height&&e.y+e.height>=t.y}const $H=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function QH(e){const t=getComputedStyle(e);return"fixed"===t.position||(!("auto"===t.zIndex||"static"===t.position&&!function(e){var t;const n=getComputedStyle(null!==(t=eY(e))&&void 0!==t?t:e).display;return"flex"===n||"inline-flex"===n}(e))||(+t.opacity<1||("transform"in t&&"none"!==t.transform||("webkitTransform"in t&&"none"!==t.webkitTransform||("mixBlendMode"in t&&"normal"!==t.mixBlendMode||("filter"in t&&"none"!==t.filter||("webkitFilter"in t&&"none"!==t.webkitFilter||("isolation"in t&&"isolate"===t.isolation||(!!$H.test(t.willChange)||"touch"===t.webkitOverflowScrolling)))))))))}function XH(e){let t=e.length;for(;t--;){const n=e[t];if(bY(n,"Missing node"),QH(n))return n}return null}function JH(e){return e&&Number(getComputedStyle(e).zIndex)||0}function ZH(e){const t=[];for(;e;)t.push(e),e=eY(e);return t}function eY(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}const tY=1,nY=2,rY=4,oY=8,iY="coarse"===function(){if("function"===typeof matchMedia)return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}();let aY=[],sY=!1,lY=new Map,cY=new Map;const uY=new Set;function dY(e){const{target:t}=e,{x:n,y:r}=GH(e);sY=!0,hY({target:t,x:n,y:r}),vY(),aY.length>0&&(yY("down",e),e.preventDefault(),e.stopPropagation())}function fY(e){const{x:t,y:n}=GH(e);if(sY&&0===e.buttons&&(sY=!1,yY("up",e)),!sY){const{target:r}=e;hY({target:r,x:t,y:n})}yY("move",e),gY(),aY.length>0&&e.preventDefault()}function pY(e){const{target:t}=e,{x:n,y:r}=GH(e);cY.clear(),sY=!1,aY.length>0&&e.preventDefault(),yY("up",e),hY({target:t,x:n,y:r}),gY(),vY()}function hY(e){let{target:t,x:n,y:r}=e;aY.splice(0);let o=null;(t instanceof HTMLElement||t instanceof SVGElement)&&(o=t),uY.forEach((e=>{const{element:t,hitAreaMargins:i}=e,a=t.getBoundingClientRect(),{bottom:s,left:l,right:c,top:u}=a,d=iY?i.coarse:i.fine;if(n>=l-d&&n<=c+d&&r>=u-d&&r<=s+d){if(null!==o&&document.contains(o)&&t!==o&&!t.contains(o)&&!o.contains(t)&&function(e,t){if(e===t)throw new Error("Cannot compare node with itself");const n={a:ZH(e),b:ZH(t)};let r;for(;n.a.at(-1)===n.b.at(-1);)e=n.a.pop(),t=n.b.pop(),r=e;bY(r,"Stacking order can only be calculated for elements with a common ancestor");const o=JH(XH(n.a)),i=JH(XH(n.b));if(o===i){const e=r.childNodes,t={a:n.a.at(-1),b:n.b.at(-1)};let o=e.length;for(;o--;){const n=e[o];if(n===t.a)return 1;if(n===t.b)return-1}}return Math.sign(o-i)}(o,t)>0){let e=o,n=!1;for(;e&&!e.contains(t);){if(KH(e.getBoundingClientRect(),a,!0)){n=!0;break}e=e.parentElement}if(n)return}aY.push(e)}}))}function mY(e,t){cY.set(e,t)}function gY(){let e=!1,t=!1;aY.forEach((n=>{const{direction:r}=n;"horizontal"===r?e=!0:t=!0}));let n=0;cY.forEach((e=>{n|=e})),e&&t?WH("intersection",n):e?WH("horizontal",n):t?WH("vertical",n):null!==UH&&(document.head.removeChild(UH),BH=null,UH=null)}function vY(){lY.forEach(((e,t)=>{const{body:n}=t;n.removeEventListener("contextmenu",pY),n.removeEventListener("pointerdown",dY),n.removeEventListener("pointerleave",fY),n.removeEventListener("pointermove",fY)})),window.removeEventListener("pointerup",pY),window.removeEventListener("pointercancel",pY),uY.size>0&&(sY?(aY.length>0&&lY.forEach(((e,t)=>{const{body:n}=t;e>0&&(n.addEventListener("contextmenu",pY),n.addEventListener("pointerleave",fY),n.addEventListener("pointermove",fY))})),window.addEventListener("pointerup",pY),window.addEventListener("pointercancel",pY)):lY.forEach(((e,t)=>{const{body:n}=t;e>0&&(n.addEventListener("pointerdown",dY,{capture:!0}),n.addEventListener("pointermove",fY))})))}function yY(e,t){uY.forEach((n=>{const{setResizeHandlerState:r}=n,o=aY.includes(n);r(e,o,t)}))}function bY(e,t){if(!e)throw console.error(t),Error(t)}function wY(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10;return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function xY(e,t){return 0===wY(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:10)}function AY(e,t,n){return 0===wY(e,t,n)}function SY(e){let{panelConstraints:t,panelIndex:n,size:r}=e;const o=t[n];bY(null!=o,"Panel constraints not found for index ".concat(n));let{collapsedSize:i=0,collapsible:a,maxSize:s=100,minSize:l=0}=o;if(wY(r,l)<0)if(a){r=wY(r,(i+l)/2)<0?i:l}else r=l;return r=Math.min(s,r),r=parseFloat(r.toFixed(10)),r}function _Y(e){let{delta:t,initialLayout:n,panelConstraints:r,pivotIndices:o,prevLayout:i,trigger:a}=e;if(AY(t,0))return n;const s=[...n],[l,c]=o;bY(null!=l,"Invalid first pivot index"),bY(null!=c,"Invalid second pivot index");let u=0;if("keyboard"===a){{const e=t<0?c:l,o=r[e];bY(o,"Panel constraints not found for index ".concat(e));const{collapsedSize:i=0,collapsible:a,minSize:s=0}=o;if(a){const r=n[e];if(bY(null!=r,"Previous layout not found for panel index ".concat(e)),AY(r,i)){const e=s-r;wY(e,Math.abs(t))>0&&(t=t<0?0-e:e)}}}{const e=t<0?l:c,o=r[e];bY(o,"No panel constraints found for index ".concat(e));const{collapsedSize:i=0,collapsible:a,minSize:s=0}=o;if(a){const r=n[e];if(bY(null!=r,"Previous layout not found for panel index ".concat(e)),AY(r,s)){const e=r-i;wY(e,Math.abs(t))>0&&(t=t<0?0-e:e)}}}}{const e=t<0?1:-1;let o=t<0?c:l,i=0;for(;;){const t=n[o];bY(null!=t,"Previous layout not found for panel index ".concat(o));if(i+=SY({panelConstraints:r,panelIndex:o,size:100})-t,o+=e,o<0||o>=r.length)break}const a=Math.min(Math.abs(t),Math.abs(i));t=t<0?0-a:a}{let e=t<0?l:c;for(;e>=0&&e<r.length;){const o=Math.abs(t)-Math.abs(u),i=n[e];bY(null!=i,"Previous layout not found for panel index ".concat(e));const a=SY({panelConstraints:r,panelIndex:e,size:i-o});if(!AY(i,a)&&(u+=i-a,s[e]=a,u.toPrecision(3).localeCompare(Math.abs(t).toPrecision(3),void 0,{numeric:!0})>=0))break;t<0?e--:e++}}if(function(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!AY(e[r],t[r],n))return!1;return!0}(i,s))return i;{const e=t<0?c:l,o=n[e];bY(null!=o,"Previous layout not found for panel index ".concat(e));const i=o+u,a=SY({panelConstraints:r,panelIndex:e,size:i});if(s[e]=a,!AY(a,i)){let e=i-a;let n=t<0?c:l;for(;n>=0&&n<r.length;){const o=s[n];bY(null!=o,"Previous layout not found for panel index ".concat(n));const i=SY({panelConstraints:r,panelIndex:n,size:o+e});if(AY(o,i)||(e-=i-o,s[n]=i),AY(e,0))break;t>0?n--:n++}}}return AY(s.reduce(((e,t)=>t+e),0),100)?s:i}function kY(e){let{layout:t,panelsArray:n,pivotIndices:r}=e,o=0,i=100,a=0,s=0;const l=r[0];bY(null!=l,"No pivot index found"),n.forEach(((e,t)=>{const{constraints:n}=e,{maxSize:r=100,minSize:c=0}=n;t===l?(o=c,i=r):(a+=c,s+=r)}));return{valueMax:Math.min(i,100-a),valueMin:Math.max(o,100-s),valueNow:t[l]}}function CY(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return Array.from(t.querySelectorAll('[data-panel-resize-handle-id][data-panel-group-id="'.concat(e,'"]')))}function EY(e,t){const n=CY(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:document).findIndex((e=>e.getAttribute("data-panel-resize-handle-id")===t));return null!==n&&void 0!==n?n:null}function OY(e,t,n){const r=EY(e,t,n);return null!=r?[r,r+1]:[-1,-1]}function TY(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;var n;if(t instanceof HTMLElement&&(null===t||void 0===t||null===(n=t.dataset)||void 0===n?void 0:n.panelGroupId)==e)return t;const r=t.querySelector('[data-panel-group][data-panel-group-id="'.concat(e,'"]'));return r||null}function IY(e){const t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:document).querySelector('[data-panel-resize-handle-id="'.concat(e,'"]'));return t||null}function RY(e){let{committedValuesRef:t,eagerValuesRef:n,groupId:r,layout:o,panelDataArray:i,panelGroupElement:a,setLayout:s}=e;OH({didWarnAboutMissingResizeHandle:!1}),MH((()=>{if(!a)return;const e=CY(r,a);for(let t=0;t<i.length-1;t++){const{valueMax:n,valueMin:r,valueNow:a}=kY({layout:o,panelsArray:i,pivotIndices:[t,t+1]}),s=e[t];if(null==s);else{const e=i[t];bY(e,'No panel data found for index "'.concat(t,'"')),s.setAttribute("aria-controls",e.id),s.setAttribute("aria-valuemax",""+Math.round(n)),s.setAttribute("aria-valuemin",""+Math.round(r)),s.setAttribute("aria-valuenow",null!=a?""+Math.round(a):"")}}return()=>{e.forEach(((e,t)=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-valuemax"),e.removeAttribute("aria-valuemin"),e.removeAttribute("aria-valuenow")}))}}),[r,o,i,a]),_H((()=>{if(!a)return;const e=n.current;bY(e,"Eager values not found");const{panelDataArray:t}=e;bY(null!=TY(r,a),'No group found for id "'.concat(r,'"'));const i=CY(r,a);bY(i,'No resize handles found for group id "'.concat(r,'"'));const l=i.map((e=>{const n=e.getAttribute("data-panel-resize-handle-id");bY(n,"Resize handle element has no handle id attribute");const[i,l]=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:document;var o,i,a,s;const l=IY(t,r),c=CY(e,r),u=l?c.indexOf(l):-1;return[null!==(o=null===(i=n[u])||void 0===i?void 0:i.id)&&void 0!==o?o:null,null!==(a=null===(s=n[u+1])||void 0===s?void 0:s.id)&&void 0!==a?a:null]}(r,n,t,a);if(null==i||null==l)return()=>{};const c=e=>{if(!e.defaultPrevented)switch(e.key){case"Enter":{e.preventDefault();const l=t.findIndex((e=>e.id===i));if(l>=0){const e=t[l];bY(e,"No panel data found for index ".concat(l));const i=o[l],{collapsedSize:c=0,collapsible:u,minSize:d=0}=e.constraints;if(null!=i&&u){const e=_Y({delta:AY(i,c)?d-c:c-i,initialLayout:o,panelConstraints:t.map((e=>e.constraints)),pivotIndices:OY(r,n,a),prevLayout:o,trigger:"keyboard"});o!==e&&s(e)}}break}}};return e.addEventListener("keydown",c),()=>{e.removeEventListener("keydown",c)}}));return()=>{l.forEach((e=>e()))}}),[a,t,n,r,o,i,s])}function PY(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function MY(e,t){const n="horizontal"===e,{x:r,y:o}=GH(t);return n?r:o}function DY(e,t,n,r,o,i){if(qH(e)){const t="horizontal"===n;let r=0;r=e.shiftKey?100:null!=o?o:10;let i=0;switch(e.key){case"ArrowDown":i=t?0:r;break;case"ArrowLeft":i=t?-r:0;break;case"ArrowRight":i=t?r:0;break;case"ArrowUp":i=t?0:-r;break;case"End":i=100;break;case"Home":i=-100}return i}return null==r?0:function(e,t,n,r,o){const i="horizontal"===n,a=IY(t,o);bY(a,'No resize handle element found for id "'.concat(t,'"'));const s=a.getAttribute("data-panel-group-id");bY(s,"Resize handle element has no group id attribute");let{initialCursorPosition:l}=r;const c=MY(n,e),u=TY(s,o);bY(u,'No group element found for id "'.concat(s,'"'));const d=u.getBoundingClientRect();return(c-l)/(i?d.width:d.height)*100}(e,t,n,r,i)}function LY(e,t,n){t.forEach(((t,r)=>{const o=e[r];bY(o,"Panel data not found for index ".concat(r));const{callbacks:i,constraints:a,id:s}=o,{collapsedSize:l=0,collapsible:c}=a,u=n[s];if(null==u||t!==u){n[s]=t;const{onCollapse:e,onExpand:r,onResize:o}=i;o&&o(t,u),c&&(e||r)&&(!r||null!=u&&!xY(u,l)||xY(t,l)||r(),!e||null!=u&&xY(u,l)||!xY(t,l)||e())}}))}function jY(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function NY(e){try{if("undefined"===typeof localStorage)throw new Error("localStorage not supported in this environment");e.getItem=e=>localStorage.getItem(e),e.setItem=(e,t)=>{localStorage.setItem(e,t)}}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function FY(e){return"react-resizable-panels:".concat(e)}function zY(e){return e.map((e=>{const{constraints:t,id:n,idIsFromProps:r,order:o}=e;return r?n:o?"".concat(o,":").concat(JSON.stringify(t)):JSON.stringify(t)})).sort(((e,t)=>e.localeCompare(t))).join(",")}function BY(e,t){try{const n=FY(e),r=t.getItem(n);if(r){const e=JSON.parse(r);if("object"===typeof e&&null!=e)return e}}catch(n){}return null}function VY(e,t,n,r,o){var i;const a=FY(e),s=zY(t),l=null!==(i=BY(e,o))&&void 0!==i?i:{};l[s]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{o.setItem(a,JSON.stringify(l))}catch(c){console.error(c)}}function UY(e){let{layout:t,panelConstraints:n}=e;const r=[...t],o=r.reduce(((e,t)=>e+t),0);if(r.length!==n.length)throw Error("Invalid ".concat(n.length," panel layout: ").concat(r.map((e=>"".concat(e,"%"))).join(", ")));if(!AY(o,100)&&r.length>0)for(let a=0;a<n.length;a++){const e=r[a];bY(null!=e,"No layout data found for index ".concat(a));const t=100/o*e;r[a]=t}let i=0;for(let a=0;a<n.length;a++){const e=r[a];bY(null!=e,"No layout data found for index ".concat(a));const t=SY({panelConstraints:n,panelIndex:a,size:e});e!=t&&(i+=e-t,r[a]=t)}if(!AY(i,0))for(let a=0;a<n.length;a++){const e=r[a];bY(null!=e,"No layout data found for index ".concat(a));const t=SY({panelConstraints:n,panelIndex:a,size:e+i});if(e!==t&&(i-=t-e,r[a]=t,AY(i,0)))break}return r}const WY={getItem:e=>(NY(WY),WY.getItem(e)),setItem:(e,t)=>{NY(WY),WY.setItem(e,t)}},qY={};function HY(e){let{autoSaveId:t=null,children:n,className:r="",direction:o,forwardedRef:i,id:a=null,onLayout:s=null,keyboardResizeBy:l=null,storage:c=WY,style:u,tagName:d="div"}=e,f=(0,ns.A)(e,gH);const p=jH(a),h=OH(null),[m,v]=TH(null),[y,b]=TH([]),w=function(){const[e,t]=TH(0);return AH((()=>t((e=>e+1))),[])}(),x=OH({}),A=OH(new Map),S=OH(0),_=OH({autoSaveId:t,direction:o,dragState:m,id:p,keyboardResizeBy:l,onLayout:s,storage:c}),k=OH({layout:y,panelDataArray:[],panelDataArrayChanged:!1});OH({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),kH(i,(()=>({getId:()=>_.current.id,getLayout:()=>{const{layout:e}=k.current;return e},setLayout:e=>{const{onLayout:t}=_.current,{layout:n,panelDataArray:r}=k.current,o=UY({layout:e,panelConstraints:r.map((e=>e.constraints))});PY(n,o)||(b(o),k.current.layout=o,t&&t(o),LY(r,o,x.current))}})),[]),MH((()=>{_.current.autoSaveId=t,_.current.direction=o,_.current.dragState=m,_.current.id=p,_.current.onLayout=s,_.current.storage=c})),RY({committedValuesRef:_,eagerValuesRef:k,groupId:p,layout:y,panelDataArray:k.current.panelDataArray,setLayout:b,panelGroupElement:h.current}),_H((()=>{const{panelDataArray:e}=k.current;if(t){if(0===y.length||y.length!==e.length)return;let n=qY[t];null==n&&(n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];null!==n&&clearTimeout(n),n=setTimeout((()=>{e(...o)}),t)}}(VY,100),qY[t]=n);const r=[...e],o=new Map(A.current);n(t,r,o,y,c)}}),[t,y,c]),_H((()=>{}));const C=AH((e=>{const{onLayout:t}=_.current,{layout:n,panelDataArray:r}=k.current;if(e.constraints.collapsible){const o=r.map((e=>e.constraints)),{collapsedSize:i=0,panelSize:a,pivotIndices:s}=KY(r,e,n);if(bY(null!=a,'Panel size not found for panel "'.concat(e.id,'"')),!xY(a,i)){A.current.set(e.id,a);const l=_Y({delta:GY(r,e)===r.length-1?a-i:i-a,initialLayout:n,panelConstraints:o,pivotIndices:s,prevLayout:n,trigger:"imperative-api"});jY(n,l)||(b(l),k.current.layout=l,t&&t(l),LY(r,l,x.current))}}}),[]),E=AH(((e,t)=>{const{onLayout:n}=_.current,{layout:r,panelDataArray:o}=k.current;if(e.constraints.collapsible){const i=o.map((e=>e.constraints)),{collapsedSize:a=0,panelSize:s=0,minSize:l=0,pivotIndices:c}=KY(o,e,r),u=null!==t&&void 0!==t?t:l;if(xY(s,a)){const t=A.current.get(e.id),a=null!=t&&t>=u?t:u,l=_Y({delta:GY(o,e)===o.length-1?s-a:a-s,initialLayout:r,panelConstraints:i,pivotIndices:c,prevLayout:r,trigger:"imperative-api"});jY(r,l)||(b(l),k.current.layout=l,n&&n(l),LY(o,l,x.current))}}}),[]),O=AH((e=>{const{layout:t,panelDataArray:n}=k.current,{panelSize:r}=KY(n,e,t);return bY(null!=r,'Panel size not found for panel "'.concat(e.id,'"')),r}),[]),T=AH(((e,t)=>{const{panelDataArray:n}=k.current,r=GY(n,e);return function(e){let{defaultSize:t,dragState:n,layout:r,panelData:o,panelIndex:i,precision:a=3}=e;const s=r[i];let l;return l=null==s?void 0!=t?t.toPrecision(a):"1":1===o.length?"1":s.toPrecision(a),{flexBasis:0,flexGrow:l,flexShrink:1,overflow:"hidden",pointerEvents:null!==n?"none":void 0}}({defaultSize:t,dragState:m,layout:y,panelData:n,panelIndex:r})}),[m,y]),I=AH((e=>{const{layout:t,panelDataArray:n}=k.current,{collapsedSize:r=0,collapsible:o,panelSize:i}=KY(n,e,t);return bY(null!=i,'Panel size not found for panel "'.concat(e.id,'"')),!0===o&&xY(i,r)}),[]),R=AH((e=>{const{layout:t,panelDataArray:n}=k.current,{collapsedSize:r=0,collapsible:o,panelSize:i}=KY(n,e,t);return bY(null!=i,'Panel size not found for panel "'.concat(e.id,'"')),!o||wY(i,r)>0}),[]),P=AH((e=>{const{panelDataArray:t}=k.current;t.push(e),t.sort(((e,t)=>{const n=e.order,r=t.order;return null==n&&null==r?0:null==n?-1:null==r?1:n-r})),k.current.panelDataArrayChanged=!0,w()}),[w]);MH((()=>{if(k.current.panelDataArrayChanged){k.current.panelDataArrayChanged=!1;const{autoSaveId:e,onLayout:t,storage:n}=_.current,{layout:r,panelDataArray:o}=k.current;let i=null;if(e){const t=function(e,t,n){var r,o;return null!==(o=(null!==(r=BY(e,n))&&void 0!==r?r:{})[zY(t)])&&void 0!==o?o:null}(e,o,n);t&&(A.current=new Map(Object.entries(t.expandToSizes)),i=t.layout)}null==i&&(i=function(e){let{panelDataArray:t}=e;const n=Array(t.length),r=t.map((e=>e.constraints));let o=0,i=100;for(let a=0;a<t.length;a++){const e=r[a];bY(e,"Panel constraints not found for index ".concat(a));const{defaultSize:t}=e;null!=t&&(o++,n[a]=t,i-=t)}for(let a=0;a<t.length;a++){const e=r[a];bY(e,"Panel constraints not found for index ".concat(a));const{defaultSize:s}=e;if(null!=s)continue;const l=i/(t.length-o);o++,n[a]=l,i-=l}return n}({panelDataArray:o}));const a=UY({layout:i,panelConstraints:o.map((e=>e.constraints))});PY(r,a)||(b(a),k.current.layout=a,t&&t(a),LY(o,a,x.current))}})),MH((()=>{const e=k.current;return()=>{e.layout=[]}}),[]);const M=AH((e=>{let t=!1;const n=h.current;if(n){"rtl"===window.getComputedStyle(n,null).getPropertyValue("direction")&&(t=!0)}return function(n){n.preventDefault();const r=h.current;if(!r)return()=>null;const{direction:o,dragState:i,id:a,keyboardResizeBy:s,onLayout:l}=_.current,{layout:c,panelDataArray:u}=k.current,{initialLayout:d}=null!==i&&void 0!==i?i:{},f=OY(a,e,r);let p=DY(n,e,o,i,s,r);const m="horizontal"===o;m&&t&&(p=-p);const g=_Y({delta:p,initialLayout:null!==d&&void 0!==d?d:c,panelConstraints:u.map((e=>e.constraints)),pivotIndices:f,prevLayout:c,trigger:qH(n)?"keyboard":"mouse-or-touch"}),v=!jY(c,g);(HH(n)||YH(n))&&S.current!=p&&(S.current=p,mY(e,v||0===p?0:m?p<0?tY:nY:p<0?rY:oY)),v&&(b(g),k.current.layout=g,l&&l(g),LY(u,g,x.current))}}),[]),D=AH(((e,t)=>{const{onLayout:n}=_.current,{layout:r,panelDataArray:o}=k.current,i=o.map((e=>e.constraints)),{panelSize:a,pivotIndices:s}=KY(o,e,r);bY(null!=a,'Panel size not found for panel "'.concat(e.id,'"'));const l=_Y({delta:GY(o,e)===o.length-1?a-t:t-a,initialLayout:r,panelConstraints:i,pivotIndices:s,prevLayout:r,trigger:"imperative-api"});jY(r,l)||(b(l),k.current.layout=l,n&&n(l),LY(o,l,x.current))}),[]),L=AH(((e,t)=>{const{layout:n,panelDataArray:r}=k.current,{collapsedSize:o=0,collapsible:i}=t,{collapsedSize:a=0,collapsible:s,maxSize:l=100,minSize:c=0}=e.constraints,{panelSize:u}=KY(r,e,n);null!=u&&(i&&s&&xY(u,o)?xY(o,a)||D(e,a):u<c?D(e,c):u>l&&D(e,l))}),[D]),j=AH(((e,t)=>{const{direction:n}=_.current,{layout:r}=k.current;if(!h.current)return;const o=IY(e,h.current);bY(o,'Drag handle element not found for id "'.concat(e,'"'));const i=MY(n,t);v({dragHandleId:e,dragHandleRect:o.getBoundingClientRect(),initialCursorPosition:i,initialLayout:r})}),[]),N=AH((()=>{v(null)}),[]),F=AH((e=>{const{panelDataArray:t}=k.current,n=GY(t,e);n>=0&&(t.splice(n,1),delete x.current[e.id],k.current.panelDataArrayChanged=!0,w())}),[w]),z=EH((()=>({collapsePanel:C,direction:o,dragState:m,expandPanel:E,getPanelSize:O,getPanelStyle:T,groupId:p,isPanelCollapsed:I,isPanelExpanded:R,reevaluatePanelConstraints:L,registerPanel:P,registerResizeHandle:M,resizePanel:D,startDragging:j,stopDragging:N,unregisterPanel:F,panelGroupElement:h.current})),[C,m,o,E,O,T,p,I,R,L,P,M,D,j,N,F]),B={display:"flex",flexDirection:"horizontal"===o?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return yH(PH.Provider,{value:z},yH(d,(0,g.A)((0,g.A)({},f),{},{children:n,className:r,id:a,ref:h,style:(0,g.A)((0,g.A)({},B),u),"data-panel-group":"","data-panel-group-direction":o,"data-panel-group-id":p})))}const YY=xH(((e,t)=>yH(HY,(0,g.A)((0,g.A)({},e),{},{forwardedRef:t}))));function GY(e,t){return e.findIndex((e=>e===t||e.id===t.id))}function KY(e,t,n){const r=GY(e,t),o=r===e.length-1?[r-1,r]:[r,r+1],i=n[r];return(0,g.A)((0,g.A)({},t.constraints),{},{panelSize:i,pivotIndices:o})}function $Y(e){let{children:t=null,className:n="",disabled:r=!1,hitAreaMargins:o,id:i,onBlur:a,onDragging:s,onFocus:l,style:c={},tabIndex:u=0,tagName:d="div"}=e,f=(0,ns.A)(e,vH);var p,h;const m=OH(null),v=OH({onDragging:s});_H((()=>{v.current.onDragging=s}));const y=SH(PH);if(null===y)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:b,groupId:w,registerResizeHandle:x,startDragging:A,stopDragging:S,panelGroupElement:_}=y,k=jH(i),[C,E]=TH("inactive"),[O,T]=TH(!1),[I,R]=TH(null),P=OH({state:C});MH((()=>{P.current.state=C})),_H((()=>{if(r)R(null);else{const e=x(k);R((()=>e))}}),[r,k,x]);const M=null!==(p=null===o||void 0===o?void 0:o.coarse)&&void 0!==p?p:15,D=null!==(h=null===o||void 0===o?void 0:o.fine)&&void 0!==h?h:5;_H((()=>{if(r||null==I)return;const e=m.current;bY(e,"Element ref not attached");return function(e,t,n,r,o){var i;const{ownerDocument:a}=t,s={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:o},l=null!==(i=lY.get(a))&&void 0!==i?i:0;return lY.set(a,l+1),uY.add(s),vY(),function(){var t;cY.delete(e),uY.delete(s);const n=null!==(t=lY.get(a))&&void 0!==t?t:1;if(lY.set(a,n-1),vY(),1===n&&lY.delete(a),aY.includes(s)){const e=aY.indexOf(s);e>=0&&aY.splice(e,1),gY(),o("up",!0,null)}}}(k,e,b,{coarse:M,fine:D},((e,t,n)=>{if(t)switch(e){case"down":{E("drag"),bY(n,'Expected event to be defined for "down" action'),A(k,n);const{onDragging:e}=v.current;e&&e(!0);break}case"move":{const{state:e}=P.current;"drag"!==e&&E("hover"),bY(n,'Expected event to be defined for "move" action'),I(n);break}case"up":{E("hover"),S();const{onDragging:e}=v.current;e&&e(!1);break}}else E("inactive")}))}),[M,b,r,D,x,k,I,A,S]),function(e){let{disabled:t,handleId:n,resizeHandler:r,panelGroupElement:o}=e;_H((()=>{if(t||null==r||null==o)return;const e=IY(n,o);if(null==e)return;const i=t=>{if(!t.defaultPrevented)switch(t.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":t.preventDefault(),r(t);break;case"F6":{t.preventDefault();const r=e.getAttribute("data-panel-group-id");bY(r,'No group element found for id "'.concat(r,'"'));const i=CY(r,o),a=EY(r,n,o);bY(null!==a,'No resize element found for id "'.concat(n,'"')),i[t.shiftKey?a>0?a-1:i.length-1:a+1<i.length?a+1:0].focus();break}}};return e.addEventListener("keydown",i),()=>{e.removeEventListener("keydown",i)}}),[o,t,n,r])}({disabled:r,handleId:k,resizeHandler:I,panelGroupElement:_});return yH(d,(0,g.A)((0,g.A)({},f),{},{children:t,className:n,id:i,onBlur:()=>{T(!1),null===a||void 0===a||a()},onFocus:()=>{T(!0),null===l||void 0===l||l()},ref:m,role:"separator",style:(0,g.A)((0,g.A)({},{touchAction:"none",userSelect:"none"}),c),tabIndex:u,"data-panel-group-direction":b,"data-panel-group-id":w,"data-resize-handle":"","data-resize-handle-active":"drag"===C?"pointer":O?"keyboard":void 0,"data-resize-handle-state":C,"data-panel-resize-handle-enabled":!r,"data-panel-resize-handle-id":k}))}HY.displayName="PanelGroup",YY.displayName="forwardRef(PanelGroup)",$Y.displayName="PanelResizeHandle";var QY={name:"1d5d2ij",styles:"display:none;align-items:center;justify-content:center;width:100%;height:4px;position:relative;.hover-area{position:absolute;inset:0;background-color:rgba(173, 216, 230, 0.2);transition:background-color 0.2s ease-in-out;}.main-line{position:absolute;width:24px;height:4px;background-color:blue;transition:height 0.2s ease-in-out;}.hover-area:hover .main-line{height:6px;}.resize-grip{cursor:row-resize;}"},XY={name:"1n58mro",styles:"height:100%;display:flex;flex-direction:column;overflow:hidden;background-color:white"},JY={name:"5ons4a",styles:"height:100%;position:relative;overflow:hidden"},ZY={name:"y2g5x4",styles:"display:flex;flex-grow:1;min-height:0"},eG={name:"oevb8z",styles:"width:100%;height:100vh;display:flex;flex-direction:column;overflow:hidden"};var tG={name:"6sas6i",styles:"flex-grow:1;overflow-y:auto;display:flex;flex-direction:column;align-items:center;padding:8px;padding-left:0.5rem;padding-right:0.5rem;@media (min-width: 960px){padding-left:1rem;padding-right:1rem;}"},nG={name:"x58leq",styles:"display:flex;flex-direction:column;height:100%;width:100%;background:#f5f5f5"};const rG=e=>{let{controlBarHeight:t,replayerActions:n}=e;const{shouldRenderAddStepMenu:r}=(()=>{const e=pO(),{isInitFinished:t}=un(),{actionsExist:n,shouldRenderAddStepMenu:r}=(0,i.useMemo)((()=>{const n=!!e.length;return{actionsExist:n,shouldRenderAddStepMenu:!n&&t}}),[e.length]);return{actionsExist:n,shouldRenderAddStepMenu:r}})(),o=(e=>{const t=Ni();return(0,i.useMemo)((()=>({sideBarContainer:nG,headerBar:(0,le.AH)({zIndex:1,borderRadius:0,backgroundColor:t.palette.background.default,borderBottom:"1px solid ".concat(t.palette.divider),display:"flex",justifyContent:"center","> div:first-of-type":{height:"".concat(e,"px")}},"",""),actionMenuStyles:tG})),[t])})(t);return(0,rs.FD)(F,{css:o.sideBarContainer,children:[(0,rs.Y)(F,{css:o.headerBar,children:(0,rs.Y)($g,{replayerActions:n,size:"small"})}),r?(0,rs.Y)(F,{css:o.actionMenuStyles,children:(0,rs.Y)(mV,{display:r})}):null,(0,rs.Y)(eV,{replayerActions:n})]})},oG=(0,i.lazy)((()=>Promise.resolve().then(__webpack_require__.bind(__webpack_require__,1175)))),iG=()=>{const{displayInspector:e,handleStartAiIterate:t,iterateAiStep:n,isAIIterateLoading:r,onStepTabsPanelResize:o,replayerActions:a}=(()=>{const e=Kt(),t=jw(),n=(0,i.useCallback)((t=>{e(oi(t))}),[e]),{iterateAiStep:r,handleStartAiIterate:o,isAIIterateLoading:a}=iI(),s=SI();return vW(),{displayInspector:(0,i.useMemo)((()=>t.displayUIInspector&&ep.A.devToolsInspector.enabled),[t.displayUIInspector]),handleStartAiIterate:o,iterateAiStep:r,isAIIterateLoading:a,replayerActions:s,onStepTabsPanelResize:n}})(),s=(()=>{const e=220,t=220,n=240,r=300,o=360,a=(0,le.AH)("width:",e,"px;@media (min-width: 600px){width:",t,"px;}@media (min-width: 960px){width:",n,"px;}@media (min-width: 1280px){width:",r,"px;}@media (min-width: 1920px){width:",o,"px;}min-width:200px;max-width:","30%",";flex-grow:1;border-right:1px solid #e0e0e0;overflow:auto;background-color:#fff;","");return(0,i.useMemo)((()=>({container:eG,topBar:(0,le.AH)({height:"".concat(40,"px"),borderBottom:"1px solid #e0e0e0",flexShrink:0},"",""),mainLayout:ZY,leftSidebar:(0,le.AH)(a,{minWidth:"200px",maxWidth:"30%",flexGrow:1,borderRight:"1px solid #e0e0e0",backgroundColor:"white"},"",""),rightContentArea:(0,le.AH)({flexGrow:999,minWidth:600,display:"flex",overflow:"hidden"},"",""),framesPanel:JY,actionTabsPanel:XY,resizeHandle:QY})),[])})();return(0,rs.FD)("div",{css:s.container,children:[e&&(0,rs.Y)(i.Suspense,{fallback:null,children:(0,rs.Y)(oG,{})}),(0,rs.Y)("div",{css:s.topBar,children:(0,rs.Y)(fH,{iterateAiStep:t})}),(0,rs.FD)("div",{css:s.mainLayout,children:[(0,rs.Y)("div",{css:s.leftSidebar,children:(0,rs.Y)(rG,{controlBarHeight:48,replayerActions:a})}),(0,rs.Y)("div",{css:s.rightContentArea,children:(0,rs.FD)(YY,{direction:"vertical",style:{width:"100%"},children:[(0,rs.Y)(FH,{defaultSize:60,minSize:0,children:(0,rs.Y)("div",{css:s.framesPanel,children:(0,rs.Y)(pz,{controlBarHeight:48})})}),(0,rs.Y)($Y,{children:(0,rs.Y)("div",{css:s.resizeHandle,children:(0,rs.FD)("div",{className:"hover-area",children:[(0,rs.Y)("div",{className:"main-line"}),(0,rs.Y)("div",{className:"resize-grip"})]})})}),(0,rs.Y)(FH,{defaultSize:40,minSize:4,onResize:o,children:(0,rs.Y)("div",{css:s.actionTabsPanel,children:(0,rs.Y)(Iq,{iterateAiStep:n,isAIIterateLoading:r,replayerActions:a})})})]})})]})]})},aG=(e,t)=>{const n=t+(e.path.endsWith("/")?e.path.substring(0,e.path.length-1):e.path);return{path:e.path,routerPath:e.isRouter?"".concat(e.path,"/*"):void 0,layoutOptions:e.layoutOptions,optionalParams:e.optionalParams,absolutePath:n,make:(e,t)=>lG(n,e,t)}},sG=(e,t)=>Object.keys(e).reduce(((n,r)=>(0,g.A)((0,g.A)({},n),{},{[r]:aG(e[r],t)})),{}),lG=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=e;for(const o in t)r=r.replace(":".concat(o),t[o]);return r+n},cG=sG({testGeneration:{path:"/",isRouter:!0,layoutOptions:{hideNav:!0}}},"");sG({testGeneration:{path:"/"}},cG.testGeneration.absolutePath);class uG extends i.Component{constructor(e){super(e),this.removeError=()=>{this.setState({hasError:!1})},this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error("ErrorBoundary caught an error",e,t)}render(){return this.state.hasError?(0,rs.FD)("div",{style:{textAlign:"center",marginTop:"50px"},children:[(0,rs.Y)("h1",{children:"Something went wrong."}),(0,rs.Y)("button",{onClick:this.removeError,style:{padding:"10px 20px",marginTop:"20px"},children:"Ok"})]}):this.props.children}}function dG(e){return(0,Ee.Ay)("MuiDialogActions",e)}(0,L.A)("MuiDialogActions",["root","spacing"]);const fG=["className","disableSpacing"],pG=(0,U.Ay)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((e=>{let{ownerState:t}=e;return(0,w.A)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})})),hG=i.forwardRef((function(e,t){const n=(0,G.b)({props:e,name:"MuiDialogActions"}),{className:r,disableSpacing:o=!1}=n,i=(0,x.A)(n,fG),a=(0,w.A)({},n,{disableSpacing:o}),s=(e=>{const{classes:t,disableSpacing:n}=e,r={root:["root",!n&&"spacing"]};return(0,z.A)(r,dG,t)})(a);return(0,R.jsx)(pG,(0,w.A)({className:(0,A.A)(s.root,r),ownerState:a,ref:t},i))})),mG=e=>{let{open:t,options:n,inputValue:r,selectedOption:o,onInputChange:i,onOptionSelect:a,onClose:s,isPrompt:l,isMultipleChoice:c,title:u}=e;return n?(0,rs.FD)(iw,{open:t,onClose:()=>s(!1),children:[(0,rs.Y)(uw,{children:u}),(0,rs.FD)(hw,{children:[(0,rs.Y)("div",{children:n.message}),l?(0,rs.Y)(CS,{size:"small",autoFocus:!0,fullWidth:!0,margin:"dense",value:r,onChange:e=>i(e.target.value)}):null]}),(0,rs.FD)(hG,{children:[(0,rs.Y)(ft,{onClick:()=>s(!1),children:n.cancelText||"Cancel"}),c&&n.mode===uy.MultipleChoice?n.mode===uy.MultipleChoice&&n.options.map((e=>(0,rs.Y)(pm,{title:e.tooltip||e.label,children:(0,rs.Y)(ft,{variant:o===e.id?"contained":"text",onClick:()=>a(e.id),"data-testid":e.id,children:e.shortLabel||e.label})},e.id))):null,c?null:(0,rs.Y)(ft,{onClick:()=>s(!0),color:"primary",children:n.mode===uy.Confirm?n.confirmText||"Confirm":"OK"})]})]}):null},gG=e=>{let{children:t}=e;const[n,r]=(0,i.useState)(!1),[o,a]=(0,i.useState)(null),[s,l]=(0,i.useState)(""),[c,u]=(0,i.useState)(null),d=(0,i.useRef)((()=>{})),{isPrompt:f,isMultipleChoice:p,title:h}=(0,i.useMemo)((()=>({isPrompt:(null===o||void 0===o?void 0:o.mode)===uy.Prompt,isMultipleChoice:(null===o||void 0===o?void 0:o.mode)===uy.MultipleChoice,title:(null===o||void 0===o?void 0:o.title)||"Confirmation"})),[o]);function m(e){var t;(a(e),e.mode===uy.Prompt)?l(null!==(t=e.defaultValue)&&void 0!==t?t:""):e.mode===uy.MultipleChoice&&u(null);return r(!0),new Promise((e=>{d.current=e}))}const g=(0,i.useCallback)(((e,t)=>{var n;if(r(!1),o)if(o.mode===uy.Confirm)null===(n=d.current)||void 0===n||n.call(d,e);else if(o.mode===uy.Prompt){var i;null===(i=d.current)||void 0===i||i.call(d,e?s:null)}else if(o.mode===uy.MultipleChoice){var a;null===(a=d.current)||void 0===a||a.call(d,e?t||c:null)}}),[o,s,c]),v=(0,i.useCallback)((e=>{u(e),g(!0,e)}),[g]),y=(0,i.useMemo)((()=>({showDialog:m})),[m]);return(0,rs.FD)(ly.Provider,{value:y,children:[t,(0,rs.Y)(mG,{open:n,options:o,inputValue:s,selectedOption:c,onInputChange:l,onOptionSelect:v,onClose:e=>g(e),title:h,isPrompt:f,isMultipleChoice:p})]})};function vG(){return(0,rs.Y)(iG,{})}const yG=function(){const{theme:e}=MW();return(0,rs.Y)(uG,{children:(0,rs.Y)(gG,{children:(0,rs.FD)(WW,{theme:e,children:[(0,rs.Y)(YW,{}),(0,rs.Y)(GW,{}),(0,rs.Y)(vG,{})]})})})};Array.prototype.asyncFilter=async function(e){const t=await Promise.all(this.map(e));return this.filter(((e,n)=>t[n]))},Array.prototype.asyncFind=async function(e){const t=await Promise.all(this.map(e));return this.find(((e,n)=>t[n]))},Array.prototype.last=function(){return this[this.length-1]};function bG(){ep.A.env}Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));const wG=e=>e=>t=>e(t),xG=e=>(t,n)=>e(t,n),AG=Jr({name:"persistent",initialState:{},reducers:{}}),{}=AG.actions,SG=xG(Sr({persistent:AG.reducer,volatile:ki,actions:Tv,replayer:yI,assertions:KC,steps:zz,settings:Rw,locators:Ok,asyncProcesses:tC,thoughts:_E,aiChat:sl,logs:rU,[sp.reducerPath]:sp.reducer}));var _G="persist:",kG="persist/FLUSH",CG="persist/REHYDRATE",EG="persist/PAUSE",OG="persist/PERSIST",TG="persist/PURGE",IG="persist/REGISTER";function RG(e){return RG="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},RG(e)}function PG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function MG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DG(e,t,n,r){r.debug;var o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PG(n,!0).forEach((function(t){MG(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PG(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n);return e&&"object"===RG(e)&&Object.keys(e).forEach((function(r){"_persist"!==r&&t[r]===n[r]&&(o[r]=e[r])})),o}function LG(e){var t,n=e.blacklist||null,r=e.whitelist||null,o=e.transforms||[],i=e.throttle||0,a="".concat(void 0!==e.keyPrefix?e.keyPrefix:_G).concat(e.key),s=e.storage;t=!1===e.serialize?function(e){return e}:"function"===typeof e.serialize?e.serialize:jG;var l=e.writeFailHandler||null,c={},u={},d=[],f=null,p=null;function h(){if(0===d.length)return f&&clearInterval(f),void(f=null);var e=d.shift(),n=o.reduce((function(t,n){return n.in(t,e,c)}),c[e]);if(void 0!==n)try{u[e]=t(n)}catch(r){console.error("redux-persist/createPersistoid: error serializing state",r)}else delete u[e];0===d.length&&(Object.keys(u).forEach((function(e){void 0===c[e]&&delete u[e]})),p=s.setItem(a,t(u)).catch(g))}function m(e){return(!r||-1!==r.indexOf(e)||"_persist"===e)&&(!n||-1===n.indexOf(e))}function g(e){l&&l(e)}return{update:function(e){Object.keys(e).forEach((function(t){m(t)&&c[t]!==e[t]&&-1===d.indexOf(t)&&d.push(t)})),Object.keys(c).forEach((function(t){void 0===e[t]&&m(t)&&-1===d.indexOf(t)&&void 0!==c[t]&&d.push(t)})),null===f&&(f=setInterval(h,i)),c=e},flush:function(){for(;0!==d.length;)h();return p||Promise.resolve()}}}function jG(e){return JSON.stringify(e)}function NG(e){var t,n=e.transforms||[],r="".concat(void 0!==e.keyPrefix?e.keyPrefix:_G).concat(e.key),o=e.storage;e.debug;return t=!1===e.deserialize?function(e){return e}:"function"===typeof e.deserialize?e.deserialize:FG,o.getItem(r).then((function(e){if(e)try{var r={},o=t(e);return Object.keys(o).forEach((function(e){r[e]=n.reduceRight((function(t,n){return n.out(t,e,o)}),t(o[e]))})),r}catch(i){throw i}}))}function FG(e){return JSON.parse(e)}function zG(e){0}function BG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function VG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BG(n,!0).forEach((function(t){UG(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BG(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function UG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WG(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function qG(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function HG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function YG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HG(n,!0).forEach((function(t){GG(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HG(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function GG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var KG={registry:[],bootstrapped:!1},$G=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:KG,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case IG:return YG({},e,{registry:[].concat(qG(e.registry),[t.key])});case CG:var n=e.registry.indexOf(t.key),r=qG(e.registry);return r.splice(n,1),YG({},e,{registry:r,bootstrapped:0===r.length});default:return e}};var QG=__webpack_require__(9386),XG=__webpack_require__.n(QG),JG=__webpack_require__(1175);const ZG=function(e,t){var n=void 0!==e.version?e.version:-1,r=(e.debug,void 0===e.stateReconciler?DG:e.stateReconciler),o=e.getStoredState||NG,i=void 0!==e.timeout?e.timeout:5e3,a=null,s=!1,l=!0,c=function(e){return e._persist.rehydrated&&a&&!l&&a.update(e),e};return function(u,d){var f=u||{},p=f._persist,h=WG(f,["_persist"]);if(d.type===OG){var m=!1,g=function(t,n){m||(d.rehydrate(e.key,t,n),m=!0)};if(i&&setTimeout((function(){!m&&g(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))}),i),l=!1,a||(a=LG(e)),p)return VG({},t(h,d),{_persist:p});if("function"!==typeof d.rehydrate||"function"!==typeof d.register)throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return d.register(e.key),o(e).then((function(t){(e.migrate||function(e,t){return Promise.resolve(e)})(t,n).then((function(e){g(e)}),(function(e){g(void 0,e)}))}),(function(e){g(void 0,e)})),VG({},t(h,d),{_persist:{version:n,rehydrated:!1}})}if(d.type===TG)return s=!0,d.result(function(e){var t=e.storage,n="".concat(void 0!==e.keyPrefix?e.keyPrefix:_G).concat(e.key);return t.removeItem(n,zG)}(e)),VG({},t(h,d),{_persist:p});if(d.type===kG)return d.result(a&&a.flush()),VG({},t(h,d),{_persist:p});if(d.type===EG)l=!0;else if(d.type===CG){if(s)return VG({},h,{_persist:VG({},p,{rehydrated:!0})});if(d.key===e.key){var v=t(h,d),y=d.payload,b=VG({},!1!==r&&void 0!==y?r(y,u,v,e):v,{_persist:VG({},p,{rehydrated:!0})});return c(b)}}if(!p)return t(u,d);var w=t(h,d);return w===h?u:c(VG({},w,{_persist:p}))}}({key:"ravenix",storage:XG(),whitelist:["persistent"],version:1},SG),eK=function(e){var t=this;void 0===e&&(e={});var n=new Map,r=e.extra,o=e.onError,i=void 0===o?Ho:o;vo(i,"onError");var a=function(e){for(var t=0,r=Array.from(n.values());t<r.length;t++){var o=r[t];if(e(o))return o}},s=function(e){var t=a((function(t){return t.effect===e.effect}));return t||(t=function(e){var t=zo(e),n=t.type,r=t.predicate,o=t.effect;return{id:Zr(),effect:o,type:n,predicate:r,pending:new Set,unsubscribe:function(){throw new Error("Unsubscribe not initialized")}}}(e)),function(e){return e.unsubscribe=function(){return n.delete(e.id)},n.set(e.id,e),function(t){e.unsubscribe(),(null==t?void 0:t.cancelActive)&&Bo(e)}}(t)},l=function(e){var t=zo(e),n=t.type,r=t.effect,o=t.predicate,i=a((function(e){return("string"===typeof n?e.type===n:e.predicate===o)&&e.effect===r}));return i&&(i.unsubscribe(),e.cancelActive&&Bo(i)),!!i},c=function(e,o,a,l){return Vr(t,null,(function(){var t,c,u,d;return Ir(this,(function(f){switch(f.label){case 0:t=new AbortController,c=Fo(s,t.signal),u=[],f.label=1;case 1:return f.trys.push([1,3,4,6]),e.pending.add(t),[4,Promise.resolve(e.effect(o,Do({},a,{getOriginalState:l,condition:function(e,t){return c(e,t).then(Boolean)},take:c,delay:Mo(t.signal),pause:Po(t.signal),extra:r,signal:t.signal,fork:No(t.signal,u),unsubscribe:e.unsubscribe,subscribe:function(){n.set(e.id,e)},cancelActiveListeners:function(){e.pending.forEach((function(e,n,r){e!==t&&(xo(e,Eo),r.delete(e))}))}})))];case 2:return f.sent(),[3,6];case 3:return(d=f.sent())instanceof To||Vo(i,d,{raisedBy:"effect"}),[3,6];case 4:return[4,Promise.allSettled(u)];case 5:return f.sent(),xo(t,Oo),e.pending.delete(t),[7];case 6:return[2]}}))}))},u=function(e){return function(){e.forEach(Bo),e.clear()}}(n);return{middleware:function(e){return function(t){return function(r){if(!Yr(r))return t(r);if(Uo.match(r))return s(r.payload);if(!Wo.match(r)){if(qo.match(r))return l(r.payload);var o,a=e.getState(),d=function(){if(a===Lo)throw new Error(jo+": getOriginalState can only be called synchronously");return a};try{if(o=t(r),n.size>0)for(var f=e.getState(),p=Array.from(n.values()),h=0,m=p;h<m.length;h++){var g=m[h],v=!1;try{v=g.predicate(r,f,a)}catch(y){v=!1,Vo(i,y,{raisedBy:"predicate"})}v&&c(g,r,e,d)}}finally{a=Lo}return o}u()}}},startListening:s,stopListening:l,clearListeners:u}}();let tK;ep.A.devToolsInspector.enabled&&"instrument"in JG.default&&(tK=JG.default.instrument());const nK=function(e){var t,n=Qr(),r=e||{},o=r.reducer,i=void 0===o?void 0:o,a=r.middleware,s=void 0===a?n():a,l=r.devTools,c=void 0===l||l,u=r.preloadedState,d=void 0===u?void 0:u,f=r.enhancers,p=void 0===f?void 0:f;if("function"===typeof i)t=i;else{if(!Wr(i))throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');t=Sr(i)}var h=s;"function"===typeof h&&(h=h(n));var m=kr.apply(void 0,h),g=_r;c&&(g=Ur(zr({trace:!1},"object"===typeof c&&c)));var v=new Kr(m),y=v;return Array.isArray(p)?y=Rr([m],p):"function"===typeof p&&(y=p(v)),Ar(t,d,g.apply(void 0,y))}({reducer:ZG,middleware:e=>e({serializableCheck:{ignoredActions:[kG,CG,EG,OG,TG,IG]}}).concat([wG,sp.middleware,eK.middleware]),enhancers:tK?e=>[...e,tK]:void 0});var rK;(e=>{kW(e,Nv.createAction,{effects:{onPending:async(e,t)=>{let{args:n}=e;t.dispatch(Pz(n.id)),t.dispatch(kv(n))},onFulfilled:async(e,t)=>{let{args:n,response:r}=e;t.dispatch(Fz({id:n.id,code:r.code})),rI.handleConsecutiveRecordingActionsSync(t,n),t.dispatch(Mz(n.id))},onRejected:async(e,t)=>{let{args:n}=e;t.dispatch(Mz(n.id))}}}),kW(e,Nv.updateAction,{effects:{onPending:async(e,t)=>{var n;let{args:r}=e;null!==(n=r.options)&&void 0!==n&&n.preventIncreaseCodeBasedStepsSavingCount||t.dispatch(Pz(r.id)),t.dispatch(Sv(r))},onFulfilled:async(e,t)=>{var n;let{args:r,response:o}=e;null!==(n=r.options)&&void 0!==n&&n.forceUpdateTimestamp||(t.dispatch(Fz({id:r.id,code:o.code})),o.step.codeParsingError&&t.dispatch(Sv({id:r.id,data:(0,g.A)((0,g.A)((0,g.A)({},r.data),o.step),{},{codeParsingError:!1})}))),t.dispatch(Mz(r.id))},onRejected:async(e,t)=>{let{args:n,response:r}=e;t.dispatch(Mz(n.id))}}}),kW(e,Nv.deleteAction,{effects:{onPending:async(e,t)=>{let{args:n}=e;t.dispatch(Cz({id:n.id,type:Zo.Action,options:n.options}))}}}),kW(e,Nv.executeAction,{effects:{onFulfilled:async(e,t)=>{var n,r,o;let{args:i,response:a}=e;const{syncActions:s,updateTimestamp:l,timestamp:c}=aW({forceUpdate:null===(n=i.options)||void 0===n?void 0:n.forceUpdateTimestamp,newTimestamp:null===(r=a.data)||void 0===r?void 0:r.timestamp,oldTimestamp:null===(o=i.data)||void 0===o?void 0:o.timestamp});l&&(t.dispatch(Nv.updateAction.initiate({data:{timestamp:c,loginOnPlay:i.data.loginOnPlay},options:{forceUpdateTimestamp:!0},id:i.id})),t.dispatch(Tz({timestamp:c}))),s&&rI.handleExecuteActionsSync(t,i)},onRejected:async(e,t)=>{var n;let{args:r}=e;if(null!==(n=r.options)&&void 0!==n&&n.forceUpdateTimestamp&&!r.data.timestamp){const e=Date.now();t.dispatch(Nv.updateAction.initiate({data:{timestamp:e,loginOnPlay:r.data.loginOnPlay},options:{forceUpdateTimestamp:!0},id:r.id})),t.dispatch(Tz({timestamp:e}))}}}})})(rK=eK),(e=>{kW(e,iE.createAssertion,{effects:{onPending:async(e,t)=>{let{args:n}=e;t.dispatch(Pz(n.id)),t.dispatch(WC(n))},onFulfilled:async(e,t)=>{let{args:n,response:r}=e;t.dispatch(Fz({id:n.id,code:r.code})),t.dispatch(Mz(n.id))},onRejected:async(e,t)=>{let{args:n,response:r}=e;t.dispatch(Mz(n.id))}}}),kW(e,iE.updateAssertion,{effects:{onPending:async(e,t)=>{var n,r,o,i;let{args:a}=e;null!==(n=a.options)&&void 0!==n&&n.preventIncreaseCodeBasedStepsSavingCount||t.dispatch(Pz(a.id));const s=t.getState(),l=!!wI(s),c=(null===(r=s.assertions.assertions[a.id])||void 0===r?void 0:r.timestamp)!==(null===(o=a.data)||void 0===o?void 0:o.timestamp),u={};!l||!c||null!==(i=a.options)&&void 0!==i&&i.forceUpdateTimestamp||(u.sortAfterSyncPlay=!0),t.dispatch(HC((0,g.A)((0,g.A)({},a),{},{options:(0,g.A)((0,g.A)({},a.options),u)})))},onFulfilled:async(e,t)=>{var n;let{args:r,response:o}=e;null!==(n=r.options)&&void 0!==n&&n.forceUpdateTimestamp?t.dispatch(Rz(r.id)):(t.dispatch(Fz({id:r.id,code:o.code})),o.step.codeParsingError&&t.dispatch(HC({id:r.id,data:(0,g.A)((0,g.A)((0,g.A)({},r.data),o.step),{},{codeParsingError:!1})}))),t.dispatch(Mz(r.id))},onRejected:async(e,t)=>{var n;let{args:r,response:o}=e;null!==(n=r.options)&&void 0!==n&&n.forceUpdateTimestamp&&t.dispatch(Rz(r.id)),t.dispatch(Mz(r.id))}}}),kW(e,iE.deleteAssertion,{effects:{onPending:async(e,t)=>{let{args:n}=e;t.dispatch(Cz({id:n.id,type:Zo.Assertion,options:n.options}))}}}),kW(e,iE.verifyAssertion,{effects:{onPending:async(e,t)=>{let{args:n}=e;n.options.forceUpdateTimestamp&&t.dispatch(Iz(n.id))},onFulfilled:async(e,t)=>{var n;let{args:r,response:o}=e;if("time-machine"===r.options.target)return;const{timestamp:i,updateTimestamp:a}=aW({newTimestamp:null===(n=o.data)||void 0===n?void 0:n.timestamp,oldTimestamp:r.data.timestamp,forceUpdate:r.options.forceUpdateTimestamp});a&&(t.dispatch(iE.updateAssertion.initiate({data:{timestamp:i,actionId:r.data.actionId,verified:!0},options:{forceUpdateTimestamp:!0},id:r.id})),t.dispatch(Tz({timestamp:i})))},onRejected:async(e,t)=>{let{args:n,response:r}=e;if(n.options.forceUpdateTimestamp&&(t.dispatch(Rz(n.id)),!n.data.timestamp)){const e=Date.now();t.dispatch(iE.updateAssertion.initiate({data:{timestamp:e,actionId:n.data.actionId,verified:!0},options:{forceUpdateTimestamp:!0},id:n.id})),t.dispatch(Tz({timestamp:e}))}}}})})(rK),PW(rK),(e=>{const t=new AW(e,Zo.Assertion),n=new AW(e,Zo.Action),r=new OE(e),o=new BE(e),i=new EC(e);new SW(e).startListening(),new HE(e).startListening(),new _W(e).startListening(),new aI(e).startListening(),new FE(e).startListening(),new sI(e).startListening(),new cC(e).registerGenerators([...r.getGenerators(),...o.getGenerators(),...i.getGenerators()]).startListening({deleteAction:Cv,deleteAssertion:qC}),o.startListening({createAction:kv}),i.startListening({createAction:kv,updateAction:Sv,deleteAction:Cv,createAssertion:WC,updateAssertion:HC,deleteAssertion:qC}),r.startListening({createAction:kv,createAssertion:WC}),n.startListening({create:kv,update:Sv,delete:Cz}),t.startListening({create:WC,update:HC,delete:Cz})})(eK),new bI(eK).startListening();const oK=function(e,t,n){var r=n||!1,o=Ar($G,KG,t&&t.enhancer?t.enhancer:void 0),i=function(e){o.dispatch({type:IG,key:e})},a=function(t,n,i){var a={type:CG,payload:n,err:i,key:t};e.dispatch(a),o.dispatch(a),r&&s.getState().bootstrapped&&(r(),r=!1)},s=YG({},o,{purge:function(){var t=[];return e.dispatch({type:TG,result:function(e){t.push(e)}}),Promise.all(t)},flush:function(){var t=[];return e.dispatch({type:kG,result:function(e){t.push(e)}}),Promise.all(t)},pause:function(){e.dispatch({type:EG})},persist:function(){e.dispatch({type:OG,register:i,rehydrate:a})}});return t&&t.manualPersist||s.persist(),s}(nK),iK=nK.getState;var aK,sK,lK;aK={getState:iK,getDispatch:()=>nK.dispatch},Object.keys(aK).forEach((e=>{tp[e]=aK[e]})),sK=nK.dispatch,lK?lK(sK,{onFocus:Ml,onFocusLost:Dl,onOffline:jl,onOnline:Ll}):function(){var e=function(){return sK(Ml())},t=function(){return sK(Ll())},n=function(){return sK(jl())},r=function(){"visible"===window.document.visibilityState?e():sK(Dl())};Nl||"undefined"!==typeof window&&window.addEventListener&&(window.addEventListener("visibilitychange",r,!1),window.addEventListener("focus",e,!1),window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),Nl=!0)}(),window.addEventListener("message",(async e=>{const{data:{data:t,type:n}}=e,r=tp.getDispatch(),o=tp.getState;switch(n){case"new-recorded-step":await uK(t,r,o);break;case"execution-console-event":cK(t,r)}}));const cK=(e,t)=>{let n;if(Array.isArray(e.args))n=e.args.join(" ");else try{const t=JSON.parse(e.args);n=Array.isArray(t)?t.join(" "):e.args}catch(r){n=e.args}t(JV({level:e.level,message:n,timestamp:e.timestamp,source:e.source}))},uK=async(e,t,n)=>{var r,o,i,a,s;const l=!(null===tp||void 0===tp||null===(r=tp.getState())||void 0===r||null===(o=r.volatile)||void 0===o||!o.isReplayingAction),c=null===tp||void 0===tp||null===(i=tp.getState())||void 0===i||null===(a=i.volatile)||void 0===a?void 0:a.recordingOptions;if(e.length&&!l){var u,d,f;const r=function(e){const t=[],n=e=>e.type===Gw.Action&&e.step.eventCode===Fv.Qy.Input;for(let r=0;r<e.length;r++){const o=e[r];n(o)&&r>0&&n(e[r-1])&&e[r-1].step.locator===o.step.locator?t[t.length-1]=o:t.push(o)}return t}(e),o=null===(u=tp.getState())||void 0===u||null===(d=u.volatile)||void 0===d?void 0:d.serverPort,i="http://localhost:".concat(o,"/api");await Promise.all(r.map((async e=>{e.type===Gw.Action&&e.step.eventCode===Fv.Qy.UploadFiles&&await dK(e.step,i)})));let a=null===(f=n().steps.steps.last())||void 0===f?void 0:f.id;c.mode===Xo.InsertAfterStep&&(a=c.stepId);for(let e=0;e<r.length;e++){const o=r[e];try{switch(o.type){case Gw.Action:const e=oI((0,g.A)((0,g.A)({},o.step),{},{executed:!0,source:Jo.Recording,syncedWithNextStep:!1,assertions:[]}));t(Nv.createAction.initiate({data:e,options:fK(c.mode,a),id:e.id}));break;case Gw.Assertion:const{assertion:r,action:i}=Vz(n(),a),l=null!==(s=null===r||void 0===r?void 0:r.actionId)&&void 0!==s?s:i.id,u=mE((0,g.A)((0,g.A)({},o.step),{},{source:Jo.Recording,verified:!0,actionId:l}));t(iE.createAssertion.initiate({id:u.id,data:u,options:fK(c.mode,a)}))}c.mode===Xo.InsertAfterStep&&t(mi({mode:Xo.InsertAfterStep,stepId:o.step.id})),a=o.step.id}catch(p){console.error(p),Zf.error("Error consuming actions")}}}};const dK=async(e,t)=>{if(e.rrwebId)try{const n=await window.checksumGetFilesFromLive(e.rrwebId),r=(await df.post("".concat(t,"/upload-files"),{files:n})).data;e.files=r}catch(n){Zf.error("Error uploading files")}},fK=(e,t)=>t&&e===Xo.InsertAfterStep?{afterStepId:t,type:Az.InsertAfter}:{type:Az.InsertLast};(async()=>{r.render((0,rs.Y)(o.Kq,{store:nK,children:(0,rs.Y)(p,{loading:null,persistor:oK,children:(0,rs.Y)(yG,{})})}),document.getElementById("root"),bG)})(),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((e=>{e.unregister()})).catch((e=>{console.error(e.message)}));const pK={initClient:(e,t,n,r,o,i)=>{console.log("VTG initialized with runtime version:",r);const a=tp.getDispatch();a(gi(e)),a(vi(i)),t.forEach((e=>{let{step:t,type:n,code:r}=e;n===Zo.Assertion&&a(WC({data:mE(t),id:t.id,options:{type:Az.InsertLast}})),n===Zo.Action&&a(kv({data:oI(t),id:t.id,options:{type:Az.InsertLast}})),a(Fz({id:t.id,code:r}))})),a(ii(n)),a(li(o)),a(yi(!0))},setServerPort:e=>{tp.getDispatch()(bi(e))},onAsyncProcessResponse:e=>{const t=tp.getState(),n=rC(t).find((t=>{let{id:n}=t;return n===e.processId}));if(!n)return;console.log("Async process response type: ".concat(n.type,", id:").concat(n.id,", took: ").concat(Date.now()-n.startedAt,"ms"),e);const r=tp.getDispatch();r(Jk({id:e.processId,status:e.error?Kk.Failed:Kk.GotResponse})),r(Zk(e))},getCodeValue:()=>"",setCodeValue:e=>{},tm:()=>document.querySelector(".time-machine-iframe").contentDocument.querySelector("iframe").contentDocument.defaultView,runtimeVersion:"N/A"};window.vtg=pK,window.addEventListener("beforeunload",(e=>{e.preventDefault(),e.returnValue=""})),function(){const e=["ResizeObserver loop completed with undelivered notifications",'Function "checksumBringPageToFront" is not exposed','Function "checksumSendMessage" is not exposed',"Uncaught NetworkError: Failed to execute 'importScripts' on 'WorkerGlobalScope'"];new MutationObserver((()=>{const t=document.getElementById("webpack-dev-server-client-overlay");if(t)try{const n=t.contentDocument||t.contentWindow.document,r=n.body.innerText||n.body.textContent;e.forEach((e=>{r.includes(e)&&(console.log("Removing overlay due to specific error:",e),t.remove())}))}catch(n){console.warn("Could not access iframe contents:",n)}})).observe(document.body,{childList:!0,subtree:!0})}()})()})();
|
|
3
|
-
//# sourceMappingURL=main.fd8a9311.js.map
|