chainlit 0.6.3__py3-none-any.whl → 0.6.401__py3-none-any.whl
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.
Potentially problematic release.
This version of chainlit might be problematic. Click here for more details.
- chainlit/__init__.py +38 -1
- chainlit/cache.py +6 -9
- chainlit/cli/deploy.py +2 -2
- chainlit/client/base.py +2 -1
- chainlit/client/cloud.py +10 -8
- chainlit/client/local.py +4 -1
- chainlit/client/utils.py +4 -2
- chainlit/config.py +22 -1
- chainlit/context.py +1 -1
- chainlit/db/prisma/schema.prisma +2 -1
- chainlit/element.py +6 -1
- chainlit/emitter.py +6 -1
- chainlit/frontend/dist/assets/index-69562d52.js +543 -0
- chainlit/frontend/dist/assets/{index-34600e45.js → index-ace9588d.js} +1 -1
- chainlit/frontend/dist/index.html +1 -1
- chainlit/haystack/__init__.py +5 -10
- chainlit/input_widget.py +35 -0
- chainlit/langchain/__init__.py +5 -10
- chainlit/langchain/callbacks.py +98 -30
- chainlit/langflow/__init__.py +5 -10
- chainlit/llama_index/__init__.py +5 -10
- chainlit/llama_index/callbacks.py +16 -8
- chainlit/message.py +17 -4
- chainlit/playground/config.py +14 -14
- chainlit/playground/providers/__init__.py +1 -0
- chainlit/playground/providers/huggingface.py +3 -1
- chainlit/playground/providers/langchain.py +87 -0
- chainlit/playground/providers/openai.py +2 -2
- chainlit/prompt.py +8 -1
- chainlit/server.py +9 -8
- chainlit/socket.py +16 -1
- chainlit/sync.py +3 -1
- chainlit/types.py +12 -7
- chainlit/utils.py +23 -0
- {chainlit-0.6.3.dist-info → chainlit-0.6.401.dist-info}/METADATA +6 -5
- chainlit-0.6.401.dist-info/RECORD +61 -0
- chainlit/frontend/dist/assets/index-87533cb5.js +0 -533
- chainlit-0.6.3.dist-info/RECORD +0 -60
- {chainlit-0.6.3.dist-info → chainlit-0.6.401.dist-info}/WHEEL +0 -0
- {chainlit-0.6.3.dist-info → chainlit-0.6.401.dist-info}/entry_points.txt +0 -0
|
@@ -1,533 +0,0 @@
|
|
|
1
|
-
var Lie=Object.defineProperty;var Mie=(e,t,n)=>t in e?Lie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var or=(e,t,n)=>(Mie(e,typeof t!="symbol"?t+"":t,n),n);function Fie(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var ri=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cU(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var i=[null];i.push.apply(i,arguments);var o=Function.bind.apply(t,i);return new o}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var fU={exports:{}},fx={},dU={exports:{}},Jt={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var jv=Symbol.for("react.element"),Nie=Symbol.for("react.portal"),Bie=Symbol.for("react.fragment"),jie=Symbol.for("react.strict_mode"),zie=Symbol.for("react.profiler"),Uie=Symbol.for("react.provider"),Kie=Symbol.for("react.context"),Wie=Symbol.for("react.forward_ref"),Vie=Symbol.for("react.suspense"),Hie=Symbol.for("react.memo"),qie=Symbol.for("react.lazy"),qL=Symbol.iterator;function Gie(e){return e===null||typeof e!="object"?null:(e=qL&&e[qL]||e["@@iterator"],typeof e=="function"?e:null)}var pU={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},hU=Object.assign,gU={};function Yp(e,t,n){this.props=e,this.context=t,this.refs=gU,this.updater=n||pU}Yp.prototype.isReactComponent={};Yp.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Yp.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function mU(){}mU.prototype=Yp.prototype;function pR(e,t,n){this.props=e,this.context=t,this.refs=gU,this.updater=n||pU}var hR=pR.prototype=new mU;hR.constructor=pR;hU(hR,Yp.prototype);hR.isPureReactComponent=!0;var GL=Array.isArray,vU=Object.prototype.hasOwnProperty,gR={current:null},yU={key:!0,ref:!0,__self:!0,__source:!0};function bU(e,t,n){var r,i={},o=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(o=""+t.key),t)vU.call(t,r)&&!yU.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:jv,type:e,key:o,ref:a,props:i,_owner:gR.current}}function Yie(e,t){return{$$typeof:jv,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function mR(e){return typeof e=="object"&&e!==null&&e.$$typeof===jv}function Xie(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var YL=/\/+/g;function oE(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Xie(""+e.key):t.toString(36)}function lb(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(o){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case jv:case Nie:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+oE(a,0):r,GL(i)?(n="",e!=null&&(n=e.replace(YL,"$&/")+"/"),lb(i,t,n,"",function(u){return u})):i!=null&&(mR(i)&&(i=Yie(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(YL,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",GL(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+oE(o,s);a+=lb(o,t,n,l,i)}else if(l=Gie(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+oE(o,s++),a+=lb(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return a}function q0(e,t,n){if(e==null)return e;var r=[],i=0;return lb(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Zie(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Pi={current:null},ub={transition:null},Jie={ReactCurrentDispatcher:Pi,ReactCurrentBatchConfig:ub,ReactCurrentOwner:gR};Jt.Children={map:q0,forEach:function(e,t,n){q0(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return q0(e,function(){t++}),t},toArray:function(e){return q0(e,function(t){return t})||[]},only:function(e){if(!mR(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Jt.Component=Yp;Jt.Fragment=Bie;Jt.Profiler=zie;Jt.PureComponent=pR;Jt.StrictMode=jie;Jt.Suspense=Vie;Jt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Jie;Jt.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=hU({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=gR.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)vU.call(t,l)&&!yU.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:jv,type:e.type,key:i,ref:o,props:r,_owner:a}};Jt.createContext=function(e){return e={$$typeof:Kie,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Uie,_context:e},e.Consumer=e};Jt.createElement=bU;Jt.createFactory=function(e){var t=bU.bind(null,e);return t.type=e,t};Jt.createRef=function(){return{current:null}};Jt.forwardRef=function(e){return{$$typeof:Wie,render:e}};Jt.isValidElement=mR;Jt.lazy=function(e){return{$$typeof:qie,_payload:{_status:-1,_result:e},_init:Zie}};Jt.memo=function(e,t){return{$$typeof:Hie,type:e,compare:t===void 0?null:t}};Jt.startTransition=function(e){var t=ub.transition;ub.transition={};try{e()}finally{ub.transition=t}};Jt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Jt.useCallback=function(e,t){return Pi.current.useCallback(e,t)};Jt.useContext=function(e){return Pi.current.useContext(e)};Jt.useDebugValue=function(){};Jt.useDeferredValue=function(e){return Pi.current.useDeferredValue(e)};Jt.useEffect=function(e,t){return Pi.current.useEffect(e,t)};Jt.useId=function(){return Pi.current.useId()};Jt.useImperativeHandle=function(e,t,n){return Pi.current.useImperativeHandle(e,t,n)};Jt.useInsertionEffect=function(e,t){return Pi.current.useInsertionEffect(e,t)};Jt.useLayoutEffect=function(e,t){return Pi.current.useLayoutEffect(e,t)};Jt.useMemo=function(e,t){return Pi.current.useMemo(e,t)};Jt.useReducer=function(e,t,n){return Pi.current.useReducer(e,t,n)};Jt.useRef=function(e){return Pi.current.useRef(e)};Jt.useState=function(e){return Pi.current.useState(e)};Jt.useSyncExternalStore=function(e,t,n){return Pi.current.useSyncExternalStore(e,t,n)};Jt.useTransition=function(){return Pi.current.useTransition()};Jt.version="18.2.0";dU.exports=Jt;var T=dU.exports;const ht=bi(T),ef=Fie({__proto__:null,default:ht},[T]);/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react-jsx-runtime.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Qie=T,eoe=Symbol.for("react.element"),toe=Symbol.for("react.fragment"),noe=Object.prototype.hasOwnProperty,roe=Qie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ioe={key:!0,ref:!0,__self:!0,__source:!0};function _U(e,t,n){var r,i={},o=null,a=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)noe.call(t,r)&&!ioe.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:eoe,type:e,key:o,ref:a,props:i,_owner:roe.current}}fx.Fragment=toe;fx.jsx=_U;fx.jsxs=_U;fU.exports=fx;var C=fU.exports;let ooe={data:""},aoe=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||ooe,soe=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,loe=/\/\*[^]*?\*\/| +/g,XL=/\n+/g,yu=(e,t)=>{let n="",r="",i="";for(let o in e){let a=e[o];o[0]=="@"?o[1]=="i"?n=o+" "+a+";":r+=o[1]=="f"?yu(a,o):o+"{"+yu(a,o[1]=="k"?"":t)+"}":typeof a=="object"?r+=yu(a,t?t.replace(/([^,])+/g,s=>o.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):o):a!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=yu.p?yu.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},sl={},xU=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+xU(e[n]);return t}return e},uoe=(e,t,n,r,i)=>{let o=xU(e),a=sl[o]||(sl[o]=(l=>{let u=0,f=11;for(;u<l.length;)f=101*f+l.charCodeAt(u++)>>>0;return"go"+f})(o));if(!sl[a]){let l=o!==e?e:(u=>{let f,d,p=[{}];for(;f=soe.exec(u.replace(loe,""));)f[4]?p.shift():f[3]?(d=f[3].replace(XL," ").trim(),p.unshift(p[0][d]=p[0][d]||{})):p[0][f[1]]=f[2].replace(XL," ").trim();return p[0]})(e);sl[a]=yu(i?{["@keyframes "+a]:l}:l,n?"":"."+a)}let s=n&&sl.g?sl.g:null;return n&&(sl.g=sl[a]),((l,u,f,d)=>{d?u.data=u.data.replace(d,l):u.data.indexOf(l)===-1&&(u.data=f?l+u.data:u.data+l)})(sl[a],t,r,s),a},coe=(e,t,n)=>e.reduce((r,i,o)=>{let a=t[o];if(a&&a.call){let s=a(n),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;a=l?"."+l:s&&typeof s=="object"?s.props?"":yu(s,""):s===!1?"":s}return r+i+(a??"")},"");function dx(e){let t=this||{},n=e.call?e(t.p):e;return uoe(n.unshift?n.raw?coe(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,aoe(t.target),t.g,t.o,t.k)}let wU,AT,$T;dx.bind({g:1});let Cl=dx.bind({k:1});function foe(e,t,n,r){yu.p=t,wU=e,AT=n,$T=r}function Ku(e,t){let n=this||{};return function(){let r=arguments;function i(o,a){let s=Object.assign({},o),l=s.className||i.className;n.p=Object.assign({theme:AT&&AT()},s),n.o=/ *go\d+/.test(l),s.className=dx.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let u=e;return e[0]&&(u=s.as||e,delete s.as),$T&&u[0]&&$T(s),wU(u,s)}return t?t(i):i}}var doe=e=>typeof e=="function",Gb=(e,t)=>doe(e)?e(t):e,poe=(()=>{let e=0;return()=>(++e).toString()})(),SU=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),hoe=20,cb=new Map,goe=1e3,ZL=e=>{if(cb.has(e))return;let t=setTimeout(()=>{cb.delete(e),mf({type:4,toastId:e})},goe);cb.set(e,t)},moe=e=>{let t=cb.get(e);t&&clearTimeout(t)},RT=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,hoe)};case 1:return t.toast.id&&moe(t.toast.id),{...e,toasts:e.toasts.map(o=>o.id===t.toast.id?{...o,...t.toast}:o)};case 2:let{toast:n}=t;return e.toasts.find(o=>o.id===n.id)?RT(e,{type:1,toast:n}):RT(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?ZL(r):e.toasts.forEach(o=>{ZL(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===r||r===void 0?{...o,visible:!1}:o)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(o=>o.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(o=>({...o,pauseDuration:o.pauseDuration+i}))}}},fb=[],db={toasts:[],pausedAt:void 0},mf=e=>{db=RT(db,e),fb.forEach(t=>{t(db)})},voe={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},yoe=(e={})=>{let[t,n]=T.useState(db);T.useEffect(()=>(fb.push(n),()=>{let i=fb.indexOf(n);i>-1&&fb.splice(i,1)}),[t]);let r=t.toasts.map(i=>{var o,a;return{...e,...e[i.type],...i,duration:i.duration||((o=e[i.type])==null?void 0:o.duration)||(e==null?void 0:e.duration)||voe[i.type],style:{...e.style,...(a=e[i.type])==null?void 0:a.style,...i.style}}});return{...t,toasts:r}},boe=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||poe()}),zv=e=>(t,n)=>{let r=boe(t,e,n);return mf({type:2,toast:r}),r.id},Mr=(e,t)=>zv("blank")(e,t);Mr.error=zv("error");Mr.success=zv("success");Mr.loading=zv("loading");Mr.custom=zv("custom");Mr.dismiss=e=>{mf({type:3,toastId:e})};Mr.remove=e=>mf({type:4,toastId:e});Mr.promise=(e,t,n)=>{let r=Mr.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(i=>(Mr.success(Gb(t.success,i),{id:r,...n,...n==null?void 0:n.success}),i)).catch(i=>{Mr.error(Gb(t.error,i),{id:r,...n,...n==null?void 0:n.error})}),e};var _oe=(e,t)=>{mf({type:1,toast:{id:e,height:t}})},xoe=()=>{mf({type:5,time:Date.now()})},woe=e=>{let{toasts:t,pausedAt:n}=yoe(e);T.useEffect(()=>{if(n)return;let o=Date.now(),a=t.map(s=>{if(s.duration===1/0)return;let l=(s.duration||0)+s.pauseDuration-(o-s.createdAt);if(l<0){s.visible&&Mr.dismiss(s.id);return}return setTimeout(()=>Mr.dismiss(s.id),l)});return()=>{a.forEach(s=>s&&clearTimeout(s))}},[t,n]);let r=T.useCallback(()=>{n&&mf({type:6,time:Date.now()})},[n]),i=T.useCallback((o,a)=>{let{reverseOrder:s=!1,gutter:l=8,defaultPosition:u}=a||{},f=t.filter(m=>(m.position||u)===(o.position||u)&&m.height),d=f.findIndex(m=>m.id===o.id),p=f.filter((m,v)=>v<d&&m.visible).length;return f.filter(m=>m.visible).slice(...s?[p+1]:[0,p]).reduce((m,v)=>m+(v.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:_oe,startPause:xoe,endPause:r,calculateOffset:i}}},Soe=Cl`
|
|
18
|
-
from {
|
|
19
|
-
transform: scale(0) rotate(45deg);
|
|
20
|
-
opacity: 0;
|
|
21
|
-
}
|
|
22
|
-
to {
|
|
23
|
-
transform: scale(1) rotate(45deg);
|
|
24
|
-
opacity: 1;
|
|
25
|
-
}`,Coe=Cl`
|
|
26
|
-
from {
|
|
27
|
-
transform: scale(0);
|
|
28
|
-
opacity: 0;
|
|
29
|
-
}
|
|
30
|
-
to {
|
|
31
|
-
transform: scale(1);
|
|
32
|
-
opacity: 1;
|
|
33
|
-
}`,Eoe=Cl`
|
|
34
|
-
from {
|
|
35
|
-
transform: scale(0) rotate(90deg);
|
|
36
|
-
opacity: 0;
|
|
37
|
-
}
|
|
38
|
-
to {
|
|
39
|
-
transform: scale(1) rotate(90deg);
|
|
40
|
-
opacity: 1;
|
|
41
|
-
}`,koe=Ku("div")`
|
|
42
|
-
width: 20px;
|
|
43
|
-
opacity: 0;
|
|
44
|
-
height: 20px;
|
|
45
|
-
border-radius: 10px;
|
|
46
|
-
background: ${e=>e.primary||"#ff4b4b"};
|
|
47
|
-
position: relative;
|
|
48
|
-
transform: rotate(45deg);
|
|
49
|
-
|
|
50
|
-
animation: ${Soe} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
51
|
-
forwards;
|
|
52
|
-
animation-delay: 100ms;
|
|
53
|
-
|
|
54
|
-
&:after,
|
|
55
|
-
&:before {
|
|
56
|
-
content: '';
|
|
57
|
-
animation: ${Coe} 0.15s ease-out forwards;
|
|
58
|
-
animation-delay: 150ms;
|
|
59
|
-
position: absolute;
|
|
60
|
-
border-radius: 3px;
|
|
61
|
-
opacity: 0;
|
|
62
|
-
background: ${e=>e.secondary||"#fff"};
|
|
63
|
-
bottom: 9px;
|
|
64
|
-
left: 4px;
|
|
65
|
-
height: 2px;
|
|
66
|
-
width: 12px;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&:before {
|
|
70
|
-
animation: ${Eoe} 0.15s ease-out forwards;
|
|
71
|
-
animation-delay: 180ms;
|
|
72
|
-
transform: rotate(90deg);
|
|
73
|
-
}
|
|
74
|
-
`,Toe=Cl`
|
|
75
|
-
from {
|
|
76
|
-
transform: rotate(0deg);
|
|
77
|
-
}
|
|
78
|
-
to {
|
|
79
|
-
transform: rotate(360deg);
|
|
80
|
-
}
|
|
81
|
-
`,Aoe=Ku("div")`
|
|
82
|
-
width: 12px;
|
|
83
|
-
height: 12px;
|
|
84
|
-
box-sizing: border-box;
|
|
85
|
-
border: 2px solid;
|
|
86
|
-
border-radius: 100%;
|
|
87
|
-
border-color: ${e=>e.secondary||"#e0e0e0"};
|
|
88
|
-
border-right-color: ${e=>e.primary||"#616161"};
|
|
89
|
-
animation: ${Toe} 1s linear infinite;
|
|
90
|
-
`,$oe=Cl`
|
|
91
|
-
from {
|
|
92
|
-
transform: scale(0) rotate(45deg);
|
|
93
|
-
opacity: 0;
|
|
94
|
-
}
|
|
95
|
-
to {
|
|
96
|
-
transform: scale(1) rotate(45deg);
|
|
97
|
-
opacity: 1;
|
|
98
|
-
}`,Roe=Cl`
|
|
99
|
-
0% {
|
|
100
|
-
height: 0;
|
|
101
|
-
width: 0;
|
|
102
|
-
opacity: 0;
|
|
103
|
-
}
|
|
104
|
-
40% {
|
|
105
|
-
height: 0;
|
|
106
|
-
width: 6px;
|
|
107
|
-
opacity: 1;
|
|
108
|
-
}
|
|
109
|
-
100% {
|
|
110
|
-
opacity: 1;
|
|
111
|
-
height: 10px;
|
|
112
|
-
}`,Ooe=Ku("div")`
|
|
113
|
-
width: 20px;
|
|
114
|
-
opacity: 0;
|
|
115
|
-
height: 20px;
|
|
116
|
-
border-radius: 10px;
|
|
117
|
-
background: ${e=>e.primary||"#61d345"};
|
|
118
|
-
position: relative;
|
|
119
|
-
transform: rotate(45deg);
|
|
120
|
-
|
|
121
|
-
animation: ${$oe} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
122
|
-
forwards;
|
|
123
|
-
animation-delay: 100ms;
|
|
124
|
-
&:after {
|
|
125
|
-
content: '';
|
|
126
|
-
box-sizing: border-box;
|
|
127
|
-
animation: ${Roe} 0.2s ease-out forwards;
|
|
128
|
-
opacity: 0;
|
|
129
|
-
animation-delay: 200ms;
|
|
130
|
-
position: absolute;
|
|
131
|
-
border-right: 2px solid;
|
|
132
|
-
border-bottom: 2px solid;
|
|
133
|
-
border-color: ${e=>e.secondary||"#fff"};
|
|
134
|
-
bottom: 6px;
|
|
135
|
-
left: 6px;
|
|
136
|
-
height: 10px;
|
|
137
|
-
width: 6px;
|
|
138
|
-
}
|
|
139
|
-
`,Ioe=Ku("div")`
|
|
140
|
-
position: absolute;
|
|
141
|
-
`,Doe=Ku("div")`
|
|
142
|
-
position: relative;
|
|
143
|
-
display: flex;
|
|
144
|
-
justify-content: center;
|
|
145
|
-
align-items: center;
|
|
146
|
-
min-width: 20px;
|
|
147
|
-
min-height: 20px;
|
|
148
|
-
`,Poe=Cl`
|
|
149
|
-
from {
|
|
150
|
-
transform: scale(0.6);
|
|
151
|
-
opacity: 0.4;
|
|
152
|
-
}
|
|
153
|
-
to {
|
|
154
|
-
transform: scale(1);
|
|
155
|
-
opacity: 1;
|
|
156
|
-
}`,Loe=Ku("div")`
|
|
157
|
-
position: relative;
|
|
158
|
-
transform: scale(0.6);
|
|
159
|
-
opacity: 0.4;
|
|
160
|
-
min-width: 20px;
|
|
161
|
-
animation: ${Poe} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
162
|
-
forwards;
|
|
163
|
-
`,Moe=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?T.createElement(Loe,null,t):t:n==="blank"?null:T.createElement(Doe,null,T.createElement(Aoe,{...r}),n!=="loading"&&T.createElement(Ioe,null,n==="error"?T.createElement(koe,{...r}):T.createElement(Ooe,{...r})))},Foe=e=>`
|
|
164
|
-
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
|
|
165
|
-
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
|
|
166
|
-
`,Noe=e=>`
|
|
167
|
-
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
|
|
168
|
-
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
|
|
169
|
-
`,Boe="0%{opacity:0;} 100%{opacity:1;}",joe="0%{opacity:1;} 100%{opacity:0;}",zoe=Ku("div")`
|
|
170
|
-
display: flex;
|
|
171
|
-
align-items: center;
|
|
172
|
-
background: #fff;
|
|
173
|
-
color: #363636;
|
|
174
|
-
line-height: 1.3;
|
|
175
|
-
will-change: transform;
|
|
176
|
-
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
|
|
177
|
-
max-width: 350px;
|
|
178
|
-
pointer-events: auto;
|
|
179
|
-
padding: 8px 10px;
|
|
180
|
-
border-radius: 8px;
|
|
181
|
-
`,Uoe=Ku("div")`
|
|
182
|
-
display: flex;
|
|
183
|
-
justify-content: center;
|
|
184
|
-
margin: 4px 10px;
|
|
185
|
-
color: inherit;
|
|
186
|
-
flex: 1 1 auto;
|
|
187
|
-
white-space: pre-line;
|
|
188
|
-
`,Koe=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=SU()?[Boe,joe]:[Foe(n),Noe(n)];return{animation:t?`${Cl(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Cl(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},Woe=T.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?Koe(e.position||t||"top-center",e.visible):{opacity:0},o=T.createElement(Moe,{toast:e}),a=T.createElement(Uoe,{...e.ariaProps},Gb(e.message,e));return T.createElement(zoe,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:o,message:a}):T.createElement(T.Fragment,null,o,a))});foe(T.createElement);var Voe=({id:e,className:t,style:n,onHeightUpdate:r,children:i})=>{let o=T.useCallback(a=>{if(a){let s=()=>{let l=a.getBoundingClientRect().height;r(e,l)};s(),new MutationObserver(s).observe(a,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return T.createElement("div",{ref:o,className:t,style:n},i)},Hoe=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:SU()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},qoe=dx`
|
|
189
|
-
z-index: 9999;
|
|
190
|
-
> * {
|
|
191
|
-
pointer-events: auto;
|
|
192
|
-
}
|
|
193
|
-
`,G0=16,Goe=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,containerStyle:o,containerClassName:a})=>{let{toasts:s,handlers:l}=woe(n);return T.createElement("div",{style:{position:"fixed",zIndex:9999,top:G0,left:G0,right:G0,bottom:G0,pointerEvents:"none",...o},className:a,onMouseEnter:l.startPause,onMouseLeave:l.endPause},s.map(u=>{let f=u.position||t,d=l.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),p=Hoe(f,d);return T.createElement(Voe,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?qoe:"",style:p},u.type==="custom"?Gb(u.message,u):i?i(u):T.createElement(Woe,{toast:u,position:f}))}))},CU=Mr;/**
|
|
194
|
-
* @remix-run/router v1.3.2
|
|
195
|
-
*
|
|
196
|
-
* Copyright (c) Remix Software Inc.
|
|
197
|
-
*
|
|
198
|
-
* This source code is licensed under the MIT license found in the
|
|
199
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
200
|
-
*
|
|
201
|
-
* @license MIT
|
|
202
|
-
*/function pn(){return pn=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},pn.apply(this,arguments)}var Ar;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Ar||(Ar={}));const JL="popstate";function Yoe(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:s}=r.location;return tv("",{pathname:o,search:a,hash:s},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:El(i)}return Zoe(t,n,null,e)}function Ft(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Xoe(){return Math.random().toString(36).substr(2,8)}function QL(e,t){return{usr:e.state,key:e.key,idx:t}}function tv(e,t,n,r){return n===void 0&&(n=null),pn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Dl(t):t,{state:n,key:t&&t.key||r||Xoe()})}function El(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Dl(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Zoe(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=Ar.Pop,l=null,u=f();u==null&&(u=0,a.replaceState(pn({},a.state,{idx:u}),""));function f(){return(a.state||{idx:null}).idx}function d(){s=Ar.Pop;let w=f(),b=w==null?null:w-u;u=w,l&&l({action:s,location:y.location,delta:b})}function p(w,b){s=Ar.Push;let x=tv(y.location,w,b);n&&n(x,w),u=f()+1;let S=QL(x,u),k=y.createHref(x);try{a.pushState(S,"",k)}catch{i.location.assign(k)}o&&l&&l({action:s,location:y.location,delta:1})}function m(w,b){s=Ar.Replace;let x=tv(y.location,w,b);n&&n(x,w),u=f();let S=QL(x,u),k=y.createHref(x);a.replaceState(S,"",k),o&&l&&l({action:s,location:y.location,delta:0})}function v(w){let b=i.location.origin!=="null"?i.location.origin:i.location.href,x=typeof w=="string"?w:El(w);return Ft(b,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,b)}let y={get action(){return s},get location(){return e(i,a)},listen(w){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(JL,d),l=w,()=>{i.removeEventListener(JL,d),l=null}},createHref(w){return t(i,w)},createURL:v,encodeLocation(w){let b=v(w);return{pathname:b.pathname,search:b.search,hash:b.hash}},push:p,replace:m,go(w){return a.go(w)}};return y}var ti;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ti||(ti={}));function Joe(e){return e.index===!0}function EU(e,t,n){return t===void 0&&(t=[]),n===void 0&&(n=new Set),e.map((r,i)=>{let o=[...t,i],a=typeof r.id=="string"?r.id:o.join("-");return Ft(r.index!==!0||!r.children,"Cannot specify children on an index route"),Ft(!n.has(a),'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),n.add(a),Joe(r)?pn({},r,{id:a}):pn({},r,{id:a,children:r.children?EU(r.children,o,n):void 0})})}function dm(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Dl(t):t,i=AU(r.pathname||"/",n);if(i==null)return null;let o=kU(e);Qoe(o);let a=null;for(let s=0;a==null&&s<o.length;++s)a=lae(o[s],fae(i));return a}function kU(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,a,s)=>{let l={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:a,route:o};l.relativePath.startsWith("/")&&(Ft(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=_l([r,l.relativePath]),f=n.concat(l);o.children&&o.children.length>0&&(Ft(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),kU(o.children,t,f,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:aae(u,o.index),routesMeta:f})};return e.forEach((o,a)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,a);else for(let l of TU(o.path))i(o,a,l)}),t}function TU(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let a=TU(r.join("/")),s=[];return s.push(...a.map(l=>l===""?o:[o,l].join("/"))),i&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Qoe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:sae(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const eae=/^:\w+$/,tae=3,nae=2,rae=1,iae=10,oae=-2,eM=e=>e==="*";function aae(e,t){let n=e.split("/"),r=n.length;return n.some(eM)&&(r+=oae),t&&(r+=nae),n.filter(i=>!eM(i)).reduce((i,o)=>i+(eae.test(o)?tae:o===""?rae:iae),r)}function sae(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function lae(e,t){let{routesMeta:n}=e,r={},i="/",o=[];for(let a=0;a<n.length;++a){let s=n[a],l=a===n.length-1,u=i==="/"?t:t.slice(i.length)||"/",f=uae({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},u);if(!f)return null;Object.assign(r,f.params);let d=s.route;o.push({params:r,pathname:_l([i,f.pathname]),pathnameBase:gae(_l([i,f.pathnameBase])),route:d}),f.pathnameBase!=="/"&&(i=_l([i,f.pathnameBase]))}return o}function uae(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=cae(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce((u,f,d)=>{if(f==="*"){let p=s[d]||"";a=o.slice(0,o.length-p.length).replace(/(.)\/+$/,"$1")}return u[f]=dae(s[d]||"",f),u},{}),pathname:o,pathnameBase:a,pattern:e}}function cae(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),nv(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function fae(e){try{return decodeURI(e)}catch(t){return nv(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function dae(e,t){try{return decodeURIComponent(e)}catch(n){return nv(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function AU(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function nv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function pae(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Dl(e):e;return{pathname:n?n.startsWith("/")?n:hae(n,t):t,search:mae(r),hash:vae(i)}}function hae(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function aE(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 px(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function vR(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Dl(e):(i=pn({},e),Ft(!i.pathname||!i.pathname.includes("?"),aE("?","pathname","search",i)),Ft(!i.pathname||!i.pathname.includes("#"),aE("#","pathname","hash",i)),Ft(!i.search||!i.search.includes("#"),aE("#","search","hash",i)));let o=e===""||i.pathname==="",a=o?"/":i.pathname,s;if(r||a==null)s=n;else{let d=t.length-1;if(a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),d-=1;i.pathname=p.join("/")}s=d>=0?t[d]:"/"}let l=pae(i,s),u=a&&a!=="/"&&a.endsWith("/"),f=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||f)&&(l.pathname+="/"),l}const _l=e=>e.join("/").replace(/\/\/+/g,"/"),gae=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),mae=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,vae=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class tM extends Error{}class yae{constructor(t,n){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],Ft(t&&typeof t=="object"&&!Array.isArray(t),"defer() only accepts plain objects");let r;this.abortPromise=new Promise((o,a)=>r=a),this.controller=new AbortController;let i=()=>r(new tM("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",i),this.controller.signal.addEventListener("abort",i),this.data=Object.entries(t).reduce((o,a)=>{let[s,l]=a;return Object.assign(o,{[s]:this.trackPromise(s,l)})},{}),this.done&&this.unlistenAbortSignal(),this.init=n}trackPromise(t,n){if(!(n instanceof Promise))return n;this.deferredKeys.push(t),this.pendingKeysSet.add(t);let r=Promise.race([n,this.abortPromise]).then(i=>this.onSettle(r,t,null,i),i=>this.onSettle(r,t,i));return r.catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(t,n,r,i){return this.controller.signal.aborted&&r instanceof tM?(this.unlistenAbortSignal(),Object.defineProperty(t,"_error",{get:()=>r}),Promise.reject(r)):(this.pendingKeysSet.delete(n),this.done&&this.unlistenAbortSignal(),r?(Object.defineProperty(t,"_error",{get:()=>r}),this.emit(!1,n),Promise.reject(r)):(Object.defineProperty(t,"_data",{get:()=>i}),this.emit(!1,n),i))}emit(t,n){this.subscribers.forEach(r=>r(t,n))}subscribe(t){return this.subscribers.add(t),()=>this.subscribers.delete(t)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((t,n)=>this.pendingKeysSet.delete(n)),this.emit(!0)}async resolveData(t){let n=!1;if(!this.done){let r=()=>this.cancel();t.addEventListener("abort",r),n=await new Promise(i=>{this.subscribe(o=>{t.removeEventListener("abort",r),(o||this.done)&&i(o)})})}return n}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return Ft(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((t,n)=>{let[r,i]=n;return Object.assign(t,{[r]:_ae(i)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function bae(e){return e instanceof Promise&&e._tracked===!0}function _ae(e){if(!bae(e))return e;if(e._error)throw e._error;return e._data}class yR{constructor(t,n,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function $U(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const RU=["post","put","patch","delete"],xae=new Set(RU),wae=["get",...RU],Sae=new Set(wae),Cae=new Set([301,302,303,307,308]),Eae=new Set([307,308]),sE={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},kae={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},nM={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},OU=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,IU=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Tae=!IU;function Aae(e){Ft(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let t=EU(e.routes),n=null,r=new Set,i=null,o=null,a=null,s=e.hydrationData!=null,l=dm(t,e.history.location,e.basename),u=null;if(l==null){let U=cu(404,{pathname:e.history.location.pathname}),{matches:H,route:de}=lM(t);l=H,u={[de.id]:U}}let f=!l.some(U=>U.route.loader)||e.hydrationData!=null,d,p={historyAction:e.history.action,location:e.history.location,matches:l,initialized:f,navigation:sE,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||u,fetchers:new Map,blockers:new Map},m=Ar.Pop,v=!1,y,w=!1,b=!1,x=[],S=[],k=new Map,A=0,$=-1,I=new Map,z=new Set,K=new Map,D=new Map,W=new Map,ie=!1;function ae(){return n=e.history.listen(U=>{let{action:H,location:de,delta:Y}=U;if(ie){ie=!1;return}nv(W.size===0||Y!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Z=mt({currentLocation:p.location,nextLocation:de,historyAction:H});if(Z&&Y!=null){ie=!0,e.history.go(Y*-1),nt(Z,{state:"blocked",location:de,proceed(){nt(Z,{state:"proceeding",proceed:void 0,reset:void 0,location:de}),e.history.go(Y)},reset(){Xe(Z),J({blockers:new Map(d.state.blockers)})}});return}return P(H,de)}),p.initialized||P(Ar.Pop,p.location),d}function q(){n&&n(),r.clear(),y&&y.abort(),p.fetchers.forEach((U,H)=>Me(H)),p.blockers.forEach((U,H)=>Xe(H))}function G(U){return r.add(U),()=>r.delete(U)}function J(U){p=pn({},p,U),r.forEach(H=>H(p))}function le(U,H){var de,Y;let Z=p.actionData!=null&&p.navigation.formMethod!=null&&pl(p.navigation.formMethod)&&p.navigation.state==="loading"&&((de=U.state)==null?void 0:de._isRedirect)!==!0,re;H.actionData?Object.keys(H.actionData).length>0?re=H.actionData:re=null:Z?re=p.actionData:re=null;let xe=H.loaderData?sM(p.loaderData,H.loaderData,H.matches||[],H.errors):p.loaderData;for(let[_e]of W)Xe(_e);let Se=v===!0||p.navigation.formMethod!=null&&pl(p.navigation.formMethod)&&((Y=U.state)==null?void 0:Y._isRedirect)!==!0;J(pn({},H,{actionData:re,loaderData:xe,historyAction:m,location:U,initialized:!0,navigation:sE,revalidation:"idle",restoreScrollPosition:Pe(U,H.matches||p.matches),preventScrollReset:Se,blockers:new Map(p.blockers)})),w||m===Ar.Pop||(m===Ar.Push?e.history.push(U,U.state):m===Ar.Replace&&e.history.replace(U,U.state)),m=Ar.Pop,v=!1,w=!1,b=!1,x=[],S=[]}async function Q(U,H){if(typeof U=="number"){e.history.go(U);return}let{path:de,submission:Y,error:Z}=rM(U,H),re=p.location,xe=tv(p.location,de,H&&H.state);xe=pn({},xe,e.history.encodeLocation(xe));let Se=H&&H.replace!=null?H.replace:void 0,_e=Ar.Push;Se===!0?_e=Ar.Replace:Se===!1||Y!=null&&pl(Y.formMethod)&&Y.formAction===p.location.pathname+p.location.search&&(_e=Ar.Replace);let et=H&&"preventScrollReset"in H?H.preventScrollReset===!0:void 0,tt=mt({currentLocation:re,nextLocation:xe,historyAction:_e});if(tt){nt(tt,{state:"blocked",location:xe,proceed(){nt(tt,{state:"proceeding",proceed:void 0,reset:void 0,location:xe}),Q(U,H)},reset(){Xe(tt),J({blockers:new Map(p.blockers)})}});return}return await P(_e,xe,{submission:Y,pendingError:Z,preventScrollReset:et,replace:H&&H.replace})}function te(){if(ke(),J({revalidation:"loading"}),p.navigation.state!=="submitting"){if(p.navigation.state==="idle"){P(p.historyAction,p.location,{startUninterruptedRevalidation:!0});return}P(m||p.historyAction,p.navigation.location,{overrideNavigation:p.navigation})}}async function P(U,H,de){y&&y.abort(),y=null,m=U,w=(de&&de.startUninterruptedRevalidation)===!0,Te(p.location,p.matches),v=(de&&de.preventScrollReset)===!0;let Y=de&&de.overrideNavigation,Z=dm(t,H,e.basename);if(!Z){let fe=cu(404,{pathname:H.pathname}),{matches:he,route:Ae}=lM(t);ge(),le(H,{matches:he,loaderData:{},errors:{[Ae.id]:fe}});return}if(Dae(p.location,H)&&!(de&&de.submission&&pl(de.submission.formMethod))){le(H,{matches:Z});return}y=new AbortController;let re=kg(e.history,H,y.signal,de&&de.submission),xe,Se;if(de&&de.pendingError)Se={[Bd(Z).route.id]:de.pendingError};else if(de&&de.submission&&pl(de.submission.formMethod)){let fe=await me(re,H,de.submission,Z,{replace:de.replace});if(fe.shortCircuited)return;xe=fe.pendingActionData,Se=fe.pendingActionError,Y=pn({state:"loading",location:H},de.submission),re=new Request(re.url,{signal:re.signal})}let{shortCircuited:_e,loaderData:et,errors:tt}=await j(re,H,Z,Y,de&&de.submission,de&&de.replace,xe,Se);_e||(y=null,le(H,pn({matches:Z},xe?{actionData:xe}:{},{loaderData:et,errors:tt})))}async function me(U,H,de,Y,Z){ke();let re=pn({state:"submitting",location:H},de);J({navigation:re});let xe,Se=dM(Y,H);if(!Se.route.action)xe={type:ti.error,error:cu(405,{method:U.method,pathname:H.pathname,routeId:Se.route.id})};else if(xe=await Eg("action",U,Se,Y,d.basename),U.signal.aborted)return{shortCircuited:!0};if(np(xe)){let _e;return Z&&Z.replace!=null?_e=Z.replace:_e=xe.location===p.location.pathname+p.location.search,await Ee(p,xe,{submission:de,replace:_e}),{shortCircuited:!0}}if(Tm(xe)){let _e=Bd(Y,Se.route.id);return(Z&&Z.replace)!==!0&&(m=Ar.Push),{pendingActionData:{},pendingActionError:{[_e.route.id]:xe.error}}}if(zc(xe))throw cu(400,{type:"defer-action"});return{pendingActionData:{[Se.route.id]:xe.data}}}async function j(U,H,de,Y,Z,re,xe,Se){let _e=Y;_e||(_e=pn({state:"loading",location:H,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Z));let et=Z||(_e.formMethod&&_e.formAction&&_e.formData&&_e.formEncType?{formMethod:_e.formMethod,formAction:_e.formAction,formData:_e.formData,formEncType:_e.formEncType}:void 0),[tt,fe]=iM(e.history,p,de,et,H,b,x,S,xe,Se,K);if(ge(it=>!(de&&de.some(pt=>pt.route.id===it))||tt&&tt.some(pt=>pt.route.id===it)),tt.length===0&&fe.length===0)return le(H,pn({matches:de,loaderData:{},errors:Se||null},xe?{actionData:xe}:{})),{shortCircuited:!0};if(!w){fe.forEach(pt=>{let Ot=p.fetchers.get(pt.key),rn={state:"loading",data:Ot&&Ot.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};p.fetchers.set(pt.key,rn)});let it=xe||p.actionData;J(pn({navigation:_e},it?Object.keys(it).length===0?{actionData:null}:{actionData:it}:{},fe.length>0?{fetchers:new Map(p.fetchers)}:{}))}$=++A,fe.forEach(it=>k.set(it.key,y));let{results:he,loaderResults:Ae,fetcherResults:We}=await Re(p.matches,de,tt,fe,U);if(U.signal.aborted)return{shortCircuited:!0};fe.forEach(it=>k.delete(it.key));let Ve=uM(he);if(Ve)return await Ee(p,Ve,{replace:re}),{shortCircuited:!0};let{loaderData:Ge,errors:ft}=aM(p,de,tt,Ae,Se,fe,We,D);D.forEach((it,pt)=>{it.subscribe(Ot=>{(Ot||it.done)&&D.delete(pt)})}),Ke();let ut=He($);return pn({loaderData:Ge,errors:ft},ut||fe.length>0?{fetchers:new Map(p.fetchers)}:{})}function L(U){return p.fetchers.get(U)||kae}function oe(U,H,de,Y){if(Tae)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");k.has(U)&&Be(U);let Z=dm(t,de,e.basename);if(!Z){De(U,H,cu(404,{pathname:de}));return}let{path:re,submission:xe}=rM(de,Y,!0),Se=dM(Z,re);if(v=(Y&&Y.preventScrollReset)===!0,xe&&pl(xe.formMethod)){ue(U,H,re,Se,Z,xe);return}K.set(U,{routeId:H,path:re,match:Se,matches:Z}),se(U,H,re,Se,Z,xe)}async function ue(U,H,de,Y,Z,re){if(ke(),K.delete(U),!Y.route.action){let Sn=cu(405,{method:re.formMethod,pathname:de,routeId:H});De(U,H,Sn);return}let xe=p.fetchers.get(U),Se=pn({state:"submitting"},re,{data:xe&&xe.data," _hasFetcherDoneAnything ":!0});p.fetchers.set(U,Se),J({fetchers:new Map(p.fetchers)});let _e=new AbortController,et=kg(e.history,de,_e.signal,re);k.set(U,_e);let tt=await Eg("action",et,Y,Z,d.basename);if(et.signal.aborted){k.get(U)===_e&&k.delete(U);return}if(np(tt)){k.delete(U),z.add(U);let Sn=pn({state:"loading"},re,{data:void 0," _hasFetcherDoneAnything ":!0});return p.fetchers.set(U,Sn),J({fetchers:new Map(p.fetchers)}),Ee(p,tt,{isFetchActionRedirect:!0})}if(Tm(tt)){De(U,H,tt.error);return}if(zc(tt))throw cu(400,{type:"defer-action"});let fe=p.navigation.location||p.location,he=kg(e.history,fe,_e.signal),Ae=p.navigation.state!=="idle"?dm(t,p.navigation.location,e.basename):p.matches;Ft(Ae,"Didn't find any matches after fetcher action");let We=++A;I.set(U,We);let Ve=pn({state:"loading",data:tt.data},re,{" _hasFetcherDoneAnything ":!0});p.fetchers.set(U,Ve);let[Ge,ft]=iM(e.history,p,Ae,re,fe,b,x,S,{[Y.route.id]:tt.data},void 0,K);ft.filter(Sn=>Sn.key!==U).forEach(Sn=>{let Nr=Sn.key,_r=p.fetchers.get(Nr),kr={state:"loading",data:_r&&_r.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};p.fetchers.set(Nr,kr),k.set(Nr,_e)}),J({fetchers:new Map(p.fetchers)});let{results:ut,loaderResults:it,fetcherResults:pt}=await Re(p.matches,Ae,Ge,ft,he);if(_e.signal.aborted)return;I.delete(U),k.delete(U),ft.forEach(Sn=>k.delete(Sn.key));let Ot=uM(ut);if(Ot)return Ee(p,Ot);let{loaderData:rn,errors:Qt}=aM(p,p.matches,Ge,it,void 0,ft,pt,D),Yt={state:"idle",data:tt.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};p.fetchers.set(U,Yt);let br=He(We);p.navigation.state==="loading"&&We>$?(Ft(m,"Expected pending action"),y&&y.abort(),le(p.navigation.location,{matches:Ae,loaderData:rn,errors:Qt,fetchers:new Map(p.fetchers)})):(J(pn({errors:Qt,loaderData:sM(p.loaderData,rn,Ae,Qt)},br?{fetchers:new Map(p.fetchers)}:{})),b=!1)}async function se(U,H,de,Y,Z,re){let xe=p.fetchers.get(U),Se=pn({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},re,{data:xe&&xe.data," _hasFetcherDoneAnything ":!0});p.fetchers.set(U,Se),J({fetchers:new Map(p.fetchers)});let _e=new AbortController,et=kg(e.history,de,_e.signal);k.set(U,_e);let tt=await Eg("loader",et,Y,Z,d.basename);if(zc(tt)&&(tt=await MU(tt,et.signal,!0)||tt),k.get(U)===_e&&k.delete(U),et.signal.aborted)return;if(np(tt)){await Ee(p,tt);return}if(Tm(tt)){let he=Bd(p.matches,H);p.fetchers.delete(U),J({fetchers:new Map(p.fetchers),errors:{[he.route.id]:tt.error}});return}Ft(!zc(tt),"Unhandled fetcher deferred data");let fe={state:"idle",data:tt.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};p.fetchers.set(U,fe),J({fetchers:new Map(p.fetchers)})}async function Ee(U,H,de){var Y;let{submission:Z,replace:re,isFetchActionRedirect:xe}=de===void 0?{}:de;H.revalidate&&(b=!0);let Se=tv(U.location,H.location,pn({_isRedirect:!0},xe?{_isFetchActionRedirect:!0}:{}));if(Ft(Se,"Expected a location on the redirect navigation"),OU.test(H.location)&&IU&&typeof((Y=window)==null?void 0:Y.location)<"u"){let Ae=e.history.createURL(H.location).origin;if(window.location.origin!==Ae){re?window.location.replace(H.location):window.location.assign(H.location);return}}y=null;let _e=re===!0?Ar.Replace:Ar.Push,{formMethod:et,formAction:tt,formEncType:fe,formData:he}=U.navigation;!Z&&et&&tt&&he&&fe&&(Z={formMethod:et,formAction:tt,formEncType:fe,formData:he}),Eae.has(H.status)&&Z&&pl(Z.formMethod)?await P(_e,Se,{submission:pn({},Z,{formAction:H.location}),preventScrollReset:v}):await P(_e,Se,{overrideNavigation:{state:"loading",location:Se,formMethod:Z?Z.formMethod:void 0,formAction:Z?Z.formAction:void 0,formEncType:Z?Z.formEncType:void 0,formData:Z?Z.formData:void 0},preventScrollReset:v})}async function Re(U,H,de,Y,Z){let re=await Promise.all([...de.map(_e=>Eg("loader",Z,_e,H,d.basename)),...Y.map(_e=>Eg("loader",kg(e.history,_e.path,Z.signal),_e.match,_e.matches,d.basename))]),xe=re.slice(0,de.length),Se=re.slice(de.length);return await Promise.all([cM(U,de,xe,Z.signal,!1,p.loaderData),cM(U,Y.map(_e=>_e.match),Se,Z.signal,!0)]),{results:re,loaderResults:xe,fetcherResults:Se}}function ke(){b=!0,x.push(...ge()),K.forEach((U,H)=>{k.has(H)&&(S.push(H),Be(H))})}function De(U,H,de){let Y=Bd(p.matches,H);Me(U),J({errors:{[Y.route.id]:de},fetchers:new Map(p.fetchers)})}function Me(U){k.has(U)&&Be(U),K.delete(U),I.delete(U),z.delete(U),p.fetchers.delete(U)}function Be(U){let H=k.get(U);Ft(H,"Expected fetch controller: "+U),H.abort(),k.delete(U)}function Ue(U){for(let H of U){let Y={state:"idle",data:L(H).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};p.fetchers.set(H,Y)}}function Ke(){let U=[];for(let H of z){let de=p.fetchers.get(H);Ft(de,"Expected fetcher: "+H),de.state==="loading"&&(z.delete(H),U.push(H))}Ue(U)}function He(U){let H=[];for(let[de,Y]of I)if(Y<U){let Z=p.fetchers.get(de);Ft(Z,"Expected fetcher: "+de),Z.state==="loading"&&(Be(de),I.delete(de),H.push(de))}return Ue(H),H.length>0}function lt(U,H){let de=p.blockers.get(U)||nM;return W.get(U)!==H&&W.set(U,H),de}function Xe(U){p.blockers.delete(U),W.delete(U)}function nt(U,H){let de=p.blockers.get(U)||nM;Ft(de.state==="unblocked"&&H.state==="blocked"||de.state==="blocked"&&H.state==="blocked"||de.state==="blocked"&&H.state==="proceeding"||de.state==="blocked"&&H.state==="unblocked"||de.state==="proceeding"&&H.state==="unblocked","Invalid blocker state transition: "+de.state+" -> "+H.state),p.blockers.set(U,H),J({blockers:new Map(p.blockers)})}function mt(U){let{currentLocation:H,nextLocation:de,historyAction:Y}=U;if(W.size===0)return;W.size>1&&nv(!1,"A router only supports one blocker at a time");let Z=Array.from(W.entries()),[re,xe]=Z[Z.length-1],Se=p.blockers.get(re);if(!(Se&&Se.state==="proceeding")&&xe({currentLocation:H,nextLocation:de,historyAction:Y}))return re}function ge(U){let H=[];return D.forEach((de,Y)=>{(!U||U(Y))&&(de.cancel(),H.push(Y),D.delete(Y))}),H}function $e(U,H,de){if(i=U,a=H,o=de||(Y=>Y.key),!s&&p.navigation===sE){s=!0;let Y=Pe(p.location,p.matches);Y!=null&&J({restoreScrollPosition:Y})}return()=>{i=null,a=null,o=null}}function Te(U,H){if(i&&o&&a){let de=H.map(Z=>fM(Z,p.loaderData)),Y=o(U,de)||U.key;i[Y]=a()}}function Pe(U,H){if(i&&o&&a){let de=H.map(re=>fM(re,p.loaderData)),Y=o(U,de)||U.key,Z=i[Y];if(typeof Z=="number")return Z}return null}return d={get basename(){return e.basename},get state(){return p},get routes(){return t},initialize:ae,subscribe:G,enableScrollRestoration:$e,navigate:Q,fetch:oe,revalidate:te,createHref:U=>e.history.createHref(U),encodeLocation:U=>e.history.encodeLocation(U),getFetcher:L,deleteFetcher:Me,dispose:q,getBlocker:lt,deleteBlocker:Xe,_internalFetchControllers:k,_internalActiveDeferreds:D},d}function $ae(e){return e!=null&&"formData"in e}function rM(e,t,n){n===void 0&&(n=!1);let r=typeof e=="string"?e:El(e);if(!t||!$ae(t))return{path:r};if(t.formMethod&&!Lae(t.formMethod))return{path:r,error:cu(405,{method:t.formMethod})};let i;if(t.formData&&(i={formMethod:t.formMethod||"get",formAction:LU(r),formEncType:t&&t.formEncType||"application/x-www-form-urlencoded",formData:t.formData},pl(i.formMethod)))return{path:r,submission:i};let o=Dl(r),a=PU(t.formData);return n&&o.search&&FU(o.search)&&a.append("index",""),o.search="?"+a,{path:El(o),submission:i}}function Rae(e,t){let n=e;if(t){let r=e.findIndex(i=>i.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function iM(e,t,n,r,i,o,a,s,l,u,f){let d=u?Object.values(u)[0]:l?Object.values(l)[0]:void 0,p=e.createURL(t.location),m=e.createURL(i),v=o||p.toString()===m.toString()||p.search!==m.search,y=u?Object.keys(u)[0]:void 0,b=Rae(n,y).filter((S,k)=>{if(S.route.loader==null)return!1;if(Oae(t.loaderData,t.matches[k],S)||a.some(I=>I===S.route.id))return!0;let A=t.matches[k],$=S;return oM(S,pn({currentUrl:p,currentParams:A.params,nextUrl:m,nextParams:$.params},r,{actionResult:d,defaultShouldRevalidate:v||DU(A,$)}))}),x=[];return f&&f.forEach((S,k)=>{if(n.some(A=>A.route.id===S.routeId))s.includes(k)?x.push(pn({key:k},S)):oM(S.match,pn({currentUrl:p,currentParams:t.matches[t.matches.length-1].params,nextUrl:m,nextParams:n[n.length-1].params},r,{actionResult:d,defaultShouldRevalidate:v}))&&x.push(pn({key:k},S));else return}),[b,x]}function Oae(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function DU(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function oM(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Eg(e,t,n,r,i,o,a,s){i===void 0&&(i="/"),o===void 0&&(o=!1),a===void 0&&(a=!1);let l,u,f,d=new Promise((m,v)=>f=v),p=()=>f();t.signal.addEventListener("abort",p);try{let m=n.route[e];Ft(m,"Could not find the "+e+' to run on the "'+n.route.id+'" route'),u=await Promise.race([m({request:t,params:n.params,context:s}),d]),Ft(u!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(m){l=ti.error,u=m}finally{t.signal.removeEventListener("abort",p)}if(Pae(u)){let m=u.status;if(Cae.has(m)){let w=u.headers.get("Location");if(Ft(w,"Redirects returned/thrown from loaders/actions must have a Location header"),OU.test(w)){if(!o){let b=new URL(t.url),x=w.startsWith("//")?new URL(b.protocol+w):new URL(w);x.origin===b.origin&&(w=x.pathname+x.search+x.hash)}}else{let b=r.slice(0,r.indexOf(n)+1),x=px(b).map(k=>k.pathnameBase),S=vR(w,x,new URL(t.url).pathname);if(Ft(El(S),"Unable to resolve redirect location: "+w),i){let k=S.pathname;S.pathname=k==="/"?i:_l([i,k])}w=El(S)}if(o)throw u.headers.set("Location",w),u;return{type:ti.redirect,status:m,location:w,revalidate:u.headers.get("X-Remix-Revalidate")!==null}}if(a)throw{type:l||ti.data,response:u};let v,y=u.headers.get("Content-Type");return y&&/\bapplication\/json\b/.test(y)?v=await u.json():v=await u.text(),l===ti.error?{type:l,error:new yR(m,u.statusText,v),headers:u.headers}:{type:ti.data,data:v,statusCode:u.status,headers:u.headers}}return l===ti.error?{type:l,error:u}:u instanceof yae?{type:ti.deferred,deferredData:u}:{type:ti.data,data:u}}function kg(e,t,n,r){let i=e.createURL(LU(t)).toString(),o={signal:n};if(r&&pl(r.formMethod)){let{formMethod:a,formEncType:s,formData:l}=r;o.method=a.toUpperCase(),o.body=s==="application/x-www-form-urlencoded"?PU(l):l}return new Request(i,o)}function PU(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,r instanceof File?r.name:r);return t}function Iae(e,t,n,r,i){let o={},a=null,s,l=!1,u={};return n.forEach((f,d)=>{let p=t[d].route.id;if(Ft(!np(f),"Cannot handle redirect results in processLoaderData"),Tm(f)){let m=Bd(e,p),v=f.error;r&&(v=Object.values(r)[0],r=void 0),a=a||{},a[m.route.id]==null&&(a[m.route.id]=v),o[p]=void 0,l||(l=!0,s=$U(f.error)?f.error.status:500),f.headers&&(u[p]=f.headers)}else zc(f)?(i.set(p,f.deferredData),o[p]=f.deferredData.data):o[p]=f.data,f.statusCode!=null&&f.statusCode!==200&&!l&&(s=f.statusCode),f.headers&&(u[p]=f.headers)}),r&&(a=r,o[Object.keys(r)[0]]=void 0),{loaderData:o,errors:a,statusCode:s||200,loaderHeaders:u}}function aM(e,t,n,r,i,o,a,s){let{loaderData:l,errors:u}=Iae(t,n,r,i,s);for(let f=0;f<o.length;f++){let{key:d,match:p}=o[f];Ft(a!==void 0&&a[f]!==void 0,"Did not find corresponding fetcher result");let m=a[f];if(Tm(m)){let v=Bd(e.matches,p.route.id);u&&u[v.route.id]||(u=pn({},u,{[v.route.id]:m.error})),e.fetchers.delete(d)}else if(np(m))Ft(!1,"Unhandled fetcher revalidation redirect");else if(zc(m))Ft(!1,"Unhandled fetcher deferred data");else{let v={state:"idle",data:m.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};e.fetchers.set(d,v)}}return{loaderData:l,errors:u}}function sM(e,t,n,r){let i=pn({},t);for(let o of n){let a=o.route.id;if(t.hasOwnProperty(a)?t[a]!==void 0&&(i[a]=t[a]):e[a]!==void 0&&(i[a]=e[a]),r&&r.hasOwnProperty(a))break}return i}function Bd(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function lM(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function cu(e,t){let{pathname:n,routeId:r,method:i,type:o}=t===void 0?{}:t,a="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(a="Bad Request",i&&n&&r?s="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":o==="defer-action"&&(s="defer() is not supported in actions")):e===403?(a="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",s='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",i&&n&&r?s="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(s='Invalid request method "'+i.toUpperCase()+'"')),new yR(e||500,a,new Error(s),!0)}function uM(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(np(n))return n}}function LU(e){let t=typeof e=="string"?Dl(e):e;return El(pn({},t,{hash:""}))}function Dae(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash!==t.hash}function zc(e){return e.type===ti.deferred}function Tm(e){return e.type===ti.error}function np(e){return(e&&e.type)===ti.redirect}function Pae(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Lae(e){return Sae.has(e)}function pl(e){return xae.has(e)}async function cM(e,t,n,r,i,o){for(let a=0;a<n.length;a++){let s=n[a],l=t[a],u=e.find(d=>d.route.id===l.route.id),f=u!=null&&!DU(u,l)&&(o&&o[l.route.id])!==void 0;zc(s)&&(i||f)&&await MU(s,r,i).then(d=>{d&&(n[a]=d||n[a])})}}async function MU(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:ti.data,data:e.deferredData.unwrappedData}}catch(i){return{type:ti.error,error:i}}return{type:ti.data,data:e.deferredData.data}}}function FU(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function fM(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function dM(e,t){let n=typeof t=="string"?Dl(t).search:t.search;if(e[e.length-1].route.index&&FU(n||""))return e[e.length-1];let r=px(e);return r[r.length-1]}/**
|
|
203
|
-
* React Router v6.8.1
|
|
204
|
-
*
|
|
205
|
-
* Copyright (c) Remix Software Inc.
|
|
206
|
-
*
|
|
207
|
-
* This source code is licensed under the MIT license found in the
|
|
208
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
209
|
-
*
|
|
210
|
-
* @license MIT
|
|
211
|
-
*/function Yb(){return Yb=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},Yb.apply(this,arguments)}function Mae(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const Fae=typeof Object.is=="function"?Object.is:Mae,{useState:Nae,useEffect:Bae,useLayoutEffect:jae,useDebugValue:zae}=ef;function Uae(e,t,n){const r=t(),[{inst:i},o]=Nae({inst:{value:r,getSnapshot:t}});return jae(()=>{i.value=r,i.getSnapshot=t,lE(i)&&o({inst:i})},[e,r,t]),Bae(()=>(lE(i)&&o({inst:i}),e(()=>{lE(i)&&o({inst:i})})),[e]),zae(r),r}function lE(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!Fae(n,r)}catch{return!0}}function Kae(e,t,n){return t()}const Wae=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Vae=!Wae,Hae=Vae?Kae:Uae,qae="useSyncExternalStore"in ef?(e=>e.useSyncExternalStore)(ef):Hae,bR=T.createContext(null),hx=T.createContext(null),gx=T.createContext(null),mx=T.createContext(null),vf=T.createContext({outlet:null,matches:[]}),NU=T.createContext(null);function Gae(e,t){let{relative:n}=t===void 0?{}:t;Xp()||Ft(!1);let{basename:r,navigator:i}=T.useContext(gx),{hash:o,pathname:a,search:s}=jU(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:_l([r,a])),i.createHref({pathname:l,search:s,hash:o})}function Xp(){return T.useContext(mx)!=null}function Zp(){return Xp()||Ft(!1),T.useContext(mx).location}function Wu(){Xp()||Ft(!1);let{basename:e,navigator:t}=T.useContext(gx),{matches:n}=T.useContext(vf),{pathname:r}=Zp(),i=JSON.stringify(px(n).map(s=>s.pathnameBase)),o=T.useRef(!1);return T.useEffect(()=>{o.current=!0}),T.useCallback(function(s,l){if(l===void 0&&(l={}),!o.current)return;if(typeof s=="number"){t.go(s);return}let u=vR(s,JSON.parse(i),r,l.relative==="path");e!=="/"&&(u.pathname=u.pathname==="/"?e:_l([e,u.pathname])),(l.replace?t.replace:t.push)(u,l.state,l)},[e,t,i,r])}function BU(){let{matches:e}=T.useContext(vf),t=e[e.length-1];return t?t.params:{}}function jU(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=T.useContext(vf),{pathname:i}=Zp(),o=JSON.stringify(px(r).map(a=>a.pathnameBase));return T.useMemo(()=>vR(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function Yae(e,t){Xp()||Ft(!1);let{navigator:n}=T.useContext(gx),r=T.useContext(hx),{matches:i}=T.useContext(vf),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let l=Zp(),u;if(t){var f;let y=typeof t=="string"?Dl(t):t;s==="/"||(f=y.pathname)!=null&&f.startsWith(s)||Ft(!1),u=y}else u=l;let d=u.pathname||"/",p=s==="/"?d:d.slice(s.length)||"/",m=dm(e,{pathname:p}),v=Qae(m&&m.map(y=>Object.assign({},y,{params:Object.assign({},a,y.params),pathname:_l([s,n.encodeLocation?n.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:_l([s,n.encodeLocation?n.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,r||void 0);return t&&v?T.createElement(mx.Provider,{value:{location:Yb({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Ar.Pop}},v):v}function Xae(){let e=rse(),t=$U(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},o=null;return T.createElement(T.Fragment,null,T.createElement("h2",null,"Unexpected Application Error!"),T.createElement("h3",{style:{fontStyle:"italic"}},t),n?T.createElement("pre",{style:i},n):null,o)}class Zae extends T.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?T.createElement(vf.Provider,{value:this.props.routeContext},T.createElement(NU.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Jae(e){let{routeContext:t,match:n,children:r}=e,i=T.useContext(bR);return i&&i.static&&i.staticContext&&n.route.errorElement&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),T.createElement(vf.Provider,{value:t},r)}function Qae(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,i=n==null?void 0:n.errors;if(i!=null){let o=r.findIndex(a=>a.route.id&&(i==null?void 0:i[a.route.id]));o>=0||Ft(!1),r=r.slice(0,Math.min(r.length,o+1))}return r.reduceRight((o,a,s)=>{let l=a.route.id?i==null?void 0:i[a.route.id]:null,u=n?a.route.errorElement||T.createElement(Xae,null):null,f=t.concat(r.slice(0,s+1)),d=()=>T.createElement(Jae,{match:a,routeContext:{outlet:o,matches:f}},l?u:a.route.element!==void 0?a.route.element:o);return n&&(a.route.errorElement||s===0)?T.createElement(Zae,{location:n.location,component:u,error:l,children:d(),routeContext:{outlet:null,matches:f}}):d()},null)}var pM;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(pM||(pM={}));var Xb;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(Xb||(Xb={}));function ese(e){let t=T.useContext(hx);return t||Ft(!1),t}function tse(e){let t=T.useContext(vf);return t||Ft(!1),t}function nse(e){let t=tse(),n=t.matches[t.matches.length-1];return n.route.id||Ft(!1),n.route.id}function rse(){var e;let t=T.useContext(NU),n=ese(Xb.UseRouteError),r=nse(Xb.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function ise(e){let{fallbackElement:t,router:n}=e,r=qae(n.subscribe,()=>n.state,()=>n.state),i=T.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:a=>n.navigate(a),push:(a,s,l)=>n.navigate(a,{state:s,preventScrollReset:l==null?void 0:l.preventScrollReset}),replace:(a,s,l)=>n.navigate(a,{replace:!0,state:s,preventScrollReset:l==null?void 0:l.preventScrollReset})}),[n]),o=n.basename||"/";return T.createElement(T.Fragment,null,T.createElement(bR.Provider,{value:{router:n,navigator:i,static:!1,basename:o}},T.createElement(hx.Provider,{value:r},T.createElement(sse,{basename:n.basename,location:n.state.location,navigationType:n.state.historyAction,navigator:i},n.state.initialized?T.createElement(lse,null):t))),null)}function ose(e){let{to:t,replace:n,state:r,relative:i}=e;Xp()||Ft(!1);let o=T.useContext(hx),a=Wu();return T.useEffect(()=>{o&&o.navigation.state!=="idle"||a(t,{replace:n,state:r,relative:i})}),null}function ase(e){Ft(!1)}function sse(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ar.Pop,navigator:o,static:a=!1}=e;Xp()&&Ft(!1);let s=t.replace(/^\/*/,"/"),l=T.useMemo(()=>({basename:s,navigator:o,static:a}),[s,o,a]);typeof r=="string"&&(r=Dl(r));let{pathname:u="/",search:f="",hash:d="",state:p=null,key:m="default"}=r,v=T.useMemo(()=>{let y=AU(u,s);return y==null?null:{pathname:y,search:f,hash:d,state:p,key:m}},[s,u,f,d,p,m]);return v==null?null:T.createElement(gx.Provider,{value:l},T.createElement(mx.Provider,{children:n,value:{location:v,navigationType:i}}))}function lse(e){let{children:t,location:n}=e,r=T.useContext(bR),i=r&&!t?r.router.routes:OT(t);return Yae(i,n)}var hM;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(hM||(hM={}));new Promise(()=>{});function OT(e,t){t===void 0&&(t=[]);let n=[];return T.Children.forEach(e,(r,i)=>{if(!T.isValidElement(r))return;if(r.type===T.Fragment){n.push.apply(n,OT(r.props.children,t));return}r.type!==ase&&Ft(!1),!r.props.index||!r.props.children||Ft(!1);let o=[...t,i],a={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,hasErrorBoundary:r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle};r.props.children&&(a.children=OT(r.props.children,o)),n.push(a)}),n}function zU(e){return e.map(t=>{let n=Yb({},t);return n.hasErrorBoundary==null&&(n.hasErrorBoundary=n.errorElement!=null),n.children&&(n.children=zU(n.children)),n})}/**
|
|
212
|
-
* React Router DOM v6.8.1
|
|
213
|
-
*
|
|
214
|
-
* Copyright (c) Remix Software Inc.
|
|
215
|
-
*
|
|
216
|
-
* This source code is licensed under the MIT license found in the
|
|
217
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
218
|
-
*
|
|
219
|
-
* @license MIT
|
|
220
|
-
*/function Zb(){return Zb=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},Zb.apply(this,arguments)}function use(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function cse(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function fse(e,t){return e.button===0&&(!t||t==="_self")&&!cse(e)}const dse=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function pse(e,t){return Aae({basename:t==null?void 0:t.basename,history:Yoe({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||hse(),routes:zU(e)}).initialize()}function hse(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=Zb({},t,{errors:gse(t.errors)})),t}function gse(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")n[r]=new yR(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){let o=new Error(i.message);o.stack="",n[r]=o}else n[r]=i;return n}const mse=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Uv=T.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:f}=t,d=use(t,dse),p,m=!1;if(mse&&typeof u=="string"&&/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i.test(u)){p=u;let b=new URL(window.location.href),x=u.startsWith("//")?new URL(b.protocol+u):new URL(u);x.origin===b.origin?u=x.pathname+x.search+x.hash:m=!0}let v=Gae(u,{relative:i}),y=vse(u,{replace:a,state:s,target:l,preventScrollReset:f,relative:i});function w(b){r&&r(b),b.defaultPrevented||y(b)}return T.createElement("a",Zb({},d,{href:p||v,onClick:m||o?r:w,ref:n,target:l}))});var gM;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(gM||(gM={}));var mM;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(mM||(mM={}));function vse(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a}=t===void 0?{}:t,s=Wu(),l=Zp(),u=jU(e,{relative:a});return T.useCallback(f=>{if(fse(f,n)){f.preventDefault();let d=r!==void 0?r:El(l)===El(u);s(e,{replace:d,state:i,preventScrollReset:o,relative:a})}},[l,s,u,r,i,n,e,o,a])}var UU={exports:{}},Po={},KU={exports:{}},WU={};/**
|
|
221
|
-
* @license React
|
|
222
|
-
* scheduler.production.min.js
|
|
223
|
-
*
|
|
224
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
225
|
-
*
|
|
226
|
-
* This source code is licensed under the MIT license found in the
|
|
227
|
-
* LICENSE file in the root directory of this source tree.
|
|
228
|
-
*/(function(e){function t(Q,te){var P=Q.length;Q.push(te);e:for(;0<P;){var me=P-1>>>1,j=Q[me];if(0<i(j,te))Q[me]=te,Q[P]=j,P=me;else break e}}function n(Q){return Q.length===0?null:Q[0]}function r(Q){if(Q.length===0)return null;var te=Q[0],P=Q.pop();if(P!==te){Q[0]=P;e:for(var me=0,j=Q.length,L=j>>>1;me<L;){var oe=2*(me+1)-1,ue=Q[oe],se=oe+1,Ee=Q[se];if(0>i(ue,P))se<j&&0>i(Ee,ue)?(Q[me]=Ee,Q[se]=P,me=se):(Q[me]=ue,Q[oe]=P,me=oe);else if(se<j&&0>i(Ee,P))Q[me]=Ee,Q[se]=P,me=se;else break e}}return te}function i(Q,te){var P=Q.sortIndex-te.sortIndex;return P!==0?P:Q.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],f=1,d=null,p=3,m=!1,v=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(Q){for(var te=n(u);te!==null;){if(te.callback===null)r(u);else if(te.startTime<=Q)r(u),te.sortIndex=te.expirationTime,t(l,te);else break;te=n(u)}}function k(Q){if(y=!1,S(Q),!v)if(n(l)!==null)v=!0,J(A);else{var te=n(u);te!==null&&le(k,te.startTime-Q)}}function A(Q,te){v=!1,y&&(y=!1,b(z),z=-1),m=!0;var P=p;try{for(S(te),d=n(l);d!==null&&(!(d.expirationTime>te)||Q&&!W());){var me=d.callback;if(typeof me=="function"){d.callback=null,p=d.priorityLevel;var j=me(d.expirationTime<=te);te=e.unstable_now(),typeof j=="function"?d.callback=j:d===n(l)&&r(l),S(te)}else r(l);d=n(l)}if(d!==null)var L=!0;else{var oe=n(u);oe!==null&&le(k,oe.startTime-te),L=!1}return L}finally{d=null,p=P,m=!1}}var $=!1,I=null,z=-1,K=5,D=-1;function W(){return!(e.unstable_now()-D<K)}function ie(){if(I!==null){var Q=e.unstable_now();D=Q;var te=!0;try{te=I(!0,Q)}finally{te?ae():($=!1,I=null)}}else $=!1}var ae;if(typeof x=="function")ae=function(){x(ie)};else if(typeof MessageChannel<"u"){var q=new MessageChannel,G=q.port2;q.port1.onmessage=ie,ae=function(){G.postMessage(null)}}else ae=function(){w(ie,0)};function J(Q){I=Q,$||($=!0,ae())}function le(Q,te){z=w(function(){Q(e.unstable_now())},te)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(Q){Q.callback=null},e.unstable_continueExecution=function(){v||m||(v=!0,J(A))},e.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<Q?Math.floor(1e3/Q):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(Q){switch(p){case 1:case 2:case 3:var te=3;break;default:te=p}var P=p;p=te;try{return Q()}finally{p=P}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(Q,te){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var P=p;p=Q;try{return te()}finally{p=P}},e.unstable_scheduleCallback=function(Q,te,P){var me=e.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?me+P:me):P=me,Q){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=P+j,Q={id:f++,callback:te,priorityLevel:Q,startTime:P,expirationTime:j,sortIndex:-1},P>me?(Q.sortIndex=P,t(u,Q),n(l)===null&&Q===n(u)&&(y?(b(z),z=-1):y=!0,le(k,P-me))):(Q.sortIndex=j,t(l,Q),v||m||(v=!0,J(A))),Q},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(Q){var te=p;return function(){var P=p;p=te;try{return Q.apply(this,arguments)}finally{p=P}}}})(WU);KU.exports=WU;var yse=KU.exports;/**
|
|
229
|
-
* @license React
|
|
230
|
-
* react-dom.production.min.js
|
|
231
|
-
*
|
|
232
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
233
|
-
*
|
|
234
|
-
* This source code is licensed under the MIT license found in the
|
|
235
|
-
* LICENSE file in the root directory of this source tree.
|
|
236
|
-
*/var VU=T,Ro=yse;function Ze(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 HU=new Set,rv={};function yf(e,t){yp(e,t),yp(e+"Capture",t)}function yp(e,t){for(rv[e]=t,e=0;e<t.length;e++)HU.add(t[e])}var kl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),IT=Object.prototype.hasOwnProperty,bse=/^[: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]*$/,vM={},yM={};function _se(e){return IT.call(yM,e)?!0:IT.call(vM,e)?!1:bse.test(e)?yM[e]=!0:(vM[e]=!0,!1)}function xse(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function wse(e,t,n,r){if(t===null||typeof t>"u"||xse(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Li(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var ai={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ai[e]=new Li(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ai[t]=new Li(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ai[e]=new Li(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ai[e]=new Li(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){ai[e]=new Li(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ai[e]=new Li(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ai[e]=new Li(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ai[e]=new Li(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ai[e]=new Li(e,5,!1,e.toLowerCase(),null,!1,!1)});var _R=/[\-:]([a-z])/g;function xR(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(_R,xR);ai[t]=new Li(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(_R,xR);ai[t]=new Li(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(_R,xR);ai[t]=new Li(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ai[e]=new Li(e,1,!1,e.toLowerCase(),null,!1,!1)});ai.xlinkHref=new Li("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ai[e]=new Li(e,1,!1,e.toLowerCase(),null,!0,!0)});function wR(e,t,n,r){var i=ai.hasOwnProperty(t)?ai[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(wse(t,n,i,r)&&(n=null),r||i===null?_se(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Pl=VU.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Y0=Symbol.for("react.element"),jd=Symbol.for("react.portal"),zd=Symbol.for("react.fragment"),SR=Symbol.for("react.strict_mode"),DT=Symbol.for("react.profiler"),qU=Symbol.for("react.provider"),GU=Symbol.for("react.context"),CR=Symbol.for("react.forward_ref"),PT=Symbol.for("react.suspense"),LT=Symbol.for("react.suspense_list"),ER=Symbol.for("react.memo"),pu=Symbol.for("react.lazy"),YU=Symbol.for("react.offscreen"),bM=Symbol.iterator;function Tg(e){return e===null||typeof e!="object"?null:(e=bM&&e[bM]||e["@@iterator"],typeof e=="function"?e:null)}var ur=Object.assign,uE;function pm(e){if(uE===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);uE=t&&t[1]||""}return`
|
|
237
|
-
`+uE+e}var cE=!1;function fE(e,t){if(!e||cE)return"";cE=!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()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
|
238
|
-
`),o=r.stack.split(`
|
|
239
|
-
`),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(a!==1||s!==1)do if(a--,s--,0>s||i[a]!==o[s]){var l=`
|
|
240
|
-
`+i[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{cE=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?pm(e):""}function Sse(e){switch(e.tag){case 5:return pm(e.type);case 16:return pm("Lazy");case 13:return pm("Suspense");case 19:return pm("SuspenseList");case 0:case 2:case 15:return e=fE(e.type,!1),e;case 11:return e=fE(e.type.render,!1),e;case 1:return e=fE(e.type,!0),e;default:return""}}function MT(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case zd:return"Fragment";case jd:return"Portal";case DT:return"Profiler";case SR:return"StrictMode";case PT:return"Suspense";case LT:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case GU:return(e.displayName||"Context")+".Consumer";case qU:return(e._context.displayName||"Context")+".Provider";case CR:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ER:return t=e.displayName||null,t!==null?t:MT(e.type)||"Memo";case pu:t=e._payload,e=e._init;try{return MT(e(t))}catch{}}return null}function Cse(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return MT(t);case 8:return t===SR?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Mu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function XU(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ese(e){var t=XU(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function X0(e){e._valueTracker||(e._valueTracker=Ese(e))}function ZU(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=XU(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Jb(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function FT(e,t){var n=t.checked;return ur({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function _M(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Mu(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function JU(e,t){t=t.checked,t!=null&&wR(e,"checked",t,!1)}function NT(e,t){JU(e,t);var n=Mu(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?BT(e,t.type,n):t.hasOwnProperty("defaultValue")&&BT(e,t.type,Mu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xM(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function BT(e,t,n){(t!=="number"||Jb(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var hm=Array.isArray;function rp(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Mu(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function jT(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Ze(91));return ur({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function wM(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Ze(92));if(hm(n)){if(1<n.length)throw Error(Ze(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Mu(n)}}function QU(e,t){var n=Mu(t.value),r=Mu(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function SM(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function e9(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 zT(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?e9(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Z0,t9=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Z0=Z0||document.createElement("div"),Z0.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Z0.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function iv(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Am={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},kse=["Webkit","ms","Moz","O"];Object.keys(Am).forEach(function(e){kse.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Am[t]=Am[e]})});function n9(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Am.hasOwnProperty(e)&&Am[e]?(""+t).trim():t+"px"}function r9(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=n9(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Tse=ur({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 UT(e,t){if(t){if(Tse[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Ze(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Ze(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Ze(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Ze(62))}}function KT(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var WT=null;function kR(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var VT=null,ip=null,op=null;function CM(e){if(e=Vv(e)){if(typeof VT!="function")throw Error(Ze(280));var t=e.stateNode;t&&(t=xx(t),VT(e.stateNode,e.type,t))}}function i9(e){ip?op?op.push(e):op=[e]:ip=e}function o9(){if(ip){var e=ip,t=op;if(op=ip=null,CM(e),t)for(e=0;e<t.length;e++)CM(t[e])}}function a9(e,t){return e(t)}function s9(){}var dE=!1;function l9(e,t,n){if(dE)return e(t,n);dE=!0;try{return a9(e,t,n)}finally{dE=!1,(ip!==null||op!==null)&&(s9(),o9())}}function ov(e,t){var n=e.stateNode;if(n===null)return null;var r=xx(n);if(r===null)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)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Ze(231,t,typeof n));return n}var HT=!1;if(kl)try{var Ag={};Object.defineProperty(Ag,"passive",{get:function(){HT=!0}}),window.addEventListener("test",Ag,Ag),window.removeEventListener("test",Ag,Ag)}catch{HT=!1}function Ase(e,t,n,r,i,o,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var $m=!1,Qb=null,e_=!1,qT=null,$se={onError:function(e){$m=!0,Qb=e}};function Rse(e,t,n,r,i,o,a,s,l){$m=!1,Qb=null,Ase.apply($se,arguments)}function Ose(e,t,n,r,i,o,a,s,l){if(Rse.apply(this,arguments),$m){if($m){var u=Qb;$m=!1,Qb=null}else throw Error(Ze(198));e_||(e_=!0,qT=u)}}function bf(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function u9(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function EM(e){if(bf(e)!==e)throw Error(Ze(188))}function Ise(e){var t=e.alternate;if(!t){if(t=bf(e),t===null)throw Error(Ze(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return EM(i),e;if(o===r)return EM(i),t;o=o.sibling}throw Error(Ze(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a)throw Error(Ze(189))}}if(n.alternate!==r)throw Error(Ze(190))}if(n.tag!==3)throw Error(Ze(188));return n.stateNode.current===n?e:t}function c9(e){return e=Ise(e),e!==null?f9(e):null}function f9(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=f9(e);if(t!==null)return t;e=e.sibling}return null}var d9=Ro.unstable_scheduleCallback,kM=Ro.unstable_cancelCallback,Dse=Ro.unstable_shouldYield,Pse=Ro.unstable_requestPaint,Cr=Ro.unstable_now,Lse=Ro.unstable_getCurrentPriorityLevel,TR=Ro.unstable_ImmediatePriority,p9=Ro.unstable_UserBlockingPriority,t_=Ro.unstable_NormalPriority,Mse=Ro.unstable_LowPriority,h9=Ro.unstable_IdlePriority,vx=null,Rs=null;function Fse(e){if(Rs&&typeof Rs.onCommitFiberRoot=="function")try{Rs.onCommitFiberRoot(vx,e,void 0,(e.current.flags&128)===128)}catch{}}var Ha=Math.clz32?Math.clz32:jse,Nse=Math.log,Bse=Math.LN2;function jse(e){return e>>>=0,e===0?32:31-(Nse(e)/Bse|0)|0}var J0=64,Q0=4194304;function gm(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function n_(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~i;s!==0?r=gm(s):(o&=a,o!==0&&(r=gm(o)))}else a=n&~i,a!==0?r=gm(a):o!==0&&(r=gm(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Ha(t),i=1<<n,r|=e[n],t&=~i;return r}function zse(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Use(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-Ha(o),s=1<<a,l=i[a];l===-1?(!(s&n)||s&r)&&(i[a]=zse(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}function GT(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function g9(){var e=J0;return J0<<=1,!(J0&4194240)&&(J0=64),e}function pE(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Kv(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ha(t),e[t]=n}function Kse(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Ha(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function AR(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ha(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var _n=0;function m9(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var v9,$R,y9,b9,_9,YT=!1,e1=[],Tu=null,Au=null,$u=null,av=new Map,sv=new Map,bu=[],Wse="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 TM(e,t){switch(e){case"focusin":case"focusout":Tu=null;break;case"dragenter":case"dragleave":Au=null;break;case"mouseover":case"mouseout":$u=null;break;case"pointerover":case"pointerout":av.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":sv.delete(t.pointerId)}}function $g(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Vv(t),t!==null&&$R(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Vse(e,t,n,r,i){switch(t){case"focusin":return Tu=$g(Tu,e,t,n,r,i),!0;case"dragenter":return Au=$g(Au,e,t,n,r,i),!0;case"mouseover":return $u=$g($u,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return av.set(o,$g(av.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,sv.set(o,$g(sv.get(o)||null,e,t,n,r,i)),!0}return!1}function x9(e){var t=Uc(e.target);if(t!==null){var n=bf(t);if(n!==null){if(t=n.tag,t===13){if(t=u9(n),t!==null){e.blockedOn=t,_9(e.priority,function(){y9(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function pb(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=XT(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);WT=r,n.target.dispatchEvent(r),WT=null}else return t=Vv(n),t!==null&&$R(t),e.blockedOn=n,!1;t.shift()}return!0}function AM(e,t,n){pb(e)&&n.delete(t)}function Hse(){YT=!1,Tu!==null&&pb(Tu)&&(Tu=null),Au!==null&&pb(Au)&&(Au=null),$u!==null&&pb($u)&&($u=null),av.forEach(AM),sv.forEach(AM)}function Rg(e,t){e.blockedOn===t&&(e.blockedOn=null,YT||(YT=!0,Ro.unstable_scheduleCallback(Ro.unstable_NormalPriority,Hse)))}function lv(e){function t(i){return Rg(i,e)}if(0<e1.length){Rg(e1[0],e);for(var n=1;n<e1.length;n++){var r=e1[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Tu!==null&&Rg(Tu,e),Au!==null&&Rg(Au,e),$u!==null&&Rg($u,e),av.forEach(t),sv.forEach(t),n=0;n<bu.length;n++)r=bu[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<bu.length&&(n=bu[0],n.blockedOn===null);)x9(n),n.blockedOn===null&&bu.shift()}var ap=Pl.ReactCurrentBatchConfig,r_=!0;function qse(e,t,n,r){var i=_n,o=ap.transition;ap.transition=null;try{_n=1,RR(e,t,n,r)}finally{_n=i,ap.transition=o}}function Gse(e,t,n,r){var i=_n,o=ap.transition;ap.transition=null;try{_n=4,RR(e,t,n,r)}finally{_n=i,ap.transition=o}}function RR(e,t,n,r){if(r_){var i=XT(e,t,n,r);if(i===null)SE(e,t,r,i_,n),TM(e,r);else if(Vse(i,e,t,n,r))r.stopPropagation();else if(TM(e,r),t&4&&-1<Wse.indexOf(e)){for(;i!==null;){var o=Vv(i);if(o!==null&&v9(o),o=XT(e,t,n,r),o===null&&SE(e,t,r,i_,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else SE(e,t,r,null,n)}}var i_=null;function XT(e,t,n,r){if(i_=null,e=kR(r),e=Uc(e),e!==null)if(t=bf(e),t===null)e=null;else if(n=t.tag,n===13){if(e=u9(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return i_=e,null}function w9(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Lse()){case TR:return 1;case p9:return 4;case t_:case Mse:return 16;case h9:return 536870912;default:return 16}default:return 16}}var xu=null,OR=null,hb=null;function S9(){if(hb)return hb;var e,t=OR,n=t.length,r,i="value"in xu?xu.value:xu.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return hb=i.slice(e,1<r?1-r:void 0)}function gb(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function t1(){return!0}function $M(){return!1}function Lo(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?t1:$M,this.isPropagationStopped=$M,this}return ur(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=t1)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=t1)},persist:function(){},isPersistent:t1}),t}var Jp={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},IR=Lo(Jp),Wv=ur({},Jp,{view:0,detail:0}),Yse=Lo(Wv),hE,gE,Og,yx=ur({},Wv,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:DR,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Og&&(Og&&e.type==="mousemove"?(hE=e.screenX-Og.screenX,gE=e.screenY-Og.screenY):gE=hE=0,Og=e),hE)},movementY:function(e){return"movementY"in e?e.movementY:gE}}),RM=Lo(yx),Xse=ur({},yx,{dataTransfer:0}),Zse=Lo(Xse),Jse=ur({},Wv,{relatedTarget:0}),mE=Lo(Jse),Qse=ur({},Jp,{animationName:0,elapsedTime:0,pseudoElement:0}),ele=Lo(Qse),tle=ur({},Jp,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),nle=Lo(tle),rle=ur({},Jp,{data:0}),OM=Lo(rle),ile={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ole={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"},ale={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sle(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ale[e])?!!t[e]:!1}function DR(){return sle}var lle=ur({},Wv,{key:function(e){if(e.key){var t=ile[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=gb(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ole[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:DR,charCode:function(e){return e.type==="keypress"?gb(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?gb(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ule=Lo(lle),cle=ur({},yx,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),IM=Lo(cle),fle=ur({},Wv,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:DR}),dle=Lo(fle),ple=ur({},Jp,{propertyName:0,elapsedTime:0,pseudoElement:0}),hle=Lo(ple),gle=ur({},yx,{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}),mle=Lo(gle),vle=[9,13,27,32],PR=kl&&"CompositionEvent"in window,Rm=null;kl&&"documentMode"in document&&(Rm=document.documentMode);var yle=kl&&"TextEvent"in window&&!Rm,C9=kl&&(!PR||Rm&&8<Rm&&11>=Rm),DM=String.fromCharCode(32),PM=!1;function E9(e,t){switch(e){case"keyup":return vle.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function k9(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ud=!1;function ble(e,t){switch(e){case"compositionend":return k9(t);case"keypress":return t.which!==32?null:(PM=!0,DM);case"textInput":return e=t.data,e===DM&&PM?null:e;default:return null}}function _le(e,t){if(Ud)return e==="compositionend"||!PR&&E9(e,t)?(e=S9(),hb=OR=xu=null,Ud=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return C9&&t.locale!=="ko"?null:t.data;default:return null}}var xle={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 LM(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!xle[e.type]:t==="textarea"}function T9(e,t,n,r){i9(r),t=o_(t,"onChange"),0<t.length&&(n=new IR("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Om=null,uv=null;function wle(e){N9(e,0)}function bx(e){var t=Vd(e);if(ZU(t))return e}function Sle(e,t){if(e==="change")return t}var A9=!1;if(kl){var vE;if(kl){var yE="oninput"in document;if(!yE){var MM=document.createElement("div");MM.setAttribute("oninput","return;"),yE=typeof MM.oninput=="function"}vE=yE}else vE=!1;A9=vE&&(!document.documentMode||9<document.documentMode)}function FM(){Om&&(Om.detachEvent("onpropertychange",$9),uv=Om=null)}function $9(e){if(e.propertyName==="value"&&bx(uv)){var t=[];T9(t,uv,e,kR(e)),l9(wle,t)}}function Cle(e,t,n){e==="focusin"?(FM(),Om=t,uv=n,Om.attachEvent("onpropertychange",$9)):e==="focusout"&&FM()}function Ele(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return bx(uv)}function kle(e,t){if(e==="click")return bx(t)}function Tle(e,t){if(e==="input"||e==="change")return bx(t)}function Ale(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Za=typeof Object.is=="function"?Object.is:Ale;function cv(e,t){if(Za(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)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++){var i=n[r];if(!IT.call(t,i)||!Za(e[i],t[i]))return!1}return!0}function NM(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function BM(e,t){var n=NM(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=NM(n)}}function R9(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?R9(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function O9(){for(var e=window,t=Jb();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Jb(e.document)}return t}function LR(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function $le(e){var t=O9(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&R9(n.ownerDocument.documentElement,n)){if(r!==null&&LR(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=BM(n,o);var a=BM(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Rle=kl&&"documentMode"in document&&11>=document.documentMode,Kd=null,ZT=null,Im=null,JT=!1;function jM(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;JT||Kd==null||Kd!==Jb(r)||(r=Kd,"selectionStart"in r&&LR(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Im&&cv(Im,r)||(Im=r,r=o_(ZT,"onSelect"),0<r.length&&(t=new IR("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Kd)))}function n1(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Wd={animationend:n1("Animation","AnimationEnd"),animationiteration:n1("Animation","AnimationIteration"),animationstart:n1("Animation","AnimationStart"),transitionend:n1("Transition","TransitionEnd")},bE={},I9={};kl&&(I9=document.createElement("div").style,"AnimationEvent"in window||(delete Wd.animationend.animation,delete Wd.animationiteration.animation,delete Wd.animationstart.animation),"TransitionEvent"in window||delete Wd.transitionend.transition);function _x(e){if(bE[e])return bE[e];if(!Wd[e])return e;var t=Wd[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in I9)return bE[e]=t[n];return e}var D9=_x("animationend"),P9=_x("animationiteration"),L9=_x("animationstart"),M9=_x("transitionend"),F9=new Map,zM="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Vu(e,t){F9.set(e,t),yf(t,[e])}for(var _E=0;_E<zM.length;_E++){var xE=zM[_E],Ole=xE.toLowerCase(),Ile=xE[0].toUpperCase()+xE.slice(1);Vu(Ole,"on"+Ile)}Vu(D9,"onAnimationEnd");Vu(P9,"onAnimationIteration");Vu(L9,"onAnimationStart");Vu("dblclick","onDoubleClick");Vu("focusin","onFocus");Vu("focusout","onBlur");Vu(M9,"onTransitionEnd");yp("onMouseEnter",["mouseout","mouseover"]);yp("onMouseLeave",["mouseout","mouseover"]);yp("onPointerEnter",["pointerout","pointerover"]);yp("onPointerLeave",["pointerout","pointerover"]);yf("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));yf("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));yf("onBeforeInput",["compositionend","keypress","textInput","paste"]);yf("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));yf("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));yf("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mm="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Dle=new Set("cancel close invalid load scroll toggle".split(" ").concat(mm));function UM(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Ose(r,t,void 0,e),e.currentTarget=null}function N9(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;UM(i,s,u),o=l}else for(a=0;a<r.length;a++){if(s=r[a],l=s.instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;UM(i,s,u),o=l}}}if(e_)throw e=qT,e_=!1,qT=null,e}function zn(e,t){var n=t[rA];n===void 0&&(n=t[rA]=new Set);var r=e+"__bubble";n.has(r)||(B9(t,e,2,!1),n.add(r))}function wE(e,t,n){var r=0;t&&(r|=4),B9(n,e,r,t)}var r1="_reactListening"+Math.random().toString(36).slice(2);function fv(e){if(!e[r1]){e[r1]=!0,HU.forEach(function(n){n!=="selectionchange"&&(Dle.has(n)||wE(n,!1,e),wE(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[r1]||(t[r1]=!0,wE("selectionchange",!1,t))}}function B9(e,t,n,r){switch(w9(t)){case 1:var i=qse;break;case 4:i=Gse;break;default:i=RR}n=i.bind(null,t,n,e),i=void 0,!HT||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function SE(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;a=a.return}for(;s!==null;){if(a=Uc(s),a===null)return;if(l=a.tag,l===5||l===6){r=o=a;continue e}s=s.parentNode}}r=r.return}l9(function(){var u=o,f=kR(n),d=[];e:{var p=F9.get(e);if(p!==void 0){var m=IR,v=e;switch(e){case"keypress":if(gb(n)===0)break e;case"keydown":case"keyup":m=ule;break;case"focusin":v="focus",m=mE;break;case"focusout":v="blur",m=mE;break;case"beforeblur":case"afterblur":m=mE;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=RM;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=Zse;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=dle;break;case D9:case P9:case L9:m=ele;break;case M9:m=hle;break;case"scroll":m=Yse;break;case"wheel":m=mle;break;case"copy":case"cut":case"paste":m=nle;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=IM}var y=(t&4)!==0,w=!y&&e==="scroll",b=y?p!==null?p+"Capture":null:p;y=[];for(var x=u,S;x!==null;){S=x;var k=S.stateNode;if(S.tag===5&&k!==null&&(S=k,b!==null&&(k=ov(x,b),k!=null&&y.push(dv(x,k,S)))),w)break;x=x.return}0<y.length&&(p=new m(p,v,null,n,f),d.push({event:p,listeners:y}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",p&&n!==WT&&(v=n.relatedTarget||n.fromElement)&&(Uc(v)||v[Tl]))break e;if((m||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,m?(v=n.relatedTarget||n.toElement,m=u,v=v?Uc(v):null,v!==null&&(w=bf(v),v!==w||v.tag!==5&&v.tag!==6)&&(v=null)):(m=null,v=u),m!==v)){if(y=RM,k="onMouseLeave",b="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(y=IM,k="onPointerLeave",b="onPointerEnter",x="pointer"),w=m==null?p:Vd(m),S=v==null?p:Vd(v),p=new y(k,x+"leave",m,n,f),p.target=w,p.relatedTarget=S,k=null,Uc(f)===u&&(y=new y(b,x+"enter",v,n,f),y.target=S,y.relatedTarget=w,k=y),w=k,m&&v)t:{for(y=m,b=v,x=0,S=y;S;S=hd(S))x++;for(S=0,k=b;k;k=hd(k))S++;for(;0<x-S;)y=hd(y),x--;for(;0<S-x;)b=hd(b),S--;for(;x--;){if(y===b||b!==null&&y===b.alternate)break t;y=hd(y),b=hd(b)}y=null}else y=null;m!==null&&KM(d,p,m,y,!1),v!==null&&w!==null&&KM(d,w,v,y,!0)}}e:{if(p=u?Vd(u):window,m=p.nodeName&&p.nodeName.toLowerCase(),m==="select"||m==="input"&&p.type==="file")var A=Sle;else if(LM(p))if(A9)A=Tle;else{A=Ele;var $=Cle}else(m=p.nodeName)&&m.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(A=kle);if(A&&(A=A(e,u))){T9(d,A,n,f);break e}$&&$(e,p,u),e==="focusout"&&($=p._wrapperState)&&$.controlled&&p.type==="number"&&BT(p,"number",p.value)}switch($=u?Vd(u):window,e){case"focusin":(LM($)||$.contentEditable==="true")&&(Kd=$,ZT=u,Im=null);break;case"focusout":Im=ZT=Kd=null;break;case"mousedown":JT=!0;break;case"contextmenu":case"mouseup":case"dragend":JT=!1,jM(d,n,f);break;case"selectionchange":if(Rle)break;case"keydown":case"keyup":jM(d,n,f)}var I;if(PR)e:{switch(e){case"compositionstart":var z="onCompositionStart";break e;case"compositionend":z="onCompositionEnd";break e;case"compositionupdate":z="onCompositionUpdate";break e}z=void 0}else Ud?E9(e,n)&&(z="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(z="onCompositionStart");z&&(C9&&n.locale!=="ko"&&(Ud||z!=="onCompositionStart"?z==="onCompositionEnd"&&Ud&&(I=S9()):(xu=f,OR="value"in xu?xu.value:xu.textContent,Ud=!0)),$=o_(u,z),0<$.length&&(z=new OM(z,e,null,n,f),d.push({event:z,listeners:$}),I?z.data=I:(I=k9(n),I!==null&&(z.data=I)))),(I=yle?ble(e,n):_le(e,n))&&(u=o_(u,"onBeforeInput"),0<u.length&&(f=new OM("onBeforeInput","beforeinput",null,n,f),d.push({event:f,listeners:u}),f.data=I))}N9(d,t)})}function dv(e,t,n){return{instance:e,listener:t,currentTarget:n}}function o_(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=ov(e,n),o!=null&&r.unshift(dv(e,o,i)),o=ov(e,t),o!=null&&r.push(dv(e,o,i))),e=e.return}return r}function hd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function KM(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&u!==null&&(s=u,i?(l=ov(n,o),l!=null&&a.unshift(dv(n,l,s))):i||(l=ov(n,o),l!=null&&a.push(dv(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var Ple=/\r\n?/g,Lle=/\u0000|\uFFFD/g;function WM(e){return(typeof e=="string"?e:""+e).replace(Ple,`
|
|
241
|
-
`).replace(Lle,"")}function i1(e,t,n){if(t=WM(t),WM(e)!==t&&n)throw Error(Ze(425))}function a_(){}var QT=null,eA=null;function tA(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var nA=typeof setTimeout=="function"?setTimeout:void 0,Mle=typeof clearTimeout=="function"?clearTimeout:void 0,VM=typeof Promise=="function"?Promise:void 0,Fle=typeof queueMicrotask=="function"?queueMicrotask:typeof VM<"u"?function(e){return VM.resolve(null).then(e).catch(Nle)}:nA;function Nle(e){setTimeout(function(){throw e})}function CE(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),lv(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);lv(t)}function Ru(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function HM(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Qp=Math.random().toString(36).slice(2),Cs="__reactFiber$"+Qp,pv="__reactProps$"+Qp,Tl="__reactContainer$"+Qp,rA="__reactEvents$"+Qp,Ble="__reactListeners$"+Qp,jle="__reactHandles$"+Qp;function Uc(e){var t=e[Cs];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Tl]||n[Cs]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=HM(e);e!==null;){if(n=e[Cs])return n;e=HM(e)}return t}e=n,n=e.parentNode}return null}function Vv(e){return e=e[Cs]||e[Tl],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Vd(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Ze(33))}function xx(e){return e[pv]||null}var iA=[],Hd=-1;function Hu(e){return{current:e}}function Hn(e){0>Hd||(e.current=iA[Hd],iA[Hd]=null,Hd--)}function Mn(e,t){Hd++,iA[Hd]=e.current,e.current=t}var Fu={},vi=Hu(Fu),Hi=Hu(!1),tf=Fu;function bp(e,t){var n=e.type.contextTypes;if(!n)return Fu;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function qi(e){return e=e.childContextTypes,e!=null}function s_(){Hn(Hi),Hn(vi)}function qM(e,t,n){if(vi.current!==Fu)throw Error(Ze(168));Mn(vi,t),Mn(Hi,n)}function j9(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Ze(108,Cse(e)||"Unknown",i));return ur({},n,r)}function l_(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Fu,tf=vi.current,Mn(vi,e),Mn(Hi,Hi.current),!0}function GM(e,t,n){var r=e.stateNode;if(!r)throw Error(Ze(169));n?(e=j9(e,t,tf),r.__reactInternalMemoizedMergedChildContext=e,Hn(Hi),Hn(vi),Mn(vi,e)):Hn(Hi),Mn(Hi,n)}var vl=null,wx=!1,EE=!1;function z9(e){vl===null?vl=[e]:vl.push(e)}function zle(e){wx=!0,z9(e)}function qu(){if(!EE&&vl!==null){EE=!0;var e=0,t=_n;try{var n=vl;for(_n=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}vl=null,wx=!1}catch(i){throw vl!==null&&(vl=vl.slice(e+1)),d9(TR,qu),i}finally{_n=t,EE=!1}}return null}var qd=[],Gd=0,u_=null,c_=0,Qo=[],ea=0,nf=null,yl=1,bl="";function Tc(e,t){qd[Gd++]=c_,qd[Gd++]=u_,u_=e,c_=t}function U9(e,t,n){Qo[ea++]=yl,Qo[ea++]=bl,Qo[ea++]=nf,nf=e;var r=yl;e=bl;var i=32-Ha(r)-1;r&=~(1<<i),n+=1;var o=32-Ha(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,yl=1<<32-Ha(t)+i|n<<i|r,bl=o+e}else yl=1<<o|n<<i|r,bl=e}function MR(e){e.return!==null&&(Tc(e,1),U9(e,1,0))}function FR(e){for(;e===u_;)u_=qd[--Gd],qd[Gd]=null,c_=qd[--Gd],qd[Gd]=null;for(;e===nf;)nf=Qo[--ea],Qo[ea]=null,bl=Qo[--ea],Qo[ea]=null,yl=Qo[--ea],Qo[ea]=null}var ko=null,Co=null,Xn=!1,Ka=null;function K9(e,t){var n=ra(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function YM(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ko=e,Co=Ru(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ko=e,Co=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=nf!==null?{id:yl,overflow:bl}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ra(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ko=e,Co=null,!0):!1;default:return!1}}function oA(e){return(e.mode&1)!==0&&(e.flags&128)===0}function aA(e){if(Xn){var t=Co;if(t){var n=t;if(!YM(e,t)){if(oA(e))throw Error(Ze(418));t=Ru(n.nextSibling);var r=ko;t&&YM(e,t)?K9(r,n):(e.flags=e.flags&-4097|2,Xn=!1,ko=e)}}else{if(oA(e))throw Error(Ze(418));e.flags=e.flags&-4097|2,Xn=!1,ko=e}}}function XM(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ko=e}function o1(e){if(e!==ko)return!1;if(!Xn)return XM(e),Xn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!tA(e.type,e.memoizedProps)),t&&(t=Co)){if(oA(e))throw W9(),Error(Ze(418));for(;t;)K9(e,t),t=Ru(t.nextSibling)}if(XM(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Ze(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Co=Ru(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Co=null}}else Co=ko?Ru(e.stateNode.nextSibling):null;return!0}function W9(){for(var e=Co;e;)e=Ru(e.nextSibling)}function _p(){Co=ko=null,Xn=!1}function NR(e){Ka===null?Ka=[e]:Ka.push(e)}var Ule=Pl.ReactCurrentBatchConfig;function Ba(e,t){if(e&&e.defaultProps){t=ur({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var f_=Hu(null),d_=null,Yd=null,BR=null;function jR(){BR=Yd=d_=null}function zR(e){var t=f_.current;Hn(f_),e._currentValue=t}function sA(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function sp(e,t){d_=e,BR=Yd=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Vi=!0),e.firstContext=null)}function ca(e){var t=e._currentValue;if(BR!==e)if(e={context:e,memoizedValue:t,next:null},Yd===null){if(d_===null)throw Error(Ze(308));Yd=e,d_.dependencies={lanes:0,firstContext:e}}else Yd=Yd.next=e;return t}var Kc=null;function UR(e){Kc===null?Kc=[e]:Kc.push(e)}function V9(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,UR(t)):(n.next=i.next,i.next=n),t.interleaved=n,Al(e,r)}function Al(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var hu=!1;function KR(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function H9(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 xl(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ou(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,an&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Al(e,n)}return i=r.interleaved,i===null?(t.next=t,UR(r)):(t.next=i.next,i.next=t),r.interleaved=t,Al(e,n)}function mb(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,AR(e,n)}}function ZM(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function p_(e,t,n,r){var i=e.updateQueue;hu=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?o=u:a.next=u,a=l;var f=e.alternate;f!==null&&(f=f.updateQueue,s=f.lastBaseUpdate,s!==a&&(s===null?f.firstBaseUpdate=u:s.next=u,f.lastBaseUpdate=l))}if(o!==null){var d=i.baseState;a=0,f=u=l=null,s=o;do{var p=s.lane,m=s.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:m,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,y=s;switch(p=t,m=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){d=v.call(m,d,p);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,p=typeof v=="function"?v.call(m,d,p):v,p==null)break e;d=ur({},d,p);break e;case 2:hu=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[s]:p.push(s))}else m={eventTime:m,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=m,l=d):f=f.next=m,a|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);if(f===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);of|=a,e.lanes=a,e.memoizedState=d}}function JM(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(Ze(191,i));i.call(r)}}}var q9=new VU.Component().refs;function lA(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ur({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Sx={isMounted:function(e){return(e=e._reactInternals)?bf(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ii(),i=Du(e),o=xl(r,i);o.payload=t,n!=null&&(o.callback=n),t=Ou(e,o,i),t!==null&&(qa(t,e,i,r),mb(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ii(),i=Du(e),o=xl(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Ou(e,o,i),t!==null&&(qa(t,e,i,r),mb(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ii(),r=Du(e),i=xl(n,r);i.tag=2,t!=null&&(i.callback=t),t=Ou(e,i,r),t!==null&&(qa(t,e,r,n),mb(t,e,r))}};function QM(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!cv(n,r)||!cv(i,o):!0}function G9(e,t,n){var r=!1,i=Fu,o=t.contextType;return typeof o=="object"&&o!==null?o=ca(o):(i=qi(t)?tf:vi.current,r=t.contextTypes,o=(r=r!=null)?bp(e,i):Fu),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Sx,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function eF(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Sx.enqueueReplaceState(t,t.state,null)}function uA(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=q9,KR(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=ca(o):(o=qi(t)?tf:vi.current,i.context=bp(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(lA(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Sx.enqueueReplaceState(i,i.state,null),p_(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Ig(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(Ze(309));var r=n.stateNode}if(!r)throw Error(Ze(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(a){var s=i.refs;s===q9&&(s=i.refs={}),a===null?delete s[o]:s[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(Ze(284));if(!n._owner)throw Error(Ze(290,e))}return e}function a1(e,t){throw e=Object.prototype.toString.call(t),Error(Ze(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function tF(e){var t=e._init;return t(e._payload)}function Y9(e){function t(b,x){if(e){var S=b.deletions;S===null?(b.deletions=[x],b.flags|=16):S.push(x)}}function n(b,x){if(!e)return null;for(;x!==null;)t(b,x),x=x.sibling;return null}function r(b,x){for(b=new Map;x!==null;)x.key!==null?b.set(x.key,x):b.set(x.index,x),x=x.sibling;return b}function i(b,x){return b=Pu(b,x),b.index=0,b.sibling=null,b}function o(b,x,S){return b.index=S,e?(S=b.alternate,S!==null?(S=S.index,S<x?(b.flags|=2,x):S):(b.flags|=2,x)):(b.flags|=1048576,x)}function a(b){return e&&b.alternate===null&&(b.flags|=2),b}function s(b,x,S,k){return x===null||x.tag!==6?(x=IE(S,b.mode,k),x.return=b,x):(x=i(x,S),x.return=b,x)}function l(b,x,S,k){var A=S.type;return A===zd?f(b,x,S.props.children,k,S.key):x!==null&&(x.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===pu&&tF(A)===x.type)?(k=i(x,S.props),k.ref=Ig(b,x,S),k.return=b,k):(k=wb(S.type,S.key,S.props,null,b.mode,k),k.ref=Ig(b,x,S),k.return=b,k)}function u(b,x,S,k){return x===null||x.tag!==4||x.stateNode.containerInfo!==S.containerInfo||x.stateNode.implementation!==S.implementation?(x=DE(S,b.mode,k),x.return=b,x):(x=i(x,S.children||[]),x.return=b,x)}function f(b,x,S,k,A){return x===null||x.tag!==7?(x=Yc(S,b.mode,k,A),x.return=b,x):(x=i(x,S),x.return=b,x)}function d(b,x,S){if(typeof x=="string"&&x!==""||typeof x=="number")return x=IE(""+x,b.mode,S),x.return=b,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Y0:return S=wb(x.type,x.key,x.props,null,b.mode,S),S.ref=Ig(b,null,x),S.return=b,S;case jd:return x=DE(x,b.mode,S),x.return=b,x;case pu:var k=x._init;return d(b,k(x._payload),S)}if(hm(x)||Tg(x))return x=Yc(x,b.mode,S,null),x.return=b,x;a1(b,x)}return null}function p(b,x,S,k){var A=x!==null?x.key:null;if(typeof S=="string"&&S!==""||typeof S=="number")return A!==null?null:s(b,x,""+S,k);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Y0:return S.key===A?l(b,x,S,k):null;case jd:return S.key===A?u(b,x,S,k):null;case pu:return A=S._init,p(b,x,A(S._payload),k)}if(hm(S)||Tg(S))return A!==null?null:f(b,x,S,k,null);a1(b,S)}return null}function m(b,x,S,k,A){if(typeof k=="string"&&k!==""||typeof k=="number")return b=b.get(S)||null,s(x,b,""+k,A);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case Y0:return b=b.get(k.key===null?S:k.key)||null,l(x,b,k,A);case jd:return b=b.get(k.key===null?S:k.key)||null,u(x,b,k,A);case pu:var $=k._init;return m(b,x,S,$(k._payload),A)}if(hm(k)||Tg(k))return b=b.get(S)||null,f(x,b,k,A,null);a1(x,k)}return null}function v(b,x,S,k){for(var A=null,$=null,I=x,z=x=0,K=null;I!==null&&z<S.length;z++){I.index>z?(K=I,I=null):K=I.sibling;var D=p(b,I,S[z],k);if(D===null){I===null&&(I=K);break}e&&I&&D.alternate===null&&t(b,I),x=o(D,x,z),$===null?A=D:$.sibling=D,$=D,I=K}if(z===S.length)return n(b,I),Xn&&Tc(b,z),A;if(I===null){for(;z<S.length;z++)I=d(b,S[z],k),I!==null&&(x=o(I,x,z),$===null?A=I:$.sibling=I,$=I);return Xn&&Tc(b,z),A}for(I=r(b,I);z<S.length;z++)K=m(I,b,z,S[z],k),K!==null&&(e&&K.alternate!==null&&I.delete(K.key===null?z:K.key),x=o(K,x,z),$===null?A=K:$.sibling=K,$=K);return e&&I.forEach(function(W){return t(b,W)}),Xn&&Tc(b,z),A}function y(b,x,S,k){var A=Tg(S);if(typeof A!="function")throw Error(Ze(150));if(S=A.call(S),S==null)throw Error(Ze(151));for(var $=A=null,I=x,z=x=0,K=null,D=S.next();I!==null&&!D.done;z++,D=S.next()){I.index>z?(K=I,I=null):K=I.sibling;var W=p(b,I,D.value,k);if(W===null){I===null&&(I=K);break}e&&I&&W.alternate===null&&t(b,I),x=o(W,x,z),$===null?A=W:$.sibling=W,$=W,I=K}if(D.done)return n(b,I),Xn&&Tc(b,z),A;if(I===null){for(;!D.done;z++,D=S.next())D=d(b,D.value,k),D!==null&&(x=o(D,x,z),$===null?A=D:$.sibling=D,$=D);return Xn&&Tc(b,z),A}for(I=r(b,I);!D.done;z++,D=S.next())D=m(I,b,z,D.value,k),D!==null&&(e&&D.alternate!==null&&I.delete(D.key===null?z:D.key),x=o(D,x,z),$===null?A=D:$.sibling=D,$=D);return e&&I.forEach(function(ie){return t(b,ie)}),Xn&&Tc(b,z),A}function w(b,x,S,k){if(typeof S=="object"&&S!==null&&S.type===zd&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Y0:e:{for(var A=S.key,$=x;$!==null;){if($.key===A){if(A=S.type,A===zd){if($.tag===7){n(b,$.sibling),x=i($,S.props.children),x.return=b,b=x;break e}}else if($.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===pu&&tF(A)===$.type){n(b,$.sibling),x=i($,S.props),x.ref=Ig(b,$,S),x.return=b,b=x;break e}n(b,$);break}else t(b,$);$=$.sibling}S.type===zd?(x=Yc(S.props.children,b.mode,k,S.key),x.return=b,b=x):(k=wb(S.type,S.key,S.props,null,b.mode,k),k.ref=Ig(b,x,S),k.return=b,b=k)}return a(b);case jd:e:{for($=S.key;x!==null;){if(x.key===$)if(x.tag===4&&x.stateNode.containerInfo===S.containerInfo&&x.stateNode.implementation===S.implementation){n(b,x.sibling),x=i(x,S.children||[]),x.return=b,b=x;break e}else{n(b,x);break}else t(b,x);x=x.sibling}x=DE(S,b.mode,k),x.return=b,b=x}return a(b);case pu:return $=S._init,w(b,x,$(S._payload),k)}if(hm(S))return v(b,x,S,k);if(Tg(S))return y(b,x,S,k);a1(b,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,x!==null&&x.tag===6?(n(b,x.sibling),x=i(x,S),x.return=b,b=x):(n(b,x),x=IE(S,b.mode,k),x.return=b,b=x),a(b)):n(b,x)}return w}var xp=Y9(!0),X9=Y9(!1),Hv={},Os=Hu(Hv),hv=Hu(Hv),gv=Hu(Hv);function Wc(e){if(e===Hv)throw Error(Ze(174));return e}function WR(e,t){switch(Mn(gv,t),Mn(hv,e),Mn(Os,Hv),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:zT(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=zT(t,e)}Hn(Os),Mn(Os,t)}function wp(){Hn(Os),Hn(hv),Hn(gv)}function Z9(e){Wc(gv.current);var t=Wc(Os.current),n=zT(t,e.type);t!==n&&(Mn(hv,e),Mn(Os,n))}function VR(e){hv.current===e&&(Hn(Os),Hn(hv))}var sr=Hu(0);function h_(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var kE=[];function HR(){for(var e=0;e<kE.length;e++)kE[e]._workInProgressVersionPrimary=null;kE.length=0}var vb=Pl.ReactCurrentDispatcher,TE=Pl.ReactCurrentBatchConfig,rf=0,lr=null,Lr=null,Kr=null,g_=!1,Dm=!1,mv=0,Kle=0;function ci(){throw Error(Ze(321))}function qR(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Za(e[n],t[n]))return!1;return!0}function GR(e,t,n,r,i,o){if(rf=o,lr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,vb.current=e===null||e.memoizedState===null?qle:Gle,e=n(r,i),Dm){o=0;do{if(Dm=!1,mv=0,25<=o)throw Error(Ze(301));o+=1,Kr=Lr=null,t.updateQueue=null,vb.current=Yle,e=n(r,i)}while(Dm)}if(vb.current=m_,t=Lr!==null&&Lr.next!==null,rf=0,Kr=Lr=lr=null,g_=!1,t)throw Error(Ze(300));return e}function YR(){var e=mv!==0;return mv=0,e}function ys(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Kr===null?lr.memoizedState=Kr=e:Kr=Kr.next=e,Kr}function fa(){if(Lr===null){var e=lr.alternate;e=e!==null?e.memoizedState:null}else e=Lr.next;var t=Kr===null?lr.memoizedState:Kr.next;if(t!==null)Kr=t,Lr=e;else{if(e===null)throw Error(Ze(310));Lr=e,e={memoizedState:Lr.memoizedState,baseState:Lr.baseState,baseQueue:Lr.baseQueue,queue:Lr.queue,next:null},Kr===null?lr.memoizedState=Kr=e:Kr=Kr.next=e}return Kr}function vv(e,t){return typeof t=="function"?t(e):t}function AE(e){var t=fa(),n=t.queue;if(n===null)throw Error(Ze(311));n.lastRenderedReducer=e;var r=Lr,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var s=a=null,l=null,u=o;do{var f=u.lane;if((rf&f)===f)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(s=l=d,a=r):l=l.next=d,lr.lanes|=f,of|=f}u=u.next}while(u!==null&&u!==o);l===null?a=r:l.next=s,Za(r,t.memoizedState)||(Vi=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,lr.lanes|=o,of|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function $E(e){var t=fa(),n=t.queue;if(n===null)throw Error(Ze(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Za(o,t.memoizedState)||(Vi=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function J9(){}function Q9(e,t){var n=lr,r=fa(),i=t(),o=!Za(r.memoizedState,i);if(o&&(r.memoizedState=i,Vi=!0),r=r.queue,XR(n8.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Kr!==null&&Kr.memoizedState.tag&1){if(n.flags|=2048,yv(9,t8.bind(null,n,r,i,t),void 0,null),Wr===null)throw Error(Ze(349));rf&30||e8(n,t,i)}return i}function e8(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=lr.updateQueue,t===null?(t={lastEffect:null,stores:null},lr.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function t8(e,t,n,r){t.value=n,t.getSnapshot=r,r8(t)&&i8(e)}function n8(e,t,n){return n(function(){r8(t)&&i8(e)})}function r8(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Za(e,n)}catch{return!0}}function i8(e){var t=Al(e,1);t!==null&&qa(t,e,1,-1)}function nF(e){var t=ys();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:vv,lastRenderedState:e},t.queue=e,e=e.dispatch=Hle.bind(null,lr,e),[t.memoizedState,e]}function yv(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=lr.updateQueue,t===null?(t={lastEffect:null,stores:null},lr.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function o8(){return fa().memoizedState}function yb(e,t,n,r){var i=ys();lr.flags|=e,i.memoizedState=yv(1|t,n,void 0,r===void 0?null:r)}function Cx(e,t,n,r){var i=fa();r=r===void 0?null:r;var o=void 0;if(Lr!==null){var a=Lr.memoizedState;if(o=a.destroy,r!==null&&qR(r,a.deps)){i.memoizedState=yv(t,n,o,r);return}}lr.flags|=e,i.memoizedState=yv(1|t,n,o,r)}function rF(e,t){return yb(8390656,8,e,t)}function XR(e,t){return Cx(2048,8,e,t)}function a8(e,t){return Cx(4,2,e,t)}function s8(e,t){return Cx(4,4,e,t)}function l8(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function u8(e,t,n){return n=n!=null?n.concat([e]):null,Cx(4,4,l8.bind(null,t,e),n)}function ZR(){}function c8(e,t){var n=fa();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&qR(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function f8(e,t){var n=fa();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&qR(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function d8(e,t,n){return rf&21?(Za(n,t)||(n=g9(),lr.lanes|=n,of|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Vi=!0),e.memoizedState=n)}function Wle(e,t){var n=_n;_n=n!==0&&4>n?n:4,e(!0);var r=TE.transition;TE.transition={};try{e(!1),t()}finally{_n=n,TE.transition=r}}function p8(){return fa().memoizedState}function Vle(e,t,n){var r=Du(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},h8(e))g8(t,n);else if(n=V9(e,t,n,r),n!==null){var i=Ii();qa(n,e,r,i),m8(n,t,r)}}function Hle(e,t,n){var r=Du(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(h8(e))g8(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Za(s,a)){var l=t.interleaved;l===null?(i.next=i,UR(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=V9(e,t,i,r),n!==null&&(i=Ii(),qa(n,e,r,i),m8(n,t,r))}}function h8(e){var t=e.alternate;return e===lr||t!==null&&t===lr}function g8(e,t){Dm=g_=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function m8(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,AR(e,n)}}var m_={readContext:ca,useCallback:ci,useContext:ci,useEffect:ci,useImperativeHandle:ci,useInsertionEffect:ci,useLayoutEffect:ci,useMemo:ci,useReducer:ci,useRef:ci,useState:ci,useDebugValue:ci,useDeferredValue:ci,useTransition:ci,useMutableSource:ci,useSyncExternalStore:ci,useId:ci,unstable_isNewReconciler:!1},qle={readContext:ca,useCallback:function(e,t){return ys().memoizedState=[e,t===void 0?null:t],e},useContext:ca,useEffect:rF,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,yb(4194308,4,l8.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yb(4194308,4,e,t)},useInsertionEffect:function(e,t){return yb(4,2,e,t)},useMemo:function(e,t){var n=ys();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ys();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Vle.bind(null,lr,e),[r.memoizedState,e]},useRef:function(e){var t=ys();return e={current:e},t.memoizedState=e},useState:nF,useDebugValue:ZR,useDeferredValue:function(e){return ys().memoizedState=e},useTransition:function(){var e=nF(!1),t=e[0];return e=Wle.bind(null,e[1]),ys().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=lr,i=ys();if(Xn){if(n===void 0)throw Error(Ze(407));n=n()}else{if(n=t(),Wr===null)throw Error(Ze(349));rf&30||e8(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,rF(n8.bind(null,r,o,e),[e]),r.flags|=2048,yv(9,t8.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=ys(),t=Wr.identifierPrefix;if(Xn){var n=bl,r=yl;n=(r&~(1<<32-Ha(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=mv++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Kle++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Gle={readContext:ca,useCallback:c8,useContext:ca,useEffect:XR,useImperativeHandle:u8,useInsertionEffect:a8,useLayoutEffect:s8,useMemo:f8,useReducer:AE,useRef:o8,useState:function(){return AE(vv)},useDebugValue:ZR,useDeferredValue:function(e){var t=fa();return d8(t,Lr.memoizedState,e)},useTransition:function(){var e=AE(vv)[0],t=fa().memoizedState;return[e,t]},useMutableSource:J9,useSyncExternalStore:Q9,useId:p8,unstable_isNewReconciler:!1},Yle={readContext:ca,useCallback:c8,useContext:ca,useEffect:XR,useImperativeHandle:u8,useInsertionEffect:a8,useLayoutEffect:s8,useMemo:f8,useReducer:$E,useRef:o8,useState:function(){return $E(vv)},useDebugValue:ZR,useDeferredValue:function(e){var t=fa();return Lr===null?t.memoizedState=e:d8(t,Lr.memoizedState,e)},useTransition:function(){var e=$E(vv)[0],t=fa().memoizedState;return[e,t]},useMutableSource:J9,useSyncExternalStore:Q9,useId:p8,unstable_isNewReconciler:!1};function Sp(e,t){try{var n="",r=t;do n+=Sse(r),r=r.return;while(r);var i=n}catch(o){i=`
|
|
242
|
-
Error generating stack: `+o.message+`
|
|
243
|
-
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function RE(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function cA(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Xle=typeof WeakMap=="function"?WeakMap:Map;function v8(e,t,n){n=xl(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){y_||(y_=!0,_A=r),cA(e,t)},n}function y8(e,t,n){n=xl(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){cA(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){cA(e,t),typeof r!="function"&&(Iu===null?Iu=new Set([this]):Iu.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function iF(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Xle;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=cue.bind(null,e,t,n),t.then(e,e))}function oF(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function aF(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=xl(-1,1),t.tag=2,Ou(n,t,1))),n.lanes|=1),e)}var Zle=Pl.ReactCurrentOwner,Vi=!1;function Ai(e,t,n,r){t.child=e===null?X9(t,null,n,r):xp(t,e.child,n,r)}function sF(e,t,n,r,i){n=n.render;var o=t.ref;return sp(t,i),r=GR(e,t,n,r,o,i),n=YR(),e!==null&&!Vi?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$l(e,t,i)):(Xn&&n&&MR(t),t.flags|=1,Ai(e,t,r,i),t.child)}function lF(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!o2(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,b8(e,t,o,r,i)):(e=wb(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:cv,n(a,r)&&e.ref===t.ref)return $l(e,t,i)}return t.flags|=1,e=Pu(o,r),e.ref=t.ref,e.return=t,t.child=e}function b8(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(cv(o,r)&&e.ref===t.ref)if(Vi=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Vi=!0);else return t.lanes=e.lanes,$l(e,t,i)}return fA(e,t,n,r,i)}function _8(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Mn(Zd,bo),bo|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Mn(Zd,bo),bo|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Mn(Zd,bo),bo|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Mn(Zd,bo),bo|=r;return Ai(e,t,i,n),t.child}function x8(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function fA(e,t,n,r,i){var o=qi(n)?tf:vi.current;return o=bp(t,o),sp(t,i),n=GR(e,t,n,r,o,i),r=YR(),e!==null&&!Vi?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,$l(e,t,i)):(Xn&&r&&MR(t),t.flags|=1,Ai(e,t,n,i),t.child)}function uF(e,t,n,r,i){if(qi(n)){var o=!0;l_(t)}else o=!1;if(sp(t,i),t.stateNode===null)bb(e,t),G9(t,n,r),uA(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=ca(u):(u=qi(n)?tf:vi.current,u=bp(t,u));var f=n.getDerivedStateFromProps,d=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&eF(t,a,r,u),hu=!1;var p=t.memoizedState;a.state=p,p_(t,r,a,i),l=t.memoizedState,s!==r||p!==l||Hi.current||hu?(typeof f=="function"&&(lA(t,n,f,r),l=t.memoizedState),(s=hu||QM(t,n,s,r,p,l,u))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,H9(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Ba(t.type,s),a.props=u,d=t.pendingProps,p=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=ca(l):(l=qi(n)?tf:vi.current,l=bp(t,l));var m=n.getDerivedStateFromProps;(f=typeof m=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||p!==l)&&eF(t,a,r,l),hu=!1,p=t.memoizedState,a.state=p,p_(t,r,a,i);var v=t.memoizedState;s!==d||p!==v||Hi.current||hu?(typeof m=="function"&&(lA(t,n,m,r),v=t.memoizedState),(u=hu||QM(t,n,u,r,p,v,l)||!1)?(f||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,v,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,v,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),a.props=r,a.state=v,a.context=l,r=u):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return dA(e,t,n,r,o,i)}function dA(e,t,n,r,i,o){x8(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&GM(t,n,!1),$l(e,t,o);r=t.stateNode,Zle.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=xp(t,e.child,null,o),t.child=xp(t,null,s,o)):Ai(e,t,s,o),t.memoizedState=r.state,i&&GM(t,n,!0),t.child}function w8(e){var t=e.stateNode;t.pendingContext?qM(e,t.pendingContext,t.pendingContext!==t.context):t.context&&qM(e,t.context,!1),WR(e,t.containerInfo)}function cF(e,t,n,r,i){return _p(),NR(i),t.flags|=256,Ai(e,t,n,r),t.child}var pA={dehydrated:null,treeContext:null,retryLane:0};function hA(e){return{baseLanes:e,cachePool:null,transitions:null}}function S8(e,t,n){var r=t.pendingProps,i=sr.current,o=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Mn(sr,i&1),e===null)return aA(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=a):o=Tx(a,r,0,null),e=Yc(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=hA(n),t.memoizedState=pA,e):JR(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return Jle(e,t,a,r,s,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,s=i.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Pu(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=Pu(s,o):(o=Yc(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?hA(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=pA,r}return o=e.child,e=o.sibling,r=Pu(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function JR(e,t){return t=Tx({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function s1(e,t,n,r){return r!==null&&NR(r),xp(t,e.child,null,n),e=JR(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Jle(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=RE(Error(Ze(422))),s1(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Tx({mode:"visible",children:r.children},i,0,null),o=Yc(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&xp(t,e.child,null,a),t.child.memoizedState=hA(a),t.memoizedState=pA,o);if(!(t.mode&1))return s1(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(Ze(419)),r=RE(o,r,void 0),s1(e,t,a,r)}if(s=(a&e.childLanes)!==0,Vi||s){if(r=Wr,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|a)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Al(e,i),qa(r,e,i,-1))}return i2(),r=RE(Error(Ze(421))),s1(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=fue.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Co=Ru(i.nextSibling),ko=t,Xn=!0,Ka=null,e!==null&&(Qo[ea++]=yl,Qo[ea++]=bl,Qo[ea++]=nf,yl=e.id,bl=e.overflow,nf=t),t=JR(t,r.children),t.flags|=4096,t)}function fF(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),sA(e.return,t,n)}function OE(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function C8(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ai(e,t,r.children,n),r=sr.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&fF(e,n,t);else if(e.tag===19)fF(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Mn(sr,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&h_(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),OE(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&h_(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}OE(t,!0,n,null,o);break;case"together":OE(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function bb(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $l(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),of|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Ze(153));if(t.child!==null){for(e=t.child,n=Pu(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Pu(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Qle(e,t,n){switch(t.tag){case 3:w8(t),_p();break;case 5:Z9(t);break;case 1:qi(t.type)&&l_(t);break;case 4:WR(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Mn(f_,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Mn(sr,sr.current&1),t.flags|=128,null):n&t.child.childLanes?S8(e,t,n):(Mn(sr,sr.current&1),e=$l(e,t,n),e!==null?e.sibling:null);Mn(sr,sr.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return C8(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Mn(sr,sr.current),r)break;return null;case 22:case 23:return t.lanes=0,_8(e,t,n)}return $l(e,t,n)}var E8,gA,k8,T8;E8=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};gA=function(){};k8=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Wc(Os.current);var o=null;switch(n){case"input":i=FT(e,i),r=FT(e,r),o=[];break;case"select":i=ur({},i,{value:void 0}),r=ur({},r,{value:void 0}),o=[];break;case"textarea":i=jT(e,i),r=jT(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=a_)}UT(n,r);var a;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(rv.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(s=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(rv.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&zn("scroll",e),o||s===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};T8=function(e,t,n,r){n!==r&&(t.flags|=4)};function Dg(e,t){if(!Xn)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function fi(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function eue(e,t,n){var r=t.pendingProps;switch(FR(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return fi(t),null;case 1:return qi(t.type)&&s_(),fi(t),null;case 3:return r=t.stateNode,wp(),Hn(Hi),Hn(vi),HR(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(o1(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ka!==null&&(SA(Ka),Ka=null))),gA(e,t),fi(t),null;case 5:VR(t);var i=Wc(gv.current);if(n=t.type,e!==null&&t.stateNode!=null)k8(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Ze(166));return fi(t),null}if(e=Wc(Os.current),o1(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Cs]=t,r[pv]=o,e=(t.mode&1)!==0,n){case"dialog":zn("cancel",r),zn("close",r);break;case"iframe":case"object":case"embed":zn("load",r);break;case"video":case"audio":for(i=0;i<mm.length;i++)zn(mm[i],r);break;case"source":zn("error",r);break;case"img":case"image":case"link":zn("error",r),zn("load",r);break;case"details":zn("toggle",r);break;case"input":_M(r,o),zn("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},zn("invalid",r);break;case"textarea":wM(r,o),zn("invalid",r)}UT(n,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var s=o[a];a==="children"?typeof s=="string"?r.textContent!==s&&(o.suppressHydrationWarning!==!0&&i1(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&i1(r.textContent,s,e),i=["children",""+s]):rv.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&zn("scroll",r)}switch(n){case"input":X0(r),xM(r,o,!0);break;case"textarea":X0(r),SM(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=a_)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=e9(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Cs]=t,e[pv]=r,E8(e,t,!1,!1),t.stateNode=e;e:{switch(a=KT(n,r),n){case"dialog":zn("cancel",e),zn("close",e),i=r;break;case"iframe":case"object":case"embed":zn("load",e),i=r;break;case"video":case"audio":for(i=0;i<mm.length;i++)zn(mm[i],e);i=r;break;case"source":zn("error",e),i=r;break;case"img":case"image":case"link":zn("error",e),zn("load",e),i=r;break;case"details":zn("toggle",e),i=r;break;case"input":_M(e,r),i=FT(e,r),zn("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ur({},r,{value:void 0}),zn("invalid",e);break;case"textarea":wM(e,r),i=jT(e,r),zn("invalid",e);break;default:i=r}UT(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?r9(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&t9(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&iv(e,l):typeof l=="number"&&iv(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(rv.hasOwnProperty(o)?l!=null&&o==="onScroll"&&zn("scroll",e):l!=null&&wR(e,o,l,a))}switch(n){case"input":X0(e),xM(e,r,!1);break;case"textarea":X0(e),SM(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Mu(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?rp(e,!!r.multiple,o,!1):r.defaultValue!=null&&rp(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=a_)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return fi(t),null;case 6:if(e&&t.stateNode!=null)T8(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Ze(166));if(n=Wc(gv.current),Wc(Os.current),o1(t)){if(r=t.stateNode,n=t.memoizedProps,r[Cs]=t,(o=r.nodeValue!==n)&&(e=ko,e!==null))switch(e.tag){case 3:i1(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&i1(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Cs]=t,t.stateNode=r}return fi(t),null;case 13:if(Hn(sr),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Xn&&Co!==null&&t.mode&1&&!(t.flags&128))W9(),_p(),t.flags|=98560,o=!1;else if(o=o1(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(Ze(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Ze(317));o[Cs]=t}else _p(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;fi(t),o=!1}else Ka!==null&&(SA(Ka),Ka=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||sr.current&1?Fr===0&&(Fr=3):i2())),t.updateQueue!==null&&(t.flags|=4),fi(t),null);case 4:return wp(),gA(e,t),e===null&&fv(t.stateNode.containerInfo),fi(t),null;case 10:return zR(t.type._context),fi(t),null;case 17:return qi(t.type)&&s_(),fi(t),null;case 19:if(Hn(sr),o=t.memoizedState,o===null)return fi(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)Dg(o,!1);else{if(Fr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=h_(e),a!==null){for(t.flags|=128,Dg(o,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Mn(sr,sr.current&1|2),t.child}e=e.sibling}o.tail!==null&&Cr()>Cp&&(t.flags|=128,r=!0,Dg(o,!1),t.lanes=4194304)}else{if(!r)if(e=h_(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Dg(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Xn)return fi(t),null}else 2*Cr()-o.renderingStartTime>Cp&&n!==1073741824&&(t.flags|=128,r=!0,Dg(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Cr(),t.sibling=null,n=sr.current,Mn(sr,r?n&1|2:n&1),t):(fi(t),null);case 22:case 23:return r2(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?bo&1073741824&&(fi(t),t.subtreeFlags&6&&(t.flags|=8192)):fi(t),null;case 24:return null;case 25:return null}throw Error(Ze(156,t.tag))}function tue(e,t){switch(FR(t),t.tag){case 1:return qi(t.type)&&s_(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wp(),Hn(Hi),Hn(vi),HR(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return VR(t),null;case 13:if(Hn(sr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Ze(340));_p()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Hn(sr),null;case 4:return wp(),null;case 10:return zR(t.type._context),null;case 22:case 23:return r2(),null;case 24:return null;default:return null}}var l1=!1,gi=!1,nue=typeof WeakSet=="function"?WeakSet:Set,dt=null;function Xd(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){mr(e,t,r)}else n.current=null}function mA(e,t,n){try{n()}catch(r){mr(e,t,r)}}var dF=!1;function rue(e,t){if(QT=r_,e=O9(),LR(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,f=0,d=e,p=null;t:for(;;){for(var m;d!==n||i!==0&&d.nodeType!==3||(s=a+i),d!==o||r!==0&&d.nodeType!==3||(l=a+r),d.nodeType===3&&(a+=d.nodeValue.length),(m=d.firstChild)!==null;)p=d,d=m;for(;;){if(d===e)break t;if(p===n&&++u===i&&(s=a),p===o&&++f===r&&(l=a),(m=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=m}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(eA={focusedElem:e,selectionRange:n},r_=!1,dt=t;dt!==null;)if(t=dt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,dt=e;else for(;dt!==null;){t=dt;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,w=v.memoizedState,b=t.stateNode,x=b.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ba(t.type,y),w);b.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Ze(163))}}catch(k){mr(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,dt=e;break}dt=t.return}return v=dF,dF=!1,v}function Pm(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&mA(t,n,o)}i=i.next}while(i!==r)}}function Ex(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function vA(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function A8(e){var t=e.alternate;t!==null&&(e.alternate=null,A8(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Cs],delete t[pv],delete t[rA],delete t[Ble],delete t[jle])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function $8(e){return e.tag===5||e.tag===3||e.tag===4}function pF(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$8(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function yA(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=a_));else if(r!==4&&(e=e.child,e!==null))for(yA(e,t,n),e=e.sibling;e!==null;)yA(e,t,n),e=e.sibling}function bA(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(bA(e,t,n),e=e.sibling;e!==null;)bA(e,t,n),e=e.sibling}var Qr=null,za=!1;function ru(e,t,n){for(n=n.child;n!==null;)R8(e,t,n),n=n.sibling}function R8(e,t,n){if(Rs&&typeof Rs.onCommitFiberUnmount=="function")try{Rs.onCommitFiberUnmount(vx,n)}catch{}switch(n.tag){case 5:gi||Xd(n,t);case 6:var r=Qr,i=za;Qr=null,ru(e,t,n),Qr=r,za=i,Qr!==null&&(za?(e=Qr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Qr.removeChild(n.stateNode));break;case 18:Qr!==null&&(za?(e=Qr,n=n.stateNode,e.nodeType===8?CE(e.parentNode,n):e.nodeType===1&&CE(e,n),lv(e)):CE(Qr,n.stateNode));break;case 4:r=Qr,i=za,Qr=n.stateNode.containerInfo,za=!0,ru(e,t,n),Qr=r,za=i;break;case 0:case 11:case 14:case 15:if(!gi&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&(o&2||o&4)&&mA(n,t,a),i=i.next}while(i!==r)}ru(e,t,n);break;case 1:if(!gi&&(Xd(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){mr(n,t,s)}ru(e,t,n);break;case 21:ru(e,t,n);break;case 22:n.mode&1?(gi=(r=gi)||n.memoizedState!==null,ru(e,t,n),gi=r):ru(e,t,n);break;default:ru(e,t,n)}}function hF(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new nue),t.forEach(function(r){var i=due.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Pa(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:Qr=s.stateNode,za=!1;break e;case 3:Qr=s.stateNode.containerInfo,za=!0;break e;case 4:Qr=s.stateNode.containerInfo,za=!0;break e}s=s.return}if(Qr===null)throw Error(Ze(160));R8(o,a,i),Qr=null,za=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){mr(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)O8(t,e),t=t.sibling}function O8(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Pa(t,e),fs(e),r&4){try{Pm(3,e,e.return),Ex(3,e)}catch(y){mr(e,e.return,y)}try{Pm(5,e,e.return)}catch(y){mr(e,e.return,y)}}break;case 1:Pa(t,e),fs(e),r&512&&n!==null&&Xd(n,n.return);break;case 5:if(Pa(t,e),fs(e),r&512&&n!==null&&Xd(n,n.return),e.flags&32){var i=e.stateNode;try{iv(i,"")}catch(y){mr(e,e.return,y)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&JU(i,o),KT(s,a);var u=KT(s,o);for(a=0;a<l.length;a+=2){var f=l[a],d=l[a+1];f==="style"?r9(i,d):f==="dangerouslySetInnerHTML"?t9(i,d):f==="children"?iv(i,d):wR(i,f,d,u)}switch(s){case"input":NT(i,o);break;case"textarea":QU(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m!=null?rp(i,!!o.multiple,m,!1):p!==!!o.multiple&&(o.defaultValue!=null?rp(i,!!o.multiple,o.defaultValue,!0):rp(i,!!o.multiple,o.multiple?[]:"",!1))}i[pv]=o}catch(y){mr(e,e.return,y)}}break;case 6:if(Pa(t,e),fs(e),r&4){if(e.stateNode===null)throw Error(Ze(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(y){mr(e,e.return,y)}}break;case 3:if(Pa(t,e),fs(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{lv(t.containerInfo)}catch(y){mr(e,e.return,y)}break;case 4:Pa(t,e),fs(e);break;case 13:Pa(t,e),fs(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(t2=Cr())),r&4&&hF(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(gi=(u=gi)||f,Pa(t,e),gi=u):Pa(t,e),fs(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(dt=e,f=e.child;f!==null;){for(d=dt=f;dt!==null;){switch(p=dt,m=p.child,p.tag){case 0:case 11:case 14:case 15:Pm(4,p,p.return);break;case 1:Xd(p,p.return);var v=p.stateNode;if(typeof v.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(y){mr(r,n,y)}}break;case 5:Xd(p,p.return);break;case 22:if(p.memoizedState!==null){mF(d);continue}}m!==null?(m.return=p,dt=m):mF(d)}f=f.sibling}e:for(f=null,d=e;;){if(d.tag===5){if(f===null){f=d;try{i=d.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=d.stateNode,l=d.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=n9("display",a))}catch(y){mr(e,e.return,y)}}}else if(d.tag===6){if(f===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(y){mr(e,e.return,y)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===e)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;d.sibling===null;){if(d.return===null||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Pa(t,e),fs(e),r&4&&hF(e);break;case 21:break;default:Pa(t,e),fs(e)}}function fs(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if($8(n)){var r=n;break e}n=n.return}throw Error(Ze(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(iv(i,""),r.flags&=-33);var o=pF(e);bA(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=pF(e);yA(e,s,a);break;default:throw Error(Ze(161))}}catch(l){mr(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function iue(e,t,n){dt=e,I8(e)}function I8(e,t,n){for(var r=(e.mode&1)!==0;dt!==null;){var i=dt,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||l1;if(!a){var s=i.alternate,l=s!==null&&s.memoizedState!==null||gi;s=l1;var u=gi;if(l1=a,(gi=l)&&!u)for(dt=i;dt!==null;)a=dt,l=a.child,a.tag===22&&a.memoizedState!==null?vF(i):l!==null?(l.return=a,dt=l):vF(i);for(;o!==null;)dt=o,I8(o),o=o.sibling;dt=i,l1=s,gi=u}gF(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,dt=o):gF(e)}}function gF(e){for(;dt!==null;){var t=dt;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:gi||Ex(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!gi)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ba(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&JM(t,o,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}JM(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var d=f.dehydrated;d!==null&&lv(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Ze(163))}gi||t.flags&512&&vA(t)}catch(p){mr(t,t.return,p)}}if(t===e){dt=null;break}if(n=t.sibling,n!==null){n.return=t.return,dt=n;break}dt=t.return}}function mF(e){for(;dt!==null;){var t=dt;if(t===e){dt=null;break}var n=t.sibling;if(n!==null){n.return=t.return,dt=n;break}dt=t.return}}function vF(e){for(;dt!==null;){var t=dt;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ex(4,t)}catch(l){mr(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){mr(t,i,l)}}var o=t.return;try{vA(t)}catch(l){mr(t,o,l)}break;case 5:var a=t.return;try{vA(t)}catch(l){mr(t,a,l)}}}catch(l){mr(t,t.return,l)}if(t===e){dt=null;break}var s=t.sibling;if(s!==null){s.return=t.return,dt=s;break}dt=t.return}}var oue=Math.ceil,v_=Pl.ReactCurrentDispatcher,QR=Pl.ReactCurrentOwner,aa=Pl.ReactCurrentBatchConfig,an=0,Wr=null,Rr=null,ii=0,bo=0,Zd=Hu(0),Fr=0,bv=null,of=0,kx=0,e2=0,Lm=null,Wi=null,t2=0,Cp=1/0,hl=null,y_=!1,_A=null,Iu=null,u1=!1,wu=null,b_=0,Mm=0,xA=null,_b=-1,xb=0;function Ii(){return an&6?Cr():_b!==-1?_b:_b=Cr()}function Du(e){return e.mode&1?an&2&&ii!==0?ii&-ii:Ule.transition!==null?(xb===0&&(xb=g9()),xb):(e=_n,e!==0||(e=window.event,e=e===void 0?16:w9(e.type)),e):1}function qa(e,t,n,r){if(50<Mm)throw Mm=0,xA=null,Error(Ze(185));Kv(e,n,r),(!(an&2)||e!==Wr)&&(e===Wr&&(!(an&2)&&(kx|=n),Fr===4&&_u(e,ii)),Gi(e,r),n===1&&an===0&&!(t.mode&1)&&(Cp=Cr()+500,wx&&qu()))}function Gi(e,t){var n=e.callbackNode;Use(e,t);var r=n_(e,e===Wr?ii:0);if(r===0)n!==null&&kM(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&kM(n),t===1)e.tag===0?zle(yF.bind(null,e)):z9(yF.bind(null,e)),Fle(function(){!(an&6)&&qu()}),n=null;else{switch(m9(r)){case 1:n=TR;break;case 4:n=p9;break;case 16:n=t_;break;case 536870912:n=h9;break;default:n=t_}n=j8(n,D8.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function D8(e,t){if(_b=-1,xb=0,an&6)throw Error(Ze(327));var n=e.callbackNode;if(lp()&&e.callbackNode!==n)return null;var r=n_(e,e===Wr?ii:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=__(e,r);else{t=r;var i=an;an|=2;var o=L8();(Wr!==e||ii!==t)&&(hl=null,Cp=Cr()+500,Gc(e,t));do try{lue();break}catch(s){P8(e,s)}while(1);jR(),v_.current=o,an=i,Rr!==null?t=0:(Wr=null,ii=0,t=Fr)}if(t!==0){if(t===2&&(i=GT(e),i!==0&&(r=i,t=wA(e,i))),t===1)throw n=bv,Gc(e,0),_u(e,r),Gi(e,Cr()),n;if(t===6)_u(e,r);else{if(i=e.current.alternate,!(r&30)&&!aue(i)&&(t=__(e,r),t===2&&(o=GT(e),o!==0&&(r=o,t=wA(e,o))),t===1))throw n=bv,Gc(e,0),_u(e,r),Gi(e,Cr()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Ze(345));case 2:Ac(e,Wi,hl);break;case 3:if(_u(e,r),(r&130023424)===r&&(t=t2+500-Cr(),10<t)){if(n_(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ii(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=nA(Ac.bind(null,e,Wi,hl),t);break}Ac(e,Wi,hl);break;case 4:if(_u(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-Ha(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=Cr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*oue(r/1960))-r,10<r){e.timeoutHandle=nA(Ac.bind(null,e,Wi,hl),r);break}Ac(e,Wi,hl);break;case 5:Ac(e,Wi,hl);break;default:throw Error(Ze(329))}}}return Gi(e,Cr()),e.callbackNode===n?D8.bind(null,e):null}function wA(e,t){var n=Lm;return e.current.memoizedState.isDehydrated&&(Gc(e,t).flags|=256),e=__(e,t),e!==2&&(t=Wi,Wi=n,t!==null&&SA(t)),e}function SA(e){Wi===null?Wi=e:Wi.push.apply(Wi,e)}function aue(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Za(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function _u(e,t){for(t&=~e2,t&=~kx,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ha(t),r=1<<n;e[n]=-1,t&=~r}}function yF(e){if(an&6)throw Error(Ze(327));lp();var t=n_(e,0);if(!(t&1))return Gi(e,Cr()),null;var n=__(e,t);if(e.tag!==0&&n===2){var r=GT(e);r!==0&&(t=r,n=wA(e,r))}if(n===1)throw n=bv,Gc(e,0),_u(e,t),Gi(e,Cr()),n;if(n===6)throw Error(Ze(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ac(e,Wi,hl),Gi(e,Cr()),null}function n2(e,t){var n=an;an|=1;try{return e(t)}finally{an=n,an===0&&(Cp=Cr()+500,wx&&qu())}}function af(e){wu!==null&&wu.tag===0&&!(an&6)&&lp();var t=an;an|=1;var n=aa.transition,r=_n;try{if(aa.transition=null,_n=1,e)return e()}finally{_n=r,aa.transition=n,an=t,!(an&6)&&qu()}}function r2(){bo=Zd.current,Hn(Zd)}function Gc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Mle(n)),Rr!==null)for(n=Rr.return;n!==null;){var r=n;switch(FR(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&s_();break;case 3:wp(),Hn(Hi),Hn(vi),HR();break;case 5:VR(r);break;case 4:wp();break;case 13:Hn(sr);break;case 19:Hn(sr);break;case 10:zR(r.type._context);break;case 22:case 23:r2()}n=n.return}if(Wr=e,Rr=e=Pu(e.current,null),ii=bo=t,Fr=0,bv=null,e2=kx=of=0,Wi=Lm=null,Kc!==null){for(t=0;t<Kc.length;t++)if(n=Kc[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var a=o.next;o.next=i,r.next=a}n.pending=r}Kc=null}return e}function P8(e,t){do{var n=Rr;try{if(jR(),vb.current=m_,g_){for(var r=lr.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}g_=!1}if(rf=0,Kr=Lr=lr=null,Dm=!1,mv=0,QR.current=null,n===null||n.return===null){Fr=1,bv=t,Rr=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=ii,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,f=s,d=f.tag;if(!(f.mode&1)&&(d===0||d===11||d===15)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var m=oF(a);if(m!==null){m.flags&=-257,aF(m,a,s,o,t),m.mode&1&&iF(o,u,t),t=m,l=u;var v=t.updateQueue;if(v===null){var y=new Set;y.add(l),t.updateQueue=y}else v.add(l);break e}else{if(!(t&1)){iF(o,u,t),i2();break e}l=Error(Ze(426))}}else if(Xn&&s.mode&1){var w=oF(a);if(w!==null){!(w.flags&65536)&&(w.flags|=256),aF(w,a,s,o,t),NR(Sp(l,s));break e}}o=l=Sp(l,s),Fr!==4&&(Fr=2),Lm===null?Lm=[o]:Lm.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var b=v8(o,l,t);ZM(o,b);break e;case 1:s=l;var x=o.type,S=o.stateNode;if(!(o.flags&128)&&(typeof x.getDerivedStateFromError=="function"||S!==null&&typeof S.componentDidCatch=="function"&&(Iu===null||!Iu.has(S)))){o.flags|=65536,t&=-t,o.lanes|=t;var k=y8(o,s,t);ZM(o,k);break e}}o=o.return}while(o!==null)}F8(n)}catch(A){t=A,Rr===n&&n!==null&&(Rr=n=n.return);continue}break}while(1)}function L8(){var e=v_.current;return v_.current=m_,e===null?m_:e}function i2(){(Fr===0||Fr===3||Fr===2)&&(Fr=4),Wr===null||!(of&268435455)&&!(kx&268435455)||_u(Wr,ii)}function __(e,t){var n=an;an|=2;var r=L8();(Wr!==e||ii!==t)&&(hl=null,Gc(e,t));do try{sue();break}catch(i){P8(e,i)}while(1);if(jR(),an=n,v_.current=r,Rr!==null)throw Error(Ze(261));return Wr=null,ii=0,Fr}function sue(){for(;Rr!==null;)M8(Rr)}function lue(){for(;Rr!==null&&!Dse();)M8(Rr)}function M8(e){var t=B8(e.alternate,e,bo);e.memoizedProps=e.pendingProps,t===null?F8(e):Rr=t,QR.current=null}function F8(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=tue(n,t),n!==null){n.flags&=32767,Rr=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Fr=6,Rr=null;return}}else if(n=eue(n,t,bo),n!==null){Rr=n;return}if(t=t.sibling,t!==null){Rr=t;return}Rr=t=e}while(t!==null);Fr===0&&(Fr=5)}function Ac(e,t,n){var r=_n,i=aa.transition;try{aa.transition=null,_n=1,uue(e,t,n,r)}finally{aa.transition=i,_n=r}return null}function uue(e,t,n,r){do lp();while(wu!==null);if(an&6)throw Error(Ze(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(Ze(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Kse(e,o),e===Wr&&(Rr=Wr=null,ii=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||u1||(u1=!0,j8(t_,function(){return lp(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=aa.transition,aa.transition=null;var a=_n;_n=1;var s=an;an|=4,QR.current=null,rue(e,n),O8(n,e),$le(eA),r_=!!QT,eA=QT=null,e.current=n,iue(n),Pse(),an=s,_n=a,aa.transition=o}else e.current=n;if(u1&&(u1=!1,wu=e,b_=i),o=e.pendingLanes,o===0&&(Iu=null),Fse(n.stateNode),Gi(e,Cr()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(y_)throw y_=!1,e=_A,_A=null,e;return b_&1&&e.tag!==0&&lp(),o=e.pendingLanes,o&1?e===xA?Mm++:(Mm=0,xA=e):Mm=0,qu(),null}function lp(){if(wu!==null){var e=m9(b_),t=aa.transition,n=_n;try{if(aa.transition=null,_n=16>e?16:e,wu===null)var r=!1;else{if(e=wu,wu=null,b_=0,an&6)throw Error(Ze(331));var i=an;for(an|=4,dt=e.current;dt!==null;){var o=dt,a=o.child;if(dt.flags&16){var s=o.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(dt=u;dt!==null;){var f=dt;switch(f.tag){case 0:case 11:case 15:Pm(8,f,o)}var d=f.child;if(d!==null)d.return=f,dt=d;else for(;dt!==null;){f=dt;var p=f.sibling,m=f.return;if(A8(f),f===u){dt=null;break}if(p!==null){p.return=m,dt=p;break}dt=m}}}var v=o.alternate;if(v!==null){var y=v.child;if(y!==null){v.child=null;do{var w=y.sibling;y.sibling=null,y=w}while(y!==null)}}dt=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,dt=a;else e:for(;dt!==null;){if(o=dt,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Pm(9,o,o.return)}var b=o.sibling;if(b!==null){b.return=o.return,dt=b;break e}dt=o.return}}var x=e.current;for(dt=x;dt!==null;){a=dt;var S=a.child;if(a.subtreeFlags&2064&&S!==null)S.return=a,dt=S;else e:for(a=x;dt!==null;){if(s=dt,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Ex(9,s)}}catch(A){mr(s,s.return,A)}if(s===a){dt=null;break e}var k=s.sibling;if(k!==null){k.return=s.return,dt=k;break e}dt=s.return}}if(an=i,qu(),Rs&&typeof Rs.onPostCommitFiberRoot=="function")try{Rs.onPostCommitFiberRoot(vx,e)}catch{}r=!0}return r}finally{_n=n,aa.transition=t}}return!1}function bF(e,t,n){t=Sp(n,t),t=v8(e,t,1),e=Ou(e,t,1),t=Ii(),e!==null&&(Kv(e,1,t),Gi(e,t))}function mr(e,t,n){if(e.tag===3)bF(e,e,n);else for(;t!==null;){if(t.tag===3){bF(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Iu===null||!Iu.has(r))){e=Sp(n,e),e=y8(t,e,1),t=Ou(t,e,1),e=Ii(),t!==null&&(Kv(t,1,e),Gi(t,e));break}}t=t.return}}function cue(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ii(),e.pingedLanes|=e.suspendedLanes&n,Wr===e&&(ii&n)===n&&(Fr===4||Fr===3&&(ii&130023424)===ii&&500>Cr()-t2?Gc(e,0):e2|=n),Gi(e,t)}function N8(e,t){t===0&&(e.mode&1?(t=Q0,Q0<<=1,!(Q0&130023424)&&(Q0=4194304)):t=1);var n=Ii();e=Al(e,t),e!==null&&(Kv(e,t,n),Gi(e,n))}function fue(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),N8(e,n)}function due(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Ze(314))}r!==null&&r.delete(t),N8(e,n)}var B8;B8=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Hi.current)Vi=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Vi=!1,Qle(e,t,n);Vi=!!(e.flags&131072)}else Vi=!1,Xn&&t.flags&1048576&&U9(t,c_,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;bb(e,t),e=t.pendingProps;var i=bp(t,vi.current);sp(t,n),i=GR(null,t,r,e,i,n);var o=YR();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,qi(r)?(o=!0,l_(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,KR(t),i.updater=Sx,t.stateNode=i,i._reactInternals=t,uA(t,r,e,n),t=dA(null,t,r,!0,o,n)):(t.tag=0,Xn&&o&&MR(t),Ai(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(bb(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=hue(r),e=Ba(r,e),i){case 0:t=fA(null,t,r,e,n);break e;case 1:t=uF(null,t,r,e,n);break e;case 11:t=sF(null,t,r,e,n);break e;case 14:t=lF(null,t,r,Ba(r.type,e),n);break e}throw Error(Ze(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ba(r,i),fA(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ba(r,i),uF(e,t,r,i,n);case 3:e:{if(w8(t),e===null)throw Error(Ze(387));r=t.pendingProps,o=t.memoizedState,i=o.element,H9(e,t),p_(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Sp(Error(Ze(423)),t),t=cF(e,t,r,n,i);break e}else if(r!==i){i=Sp(Error(Ze(424)),t),t=cF(e,t,r,n,i);break e}else for(Co=Ru(t.stateNode.containerInfo.firstChild),ko=t,Xn=!0,Ka=null,n=X9(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(_p(),r===i){t=$l(e,t,n);break e}Ai(e,t,r,n)}t=t.child}return t;case 5:return Z9(t),e===null&&aA(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,tA(r,i)?a=null:o!==null&&tA(r,o)&&(t.flags|=32),x8(e,t),Ai(e,t,a,n),t.child;case 6:return e===null&&aA(t),null;case 13:return S8(e,t,n);case 4:return WR(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=xp(t,null,r,n):Ai(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ba(r,i),sF(e,t,r,i,n);case 7:return Ai(e,t,t.pendingProps,n),t.child;case 8:return Ai(e,t,t.pendingProps.children,n),t.child;case 12:return Ai(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,Mn(f_,r._currentValue),r._currentValue=a,o!==null)if(Za(o.value,a)){if(o.children===i.children&&!Hi.current){t=$l(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){a=o.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=xl(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?l.next=l:(l.next=f.next,f.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),sA(o.return,n,t),s.lanes|=n;break}l=l.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(Ze(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),sA(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}Ai(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,sp(t,n),i=ca(i),r=r(i),t.flags|=1,Ai(e,t,r,n),t.child;case 14:return r=t.type,i=Ba(r,t.pendingProps),i=Ba(r.type,i),lF(e,t,r,i,n);case 15:return b8(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ba(r,i),bb(e,t),t.tag=1,qi(r)?(e=!0,l_(t)):e=!1,sp(t,n),G9(t,r,i),uA(t,r,i,n),dA(null,t,r,!0,e,n);case 19:return C8(e,t,n);case 22:return _8(e,t,n)}throw Error(Ze(156,t.tag))};function j8(e,t){return d9(e,t)}function pue(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ra(e,t,n,r){return new pue(e,t,n,r)}function o2(e){return e=e.prototype,!(!e||!e.isReactComponent)}function hue(e){if(typeof e=="function")return o2(e)?1:0;if(e!=null){if(e=e.$$typeof,e===CR)return 11;if(e===ER)return 14}return 2}function Pu(e,t){var n=e.alternate;return n===null?(n=ra(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function wb(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")o2(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case zd:return Yc(n.children,i,o,t);case SR:a=8,i|=8;break;case DT:return e=ra(12,n,t,i|2),e.elementType=DT,e.lanes=o,e;case PT:return e=ra(13,n,t,i),e.elementType=PT,e.lanes=o,e;case LT:return e=ra(19,n,t,i),e.elementType=LT,e.lanes=o,e;case YU:return Tx(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case qU:a=10;break e;case GU:a=9;break e;case CR:a=11;break e;case ER:a=14;break e;case pu:a=16,r=null;break e}throw Error(Ze(130,e==null?e:typeof e,""))}return t=ra(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Yc(e,t,n,r){return e=ra(7,e,r,t),e.lanes=n,e}function Tx(e,t,n,r){return e=ra(22,e,r,t),e.elementType=YU,e.lanes=n,e.stateNode={isHidden:!1},e}function IE(e,t,n){return e=ra(6,e,null,t),e.lanes=n,e}function DE(e,t,n){return t=ra(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function gue(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=pE(0),this.expirationTimes=pE(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pE(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function a2(e,t,n,r,i,o,a,s,l){return e=new gue(e,t,n,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ra(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},KR(o),e}function mue(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:jd,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function z8(e){if(!e)return Fu;e=e._reactInternals;e:{if(bf(e)!==e||e.tag!==1)throw Error(Ze(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(qi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Ze(171))}if(e.tag===1){var n=e.type;if(qi(n))return j9(e,n,t)}return t}function U8(e,t,n,r,i,o,a,s,l){return e=a2(n,r,!0,e,i,o,a,s,l),e.context=z8(null),n=e.current,r=Ii(),i=Du(n),o=xl(r,i),o.callback=t??null,Ou(n,o,i),e.current.lanes=i,Kv(e,i,r),Gi(e,r),e}function Ax(e,t,n,r){var i=t.current,o=Ii(),a=Du(i);return n=z8(n),t.context===null?t.context=n:t.pendingContext=n,t=xl(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ou(i,t,a),e!==null&&(qa(e,i,a,o),mb(e,i,a)),a}function x_(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function _F(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function s2(e,t){_F(e,t),(e=e.alternate)&&_F(e,t)}function vue(){return null}var K8=typeof reportError=="function"?reportError:function(e){console.error(e)};function l2(e){this._internalRoot=e}$x.prototype.render=l2.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Ze(409));Ax(e,t,null,null)};$x.prototype.unmount=l2.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;af(function(){Ax(null,e,null,null)}),t[Tl]=null}};function $x(e){this._internalRoot=e}$x.prototype.unstable_scheduleHydration=function(e){if(e){var t=b9();e={blockedOn:null,target:e,priority:t};for(var n=0;n<bu.length&&t!==0&&t<bu[n].priority;n++);bu.splice(n,0,e),n===0&&x9(e)}};function u2(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Rx(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function xF(){}function yue(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=x_(a);o.call(u)}}var a=U8(t,r,e,0,null,!1,!1,"",xF);return e._reactRootContainer=a,e[Tl]=a.current,fv(e.nodeType===8?e.parentNode:e),af(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var u=x_(l);s.call(u)}}var l=a2(e,0,!1,null,null,!1,!1,"",xF);return e._reactRootContainer=l,e[Tl]=l.current,fv(e.nodeType===8?e.parentNode:e),af(function(){Ax(t,l,n,r)}),l}function Ox(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var s=i;i=function(){var l=x_(a);s.call(l)}}Ax(t,a,e,i)}else a=yue(n,t,e,i,r);return x_(a)}v9=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=gm(t.pendingLanes);n!==0&&(AR(t,n|1),Gi(t,Cr()),!(an&6)&&(Cp=Cr()+500,qu()))}break;case 13:af(function(){var r=Al(e,1);if(r!==null){var i=Ii();qa(r,e,1,i)}}),s2(e,1)}};$R=function(e){if(e.tag===13){var t=Al(e,134217728);if(t!==null){var n=Ii();qa(t,e,134217728,n)}s2(e,134217728)}};y9=function(e){if(e.tag===13){var t=Du(e),n=Al(e,t);if(n!==null){var r=Ii();qa(n,e,t,r)}s2(e,t)}};b9=function(){return _n};_9=function(e,t){var n=_n;try{return _n=e,t()}finally{_n=n}};VT=function(e,t,n){switch(t){case"input":if(NT(e,n),t=n.name,n.type==="radio"&&t!=null){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 i=xx(r);if(!i)throw Error(Ze(90));ZU(r),NT(r,i)}}}break;case"textarea":QU(e,n);break;case"select":t=n.value,t!=null&&rp(e,!!n.multiple,t,!1)}};a9=n2;s9=af;var bue={usingClientEntryPoint:!1,Events:[Vv,Vd,xx,i9,o9,n2]},Pg={findFiberByHostInstance:Uc,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},_ue={bundleType:Pg.bundleType,version:Pg.version,rendererPackageName:Pg.rendererPackageName,rendererConfig:Pg.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Pl.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=c9(e),e===null?null:e.stateNode},findFiberByHostInstance:Pg.findFiberByHostInstance||vue,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var c1=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!c1.isDisabled&&c1.supportsFiber)try{vx=c1.inject(_ue),Rs=c1}catch{}}Po.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=bue;Po.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u2(t))throw Error(Ze(200));return mue(e,t,null,n)};Po.createRoot=function(e,t){if(!u2(e))throw Error(Ze(299));var n=!1,r="",i=K8;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=a2(e,1,!1,null,null,n,!1,r,i),e[Tl]=t.current,fv(e.nodeType===8?e.parentNode:e),new l2(t)};Po.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Ze(188)):(e=Object.keys(e).join(","),Error(Ze(268,e)));return e=c9(t),e=e===null?null:e.stateNode,e};Po.flushSync=function(e){return af(e)};Po.hydrate=function(e,t,n){if(!Rx(t))throw Error(Ze(200));return Ox(null,e,t,!0,n)};Po.hydrateRoot=function(e,t,n){if(!u2(e))throw Error(Ze(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=K8;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=U8(t,null,e,1,n??null,i,!1,o,a),e[Tl]=t.current,fv(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new $x(t)};Po.render=function(e,t,n){if(!Rx(t))throw Error(Ze(200));return Ox(null,e,t,!1,n)};Po.unmountComponentAtNode=function(e){if(!Rx(e))throw Error(Ze(40));return e._reactRootContainer?(af(function(){Ox(null,null,e,!1,function(){e._reactRootContainer=null,e[Tl]=null})}),!0):!1};Po.unstable_batchedUpdates=n2;Po.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Rx(n))throw Error(Ze(200));if(e==null||e._reactInternals===void 0)throw Error(Ze(38));return Ox(e,t,n,!1,r)};Po.version="18.2.0-next-9e3b772b8-20220608";function W8(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(W8)}catch(e){console.error(e)}}W8(),UU.exports=Po;var _f=UU.exports;const vm=bi(_f);function xue(e){const t=new Error(e);if(t.stack===void 0)try{throw t}catch{}return t}var wue=xue,jt=wue;function Sue(e){return!!e&&typeof e.then=="function"}var Jn=Sue;function Cue(e,t){if(e!=null)return e;throw jt(t??"Got unexpected null or undefined")}var Qn=Cue;function Dt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Ix{getValue(){throw jt("BaseLoadable")}toPromise(){throw jt("BaseLoadable")}valueMaybe(){throw jt("BaseLoadable")}valueOrThrow(){throw jt(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw jt("BaseLoadable")}promiseOrThrow(){throw jt(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw jt("BaseLoadable")}errorOrThrow(){throw jt(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw jt("BaseLoadable")}}class Eue extends Ix{constructor(t){super(),Dt(this,"state","hasValue"),Dt(this,"contents",void 0),this.contents=t}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(t){try{const n=t(this.contents);return Jn(n)?sf(n):Ep(n)?n:qv(n)}catch(n){return Jn(n)?sf(n.next(()=>this.map(t))):Dx(n)}}}class kue extends Ix{constructor(t){super(),Dt(this,"state","hasError"),Dt(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(t){return this}}class V8 extends Ix{constructor(t){super(),Dt(this,"state","loading"),Dt(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(t){return sf(this.contents.then(n=>{const r=t(n);if(Ep(r)){const i=r;switch(i.state){case"hasValue":return i.contents;case"hasError":throw i.contents;case"loading":return i.contents}}return r}).catch(n=>{if(Jn(n))return n.then(()=>this.map(t).contents);throw n}))}}function qv(e){return Object.freeze(new Eue(e))}function Dx(e){return Object.freeze(new kue(e))}function sf(e){return Object.freeze(new V8(e))}function H8(){return Object.freeze(new V8(new Promise(()=>{})))}function Tue(e){return e.every(t=>t.state==="hasValue")?qv(e.map(t=>t.contents)):e.some(t=>t.state==="hasError")?Dx(Qn(e.find(t=>t.state==="hasError"),"Invalid loadable passed to loadableAll").contents):sf(Promise.all(e.map(t=>t.contents)))}function q8(e){const n=(Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(i=>e[i])).map(i=>Ep(i)?i:Jn(i)?sf(i):qv(i)),r=Tue(n);return Array.isArray(e)?r:r.map(i=>Object.getOwnPropertyNames(e).reduce((o,a,s)=>({...o,[a]:i[s]}),{}))}function Ep(e){return e instanceof Ix}const Aue={of:e=>Jn(e)?sf(e):Ep(e)?e:qv(e),error:e=>Dx(e),loading:()=>H8(),all:q8,isLoadable:Ep};var xf={loadableWithValue:qv,loadableWithError:Dx,loadableWithPromise:sf,loadableLoading:H8,loadableAll:q8,isLoadable:Ep,RecoilLoadable:Aue},$ue=xf.loadableWithValue,Rue=xf.loadableWithError,Oue=xf.loadableWithPromise,Iue=xf.loadableLoading,Due=xf.loadableAll,Pue=xf.isLoadable,Lue=xf.RecoilLoadable,Gv=Object.freeze({__proto__:null,loadableWithValue:$ue,loadableWithError:Rue,loadableWithPromise:Oue,loadableLoading:Iue,loadableAll:Due,isLoadable:Pue,RecoilLoadable:Lue});const Px=new Map().set("recoil_hamt_2020",!0).set("recoil_sync_external_store",!0).set("recoil_suppress_rerender_in_callback",!0).set("recoil_memory_managament_2020",!0);function Lx(e){var t;return(t=Px.get(e))!==null&&t!==void 0?t:!1}Lx.setPass=e=>{Px.set(e,!0)};Lx.setFail=e=>{Px.set(e,!1)};Lx.clear=()=>{Px.clear()};var $n=Lx;function Mue(e,t,{error:n}={}){return null}var Fue=Mue,c2=Fue,PE,LE,ME;const Nue=(PE=ht.createMutableSource)!==null&&PE!==void 0?PE:ht.unstable_createMutableSource,G8=(LE=ht.useMutableSource)!==null&&LE!==void 0?LE:ht.unstable_useMutableSource,Y8=(ME=ht.useSyncExternalStore)!==null&&ME!==void 0?ME:ht.unstable_useSyncExternalStore;function Bue(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;return((e=t==null?void 0:t.current)!==null&&e!==void 0?e:n.currentDispatcher).useSyncExternalStore!=null}function jue(){return $n("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:$n("recoil_sync_external_store")&&Y8!=null?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:$n("recoil_mutable_source")&&G8!=null&&typeof window<"u"&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?$n("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:$n("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}}function zue(){return!1}var Yv={createMutableSource:Nue,useMutableSource:G8,useSyncExternalStore:Y8,currentRendererSupportsUseSyncExternalStore:Bue,reactMode:jue,isFastRefreshEnabled:zue};const X8={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0};function Uue(){var e,t,n;if(typeof process>"u"||((e=process)===null||e===void 0?void 0:e.env)==null)return;const r=(t={}.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED)===null||t===void 0||(n=t.toLowerCase())===null||n===void 0?void 0:n.trim();if(r==null||r==="")return;if(!["true","false"].includes(r))throw jt(`({}).RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED value must be 'true', 'false', or empty: ${r}`);X8.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=r==="true"}Uue();var Z8=X8;class f2{constructor(t){Dt(this,"key",void 0),this.key=t}toJSON(){return{key:this.key}}}class J8 extends f2{}class Q8 extends f2{}function Kue(e){return e instanceof J8||e instanceof Q8}var Mx={AbstractRecoilValue:f2,RecoilState:J8,RecoilValueReadOnly:Q8,isRecoilValue:Kue},Wue=Mx.AbstractRecoilValue,Vue=Mx.RecoilState,Hue=Mx.RecoilValueReadOnly,que=Mx.isRecoilValue,kp=Object.freeze({__proto__:null,AbstractRecoilValue:Wue,RecoilState:Vue,RecoilValueReadOnly:Hue,isRecoilValue:que});function Gue(e,t){return function*(){let n=0;for(const r of e)yield t(r,n++)}()}var Fx=Gue;class e7{}const Yue=new e7,lf=new Map,d2=new Map;function Xue(e){return Fx(e,t=>Qn(d2.get(t)))}function Zue(e){if(lf.has(e)){const t=`Duplicate atom key "${e}". This is a FATAL ERROR in
|
|
244
|
-
production. But it is safe to ignore this warning if it occurred because of
|
|
245
|
-
hot module replacement.`;console.warn(t)}}function Jue(e){Z8.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&Zue(e.key),lf.set(e.key,e);const t=e.set==null?new kp.RecoilValueReadOnly(e.key):new kp.RecoilState(e.key);return d2.set(e.key,t),t}class t7 extends Error{}function Que(e){const t=lf.get(e);if(t==null)throw new t7(`Missing definition for RecoilValue: "${e}""`);return t}function ece(e){return lf.get(e)}const w_=new Map;function tce(e){var t;if(!$n("recoil_memory_managament_2020"))return;const n=lf.get(e);if(n!=null&&(t=n.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(n)){var r;lf.delete(e),(r=n7(e))===null||r===void 0||r(),w_.delete(e)}}function nce(e,t){$n("recoil_memory_managament_2020")&&(t===void 0?w_.delete(e):w_.set(e,t))}function n7(e){return w_.get(e)}var oo={nodes:lf,recoilValues:d2,registerNode:Jue,getNode:Que,getNodeMaybe:ece,deleteNodeConfigIfPossible:tce,setConfigDeletionHandler:nce,getConfigDeletionHandler:n7,recoilValuesForKeys:Xue,NodeMissingError:t7,DefaultValue:e7,DEFAULT_VALUE:Yue};function rce(e,t){t()}var ice={enqueueExecution:rce};function oce(e,t){return t={exports:{}},e(t,t.exports),t.exports}var ace=oce(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(fe){return typeof fe}:function(fe){return fe&&typeof Symbol=="function"&&fe.constructor===Symbol&&fe!==Symbol.prototype?"symbol":typeof fe},n={},r=5,i=Math.pow(2,r),o=i-1,a=i/2,s=i/4,l={},u=function(he){return function(){return he}},f=n.hash=function(fe){var he=typeof fe>"u"?"undefined":t(fe);if(he==="number")return fe;he!=="string"&&(fe+="");for(var Ae=0,We=0,Ve=fe.length;We<Ve;++We){var Ge=fe.charCodeAt(We);Ae=(Ae<<5)-Ae+Ge|0}return Ae},d=function(he){return he-=he>>1&1431655765,he=(he&858993459)+(he>>2&858993459),he=he+(he>>4)&252645135,he+=he>>8,he+=he>>16,he&127},p=function(he,Ae){return Ae>>>he&o},m=function(he){return 1<<he},v=function(he,Ae){return d(he&Ae-1)},y=function(he,Ae,We,Ve){var Ge=Ve;if(!he){var ft=Ve.length;Ge=new Array(ft);for(var ut=0;ut<ft;++ut)Ge[ut]=Ve[ut]}return Ge[Ae]=We,Ge},w=function(he,Ae,We){var Ve=We.length-1,Ge=0,ft=0,ut=We;if(he)Ge=ft=Ae;else for(ut=new Array(Ve);Ge<Ae;)ut[ft++]=We[Ge++];for(++Ge;Ge<=Ve;)ut[ft++]=We[Ge++];return he&&(ut.length=Ve),ut},b=function(he,Ae,We,Ve){var Ge=Ve.length;if(he){for(var ft=Ge;ft>=Ae;)Ve[ft--]=Ve[ft];return Ve[Ae]=We,Ve}for(var ut=0,it=0,pt=new Array(Ge+1);ut<Ae;)pt[it++]=Ve[ut++];for(pt[Ae]=We;ut<Ge;)pt[++it]=Ve[ut++];return pt},x=1,S=2,k=3,A=4,$={__hamt_isEmpty:!0},I=function(he){return he===$||he&&he.__hamt_isEmpty},z=function(he,Ae,We,Ve){return{type:x,edit:he,hash:Ae,key:We,value:Ve,_modify:Q}},K=function(he,Ae,We){return{type:S,edit:he,hash:Ae,children:We,_modify:te}},D=function(he,Ae,We){return{type:k,edit:he,mask:Ae,children:We,_modify:P}},W=function(he,Ae,We){return{type:A,edit:he,size:Ae,children:We,_modify:me}},ie=function(he){return he===$||he.type===x||he.type===S},ae=function(he,Ae,We,Ve,Ge){for(var ft=[],ut=Ve,it=0,pt=0;ut;++pt)ut&1&&(ft[pt]=Ge[it++]),ut>>>=1;return ft[Ae]=We,W(he,it+1,ft)},q=function(he,Ae,We,Ve){for(var Ge=new Array(Ae-1),ft=0,ut=0,it=0,pt=Ve.length;it<pt;++it)if(it!==We){var Ot=Ve[it];Ot&&!I(Ot)&&(Ge[ft++]=Ot,ut|=1<<it)}return D(he,ut,Ge)},G=function fe(he,Ae,We,Ve,Ge,ft){if(We===Ge)return K(he,We,[ft,Ve]);var ut=p(Ae,We),it=p(Ae,Ge);return D(he,m(ut)|m(it),ut===it?[fe(he,Ae+r,We,Ve,Ge,ft)]:ut<it?[Ve,ft]:[ft,Ve])},J=function(he,Ae,We,Ve,Ge,ft,ut,it){for(var pt=Ge.length,Ot=0;Ot<pt;++Ot){var rn=Ge[Ot];if(We(ut,rn.key)){var Qt=rn.value,Yt=ft(Qt);return Yt===Qt?Ge:Yt===l?(--it.value,w(he,Ot,Ge)):y(he,Ot,z(Ae,Ve,ut,Yt),Ge)}}var br=ft();return br===l?Ge:(++it.value,y(he,pt,z(Ae,Ve,ut,br),Ge))},le=function(he,Ae){return he===Ae.edit},Q=function(he,Ae,We,Ve,Ge,ft,ut){if(Ae(ft,this.key)){var it=Ve(this.value);return it===this.value?this:it===l?(--ut.value,$):le(he,this)?(this.value=it,this):z(he,Ge,ft,it)}var pt=Ve();return pt===l?this:(++ut.value,G(he,We,this.hash,this,Ge,z(he,Ge,ft,pt)))},te=function(he,Ae,We,Ve,Ge,ft,ut){if(Ge===this.hash){var it=le(he,this),pt=J(it,he,Ae,this.hash,this.children,Ve,ft,ut);return pt===this.children?this:pt.length>1?K(he,this.hash,pt):pt[0]}var Ot=Ve();return Ot===l?this:(++ut.value,G(he,We,this.hash,this,Ge,z(he,Ge,ft,Ot)))},P=function(he,Ae,We,Ve,Ge,ft,ut){var it=this.mask,pt=this.children,Ot=p(We,Ge),rn=m(Ot),Qt=v(it,rn),Yt=it&rn,br=Yt?pt[Qt]:$,Sn=br._modify(he,Ae,We+r,Ve,Ge,ft,ut);if(br===Sn)return this;var Nr=le(he,this),_r=it,kr=void 0;if(Yt&&I(Sn)){if(_r&=~rn,!_r)return $;if(pt.length<=2&&ie(pt[Qt^1]))return pt[Qt^1];kr=w(Nr,Qt,pt)}else if(!Yt&&!I(Sn)){if(pt.length>=a)return ae(he,Ot,Sn,it,pt);_r|=rn,kr=b(Nr,Qt,Sn,pt)}else kr=y(Nr,Qt,Sn,pt);return Nr?(this.mask=_r,this.children=kr,this):D(he,_r,kr)},me=function(he,Ae,We,Ve,Ge,ft,ut){var it=this.size,pt=this.children,Ot=p(We,Ge),rn=pt[Ot],Qt=(rn||$)._modify(he,Ae,We+r,Ve,Ge,ft,ut);if(rn===Qt)return this;var Yt=le(he,this),br=void 0;if(I(rn)&&!I(Qt))++it,br=y(Yt,Ot,Qt,pt);else if(!I(rn)&&I(Qt)){if(--it,it<=s)return q(he,it,Ot,pt);br=y(Yt,Ot,$,pt)}else br=y(Yt,Ot,Qt,pt);return Yt?(this.size=it,this.children=br,this):W(he,it,br)};$._modify=function(fe,he,Ae,We,Ve,Ge,ft){var ut=We();return ut===l?$:(++ft.value,z(fe,Ve,Ge,ut))};function j(fe,he,Ae,We,Ve){this._editable=fe,this._edit=he,this._config=Ae,this._root=We,this._size=Ve}j.prototype.setTree=function(fe,he){return this._editable?(this._root=fe,this._size=he,this):fe===this._root?this:new j(this._editable,this._edit,this._config,fe,he)};var L=n.tryGetHash=function(fe,he,Ae,We){for(var Ve=We._root,Ge=0,ft=We._config.keyEq;;)switch(Ve.type){case x:return ft(Ae,Ve.key)?Ve.value:fe;case S:{if(he===Ve.hash)for(var ut=Ve.children,it=0,pt=ut.length;it<pt;++it){var Ot=ut[it];if(ft(Ae,Ot.key))return Ot.value}return fe}case k:{var rn=p(Ge,he),Qt=m(rn);if(Ve.mask&Qt){Ve=Ve.children[v(Ve.mask,Qt)],Ge+=r;break}return fe}case A:{if(Ve=Ve.children[p(Ge,he)],Ve){Ge+=r;break}return fe}default:return fe}};j.prototype.tryGetHash=function(fe,he,Ae){return L(fe,he,Ae,this)};var oe=n.tryGet=function(fe,he,Ae){return L(fe,Ae._config.hash(he),he,Ae)};j.prototype.tryGet=function(fe,he){return oe(fe,he,this)};var ue=n.getHash=function(fe,he,Ae){return L(void 0,fe,he,Ae)};j.prototype.getHash=function(fe,he){return ue(fe,he,this)},n.get=function(fe,he){return L(void 0,he._config.hash(fe),fe,he)},j.prototype.get=function(fe,he){return oe(he,fe,this)};var se=n.has=function(fe,he,Ae){return L(l,fe,he,Ae)!==l};j.prototype.hasHash=function(fe,he){return se(fe,he,this)};var Ee=n.has=function(fe,he){return se(he._config.hash(fe),fe,he)};j.prototype.has=function(fe){return Ee(fe,this)};var Re=function(he,Ae){return he===Ae};n.make=function(fe){return new j(0,0,{keyEq:fe&&fe.keyEq||Re,hash:fe&&fe.hash||f},$,0)},n.empty=n.make();var ke=n.isEmpty=function(fe){return fe&&!!I(fe._root)};j.prototype.isEmpty=function(){return ke(this)};var De=n.modifyHash=function(fe,he,Ae,We){var Ve={value:We._size},Ge=We._root._modify(We._editable?We._edit:NaN,We._config.keyEq,0,fe,he,Ae,Ve);return We.setTree(Ge,Ve.value)};j.prototype.modifyHash=function(fe,he,Ae){return De(Ae,fe,he,this)};var Me=n.modify=function(fe,he,Ae){return De(fe,Ae._config.hash(he),he,Ae)};j.prototype.modify=function(fe,he){return Me(he,fe,this)};var Be=n.setHash=function(fe,he,Ae,We){return De(u(Ae),fe,he,We)};j.prototype.setHash=function(fe,he,Ae){return Be(fe,he,Ae,this)};var Ue=n.set=function(fe,he,Ae){return Be(Ae._config.hash(fe),fe,he,Ae)};j.prototype.set=function(fe,he){return Ue(fe,he,this)};var Ke=u(l),He=n.removeHash=function(fe,he,Ae){return De(Ke,fe,he,Ae)};j.prototype.removeHash=j.prototype.deleteHash=function(fe,he){return He(fe,he,this)};var lt=n.remove=function(fe,he){return He(he._config.hash(fe),fe,he)};j.prototype.remove=j.prototype.delete=function(fe){return lt(fe,this)};var Xe=n.beginMutation=function(fe){return new j(fe._editable+1,fe._edit+1,fe._config,fe._root,fe._size)};j.prototype.beginMutation=function(){return Xe(this)};var nt=n.endMutation=function(fe){return fe._editable=fe._editable&&fe._editable-1,fe};j.prototype.endMutation=function(){return nt(this)};var mt=n.mutate=function(fe,he){var Ae=Xe(he);return fe(Ae),nt(Ae)};j.prototype.mutate=function(fe){return mt(fe,this)};var ge=function(he){return he&&$e(he[0],he[1],he[2],he[3],he[4])},$e=function(he,Ae,We,Ve,Ge){for(;We<he;){var ft=Ae[We++];if(ft&&!I(ft))return Te(ft,Ve,[he,Ae,We,Ve,Ge])}return ge(Ge)},Te=function(he,Ae,We){switch(he.type){case x:return{value:Ae(he),rest:We};case S:case A:case k:var Ve=he.children;return $e(Ve.length,Ve,0,Ae,We);default:return ge(We)}},Pe={done:!0};function U(fe){this.v=fe}U.prototype.next=function(){if(!this.v)return Pe;var fe=this.v;return this.v=ge(fe.rest),fe},U.prototype[Symbol.iterator]=function(){return this};var H=function(he,Ae){return new U(Te(he._root,Ae))},de=function(he){return[he.key,he.value]},Y=n.entries=function(fe){return H(fe,de)};j.prototype.entries=j.prototype[Symbol.iterator]=function(){return Y(this)};var Z=function(he){return he.key},re=n.keys=function(fe){return H(fe,Z)};j.prototype.keys=function(){return re(this)};var xe=function(he){return he.value},Se=n.values=j.prototype.values=function(fe){return H(fe,xe)};j.prototype.values=function(){return Se(this)};var _e=n.fold=function(fe,he,Ae){var We=Ae._root;if(We.type===x)return fe(he,We.value,We.key);for(var Ve=[We.children],Ge=void 0;Ge=Ve.pop();)for(var ft=0,ut=Ge.length;ft<ut;){var it=Ge[ft++];it&&it.type&&(it.type===x?he=fe(he,it.value,it.key):Ve.push(it.children))}return he};j.prototype.fold=function(fe,he){return _e(fe,he,this)};var et=n.forEach=function(fe,he){return _e(function(Ae,We,Ve){return fe(We,Ve,he)},null,he)};j.prototype.forEach=function(fe){return et(fe,this)};var tt=n.count=function(fe){return fe._size};j.prototype.count=function(){return tt(this)},Object.defineProperty(j.prototype,"size",{get:j.prototype.count}),e.exports?e.exports=n:(void 0).hamt=n});class sce{constructor(t){Dt(this,"_map",void 0),this._map=new Map(t==null?void 0:t.entries())}keys(){return this._map.keys()}entries(){return this._map.entries()}get(t){return this._map.get(t)}has(t){return this._map.has(t)}set(t,n){return this._map.set(t,n),this}delete(t){return this._map.delete(t),this}clone(){return h2(this)}toMap(){return new Map(this._map)}}class p2{constructor(t){if(Dt(this,"_hamt",ace.empty.beginMutation()),t instanceof p2){const n=t._hamt.endMutation();t._hamt=n.beginMutation(),this._hamt=n.beginMutation()}else if(t)for(const[n,r]of t.entries())this._hamt.set(n,r)}keys(){return this._hamt.keys()}entries(){return this._hamt.entries()}get(t){return this._hamt.get(t)}has(t){return this._hamt.has(t)}set(t,n){return this._hamt.set(t,n),this}delete(t){return this._hamt.delete(t),this}clone(){return h2(this)}toMap(){return new Map(this._hamt)}}function h2(e){return $n("recoil_hamt_2020")?new p2(e):new sce(e)}var lce={persistentMap:h2},uce=lce.persistentMap,cce=Object.freeze({__proto__:null,persistentMap:uce});function fce(e,...t){const n=new Set;e:for(const r of e){for(const i of t)if(i.has(r))continue e;n.add(r)}return n}var Fm=fce;function dce(e,t){const n=new Map;return e.forEach((r,i)=>{n.set(i,t(r,i))}),n}var S_=dce;function pce(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function hce(e){return{nodeDeps:S_(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:S_(e.nodeToNodeSubscriptions,t=>new Set(t))}}function FE(e,t,n,r){const{nodeDeps:i,nodeToNodeSubscriptions:o}=n,a=i.get(e);if(a&&r&&a!==r.nodeDeps.get(e))return;i.set(e,t);const s=a==null?t:Fm(t,a);for(const l of s)o.has(l)||o.set(l,new Set),Qn(o.get(l)).add(e);if(a){const l=Fm(a,t);for(const u of l){if(!o.has(u))return;const f=Qn(o.get(u));f.delete(e),f.size===0&&o.delete(u)}}}function gce(e,t,n,r){var i,o,a,s;const l=n.getState();r===l.currentTree.version||r===((i=l.nextTree)===null||i===void 0?void 0:i.version)||((o=l.previousTree)===null||o===void 0||o.version);const u=n.getGraph(r);if(FE(e,t,u),r===((a=l.previousTree)===null||a===void 0?void 0:a.version)){const d=n.getGraph(l.currentTree.version);FE(e,t,d,u)}if(r===((s=l.previousTree)===null||s===void 0?void 0:s.version)||r===l.currentTree.version){var f;const d=(f=l.nextTree)===null||f===void 0?void 0:f.version;if(d!==void 0){const p=n.getGraph(d);FE(e,t,p,u)}}}var Xv={cloneGraph:hce,graph:pce,saveDepsToStore:gce};let mce=0;const vce=()=>mce++;let yce=0;const bce=()=>yce++;let _ce=0;const xce=()=>_ce++;var Nx={getNextTreeStateVersion:vce,getNextStoreID:bce,getNextComponentID:xce};const{persistentMap:wF}=cce,{graph:wce}=Xv,{getNextTreeStateVersion:r7}=Nx;function i7(){const e=r7();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:wF(),nonvalidatedAtoms:wF()}}function Sce(){const e=i7();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(e.version,wce()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var o7={makeEmptyTreeState:i7,makeEmptyStoreState:Sce,getNextTreeStateVersion:r7};class a7{}function Cce(){return new a7}var Bx={RetentionZone:a7,retentionZone:Cce};function Ece(e,t){const n=new Set(e);return n.add(t),n}function kce(e,t){const n=new Set(e);return n.delete(t),n}function Tce(e,t,n){const r=new Map(e);return r.set(t,n),r}function Ace(e,t,n){const r=new Map(e);return r.set(t,n(r.get(t))),r}function $ce(e,t){const n=new Map(e);return n.delete(t),n}function Rce(e,t){const n=new Map(e);return t.forEach(r=>n.delete(r)),n}var s7={setByAddingToSet:Ece,setByDeletingFromSet:kce,mapBySettingInMap:Tce,mapByUpdatingInMap:Ace,mapByDeletingFromMap:$ce,mapByDeletingMultipleFromMap:Rce};function*Oce(e,t){let n=0;for(const r of e)t(r,n++)&&(yield r)}var g2=Oce;function Ice(e,t){return new Proxy(e,{get:(r,i)=>(!(i in r)&&i in t&&(r[i]=t[i]()),r[i]),ownKeys:r=>Object.keys(r)})}var l7=Ice;const{getNode:Zv,getNodeMaybe:Dce,recoilValuesForKeys:SF}=oo,{RetentionZone:CF}=Bx,{setByAddingToSet:Pce}=s7,Lce=Object.freeze(new Set);class Mce extends Error{}function Fce(e,t,n){if(!$n("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:r}=e.getState().retention;function i(o){let a=r.get(o);a||r.set(o,a=new Set),a.add(t)}if(n instanceof CF)i(n);else if(Array.isArray(n))for(const o of n)i(o);return()=>{if(!$n("recoil_memory_managament_2020"))return;const{retention:o}=e.getState();function a(s){const l=o.nodesRetainedByZone.get(s);l==null||l.delete(t),l&&l.size===0&&o.nodesRetainedByZone.delete(s)}if(n instanceof CF)a(n);else if(Array.isArray(n))for(const s of n)a(s)}}function m2(e,t,n,r){const i=e.getState();if(i.nodeCleanupFunctions.has(n))return;const o=Zv(n),a=Fce(e,n,o.retainedBy),s=o.init(e,t,r);i.nodeCleanupFunctions.set(n,()=>{s(),a()})}function Nce(e,t,n){m2(e,e.getState().currentTree,t,n)}function Bce(e,t){var n;const r=e.getState();(n=r.nodeCleanupFunctions.get(t))===null||n===void 0||n(),r.nodeCleanupFunctions.delete(t)}function jce(e,t,n){return m2(e,t,n,"get"),Zv(n).get(e,t)}function u7(e,t,n){return Zv(n).peek(e,t)}function zce(e,t,n){var r;const i=Dce(t);return i==null||(r=i.invalidate)===null||r===void 0||r.call(i,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,n),dirtyAtoms:Pce(e.dirtyAtoms,t)}}function Uce(e,t,n,r){const i=Zv(n);if(i.set==null)throw new Mce(`Attempt to set read-only RecoilValue: ${n}`);const o=i.set;return m2(e,t,n,"set"),o(e,t,r)}function Kce(e,t,n){const r=e.getState(),i=e.getGraph(t.version),o=Zv(n).nodeType;return l7({type:o},{loadable:()=>u7(e,t,n),isActive:()=>r.knownAtoms.has(n)||r.knownSelectors.has(n),isSet:()=>o==="selector"?!1:t.atomValues.has(n),isModified:()=>t.dirtyAtoms.has(n),deps:()=>{var a;return SF((a=i.nodeDeps.get(n))!==null&&a!==void 0?a:[])},subscribers:()=>{var a,s;return{nodes:SF(g2(c7(e,t,new Set([n])),l=>l!==n)),components:Fx((a=(s=r.nodeToComponentSubscriptions.get(n))===null||s===void 0?void 0:s.values())!==null&&a!==void 0?a:[],([l])=>({name:l}))}}})}function c7(e,t,n){const r=new Set,i=Array.from(n),o=e.getGraph(t.version);for(let s=i.pop();s;s=i.pop()){var a;r.add(s);const l=(a=o.nodeToNodeSubscriptions.get(s))!==null&&a!==void 0?a:Lce;for(const u of l)r.has(u)||i.push(u)}return r}var Gu={getNodeLoadable:jce,peekNodeLoadable:u7,setNodeValue:Uce,initializeNode:Nce,cleanUpNode:Bce,setUnvalidatedAtomValue_DEPRECATED:zce,peekNodeInfo:Kce,getDownstreamNodes:c7};let f7=null;function Wce(e){f7=e}function Vce(){var e;(e=f7)===null||e===void 0||e()}var d7={setInvalidateMemoizedSnapshot:Wce,invalidateMemoizedSnapshot:Vce};const{getDownstreamNodes:Hce,getNodeLoadable:p7,setNodeValue:qce}=Gu,{getNextComponentID:Gce}=Nx,{getNode:Yce,getNodeMaybe:h7}=oo,{DefaultValue:v2}=oo,{reactMode:Xce}=Yv,{AbstractRecoilValue:Zce,RecoilState:Jce,RecoilValueReadOnly:Qce,isRecoilValue:efe}=kp,{invalidateMemoizedSnapshot:tfe}=d7;function nfe(e,{key:t},n=e.getState().currentTree){var r,i;const o=e.getState();n.version===o.currentTree.version||n.version===((r=o.nextTree)===null||r===void 0?void 0:r.version)||(n.version,(i=o.previousTree)===null||i===void 0||i.version);const a=p7(e,n,t);return a.state==="loading"&&a.contents.catch(()=>{}),a}function rfe(e,t){const n=e.clone();return t.forEach((r,i)=>{r.state==="hasValue"&&r.contents instanceof v2?n.delete(i):n.set(i,r)}),n}function ife(e,t,{key:n},r){if(typeof r=="function"){const i=p7(e,t,n);if(i.state==="loading"){const o=`Tried to set atom or selector "${n}" using an updater function while the current state is pending, this is not currently supported.`;throw jt(o)}else if(i.state==="hasError")throw i.contents;return r(i.contents)}else return r}function ofe(e,t,n){if(n.type==="set"){const{recoilValue:i,valueOrUpdater:o}=n,a=ife(e,t,i,o),s=qce(e,t,i.key,a);for(const[l,u]of s.entries())CA(t,l,u)}else if(n.type==="setLoadable"){const{recoilValue:{key:i},loadable:o}=n;CA(t,i,o)}else if(n.type==="markModified"){const{recoilValue:{key:i}}=n;t.dirtyAtoms.add(i)}else if(n.type==="setUnvalidated"){var r;const{recoilValue:{key:i},unvalidatedValue:o}=n,a=h7(i);a==null||(r=a.invalidate)===null||r===void 0||r.call(a,t),t.atomValues.delete(i),t.nonvalidatedAtoms.set(i,o),t.dirtyAtoms.add(i)}else c2(`Unknown action ${n.type}`)}function CA(e,t,n){n.state==="hasValue"&&n.contents instanceof v2?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function g7(e,t){e.replaceState(n=>{const r=m7(n);for(const i of t)ofe(e,r,i);return v7(e,r),tfe(),r})}function jx(e,t){if(Nm.length){const n=Nm[Nm.length-1];let r=n.get(e);r||n.set(e,r=[]),r.push(t)}else g7(e,[t])}const Nm=[];function afe(){const e=new Map;return Nm.push(e),()=>{for(const[t,n]of e)g7(t,n);Nm.pop()}}function m7(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function v7(e,t){const n=Hce(e,t,t.dirtyAtoms);for(const o of n){var r,i;(r=h7(o))===null||r===void 0||(i=r.invalidate)===null||i===void 0||i.call(r,t)}}function y7(e,t,n){jx(e,{type:"set",recoilValue:t,valueOrUpdater:n})}function sfe(e,t,n){if(n instanceof v2)return y7(e,t,n);jx(e,{type:"setLoadable",recoilValue:t,loadable:n})}function lfe(e,t){jx(e,{type:"markModified",recoilValue:t})}function ufe(e,t,n){jx(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})}function cfe(e,{key:t},n,r=null){const i=Gce(),o=e.getState();o.nodeToComponentSubscriptions.has(t)||o.nodeToComponentSubscriptions.set(t,new Map),Qn(o.nodeToComponentSubscriptions.get(t)).set(i,[r??"<not captured>",n]);const a=Xce();if(a.early&&(a.mode==="LEGACY"||a.mode==="MUTABLE_SOURCE")){const s=e.getState().nextTree;s&&s.dirtyAtoms.has(t)&&n(s)}return{release:()=>{const s=e.getState(),l=s.nodeToComponentSubscriptions.get(t);l===void 0||!l.has(i)||(l.delete(i),l.size===0&&s.nodeToComponentSubscriptions.delete(t))}}}function ffe(e,t){var n;const{currentTree:r}=e.getState(),i=Yce(t.key);(n=i.clearCache)===null||n===void 0||n.call(i,e,r)}var Ns={RecoilValueReadOnly:Qce,AbstractRecoilValue:Zce,RecoilState:Jce,getRecoilValueAsLoadable:nfe,setRecoilValue:y7,setRecoilValueLoadable:sfe,markRecoilValueModified:lfe,setUnvalidatedRecoilValue:ufe,subscribeToRecoilValue:cfe,isRecoilValue:efe,applyAtomValueWrites:rfe,batchStart:afe,writeLoadableToTreeState:CA,invalidateDownstreams:v7,copyTreeState:m7,refreshRecoilValue:ffe};function dfe(e,t,n){const r=e.entries();let i=r.next();for(;!i.done;){const o=i.value;if(t.call(n,o[1],o[0],e))return!0;i=r.next()}return!1}var pfe=dfe;const{cleanUpNode:hfe}=Gu,{deleteNodeConfigIfPossible:gfe,getNode:b7}=oo,{RetentionZone:_7}=Bx,mfe=12e4,x7=new Set;function w7(e,t){const n=e.getState(),r=n.currentTree;if(n.nextTree)return;const i=new Set;for(const a of t)if(a instanceof _7)for(const s of _fe(n,a))i.add(s);else i.add(a);const o=vfe(e,i);for(const a of o)bfe(e,r,a)}function vfe(e,t){const n=e.getState(),r=n.currentTree,i=e.getGraph(r.version),o=new Set,a=new Set;return s(t),o;function s(l){const u=new Set,f=yfe(e,r,l,o,a);for(const v of f){var d;if(b7(v).retainedBy==="recoilRoot"){a.add(v);continue}if(((d=n.retention.referenceCounts.get(v))!==null&&d!==void 0?d:0)>0){a.add(v);continue}if(S7(v).some(w=>n.retention.referenceCounts.get(w))){a.add(v);continue}const y=i.nodeToNodeSubscriptions.get(v);if(y&&pfe(y,w=>a.has(w))){a.add(v);continue}o.add(v),u.add(v)}const p=new Set;for(const v of u)for(const y of(m=i.nodeDeps.get(v))!==null&&m!==void 0?m:x7){var m;o.has(y)||p.add(y)}p.size&&s(p)}}function yfe(e,t,n,r,i){const o=e.getGraph(t.version),a=[],s=new Set;for(;n.size>0;)l(Qn(n.values().next().value));return a;function l(u){if(r.has(u)||i.has(u)){n.delete(u);return}if(s.has(u))return;const f=o.nodeToNodeSubscriptions.get(u);if(f)for(const d of f)l(d);s.add(u),n.delete(u),a.push(u)}}function bfe(e,t,n){if(!$n("recoil_memory_managament_2020"))return;hfe(e,n);const r=e.getState();r.knownAtoms.delete(n),r.knownSelectors.delete(n),r.nodeTransactionSubscriptions.delete(n),r.retention.referenceCounts.delete(n);const i=S7(n);for(const l of i){var o;(o=r.retention.nodesRetainedByZone.get(l))===null||o===void 0||o.delete(n)}t.atomValues.delete(n),t.dirtyAtoms.delete(n),t.nonvalidatedAtoms.delete(n);const a=r.graphsByVersion.get(t.version);if(a){const l=a.nodeDeps.get(n);if(l!==void 0){a.nodeDeps.delete(n);for(const u of l){var s;(s=a.nodeToNodeSubscriptions.get(u))===null||s===void 0||s.delete(n)}}a.nodeToNodeSubscriptions.delete(n)}gfe(n)}function _fe(e,t){var n;return(n=e.retention.nodesRetainedByZone.get(t))!==null&&n!==void 0?n:x7}function S7(e){const t=b7(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof _7?[t]:t}function xfe(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):w7(e,new Set([t]))}function wfe(e,t,n){var r;if(!$n("recoil_memory_managament_2020"))return;const i=e.getState().retention.referenceCounts,o=((r=i.get(t))!==null&&r!==void 0?r:0)+n;o===0?C7(e,t):i.set(t,o)}function C7(e,t){if(!$n("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),xfe(e,t)}function Sfe(e){if(!$n("recoil_memory_managament_2020"))return;const t=e.getState();w7(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function Cfe(e){return e===void 0?"recoilRoot":e}var wf={SUSPENSE_TIMEOUT_MS:mfe,updateRetainCount:wfe,updateRetainCountToZero:C7,releaseScheduledRetainablesNow:Sfe,retainedByOptionWithDefault:Cfe};const{unstable_batchedUpdates:Efe}=vm;var kfe={unstable_batchedUpdates:Efe};const{unstable_batchedUpdates:Tfe}=kfe;var Afe={unstable_batchedUpdates:Tfe};const{batchStart:$fe}=Ns,{unstable_batchedUpdates:Rfe}=Afe;let y2=Rfe;const Ofe=e=>{y2=e},Ife=()=>y2,Dfe=e=>{y2(()=>{let t=()=>{};try{t=$fe(),e()}finally{t()}})};var zx={getBatcher:Ife,setBatcher:Ofe,batchUpdates:Dfe};function*Pfe(e){for(const t of e)for(const n of t)yield n}var E7=Pfe;const k7=typeof Window>"u"||typeof window>"u",Lfe=e=>!k7&&(e===window||e instanceof Window),Mfe=typeof navigator<"u"&&navigator.product==="ReactNative";var b2={isSSR:k7,isReactNative:Mfe,isWindow:Lfe};function Ffe(e,t){let n;return(...i)=>{n||(n={});const o=t(...i);return Object.hasOwnProperty.call(n,o)||(n[o]=e(...i)),n[o]}}function Nfe(e,t){let n,r;return(...o)=>{const a=t(...o);return n===a||(n=a,r=e(...o)),r}}function Bfe(e,t){let n,r;return[(...a)=>{const s=t(...a);return n===s||(n=s,r=e(...a)),r},()=>{n=null}]}var jfe={memoizeWithArgsHash:Ffe,memoizeOneWithArgsHash:Nfe,memoizeOneWithArgsHashAndInvalidation:Bfe};const{batchUpdates:EA}=zx,{initializeNode:zfe,peekNodeInfo:Ufe}=Gu,{graph:Kfe}=Xv,{getNextStoreID:Wfe}=Nx,{DEFAULT_VALUE:Vfe,recoilValues:EF,recoilValuesForKeys:kF}=oo,{AbstractRecoilValue:Hfe,getRecoilValueAsLoadable:qfe,setRecoilValue:TF,setUnvalidatedRecoilValue:Gfe}=Ns,{updateRetainCount:Sb}=wf,{setInvalidateMemoizedSnapshot:Yfe}=d7,{getNextTreeStateVersion:Xfe,makeEmptyStoreState:Zfe}=o7,{isSSR:Jfe}=b2,{memoizeOneWithArgsHashAndInvalidation:Qfe}=jfe;class Ux{constructor(t,n){Dt(this,"_store",void 0),Dt(this,"_refCount",1),Dt(this,"getLoadable",r=>(this.checkRefCount_INTERNAL(),qfe(this._store,r))),Dt(this,"getPromise",r=>(this.checkRefCount_INTERNAL(),this.getLoadable(r).toPromise())),Dt(this,"getNodes_UNSTABLE",r=>{if(this.checkRefCount_INTERNAL(),(r==null?void 0:r.isModified)===!0){if((r==null?void 0:r.isInitialized)===!1)return[];const a=this._store.getState().currentTree;return kF(a.dirtyAtoms)}const i=this._store.getState().knownAtoms,o=this._store.getState().knownSelectors;return(r==null?void 0:r.isInitialized)==null?EF.values():r.isInitialized===!0?kF(E7([i,o])):g2(EF.values(),({key:a})=>!i.has(a)&&!o.has(a))}),Dt(this,"getInfo_UNSTABLE",({key:r})=>(this.checkRefCount_INTERNAL(),Ufe(this._store,this._store.getState().currentTree,r))),Dt(this,"map",r=>{this.checkRefCount_INTERNAL();const i=new kA(this,EA);return r(i),i}),Dt(this,"asyncMap",async r=>{this.checkRefCount_INTERNAL();const i=new kA(this,EA);return i.retain(),await r(i),i.autoRelease_INTERNAL(),i}),this._store={storeID:Wfe(),parentStoreID:n,getState:()=>t,replaceState:r=>{t.currentTree=r(t.currentTree)},getGraph:r=>{const i=t.graphsByVersion;if(i.has(r))return Qn(i.get(r));const o=Kfe();return i.set(r,o),o},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw jt("Cannot subscribe to Snapshots")}};for(const r of this._store.getState().knownAtoms)zfe(this._store,r,"get"),Sb(this._store,r,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){Jfe||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,this._refCount===0){if(this._store.getState().nodeCleanupFunctions.forEach(t=>t()),this._store.getState().nodeCleanupFunctions.clear(),!$n("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){$n("recoil_memory_managament_2020")&&this._refCount<=0}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function T7(e,t,n=!1){const r=e.getState(),i=n?Xfe():t.version;return{currentTree:{version:n?i:t.version,stateID:n?i:t.stateID,transactionMetadata:{...t.transactionMetadata},dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(r.knownAtoms),knownSelectors:new Set(r.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(i,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(Fx(r.nodeCleanupFunctions.entries(),([o])=>[o,()=>{}]))}}function ede(e){const t=new Ux(Zfe());return e!=null?t.map(e):t}const[AF,A7]=Qfe((e,t)=>{var n;const r=e.getState(),i=t==="latest"?(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree:Qn(r.previousTree);return new Ux(T7(e,i),e.storeID)},(e,t)=>{var n,r;return String(t)+String(e.storeID)+String((n=e.getState().nextTree)===null||n===void 0?void 0:n.version)+String(e.getState().currentTree.version)+String((r=e.getState().previousTree)===null||r===void 0?void 0:r.version)});Yfe(A7);function tde(e,t="latest"){const n=AF(e,t);return n.isRetained()?n:(A7(),AF(e,t))}class kA extends Ux{constructor(t,n){super(T7(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),Dt(this,"_batch",void 0),Dt(this,"set",(r,i)=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();this._batch(()=>{Sb(o,r.key,1),TF(this.getStore_INTERNAL(),r,i)})}),Dt(this,"reset",r=>{this.checkRefCount_INTERNAL();const i=this.getStore_INTERNAL();this._batch(()=>{Sb(i,r.key,1),TF(this.getStore_INTERNAL(),r,Vfe)})}),Dt(this,"setUnvalidatedAtomValues_DEPRECATED",r=>{this.checkRefCount_INTERNAL();const i=this.getStore_INTERNAL();EA(()=>{for(const[o,a]of r.entries())Sb(i,o,1),Gfe(i,new Hfe(o),a)})}),this._batch=n}}var Kx={Snapshot:Ux,MutableSnapshot:kA,freshSnapshot:ede,cloneSnapshot:tde},nde=Kx.Snapshot,rde=Kx.MutableSnapshot,ide=Kx.freshSnapshot,ode=Kx.cloneSnapshot,Wx=Object.freeze({__proto__:null,Snapshot:nde,MutableSnapshot:rde,freshSnapshot:ide,cloneSnapshot:ode});function ade(...e){const t=new Set;for(const n of e)for(const r of n)t.add(r);return t}var sde=ade;const{useRef:lde}=ht;function ude(e){const t=lde(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var $F=ude;const{getNextTreeStateVersion:cde,makeEmptyStoreState:$7}=o7,{cleanUpNode:fde,getDownstreamNodes:dde,initializeNode:pde,setNodeValue:hde,setUnvalidatedAtomValue_DEPRECATED:gde}=Gu,{graph:mde}=Xv,{cloneGraph:vde}=Xv,{getNextStoreID:R7}=Nx,{createMutableSource:NE,reactMode:O7}=Yv,{applyAtomValueWrites:yde}=Ns,{releaseScheduledRetainablesNow:I7}=wf,{freshSnapshot:bde}=Wx,{useCallback:_de,useContext:D7,useEffect:TA,useMemo:xde,useRef:wde,useState:Sde}=ht;function Lg(){throw jt("This component must be used inside a <RecoilRoot> component.")}const P7=Object.freeze({storeID:R7(),getState:Lg,replaceState:Lg,getGraph:Lg,subscribeToTransactions:Lg,addTransactionMetadata:Lg});let AA=!1;function RF(e){if(AA)throw jt("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const t=e.getState();if(t.nextTree===null){$n("recoil_memory_managament_2020")&&$n("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&I7(e);const n=t.currentTree.version,r=cde();t.nextTree={...t.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(r,vde(Qn(t.graphsByVersion.get(n))))}}const L7=ht.createContext({current:P7}),Vx=()=>D7(L7),M7=ht.createContext(null);function Cde(){return D7(M7)}function _2(e,t,n){const r=dde(e,n,n.dirtyAtoms);for(const i of r){const o=t.nodeToComponentSubscriptions.get(i);if(o)for(const[a,[s,l]]of o)l(n)}}function F7(e){const t=e.getState(),n=t.currentTree,r=n.dirtyAtoms;if(r.size){for(const[i,o]of t.nodeTransactionSubscriptions)if(r.has(i))for(const[a,s]of o)s(e);for(const[i,o]of t.transactionSubscriptions)o(e);(!O7().early||t.suspendedComponentResolvers.size>0)&&(_2(e,t,n),t.suspendedComponentResolvers.forEach(i=>i()),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach(i=>i(n)),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function Ede(e){const t=e.getState();t.commitDepth++;try{const{nextTree:n}=t;if(n==null)return;t.previousTree=t.currentTree,t.currentTree=n,t.nextTree=null,F7(e),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):c2("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,$n("recoil_memory_managament_2020")&&n==null&&I7(e)}finally{t.commitDepth--}}function kde({setNotifyBatcherOfChange:e}){const t=Vx(),[,n]=Sde([]);return e(()=>n({})),TA(()=>(e(()=>n({})),()=>{e(()=>{})}),[e]),TA(()=>{ice.enqueueExecution("Batcher",()=>{Ede(t.current)})}),null}function Tde(e,t){const n=$7();return t({set:(r,i)=>{const o=n.currentTree,a=hde(e,o,r.key,i),s=new Set(a.keys()),l=o.nonvalidatedAtoms.clone();for(const u of s)l.delete(u);n.currentTree={...o,dirtyAtoms:sde(o.dirtyAtoms,s),atomValues:yde(o.atomValues,a),nonvalidatedAtoms:l}},setUnvalidatedAtomValues:r=>{r.forEach((i,o)=>{n.currentTree=gde(n.currentTree,o,i)})}}),n}function Ade(e){const t=bde(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach(r=>r()),n.nodeCleanupFunctions.clear(),n}let OF=0;function $de({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){let i;const o=m=>{const v=i.current.graphsByVersion;if(v.has(m))return Qn(v.get(m));const y=mde();return v.set(m,y),y},a=(m,v)=>{if(v==null){const{transactionSubscriptions:y}=d.current.getState(),w=OF++;return y.set(w,m),{release:()=>{y.delete(w)}}}else{const{nodeTransactionSubscriptions:y}=d.current.getState();y.has(v)||y.set(v,new Map);const w=OF++;return Qn(y.get(v)).set(w,m),{release:()=>{const b=y.get(v);b&&(b.delete(w),b.size===0&&y.delete(v))}}}},s=m=>{RF(d.current);for(const v of Object.keys(m))Qn(d.current.getState().nextTree).transactionMetadata[v]=m[v]},l=m=>{RF(d.current);const v=Qn(i.current.nextTree);let y;try{AA=!0,y=m(v)}finally{AA=!1}y!==v&&(i.current.nextTree=y,O7().early&&_2(d.current,i.current,y),Qn(u.current)())},u=wde(null),f=_de(m=>{u.current=m},[u]),d=$F(()=>n??{storeID:R7(),getState:()=>i.current,replaceState:l,getGraph:o,subscribeToTransactions:a,addTransactionMetadata:s});n!=null&&(d.current=n),i=$F(()=>e!=null?Tde(d.current,e):t!=null?Ade(t):$7());const p=xde(()=>NE==null?void 0:NE(i,()=>i.current.currentTree.version),[i]);return TA(()=>{const m=d.current;for(const v of new Set(m.getState().knownAtoms))pde(m,v,"get");return()=>{for(const v of m.getState().knownAtoms)fde(m,v)}},[d]),ht.createElement(L7.Provider,{value:d},ht.createElement(M7.Provider,{value:p},ht.createElement(kde,{setNotifyBatcherOfChange:f}),r))}function Rde(e){const{override:t,...n}=e,r=Vx();return t===!1&&r.current!==P7?e.children:ht.createElement($de,n)}function Ode(){return Vx().current.storeID}var Ll={RecoilRoot:Rde,useStoreRef:Vx,useRecoilMutableSource:Cde,useRecoilStoreID:Ode,notifyComponents_FOR_TESTING:_2,sendEndOfBatchNotifications_FOR_TESTING:F7};function Ide(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n++)if(e[n]!==t[n])return!1;return!0}var Dde=Ide;const{useEffect:Pde,useRef:Lde}=ht;function Mde(e){const t=Lde();return Pde(()=>{t.current=e}),t.current}var N7=Mde;const{useStoreRef:Fde}=Ll,{SUSPENSE_TIMEOUT_MS:Nde}=wf,{updateRetainCount:Mg}=wf,{RetentionZone:Bde}=Bx,{useEffect:jde,useRef:zde}=ht,{isSSR:IF}=b2;function Ude(e){if($n("recoil_memory_managament_2020"))return Kde(e)}function Kde(e){const n=(Array.isArray(e)?e:[e]).map(a=>a instanceof Bde?a:a.key),r=Fde();jde(()=>{if(!$n("recoil_memory_managament_2020"))return;const a=r.current;if(i.current&&!IF)window.clearTimeout(i.current),i.current=null;else for(const s of n)Mg(a,s,1);return()=>{for(const s of n)Mg(a,s,-1)}},[r,...n]);const i=zde(),o=N7(n);if(!IF&&(o===void 0||!Dde(o,n))){const a=r.current;for(const s of n)Mg(a,s,1);if(o)for(const s of o)Mg(a,s,-1);i.current&&window.clearTimeout(i.current),i.current=window.setTimeout(()=>{i.current=null;for(const s of n)Mg(a,s,-1)},Nde)}}var x2=Ude;function Wde(){return"<component name not available>"}var Jv=Wde;const{batchUpdates:Vde}=zx,{DEFAULT_VALUE:B7}=oo,{currentRendererSupportsUseSyncExternalStore:Hde,reactMode:eh,useMutableSource:qde,useSyncExternalStore:Gde}=Yv,{useRecoilMutableSource:Yde,useStoreRef:Bs}=Ll,{AbstractRecoilValue:$A,getRecoilValueAsLoadable:Qv,setRecoilValue:C_,setUnvalidatedRecoilValue:Xde,subscribeToRecoilValue:Tp}=Ns,{useCallback:Yi,useEffect:Ap,useMemo:j7,useRef:Bm,useState:w2}=ht,{setByAddingToSet:Zde}=s7;function S2(e,t,n){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(i=>{n.current.getState().suspendedComponentResolvers.add(i)}):e.state==="hasError"?e.contents:jt(`Invalid value of loadable atom "${t.key}"`)}function Jde(){const e=Jv(),t=Bs(),[,n]=w2([]),r=Bm(new Set);r.current=new Set;const i=Bm(new Set),o=Bm(new Map),a=Yi(l=>{const u=o.current.get(l);u&&(u.release(),o.current.delete(l))},[o]),s=Yi((l,u)=>{o.current.has(u)&&n([])},[]);return Ap(()=>{const l=t.current;Fm(r.current,i.current).forEach(u=>{if(o.current.has(u))return;const f=Tp(l,new $A(u),p=>s(p,u),e);o.current.set(u,f),l.getState().nextTree?l.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{s(l.getState(),u)}):s(l.getState(),u)}),Fm(i.current,r.current).forEach(u=>{a(u)}),i.current=r.current}),Ap(()=>{const l=o.current;return Fm(r.current,new Set(l.keys())).forEach(u=>{const f=Tp(t.current,new $A(u),d=>s(d,u),e);l.set(u,f)}),()=>l.forEach((u,f)=>a(f))},[e,t,a,s]),j7(()=>{function l(v){return y=>{C_(t.current,v,y)}}function u(v){return()=>C_(t.current,v,B7)}function f(v){var y;r.current.has(v.key)||(r.current=Zde(r.current,v.key));const w=t.current.getState();return Qv(t.current,v,eh().early&&(y=w.nextTree)!==null&&y!==void 0?y:w.currentTree)}function d(v){const y=f(v);return S2(y,v,t)}function p(v){return[d(v),l(v)]}function m(v){return[f(v),l(v)]}return{getRecoilValue:d,getRecoilValueLoadable:f,getRecoilState:p,getRecoilStateLoadable:m,getSetRecoilState:l,getResetRecoilState:u}},[r,t])}const Qde={current:0};function epe(e){const t=Bs(),n=Jv(),r=Yi(()=>{var s;const l=t.current,u=l.getState(),f=eh().early&&(s=u.nextTree)!==null&&s!==void 0?s:u.currentTree;return{loadable:Qv(l,e,f),key:e.key}},[t,e]),i=Yi(s=>{let l;return()=>{var u,f;const d=s();return(u=l)!==null&&u!==void 0&&u.loadable.is(d.loadable)&&((f=l)===null||f===void 0?void 0:f.key)===d.key?l:(l=d,d)}},[]),o=j7(()=>i(r),[r,i]),a=Yi(s=>{const l=t.current;return Tp(l,e,s,n).release},[t,e,n]);return Gde(a,o,o).loadable}function tpe(e){const t=Bs(),n=Yi(()=>{var u;const f=t.current,d=f.getState(),p=eh().early&&(u=d.nextTree)!==null&&u!==void 0?u:d.currentTree;return Qv(f,e,p)},[t,e]),r=Yi(()=>n(),[n]),i=Jv(),o=Yi((u,f)=>{const d=t.current;return Tp(d,e,()=>{if(!$n("recoil_suppress_rerender_in_callback"))return f();const m=n();l.current.is(m)||f(),l.current=m},i).release},[t,e,i,n]),a=Yde();if(a==null)throw jt("Recoil hooks must be used in components contained within a <RecoilRoot> component.");const s=qde(a,r,o),l=Bm(s);return Ap(()=>{l.current=s}),s}function RA(e){const t=Bs(),n=Jv(),r=Yi(()=>{var l;const u=t.current,f=u.getState(),d=eh().early&&(l=f.nextTree)!==null&&l!==void 0?l:f.currentTree;return Qv(u,e,d)},[t,e]),i=Yi(()=>({loadable:r(),key:e.key}),[r,e.key]),o=Yi(l=>{const u=i();return l.loadable.is(u.loadable)&&l.key===u.key?l:u},[i]);Ap(()=>{const l=Tp(t.current,e,u=>{s(o)},n);return s(o),l.release},[n,e,t,o]);const[a,s]=w2(i);return a.key!==e.key?i().loadable:a.loadable}function npe(e){const t=Bs(),[,n]=w2([]),r=Jv(),i=Yi(()=>{var s;const l=t.current,u=l.getState(),f=eh().early&&(s=u.nextTree)!==null&&s!==void 0?s:u.currentTree;return Qv(l,e,f)},[t,e]),o=i(),a=Bm(o);return Ap(()=>{a.current=o}),Ap(()=>{const s=t.current,l=s.getState(),u=Tp(s,e,d=>{var p;if(!$n("recoil_suppress_rerender_in_callback"))return n([]);const m=i();(p=a.current)!==null&&p!==void 0&&p.is(m)||n(m),a.current=m},r);if(l.nextTree)s.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{a.current=null,n([])});else{var f;if(!$n("recoil_suppress_rerender_in_callback"))return n([]);const d=i();(f=a.current)!==null&&f!==void 0&&f.is(d)||n(d),a.current=d}return u.release},[r,i,e,t]),o}function C2(e){return $n("recoil_memory_managament_2020")&&x2(e),{TRANSITION_SUPPORT:RA,SYNC_EXTERNAL_STORE:Hde()?epe:RA,MUTABLE_SOURCE:tpe,LEGACY:npe}[eh().mode](e)}function z7(e){const t=Bs(),n=C2(e);return S2(n,e,t)}function Hx(e){const t=Bs();return Yi(n=>{C_(t.current,e,n)},[t,e])}function rpe(e){const t=Bs();return Yi(()=>{C_(t.current,e,B7)},[t,e])}function ipe(e){return[z7(e),Hx(e)]}function ope(e){return[C2(e),Hx(e)]}function ape(){const e=Bs();return(t,n={})=>{Vde(()=>{e.current.addTransactionMetadata(n),t.forEach((r,i)=>Xde(e.current,new $A(i),r))})}}function U7(e){return $n("recoil_memory_managament_2020")&&x2(e),RA(e)}function K7(e){const t=Bs(),n=U7(e);return S2(n,e,t)}function spe(e){return[K7(e),Hx(e)]}var lpe={recoilComponentGetRecoilValueCount_FOR_TESTING:Qde,useRecoilInterface:Jde,useRecoilState:ipe,useRecoilStateLoadable:ope,useRecoilValue:z7,useRecoilValueLoadable:C2,useResetRecoilState:rpe,useSetRecoilState:Hx,useSetUnvalidatedAtomValues:ape,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:U7,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:K7,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:spe};function upe(e,t){const n=new Map;for(const[r,i]of e)t(i,r)&&n.set(r,i);return n}var cpe=upe;function fpe(e,t){const n=new Set;for(const r of e)t(r)&&n.add(r);return n}var dpe=fpe;function ppe(...e){const t=new Map;for(let n=0;n<e.length;n++){const r=e[n].keys();let i;for(;!(i=r.next()).done;)t.set(i.value,e[n].get(i.value))}return t}var hpe=ppe;const{batchUpdates:gpe}=zx,{DEFAULT_VALUE:mpe,getNode:W7,nodes:vpe}=oo,{useStoreRef:E2}=Ll,{AbstractRecoilValue:ype,setRecoilValueLoadable:bpe}=Ns,{SUSPENSE_TIMEOUT_MS:_pe}=wf,{cloneSnapshot:E_}=Wx,{useCallback:qx,useEffect:V7,useRef:DF,useState:xpe}=ht,{isSSR:PF}=b2;function Gx(e){const t=E2();V7(()=>t.current.subscribeToTransactions(e).release,[e,t])}function LF(e){const t=e.atomValues.toMap(),n=S_(cpe(t,(r,i)=>{const a=W7(i).persistence_UNSTABLE;return a!=null&&a.type!=="none"&&r.state==="hasValue"}),r=>r.contents);return hpe(e.nonvalidatedAtoms.toMap(),n)}function wpe(e){Gx(qx(t=>{let n=t.getState().previousTree;const r=t.getState().currentTree;n||(n=t.getState().currentTree);const i=LF(r),o=LF(n),a=S_(vpe,l=>{var u,f,d,p;return{persistence_UNSTABLE:{type:(u=(f=l.persistence_UNSTABLE)===null||f===void 0?void 0:f.type)!==null&&u!==void 0?u:"none",backButton:(d=(p=l.persistence_UNSTABLE)===null||p===void 0?void 0:p.backButton)!==null&&d!==void 0?d:!1}}}),s=dpe(r.dirtyAtoms,l=>i.has(l)||o.has(l));e({atomValues:i,previousAtomValues:o,atomInfo:a,modifiedAtoms:s,transactionMetadata:{...r.transactionMetadata}})},[e]))}function Spe(e){Gx(qx(t=>{const n=E_(t,"latest"),r=E_(t,"previous");e({snapshot:n,previousSnapshot:r})},[e]))}function Cpe(){const e=E2(),[t,n]=xpe(()=>E_(e.current)),r=N7(t),i=DF(),o=DF();if(Gx(qx(s=>n(E_(s)),[])),V7(()=>{const s=t.retain();if(i.current&&!PF){var l;window.clearTimeout(i.current),i.current=null,(l=o.current)===null||l===void 0||l.call(o),o.current=null}return()=>{window.setTimeout(s,10)}},[t]),r!==t&&!PF){if(i.current){var a;window.clearTimeout(i.current),i.current=null,(a=o.current)===null||a===void 0||a.call(o),o.current=null}o.current=t.retain(),i.current=window.setTimeout(()=>{var s;i.current=null,(s=o.current)===null||s===void 0||s.call(o),o.current=null},_pe)}return t}function H7(e,t){var n;const r=e.getState(),i=(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree,o=t.getStore_INTERNAL().getState().currentTree;gpe(()=>{const a=new Set;for(const u of[i.atomValues.keys(),o.atomValues.keys()])for(const f of u){var s,l;((s=i.atomValues.get(f))===null||s===void 0?void 0:s.contents)!==((l=o.atomValues.get(f))===null||l===void 0?void 0:l.contents)&&W7(f).shouldRestoreFromSnapshots&&a.add(f)}a.forEach(u=>{bpe(e,new ype(u),o.atomValues.has(u)?Qn(o.atomValues.get(u)):mpe)}),e.replaceState(u=>({...u,stateID:t.getID()}))})}function Epe(){const e=E2();return qx(t=>H7(e.current,t),[e])}var q7={useRecoilSnapshot:Cpe,gotoSnapshot:H7,useGotoRecoilSnapshot:Epe,useRecoilTransactionObserver:Spe,useTransactionObservation_DEPRECATED:wpe,useTransactionSubscription_DEPRECATED:Gx};const{peekNodeInfo:kpe}=Gu,{useStoreRef:Tpe}=Ll;function Ape(){const e=Tpe();return({key:t})=>kpe(e.current,e.current.getState().currentTree,t)}var $pe=Ape;const{reactMode:Rpe}=Yv,{RecoilRoot:Ope,useStoreRef:Ipe}=Ll,{useMemo:Dpe}=ht;function Ppe(){Rpe().mode==="MUTABLE_SOURCE"&&console.warn("Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode. Please consider upgrading to recoil_sync_external_store mode.");const e=Ipe().current;return Dpe(()=>{function t({children:n}){return ht.createElement(Ope,{store_INTERNAL:e},n)}return t},[e])}var Lpe=Ppe;const{loadableWithValue:Mpe}=Gv,{initializeNode:Fpe}=Gu,{DEFAULT_VALUE:Npe,getNode:Bpe}=oo,{copyTreeState:jpe,getRecoilValueAsLoadable:zpe,invalidateDownstreams:Upe,writeLoadableToTreeState:Kpe}=Ns;function MF(e){return Bpe(e.key).nodeType==="atom"}class Wpe{constructor(t,n){Dt(this,"_store",void 0),Dt(this,"_treeState",void 0),Dt(this,"_changes",void 0),Dt(this,"get",r=>{if(this._changes.has(r.key))return this._changes.get(r.key);if(!MF(r))throw jt("Reading selectors within atomicUpdate is not supported");const i=zpe(this._store,r,this._treeState);if(i.state==="hasValue")return i.contents;throw i.state==="hasError"?i.contents:jt(`Expected Recoil atom ${r.key} to have a value, but it is in a loading state.`)}),Dt(this,"set",(r,i)=>{if(!MF(r))throw jt("Setting selectors within atomicUpdate is not supported");if(typeof i=="function"){const o=this.get(r);this._changes.set(r.key,i(o))}else Fpe(this._store,r.key,"set"),this._changes.set(r.key,i)}),Dt(this,"reset",r=>{this.set(r,Npe)}),this._store=t,this._treeState=n,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=jpe(this._treeState);for(const[n,r]of this._changes)Kpe(t,n,Mpe(r));return Upe(this._store,t),t}}function Vpe(e){return t=>{e.replaceState(n=>{const r=new Wpe(e,n);return t(r),r.newTreeState_INTERNAL()})}}var Hpe={atomicUpdater:Vpe},qpe=Hpe.atomicUpdater,G7=Object.freeze({__proto__:null,atomicUpdater:qpe});function Gpe(e,t){if(!e)throw new Error(t)}var Ype=Gpe,ym=Ype;const{atomicUpdater:Xpe}=G7,{batchUpdates:Zpe}=zx,{DEFAULT_VALUE:Jpe}=oo,{useStoreRef:Qpe}=Ll,{refreshRecoilValue:ehe,setRecoilValue:FF}=Ns,{cloneSnapshot:the}=Wx,{gotoSnapshot:nhe}=q7,{useCallback:rhe}=ht;class Y7{}const ihe=new Y7;function X7(e,t,n,r){let i=ihe,o;if(Zpe(()=>{const s="useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";if(typeof t!="function")throw jt(s);const l=l7({...r??{},set:(f,d)=>FF(e,f,d),reset:f=>FF(e,f,Jpe),refresh:f=>ehe(e,f),gotoSnapshot:f=>nhe(e,f),transact_UNSTABLE:f=>Xpe(e)(f)},{snapshot:()=>{const f=the(e);return o=f.retain(),f}}),u=t(l);if(typeof u!="function")throw jt(s);i=u(...n)}),i instanceof Y7&&ym(!1),Jn(i))i.finally(()=>{var s;(s=o)===null||s===void 0||s()});else{var a;(a=o)===null||a===void 0||a()}return i}function ohe(e,t){const n=Qpe();return rhe((...r)=>X7(n.current,e,r),t!=null?[...t,n]:void 0)}var Z7={recoilCallback:X7,useRecoilCallback:ohe};const{useStoreRef:ahe}=Ll,{refreshRecoilValue:she}=Ns,{useCallback:lhe}=ht;function uhe(e){const t=ahe();return lhe(()=>{const n=t.current;she(n,e)},[e,t])}var che=uhe;const{atomicUpdater:fhe}=G7,{useStoreRef:dhe}=Ll,{useMemo:phe}=ht;function hhe(e,t){const n=dhe();return phe(()=>(...r)=>{fhe(n.current)(o=>{e(o)(...r)})},t!=null?[...t,n]:void 0)}var ghe=hhe;class mhe{constructor(t){Dt(this,"value",void 0),this.value=t}}var vhe={WrappedValue:mhe},yhe=vhe.WrappedValue,J7=Object.freeze({__proto__:null,WrappedValue:yhe});const{isFastRefreshEnabled:bhe}=Yv;class NF extends Error{}class _he{constructor(t){var n,r,i;Dt(this,"_name",void 0),Dt(this,"_numLeafs",void 0),Dt(this,"_root",void 0),Dt(this,"_onHit",void 0),Dt(this,"_onSet",void 0),Dt(this,"_mapNodeValue",void 0),this._name=t==null?void 0:t.name,this._numLeafs=0,this._root=null,this._onHit=(n=t==null?void 0:t.onHit)!==null&&n!==void 0?n:()=>{},this._onSet=(r=t==null?void 0:t.onSet)!==null&&r!==void 0?r:()=>{},this._mapNodeValue=(i=t==null?void 0:t.mapNodeValue)!==null&&i!==void 0?i:o=>o}size(){return this._numLeafs}root(){return this._root}get(t,n){var r;return(r=this.getLeafNode(t,n))===null||r===void 0?void 0:r.value}getLeafNode(t,n){if(this._root==null)return;let r=this._root;for(;r;){if(n==null||n.onNodeVisit(r),r.type==="leaf")return this._onHit(r),r;const i=this._mapNodeValue(t(r.nodeKey));r=r.branches.get(i)}}set(t,n,r){const i=()=>{var o,a,s,l;let u,f;for(const[w,b]of t){var d,p,m;const x=this._root;if((x==null?void 0:x.type)==="leaf")throw this.invalidCacheError();const S=u;if(u=S?S.branches.get(f):x,u=(d=u)!==null&&d!==void 0?d:{type:"branch",nodeKey:w,parent:S,branches:new Map,branchKey:f},u.type!=="branch"||u.nodeKey!==w)throw this.invalidCacheError();S==null||S.branches.set(f,u),r==null||(p=r.onNodeVisit)===null||p===void 0||p.call(r,u),f=this._mapNodeValue(b),this._root=(m=this._root)!==null&&m!==void 0?m:u}const v=u?(o=u)===null||o===void 0?void 0:o.branches.get(f):this._root;if(v!=null&&(v.type!=="leaf"||v.branchKey!==f))throw this.invalidCacheError();const y={type:"leaf",value:n,parent:u,branchKey:f};(a=u)===null||a===void 0||a.branches.set(f,y),this._root=(s=this._root)!==null&&s!==void 0?s:y,this._numLeafs++,this._onSet(y),r==null||(l=r.onNodeVisit)===null||l===void 0||l.call(r,y)};try{i()}catch(o){if(o instanceof NF)this.clear(),i();else throw o}}delete(t){const n=this.root();if(!n)return!1;if(t===n)return this._root=null,this._numLeafs=0,!0;let r=t.parent,i=t.branchKey;for(;r;){var o;if(r.branches.delete(i),r===n)return r.branches.size===0?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(r.branches.size>0)break;i=(o=r)===null||o===void 0?void 0:o.branchKey,r=r.parent}for(;r!==n;r=r.parent)if(r==null)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const t=bhe()?"Possible Fast Refresh module reload detected. This may also be caused by an selector returning inconsistent values. Resetting cache.":"Invalid cache values. This happens when selectors do not return consistent values for the same input dependency values. That may also be caused when using Fast Refresh to change a selector implementation. Resetting cache.";throw c2(t+(this._name!=null?` - ${this._name}`:"")),new NF}}var xhe={TreeCache:_he},whe=xhe.TreeCache,Q7=Object.freeze({__proto__:null,TreeCache:whe});class She{constructor(t){var n;Dt(this,"_maxSize",void 0),Dt(this,"_size",void 0),Dt(this,"_head",void 0),Dt(this,"_tail",void 0),Dt(this,"_map",void 0),Dt(this,"_keyMapper",void 0),this._maxSize=t.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(n=t.mapKey)!==null&&n!==void 0?n:r=>r}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(t){return this._map.has(this._keyMapper(t))}get(t){const n=this._keyMapper(t),r=this._map.get(n);if(r)return this.set(t,r.value),r.value}set(t,n){const r=this._keyMapper(t);this._map.get(r)&&this.delete(t);const o=this.head(),a={key:t,right:o,left:null,value:n};o?o.left=a:this._tail=a,this._map.set(r,a),this._head=a,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const t=this.tail();t&&this.delete(t.key)}delete(t){const n=this._keyMapper(t);if(!this._size||!this._map.has(n))return;const r=Qn(this._map.get(n)),i=r.right,o=r.left;i&&(i.left=r.left),o&&(o.right=r.right),r===this.head()&&(this._head=i),r===this.tail()&&(this._tail=o),this._map.delete(n),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var Che={LRUCache:She},Ehe=Che.LRUCache,eK=Object.freeze({__proto__:null,LRUCache:Ehe});const{LRUCache:khe}=eK,{TreeCache:The}=Q7;function Ahe({name:e,maxSize:t,mapNodeValue:n=r=>r}){const r=new khe({maxSize:t}),i=new The({name:e,mapNodeValue:n,onHit:o=>{r.set(o,!0)},onSet:o=>{const a=r.tail();r.set(o,!0),a&&i.size()>t&&i.delete(a.key)}});return i}var BF=Ahe;function La(e,t,n){if(typeof e=="string"&&!e.includes('"')&&!e.includes("\\"))return`"${e}"`;switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if((t==null?void 0:t.allowFunctions)!==!0)throw jt("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var r;return(r=JSON.stringify(e))!==null&&r!==void 0?r:""}if(Jn(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((i,o)=>La(i,t,o.toString()))}]`;if(typeof e.toJSON=="function")return La(e.toJSON(n),t,n);if(e instanceof Map){const i={};for(const[o,a]of e)i[typeof o=="string"?o:La(o,t)]=a;return La(i,t,n)}return e instanceof Set?La(Array.from(e).sort((i,o)=>La(i,t).localeCompare(La(o,t))),t,n):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?La(Array.from(e),t,n):`{${Object.keys(e).filter(i=>e[i]!==void 0).sort().map(i=>`${La(i,t)}:${La(e[i],t,i)}`).join(",")}}`}function $he(e,t={allowFunctions:!1}){return La(e,t)}var Yx=$he;const{TreeCache:Rhe}=Q7,f1={equality:"reference",eviction:"keep-all",maxSize:1/0};function Ohe({equality:e=f1.equality,eviction:t=f1.eviction,maxSize:n=f1.maxSize}=f1,r){const i=Ihe(e);return Dhe(t,n,i,r)}function Ihe(e){switch(e){case"reference":return t=>t;case"value":return t=>Yx(t)}throw jt(`Unrecognized equality policy ${e}`)}function Dhe(e,t,n,r){switch(e){case"keep-all":return new Rhe({name:r,mapNodeValue:n});case"lru":return BF({name:r,maxSize:Qn(t),mapNodeValue:n});case"most-recent":return BF({name:r,maxSize:1,mapNodeValue:n})}throw jt(`Unrecognized eviction policy ${e}`)}var Phe=Ohe;function Lhe(e){return()=>null}var Mhe={startPerfBlock:Lhe};const{isLoadable:Fhe,loadableWithError:d1,loadableWithPromise:Nhe,loadableWithValue:BE}=Gv,{WrappedValue:tK}=J7,{getNodeLoadable:p1,peekNodeLoadable:Bhe,setNodeValue:jhe}=Gu,{saveDepsToStore:zhe}=Xv,{DEFAULT_VALUE:Uhe,getConfigDeletionHandler:Khe,getNode:Whe,registerNode:jF}=oo,{isRecoilValue:Vhe}=kp,{markRecoilValueModified:zF}=Ns,{retainedByOptionWithDefault:Hhe}=wf,{recoilCallback:qhe}=Z7,{startPerfBlock:Ghe}=Mhe;class nK{}const Fg=new nK,Ng=[],h1=new Map,Yhe=(()=>{let e=0;return()=>e++})();function rK(e){let t=null;const{key:n,get:r,cachePolicy_UNSTABLE:i}=e,o=e.set!=null?e.set:void 0,a=new Set,s=Phe(i??{equality:"reference",eviction:"keep-all"},n),l=Hhe(e.retainedBy_UNSTABLE),u=new Map;let f=0;function d(){return!$n("recoil_memory_managament_2020")||f>0}function p(j){return j.getState().knownSelectors.add(n),f++,()=>{f--}}function m(){return Khe(n)!==void 0&&!d()}function v(j,L,oe,ue,se){J(L,ue,se),y(j,oe)}function y(j,L){q(j,L)&&ae(j),b(L,!0)}function w(j,L){q(j,L)&&(Qn(D(j)).stateVersions.clear(),b(L,!1))}function b(j,L){const oe=h1.get(j);if(oe!=null){for(const ue of oe)zF(ue,Qn(t));L&&h1.delete(j)}}function x(j,L){let oe=h1.get(L);oe==null&&h1.set(L,oe=new Set),oe.add(j)}function S(j,L,oe,ue,se,Ee){return L.then(Re=>{if(!d())throw ae(j),Fg;const ke=BE(Re);return v(j,oe,se,ke,ue),Re}).catch(Re=>{if(!d())throw ae(j),Fg;if(Jn(Re))return k(j,Re,oe,ue,se,Ee);const ke=d1(Re);throw v(j,oe,se,ke,ue),Re})}function k(j,L,oe,ue,se,Ee){return L.then(Re=>{if(!d())throw ae(j),Fg;Ee.loadingDepKey!=null&&Ee.loadingDepPromise===L?oe.atomValues.set(Ee.loadingDepKey,BE(Re)):j.getState().knownSelectors.forEach(Be=>{oe.atomValues.delete(Be)});const ke=I(j,oe);if(ke&&ke.state!=="loading"){if((q(j,se)||D(j)==null)&&y(j,se),ke.state==="hasValue")return ke.contents;throw ke.contents}if(!q(j,se)){const Be=K(j,oe);if(Be!=null)return Be.loadingLoadable.contents}const[De,Me]=$(j,oe,se);if(De.state!=="loading"&&v(j,oe,se,De,Me),De.state==="hasError")throw De.contents;return De.contents}).catch(Re=>{if(Re instanceof nK)throw Fg;if(!d())throw ae(j),Fg;const ke=d1(Re);throw v(j,oe,se,ke,ue),Re})}function A(j,L,oe,ue){var se,Ee,Re,ke;if(q(j,ue)||L.version===((se=j.getState())===null||se===void 0||(Ee=se.currentTree)===null||Ee===void 0?void 0:Ee.version)||L.version===((Re=j.getState())===null||Re===void 0||(ke=Re.nextTree)===null||ke===void 0?void 0:ke.version)){var De,Me,Be;zhe(n,oe,j,(De=(Me=j.getState())===null||Me===void 0||(Be=Me.nextTree)===null||Be===void 0?void 0:Be.version)!==null&&De!==void 0?De:j.getState().currentTree.version)}for(const Ue of oe)a.add(Ue)}function $(j,L,oe){const ue=Ghe(n);let se=!0,Ee=!0;const Re=()=>{ue(),Ee=!1};let ke,De=!1,Me;const Be={loadingDepKey:null,loadingDepPromise:null},Ue=new Map;function Ke({key:lt}){const Xe=p1(j,L,lt);switch(Ue.set(lt,Xe),se||(A(j,L,new Set(Ue.keys()),oe),w(j,oe)),Xe.state){case"hasValue":return Xe.contents;case"hasError":throw Xe.contents;case"loading":throw Be.loadingDepKey=lt,Be.loadingDepPromise=Xe.contents,Xe.contents}throw jt("Invalid Loadable state")}const He=lt=>(...Xe)=>{if(Ee)throw jt("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return t==null&&ym(!1),qhe(j,lt,Xe,{node:t})};try{ke=r({get:Ke,getCallback:He}),ke=Vhe(ke)?Ke(ke):ke,Fhe(ke)&&(ke.state==="hasError"&&(De=!0),ke=ke.contents),Jn(ke)?ke=S(j,ke,L,Ue,oe,Be).finally(Re):Re(),ke=ke instanceof tK?ke.value:ke}catch(lt){ke=lt,Jn(ke)?ke=k(j,ke,L,Ue,oe,Be).finally(Re):(De=!0,Re())}return De?Me=d1(ke):Jn(ke)?Me=Nhe(ke):Me=BE(ke),se=!1,ie(j,oe,Ue),A(j,L,new Set(Ue.keys()),oe),[Me,Ue]}function I(j,L){let oe=L.atomValues.get(n);if(oe!=null)return oe;const ue=new Set;try{oe=s.get(Ee=>(typeof Ee!="string"&&ym(!1),p1(j,L,Ee).contents),{onNodeVisit:Ee=>{Ee.type==="branch"&&Ee.nodeKey!==n&&ue.add(Ee.nodeKey)}})}catch(Ee){throw jt(`Problem with cache lookup for selector "${n}": ${Ee.message}`)}if(oe){var se;L.atomValues.set(n,oe),A(j,L,ue,(se=D(j))===null||se===void 0?void 0:se.executionID)}return oe}function z(j,L){const oe=I(j,L);if(oe!=null)return ae(j),oe;const ue=K(j,L);if(ue!=null){var se;return((se=ue.loadingLoadable)===null||se===void 0?void 0:se.state)==="loading"&&x(j,ue.executionID),ue.loadingLoadable}const Ee=Yhe(),[Re,ke]=$(j,L,Ee);return Re.state==="loading"?(W(j,Ee,Re,ke,L),x(j,Ee)):(ae(j),J(L,Re,ke)),Re}function K(j,L){const oe=E7([u.has(j)?[Qn(u.get(j))]:[],Fx(g2(u,([se])=>se!==j),([,se])=>se)]);function ue(se){for(const[Ee,Re]of se)if(!p1(j,L,Ee).is(Re))return!0;return!1}for(const se of oe){if(se.stateVersions.get(L.version)||!ue(se.depValuesDiscoveredSoFarDuringAsyncWork))return se.stateVersions.set(L.version,!0),se;se.stateVersions.set(L.version,!1)}}function D(j){return u.get(j)}function W(j,L,oe,ue,se){u.set(j,{depValuesDiscoveredSoFarDuringAsyncWork:ue,executionID:L,loadingLoadable:oe,stateVersions:new Map([[se.version,!0]])})}function ie(j,L,oe){if(q(j,L)){const ue=D(j);ue!=null&&(ue.depValuesDiscoveredSoFarDuringAsyncWork=oe)}}function ae(j){u.delete(j)}function q(j,L){var oe;return L===((oe=D(j))===null||oe===void 0?void 0:oe.executionID)}function G(j){return Array.from(j.entries()).map(([L,oe])=>[L,oe.contents])}function J(j,L,oe){j.atomValues.set(n,L);try{s.set(G(oe),L)}catch(ue){throw jt(`Problem with setting cache for selector "${n}": ${ue.message}`)}}function le(j){if(Ng.includes(n)){const L=`Recoil selector has circular dependencies: ${Ng.slice(Ng.indexOf(n)).join(" → ")}`;return d1(jt(L))}Ng.push(n);try{return j()}finally{Ng.pop()}}function Q(j,L){const oe=L.atomValues.get(n);return oe??s.get(ue=>{var se;return typeof ue!="string"&&ym(!1),(se=Bhe(j,L,ue))===null||se===void 0?void 0:se.contents})}function te(j,L){return le(()=>z(j,L))}function P(j){j.atomValues.delete(n)}function me(j,L){t==null&&ym(!1);for(const ue of a){var oe;const se=Whe(ue);(oe=se.clearCache)===null||oe===void 0||oe.call(se,j,L)}a.clear(),P(L),s.clear(),zF(j,t)}return o!=null?t=jF({key:n,nodeType:"selector",peek:Q,get:te,set:(L,oe,ue)=>{let se=!1;const Ee=new Map;function Re({key:Be}){if(se)throw jt("Recoil: Async selector sets are not currently supported.");const Ue=p1(L,oe,Be);if(Ue.state==="hasValue")return Ue.contents;if(Ue.state==="loading"){const Ke=`Getting value of asynchronous atom or selector "${Be}" in a pending state while setting selector "${n}" is not yet supported.`;throw jt(Ke)}else throw Ue.contents}function ke(Be,Ue){if(se)throw jt("Recoil: Async selector sets are not currently supported.");const Ke=typeof Ue=="function"?Ue(Re(Be)):Ue;jhe(L,oe,Be.key,Ke).forEach((lt,Xe)=>Ee.set(Xe,lt))}function De(Be){ke(Be,Uhe)}const Me=o({set:ke,get:Re,reset:De},ue);if(Me!==void 0)throw Jn(Me)?jt("Recoil: Async selector sets are not currently supported."):jt("Recoil: selector set should be a void function.");return se=!0,Ee},init:p,invalidate:P,clearCache:me,shouldDeleteConfigOnRelease:m,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:l}):t=jF({key:n,nodeType:"selector",peek:Q,get:te,init:p,invalidate:P,clearCache:me,shouldDeleteConfigOnRelease:m,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:l})}rK.value=e=>new tK(e);var $p=rK;const{isLoadable:Xhe,loadableWithError:jE,loadableWithPromise:zE,loadableWithValue:gd}=Gv,{WrappedValue:iK}=J7,{peekNodeInfo:Zhe}=Gu,{DEFAULT_VALUE:Lc,DefaultValue:gu,getConfigDeletionHandler:oK,registerNode:Jhe,setConfigDeletionHandler:Qhe}=oo,{isRecoilValue:ege}=kp,{getRecoilValueAsLoadable:tge,markRecoilValueModified:nge,setRecoilValue:UF,setRecoilValueLoadable:rge}=Ns,{retainedByOptionWithDefault:ige}=wf,Bg=e=>e instanceof iK?e.value:e;function oge(e){const{key:t,persistence_UNSTABLE:n}=e,r=ige(e.retainedBy_UNSTABLE);let i=0;function o(x){return zE(x.then(S=>(a=gd(S),S)).catch(S=>{throw a=jE(S),S}))}let a=Jn(e.default)?o(e.default):Xhe(e.default)?e.default.state==="loading"?o(e.default.contents):e.default:gd(Bg(e.default));a.contents;let s;const l=new Map;function u(x){return x}function f(x,S){const k=S.then(A=>{var $,I;return((I=(($=x.getState().nextTree)!==null&&$!==void 0?$:x.getState().currentTree).atomValues.get(t))===null||I===void 0?void 0:I.contents)===k&&UF(x,b,A),A}).catch(A=>{var $,I;throw((I=(($=x.getState().nextTree)!==null&&$!==void 0?$:x.getState().currentTree).atomValues.get(t))===null||I===void 0?void 0:I.contents)===k&&rge(x,b,jE(A)),A});return k}function d(x,S,k){var A;i++;const $=()=>{var D;i--,(D=l.get(x))===null||D===void 0||D.forEach(W=>W()),l.delete(x)};if(x.getState().knownAtoms.add(t),a.state==="loading"){const D=()=>{var W;((W=x.getState().nextTree)!==null&&W!==void 0?W:x.getState().currentTree).atomValues.has(t)||nge(x,b)};a.contents.finally(D)}const I=(A=e.effects)!==null&&A!==void 0?A:e.effects_UNSTABLE;if(I!=null){let q=function(P){if(W&&P.key===t){const me=D;return me instanceof gu?p(x,S):Jn(me)?zE(me.then(j=>j instanceof gu?a.toPromise():j)):gd(me)}return tge(x,P)},G=function(P){return q(P).toPromise()},J=function(P){var me;const j=Zhe(x,(me=x.getState().nextTree)!==null&&me!==void 0?me:x.getState().currentTree,P.key);return W&&P.key===t&&!(D instanceof gu)?{...j,isSet:!0,loadable:q(P)}:j},D=Lc,W=!0,ie=!1,ae=null;const le=P=>me=>{if(W){const j=q(b),L=j.state==="hasValue"?j.contents:Lc;D=typeof me=="function"?me(L):me,Jn(D)&&(D=D.then(oe=>(ae={effect:P,value:oe},oe)))}else{if(Jn(me))throw jt("Setting atoms to async values is not implemented.");typeof me!="function"&&(ae={effect:P,value:Bg(me)}),UF(x,b,typeof me=="function"?j=>{const L=Bg(me(j));return ae={effect:P,value:L},L}:Bg(me))}},Q=P=>()=>le(P)(Lc),te=P=>me=>{var j;const{release:L}=x.subscribeToTransactions(oe=>{var ue;let{currentTree:se,previousTree:Ee}=oe.getState();Ee||(Ee=se);const Re=(ue=se.atomValues.get(t))!==null&&ue!==void 0?ue:a;if(Re.state==="hasValue"){var ke,De,Me,Be;const Ue=Re.contents,Ke=(ke=Ee.atomValues.get(t))!==null&&ke!==void 0?ke:a,He=Ke.state==="hasValue"?Ke.contents:Lc;((De=ae)===null||De===void 0?void 0:De.effect)!==P||((Me=ae)===null||Me===void 0?void 0:Me.value)!==Ue?me(Ue,He,!se.atomValues.has(t)):((Be=ae)===null||Be===void 0?void 0:Be.effect)===P&&(ae=null)}},t);l.set(x,[...(j=l.get(x))!==null&&j!==void 0?j:[],L])};for(const P of I)try{const me=P({node:b,storeID:x.storeID,parentStoreID_UNSTABLE:x.parentStoreID,trigger:k,setSelf:le(P),resetSelf:Q(P),onSet:te(P),getPromise:G,getLoadable:q,getInfo_UNSTABLE:J});if(me!=null){var z;l.set(x,[...(z=l.get(x))!==null&&z!==void 0?z:[],me])}}catch(me){D=me,ie=!0}if(W=!1,!(D instanceof gu)){var K;const P=ie?jE(D):Jn(D)?zE(f(x,D)):gd(Bg(D));P.contents,S.atomValues.set(t,P),(K=x.getState().nextTree)===null||K===void 0||K.atomValues.set(t,P)}}return $}function p(x,S){var k,A;return(k=(A=S.atomValues.get(t))!==null&&A!==void 0?A:s)!==null&&k!==void 0?k:a}function m(x,S){if(S.atomValues.has(t))return Qn(S.atomValues.get(t));if(S.nonvalidatedAtoms.has(t)){if(s!=null)return s;if(n==null)return a;const k=S.nonvalidatedAtoms.get(t),A=n.validator(k,Lc);return s=A instanceof gu?a:gd(A),s}else return a}function v(){s=void 0}function y(x,S,k){if(S.atomValues.has(t)){const A=Qn(S.atomValues.get(t));if(A.state==="hasValue"&&k===A.contents)return new Map}else if(!S.nonvalidatedAtoms.has(t)&&k instanceof gu)return new Map;return s=void 0,new Map().set(t,gd(k))}function w(){return oK(t)!==void 0&&i<=0}const b=Jhe({key:t,nodeType:"atom",peek:p,get:m,set:y,init:d,invalidate:v,shouldDeleteConfigOnRelease:w,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:r});return b}function k2(e){const{...t}=e,n="default"in e?e.default:new Promise(()=>{});return ege(n)?age({...t,default:n}):oge({...t,default:n})}function age(e){const t=k2({...e,default:Lc,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:r=>r instanceof gu?r:Qn(e.persistence_UNSTABLE).validator(r,Lc)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=$p({key:`${e.key}__withFallback`,get:({get:r})=>{const i=r(t);return i instanceof gu?e.default:i},set:({set:r},i)=>r(t,i),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return Qhe(n.key,oK(e.key)),n}k2.value=e=>new iK(e);var aK=k2;let sge=class{constructor(t){var n;Dt(this,"_map",void 0),Dt(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(n=t==null?void 0:t.mapKey)!==null&&n!==void 0?n:r=>r}size(){return this._map.size}has(t){return this._map.has(this._keyMapper(t))}get(t){return this._map.get(this._keyMapper(t))}set(t,n){this._map.set(this._keyMapper(t),n)}delete(t){this._map.delete(this._keyMapper(t))}clear(){this._map.clear()}};var lge={MapCache:sge},uge=lge.MapCache,cge=Object.freeze({__proto__:null,MapCache:uge});const{LRUCache:KF}=eK,{MapCache:fge}=cge,g1={equality:"reference",eviction:"none",maxSize:1/0};function dge({equality:e=g1.equality,eviction:t=g1.eviction,maxSize:n=g1.maxSize}=g1){const r=pge(e);return hge(t,n,r)}function pge(e){switch(e){case"reference":return t=>t;case"value":return t=>Yx(t)}throw jt(`Unrecognized equality policy ${e}`)}function hge(e,t,n){switch(e){case"keep-all":return new fge({mapKey:n});case"lru":return new KF({mapKey:n,maxSize:Qn(t)});case"most-recent":return new KF({mapKey:n,maxSize:1})}throw jt(`Unrecognized eviction policy ${e}`)}var sK=dge;const{setConfigDeletionHandler:gge}=oo;function mge(e){var t,n;const r=sK({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return i=>{var o,a;const s=r.get(i);if(s!=null)return s;const{cachePolicyForParams_UNSTABLE:l,...u}=e,f="default"in e?e.default:new Promise(()=>{}),d=aK({...u,key:`${e.key}__${(o=Yx(i))!==null&&o!==void 0?o:"void"}`,default:typeof f=="function"?f(i):f,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(i):e.retainedBy_UNSTABLE,effects:typeof e.effects=="function"?e.effects(i):typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(i):(a=e.effects)!==null&&a!==void 0?a:e.effects_UNSTABLE});return r.set(i,d),gge(d.key,()=>{r.delete(i)}),d}}var vge=mge;const{setConfigDeletionHandler:yge}=oo;let bge=0;function _ge(e){var t,n;const r=sK({equality:(t=(n=e.cachePolicyForParams_UNSTABLE)===null||n===void 0?void 0:n.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return i=>{var o;let a;try{a=r.get(i)}catch(p){throw jt(`Problem with cache lookup for selector ${e.key}: ${p.message}`)}if(a!=null)return a;const s=`${e.key}__selectorFamily/${(o=Yx(i,{allowFunctions:!0}))!==null&&o!==void 0?o:"void"}/${bge++}`,l=p=>e.get(i)(p),u=e.cachePolicy_UNSTABLE,f=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(i):e.retainedBy_UNSTABLE;let d;if(e.set!=null){const p=e.set;d=$p({key:s,get:l,set:(v,y)=>p(i)(v,y),cachePolicy_UNSTABLE:u,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:f})}else d=$p({key:s,get:l,cachePolicy_UNSTABLE:u,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:f});return r.set(i,d),yge(d.key,()=>{r.delete(i)}),d}}var Yu=_ge;const xge=Yu({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function wge(e){return xge(e)}var Sge=wge;const Cge=Yu({key:"__error",get:e=>()=>{throw jt(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function Ege(e){return Cge(e)}var kge=Ege;function Tge(e){return e}var Age=Tge;const{loadableWithError:lK,loadableWithPromise:uK,loadableWithValue:cK}=Gv;function Xx(e,t){const n=Array(t.length).fill(void 0),r=Array(t.length).fill(void 0);for(const[i,o]of t.entries())try{n[i]=e(o)}catch(a){r[i]=a}return[n,r]}function $ge(e){return e!=null&&!Jn(e)}function Zx(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function OA(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((n,r,i)=>({...n,[r]:t[i]}),{})}function up(e,t,n){const r=n.map((i,o)=>i==null?cK(t[o]):Jn(i)?uK(i):lK(i));return OA(e,r)}function Rge(e,t){return t.map((n,r)=>n===void 0?e[r]:n)}const Oge=Yu({key:"__waitForNone",get:e=>({get:t})=>{const n=Zx(e),[r,i]=Xx(t,n);return up(e,r,i)},dangerouslyAllowMutability:!0}),Ige=Yu({key:"__waitForAny",get:e=>({get:t})=>{const n=Zx(e),[r,i]=Xx(t,n);return i.some(o=>!Jn(o))?up(e,r,i):new Promise(o=>{for(const[a,s]of i.entries())Jn(s)&&s.then(l=>{r[a]=l,i[a]=void 0,o(up(e,r,i))}).catch(l=>{i[a]=l,o(up(e,r,i))})})},dangerouslyAllowMutability:!0}),Dge=Yu({key:"__waitForAll",get:e=>({get:t})=>{const n=Zx(e),[r,i]=Xx(t,n);if(i.every(a=>a==null))return OA(e,r);const o=i.find($ge);if(o!=null)throw o;return Promise.all(i).then(a=>OA(e,Rge(r,a)))},dangerouslyAllowMutability:!0}),Pge=Yu({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=Zx(e),[r,i]=Xx(t,n);return i.every(o=>!Jn(o))?up(e,r,i):Promise.all(i.map((o,a)=>Jn(o)?o.then(s=>{r[a]=s,i[a]=void 0}).catch(s=>{r[a]=void 0,i[a]=s}):null)).then(()=>up(e,r,i))},dangerouslyAllowMutability:!0}),Lge=Yu({key:"__noWait",get:e=>({get:t})=>{try{return $p.value(cK(t(e)))}catch(n){return $p.value(Jn(n)?uK(n):lK(n))}},dangerouslyAllowMutability:!0});var Mge={waitForNone:Oge,waitForAny:Ige,waitForAll:Dge,waitForAllSettled:Pge,noWait:Lge};const{RecoilLoadable:Fge}=Gv,{DefaultValue:Nge}=oo,{RecoilRoot:Bge,useRecoilStoreID:jge}=Ll,{isRecoilValue:zge}=kp,{retentionZone:Uge}=Bx,{freshSnapshot:Kge}=Wx,{useRecoilState:Wge,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Vge,useRecoilStateLoadable:Hge,useRecoilValue:qge,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Gge,useRecoilValueLoadable:Yge,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Xge,useResetRecoilState:Zge,useSetRecoilState:Jge}=lpe,{useGotoRecoilSnapshot:Qge,useRecoilSnapshot:eme,useRecoilTransactionObserver:tme}=q7,{useRecoilCallback:nme}=Z7,{noWait:rme,waitForAll:ime,waitForAllSettled:ome,waitForAny:ame,waitForNone:sme}=Mge;var Xu={DefaultValue:Nge,isRecoilValue:zge,RecoilLoadable:Fge,RecoilEnv:Z8,RecoilRoot:Bge,useRecoilStoreID:jge,useRecoilBridgeAcrossReactRoots_UNSTABLE:Lpe,atom:aK,selector:$p,atomFamily:vge,selectorFamily:Yu,constSelector:Sge,errorSelector:kge,readOnlySelector:Age,noWait:rme,waitForNone:sme,waitForAny:ame,waitForAll:ime,waitForAllSettled:ome,useRecoilValue:qge,useRecoilValueLoadable:Yge,useRecoilState:Wge,useRecoilStateLoadable:Hge,useSetRecoilState:Jge,useResetRecoilState:Zge,useGetRecoilValueInfo_UNSTABLE:$pe,useRecoilRefresher_UNSTABLE:che,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Xge,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Gge,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Vge,useRecoilCallback:nme,useRecoilTransaction_UNSTABLE:ghe,useGotoRecoilSnapshot:Qge,useRecoilSnapshot:eme,useRecoilTransactionObserver_UNSTABLE:tme,snapshot_UNSTABLE:Kge,useRetain:x2,retentionZone:Uge},lme=Xu.DefaultValue,ume=Xu.RecoilRoot,Gn=Xu.atom,fK=Xu.selector,yt=Xu.useRecoilValue,cr=Xu.useRecoilState,hn=Xu.useSetRecoilState,Cb=Xu.useResetRecoilState;const cme={black:"#000",white:"#fff"},_v=cme,fme={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"},md=fme,dme={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"},vd=dme,pme={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"},yd=pme,hme={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"},bd=hme,gme={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"},_d=gme,mme={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"},jg=mme,vme={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"},Jx=vme;function F(){return F=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},F.apply(this,arguments)}function Mc(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function dK(e){if(!Mc(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=dK(e[n])}),t}function Xi(e,t,n={clone:!0}){const r=n.clone?F({},e):e;return Mc(e)&&Mc(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Mc(t[i])&&i in e&&Mc(e[i])?r[i]=Xi(e[i],t[i],n):n.clone?r[i]=Mc(t[i])?dK(t[i]):t[i]:r[i]=t[i])}),r}var pK={exports:{}},yme="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",bme=yme,_me=bme;function hK(){}function gK(){}gK.resetWarningCache=hK;var xme=function(){function e(r,i,o,a,s,l){if(l!==_me){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:gK,resetWarningCache:hK};return n.PropTypes=n,n};pK.exports=xme();var ey=pK.exports;const ct=bi(ey);function Nu(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."}var mK={exports:{}},xn={};/**
|
|
246
|
-
* @license React
|
|
247
|
-
* react-is.production.min.js
|
|
248
|
-
*
|
|
249
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
250
|
-
*
|
|
251
|
-
* This source code is licensed under the MIT license found in the
|
|
252
|
-
* LICENSE file in the root directory of this source tree.
|
|
253
|
-
*/var T2=Symbol.for("react.element"),A2=Symbol.for("react.portal"),Qx=Symbol.for("react.fragment"),ew=Symbol.for("react.strict_mode"),tw=Symbol.for("react.profiler"),nw=Symbol.for("react.provider"),rw=Symbol.for("react.context"),wme=Symbol.for("react.server_context"),iw=Symbol.for("react.forward_ref"),ow=Symbol.for("react.suspense"),aw=Symbol.for("react.suspense_list"),sw=Symbol.for("react.memo"),lw=Symbol.for("react.lazy"),Sme=Symbol.for("react.offscreen"),vK;vK=Symbol.for("react.module.reference");function va(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case T2:switch(e=e.type,e){case Qx:case tw:case ew:case ow:case aw:return e;default:switch(e=e&&e.$$typeof,e){case wme:case rw:case iw:case lw:case sw:case nw:return e;default:return t}}case A2:return t}}}xn.ContextConsumer=rw;xn.ContextProvider=nw;xn.Element=T2;xn.ForwardRef=iw;xn.Fragment=Qx;xn.Lazy=lw;xn.Memo=sw;xn.Portal=A2;xn.Profiler=tw;xn.StrictMode=ew;xn.Suspense=ow;xn.SuspenseList=aw;xn.isAsyncMode=function(){return!1};xn.isConcurrentMode=function(){return!1};xn.isContextConsumer=function(e){return va(e)===rw};xn.isContextProvider=function(e){return va(e)===nw};xn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===T2};xn.isForwardRef=function(e){return va(e)===iw};xn.isFragment=function(e){return va(e)===Qx};xn.isLazy=function(e){return va(e)===lw};xn.isMemo=function(e){return va(e)===sw};xn.isPortal=function(e){return va(e)===A2};xn.isProfiler=function(e){return va(e)===tw};xn.isStrictMode=function(e){return va(e)===ew};xn.isSuspense=function(e){return va(e)===ow};xn.isSuspenseList=function(e){return va(e)===aw};xn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Qx||e===tw||e===ew||e===ow||e===aw||e===Sme||typeof e=="object"&&e!==null&&(e.$$typeof===lw||e.$$typeof===sw||e.$$typeof===nw||e.$$typeof===rw||e.$$typeof===iw||e.$$typeof===vK||e.getModuleId!==void 0)};xn.typeOf=va;mK.exports=xn;var Cme=mK.exports;const Eme=bi(Cme);function Fe(e){if(typeof e!="string")throw new Error(Nu(7));return e.charAt(0).toUpperCase()+e.slice(1)}function IA(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function uf(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function kme(e,t){return()=>null}function cp(e,t){return T.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function er(e){return e&&e.ownerDocument||document}function da(e){return er(e).defaultView||window}function Tme(e,t){return()=>null}function k_(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Ame=typeof window<"u"?T.useLayoutEffect:T.useEffect,eo=Ame;let WF=0;function $me(e){const[t,n]=T.useState(e),r=e||t;return T.useEffect(()=>{t==null&&(WF+=1,n(`mui-${WF}`))},[t]),r}const VF=ef["useId".toString()];function ty(e){if(VF!==void 0){const t=VF();return e??t}return $me(e)}function Rme(e,t,n,r,i){return null}function Rp({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=T.useRef(e!==void 0),[o,a]=T.useState(t),s=i?e:o,l=T.useCallback(u=>{i||a(u)},[]);return[s,l]}function Ri(e){const t=T.useRef(e);return eo(()=>{t.current=e}),T.useCallback((...n)=>(0,t.current)(...n),[])}function On(...e){return T.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{k_(n,t)})},e)}let uw=!0,DA=!1,HF;const Ome={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 Ime(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Ome[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Dme(e){e.metaKey||e.altKey||e.ctrlKey||(uw=!0)}function UE(){uw=!1}function Pme(){this.visibilityState==="hidden"&&DA&&(uw=!0)}function Lme(e){e.addEventListener("keydown",Dme,!0),e.addEventListener("mousedown",UE,!0),e.addEventListener("pointerdown",UE,!0),e.addEventListener("touchstart",UE,!0),e.addEventListener("visibilitychange",Pme,!0)}function Mme(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return uw||Ime(t)}function ny(){const e=T.useCallback(i=>{i!=null&&Lme(i.ownerDocument)},[]),t=T.useRef(!1);function n(){return t.current?(DA=!0,window.clearTimeout(HF),HF=window.setTimeout(()=>{DA=!1},100),t.current=!1,!0):!1}function r(i){return Mme(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function yK(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let xd;function bK(){if(xd)return xd;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),xd="reverse",e.scrollLeft>0?xd="default":(e.scrollLeft=1,e.scrollLeft===0&&(xd="negative")),document.body.removeChild(e),xd}function qF(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(bK()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Fme={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Nme=Fme;function $2(e,t){const n=F({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=F({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=F({},o),Object.keys(i).forEach(a=>{n[r][a]=$2(i[a],o[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function St(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,a)=>{if(a){const s=t(a);s!==""&&o.push(s),n&&n[a]&&o.push(n[a])}return o},[]).join(" ")}),r}const GF=e=>e,Bme=()=>{let e=GF;return{configure(t){e=t},generate(t){return e(t)},reset(){e=GF}}},jme=Bme(),R2=jme,zme={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function bt(e,t,n="Mui"){const r=zme[t];return r?`${n}-${r}`:`${R2.generate(e)}-${t}`}function _t(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=bt(e,i,n)}),r}function Qe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function _K(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Ume=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Kme=_K(function(e){return Ume.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Wme(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]}function Vme(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Hme=function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Vme(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Wme(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0},e}(),pi="-ms-",T_="-moz-",fn="-webkit-",xK="comm",O2="rule",I2="decl",qme="@import",wK="@keyframes",Gme="@layer",Yme=Math.abs,cw=String.fromCharCode,Xme=Object.assign;function Zme(e,t){return ni(e,0)^45?(((t<<2^ni(e,0))<<2^ni(e,1))<<2^ni(e,2))<<2^ni(e,3):0}function SK(e){return e.trim()}function Jme(e,t){return(e=t.exec(e))?e[0]:e}function dn(e,t,n){return e.replace(t,n)}function PA(e,t){return e.indexOf(t)}function ni(e,t){return e.charCodeAt(t)|0}function xv(e,t,n){return e.slice(t,n)}function _s(e){return e.length}function D2(e){return e.length}function m1(e,t){return t.push(e),e}function Qme(e,t){return e.map(t).join("")}var fw=1,Op=1,CK=0,to=0,$r=0,th="";function dw(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:fw,column:Op,length:a,return:""}}function zg(e,t){return Xme(dw("",null,null,"",null,null,0),e,{length:-e.length},t)}function eve(){return $r}function tve(){return $r=to>0?ni(th,--to):0,Op--,$r===10&&(Op=1,fw--),$r}function To(){return $r=to<CK?ni(th,to++):0,Op++,$r===10&&(Op=1,fw++),$r}function Is(){return ni(th,to)}function Eb(){return to}function ry(e,t){return xv(th,e,t)}function wv(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 EK(e){return fw=Op=1,CK=_s(th=e),to=0,[]}function kK(e){return th="",e}function kb(e){return SK(ry(to-1,LA(e===91?e+2:e===40?e+1:e)))}function nve(e){for(;($r=Is())&&$r<33;)To();return wv(e)>2||wv($r)>3?"":" "}function rve(e,t){for(;--t&&To()&&!($r<48||$r>102||$r>57&&$r<65||$r>70&&$r<97););return ry(e,Eb()+(t<6&&Is()==32&&To()==32))}function LA(e){for(;To();)switch($r){case e:return to;case 34:case 39:e!==34&&e!==39&&LA($r);break;case 40:e===41&&LA(e);break;case 92:To();break}return to}function ive(e,t){for(;To()&&e+$r!==47+10;)if(e+$r===42+42&&Is()===47)break;return"/*"+ry(t,to-1)+"*"+cw(e===47?e:To())}function ove(e){for(;!wv(Is());)To();return ry(e,to)}function ave(e){return kK(Tb("",null,null,null,[""],e=EK(e),0,[0],e))}function Tb(e,t,n,r,i,o,a,s,l){for(var u=0,f=0,d=a,p=0,m=0,v=0,y=1,w=1,b=1,x=0,S="",k=i,A=o,$=r,I=S;w;)switch(v=x,x=To()){case 40:if(v!=108&&ni(I,d-1)==58){PA(I+=dn(kb(x),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:I+=kb(x);break;case 9:case 10:case 13:case 32:I+=nve(v);break;case 92:I+=rve(Eb()-1,7);continue;case 47:switch(Is()){case 42:case 47:m1(sve(ive(To(),Eb()),t,n),l);break;default:I+="/"}break;case 123*y:s[u++]=_s(I)*b;case 125*y:case 59:case 0:switch(x){case 0:case 125:w=0;case 59+f:b==-1&&(I=dn(I,/\f/g,"")),m>0&&_s(I)-d&&m1(m>32?XF(I+";",r,n,d-1):XF(dn(I," ","")+";",r,n,d-2),l);break;case 59:I+=";";default:if(m1($=YF(I,t,n,u,f,i,s,S,k=[],A=[],d),o),x===123)if(f===0)Tb(I,t,$,$,k,o,d,s,A);else switch(p===99&&ni(I,3)===110?100:p){case 100:case 108:case 109:case 115:Tb(e,$,$,r&&m1(YF(e,$,$,0,0,i,s,S,i,k=[],d),A),i,A,d,s,r?k:A);break;default:Tb(I,$,$,$,[""],A,0,s,A)}}u=f=m=0,y=b=1,S=I="",d=a;break;case 58:d=1+_s(I),m=v;default:if(y<1){if(x==123)--y;else if(x==125&&y++==0&&tve()==125)continue}switch(I+=cw(x),x*y){case 38:b=f>0?1:(I+="\f",-1);break;case 44:s[u++]=(_s(I)-1)*b,b=1;break;case 64:Is()===45&&(I+=kb(To())),p=Is(),f=d=_s(S=I+=ove(Eb())),x++;break;case 45:v===45&&_s(I)==2&&(y=0)}}return o}function YF(e,t,n,r,i,o,a,s,l,u,f){for(var d=i-1,p=i===0?o:[""],m=D2(p),v=0,y=0,w=0;v<r;++v)for(var b=0,x=xv(e,d+1,d=Yme(y=a[v])),S=e;b<m;++b)(S=SK(y>0?p[b]+" "+x:dn(x,/&\f/g,p[b])))&&(l[w++]=S);return dw(e,t,n,i===0?O2:s,l,u,f)}function sve(e,t,n){return dw(e,t,n,xK,cw(eve()),xv(e,2,-2),0)}function XF(e,t,n,r){return dw(e,t,n,I2,xv(e,0,r),xv(e,r+1,-1),r)}function fp(e,t){for(var n="",r=D2(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function lve(e,t,n,r){switch(e.type){case Gme:if(e.children.length)break;case qme:case I2:return e.return=e.return||e.value;case xK:return"";case wK:return e.return=e.value+"{"+fp(e.children,r)+"}";case O2:e.value=e.props.join(",")}return _s(n=fp(e.children,r))?e.return=e.value+"{"+n+"}":""}function uve(e){var t=D2(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}function cve(e){return function(t){t.root||(t=t.return)&&e(t)}}var fve=function(t,n,r){for(var i=0,o=0;i=o,o=Is(),i===38&&o===12&&(n[r]=1),!wv(o);)To();return ry(t,to)},dve=function(t,n){var r=-1,i=44;do switch(wv(i)){case 0:i===38&&Is()===12&&(n[r]=1),t[r]+=fve(to-1,n,r);break;case 2:t[r]+=kb(i);break;case 4:if(i===44){t[++r]=Is()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=cw(i)}while(i=To());return t},pve=function(t,n){return kK(dve(EK(t),n))},ZF=new WeakMap,hve=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!ZF.get(r))&&!i){ZF.set(t,!0);for(var o=[],a=pve(n,o),s=r.props,l=0,u=0;l<a.length;l++)for(var f=0;f<s.length;f++,u++)t.props[u]=o[l]?a[l].replace(/&\f/g,s[f]):s[f]+" "+a[l]}}},gve=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function TK(e,t){switch(Zme(e,t)){case 5103:return fn+"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 fn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return fn+e+T_+e+pi+e+e;case 6828:case 4268:return fn+e+pi+e+e;case 6165:return fn+e+pi+"flex-"+e+e;case 5187:return fn+e+dn(e,/(\w+).+(:[^]+)/,fn+"box-$1$2"+pi+"flex-$1$2")+e;case 5443:return fn+e+pi+"flex-item-"+dn(e,/flex-|-self/,"")+e;case 4675:return fn+e+pi+"flex-line-pack"+dn(e,/align-content|flex-|-self/,"")+e;case 5548:return fn+e+pi+dn(e,"shrink","negative")+e;case 5292:return fn+e+pi+dn(e,"basis","preferred-size")+e;case 6060:return fn+"box-"+dn(e,"-grow","")+fn+e+pi+dn(e,"grow","positive")+e;case 4554:return fn+dn(e,/([^-])(transform)/g,"$1"+fn+"$2")+e;case 6187:return dn(dn(dn(e,/(zoom-|grab)/,fn+"$1"),/(image-set)/,fn+"$1"),e,"")+e;case 5495:case 3959:return dn(e,/(image-set\([^]*)/,fn+"$1$`$1");case 4968:return dn(dn(e,/(.+:)(flex-)?(.*)/,fn+"box-pack:$3"+pi+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+fn+e+e;case 4095:case 3583:case 4068:case 2532:return dn(e,/(.+)-inline(.+)/,fn+"$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(_s(e)-1-t>6)switch(ni(e,t+1)){case 109:if(ni(e,t+4)!==45)break;case 102:return dn(e,/(.+:)(.+)-([^]+)/,"$1"+fn+"$2-$3$1"+T_+(ni(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~PA(e,"stretch")?TK(dn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ni(e,t+1)!==115)break;case 6444:switch(ni(e,_s(e)-3-(~PA(e,"!important")&&10))){case 107:return dn(e,":",":"+fn)+e;case 101:return dn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+fn+(ni(e,14)===45?"inline-":"")+"box$3$1"+fn+"$2$3$1"+pi+"$2box$3")+e}break;case 5936:switch(ni(e,t+11)){case 114:return fn+e+pi+dn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return fn+e+pi+dn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return fn+e+pi+dn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return fn+e+pi+e+e}return e}var mve=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case I2:t.return=TK(t.value,t.length);break;case wK:return fp([zg(t,{value:dn(t.value,"@","@"+fn)})],i);case O2:if(t.length)return Qme(t.props,function(o){switch(Jme(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return fp([zg(t,{props:[dn(o,/:(read-\w+)/,":"+T_+"$1")]})],i);case"::placeholder":return fp([zg(t,{props:[dn(o,/:(plac\w+)/,":"+fn+"input-$1")]}),zg(t,{props:[dn(o,/:(plac\w+)/,":"+T_+"$1")]}),zg(t,{props:[dn(o,/:(plac\w+)/,pi+"input-$1")]})],i)}return""})}},vve=[mve],yve=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var w=y.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=t.stylisPlugins||vve,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var w=y.getAttribute("data-emotion").split(" "),b=1;b<w.length;b++)o[w[b]]=!0;s.push(y)});var l,u=[hve,gve];{var f,d=[lve,cve(function(y){f.insert(y)})],p=uve(u.concat(i,d)),m=function(w){return fp(ave(w),p)};l=function(w,b,x,S){f=x,m(w?w+"{"+b.styles+"}":b.styles),S&&(v.inserted[b.name]=!0)}}var v={key:n,sheet:new Hme({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return v.sheet.hydrate(s),v},AK={exports:{}},wn={};/** @license React v16.13.1
|
|
254
|
-
* react-is.production.min.js
|
|
255
|
-
*
|
|
256
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
257
|
-
*
|
|
258
|
-
* This source code is licensed under the MIT license found in the
|
|
259
|
-
* LICENSE file in the root directory of this source tree.
|
|
260
|
-
*/var Vr=typeof Symbol=="function"&&Symbol.for,P2=Vr?Symbol.for("react.element"):60103,L2=Vr?Symbol.for("react.portal"):60106,pw=Vr?Symbol.for("react.fragment"):60107,hw=Vr?Symbol.for("react.strict_mode"):60108,gw=Vr?Symbol.for("react.profiler"):60114,mw=Vr?Symbol.for("react.provider"):60109,vw=Vr?Symbol.for("react.context"):60110,M2=Vr?Symbol.for("react.async_mode"):60111,yw=Vr?Symbol.for("react.concurrent_mode"):60111,bw=Vr?Symbol.for("react.forward_ref"):60112,_w=Vr?Symbol.for("react.suspense"):60113,bve=Vr?Symbol.for("react.suspense_list"):60120,xw=Vr?Symbol.for("react.memo"):60115,ww=Vr?Symbol.for("react.lazy"):60116,_ve=Vr?Symbol.for("react.block"):60121,xve=Vr?Symbol.for("react.fundamental"):60117,wve=Vr?Symbol.for("react.responder"):60118,Sve=Vr?Symbol.for("react.scope"):60119;function Mo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case P2:switch(e=e.type,e){case M2:case yw:case pw:case gw:case hw:case _w:return e;default:switch(e=e&&e.$$typeof,e){case vw:case bw:case ww:case xw:case mw:return e;default:return t}}case L2:return t}}}function $K(e){return Mo(e)===yw}wn.AsyncMode=M2;wn.ConcurrentMode=yw;wn.ContextConsumer=vw;wn.ContextProvider=mw;wn.Element=P2;wn.ForwardRef=bw;wn.Fragment=pw;wn.Lazy=ww;wn.Memo=xw;wn.Portal=L2;wn.Profiler=gw;wn.StrictMode=hw;wn.Suspense=_w;wn.isAsyncMode=function(e){return $K(e)||Mo(e)===M2};wn.isConcurrentMode=$K;wn.isContextConsumer=function(e){return Mo(e)===vw};wn.isContextProvider=function(e){return Mo(e)===mw};wn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===P2};wn.isForwardRef=function(e){return Mo(e)===bw};wn.isFragment=function(e){return Mo(e)===pw};wn.isLazy=function(e){return Mo(e)===ww};wn.isMemo=function(e){return Mo(e)===xw};wn.isPortal=function(e){return Mo(e)===L2};wn.isProfiler=function(e){return Mo(e)===gw};wn.isStrictMode=function(e){return Mo(e)===hw};wn.isSuspense=function(e){return Mo(e)===_w};wn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===pw||e===yw||e===gw||e===hw||e===_w||e===bve||typeof e=="object"&&e!==null&&(e.$$typeof===ww||e.$$typeof===xw||e.$$typeof===mw||e.$$typeof===vw||e.$$typeof===bw||e.$$typeof===xve||e.$$typeof===wve||e.$$typeof===Sve||e.$$typeof===_ve)};wn.typeOf=Mo;AK.exports=wn;var Cve=AK.exports,RK=Cve,Eve={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},kve={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},OK={};OK[RK.ForwardRef]=Eve;OK[RK.Memo]=kve;var Tve=!0;function Ave(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var IK=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Tve===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},DK=function(t,n,r){IK(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function $ve(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Rve={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,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},Ove=/[A-Z]|^ms/g,Ive=/_EMO_([^_]+?)_([^]*?)_EMO_/g,PK=function(t){return t.charCodeAt(1)===45},JF=function(t){return t!=null&&typeof t!="boolean"},KE=_K(function(e){return PK(e)?e:e.replace(Ove,"-$&").toLowerCase()}),QF=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Ive,function(r,i,o){return xs={name:i,styles:o,next:xs},i})}return Rve[t]!==1&&!PK(t)&&typeof n=="number"&&n!==0?n+"px":n};function Sv(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return xs={name:n.name,styles:n.styles,next:xs},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)xs={name:r.name,styles:r.styles,next:xs},r=r.next;var i=n.styles+";";return i}return Dve(e,t,n)}case"function":{if(e!==void 0){var o=xs,a=n(e);return xs=o,Sv(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function Dve(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Sv(e,t,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object")t!=null&&t[a]!==void 0?r+=o+"{"+t[a]+"}":JF(a)&&(r+=KE(o)+":"+QF(o,a)+";");else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)JF(a[s])&&(r+=KE(o)+":"+QF(o,a[s])+";");else{var l=Sv(e,t,a);switch(o){case"animation":case"animationName":{r+=KE(o)+":"+l+";";break}default:r+=o+"{"+l+"}"}}}return r}var eN=/label:\s*([^\s;\n{]+)\s*(;|$)/g,xs,F2=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,o="";xs=void 0;var a=t[0];a==null||a.raw===void 0?(i=!1,o+=Sv(r,n,a)):o+=a[0];for(var s=1;s<t.length;s++)o+=Sv(r,n,t[s]),i&&(o+=a[s]);eN.lastIndex=0;for(var l="",u;(u=eN.exec(o))!==null;)l+="-"+u[1];var f=$ve(o)+l;return{name:f,styles:o,next:xs}},Pve=function(t){return t()},LK=ef["useInsertionEffect"]?ef["useInsertionEffect"]:!1,Lve=LK||Pve,tN=LK||T.useLayoutEffect,MK=T.createContext(typeof HTMLElement<"u"?yve({key:"css"}):null);MK.Provider;var FK=function(t){return T.forwardRef(function(n,r){var i=T.useContext(MK);return t(n,i,r)})},Sw=T.createContext({}),Mve=FK(function(e,t){var n=e.styles,r=F2([n],void 0,T.useContext(Sw)),i=T.useRef();return tN(function(){var o=t.key+"-global",a=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+o+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",o),a.hydrate([l])),i.current=[a,s],function(){a.flush()}},[t]),tN(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(r.next!==void 0&&DK(t,r.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function N2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return F2(t)}var nh=function(){var t=N2.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},Fve=Kme,Nve=function(t){return t!=="theme"},nN=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Fve:Nve},rN=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},Bve=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return IK(n,r,i),Lve(function(){return DK(n,r,i)}),null},jve=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,a;n!==void 0&&(o=n.label,a=n.target);var s=rN(t,n,r),l=s||nN(i),u=!l("as");return function(){var f=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),f[0]==null||f[0].raw===void 0)d.push.apply(d,f);else{d.push(f[0][0]);for(var p=f.length,m=1;m<p;m++)d.push(f[m],f[0][m])}var v=FK(function(y,w,b){var x=u&&y.as||i,S="",k=[],A=y;if(y.theme==null){A={};for(var $ in y)A[$]=y[$];A.theme=T.useContext(Sw)}typeof y.className=="string"?S=Ave(w.registered,k,y.className):y.className!=null&&(S=y.className+" ");var I=F2(d.concat(k),w.registered,A);S+=w.key+"-"+I.name,a!==void 0&&(S+=" "+a);var z=u&&s===void 0?nN(x):l,K={};for(var D in y)u&&D==="as"||z(D)&&(K[D]=y[D]);return K.className=S,K.ref=b,T.createElement(T.Fragment,null,T.createElement(Bve,{cache:w,serialized:I,isStringTag:typeof x=="string"}),T.createElement(x,K))});return v.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=i,v.__emotion_styles=d,v.__emotion_forwardProp=s,Object.defineProperty(v,"toString",{value:function(){return"."+a}}),v.withComponent=function(y,w){return e(y,F({},n,w,{shouldForwardProp:rN(v,w,!0)})).apply(void 0,d)},v}};const zve=jve;var Uve=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],MA=zve.bind();Uve.forEach(function(e){MA[e]=MA(e)});const Kve=MA;function Wve(e){return e==null||Object.keys(e).length===0}function Vve(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?i=>t(Wve(i)?n:i):t;return C.jsx(Mve,{styles:r})}/**
|
|
261
|
-
* @mui/styled-engine v5.13.2
|
|
262
|
-
*
|
|
263
|
-
* @license MIT
|
|
264
|
-
* This source code is licensed under the MIT license found in the
|
|
265
|
-
* LICENSE file in the root directory of this source tree.
|
|
266
|
-
*/function NK(e,t){return Kve(e,t)}const Hve=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},qve=["values","unit","step"],Gve=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>F({},n,{[r.key]:r.val}),{})};function Yve(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Qe(e,qve),o=Gve(t),a=Object.keys(o);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,m){const v=a.indexOf(m);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(v!==-1&&typeof t[a[v]]=="number"?t[a[v]]:m)-r/100}${n})`}function f(p){return a.indexOf(p)+1<a.length?u(p,a[a.indexOf(p)+1]):s(p)}function d(p){const m=a.indexOf(p);return m===0?s(a[1]):m===a.length-1?l(a[m]):u(p,a[a.indexOf(p)+1]).replace("@media","@media not all and")}return F({keys:a,values:o,up:s,down:l,between:u,only:f,not:d,unit:n},i)}const Xve={borderRadius:4},Zve=Xve;function jm(e,t){return t?Xi(e,t,{clone:!1}):e}const B2={xs:0,sm:600,md:900,lg:1200,xl:1536},iN={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${B2[e]}px)`};function Ja(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||iN;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||iN;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||B2).indexOf(s)!==-1){const l=o.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function BK(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function jK(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function Jve(e,...t){const n=BK(e),r=[n,...t].reduce((i,o)=>Xi(i,o),{});return jK(Object.keys(n),r)}function Qve(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,o)=>{o<e.length&&(n[i]=!0)}):r.forEach(i=>{e[i]!=null&&(n[i]=!0)}),n}function WE({values:e,breakpoints:t,base:n}){const r=n||Qve(e,t),i=Object.keys(r);if(i.length===0)return e;let o;return i.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[o],o=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[o],o=s):a[s]=e,a),{})}function Ip(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function A_(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=Ip(e,n)||r,t&&(i=t(i,r,e)),i}function yn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,u=Ip(l,r)||{};return Ja(a,s,d=>{let p=A_(u,i,d);return d===p&&typeof d=="string"&&(p=A_(u,i,`${t}${d==="default"?"":Fe(d)}`,d)),n===!1?p:{[n]:p}})};return o.propTypes={},o.filterProps=[t],o}function eye(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const tye={m:"margin",p:"padding"},nye={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},oN={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},rye=eye(e=>{if(e.length>2)if(oN[e])e=oN[e];else return[e];const[t,n]=e.split(""),r=tye[t],i=nye[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),j2=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],z2=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...j2,...z2];function iy(e,t,n,r){var i;const o=(i=Ip(e,t,!1))!=null?i:n;return typeof o=="number"?a=>typeof a=="string"?a:o*a:Array.isArray(o)?a=>typeof a=="string"?a:o[a]:typeof o=="function"?o:()=>{}}function U2(e){return iy(e,"spacing",8)}function rh(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function iye(e,t){return n=>e.reduce((r,i)=>(r[i]=rh(t,n),r),{})}function oye(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=rye(n),o=iye(i,r),a=e[n];return Ja(e,a,o)}function zK(e,t){const n=U2(e.theme);return Object.keys(e).map(r=>oye(e,t,r,n)).reduce(jm,{})}function hr(e){return zK(e,j2)}hr.propTypes={};hr.filterProps=j2;function gr(e){return zK(e,z2)}gr.propTypes={};gr.filterProps=z2;function aye(e=8){if(e.mui)return e;const t=U2({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function Cw(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?jm(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Es(e){return typeof e!="number"?e:`${e}px solid`}const sye=yn({prop:"border",themeKey:"borders",transform:Es}),lye=yn({prop:"borderTop",themeKey:"borders",transform:Es}),uye=yn({prop:"borderRight",themeKey:"borders",transform:Es}),cye=yn({prop:"borderBottom",themeKey:"borders",transform:Es}),fye=yn({prop:"borderLeft",themeKey:"borders",transform:Es}),dye=yn({prop:"borderColor",themeKey:"palette"}),pye=yn({prop:"borderTopColor",themeKey:"palette"}),hye=yn({prop:"borderRightColor",themeKey:"palette"}),gye=yn({prop:"borderBottomColor",themeKey:"palette"}),mye=yn({prop:"borderLeftColor",themeKey:"palette"}),Ew=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=iy(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:rh(t,r)});return Ja(e,e.borderRadius,n)}return null};Ew.propTypes={};Ew.filterProps=["borderRadius"];Cw(sye,lye,uye,cye,fye,dye,pye,hye,gye,mye,Ew);const kw=e=>{if(e.gap!==void 0&&e.gap!==null){const t=iy(e.theme,"spacing",8),n=r=>({gap:rh(t,r)});return Ja(e,e.gap,n)}return null};kw.propTypes={};kw.filterProps=["gap"];const Tw=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=iy(e.theme,"spacing",8),n=r=>({columnGap:rh(t,r)});return Ja(e,e.columnGap,n)}return null};Tw.propTypes={};Tw.filterProps=["columnGap"];const Aw=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=iy(e.theme,"spacing",8),n=r=>({rowGap:rh(t,r)});return Ja(e,e.rowGap,n)}return null};Aw.propTypes={};Aw.filterProps=["rowGap"];const vye=yn({prop:"gridColumn"}),yye=yn({prop:"gridRow"}),bye=yn({prop:"gridAutoFlow"}),_ye=yn({prop:"gridAutoColumns"}),xye=yn({prop:"gridAutoRows"}),wye=yn({prop:"gridTemplateColumns"}),Sye=yn({prop:"gridTemplateRows"}),Cye=yn({prop:"gridTemplateAreas"}),Eye=yn({prop:"gridArea"});Cw(kw,Tw,Aw,vye,yye,bye,_ye,xye,wye,Sye,Cye,Eye);function dp(e,t){return t==="grey"?t:e}const kye=yn({prop:"color",themeKey:"palette",transform:dp}),Tye=yn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:dp}),Aye=yn({prop:"backgroundColor",themeKey:"palette",transform:dp});Cw(kye,Tye,Aye);function wo(e){return e<=1&&e!==0?`${e*100}%`:e}const $ye=yn({prop:"width",transform:wo}),K2=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r;return{maxWidth:((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||B2[n]||wo(n)}};return Ja(e,e.maxWidth,t)}return null};K2.filterProps=["maxWidth"];const Rye=yn({prop:"minWidth",transform:wo}),Oye=yn({prop:"height",transform:wo}),Iye=yn({prop:"maxHeight",transform:wo}),Dye=yn({prop:"minHeight",transform:wo});yn({prop:"size",cssProperty:"width",transform:wo});yn({prop:"size",cssProperty:"height",transform:wo});const Pye=yn({prop:"boxSizing"});Cw($ye,K2,Rye,Oye,Iye,Dye,Pye);const Lye={border:{themeKey:"borders",transform:Es},borderTop:{themeKey:"borders",transform:Es},borderRight:{themeKey:"borders",transform:Es},borderBottom:{themeKey:"borders",transform:Es},borderLeft:{themeKey:"borders",transform:Es},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ew},color:{themeKey:"palette",transform:dp},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:dp},backgroundColor:{themeKey:"palette",transform:dp},p:{style:gr},pt:{style:gr},pr:{style:gr},pb:{style:gr},pl:{style:gr},px:{style:gr},py:{style:gr},padding:{style:gr},paddingTop:{style:gr},paddingRight:{style:gr},paddingBottom:{style:gr},paddingLeft:{style:gr},paddingX:{style:gr},paddingY:{style:gr},paddingInline:{style:gr},paddingInlineStart:{style:gr},paddingInlineEnd:{style:gr},paddingBlock:{style:gr},paddingBlockStart:{style:gr},paddingBlockEnd:{style:gr},m:{style:hr},mt:{style:hr},mr:{style:hr},mb:{style:hr},ml:{style:hr},mx:{style:hr},my:{style:hr},margin:{style:hr},marginTop:{style:hr},marginRight:{style:hr},marginBottom:{style:hr},marginLeft:{style:hr},marginX:{style:hr},marginY:{style:hr},marginInline:{style:hr},marginInlineStart:{style:hr},marginInlineEnd:{style:hr},marginBlock:{style:hr},marginBlockStart:{style:hr},marginBlockEnd:{style:hr},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:kw},rowGap:{style:Aw},columnGap:{style:Tw},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:wo},maxWidth:{style:K2},minWidth:{transform:wo},height:{transform:wo},maxHeight:{transform:wo},minHeight:{transform:wo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},$w=Lye;function Mye(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Fye(e,t){return typeof e=="function"?e(t):e}function Nye(){function e(n,r,i,o){const a={[n]:r,theme:i},s=o[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:f,style:d}=s;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=Ip(i,u)||{};return d?d(a):Ja(a,r,v=>{let y=A_(p,f,v);return v===y&&typeof v=="string"&&(y=A_(p,f,`${n}${v==="default"?"":Fe(v)}`,v)),l===!1?y:{[l]:y}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=(r=o.unstable_sxConfig)!=null?r:$w;function s(l){let u=l;if(typeof l=="function")u=l(o);else if(typeof l!="object")return l;if(!u)return null;const f=BK(o.breakpoints),d=Object.keys(f);let p=f;return Object.keys(u).forEach(m=>{const v=Fye(u[m],o);if(v!=null)if(typeof v=="object")if(a[m])p=jm(p,e(m,v,o,a));else{const y=Ja({theme:o},v,w=>({[m]:w}));Mye(y,v)?p[m]=t({sx:v,theme:o}):p=jm(p,y)}else p=jm(p,e(m,v,o,a))}),jK(d,p)}return Array.isArray(i)?i.map(s):s(i)}return t}const UK=Nye();UK.filterProps=["sx"];const Rw=UK,Bye=["breakpoints","palette","spacing","shape"];function W2(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=Qe(e,Bye),s=Yve(n),l=aye(i);let u=Xi({breakpoints:s,direction:"ltr",components:{},palette:F({mode:"light"},r),spacing:l,shape:F({},Zve,o)},a);return u=t.reduce((f,d)=>Xi(f,d),u),u.unstable_sxConfig=F({},$w,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return Rw({sx:d,theme:this})},u}function jye(e){return Object.keys(e).length===0}function Ow(e=null){const t=T.useContext(Sw);return!t||jye(t)?e:t}const zye=W2();function Iw(e=zye){return Ow(e)}function Uye({styles:e,themeId:t,defaultTheme:n={}}){const r=Iw(n),i=typeof e=="function"?e(t&&r[t]||r):e;return C.jsx(Vve,{styles:i})}const Kye=["sx"],Wye=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:$w;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function V2(e){const{sx:t}=e,n=Qe(e,Kye),{systemProps:r,otherProps:i}=Wye(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...a)=>{const s=t(...a);return Mc(s)?F({},r,s):r}:o=F({},r,t),F({},i,{sx:o})}function KK(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=KK(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Vye(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=KK(e))&&(r&&(r+=" "),r+=t);return r}const Hye=["className","component"];function qye(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,o=NK("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(Rw);return T.forwardRef(function(l,u){const f=Iw(n),d=V2(l),{className:p,component:m="div"}=d,v=Qe(d,Hye);return C.jsx(o,F({as:m,ref:u,className:Vye(p,i?i(r):r),theme:t&&f[t]||f},v))})}const Gye=["variant"];function aN(e){return e.length===0}function WK(e){const{variant:t}=e,n=Qe(e,Gye);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=aN(r)?e[i]:Fe(e[i]):r+=`${aN(r)?i:Fe(i)}${Fe(e[i].toString())}`}),r}const Yye=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Xye(e){return Object.keys(e).length===0}function Zye(e){return typeof e=="string"&&e.charCodeAt(0)>96}const Jye=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,Qye=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(i=>{const o=WK(i.props);r[o]=i.style}),r},e0e=(e,t,n,r)=>{var i;const{ownerState:o={}}=e,a=[],s=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return s&&s.forEach(l=>{let u=!0;Object.keys(l.props).forEach(f=>{o[f]!==l.props[f]&&e[f]!==l.props[f]&&(u=!1)}),u&&a.push(t[WK(l.props)])}),a};function zm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const t0e=W2(),n0e=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ug({defaultTheme:e,theme:t,themeId:n}){return Xye(t)?e:t[n]||t}function r0e(e){return e?(t,n)=>n[e]:null}function i0e(e={}){const{themeId:t,defaultTheme:n=t0e,rootShouldForwardProp:r=zm,slotShouldForwardProp:i=zm}=e,o=a=>Rw(F({},a,{theme:Ug(F({},a,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{Hve(a,k=>k.filter(A=>!(A!=null&&A.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:f,skipSx:d,overridesResolver:p=r0e(n0e(u))}=s,m=Qe(s,Yye),v=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,y=d||!1;let w,b=zm;u==="Root"||u==="root"?b=r:u?b=i:Zye(a)&&(b=void 0);const x=NK(a,F({shouldForwardProp:b,label:w},m)),S=(k,...A)=>{const $=A?A.map(D=>typeof D=="function"&&D.__emotion_real!==D?W=>D(F({},W,{theme:Ug(F({},W,{defaultTheme:n,themeId:t}))})):D):[];let I=k;l&&p&&$.push(D=>{const W=Ug(F({},D,{defaultTheme:n,themeId:t})),ie=Jye(l,W);if(ie){const ae={};return Object.entries(ie).forEach(([q,G])=>{ae[q]=typeof G=="function"?G(F({},D,{theme:W})):G}),p(D,ae)}return null}),l&&!v&&$.push(D=>{const W=Ug(F({},D,{defaultTheme:n,themeId:t}));return e0e(D,Qye(l,W),W,l)}),y||$.push(o);const z=$.length-A.length;if(Array.isArray(k)&&z>0){const D=new Array(z).fill("");I=[...k,...D],I.raw=[...k.raw,...D]}else typeof k=="function"&&k.__emotion_real!==k&&(I=D=>k(F({},D,{theme:Ug(F({},D,{defaultTheme:n,themeId:t}))})));const K=x(I,...$);return a.muiName&&(K.muiName=a.muiName),K};return x.withConfig&&(S.withConfig=x.withConfig),S}}function VK(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:$2(t.components[n].defaultProps,r)}function o0e({props:e,name:t,defaultTheme:n,themeId:r}){let i=Iw(n);return r&&(i=i[r]||i),VK({theme:i,name:t,props:e})}function H2(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function a0e(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function cf(e){if(e.type)return e;if(e.charAt(0)==="#")return cf(a0e(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Nu(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(Nu(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function Dw(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function s0e(e){e=cf(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(u,f=(u+n/30)%12)=>i-o*Math.max(Math.min(f-3,9-f,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Dw({type:s,values:l})}function sN(e){e=cf(e);let t=e.type==="hsl"||e.type==="hsla"?cf(s0e(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l0e(e,t){const n=sN(e),r=sN(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Vt(e,t){return e=cf(e),t=H2(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Dw(e)}function Cv(e,t){if(e=cf(e),t=H2(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Dw(e)}function Ev(e,t){if(e=cf(e),t=H2(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Dw(e)}const u0e=T.createContext(null),HK=u0e;function qK(){return T.useContext(HK)}const c0e=typeof Symbol=="function"&&Symbol.for,f0e=c0e?Symbol.for("mui.nested"):"__THEME_NESTED__";function d0e(e,t){return typeof t=="function"?t(e):F({},e,t)}function p0e(e){const{children:t,theme:n}=e,r=qK(),i=T.useMemo(()=>{const o=r===null?n:d0e(r,n);return o!=null&&(o[f0e]=r!==null),o},[n,r]);return C.jsx(HK.Provider,{value:i,children:t})}const lN={};function uN(e,t,n,r=!1){return T.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const o=n(i),a=e?F({},t,{[e]:o}):o;return r?()=>a:a}return e?F({},t,{[e]:n}):F({},t,n)},[e,t,n,r])}function GK(e){const{children:t,theme:n,themeId:r}=e,i=Ow(lN),o=qK()||lN,a=uN(r,i,n),s=uN(r,o,n,!0);return C.jsx(p0e,{theme:s,children:C.jsx(Sw.Provider,{value:a,children:t})})}function h0e(e,t){return F({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const g0e=["mode","contrastThreshold","tonalOffset"],cN={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:_v.white,default:_v.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}},VE={text:{primary:_v.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:_v.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 fN(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Ev(e.main,i):t==="dark"&&(e.dark=Cv(e.main,o)))}function m0e(e="light"){return e==="dark"?{main:yd[200],light:yd[50],dark:yd[400]}:{main:yd[700],light:yd[400],dark:yd[800]}}function v0e(e="light"){return e==="dark"?{main:vd[200],light:vd[50],dark:vd[400]}:{main:vd[500],light:vd[300],dark:vd[700]}}function y0e(e="light"){return e==="dark"?{main:md[500],light:md[300],dark:md[700]}:{main:md[700],light:md[400],dark:md[800]}}function b0e(e="light"){return e==="dark"?{main:bd[400],light:bd[300],dark:bd[700]}:{main:bd[700],light:bd[500],dark:bd[900]}}function _0e(e="light"){return e==="dark"?{main:_d[400],light:_d[300],dark:_d[700]}:{main:_d[800],light:_d[500],dark:_d[900]}}function x0e(e="light"){return e==="dark"?{main:jg[400],light:jg[300],dark:jg[700]}:{main:"#ed6c02",light:jg[500],dark:jg[900]}}function w0e(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Qe(e,g0e),o=e.primary||m0e(t),a=e.secondary||v0e(t),s=e.error||y0e(t),l=e.info||b0e(t),u=e.success||_0e(t),f=e.warning||x0e(t);function d(y){return l0e(y,VE.text.primary)>=n?VE.text.primary:cN.text.primary}const p=({color:y,name:w,mainShade:b=500,lightShade:x=300,darkShade:S=700})=>{if(y=F({},y),!y.main&&y[b]&&(y.main=y[b]),!y.hasOwnProperty("main"))throw new Error(Nu(11,w?` (${w})`:"",b));if(typeof y.main!="string")throw new Error(Nu(12,w?` (${w})`:"",JSON.stringify(y.main)));return fN(y,"light",x,r),fN(y,"dark",S,r),y.contrastText||(y.contrastText=d(y.main)),y},m={dark:VE,light:cN};return Xi(F({common:F({},_v),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:f,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:Jx,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},m[t]),i)}const S0e=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function C0e(e){return Math.round(e*1e5)/1e5}const dN={textTransform:"uppercase"},pN='"Roboto", "Helvetica", "Arial", sans-serif';function E0e(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=pN,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:f,pxToRem:d}=n,p=Qe(n,S0e),m=i/14,v=d||(b=>`${b/u*m}rem`),y=(b,x,S,k,A)=>F({fontFamily:r,fontWeight:b,fontSize:v(x),lineHeight:S},r===pN?{letterSpacing:`${C0e(k/x)}em`}:{},A,f),w={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(a,48,1.167,0),h4:y(a,34,1.235,.25),h5:y(a,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(a,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(a,16,1.5,.15),body2:y(a,14,1.43,.15),button:y(s,14,1.75,.4,dN),caption:y(a,12,1.66,.4),overline:y(a,12,2.66,1,dN)};return Xi(F({htmlFontSize:u,pxToRem:v,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},w),p,{clone:!1})}const k0e=.2,T0e=.14,A0e=.12;function Yn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${k0e})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${T0e})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${A0e})`].join(",")}const $0e=["none",Yn(0,2,1,-1,0,1,1,0,0,1,3,0),Yn(0,3,1,-2,0,2,2,0,0,1,5,0),Yn(0,3,3,-2,0,3,4,0,0,1,8,0),Yn(0,2,4,-1,0,4,5,0,0,1,10,0),Yn(0,3,5,-1,0,5,8,0,0,1,14,0),Yn(0,3,5,-1,0,6,10,0,0,1,18,0),Yn(0,4,5,-2,0,7,10,1,0,2,16,1),Yn(0,5,5,-3,0,8,10,1,0,3,14,2),Yn(0,5,6,-3,0,9,12,1,0,3,16,2),Yn(0,6,6,-3,0,10,14,1,0,4,18,3),Yn(0,6,7,-4,0,11,15,1,0,4,20,3),Yn(0,7,8,-4,0,12,17,2,0,5,22,4),Yn(0,7,8,-4,0,13,19,2,0,5,24,4),Yn(0,7,9,-4,0,14,21,2,0,5,26,4),Yn(0,8,9,-5,0,15,22,2,0,6,28,5),Yn(0,8,10,-5,0,16,24,2,0,6,30,5),Yn(0,8,11,-5,0,17,26,2,0,6,32,5),Yn(0,9,11,-5,0,18,28,2,0,7,34,6),Yn(0,9,12,-6,0,19,29,2,0,7,36,6),Yn(0,10,13,-6,0,20,31,3,0,8,38,7),Yn(0,10,13,-6,0,21,33,3,0,8,40,7),Yn(0,10,14,-6,0,22,35,3,0,8,42,7),Yn(0,11,14,-7,0,23,36,3,0,9,44,8),Yn(0,11,15,-7,0,24,38,3,0,9,46,8)],R0e=$0e,O0e=["duration","easing","delay"],I0e={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)"},D0e={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function hN(e){return`${Math.round(e)}ms`}function P0e(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function L0e(e){const t=F({},I0e,e.easing),n=F({},D0e,e.duration);return F({getAutoHeightDuration:P0e,create:(i=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=o;return Qe(o,O0e),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof a=="string"?a:hN(a)} ${s} ${typeof l=="string"?l:hN(l)}`).join(",")}},e,{easing:t,duration:n})}const M0e={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},F0e=M0e,N0e=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ih(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=Qe(e,N0e);if(e.vars)throw new Error(Nu(18));const s=w0e(r),l=W2(e);let u=Xi(l,{mixins:h0e(l.breakpoints,n),palette:s,shadows:R0e.slice(),typography:E0e(s,o),transitions:L0e(i),zIndex:F({},F0e)});return u=Xi(u,a),u=t.reduce((f,d)=>Xi(f,d),u),u.unstable_sxConfig=F({},$w,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return Rw({sx:d,theme:this})},u}const B0e=ih(),Pw=B0e;function nr(){return Iw(Pw)}function Ct({props:e,name:t}){return o0e({props:e,name:t,defaultTheme:Pw})}const Fo=e=>zm(e)&&e!=="classes",q2=zm,j0e=i0e({defaultTheme:Pw,rootShouldForwardProp:Fo}),Le=j0e,z0e=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},gN=z0e;function YK(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=YK(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ye(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=YK(e))&&(r&&(r+=" "),r+=t);return r}const U0e=Object.freeze(Object.defineProperty({__proto__:null,clsx:Ye,default:Ye},Symbol.toStringTag,{value:"Module"}));function Ds(e){return typeof e=="string"}function bm(e,t,n){return e===void 0||Ds(e)?t:F({},t,{ownerState:F({},t.ownerState,n)})}function K0e(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function FA(e,t){return typeof e=="function"?e(t):e}function mN(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function W0e(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const m=Ye(i==null?void 0:i.className,r==null?void 0:r.className,o,n==null?void 0:n.className),v=F({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),y=F({},n,i,r);return m.length>0&&(y.className=m),Object.keys(v).length>0&&(y.style=v),{props:y,internalRef:void 0}}const a=K0e(F({},i,r)),s=mN(r),l=mN(i),u=t(a),f=Ye(u==null?void 0:u.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),d=F({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),p=F({},u,n,l,s);return f.length>0&&(p.className=f),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}const V0e=["elementType","externalSlotProps","ownerState"];function ja(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i}=e,o=Qe(e,V0e),a=FA(r,i),{props:s,internalRef:l}=W0e(F({},o,{externalSlotProps:a})),u=On(l,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return bm(n,F({},s,{ref:u}),i)}function vN(e){return e.substring(2).toLowerCase()}function H0e(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function q0e(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:o="onTouchEnd"}=e,a=T.useRef(!1),s=T.useRef(null),l=T.useRef(!1),u=T.useRef(!1);T.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const f=On(t.ref,s),d=Ri(v=>{const y=u.current;u.current=!1;const w=er(s.current);if(!l.current||!s.current||"clientX"in v&&H0e(v,w))return;if(a.current){a.current=!1;return}let b;v.composedPath?b=v.composedPath().indexOf(s.current)>-1:b=!w.documentElement.contains(v.target)||s.current.contains(v.target),!b&&(n||!y)&&i(v)}),p=v=>y=>{u.current=!0;const w=t.props[v];w&&w(y)},m={ref:f};return o!==!1&&(m[o]=p(o)),T.useEffect(()=>{if(o!==!1){const v=vN(o),y=er(s.current),w=()=>{a.current=!0};return y.addEventListener(v,d),y.addEventListener("touchmove",w),()=>{y.removeEventListener(v,d),y.removeEventListener("touchmove",w)}}},[d,o]),r!==!1&&(m[r]=p(r)),T.useEffect(()=>{if(r!==!1){const v=vN(r),y=er(s.current);return y.addEventListener(v,d),()=>{y.removeEventListener(v,d)}}},[d,r]),C.jsx(T.Fragment,{children:T.cloneElement(t,m)})}const G0e=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Y0e(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function X0e(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Z0e(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||X0e(e))}function J0e(e){const t=[],n=[];return Array.from(e.querySelectorAll(G0e)).forEach((r,i)=>{const o=Y0e(r);o===-1||!Z0e(r)||(o===0?t.push(r):n.push({documentOrder:i,tabIndex:o,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function Q0e(){return!0}function e1e(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=J0e,isEnabled:a=Q0e,open:s}=e,l=T.useRef(!1),u=T.useRef(null),f=T.useRef(null),d=T.useRef(null),p=T.useRef(null),m=T.useRef(!1),v=T.useRef(null),y=On(t.ref,v),w=T.useRef(null);T.useEffect(()=>{!s||!v.current||(m.current=!n)},[n,s]),T.useEffect(()=>{if(!s||!v.current)return;const S=er(v.current);return v.current.contains(S.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),m.current&&v.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),T.useEffect(()=>{if(!s||!v.current)return;const S=er(v.current),k=I=>{const{current:z}=v;if(z!==null){if(!S.hasFocus()||r||!a()||l.current){l.current=!1;return}if(!z.contains(S.activeElement)){if(I&&p.current!==I.target||S.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!m.current)return;let W=[];if((S.activeElement===u.current||S.activeElement===f.current)&&(W=o(v.current)),W.length>0){var K,D;const ie=!!((K=w.current)!=null&&K.shiftKey&&((D=w.current)==null?void 0:D.key)==="Tab"),ae=W[0],q=W[W.length-1];typeof ae!="string"&&typeof q!="string"&&(ie?q.focus():ae.focus())}else z.focus()}}},A=I=>{w.current=I,!(r||!a()||I.key!=="Tab")&&S.activeElement===v.current&&I.shiftKey&&(l.current=!0,f.current&&f.current.focus())};S.addEventListener("focusin",k),S.addEventListener("keydown",A,!0);const $=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&k(null)},50);return()=>{clearInterval($),S.removeEventListener("focusin",k),S.removeEventListener("keydown",A,!0)}},[n,r,i,a,s,o]);const b=S=>{d.current===null&&(d.current=S.relatedTarget),m.current=!0,p.current=S.target;const k=t.props.onFocus;k&&k(S)},x=S=>{d.current===null&&(d.current=S.relatedTarget),m.current=!0};return C.jsxs(T.Fragment,{children:[C.jsx("div",{tabIndex:s?0:-1,onFocus:x,ref:u,"data-testid":"sentinelStart"}),T.cloneElement(t,{ref:y,onFocus:b}),C.jsx("div",{tabIndex:s?0:-1,onFocus:x,ref:f,"data-testid":"sentinelEnd"})]})}var Zi="top",pa="bottom",ha="right",Ji="left",G2="auto",oy=[Zi,pa,ha,Ji],Dp="start",kv="end",t1e="clippingParents",XK="viewport",Kg="popper",n1e="reference",yN=oy.reduce(function(e,t){return e.concat([t+"-"+Dp,t+"-"+kv])},[]),ZK=[].concat(oy,[G2]).reduce(function(e,t){return e.concat([t,t+"-"+Dp,t+"-"+kv])},[]),r1e="beforeRead",i1e="read",o1e="afterRead",a1e="beforeMain",s1e="main",l1e="afterMain",u1e="beforeWrite",c1e="write",f1e="afterWrite",d1e=[r1e,i1e,o1e,a1e,s1e,l1e,u1e,c1e,f1e];function Ls(e){return e?(e.nodeName||"").toLowerCase():null}function Oo(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ff(e){var t=Oo(e).Element;return e instanceof t||e instanceof Element}function sa(e){var t=Oo(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Y2(e){if(typeof ShadowRoot>"u")return!1;var t=Oo(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function p1e(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!sa(o)||!Ls(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function h1e(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(r){var i=t.elements[r],o=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!sa(i)||!Ls(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const g1e={name:"applyStyles",enabled:!0,phase:"write",fn:p1e,effect:h1e,requires:["computeStyles"]};function Ps(e){return e.split("-")[0]}var Xc=Math.max,$_=Math.min,Pp=Math.round;function NA(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function JK(){return!/^((?!chrome|android).)*safari/i.test(NA())}function Lp(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&sa(e)&&(i=e.offsetWidth>0&&Pp(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Pp(r.height)/e.offsetHeight||1);var a=ff(e)?Oo(e):window,s=a.visualViewport,l=!JK()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/i,f=(r.top+(l&&s?s.offsetTop:0))/o,d=r.width/i,p=r.height/o;return{width:d,height:p,top:f,right:u+d,bottom:f+p,left:u,x:u,y:f}}function X2(e){var t=Lp(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 QK(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Y2(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Rl(e){return Oo(e).getComputedStyle(e)}function m1e(e){return["table","td","th"].indexOf(Ls(e))>=0}function Zu(e){return((ff(e)?e.ownerDocument:e.document)||window.document).documentElement}function Lw(e){return Ls(e)==="html"?e:e.assignedSlot||e.parentNode||(Y2(e)?e.host:null)||Zu(e)}function bN(e){return!sa(e)||Rl(e).position==="fixed"?null:e.offsetParent}function v1e(e){var t=/firefox/i.test(NA()),n=/Trident/i.test(NA());if(n&&sa(e)){var r=Rl(e);if(r.position==="fixed")return null}var i=Lw(e);for(Y2(i)&&(i=i.host);sa(i)&&["html","body"].indexOf(Ls(i))<0;){var o=Rl(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function ay(e){for(var t=Oo(e),n=bN(e);n&&m1e(n)&&Rl(n).position==="static";)n=bN(n);return n&&(Ls(n)==="html"||Ls(n)==="body"&&Rl(n).position==="static")?t:n||v1e(e)||t}function Z2(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Um(e,t,n){return Xc(e,$_(t,n))}function y1e(e,t,n){var r=Um(e,t,n);return r>n?n:r}function eW(){return{top:0,right:0,bottom:0,left:0}}function tW(e){return Object.assign({},eW(),e)}function nW(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var b1e=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,tW(typeof t!="number"?t:nW(t,oy))};function _1e(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Ps(n.placement),l=Z2(s),u=[Ji,ha].indexOf(s)>=0,f=u?"height":"width";if(!(!o||!a)){var d=b1e(i.padding,n),p=X2(o),m=l==="y"?Zi:Ji,v=l==="y"?pa:ha,y=n.rects.reference[f]+n.rects.reference[l]-a[l]-n.rects.popper[f],w=a[l]-n.rects.reference[l],b=ay(o),x=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,S=y/2-w/2,k=d[m],A=x-p[f]-d[v],$=x/2-p[f]/2+S,I=Um(k,$,A),z=l;n.modifiersData[r]=(t={},t[z]=I,t.centerOffset=I-$,t)}}function x1e(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||QK(t.elements.popper,i)&&(t.elements.arrow=i))}const w1e={name:"arrow",enabled:!0,phase:"main",fn:_1e,effect:x1e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Mp(e){return e.split("-")[1]}var S1e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function C1e(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Pp(n*i)/i||0,y:Pp(r*i)/i||0}}function _N(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,d=e.isFixed,p=a.x,m=p===void 0?0:p,v=a.y,y=v===void 0?0:v,w=typeof f=="function"?f({x:m,y}):{x:m,y};m=w.x,y=w.y;var b=a.hasOwnProperty("x"),x=a.hasOwnProperty("y"),S=Ji,k=Zi,A=window;if(u){var $=ay(n),I="clientHeight",z="clientWidth";if($===Oo(n)&&($=Zu(n),Rl($).position!=="static"&&s==="absolute"&&(I="scrollHeight",z="scrollWidth")),$=$,i===Zi||(i===Ji||i===ha)&&o===kv){k=pa;var K=d&&$===A&&A.visualViewport?A.visualViewport.height:$[I];y-=K-r.height,y*=l?1:-1}if(i===Ji||(i===Zi||i===pa)&&o===kv){S=ha;var D=d&&$===A&&A.visualViewport?A.visualViewport.width:$[z];m-=D-r.width,m*=l?1:-1}}var W=Object.assign({position:s},u&&S1e),ie=f===!0?C1e({x:m,y},Oo(n)):{x:m,y};if(m=ie.x,y=ie.y,l){var ae;return Object.assign({},W,(ae={},ae[k]=x?"0":"",ae[S]=b?"0":"",ae.transform=(A.devicePixelRatio||1)<=1?"translate("+m+"px, "+y+"px)":"translate3d("+m+"px, "+y+"px, 0)",ae))}return Object.assign({},W,(t={},t[k]=x?y+"px":"",t[S]=b?m+"px":"",t.transform="",t))}function E1e(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,a=o===void 0?!0:o,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:Ps(t.placement),variation:Mp(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,_N(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,_N(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const k1e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:E1e,data:{}};var v1={passive:!0};function T1e(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=Oo(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(f){f.addEventListener("scroll",n.update,v1)}),s&&l.addEventListener("resize",n.update,v1),function(){o&&u.forEach(function(f){f.removeEventListener("scroll",n.update,v1)}),s&&l.removeEventListener("resize",n.update,v1)}}const A1e={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:T1e,data:{}};var $1e={left:"right",right:"left",bottom:"top",top:"bottom"};function Ab(e){return e.replace(/left|right|bottom|top/g,function(t){return $1e[t]})}var R1e={start:"end",end:"start"};function xN(e){return e.replace(/start|end/g,function(t){return R1e[t]})}function J2(e){var t=Oo(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Q2(e){return Lp(Zu(e)).left+J2(e).scrollLeft}function O1e(e,t){var n=Oo(e),r=Zu(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=JK();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+Q2(e),y:l}}function I1e(e){var t,n=Zu(e),r=J2(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Xc(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Xc(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Q2(e),l=-r.scrollTop;return Rl(i||n).direction==="rtl"&&(s+=Xc(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function eO(e){var t=Rl(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function rW(e){return["html","body","#document"].indexOf(Ls(e))>=0?e.ownerDocument.body:sa(e)&&eO(e)?e:rW(Lw(e))}function Km(e,t){var n;t===void 0&&(t=[]);var r=rW(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Oo(r),a=i?[o].concat(o.visualViewport||[],eO(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(Km(Lw(a)))}function BA(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function D1e(e,t){var n=Lp(e,!1,t==="fixed");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}function wN(e,t,n){return t===XK?BA(O1e(e,n)):ff(t)?D1e(t,n):BA(I1e(Zu(e)))}function P1e(e){var t=Km(Lw(e)),n=["absolute","fixed"].indexOf(Rl(e).position)>=0,r=n&&sa(e)?ay(e):e;return ff(r)?t.filter(function(i){return ff(i)&&QK(i,r)&&Ls(i)!=="body"}):[]}function L1e(e,t,n,r){var i=t==="clippingParents"?P1e(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var f=wN(e,u,r);return l.top=Xc(f.top,l.top),l.right=$_(f.right,l.right),l.bottom=$_(f.bottom,l.bottom),l.left=Xc(f.left,l.left),l},wN(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 iW(e){var t=e.reference,n=e.element,r=e.placement,i=r?Ps(r):null,o=r?Mp(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case Zi:l={x:a,y:t.y-n.height};break;case pa:l={x:a,y:t.y+t.height};break;case ha:l={x:t.x+t.width,y:s};break;case Ji:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?Z2(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(o){case Dp:l[u]=l[u]-(t[f]/2-n[f]/2);break;case kv:l[u]=l[u]+(t[f]/2-n[f]/2);break}}return l}function Tv(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,a=o===void 0?e.strategy:o,s=n.boundary,l=s===void 0?t1e:s,u=n.rootBoundary,f=u===void 0?XK:u,d=n.elementContext,p=d===void 0?Kg:d,m=n.altBoundary,v=m===void 0?!1:m,y=n.padding,w=y===void 0?0:y,b=tW(typeof w!="number"?w:nW(w,oy)),x=p===Kg?n1e:Kg,S=e.rects.popper,k=e.elements[v?x:p],A=L1e(ff(k)?k:k.contextElement||Zu(e.elements.popper),l,f,a),$=Lp(e.elements.reference),I=iW({reference:$,element:S,strategy:"absolute",placement:i}),z=BA(Object.assign({},S,I)),K=p===Kg?z:$,D={top:A.top-K.top+b.top,bottom:K.bottom-A.bottom+b.bottom,left:A.left-K.left+b.left,right:K.right-A.right+b.right},W=e.modifiersData.offset;if(p===Kg&&W){var ie=W[i];Object.keys(D).forEach(function(ae){var q=[ha,pa].indexOf(ae)>=0?1:-1,G=[Zi,pa].indexOf(ae)>=0?"y":"x";D[ae]+=ie[G]*q})}return D}function M1e(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?ZK:l,f=Mp(r),d=f?s?yN:yN.filter(function(v){return Mp(v)===f}):oy,p=d.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=d);var m=p.reduce(function(v,y){return v[y]=Tv(e,{placement:y,boundary:i,rootBoundary:o,padding:a})[Ps(y)],v},{});return Object.keys(m).sort(function(v,y){return m[v]-m[y]})}function F1e(e){if(Ps(e)===G2)return[];var t=Ab(e);return[xN(e),t,xN(t)]}function N1e(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,f=n.boundary,d=n.rootBoundary,p=n.altBoundary,m=n.flipVariations,v=m===void 0?!0:m,y=n.allowedAutoPlacements,w=t.options.placement,b=Ps(w),x=b===w,S=l||(x||!v?[Ab(w)]:F1e(w)),k=[w].concat(S).reduce(function(oe,ue){return oe.concat(Ps(ue)===G2?M1e(t,{placement:ue,boundary:f,rootBoundary:d,padding:u,flipVariations:v,allowedAutoPlacements:y}):ue)},[]),A=t.rects.reference,$=t.rects.popper,I=new Map,z=!0,K=k[0],D=0;D<k.length;D++){var W=k[D],ie=Ps(W),ae=Mp(W)===Dp,q=[Zi,pa].indexOf(ie)>=0,G=q?"width":"height",J=Tv(t,{placement:W,boundary:f,rootBoundary:d,altBoundary:p,padding:u}),le=q?ae?ha:Ji:ae?pa:Zi;A[G]>$[G]&&(le=Ab(le));var Q=Ab(le),te=[];if(o&&te.push(J[ie]<=0),s&&te.push(J[le]<=0,J[Q]<=0),te.every(function(oe){return oe})){K=W,z=!1;break}I.set(W,te)}if(z)for(var P=v?3:1,me=function(ue){var se=k.find(function(Ee){var Re=I.get(Ee);if(Re)return Re.slice(0,ue).every(function(ke){return ke})});if(se)return K=se,"break"},j=P;j>0;j--){var L=me(j);if(L==="break")break}t.placement!==K&&(t.modifiersData[r]._skip=!0,t.placement=K,t.reset=!0)}}const B1e={name:"flip",enabled:!0,phase:"main",fn:N1e,requiresIfExists:["offset"],data:{_skip:!1}};function SN(e,t,n){return n===void 0&&(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 CN(e){return[Zi,ha,pa,Ji].some(function(t){return e[t]>=0})}function j1e(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Tv(t,{elementContext:"reference"}),s=Tv(t,{altBoundary:!0}),l=SN(a,r),u=SN(s,i,o),f=CN(l),d=CN(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":d})}const z1e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:j1e};function U1e(e,t,n){var r=Ps(e),i=[Ji,Zi].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[Ji,ha].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function K1e(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=ZK.reduce(function(f,d){return f[d]=U1e(d,t.rects,o),f},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const W1e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:K1e};function V1e(e){var t=e.state,n=e.name;t.modifiersData[n]=iW({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const H1e={name:"popperOffsets",enabled:!0,phase:"read",fn:V1e,data:{}};function q1e(e){return e==="x"?"y":"x"}function G1e(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,f=n.altBoundary,d=n.padding,p=n.tether,m=p===void 0?!0:p,v=n.tetherOffset,y=v===void 0?0:v,w=Tv(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:f}),b=Ps(t.placement),x=Mp(t.placement),S=!x,k=Z2(b),A=q1e(k),$=t.modifiersData.popperOffsets,I=t.rects.reference,z=t.rects.popper,K=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,D=typeof K=="number"?{mainAxis:K,altAxis:K}:Object.assign({mainAxis:0,altAxis:0},K),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,ie={x:0,y:0};if($){if(o){var ae,q=k==="y"?Zi:Ji,G=k==="y"?pa:ha,J=k==="y"?"height":"width",le=$[k],Q=le+w[q],te=le-w[G],P=m?-z[J]/2:0,me=x===Dp?I[J]:z[J],j=x===Dp?-z[J]:-I[J],L=t.elements.arrow,oe=m&&L?X2(L):{width:0,height:0},ue=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:eW(),se=ue[q],Ee=ue[G],Re=Um(0,I[J],oe[J]),ke=S?I[J]/2-P-Re-se-D.mainAxis:me-Re-se-D.mainAxis,De=S?-I[J]/2+P+Re+Ee+D.mainAxis:j+Re+Ee+D.mainAxis,Me=t.elements.arrow&&ay(t.elements.arrow),Be=Me?k==="y"?Me.clientTop||0:Me.clientLeft||0:0,Ue=(ae=W==null?void 0:W[k])!=null?ae:0,Ke=le+ke-Ue-Be,He=le+De-Ue,lt=Um(m?$_(Q,Ke):Q,le,m?Xc(te,He):te);$[k]=lt,ie[k]=lt-le}if(s){var Xe,nt=k==="x"?Zi:Ji,mt=k==="x"?pa:ha,ge=$[A],$e=A==="y"?"height":"width",Te=ge+w[nt],Pe=ge-w[mt],U=[Zi,Ji].indexOf(b)!==-1,H=(Xe=W==null?void 0:W[A])!=null?Xe:0,de=U?Te:ge-I[$e]-z[$e]-H+D.altAxis,Y=U?ge+I[$e]+z[$e]-H-D.altAxis:Pe,Z=m&&U?y1e(de,ge,Y):Um(m?de:Te,ge,m?Y:Pe);$[A]=Z,ie[A]=Z-ge}t.modifiersData[r]=ie}}const Y1e={name:"preventOverflow",enabled:!0,phase:"main",fn:G1e,requiresIfExists:["offset"]};function X1e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Z1e(e){return e===Oo(e)||!sa(e)?J2(e):X1e(e)}function J1e(e){var t=e.getBoundingClientRect(),n=Pp(t.width)/e.offsetWidth||1,r=Pp(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Q1e(e,t,n){n===void 0&&(n=!1);var r=sa(t),i=sa(t)&&J1e(t),o=Zu(t),a=Lp(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ls(t)!=="body"||eO(o))&&(s=Z1e(t)),sa(t)?(l=Lp(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Q2(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function ebe(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&i(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function tbe(e){var t=ebe(e);return d1e.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function nbe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function rbe(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var EN={placement:"bottom",modifiers:[],strategy:"absolute"};function kN(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function ibe(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?EN:i;return function(s,l,u){u===void 0&&(u=o);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},EN,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],p=!1,m={state:f,setOptions:function(b){var x=typeof b=="function"?b(f.options):b;y(),f.options=Object.assign({},o,f.options,x),f.scrollParents={reference:ff(s)?Km(s):s.contextElement?Km(s.contextElement):[],popper:Km(l)};var S=tbe(rbe([].concat(r,f.options.modifiers)));return f.orderedModifiers=S.filter(function(k){return k.enabled}),v(),m.update()},forceUpdate:function(){if(!p){var b=f.elements,x=b.reference,S=b.popper;if(kN(x,S)){f.rects={reference:Q1e(x,ay(S),f.options.strategy==="fixed"),popper:X2(S)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(D){return f.modifiersData[D.name]=Object.assign({},D.data)});for(var k=0;k<f.orderedModifiers.length;k++){if(f.reset===!0){f.reset=!1,k=-1;continue}var A=f.orderedModifiers[k],$=A.fn,I=A.options,z=I===void 0?{}:I,K=A.name;typeof $=="function"&&(f=$({state:f,options:z,name:K,instance:m})||f)}}}},update:nbe(function(){return new Promise(function(w){m.forceUpdate(),w(f)})}),destroy:function(){y(),p=!0}};if(!kN(s,l))return m;m.setOptions(u).then(function(w){!p&&u.onFirstUpdate&&u.onFirstUpdate(w)});function v(){f.orderedModifiers.forEach(function(w){var b=w.name,x=w.options,S=x===void 0?{}:x,k=w.effect;if(typeof k=="function"){var A=k({state:f,name:b,instance:m,options:S}),$=function(){};d.push(A||$)}})}function y(){d.forEach(function(w){return w()}),d=[]}return m}}var obe=[A1e,H1e,k1e,g1e,W1e,B1e,Y1e,w1e,z1e],abe=ibe({defaultModifiers:obe});function sbe(e){return typeof e=="function"?e():e}const lbe=T.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[a,s]=T.useState(null),l=On(T.isValidElement(r)?r.ref:null,n);if(eo(()=>{o||s(sbe(i)||document.body)},[i,o]),eo(()=>{if(a&&!o)return k_(n,a),()=>{k_(n,null)}},[n,a,o]),o){if(T.isValidElement(r)){const u={ref:l};return T.cloneElement(r,u)}return C.jsx(T.Fragment,{children:r})}return C.jsx(T.Fragment,{children:a&&_f.createPortal(r,a)})}),oW=lbe;function ube(e){return bt("MuiPopperUnstyled",e)}_t("MuiPopperUnstyled",["root"]);const cbe=["anchorEl","children","component","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","slotProps","slots","TransitionProps"],fbe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function dbe(e,t){if(t==="ltr")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}}function jA(e){return typeof e=="function"?e():e}function pbe(e){return e.nodeType!==void 0}const hbe=()=>St({root:["root"]},ube,{}),gbe={},mbe=T.forwardRef(function(t,n){var r;const{anchorEl:i,children:o,component:a,direction:s,disablePortal:l,modifiers:u,open:f,ownerState:d,placement:p,popperOptions:m,popperRef:v,slotProps:y={},slots:w={},TransitionProps:b}=t,x=Qe(t,cbe),S=T.useRef(null),k=On(S,n),A=T.useRef(null),$=On(A,v),I=T.useRef($);eo(()=>{I.current=$},[$]),T.useImperativeHandle(v,()=>A.current,[]);const z=dbe(p,s),[K,D]=T.useState(z),[W,ie]=T.useState(jA(i));T.useEffect(()=>{A.current&&A.current.forceUpdate()}),T.useEffect(()=>{i&&ie(jA(i))},[i]),eo(()=>{if(!W||!f)return;const le=P=>{D(P.placement)};let Q=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:P})=>{le(P)}}];u!=null&&(Q=Q.concat(u)),m&&m.modifiers!=null&&(Q=Q.concat(m.modifiers));const te=abe(W,S.current,F({placement:z},m,{modifiers:Q}));return I.current(te),()=>{te.destroy(),I.current(null)}},[W,l,u,f,m,z]);const ae={placement:K};b!==null&&(ae.TransitionProps=b);const q=hbe(),G=(r=a??w.root)!=null?r:"div",J=ja({elementType:G,externalSlotProps:y.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:k},ownerState:F({},t,d),className:q.root});return C.jsx(G,F({},J,{children:typeof o=="function"?o(ae):o}))}),vbe=T.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:f,placement:d="bottom",popperOptions:p=gbe,popperRef:m,style:v,transition:y=!1,slotProps:w={},slots:b={}}=t,x=Qe(t,fbe),[S,k]=T.useState(!0),A=()=>{k(!1)},$=()=>{k(!0)};if(!l&&!f&&(!y||S))return null;let I;if(o)I=o;else if(r){const D=jA(r);I=D&&pbe(D)?er(D).body:er(null).body}const z=!f&&l&&(!y||S)?"none":void 0,K=y?{in:f,onEnter:A,onExited:$}:void 0;return C.jsx(oW,{disablePortal:s,container:I,children:C.jsx(mbe,F({anchorEl:r,direction:a,disablePortal:s,modifiers:u,ref:n,open:y?!S:f,placement:d,popperOptions:p,popperRef:m,slotProps:w,slots:b},x,{style:F({position:"fixed",top:0,left:0,display:z},v),TransitionProps:K,children:i}))})}),ybe=vbe;function bbe(e){const t=er(e);return t.body===e?da(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Wm(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function TN(e){return parseInt(da(e).getComputedStyle(e).paddingRight,10)||0}function _be(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function AN(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,a=>{const s=o.indexOf(a)===-1,l=!_be(a);s&&l&&Wm(a,i)})}function HE(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function xbe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(bbe(r)){const a=yK(er(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${TN(r)+a}px`;const s=er(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${TN(l)+a}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=er(r).body;else{const a=r.parentElement,s=da(r);o=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:a,property:s})=>{o?a.style.setProperty(s,o):a.style.removeProperty(s)})}}function wbe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class Sbe{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Wm(t.modalRef,!1);const i=wbe(n);AN(n,t.mount,t.modalRef,i,!0);const o=HE(this.containers,a=>a.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=HE(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=xbe(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=HE(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&Wm(t.modalRef,n),AN(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=o.modals[o.modals.length-1];a.modalRef&&Wm(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Cbe(e){return bt("MuiModal",e)}_t("MuiModal",["root","hidden"]);const Ebe=["children","classes","closeAfterTransition","component","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],kbe=e=>{const{open:t,exited:n,classes:r}=e;return St({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Cbe,r)};function Tbe(e){return typeof e=="function"?e():e}function Abe(e){return e?e.props.hasOwnProperty("in"):!1}const $be=new Sbe,Rbe=T.forwardRef(function(t,n){var r,i;const{children:o,classes:a,closeAfterTransition:s=!1,component:l,container:u,disableAutoFocus:f=!1,disableEnforceFocus:d=!1,disableEscapeKeyDown:p=!1,disablePortal:m=!1,disableRestoreFocus:v=!1,disableScrollLock:y=!1,hideBackdrop:w=!1,keepMounted:b=!1,manager:x=$be,onBackdropClick:S,onClose:k,onKeyDown:A,open:$,onTransitionEnter:I,onTransitionExited:z,slotProps:K={},slots:D={}}=t,W=Qe(t,Ebe),[ie,ae]=T.useState(!$),q=T.useRef({}),G=T.useRef(null),J=T.useRef(null),le=On(J,n),Q=Abe(o),te=(r=t["aria-hidden"])!=null?r:!0,P=()=>er(G.current),me=()=>(q.current.modalRef=J.current,q.current.mountNode=G.current,q.current),j=()=>{x.mount(me(),{disableScrollLock:y}),J.current&&(J.current.scrollTop=0)},L=Ri(()=>{const nt=Tbe(u)||P().body;x.add(me(),nt),J.current&&j()}),oe=T.useCallback(()=>x.isTopModal(me()),[x]),ue=Ri(nt=>{G.current=nt,!(!nt||!J.current)&&($&&oe()?j():Wm(J.current,te))}),se=T.useCallback(()=>{x.remove(me(),te)},[x,te]);T.useEffect(()=>()=>{se()},[se]),T.useEffect(()=>{$?L():(!Q||!s)&&se()},[$,se,Q,s,L]);const Ee=F({},t,{classes:a,closeAfterTransition:s,disableAutoFocus:f,disableEnforceFocus:d,disableEscapeKeyDown:p,disablePortal:m,disableRestoreFocus:v,disableScrollLock:y,exited:ie,hideBackdrop:w,keepMounted:b}),Re=kbe(Ee),ke=()=>{ae(!1),I&&I()},De=()=>{ae(!0),z&&z(),s&&se()},Me=nt=>{nt.target===nt.currentTarget&&(S&&S(nt),k&&k(nt,"backdropClick"))},Be=nt=>{A&&A(nt),!(nt.key!=="Escape"||!oe())&&(p||(nt.stopPropagation(),k&&k(nt,"escapeKeyDown")))},Ue={};o.props.tabIndex===void 0&&(Ue.tabIndex="-1"),Q&&(Ue.onEnter=IA(ke,o.props.onEnter),Ue.onExited=IA(De,o.props.onExited));const Ke=(i=l??D.root)!=null?i:"div",He=ja({elementType:Ke,externalSlotProps:K.root,externalForwardedProps:W,additionalProps:{ref:le,role:"presentation",onKeyDown:Be},className:Re.root,ownerState:Ee}),lt=D.backdrop,Xe=ja({elementType:lt,externalSlotProps:K.backdrop,additionalProps:{"aria-hidden":!0,onClick:Me,open:$},className:Re.backdrop,ownerState:Ee});return!b&&!$&&(!Q||ie)?null:C.jsx(oW,{ref:ue,container:u,disablePortal:m,children:C.jsxs(Ke,F({},He,{children:[!w&<?C.jsx(lt,F({},Xe)):null,C.jsx(e1e,{disableEnforceFocus:d,disableAutoFocus:f,disableRestoreFocus:v,isEnabled:oe,open:$,children:T.cloneElement(o,Ue)})]}))})}),Obe=Rbe,Ibe=2;function aW(e,t){return e-t}function Wg(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function $N(e,t){var n;const{index:r}=(n=e.reduce((i,o,a)=>{const s=Math.abs(t-o);return i===null||s<i.distance||s===i.distance?{distance:s,index:a}:i},null))!=null?n:{};return r}function y1(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const i=n.changedTouches[r];if(i.identifier===t.current)return{x:i.clientX,y:i.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function RN(e,t,n){return(e-t)*100/(n-t)}function Dbe(e,t,n){return(n-t)*e+t}function Pbe(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function Lbe(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(Pbe(t)))}function ON({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(aW)}function b1({sliderRef:e,activeIndex:t,setActive:n}){var r,i;const o=er(e.current);if(!((r=e.current)!=null&&r.contains(o.activeElement))||Number(o==null||(i=o.activeElement)==null?void 0:i.getAttribute("data-index"))!==t){var a;(a=e.current)==null||a.querySelector(`[type="range"][data-index="${t}"]`).focus()}n&&n(t)}const Mbe={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},Fbe=e=>e;let _1;function qE(){return _1===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?_1=CSS.supports("touch-action","none"):_1=!0),_1}function Nbe(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:o=!1,marks:a=!1,max:s=100,min:l=0,name:u,onChange:f,onChangeCommitted:d,orientation:p="horizontal",ref:m,scale:v=Fbe,step:y=1,tabIndex:w,value:b}=e,x=T.useRef(),[S,k]=T.useState(-1),[A,$]=T.useState(-1),[I,z]=T.useState(!1),K=T.useRef(0),[D,W]=Rp({controlled:b,default:n??l,name:"Slider"}),ie=f&&((U,H,de)=>{const Y=U.nativeEvent||U,Z=new Y.constructor(Y.type,Y);Object.defineProperty(Z,"target",{writable:!0,value:{value:H,name:u}}),f(Z,H,de)}),ae=Array.isArray(D);let q=ae?D.slice().sort(aW):[D];q=q.map(U=>Wg(U,l,s));const G=a===!0&&y!==null?[...Array(Math.floor((s-l)/y)+1)].map((U,H)=>({value:l+y*H})):a||[],J=G.map(U=>U.value),{isFocusVisibleRef:le,onBlur:Q,onFocus:te,ref:P}=ny(),[me,j]=T.useState(-1),L=T.useRef(),oe=On(P,L),ue=On(m,oe),se=U=>H=>{var de;const Y=Number(H.currentTarget.getAttribute("data-index"));te(H),le.current===!0&&j(Y),$(Y),U==null||(de=U.onFocus)==null||de.call(U,H)},Ee=U=>H=>{var de;Q(H),le.current===!1&&j(-1),$(-1),U==null||(de=U.onBlur)==null||de.call(U,H)};eo(()=>{if(r&&L.current.contains(document.activeElement)){var U;(U=document.activeElement)==null||U.blur()}},[r]),r&&S!==-1&&k(-1),r&&me!==-1&&j(-1);const Re=U=>H=>{var de;(de=U.onChange)==null||de.call(U,H);const Y=Number(H.currentTarget.getAttribute("data-index")),Z=q[Y],re=J.indexOf(Z);let xe=H.target.valueAsNumber;if(G&&y==null&&(xe=xe<Z?J[re-1]:J[re+1]),xe=Wg(xe,l,s),G&&y==null){const Se=J.indexOf(q[Y]);xe=xe<q[Y]?J[Se-1]:J[Se+1]}if(ae){i&&(xe=Wg(xe,q[Y-1]||-1/0,q[Y+1]||1/0));const Se=xe;xe=ON({values:q,newValue:xe,index:Y});let _e=Y;i||(_e=xe.indexOf(Se)),b1({sliderRef:L,activeIndex:_e})}W(xe),j(Y),ie&&ie(H,xe,Y),d&&d(H,xe)},ke=T.useRef();let De=p;o&&p==="horizontal"&&(De+="-reverse");const Me=({finger:U,move:H=!1})=>{const{current:de}=L,{width:Y,height:Z,bottom:re,left:xe}=de.getBoundingClientRect();let Se;De.indexOf("vertical")===0?Se=(re-U.y)/Z:Se=(U.x-xe)/Y,De.indexOf("-reverse")!==-1&&(Se=1-Se);let _e;if(_e=Dbe(Se,l,s),y)_e=Lbe(_e,y,l);else{const tt=$N(J,_e);_e=J[tt]}_e=Wg(_e,l,s);let et=0;if(ae){H?et=ke.current:et=$N(q,_e),i&&(_e=Wg(_e,q[et-1]||-1/0,q[et+1]||1/0));const tt=_e;_e=ON({values:q,newValue:_e,index:et}),i&&H||(et=_e.indexOf(tt),ke.current=et)}return{newValue:_e,activeIndex:et}},Be=Ri(U=>{const H=y1(U,x);if(!H)return;if(K.current+=1,U.type==="mousemove"&&U.buttons===0){Ue(U);return}const{newValue:de,activeIndex:Y}=Me({finger:H,move:!0});b1({sliderRef:L,activeIndex:Y,setActive:k}),W(de),!I&&K.current>Ibe&&z(!0),ie&&de!==D&&ie(U,de,Y)}),Ue=Ri(U=>{const H=y1(U,x);if(z(!1),!H)return;const{newValue:de}=Me({finger:H,move:!0});k(-1),U.type==="touchend"&&$(-1),d&&d(U,de),x.current=void 0,He()}),Ke=Ri(U=>{if(r)return;qE()||U.preventDefault();const H=U.changedTouches[0];H!=null&&(x.current=H.identifier);const de=y1(U,x);if(de!==!1){const{newValue:Z,activeIndex:re}=Me({finger:de});b1({sliderRef:L,activeIndex:re,setActive:k}),W(Z),ie&&ie(U,Z,re)}K.current=0;const Y=er(L.current);Y.addEventListener("touchmove",Be),Y.addEventListener("touchend",Ue)}),He=T.useCallback(()=>{const U=er(L.current);U.removeEventListener("mousemove",Be),U.removeEventListener("mouseup",Ue),U.removeEventListener("touchmove",Be),U.removeEventListener("touchend",Ue)},[Ue,Be]);T.useEffect(()=>{const{current:U}=L;return U.addEventListener("touchstart",Ke,{passive:qE()}),()=>{U.removeEventListener("touchstart",Ke,{passive:qE()}),He()}},[He,Ke]),T.useEffect(()=>{r&&He()},[r,He]);const lt=U=>H=>{var de;if((de=U.onMouseDown)==null||de.call(U,H),r||H.defaultPrevented||H.button!==0)return;H.preventDefault();const Y=y1(H,x);if(Y!==!1){const{newValue:re,activeIndex:xe}=Me({finger:Y});b1({sliderRef:L,activeIndex:xe,setActive:k}),W(re),ie&&ie(H,re,xe)}K.current=0;const Z=er(L.current);Z.addEventListener("mousemove",Be),Z.addEventListener("mouseup",Ue)},Xe=RN(ae?q[0]:l,l,s),nt=RN(q[q.length-1],l,s)-Xe,mt=(U={})=>{const H={onMouseDown:lt(U||{})},de=F({},U,H);return F({ref:ue},de)},ge=U=>H=>{var de;(de=U.onMouseOver)==null||de.call(U,H);const Y=Number(H.currentTarget.getAttribute("data-index"));$(Y)},$e=U=>H=>{var de;(de=U.onMouseLeave)==null||de.call(U,H),$(-1)};return{active:S,axis:De,axisProps:Mbe,dragging:I,focusedThumbIndex:me,getHiddenInputProps:(U={})=>{var H;const de={onChange:Re(U||{}),onFocus:se(U||{}),onBlur:Ee(U||{})},Y=F({},U,de);return F({tabIndex:w,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":v(s),"aria-valuemin":v(l),name:u,type:"range",min:e.min,max:e.max,step:(H=e.step)!=null?H:void 0,disabled:r},Y,{style:F({},Nme,{direction:o?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:mt,getThumbProps:(U={})=>{const H={onMouseOver:ge(U||{}),onMouseLeave:$e(U||{})};return F({},U,H)},marks:G,open:A,range:ae,trackLeap:nt,trackOffset:Xe,values:q}}const Bbe=["onChange","maxRows","minRows","style","value"];function x1(e,t){return parseInt(e[t],10)||0}const jbe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function IN(e){return e==null||Object.keys(e).length===0}const zbe=T.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:o=1,style:a,value:s}=t,l=Qe(t,Bbe),{current:u}=T.useRef(s!=null),f=T.useRef(null),d=On(n,f),p=T.useRef(null),m=T.useRef(0),[v,y]=T.useState({}),w=T.useCallback(()=>{const A=f.current,I=da(A).getComputedStyle(A);if(I.width==="0px")return{};const z=p.current;z.style.width=I.width,z.value=A.value||t.placeholder||"x",z.value.slice(-1)===`
|
|
267
|
-
`&&(z.value+=" ");const K=I["box-sizing"],D=x1(I,"padding-bottom")+x1(I,"padding-top"),W=x1(I,"border-bottom-width")+x1(I,"border-top-width"),ie=z.scrollHeight;z.value="x";const ae=z.scrollHeight;let q=ie;o&&(q=Math.max(Number(o)*ae,q)),i&&(q=Math.min(Number(i)*ae,q)),q=Math.max(q,ae);const G=q+(K==="border-box"?D+W:0),J=Math.abs(q-ie)<=1;return{outerHeightStyle:G,overflow:J}},[i,o,t.placeholder]),b=(A,$)=>{const{outerHeightStyle:I,overflow:z}=$;return m.current<20&&(I>0&&Math.abs((A.outerHeightStyle||0)-I)>1||A.overflow!==z)?(m.current+=1,{overflow:z,outerHeightStyle:I}):A},x=T.useCallback(()=>{const A=w();IN(A)||y($=>b($,A))},[w]),S=()=>{const A=w();IN(A)||_f.flushSync(()=>{y($=>b($,A))})};T.useEffect(()=>{const A=uf(()=>{m.current=0,f.current&&S()}),$=da(f.current);$.addEventListener("resize",A);let I;return typeof ResizeObserver<"u"&&(I=new ResizeObserver(A),I.observe(f.current)),()=>{A.clear(),$.removeEventListener("resize",A),I&&I.disconnect()}}),eo(()=>{x()}),T.useEffect(()=>{m.current=0},[s]);const k=A=>{m.current=0,u||x(),r&&r(A)};return C.jsxs(T.Fragment,{children:[C.jsx("textarea",F({value:s,onChange:k,ref:d,rows:o,style:F({height:v.outerHeightStyle,overflow:v.overflow?"hidden":null},a)},l)),C.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:F({},jbe.shadow,a,{padding:0})})]})}),Ube=zbe;function Kbe(e){return bt("MuiSvgIcon",e)}_t("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Wbe=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Vbe=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${Fe(t)}`,`fontSize${Fe(n)}`]};return St(i,Kbe,r)},Hbe=Le("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Fe(n.color)}`],t[`fontSize${Fe(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,u,f,d,p,m,v,y,w,b,x;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(o=i.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(s=a.pxToRem)==null?void 0:s.call(a,20))||"1.25rem",medium:((l=e.typography)==null||(u=l.pxToRem)==null?void 0:u.call(l,24))||"1.5rem",large:((f=e.typography)==null||(d=f.pxToRem)==null?void 0:d.call(f,35))||"2.1875rem"}[t.fontSize],color:(p=(m=(e.vars||e).palette)==null||(v=m[t.color])==null?void 0:v.main)!=null?p:{action:(y=(e.vars||e).palette)==null||(w=y.action)==null?void 0:w.active,disabled:(b=(e.vars||e).palette)==null||(x=b.action)==null?void 0:x.disabled,inherit:void 0}[t.color]}}),sW=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:d,viewBox:p="0 0 24 24"}=r,m=Qe(r,Wbe),v=F({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:p}),y={};f||(y.viewBox=p);const w=Vbe(v);return C.jsxs(Hbe,F({as:s,className:Ye(w.root,o),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},y,m,{ownerState:v,children:[i,d?C.jsx("title",{children:d}):null]}))});sW.muiName="SvgIcon";const R_=sW;function Mi(e,t){function n(r,i){return C.jsx(R_,F({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=R_.muiName,T.memo(T.forwardRef(n))}const qbe={configure:e=>{R2.configure(e)}},Gbe=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Fe,createChainedFunction:IA,createSvgIcon:Mi,debounce:uf,deprecatedPropType:kme,isMuiElement:cp,ownerDocument:er,ownerWindow:da,requirePropFactory:Tme,setRef:k_,unstable_ClassNameGenerator:qbe,unstable_useEnhancedEffect:eo,unstable_useId:ty,unsupportedProp:Rme,useControlled:Rp,useEventCallback:Ri,useForkRef:On,useIsFocusVisible:ny},Symbol.toStringTag,{value:"Module"}));function O_(e,t){return O_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},O_(e,t)}function tO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,O_(e,t)}const DN={disabled:!1},I_=ht.createContext(null);var Ybe=function(t){return t.scrollTop},_m="unmounted",$c="exited",Rc="entering",Id="entered",zA="exiting",Ml=function(e){tO(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=i,s=a&&!a.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?s?(l=$c,o.appearStatus=Rc):l=Id:r.unmountOnExit||r.mountOnEnter?l=_m:l=$c,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===_m?{status:$c}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==Rc&&a!==Id&&(o=Rc):(a===Rc||a===Id)&&(o=zA)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Rc){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:vm.findDOMNode(this);a&&Ybe(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===$c&&this.setState({status:_m})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[vm.findDOMNode(this),s],u=l[0],f=l[1],d=this.getTimeouts(),p=s?d.appear:d.enter;if(!i&&!a||DN.disabled){this.safeSetState({status:Id},function(){o.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:Rc},function(){o.props.onEntering(u,f),o.onTransitionEnd(p,function(){o.safeSetState({status:Id},function(){o.props.onEntered(u,f)})})})},n.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:vm.findDOMNode(this);if(!o||DN.disabled){this.safeSetState({status:$c},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:zA},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:$c},function(){i.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:vm.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],f=l[1];this.props.addEndListener(u,f)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===_m)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Qe(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ht.createElement(I_.Provider,{value:null},typeof a=="function"?a(i,s):ht.cloneElement(ht.Children.only(a),s))},t}(ht.Component);Ml.contextType=I_;Ml.propTypes={};function wd(){}Ml.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:wd,onEntering:wd,onEntered:wd,onExit:wd,onExiting:wd,onExited:wd};Ml.UNMOUNTED=_m;Ml.EXITED=$c;Ml.ENTERING=Rc;Ml.ENTERED=Id;Ml.EXITING=zA;const nO=Ml;function D_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rO(e,t){var n=function(o){return t&&T.isValidElement(o)?t(o):o},r=Object.create(null);return e&&T.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function Xbe(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var a,s={};for(var l in t){if(r[l])for(a=0;a<r[l].length;a++){var u=r[l][a];s[r[l][a]]=n(u)}s[l]=n(l)}for(a=0;a<i.length;a++)s[i[a]]=n(i[a]);return s}function Vc(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Zbe(e,t){return rO(e.children,function(n){return T.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Vc(n,"appear",e),enter:Vc(n,"enter",e),exit:Vc(n,"exit",e)})})}function Jbe(e,t,n){var r=rO(e.children),i=Xbe(t,r);return Object.keys(i).forEach(function(o){var a=i[o];if(T.isValidElement(a)){var s=o in t,l=o in r,u=t[o],f=T.isValidElement(u)&&!u.props.in;l&&(!s||f)?i[o]=T.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Vc(a,"exit",e),enter:Vc(a,"enter",e)}):!l&&s&&!f?i[o]=T.cloneElement(a,{in:!1}):l&&s&&T.isValidElement(u)&&(i[o]=T.cloneElement(a,{onExited:n.bind(null,a),in:u.props.in,exit:Vc(a,"exit",e),enter:Vc(a,"enter",e)}))}}),i}var Qbe=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},e_e={component:"div",childFactory:function(t){return t}},iO=function(e){tO(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=o.handleExited.bind(D_(o));return o.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},o}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(i,o){var a=o.children,s=o.handleExited,l=o.firstRender;return{children:l?Zbe(i,s):Jbe(i,a,s),firstRender:!1}},n.handleExited=function(i,o){var a=rO(this.props.children);i.key in a||(i.props.onExited&&i.props.onExited(o),this.mounted&&this.setState(function(s){var l=F({},s.children);return delete l[i.key],{children:l}}))},n.render=function(){var i=this.props,o=i.component,a=i.childFactory,s=Qe(i,["component","childFactory"]),l=this.state.contextValue,u=Qbe(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,o===null?ht.createElement(I_.Provider,{value:l},u):ht.createElement(I_.Provider,{value:l},ht.createElement(o,s,u))},t}(ht.Component);iO.propTypes={};iO.defaultProps=e_e;const t_e=iO,oO=e=>e.scrollTop;function Fp(e,t){var n,r;const{timeout:i,easing:o,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:a.transitionDelay}}function n_e(e){return bt("MuiPaper",e)}_t("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 r_e=["className","component","elevation","square","variant"],i_e=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return St(o,n_e,i)},o_e=Le("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return F({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&F({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Vt("#fff",gN(t.elevation))}, ${Vt("#fff",gN(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),a_e=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,u=Qe(r,r_e),f=F({},r,{component:o,elevation:a,square:s,variant:l}),d=i_e(f);return C.jsx(o_e,F({as:o,ownerState:f,className:Ye(d.root,i),ref:n},u))}),Sf=a_e;function s_e(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:u}=e,[f,d]=T.useState(!1),p=Ye(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},v=Ye(n.child,f&&n.childLeaving,r&&n.childPulsate);return!s&&!f&&d(!0),T.useEffect(()=>{if(!s&&l!=null){const y=setTimeout(l,u);return()=>{clearTimeout(y)}}},[l,s,u]),C.jsx("span",{className:p,style:m,children:C.jsx("span",{className:v})})}const l_e=_t("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Jo=l_e,u_e=["center","classes","className"];let Mw=e=>e,PN,LN,MN,FN;const UA=550,c_e=80,f_e=nh(PN||(PN=Mw`
|
|
268
|
-
0% {
|
|
269
|
-
transform: scale(0);
|
|
270
|
-
opacity: 0.1;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
100% {
|
|
274
|
-
transform: scale(1);
|
|
275
|
-
opacity: 0.3;
|
|
276
|
-
}
|
|
277
|
-
`)),d_e=nh(LN||(LN=Mw`
|
|
278
|
-
0% {
|
|
279
|
-
opacity: 1;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
100% {
|
|
283
|
-
opacity: 0;
|
|
284
|
-
}
|
|
285
|
-
`)),p_e=nh(MN||(MN=Mw`
|
|
286
|
-
0% {
|
|
287
|
-
transform: scale(1);
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
50% {
|
|
291
|
-
transform: scale(0.92);
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
100% {
|
|
295
|
-
transform: scale(1);
|
|
296
|
-
}
|
|
297
|
-
`)),h_e=Le("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),g_e=Le(s_e,{name:"MuiTouchRipple",slot:"Ripple"})(FN||(FN=Mw`
|
|
298
|
-
opacity: 0;
|
|
299
|
-
position: absolute;
|
|
300
|
-
|
|
301
|
-
&.${0} {
|
|
302
|
-
opacity: 0.3;
|
|
303
|
-
transform: scale(1);
|
|
304
|
-
animation-name: ${0};
|
|
305
|
-
animation-duration: ${0}ms;
|
|
306
|
-
animation-timing-function: ${0};
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
&.${0} {
|
|
310
|
-
animation-duration: ${0}ms;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
& .${0} {
|
|
314
|
-
opacity: 1;
|
|
315
|
-
display: block;
|
|
316
|
-
width: 100%;
|
|
317
|
-
height: 100%;
|
|
318
|
-
border-radius: 50%;
|
|
319
|
-
background-color: currentColor;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
& .${0} {
|
|
323
|
-
opacity: 0;
|
|
324
|
-
animation-name: ${0};
|
|
325
|
-
animation-duration: ${0}ms;
|
|
326
|
-
animation-timing-function: ${0};
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
& .${0} {
|
|
330
|
-
position: absolute;
|
|
331
|
-
/* @noflip */
|
|
332
|
-
left: 0px;
|
|
333
|
-
top: 0;
|
|
334
|
-
animation-name: ${0};
|
|
335
|
-
animation-duration: 2500ms;
|
|
336
|
-
animation-timing-function: ${0};
|
|
337
|
-
animation-iteration-count: infinite;
|
|
338
|
-
animation-delay: 200ms;
|
|
339
|
-
}
|
|
340
|
-
`),Jo.rippleVisible,f_e,UA,({theme:e})=>e.transitions.easing.easeInOut,Jo.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Jo.child,Jo.childLeaving,d_e,UA,({theme:e})=>e.transitions.easing.easeInOut,Jo.childPulsate,p_e,({theme:e})=>e.transitions.easing.easeInOut),m_e=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a}=r,s=Qe(r,u_e),[l,u]=T.useState([]),f=T.useRef(0),d=T.useRef(null);T.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const p=T.useRef(!1),m=T.useRef(null),v=T.useRef(null),y=T.useRef(null);T.useEffect(()=>()=>{clearTimeout(m.current)},[]);const w=T.useCallback(k=>{const{pulsate:A,rippleX:$,rippleY:I,rippleSize:z,cb:K}=k;u(D=>[...D,C.jsx(g_e,{classes:{ripple:Ye(o.ripple,Jo.ripple),rippleVisible:Ye(o.rippleVisible,Jo.rippleVisible),ripplePulsate:Ye(o.ripplePulsate,Jo.ripplePulsate),child:Ye(o.child,Jo.child),childLeaving:Ye(o.childLeaving,Jo.childLeaving),childPulsate:Ye(o.childPulsate,Jo.childPulsate)},timeout:UA,pulsate:A,rippleX:$,rippleY:I,rippleSize:z},f.current)]),f.current+=1,d.current=K},[o]),b=T.useCallback((k={},A={},$=()=>{})=>{const{pulsate:I=!1,center:z=i||A.pulsate,fakeElement:K=!1}=A;if((k==null?void 0:k.type)==="mousedown"&&p.current){p.current=!1;return}(k==null?void 0:k.type)==="touchstart"&&(p.current=!0);const D=K?null:y.current,W=D?D.getBoundingClientRect():{width:0,height:0,left:0,top:0};let ie,ae,q;if(z||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)ie=Math.round(W.width/2),ae=Math.round(W.height/2);else{const{clientX:G,clientY:J}=k.touches&&k.touches.length>0?k.touches[0]:k;ie=Math.round(G-W.left),ae=Math.round(J-W.top)}if(z)q=Math.sqrt((2*W.width**2+W.height**2)/3),q%2===0&&(q+=1);else{const G=Math.max(Math.abs((D?D.clientWidth:0)-ie),ie)*2+2,J=Math.max(Math.abs((D?D.clientHeight:0)-ae),ae)*2+2;q=Math.sqrt(G**2+J**2)}k!=null&&k.touches?v.current===null&&(v.current=()=>{w({pulsate:I,rippleX:ie,rippleY:ae,rippleSize:q,cb:$})},m.current=setTimeout(()=>{v.current&&(v.current(),v.current=null)},c_e)):w({pulsate:I,rippleX:ie,rippleY:ae,rippleSize:q,cb:$})},[i,w]),x=T.useCallback(()=>{b({},{pulsate:!0})},[b]),S=T.useCallback((k,A)=>{if(clearTimeout(m.current),(k==null?void 0:k.type)==="touchend"&&v.current){v.current(),v.current=null,m.current=setTimeout(()=>{S(k,A)});return}v.current=null,u($=>$.length>0?$.slice(1):$),d.current=A},[]);return T.useImperativeHandle(n,()=>({pulsate:x,start:b,stop:S}),[x,b,S]),C.jsx(h_e,F({className:Ye(Jo.root,o.root,a),ref:y},s,{children:C.jsx(t_e,{component:null,exit:!0,children:l})}))}),v_e=m_e;function y_e(e){return bt("MuiButtonBase",e)}const b_e=_t("MuiButtonBase",["root","disabled","focusVisible"]),__e=b_e,x_e=["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"],w_e=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=St({root:["root",t&&"disabled",n&&"focusVisible"]},y_e,i);return n&&r&&(a.root+=` ${r}`),a},S_e=Le("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"},[`&.${__e.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),C_e=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:f=!1,disableTouchRipple:d=!1,focusRipple:p=!1,LinkComponent:m="a",onBlur:v,onClick:y,onContextMenu:w,onDragLeave:b,onFocus:x,onFocusVisible:S,onKeyDown:k,onKeyUp:A,onMouseDown:$,onMouseLeave:I,onMouseUp:z,onTouchEnd:K,onTouchMove:D,onTouchStart:W,tabIndex:ie=0,TouchRippleProps:ae,touchRippleRef:q,type:G}=r,J=Qe(r,x_e),le=T.useRef(null),Q=T.useRef(null),te=On(Q,q),{isFocusVisibleRef:P,onFocus:me,onBlur:j,ref:L}=ny(),[oe,ue]=T.useState(!1);u&&oe&&ue(!1),T.useImperativeHandle(i,()=>({focusVisible:()=>{ue(!0),le.current.focus()}}),[]);const[se,Ee]=T.useState(!1);T.useEffect(()=>{Ee(!0)},[]);const Re=se&&!f&&!u;T.useEffect(()=>{oe&&p&&!f&&se&&Q.current.pulsate()},[f,p,oe,se]);function ke(re,xe,Se=d){return Ri(_e=>(xe&&xe(_e),!Se&&Q.current&&Q.current[re](_e),!0))}const De=ke("start",$),Me=ke("stop",w),Be=ke("stop",b),Ue=ke("stop",z),Ke=ke("stop",re=>{oe&&re.preventDefault(),I&&I(re)}),He=ke("start",W),lt=ke("stop",K),Xe=ke("stop",D),nt=ke("stop",re=>{j(re),P.current===!1&&ue(!1),v&&v(re)},!1),mt=Ri(re=>{le.current||(le.current=re.currentTarget),me(re),P.current===!0&&(ue(!0),S&&S(re)),x&&x(re)}),ge=()=>{const re=le.current;return l&&l!=="button"&&!(re.tagName==="A"&&re.href)},$e=T.useRef(!1),Te=Ri(re=>{p&&!$e.current&&oe&&Q.current&&re.key===" "&&($e.current=!0,Q.current.stop(re,()=>{Q.current.start(re)})),re.target===re.currentTarget&&ge()&&re.key===" "&&re.preventDefault(),k&&k(re),re.target===re.currentTarget&&ge()&&re.key==="Enter"&&!u&&(re.preventDefault(),y&&y(re))}),Pe=Ri(re=>{p&&re.key===" "&&Q.current&&oe&&!re.defaultPrevented&&($e.current=!1,Q.current.stop(re,()=>{Q.current.pulsate(re)})),A&&A(re),y&&re.target===re.currentTarget&&ge()&&re.key===" "&&!re.defaultPrevented&&y(re)});let U=l;U==="button"&&(J.href||J.to)&&(U=m);const H={};U==="button"?(H.type=G===void 0?"button":G,H.disabled=u):(!J.href&&!J.to&&(H.role="button"),u&&(H["aria-disabled"]=u));const de=On(n,L,le),Y=F({},r,{centerRipple:o,component:l,disabled:u,disableRipple:f,disableTouchRipple:d,focusRipple:p,tabIndex:ie,focusVisible:oe}),Z=w_e(Y);return C.jsxs(S_e,F({as:U,className:Ye(Z.root,s),ownerState:Y,onBlur:nt,onClick:y,onContextMenu:Me,onFocus:mt,onKeyDown:Te,onKeyUp:Pe,onMouseDown:De,onMouseLeave:Ke,onMouseUp:Ue,onDragLeave:Be,onTouchEnd:lt,onTouchMove:Xe,onTouchStart:He,ref:de,tabIndex:u?-1:ie,type:G},H,J,{children:[a,Re?C.jsx(v_e,F({ref:te,center:o},ae)):null]}))}),Ms=C_e;function E_e(e){return bt("MuiAlert",e)}const k_e=_t("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),NN=k_e;function T_e(e){return bt("MuiIconButton",e)}const A_e=_t("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),$_e=A_e,R_e=["edge","children","className","color","disabled","disableFocusRipple","size"],O_e=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${Fe(r)}`,i&&`edge${Fe(i)}`,`size${Fe(o)}`]};return St(a,T_e,t)},I_e=Le(Ms,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Fe(n.color)}`],n.edge&&t[`edge${Fe(n.edge)}`],t[`size${Fe(n.size)}`]]}})(({theme:e,ownerState:t})=>F({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Vt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return F({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&F({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":F({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vt(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${$_e.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),D_e=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:a,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:f="medium"}=r,d=Qe(r,R_e),p=F({},r,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:f}),m=O_e(p);return C.jsx(I_e,F({className:Ye(m.root,a),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,ownerState:p},d,{children:o}))}),vr=D_e,P_e=Mi(C.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"),L_e=Mi(C.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),M_e=Mi(C.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"),F_e=Mi(C.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"),N_e=Mi(C.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"),B_e=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],j_e=e=>{const{variant:t,color:n,severity:r,classes:i}=e,o={root:["root",`${t}${Fe(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return St(o,E_e,i)},z_e=Le(Sf,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Fe(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Cv:Ev,r=e.palette.mode==="light"?Ev:Cv,i=t.color||t.severity;return F({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},i&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${i}Color`]:n(e.palette[i].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${i}StandardBg`]:r(e.palette[i].light,.9),[`& .${NN.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}},i&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${i}Color`]:n(e.palette[i].light,.6),border:`1px solid ${(e.vars||e).palette[i].light}`,[`& .${NN.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}},i&&t.variant==="filled"&&F({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${i}FilledColor`],backgroundColor:e.vars.palette.Alert[`${i}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[i].dark:e.palette[i].main,color:e.palette.getContrastText(e.palette[i].main)}))}),U_e=Le("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),K_e=Le("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),BN=Le("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),jN={success:C.jsx(P_e,{fontSize:"inherit"}),warning:C.jsx(L_e,{fontSize:"inherit"}),error:C.jsx(M_e,{fontSize:"inherit"}),info:C.jsx(F_e,{fontSize:"inherit"})},W_e=T.forwardRef(function(t,n){var r,i,o,a,s,l;const u=Ct({props:t,name:"MuiAlert"}),{action:f,children:d,className:p,closeText:m="Close",color:v,components:y={},componentsProps:w={},icon:b,iconMapping:x=jN,onClose:S,role:k="alert",severity:A="success",slotProps:$={},slots:I={},variant:z="standard"}=u,K=Qe(u,B_e),D=F({},u,{color:v,severity:A,variant:z}),W=j_e(D),ie=(r=(i=I.closeButton)!=null?i:y.CloseButton)!=null?r:vr,ae=(o=(a=I.closeIcon)!=null?a:y.CloseIcon)!=null?o:N_e,q=(s=$.closeButton)!=null?s:w.closeButton,G=(l=$.closeIcon)!=null?l:w.closeIcon;return C.jsxs(z_e,F({role:k,elevation:0,ownerState:D,className:Ye(W.root,p),ref:n},K,{children:[b!==!1?C.jsx(U_e,{ownerState:D,className:W.icon,children:b||x[A]||jN[A]}):null,C.jsx(K_e,{ownerState:D,className:W.message,children:d}),f!=null?C.jsx(BN,{ownerState:D,className:W.action,children:f}):null,f==null&&S?C.jsx(BN,{ownerState:D,className:W.action,children:C.jsx(ie,F({size:"small","aria-label":m,title:m,color:"inherit",onClick:S},q,{children:C.jsx(ae,F({fontSize:"small"},G))}))}):null]}))}),no=W_e;function V_e(e){return bt("MuiTypography",e)}_t("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const H_e=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],q_e=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,e.align!=="inherit"&&`align${Fe(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return St(s,V_e,a)},G_e=Le("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Fe(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>F({margin:0},t.variant&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),zN={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Y_e={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},X_e=e=>Y_e[e]||e,Z_e=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiTypography"}),i=X_e(r.color),o=V2(F({},r,{color:i})),{align:a="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:f=!1,paragraph:d=!1,variant:p="body1",variantMapping:m=zN}=o,v=Qe(o,H_e),y=F({},o,{align:a,color:i,className:s,component:l,gutterBottom:u,noWrap:f,paragraph:d,variant:p,variantMapping:m}),w=l||(d?"p":m[p]||zN[p])||"span",b=q_e(y);return C.jsx(G_e,F({as:w,ref:n,ownerState:y,className:Ye(b.root,s)},v))}),Zt=Z_e;function J_e(e){return bt("MuiAlertTitle",e)}_t("MuiAlertTitle",["root"]);const Q_e=["className"],exe=e=>{const{classes:t}=e;return St({root:["root"]},J_e,t)},txe=Le(Zt,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2})),nxe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiAlertTitle"}),{className:i}=r,o=Qe(r,Q_e),a=r,s=exe(a);return C.jsx(txe,F({gutterBottom:!0,component:"div",ownerState:a,ref:n,className:Ye(s.root,i)},o))}),rxe=nxe;function ixe(e){return bt("MuiAppBar",e)}_t("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const oxe=["className","color","enableColorOnDark","position"],axe=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${Fe(t)}`,`position${Fe(n)}`]};return St(i,ixe,r)},w1=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,sxe=Le(Sf,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Fe(n.position)}`],t[`color${Fe(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return F({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&F({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&F({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&F({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:w1(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:w1(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:w1(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:w1(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),lxe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:a=!1,position:s="fixed"}=r,l=Qe(r,oxe),u=F({},r,{color:o,position:s,enableColorOnDark:a}),f=axe(u);return C.jsx(sxe,F({square:!0,component:"header",ownerState:u,elevation:4,className:Ye(f.root,i,s==="fixed"&&"mui-fixed"),ref:n},l))}),uxe=lxe,cxe=["components","componentsProps","slots","slotProps"],fxe=Le(ybe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),dxe=T.forwardRef(function(t,n){var r;const i=Ow(),o=Ct({props:t,name:"MuiPopper"}),{components:a,componentsProps:s,slots:l,slotProps:u}=o,f=Qe(o,cxe),d=(r=l==null?void 0:l.root)!=null?r:a==null?void 0:a.Root;return C.jsx(fxe,F({direction:i==null?void 0:i.direction,slots:{root:d},slotProps:u??s},f,{ref:n}))}),lW=dxe;function pxe(e){return bt("MuiListSubheader",e)}_t("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const hxe=["className","color","component","disableGutters","disableSticky","inset"],gxe=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e,a={root:["root",n!=="default"&&`color${Fe(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return St(a,pxe,t)},mxe=Le("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Fe(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>F({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),vxe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiListSubheader"}),{className:i,color:o="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:u=!1}=r,f=Qe(r,hxe),d=F({},r,{color:o,component:a,disableGutters:s,disableSticky:l,inset:u}),p=gxe(d);return C.jsx(mxe,F({as:a,className:Ye(p.root,i),ref:n,ownerState:d},f))}),yxe=vxe,bxe=Mi(C.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 _xe(e){return bt("MuiChip",e)}const xxe=_t("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"]),ln=xxe,wxe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Sxe=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:o,onDelete:a,clickable:s,variant:l}=e,u={root:["root",l,n&&"disabled",`size${Fe(r)}`,`color${Fe(i)}`,s&&"clickable",s&&`clickableColor${Fe(i)}`,a&&"deletable",a&&`deletableColor${Fe(i)}`,`${l}${Fe(i)}`],label:["label",`label${Fe(r)}`],avatar:["avatar",`avatar${Fe(r)}`,`avatarColor${Fe(i)}`],icon:["icon",`icon${Fe(r)}`,`iconColor${Fe(o)}`],deleteIcon:["deleteIcon",`deleteIcon${Fe(r)}`,`deleteIconColor${Fe(i)}`,`deleteIcon${Fe(l)}Color${Fe(i)}`]};return St(u,_xe,t)},Cxe=Le("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:o,onDelete:a,size:s,variant:l}=n;return[{[`& .${ln.avatar}`]:t.avatar},{[`& .${ln.avatar}`]:t[`avatar${Fe(s)}`]},{[`& .${ln.avatar}`]:t[`avatarColor${Fe(r)}`]},{[`& .${ln.icon}`]:t.icon},{[`& .${ln.icon}`]:t[`icon${Fe(s)}`]},{[`& .${ln.icon}`]:t[`iconColor${Fe(i)}`]},{[`& .${ln.deleteIcon}`]:t.deleteIcon},{[`& .${ln.deleteIcon}`]:t[`deleteIcon${Fe(s)}`]},{[`& .${ln.deleteIcon}`]:t[`deleteIconColor${Fe(r)}`]},{[`& .${ln.deleteIcon}`]:t[`deleteIcon${Fe(l)}Color${Fe(r)}`]},t.root,t[`size${Fe(s)}`],t[`color${Fe(r)}`],o&&t.clickable,o&&r!=="default"&&t[`clickableColor${Fe(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${Fe(r)}`],t[l],t[`${l}${Fe(r)}`]]}})(({theme:e,ownerState:t})=>{const n=Vt(e.palette.text.primary,.26),r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return F({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${ln.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${ln.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${ln.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${ln.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${ln.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${ln.icon}`]:F({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&F({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},t.color!=="default"&&{color:"inherit"})),[`& .${ln.deleteIcon}`]:F({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:n,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Vt(n,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Vt(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${ln.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Vt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${ln.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>F({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Vt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${ln.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Vt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${ln.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>F({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${ln.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ln.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${ln.avatar}`]:{marginLeft:4},[`& .${ln.avatarSmall}`]:{marginLeft:2},[`& .${ln.icon}`]:{marginLeft:4},[`& .${ln.iconSmall}`]:{marginLeft:2},[`& .${ln.deleteIcon}`]:{marginRight:5},[`& .${ln.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Vt(e.palette[t.color].main,.7)}`,[`&.${ln.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vt(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${ln.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Vt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${ln.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Vt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Exe=Le("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Fe(r)}`]]}})(({ownerState:e})=>F({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.size==="small"&&{paddingLeft:8,paddingRight:8}));function UN(e){return e.key==="Backspace"||e.key==="Delete"}const kxe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiChip"}),{avatar:i,className:o,clickable:a,color:s="default",component:l,deleteIcon:u,disabled:f=!1,icon:d,label:p,onClick:m,onDelete:v,onKeyDown:y,onKeyUp:w,size:b="medium",variant:x="filled",tabIndex:S,skipFocusWhenDisabled:k=!1}=r,A=Qe(r,wxe),$=T.useRef(null),I=On($,n),z=te=>{te.stopPropagation(),v&&v(te)},K=te=>{te.currentTarget===te.target&&UN(te)&&te.preventDefault(),y&&y(te)},D=te=>{te.currentTarget===te.target&&(v&&UN(te)?v(te):te.key==="Escape"&&$.current&&$.current.blur()),w&&w(te)},W=a!==!1&&m?!0:a,ie=W||v?Ms:l||"div",ae=F({},r,{component:ie,disabled:f,size:b,color:s,iconColor:T.isValidElement(d)&&d.props.color||s,onDelete:!!v,clickable:W,variant:x}),q=Sxe(ae),G=ie===Ms?F({component:l||"div",focusVisibleClassName:q.focusVisible},v&&{disableRipple:!0}):{};let J=null;v&&(J=u&&T.isValidElement(u)?T.cloneElement(u,{className:Ye(u.props.className,q.deleteIcon),onClick:z}):C.jsx(bxe,{className:Ye(q.deleteIcon),onClick:z}));let le=null;i&&T.isValidElement(i)&&(le=T.cloneElement(i,{className:Ye(q.avatar,i.props.className)}));let Q=null;return d&&T.isValidElement(d)&&(Q=T.cloneElement(d,{className:Ye(q.icon,d.props.className)})),C.jsxs(Cxe,F({as:ie,className:Ye(q.root,o),disabled:W&&f?!0:void 0,onClick:m,onKeyDown:K,onKeyUp:D,ref:I,tabIndex:k&&f?-1:S,ownerState:ae},G,A,{children:[le||Q,C.jsx(Exe,{className:Ye(q.label),ownerState:ae,children:p}),J]}))}),aO=kxe;function oh({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const Txe=T.createContext(void 0),Fw=Txe;function Ju(){return T.useContext(Fw)}function uW(e){return C.jsx(Uye,F({},e,{defaultTheme:Pw}))}function KN(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function sO(e,t=!1){return e&&(KN(e.value)&&e.value!==""||t&&KN(e.defaultValue)&&e.defaultValue!=="")}function Axe(e){return e.startAdornment}function $xe(e){return bt("MuiInputBase",e)}const Rxe=_t("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Np=Rxe,Oxe=["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"],Nw=(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,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Fe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Bw=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Ixe=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:f,readOnly:d,size:p,startAdornment:m,type:v}=e,y={root:["root",`color${Fe(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p==="small"&&"sizeSmall",f&&"multiline",m&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",f&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",m&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return St(y,$xe,t)},jw=Le("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Nw})(({theme:e,ownerState:t})=>F({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Np.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&F({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),zw=Le("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Bw})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=F({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return F({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":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Np.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Np.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),Dxe=C.jsx(uW,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Pxe=T.forwardRef(function(t,n){var r;const i=Ct({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,components:u={},componentsProps:f={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:m,endAdornment:v,fullWidth:y=!1,id:w,inputComponent:b="input",inputProps:x={},inputRef:S,maxRows:k,minRows:A,multiline:$=!1,name:I,onBlur:z,onChange:K,onClick:D,onFocus:W,onKeyDown:ie,onKeyUp:ae,placeholder:q,readOnly:G,renderSuffix:J,rows:le,slotProps:Q={},slots:te={},startAdornment:P,type:me="text",value:j}=i,L=Qe(i,Oxe),oe=x.value!=null?x.value:j,{current:ue}=T.useRef(oe!=null),se=T.useRef(),Ee=T.useCallback(Z=>{},[]),Re=On(se,S,x.ref,Ee),[ke,De]=T.useState(!1),Me=Ju(),Be=oh({props:i,muiFormControl:Me,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Be.focused=Me?Me.focused:ke,T.useEffect(()=>{!Me&&p&&ke&&(De(!1),z&&z())},[Me,p,ke,z]);const Ue=Me&&Me.onFilled,Ke=Me&&Me.onEmpty,He=T.useCallback(Z=>{sO(Z)?Ue&&Ue():Ke&&Ke()},[Ue,Ke]);eo(()=>{ue&&He({value:oe})},[oe,He,ue]);const lt=Z=>{if(Be.disabled){Z.stopPropagation();return}W&&W(Z),x.onFocus&&x.onFocus(Z),Me&&Me.onFocus?Me.onFocus(Z):De(!0)},Xe=Z=>{z&&z(Z),x.onBlur&&x.onBlur(Z),Me&&Me.onBlur?Me.onBlur(Z):De(!1)},nt=(Z,...re)=>{if(!ue){const xe=Z.target||se.current;if(xe==null)throw new Error(Nu(1));He({value:xe.value})}x.onChange&&x.onChange(Z,...re),K&&K(Z,...re)};T.useEffect(()=>{He(se.current)},[]);const mt=Z=>{se.current&&Z.currentTarget===Z.target&&se.current.focus(),D&&D(Z)};let ge=b,$e=x;$&&ge==="input"&&(le?$e=F({type:void 0,minRows:le,maxRows:le},$e):$e=F({type:void 0,maxRows:k,minRows:A},$e),ge=Ube);const Te=Z=>{He(Z.animationName==="mui-auto-fill-cancel"?se.current:{value:"x"})};T.useEffect(()=>{Me&&Me.setAdornedStart(!!P)},[Me,P]);const Pe=F({},i,{color:Be.color||"primary",disabled:Be.disabled,endAdornment:v,error:Be.error,focused:Be.focused,formControl:Me,fullWidth:y,hiddenLabel:Be.hiddenLabel,multiline:$,size:Be.size,startAdornment:P,type:me}),U=Ixe(Pe),H=te.root||u.Root||jw,de=Q.root||f.root||{},Y=te.input||u.Input||zw;return $e=F({},$e,(r=Q.input)!=null?r:f.input),C.jsxs(T.Fragment,{children:[!m&&Dxe,C.jsxs(H,F({},de,!Ds(H)&&{ownerState:F({},Pe,de.ownerState)},{ref:n,onClick:mt},L,{className:Ye(U.root,de.className,l),children:[P,C.jsx(Fw.Provider,{value:null,children:C.jsx(Y,F({ownerState:Pe,"aria-invalid":Be.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:d,disabled:Be.disabled,id:w,onAnimationStart:Te,name:I,placeholder:q,readOnly:G,required:Be.required,rows:le,value:oe,onKeyDown:ie,onKeyUp:ae,type:me},$e,!Ds(Y)&&{as:ge,ownerState:F({},Pe,$e.ownerState)},{ref:Re,className:Ye(U.input,$e.className),onBlur:Xe,onChange:nt,onFocus:lt}))}),v,J?J(F({},Be,{startAdornment:P})):null]}))]})}),Uw=Pxe;function Lxe(e){return bt("MuiInput",e)}const Mxe=F({},Np,_t("MuiInput",["root","underline","input"])),Vg=Mxe;function Fxe(e){return bt("MuiOutlinedInput",e)}const Nxe=F({},Np,_t("MuiOutlinedInput",["root","notchedOutline","input"])),iu=Nxe;function Bxe(e){return bt("MuiFilledInput",e)}const jxe=F({},Np,_t("MuiFilledInput",["root","underline","input"])),_c=jxe,zxe=Mi(C.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Uxe=Mi(C.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Kxe(e){return bt("MuiAvatar",e)}_t("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Wxe=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],Vxe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return St({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},Kxe,t)},Hxe=Le("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>F({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&F({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),qxe=Le("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Gxe=Le(Uxe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Yxe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,o]=T.useState(!1);return T.useEffect(()=>{if(!n&&!r)return;o(!1);let a=!0;const s=new Image;return s.onload=()=>{a&&o("loaded")},s.onerror=()=>{a&&o("error")},s.crossOrigin=e,s.referrerPolicy=t,s.src=n,r&&(s.srcset=r),()=>{a=!1}},[e,t,n,r]),i}const Xxe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiAvatar"}),{alt:i,children:o,className:a,component:s="div",imgProps:l,sizes:u,src:f,srcSet:d,variant:p="circular"}=r,m=Qe(r,Wxe);let v=null;const y=Yxe(F({},l,{src:f,srcSet:d})),w=f||d,b=w&&y!=="error",x=F({},r,{colorDefault:!b,component:s,variant:p}),S=Vxe(x);return b?v=C.jsx(qxe,F({alt:i,src:f,srcSet:d,sizes:u,ownerState:x,className:S.img},l)):o!=null?v=o:w&&i?v=i[0]:v=C.jsx(Gxe,{ownerState:x,className:S.fallback}),C.jsx(Hxe,F({as:s,ownerState:x,className:Ye(S.root,a),ref:n},m,{children:v}))}),KA=Xxe,Zxe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Jxe={entering:{opacity:1},entered:{opacity:1}},Qxe=T.forwardRef(function(t,n){const r=nr(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:u,onEnter:f,onEntered:d,onEntering:p,onExit:m,onExited:v,onExiting:y,style:w,timeout:b=i,TransitionComponent:x=nO}=t,S=Qe(t,Zxe),k=T.useRef(null),A=On(k,s.ref,n),$=q=>G=>{if(q){const J=k.current;G===void 0?q(J):q(J,G)}},I=$(p),z=$((q,G)=>{oO(q);const J=Fp({style:w,timeout:b,easing:l},{mode:"enter"});q.style.webkitTransition=r.transitions.create("opacity",J),q.style.transition=r.transitions.create("opacity",J),f&&f(q,G)}),K=$(d),D=$(y),W=$(q=>{const G=Fp({style:w,timeout:b,easing:l},{mode:"exit"});q.style.webkitTransition=r.transitions.create("opacity",G),q.style.transition=r.transitions.create("opacity",G),m&&m(q)}),ie=$(v),ae=q=>{o&&o(k.current,q)};return C.jsx(x,F({appear:a,in:u,nodeRef:k,onEnter:z,onEntered:K,onEntering:I,onExit:W,onExited:ie,onExiting:D,addEndListener:ae,timeout:b},S,{children:(q,G)=>T.cloneElement(s,F({style:F({opacity:0,visibility:q==="exited"&&!u?"hidden":void 0},Jxe[q],w,s.props.style),ref:A},G))}))}),cW=Qxe;function ewe(e){return bt("MuiBackdrop",e)}_t("MuiBackdrop",["root","invisible"]);const twe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],nwe=e=>{const{classes:t,invisible:n}=e;return St({root:["root",n&&"invisible"]},ewe,t)},rwe=Le("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>F({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"},e.invisible&&{backgroundColor:"transparent"})),iwe=T.forwardRef(function(t,n){var r,i,o;const a=Ct({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:f={},componentsProps:d={},invisible:p=!1,open:m,slotProps:v={},slots:y={},TransitionComponent:w=cW,transitionDuration:b}=a,x=Qe(a,twe),S=F({},a,{component:u,invisible:p}),k=nwe(S),A=(r=v.root)!=null?r:d.root;return C.jsx(w,F({in:m,timeout:b},x,{children:C.jsx(rwe,F({"aria-hidden":!0},A,{as:(i=(o=y.root)!=null?o:f.Root)!=null?i:u,className:Ye(k.root,l,A==null?void 0:A.className),ownerState:F({},S,A==null?void 0:A.ownerState),classes:k,ref:n,children:s}))}))}),fW=iwe,owe=ih(),awe=qye({defaultTheme:owe,defaultClassName:"MuiBox-root",generateClassName:R2.generate}),st=awe;function swe(e){return bt("MuiButton",e)}const lwe=_t("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),S1=lwe,uwe=T.createContext({}),cwe=uwe,fwe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],dwe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e,s={root:["root",o,`${o}${Fe(t)}`,`size${Fe(i)}`,`${o}Size${Fe(i)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Fe(i)}`],endIcon:["endIcon",`iconSize${Fe(i)}`]},l=St(s,swe,a);return F({},a,l)},dW=e=>F({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),pwe=Le(Ms,{shouldForwardProp:e=>Fo(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Fe(n.color)}`],t[`size${Fe(n.size)}`],t[`${n.variant}Size${Fe(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;return F({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":F({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Vt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:(e.vars||e).palette.grey.A100,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":F({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${S1.focusVisible}`]:F({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${S1.disabled}`]:F({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Vt(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${S1.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${S1.disabled}`]:{boxShadow:"none"}}),hwe=Le("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Fe(n.size)}`]]}})(({ownerState:e})=>F({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},dW(e))),gwe=Le("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Fe(n.size)}`]]}})(({ownerState:e})=>F({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},dW(e))),mwe=T.forwardRef(function(t,n){const r=T.useContext(cwe),i=$2(r,t),o=Ct({props:i,name:"MuiButton"}),{children:a,color:s="primary",component:l="button",className:u,disabled:f=!1,disableElevation:d=!1,disableFocusRipple:p=!1,endIcon:m,focusVisibleClassName:v,fullWidth:y=!1,size:w="medium",startIcon:b,type:x,variant:S="text"}=o,k=Qe(o,fwe),A=F({},o,{color:s,component:l,disabled:f,disableElevation:d,disableFocusRipple:p,fullWidth:y,size:w,type:x,variant:S}),$=dwe(A),I=b&&C.jsx(hwe,{className:$.startIcon,ownerState:A,children:b}),z=m&&C.jsx(gwe,{className:$.endIcon,ownerState:A,children:m});return C.jsxs(pwe,F({ownerState:A,className:Ye(r.className,$.root,u),component:l,disabled:f,focusRipple:!p,focusVisibleClassName:Ye($.focusVisible,v),ref:n,type:x},k,{classes:$,children:[I,a,z]}))}),Cf=mwe;function vwe(e){return bt("PrivateSwitchBase",e)}_t("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const ywe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],bwe=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${Fe(i)}`],input:["input"]};return St(o,vwe,t)},_we=Le(Ms)(({ownerState:e})=>F({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),xwe=Le("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),wwe=T.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:o,className:a,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:f=!1,icon:d,id:p,inputProps:m,inputRef:v,name:y,onBlur:w,onChange:b,onFocus:x,readOnly:S,required:k=!1,tabIndex:A,type:$,value:I}=t,z=Qe(t,ywe),[K,D]=Rp({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),W=Ju(),ie=te=>{x&&x(te),W&&W.onFocus&&W.onFocus(te)},ae=te=>{w&&w(te),W&&W.onBlur&&W.onBlur(te)},q=te=>{if(te.nativeEvent.defaultPrevented)return;const P=te.target.checked;D(P),b&&b(te,P)};let G=l;W&&typeof G>"u"&&(G=W.disabled);const J=$==="checkbox"||$==="radio",le=F({},t,{checked:K,disabled:G,disableFocusRipple:u,edge:f}),Q=bwe(le);return C.jsxs(_we,F({component:"span",className:Ye(Q.root,a),centerRipple:!0,focusRipple:!u,disabled:G,tabIndex:null,role:void 0,onFocus:ie,onBlur:ae,ownerState:le,ref:n},z,{children:[C.jsx(xwe,F({autoFocus:r,checked:i,defaultChecked:s,className:Q.input,disabled:G,id:J?p:void 0,name:y,onChange:q,readOnly:S,ref:v,required:k,ownerState:le,tabIndex:A,type:$},$==="checkbox"&&I===void 0?{}:{value:I},m)),K?o:d]}))}),Swe=wwe;function Cwe(e){return bt("MuiCircularProgress",e)}_t("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ewe=["className","color","disableShrink","size","style","thickness","value","variant"];let Kw=e=>e,WN,VN,HN,qN;const ou=44,kwe=nh(WN||(WN=Kw`
|
|
341
|
-
0% {
|
|
342
|
-
transform: rotate(0deg);
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
100% {
|
|
346
|
-
transform: rotate(360deg);
|
|
347
|
-
}
|
|
348
|
-
`)),Twe=nh(VN||(VN=Kw`
|
|
349
|
-
0% {
|
|
350
|
-
stroke-dasharray: 1px, 200px;
|
|
351
|
-
stroke-dashoffset: 0;
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
50% {
|
|
355
|
-
stroke-dasharray: 100px, 200px;
|
|
356
|
-
stroke-dashoffset: -15px;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
100% {
|
|
360
|
-
stroke-dasharray: 100px, 200px;
|
|
361
|
-
stroke-dashoffset: -125px;
|
|
362
|
-
}
|
|
363
|
-
`)),Awe=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${Fe(r)}`],svg:["svg"],circle:["circle",`circle${Fe(n)}`,i&&"circleDisableShrink"]};return St(o,Cwe,t)},$we=Le("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Fe(n.color)}`]]}})(({ownerState:e,theme:t})=>F({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&N2(HN||(HN=Kw`
|
|
364
|
-
animation: ${0} 1.4s linear infinite;
|
|
365
|
-
`),kwe)),Rwe=Le("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Owe=Le("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Fe(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>F({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&N2(qN||(qN=Kw`
|
|
366
|
-
animation: ${0} 1.4s ease-in-out infinite;
|
|
367
|
-
`),Twe)),Iwe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:a=!1,size:s=40,style:l,thickness:u=3.6,value:f=0,variant:d="indeterminate"}=r,p=Qe(r,Ewe),m=F({},r,{color:o,disableShrink:a,size:s,thickness:u,value:f,variant:d}),v=Awe(m),y={},w={},b={};if(d==="determinate"){const x=2*Math.PI*((ou-u)/2);y.strokeDasharray=x.toFixed(3),b["aria-valuenow"]=Math.round(f),y.strokeDashoffset=`${((100-f)/100*x).toFixed(3)}px`,w.transform="rotate(-90deg)"}return C.jsx($we,F({className:Ye(v.root,i),style:F({width:s,height:s},w,l),ownerState:m,ref:n,role:"progressbar"},b,p,{children:C.jsx(Rwe,{className:v.svg,ownerState:m,viewBox:`${ou/2} ${ou/2} ${ou} ${ou}`,children:C.jsx(Owe,{className:v.circle,style:y,ownerState:m,cx:ou,cy:ou,r:(ou-u)/2,fill:"none",strokeWidth:u})})}))}),lO=Iwe,Dwe=["BackdropComponent","BackdropProps","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],Pwe=e=>e.classes,Lwe=Le("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>F({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),Mwe=Le(fW,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Fwe=T.forwardRef(function(t,n){var r,i,o,a,s,l;const u=Ct({name:"MuiModal",props:t}),{BackdropComponent:f=Mwe,BackdropProps:d,closeAfterTransition:p=!1,children:m,component:v,components:y={},componentsProps:w={},disableAutoFocus:b=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:k=!1,disableRestoreFocus:A=!1,disableScrollLock:$=!1,hideBackdrop:I=!1,keepMounted:z=!1,slotProps:K,slots:D,theme:W}=u,ie=Qe(u,Dwe),[ae,q]=T.useState(!0),G={closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:k,disableRestoreFocus:A,disableScrollLock:$,hideBackdrop:I,keepMounted:z},J=F({},u,G,{exited:ae}),le=Pwe(J),Q=(r=(i=D==null?void 0:D.root)!=null?i:y.Root)!=null?r:Lwe,te=(o=(a=D==null?void 0:D.backdrop)!=null?a:y.Backdrop)!=null?o:f,P=(s=K==null?void 0:K.root)!=null?s:w.root,me=(l=K==null?void 0:K.backdrop)!=null?l:w.backdrop;return C.jsx(Obe,F({slots:{root:Q,backdrop:te},slotProps:{root:()=>F({},FA(P,J),!Ds(Q)&&{as:v,theme:W}),backdrop:()=>F({},d,FA(me,J))},onTransitionEnter:()=>q(!1),onTransitionExited:()=>q(!0),ref:n},ie,{classes:le},G,{children:m}))}),uO=Fwe;function Nwe(e){return bt("MuiDialog",e)}const Bwe=_t("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),GE=Bwe,jwe=T.createContext({}),pW=jwe,zwe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],Uwe=Le(fW,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Kwe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,a={root:["root"],container:["container",`scroll${Fe(n)}`],paper:["paper",`paperScroll${Fe(n)}`,`paperWidth${Fe(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return St(a,Nwe,t)},Wwe=Le(uO,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Vwe=Le("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Fe(n.scroll)}`]]}})(({ownerState:e})=>F({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),Hwe=Le(Sf,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Fe(n.scroll)}`],t[`paperWidth${Fe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>F({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`${e.breakpoints.values.xs}${e.breakpoints.unit}`,[`&.${GE.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${GE.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${GE.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),qwe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiDialog"}),i=nr(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:l,BackdropProps:u,children:f,className:d,disableEscapeKeyDown:p=!1,fullScreen:m=!1,fullWidth:v=!1,maxWidth:y="sm",onBackdropClick:w,onClose:b,open:x,PaperComponent:S=Sf,PaperProps:k={},scroll:A="paper",TransitionComponent:$=cW,transitionDuration:I=o,TransitionProps:z}=r,K=Qe(r,zwe),D=F({},r,{disableEscapeKeyDown:p,fullScreen:m,fullWidth:v,maxWidth:y,scroll:A}),W=Kwe(D),ie=T.useRef(),ae=le=>{ie.current=le.target===le.currentTarget},q=le=>{ie.current&&(ie.current=null,w&&w(le),b&&b(le,"backdropClick"))},G=ty(s),J=T.useMemo(()=>({titleId:G}),[G]);return C.jsx(Wwe,F({className:Ye(W.root,d),closeAfterTransition:!0,components:{Backdrop:Uwe},componentsProps:{backdrop:F({transitionDuration:I,as:l},u)},disableEscapeKeyDown:p,onClose:b,open:x,ref:n,onClick:q,ownerState:D},K,{children:C.jsx($,F({appear:!0,in:x,timeout:I,role:"presentation"},z,{children:C.jsx(Vwe,{className:Ye(W.container),onMouseDown:ae,ownerState:D,children:C.jsx(Hwe,F({as:S,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":G},k,{className:Ye(W.paper,k.className),ownerState:D,children:C.jsx(pW.Provider,{value:J,children:f})}))})}))}))}),ah=qwe;function Gwe(e){return bt("MuiDialogActions",e)}_t("MuiDialogActions",["root","spacing"]);const Ywe=["className","disableSpacing"],Xwe=e=>{const{classes:t,disableSpacing:n}=e;return St({root:["root",!n&&"spacing"]},Gwe,t)},Zwe=Le("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>F({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})),Jwe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1}=r,a=Qe(r,Ywe),s=F({},r,{disableSpacing:o}),l=Xwe(s);return C.jsx(Zwe,F({className:Ye(l.root,i),ownerState:s,ref:n},a))}),Ww=Jwe;function Qwe(e){return bt("MuiDialogContent",e)}_t("MuiDialogContent",["root","dividers"]);function eSe(e){return bt("MuiDialogTitle",e)}const tSe=_t("MuiDialogTitle",["root"]),nSe=tSe,rSe=["className","dividers"],iSe=e=>{const{classes:t,dividers:n}=e;return St({root:["root",n&&"dividers"]},Qwe,t)},oSe=Le("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>F({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${nSe.root} + &`]:{paddingTop:0}})),aSe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiDialogContent"}),{className:i,dividers:o=!1}=r,a=Qe(r,rSe),s=F({},r,{dividers:o}),l=iSe(s);return C.jsx(oSe,F({className:Ye(l.root,i),ownerState:s,ref:n},a))}),sh=aSe;function sSe(e){return bt("MuiDialogContentText",e)}_t("MuiDialogContentText",["root"]);const lSe=["children","className"],uSe=e=>{const{classes:t}=e,r=St({root:["root"]},sSe,t);return F({},t,r)},cSe=Le(Zt,{shouldForwardProp:e=>Fo(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),fSe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiDialogContentText"}),{className:i}=r,o=Qe(r,lSe),a=uSe(o);return C.jsx(cSe,F({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:o,className:Ye(a.root,i)},r,{classes:a}))}),hW=fSe,dSe=["className","id"],pSe=e=>{const{classes:t}=e;return St({root:["root"]},eSe,t)},hSe=Le(Zt,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),gSe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiDialogTitle"}),{className:i,id:o}=r,a=Qe(r,dSe),s=r,l=pSe(s),{titleId:u=o}=T.useContext(pW);return C.jsx(hSe,F({component:"h2",className:Ye(l.root,i),ownerState:s,ref:n,variant:"h6",id:u},a))}),sy=gSe;function mSe(e){return bt("MuiDivider",e)}const vSe=_t("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),GN=vSe,ySe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],bSe=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return St({root:["root",t&&"absolute",l,o&&"light",a==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},mSe,r)},_Se=Le("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,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>F({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Vt(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({theme:e,ownerState:t})=>F({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}}),({theme:e,ownerState:t})=>F({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,transform:"translateX(0%)"}}),({ownerState:e})=>F({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),xSe=Le("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>F({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),wSe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:a,component:s=o?"div":"hr",flexItem:l=!1,light:u=!1,orientation:f="horizontal",role:d=s!=="hr"?"separator":void 0,textAlign:p="center",variant:m="fullWidth"}=r,v=Qe(r,ySe),y=F({},r,{absolute:i,component:s,flexItem:l,light:u,orientation:f,role:d,textAlign:p,variant:m}),w=bSe(y);return C.jsx(_Se,F({as:s,className:Ye(w.root,a),role:d,ref:n,ownerState:y},v,{children:o?C.jsx(xSe,{className:w.wrapper,ownerState:y,children:o}):null}))}),SSe=wSe,CSe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ESe(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=da(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const u=o.getComputedStyle(t);a=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const u=a.split("(")[1].split(")")[0].split(",");s=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?i?`translateX(${i.right+s-r.left}px)`:`translateX(${o.innerWidth+s-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-s}px)`:`translateX(-${r.left+r.width-s}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${o.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function kSe(e){return typeof e=="function"?e():e}function C1(e,t,n){const r=kSe(n),i=ESe(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const TSe=T.forwardRef(function(t,n){const r=nr(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:u,direction:f="down",easing:d=i,in:p,onEnter:m,onEntered:v,onEntering:y,onExit:w,onExited:b,onExiting:x,style:S,timeout:k=o,TransitionComponent:A=nO}=t,$=Qe(t,CSe),I=T.useRef(null),z=On(l.ref,I,n),K=Q=>te=>{Q&&(te===void 0?Q(I.current):Q(I.current,te))},D=K((Q,te)=>{C1(f,Q,u),oO(Q),m&&m(Q,te)}),W=K((Q,te)=>{const P=Fp({timeout:k,style:S,easing:d},{mode:"enter"});Q.style.webkitTransition=r.transitions.create("-webkit-transform",F({},P)),Q.style.transition=r.transitions.create("transform",F({},P)),Q.style.webkitTransform="none",Q.style.transform="none",y&&y(Q,te)}),ie=K(v),ae=K(x),q=K(Q=>{const te=Fp({timeout:k,style:S,easing:d},{mode:"exit"});Q.style.webkitTransition=r.transitions.create("-webkit-transform",te),Q.style.transition=r.transitions.create("transform",te),C1(f,Q,u),w&&w(Q)}),G=K(Q=>{Q.style.webkitTransition="",Q.style.transition="",b&&b(Q)}),J=Q=>{a&&a(I.current,Q)},le=T.useCallback(()=>{I.current&&C1(f,I.current,u)},[f,u]);return T.useEffect(()=>{if(p||f==="down"||f==="right")return;const Q=uf(()=>{I.current&&C1(f,I.current,u)}),te=da(I.current);return te.addEventListener("resize",Q),()=>{Q.clear(),te.removeEventListener("resize",Q)}},[f,p,u]),T.useEffect(()=>{p||le()},[p,le]),C.jsx(A,F({nodeRef:I,onEnter:D,onEntered:ie,onEntering:W,onExit:q,onExited:G,onExiting:ae,addEndListener:J,appear:s,in:p,timeout:k},$,{children:(Q,te)=>T.cloneElement(l,F({ref:z,style:F({visibility:Q==="exited"&&!p?"hidden":void 0},S,l.props.style)},te))}))}),ASe=TSe;function $Se(e){return bt("MuiDrawer",e)}_t("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const RSe=["BackdropProps"],OSe=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],gW=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},ISe=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Fe(n)}`,r!=="temporary"&&`paperAnchorDocked${Fe(n)}`]};return St(i,$Se,t)},DSe=Le(uO,{name:"MuiDrawer",slot:"Root",overridesResolver:gW})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),YN=Le("div",{shouldForwardProp:Fo,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:gW})({flex:"0 0 auto"}),PSe=Le(Sf,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Fe(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${Fe(n.anchor)}`]]}})(({theme:e,ownerState:t})=>F({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),mW={left:"right",right:"left",top:"down",bottom:"up"};function LSe(e){return["left","right"].indexOf(e)!==-1}function MSe(e,t){return e.direction==="rtl"&&LSe(t)?mW[t]:t}const FSe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiDrawer"}),i=nr(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:s,children:l,className:u,elevation:f=16,hideBackdrop:d=!1,ModalProps:{BackdropProps:p}={},onClose:m,open:v=!1,PaperProps:y={},SlideProps:w,TransitionComponent:b=ASe,transitionDuration:x=o,variant:S="temporary"}=r,k=Qe(r.ModalProps,RSe),A=Qe(r,OSe),$=T.useRef(!1);T.useEffect(()=>{$.current=!0},[]);const I=MSe(i,a),K=F({},r,{anchor:a,elevation:f,open:v,variant:S},A),D=ISe(K),W=C.jsx(PSe,F({elevation:S==="temporary"?f:0,square:!0},y,{className:Ye(D.paper,y.className),ownerState:K,children:l}));if(S==="permanent")return C.jsx(YN,F({className:Ye(D.root,D.docked,u),ownerState:K,ref:n},A,{children:W}));const ie=C.jsx(b,F({in:v,direction:mW[I],timeout:x,appear:$.current},w,{children:W}));return S==="persistent"?C.jsx(YN,F({className:Ye(D.root,D.docked,u),ownerState:K,ref:n},A,{children:ie})):C.jsx(DSe,F({BackdropProps:F({},s,p,{transitionDuration:x}),className:Ye(D.root,D.modal,u),open:v,ownerState:K,onClose:m,hideBackdrop:d,ref:n},A,k,{children:ie}))}),vW=FSe,NSe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],BSe=e=>{const{classes:t,disableUnderline:n}=e,i=St({root:["root",!n&&"underline"],input:["input"]},Bxe,t);return F({},t,i)},jSe=Le(jw,{shouldForwardProp:e=>Fo(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Nw(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return F({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${_c.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${_c.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${_c.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${_c.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${_c.disabled}, .${_c.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${_c.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&F({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),zSe=Le(zw,{name:"MuiFilledInput",slot:"Input",overridesResolver:Bw})(({theme:e,ownerState:t})=>F({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),yW=T.forwardRef(function(t,n){var r,i,o,a;const s=Ct({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:f=!1,inputComponent:d="input",multiline:p=!1,slotProps:m,slots:v={},type:y="text"}=s,w=Qe(s,NSe),b=F({},s,{fullWidth:f,inputComponent:d,multiline:p,type:y}),x=BSe(s),S={root:{ownerState:b},input:{ownerState:b}},k=m??u?Xi(m??u,S):S,A=(r=(i=v.root)!=null?i:l.Root)!=null?r:jSe,$=(o=(a=v.input)!=null?a:l.Input)!=null?o:zSe;return C.jsx(Uw,F({slots:{root:A,input:$},componentsProps:k,fullWidth:f,inputComponent:d,multiline:p,ref:n,type:y},w,{classes:x}))});yW.muiName="Input";const bW=yW;function USe(e){return bt("MuiFormControl",e)}_t("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const KSe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],WSe=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${Fe(n)}`,r&&"fullWidth"]};return St(i,USe,t)},VSe=Le("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>F({},t.root,t[`margin${Fe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>F({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),HSe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiFormControl"}),{children:i,className:o,color:a="primary",component:s="div",disabled:l=!1,error:u=!1,focused:f,fullWidth:d=!1,hiddenLabel:p=!1,margin:m="none",required:v=!1,size:y="medium",variant:w="outlined"}=r,b=Qe(r,KSe),x=F({},r,{color:a,component:s,disabled:l,error:u,fullWidth:d,hiddenLabel:p,margin:m,required:v,size:y,variant:w}),S=WSe(x),[k,A]=T.useState(()=>{let ae=!1;return i&&T.Children.forEach(i,q=>{if(!cp(q,["Input","Select"]))return;const G=cp(q,["Select"])?q.props.input:q;G&&Axe(G.props)&&(ae=!0)}),ae}),[$,I]=T.useState(()=>{let ae=!1;return i&&T.Children.forEach(i,q=>{cp(q,["Input","Select"])&&sO(q.props,!0)&&(ae=!0)}),ae}),[z,K]=T.useState(!1);l&&z&&K(!1);const D=f!==void 0&&!l?f:z;let W;const ie=T.useMemo(()=>({adornedStart:k,setAdornedStart:A,color:a,disabled:l,error:u,filled:$,focused:D,fullWidth:d,hiddenLabel:p,size:y,onBlur:()=>{K(!1)},onEmpty:()=>{I(!1)},onFilled:()=>{I(!0)},onFocus:()=>{K(!0)},registerEffect:W,required:v,variant:w}),[k,a,l,u,$,D,d,p,W,v,y,w]);return C.jsx(Fw.Provider,{value:ie,children:C.jsx(VSe,F({as:s,ownerState:x,className:Ye(S.root,o),ref:n},b,{children:i}))})}),_W=HSe;function qSe(e){return bt("MuiFormHelperText",e)}const GSe=_t("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),XN=GSe;var ZN;const YSe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],XSe=e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:a,focused:s,required:l}=e,u={root:["root",i&&"disabled",o&&"error",r&&`size${Fe(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return St(u,qSe,t)},ZSe=Le("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Fe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>F({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${XN.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${XN.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),JSe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:a="p"}=r,s=Qe(r,YSe),l=Ju(),u=oh({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),f=F({},r,{component:a,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=XSe(f);return C.jsx(ZSe,F({as:a,ownerState:f,className:Ye(d.root,o),ref:n},s,{children:i===" "?ZN||(ZN=C.jsx("span",{className:"notranslate",children:""})):i}))}),xW=JSe;function QSe(e){return bt("MuiFormLabel",e)}const eCe=_t("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Vm=eCe,tCe=["children","className","color","component","disabled","error","filled","focused","required"],nCe=e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:a,required:s}=e,l={root:["root",`color${Fe(n)}`,i&&"disabled",o&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return St(l,QSe,t)},rCe=Le("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>F({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>F({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Vm.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Vm.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Vm.error}`]:{color:(e.vars||e).palette.error.main}})),iCe=Le("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Vm.error}`]:{color:(e.vars||e).palette.error.main}})),oCe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiFormLabel"}),{children:i,className:o,component:a="label"}=r,s=Qe(r,tCe),l=Ju(),u=oh({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),f=F({},r,{color:u.color||"primary",component:a,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=nCe(f);return C.jsxs(rCe,F({as:a,ownerState:f,className:Ye(d.root,o),ref:n},s,{children:[i,u.required&&C.jsxs(iCe,{ownerState:f,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),aCe=oCe,sCe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function WA(e){return`scale(${e}, ${e**2})`}const lCe={entering:{opacity:1,transform:WA(1)},entered:{opacity:1,transform:"none"}},YE=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),wW=T.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:a,in:s,onEnter:l,onEntered:u,onEntering:f,onExit:d,onExited:p,onExiting:m,style:v,timeout:y="auto",TransitionComponent:w=nO}=t,b=Qe(t,sCe),x=T.useRef(),S=T.useRef(),k=nr(),A=T.useRef(null),$=On(A,o.ref,n),I=G=>J=>{if(G){const le=A.current;J===void 0?G(le):G(le,J)}},z=I(f),K=I((G,J)=>{oO(G);const{duration:le,delay:Q,easing:te}=Fp({style:v,timeout:y,easing:a},{mode:"enter"});let P;y==="auto"?(P=k.transitions.getAutoHeightDuration(G.clientHeight),S.current=P):P=le,G.style.transition=[k.transitions.create("opacity",{duration:P,delay:Q}),k.transitions.create("transform",{duration:YE?P:P*.666,delay:Q,easing:te})].join(","),l&&l(G,J)}),D=I(u),W=I(m),ie=I(G=>{const{duration:J,delay:le,easing:Q}=Fp({style:v,timeout:y,easing:a},{mode:"exit"});let te;y==="auto"?(te=k.transitions.getAutoHeightDuration(G.clientHeight),S.current=te):te=J,G.style.transition=[k.transitions.create("opacity",{duration:te,delay:le}),k.transitions.create("transform",{duration:YE?te:te*.666,delay:YE?le:le||te*.333,easing:Q})].join(","),G.style.opacity=0,G.style.transform=WA(.75),d&&d(G)}),ae=I(p),q=G=>{y==="auto"&&(x.current=setTimeout(G,S.current||0)),r&&r(A.current,G)};return T.useEffect(()=>()=>{clearTimeout(x.current)},[]),C.jsx(w,F({appear:i,in:s,nodeRef:A,onEnter:K,onEntered:D,onEntering:z,onExit:ie,onExited:ae,onExiting:W,addEndListener:q,timeout:y==="auto"?null:y},b,{children:(G,J)=>T.cloneElement(o,F({style:F({opacity:0,transform:WA(.75),visibility:G==="exited"&&!s?"hidden":void 0},lCe[G],v,o.props.style),ref:$},J))}))});wW.muiSupportAuto=!0;const VA=wW;function uCe(e,t,n,r,i){const[o,a]=T.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return eo(()=>{let s=!0;if(!n)return;const l=n(e),u=()=>{s&&a(l.matches)};return u(),l.addListener(u),()=>{s=!1,l.removeListener(u)}},[e,n]),o}const SW=ef["useSyncExternalStore"];function cCe(e,t,n,r,i){const o=T.useCallback(()=>t,[t]),a=T.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:f}=r(e);return()=>f}return o},[o,e,r,i,n]),[s,l]=T.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const f=n(e);return[()=>f.matches,d=>(f.addListener(d),()=>{f.removeListener(d)})]},[o,n,e]);return SW(l,s,a)}function Vw(e,t={}){const n=Ow(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=r?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:s=!1}=VK({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(SW!==void 0?cCe:uCe)(l,i,o,a,s)}function fCe(e){return bt("MuiImageList",e)}_t("MuiImageList",["root","masonry","quilted","standard","woven"]);const dCe=T.createContext({}),CW=dCe,pCe=["children","className","cols","component","rowHeight","gap","style","variant"],hCe=e=>{const{classes:t,variant:n}=e;return St({root:["root",n]},fCe,t)},gCe=Le("ul",{name:"MuiImageList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})(({ownerState:e})=>F({display:"grid",overflowY:"auto",listStyle:"none",padding:0,WebkitOverflowScrolling:"touch"},e.variant==="masonry"&&{display:"block"})),mCe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiImageList"}),{children:i,className:o,cols:a=2,component:s="ul",rowHeight:l="auto",gap:u=4,style:f,variant:d="standard"}=r,p=Qe(r,pCe),m=T.useMemo(()=>({rowHeight:l,gap:u,variant:d}),[l,u,d]);T.useEffect(()=>{},[]);const v=F(d==="masonry"?{columnCount:a,columnGap:u}:{gridTemplateColumns:`repeat(${a}, 1fr)`,gap:u},f),y=F({},r,{component:s,gap:u,rowHeight:l,variant:d}),w=hCe(y);return C.jsx(gCe,F({as:s,className:Ye(w.root,w[d],o),ref:n,style:v,ownerState:y},p,{children:C.jsx(CW.Provider,{value:m,children:i})}))}),vCe=mCe;function yCe(e){return bt("MuiImageListItem",e)}const bCe=_t("MuiImageListItem",["root","img","standard","woven","masonry","quilted"]),JN=bCe,_Ce=["children","className","cols","component","rows","style"],xCe=e=>{const{classes:t,variant:n}=e;return St({root:["root",n],img:["img"]},yCe,t)},wCe=Le("li",{name:"MuiImageListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${JN.img}`]:t.img},t.root,t[n.variant]]}})(({ownerState:e})=>F({display:"block",position:"relative"},e.variant==="standard"&&{display:"flex",flexDirection:"column"},e.variant==="woven"&&{height:"100%",alignSelf:"center","&:nth-of-type(even)":{height:"70%"}},{[`& .${JN.img}`]:F({objectFit:"cover",width:"100%",height:"100%",display:"block"},e.variant==="standard"&&{height:"auto",flexGrow:1})})),SCe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiImageListItem"}),{children:i,className:o,cols:a=1,component:s="li",rows:l=1,style:u}=r,f=Qe(r,_Ce),{rowHeight:d="auto",gap:p,variant:m}=T.useContext(CW);let v="auto";m==="woven"?v=void 0:d!=="auto"&&(v=d*l+p*(l-1));const y=F({},r,{cols:a,component:s,gap:p,rowHeight:d,rows:l,variant:m}),w=xCe(y);return C.jsx(wCe,F({as:s,className:Ye(w.root,w[m],o),ref:n,style:F({height:v,gridColumnEnd:m!=="masonry"?`span ${a}`:void 0,gridRowEnd:m!=="masonry"?`span ${l}`:void 0,marginBottom:m==="masonry"?p:void 0},u),ownerState:y},f,{children:T.Children.map(i,b=>T.isValidElement(b)?b.type==="img"||cp(b,["Image"])?T.cloneElement(b,{className:Ye(w.img,b.props.className)}):b:null)}))}),CCe=SCe,ECe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],kCe=e=>{const{classes:t,disableUnderline:n}=e,i=St({root:["root",!n&&"underline"],input:["input"]},Lxe,t);return F({},t,i)},TCe=Le(jw,{shouldForwardProp:e=>Fo(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Nw(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),F({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Vg.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Vg.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Vg.disabled}, .${Vg.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Vg.disabled}:before`]:{borderBottomStyle:"dotted"}})}),ACe=Le(zw,{name:"MuiInput",slot:"Input",overridesResolver:Bw})({}),EW=T.forwardRef(function(t,n){var r,i,o,a;const s=Ct({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:f,fullWidth:d=!1,inputComponent:p="input",multiline:m=!1,slotProps:v,slots:y={},type:w="text"}=s,b=Qe(s,ECe),x=kCe(s),k={root:{ownerState:{disableUnderline:l}}},A=v??f?Xi(v??f,k):k,$=(r=(i=y.root)!=null?i:u.Root)!=null?r:TCe,I=(o=(a=y.input)!=null?a:u.Input)!=null?o:ACe;return C.jsx(Uw,F({slots:{root:$,input:I},slotProps:A,fullWidth:d,inputComponent:p,multiline:m,ref:n,type:w},b,{classes:x}))});EW.muiName="Input";const kW=EW;function $Ce(e){return bt("MuiInputAdornment",e)}const RCe=_t("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),QN=RCe;var eB;const OCe=["children","className","component","disablePointerEvents","disableTypography","position","variant"],ICe=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Fe(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},DCe=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:a}=e,s={root:["root",n&&"disablePointerEvents",i&&`position${Fe(i)}`,a,r&&"hiddenLabel",o&&`size${Fe(o)}`]};return St(s,$Ce,t)},PCe=Le("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:ICe})(({theme:e,ownerState:t})=>F({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${QN.positionStart}&:not(.${QN.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),LCe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiInputAdornment"}),{children:i,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:f}=r,d=Qe(r,OCe),p=Ju()||{};let m=f;f&&p.variant,p&&!m&&(m=p.variant);const v=F({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:u,variant:m}),y=DCe(v);return C.jsx(Fw.Provider,{value:null,children:C.jsx(PCe,F({as:a,ownerState:v,className:Ye(y.root,o),ref:n},d,{children:typeof i=="string"&&!l?C.jsx(Zt,{color:"text.secondary",children:i}):C.jsxs(T.Fragment,{children:[u==="start"?eB||(eB=C.jsx("span",{className:"notranslate",children:""})):null,i]})}))})}),tB=LCe;function MCe(e){return bt("MuiInputLabel",e)}_t("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const FCe=["disableAnimation","margin","shrink","variant","className"],NCe=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:a,required:s}=e,u=St({root:["root",n&&"formControl",!o&&"animated",i&&"shrink",r==="small"&&"sizeSmall",a],asterisk:[s&&"asterisk"]},MCe,t);return F({},t,u)},BCe=Le(aCe,{shouldForwardProp:e=>Fo(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Vm.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>F({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&F({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&F({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&F({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"}))),jCe=T.forwardRef(function(t,n){const r=Ct({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:o,className:a}=r,s=Qe(r,FCe),l=Ju();let u=o;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const f=oh({props:r,muiFormControl:l,states:["size","variant","required"]}),d=F({},r,{disableAnimation:i,formControl:l,shrink:u,size:f.size,variant:f.variant,required:f.required}),p=NCe(d);return C.jsx(BCe,F({"data-shrink":u,ownerState:d,ref:n,className:Ye(p.root,a)},s,{classes:p}))}),TW=jCe;function zCe(e){return bt("MuiLink",e)}const UCe=_t("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),KCe=UCe,AW={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},WCe=e=>AW[e]||e,VCe=({theme:e,ownerState:t})=>{const n=WCe(t.color),r=Ip(e,`palette.${n}`,!1)||t.color,i=Ip(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:Vt(r,.4)},HCe=VCe,qCe=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],GCe=e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root",`underline${Fe(i)}`,n==="button"&&"button",r&&"focusVisible"]};return St(o,zCe,t)},YCe=Le(Zt,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Fe(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>F({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&F({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:HCe({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${KCe.focusVisible}`]:{outline:"auto"}})),XCe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiLink"}),{className:i,color:o="primary",component:a="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:f="always",variant:d="inherit",sx:p}=r,m=Qe(r,qCe),{isFocusVisibleRef:v,onBlur:y,onFocus:w,ref:b}=ny(),[x,S]=T.useState(!1),k=On(n,b),A=K=>{y(K),v.current===!1&&S(!1),s&&s(K)},$=K=>{w(K),v.current===!0&&S(!0),l&&l(K)},I=F({},r,{color:o,component:a,focusVisible:x,underline:f,variant:d}),z=GCe(I);return C.jsx(YCe,F({color:o,className:Ye(z.root,i),classes:u,component:a,onBlur:A,onFocus:$,ref:k,ownerState:I,variant:d,sx:[...Object.keys(AW).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},m))}),ly=XCe,ZCe=T.createContext({}),Ga=ZCe;function JCe(e){return bt("MuiList",e)}_t("MuiList",["root","padding","dense","subheader"]);const QCe=["children","className","component","dense","disablePadding","subheader"],eEe=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return St({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},JCe,t)},tEe=Le("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]}})(({ownerState:e})=>F({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),nEe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiList"}),{children:i,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,f=Qe(r,QCe),d=T.useMemo(()=>({dense:s}),[s]),p=F({},r,{component:a,dense:s,disablePadding:l}),m=eEe(p);return C.jsx(Ga.Provider,{value:d,children:C.jsxs(tEe,F({as:a,className:Ye(m.root,o),ref:n,ownerState:p},f,{children:[u,i]}))})}),P_=nEe;function rEe(e){return bt("MuiListItem",e)}const iEe=_t("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Dd=iEe;function oEe(e){return bt("MuiListItemButton",e)}const aEe=_t("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Pd=aEe,sEe=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],lEe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},uEe=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:a,selected:s}=e,u=St({root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",s&&"selected"]},oEe,n);return F({},n,u)},cEe=Le(Ms,{shouldForwardProp:e=>Fo(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:lEe})(({theme:e,ownerState:t})=>F({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Pd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Pd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Vt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Pd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Vt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Pd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Pd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),fEe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:o=!1,component:a="div",children:s,dense:l=!1,disableGutters:u=!1,divider:f=!1,focusVisibleClassName:d,selected:p=!1,className:m}=r,v=Qe(r,sEe),y=T.useContext(Ga),w=T.useMemo(()=>({dense:l||y.dense||!1,alignItems:i,disableGutters:u}),[i,y.dense,l,u]),b=T.useRef(null);eo(()=>{o&&b.current&&b.current.focus()},[o]);const x=F({},r,{alignItems:i,dense:w.dense,disableGutters:u,divider:f,selected:p}),S=uEe(x),k=On(b,n);return C.jsx(Ga.Provider,{value:w,children:C.jsx(cEe,F({ref:k,href:v.href||v.to,component:(v.href||v.to)&&a==="div"?"a":a,focusVisibleClassName:Ye(S.focusVisible,d),ownerState:x,className:Ye(S.root,m)},v,{classes:S,children:s}))})}),dEe=fEe;function pEe(e){return bt("MuiListItemSecondaryAction",e)}_t("MuiListItemSecondaryAction",["root","disableGutters"]);const hEe=["className"],gEe=e=>{const{disableGutters:t,classes:n}=e;return St({root:["root",t&&"disableGutters"]},pEe,n)},mEe=Le("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>F({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),$W=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,o=Qe(r,hEe),a=T.useContext(Ga),s=F({},r,{disableGutters:a.disableGutters}),l=gEe(s);return C.jsx(mEe,F({className:Ye(l.root,i),ownerState:s,ref:n},o))});$W.muiName="ListItemSecondaryAction";const vEe=$W,yEe=["className"],bEe=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],_Ee=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},xEe=e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:u,selected:f}=e;return St({root:["root",i&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",o&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",f&&"selected"],container:["container"]},rEe,r)},wEe=Le("div",{name:"MuiListItem",slot:"Root",overridesResolver:_Ee})(({theme:e,ownerState:t})=>F({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&F({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Pd.root}`]:{paddingRight:48}},{[`&.${Dd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Dd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Dd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Vt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Dd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Dd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Vt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),SEe=Le("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),CEe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:o=!1,button:a=!1,children:s,className:l,component:u,components:f={},componentsProps:d={},ContainerComponent:p="li",ContainerProps:{className:m}={},dense:v=!1,disabled:y=!1,disableGutters:w=!1,disablePadding:b=!1,divider:x=!1,focusVisibleClassName:S,secondaryAction:k,selected:A=!1,slotProps:$={},slots:I={}}=r,z=Qe(r.ContainerProps,yEe),K=Qe(r,bEe),D=T.useContext(Ga),W=T.useMemo(()=>({dense:v||D.dense||!1,alignItems:i,disableGutters:w}),[i,D.dense,v,w]),ie=T.useRef(null);eo(()=>{o&&ie.current&&ie.current.focus()},[o]);const ae=T.Children.toArray(s),q=ae.length&&cp(ae[ae.length-1],["ListItemSecondaryAction"]),G=F({},r,{alignItems:i,autoFocus:o,button:a,dense:W.dense,disabled:y,disableGutters:w,disablePadding:b,divider:x,hasSecondaryAction:q,selected:A}),J=xEe(G),le=On(ie,n),Q=I.root||f.Root||wEe,te=$.root||d.root||{},P=F({className:Ye(J.root,te.className,l),disabled:y},K);let me=u||"li";return a&&(P.component=u||"div",P.focusVisibleClassName=Ye(Dd.focusVisible,S),me=Ms),q?(me=!P.component&&!u?"div":me,p==="li"&&(me==="li"?me="div":P.component==="li"&&(P.component="div")),C.jsx(Ga.Provider,{value:W,children:C.jsxs(SEe,F({as:p,className:Ye(J.container,m),ref:le,ownerState:G},z,{children:[C.jsx(Q,F({},te,!Ds(Q)&&{as:me,ownerState:F({},G,te.ownerState)},P,{children:ae})),ae.pop()]}))})):C.jsx(Ga.Provider,{value:W,children:C.jsxs(Q,F({},te,{as:me,ref:le},!Ds(Q)&&{ownerState:F({},G,te.ownerState)},P,{children:[ae,k&&C.jsx(vEe,{children:k})]}))})}),Hm=CEe;function EEe(e){return bt("MuiListItemIcon",e)}const nB=_t("MuiListItemIcon",["root","alignItemsFlexStart"]),kEe=["className"],TEe=e=>{const{alignItems:t,classes:n}=e;return St({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},EEe,n)},AEe=Le("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>F({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),$Ee=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiListItemIcon"}),{className:i}=r,o=Qe(r,kEe),a=T.useContext(Ga),s=F({},r,{alignItems:a.alignItems}),l=TEe(s);return C.jsx(AEe,F({className:Ye(l.root,i),ownerState:s,ref:n},o))}),pp=$Ee;function REe(e){return bt("MuiListItemText",e)}const OEe=_t("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),L_=OEe,IEe=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],DEe=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return St({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},REe,t)},PEe=Le("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${L_.primary}`]:t.primary},{[`& .${L_.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>F({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),LEe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:u,secondary:f,secondaryTypographyProps:d}=r,p=Qe(r,IEe),{dense:m}=T.useContext(Ga);let v=l??i,y=f;const w=F({},r,{disableTypography:a,inset:s,primary:!!v,secondary:!!y,dense:m}),b=DEe(w);return v!=null&&v.type!==Zt&&!a&&(v=C.jsx(Zt,F({variant:m?"body2":"body1",className:b.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:v}))),y!=null&&y.type!==Zt&&!a&&(y=C.jsx(Zt,F({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},d,{children:y}))),C.jsxs(PEe,F({className:Ye(b.root,o),ownerState:w,ref:n},p,{children:[v,y]}))}),$b=LEe,MEe=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function XE(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function rB(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function RW(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Hg(e,t,n,r,i,o){let a=!1,s=i(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!RW(s,o)||l)s=i(e,s,n);else return s.focus(),!0}return!1}const FEe=T.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:f,variant:d="selectedMenu"}=t,p=Qe(t,MEe),m=T.useRef(null),v=T.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});eo(()=>{i&&m.current.focus()},[i]),T.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(S,k)=>{const A=!m.current.style.width;if(S.clientHeight<m.current.clientHeight&&A){const $=`${yK(er(S))}px`;m.current.style[k.direction==="rtl"?"paddingLeft":"paddingRight"]=$,m.current.style.width=`calc(100% + ${$})`}return m.current}}),[]);const y=S=>{const k=m.current,A=S.key,$=er(k).activeElement;if(A==="ArrowDown")S.preventDefault(),Hg(k,$,u,l,XE);else if(A==="ArrowUp")S.preventDefault(),Hg(k,$,u,l,rB);else if(A==="Home")S.preventDefault(),Hg(k,null,u,l,XE);else if(A==="End")S.preventDefault(),Hg(k,null,u,l,rB);else if(A.length===1){const I=v.current,z=A.toLowerCase(),K=performance.now();I.keys.length>0&&(K-I.lastTime>500?(I.keys=[],I.repeating=!0,I.previousKeyMatched=!0):I.repeating&&z!==I.keys[0]&&(I.repeating=!1)),I.lastTime=K,I.keys.push(z);const D=$&&!I.repeating&&RW($,I);I.previousKeyMatched&&(D||Hg(k,$,!1,l,XE,I))?S.preventDefault():I.previousKeyMatched=!1}f&&f(S)},w=On(m,n);let b=-1;T.Children.forEach(a,(S,k)=>{T.isValidElement(S)&&(S.props.disabled||(d==="selectedMenu"&&S.props.selected||b===-1)&&(b=k))});const x=T.Children.map(a,(S,k)=>{if(k===b){const A={};return o&&(A.autoFocus=!0),S.props.tabIndex===void 0&&d==="selectedMenu"&&(A.tabIndex=0),T.cloneElement(S,A)}return S});return C.jsx(P_,F({role:"menu",ref:w,className:s,onKeyDown:y,tabIndex:i?0:-1},p,{children:x}))}),NEe=FEe;function BEe(e){return bt("MuiPopover",e)}_t("MuiPopover",["root","paper"]);const jEe=["onEntering"],zEe=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function iB(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function oB(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function aB(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function ZE(e){return typeof e=="function"?e():e}const UEe=e=>{const{classes:t}=e;return St({root:["root"],paper:["paper"]},BEe,t)},KEe=Le(uO,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),WEe=Le(Sf,{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}),VEe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiPopover"}),{action:i,anchorEl:o,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:u,className:f,container:d,elevation:p=8,marginThreshold:m=16,open:v,PaperProps:y={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:b=VA,transitionDuration:x="auto",TransitionProps:{onEntering:S}={}}=r,k=Qe(r.TransitionProps,jEe),A=Qe(r,zEe),$=T.useRef(),I=On($,y.ref),z=F({},r,{anchorOrigin:a,anchorReference:l,elevation:p,marginThreshold:m,PaperProps:y,transformOrigin:w,TransitionComponent:b,transitionDuration:x,TransitionProps:k}),K=UEe(z),D=T.useCallback(()=>{if(l==="anchorPosition")return s;const P=ZE(o),j=(P&&P.nodeType===1?P:er($.current).body).getBoundingClientRect();return{top:j.top+iB(j,a.vertical),left:j.left+oB(j,a.horizontal)}},[o,a.horizontal,a.vertical,s,l]),W=T.useCallback(P=>({vertical:iB(P,w.vertical),horizontal:oB(P,w.horizontal)}),[w.horizontal,w.vertical]),ie=T.useCallback(P=>{const me={width:P.offsetWidth,height:P.offsetHeight},j=W(me);if(l==="none")return{top:null,left:null,transformOrigin:aB(j)};const L=D();let oe=L.top-j.vertical,ue=L.left-j.horizontal;const se=oe+me.height,Ee=ue+me.width,Re=da(ZE(o)),ke=Re.innerHeight-m,De=Re.innerWidth-m;if(oe<m){const Me=oe-m;oe-=Me,j.vertical+=Me}else if(se>ke){const Me=se-ke;oe-=Me,j.vertical+=Me}if(ue<m){const Me=ue-m;ue-=Me,j.horizontal+=Me}else if(Ee>De){const Me=Ee-De;ue-=Me,j.horizontal+=Me}return{top:`${Math.round(oe)}px`,left:`${Math.round(ue)}px`,transformOrigin:aB(j)}},[o,l,D,W,m]),[ae,q]=T.useState(v),G=T.useCallback(()=>{const P=$.current;if(!P)return;const me=ie(P);me.top!==null&&(P.style.top=me.top),me.left!==null&&(P.style.left=me.left),P.style.transformOrigin=me.transformOrigin,q(!0)},[ie]),J=(P,me)=>{S&&S(P,me),G()},le=()=>{q(!1)};T.useEffect(()=>{v&&G()}),T.useImperativeHandle(i,()=>v?{updatePosition:()=>{G()}}:null,[v,G]),T.useEffect(()=>{if(!v)return;const P=uf(()=>{G()}),me=da(o);return me.addEventListener("resize",P),()=>{P.clear(),me.removeEventListener("resize",P)}},[o,v,G]);let Q=x;x==="auto"&&!b.muiSupportAuto&&(Q=void 0);const te=d||(o?er(ZE(o)).body:void 0);return C.jsx(KEe,F({BackdropProps:{invisible:!0},className:Ye(K.root,f),container:te,open:v,ref:n,ownerState:z},A,{children:C.jsx(b,F({appear:!0,in:v,onEntering:J,onExited:le,timeout:Q},k,{children:C.jsx(WEe,F({elevation:p},y,{ref:I,className:Ye(K.paper,y.className)},ae?void 0:{style:F({},y.style,{opacity:0})},{ownerState:z,children:u}))}))}))}),HEe=VEe;function qEe(e){return bt("MuiMenu",e)}_t("MuiMenu",["root","paper","list"]);const GEe=["onEntering"],YEe=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],XEe={vertical:"top",horizontal:"right"},ZEe={vertical:"top",horizontal:"left"},JEe=e=>{const{classes:t}=e;return St({root:["root"],paper:["paper"],list:["list"]},qEe,t)},QEe=Le(HEe,{shouldForwardProp:e=>Fo(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),eke=Le(Sf,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),tke=Le(NEe,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),nke=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:o,disableAutoFocusItem:a=!1,MenuListProps:s={},onClose:l,open:u,PaperProps:f={},PopoverClasses:d,transitionDuration:p="auto",TransitionProps:{onEntering:m}={},variant:v="selectedMenu"}=r,y=Qe(r.TransitionProps,GEe),w=Qe(r,YEe),b=nr(),x=b.direction==="rtl",S=F({},r,{autoFocus:i,disableAutoFocusItem:a,MenuListProps:s,onEntering:m,PaperProps:f,transitionDuration:p,TransitionProps:y,variant:v}),k=JEe(S),A=i&&!a&&u,$=T.useRef(null),I=(D,W)=>{$.current&&$.current.adjustStyleForScrollbar(D,b),m&&m(D,W)},z=D=>{D.key==="Tab"&&(D.preventDefault(),l&&l(D,"tabKeyDown"))};let K=-1;return T.Children.map(o,(D,W)=>{T.isValidElement(D)&&(D.props.disabled||(v==="selectedMenu"&&D.props.selected||K===-1)&&(K=W))}),C.jsx(QEe,F({onClose:l,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?XEe:ZEe,PaperProps:F({component:eke},f,{classes:F({},f.classes,{root:k.paper})}),className:k.root,open:u,ref:n,transitionDuration:p,TransitionProps:F({onEntering:I},y),ownerState:S},w,{classes:d,children:C.jsx(tke,F({onKeyDown:z,actions:$,autoFocus:i&&(K===-1||a),autoFocusItem:A,variant:v},s,{className:Ye(k.list,s.className),children:o}))}))}),uy=nke;function rke(e){return bt("MuiMenuItem",e)}const ike=_t("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),qg=ike,oke=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ake=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},ske=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e,l=St({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},rke,a);return F({},a,l)},lke=Le(Ms,{shouldForwardProp:e=>Fo(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:ake})(({theme:e,ownerState:t})=>F({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${qg.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${qg.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Vt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${qg.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Vt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Vt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${qg.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${qg.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${GN.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${GN.inset}`]:{marginLeft:52},[`& .${L_.root}`]:{marginTop:0,marginBottom:0},[`& .${L_.inset}`]:{paddingLeft:36},[`& .${nB.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&F({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${nB.root} svg`]:{fontSize:"1.25rem"}}))),uke=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:f="menuitem",tabIndex:d,className:p}=r,m=Qe(r,oke),v=T.useContext(Ga),y=T.useMemo(()=>({dense:a||v.dense||!1,disableGutters:l}),[v.dense,a,l]),w=T.useRef(null);eo(()=>{i&&w.current&&w.current.focus()},[i]);const b=F({},r,{dense:y.dense,divider:s,disableGutters:l}),x=ske(r),S=On(w,n);let k;return r.disabled||(k=d!==void 0?d:-1),C.jsx(Ga.Provider,{value:y,children:C.jsx(lke,F({ref:S,role:f,tabIndex:k,component:o,focusVisibleClassName:Ye(x.focusVisible,u),className:Ye(x.root,p)},m,{ownerState:b,classes:x}))})}),qm=uke;function cke(e){return bt("MuiNativeSelect",e)}const fke=_t("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),cO=fke,dke=["className","disabled","IconComponent","inputRef","variant"],pke=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o}=e,a={select:["select",n,r&&"disabled",i&&"multiple"],icon:["icon",`icon${Fe(n)}`,o&&"iconOpen",r&&"disabled"]};return St(a,cke,t)},OW=({ownerState:e,theme:t})=>F({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":F({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${cO.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),hke=Le("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Fo,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],{[`&.${cO.multiple}`]:t.multiple}]}})(OW),IW=({ownerState:e,theme:t})=>F({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${cO.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),gke=Le("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Fe(n.variant)}`],n.open&&t.iconOpen]}})(IW),mke=T.forwardRef(function(t,n){const{className:r,disabled:i,IconComponent:o,inputRef:a,variant:s="standard"}=t,l=Qe(t,dke),u=F({},t,{disabled:i,variant:s}),f=pke(u);return C.jsxs(T.Fragment,{children:[C.jsx(hke,F({ownerState:u,className:Ye(f.select,r),disabled:i,ref:a||n},l)),t.multiple?null:C.jsx(gke,{as:o,ownerState:u,className:f.icon})]})}),vke=mke;var sB;const yke=["children","classes","className","label","notched"],bke=Le("fieldset")({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%"}),_ke=Le("legend")(({ownerState:e,theme:t})=>F({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&F({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function xke(e){const{className:t,label:n,notched:r}=e,i=Qe(e,yke),o=n!=null&&n!=="",a=F({},e,{notched:r,withLabel:o});return C.jsx(bke,F({"aria-hidden":!0,className:t,ownerState:a},i,{children:C.jsx(_ke,{ownerState:a,children:o?C.jsx("span",{children:n}):sB||(sB=C.jsx("span",{className:"notranslate",children:""}))})}))}const wke=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Ske=e=>{const{classes:t}=e,r=St({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Fxe,t);return F({},t,r)},Cke=Le(jw,{shouldForwardProp:e=>Fo(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Nw})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return F({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${iu.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${iu.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${iu.focused} .${iu.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${iu.error} .${iu.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${iu.disabled} .${iu.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&F({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Eke=Le(xke,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),kke=Le(zw,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Bw})(({theme:e,ownerState:t})=>F({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),DW=T.forwardRef(function(t,n){var r,i,o,a,s;const l=Ct({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:f=!1,inputComponent:d="input",label:p,multiline:m=!1,notched:v,slots:y={},type:w="text"}=l,b=Qe(l,wke),x=Ske(l),S=Ju(),k=oh({props:l,muiFormControl:S,states:["required"]}),A=F({},l,{color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:S,fullWidth:f,hiddenLabel:k.hiddenLabel,multiline:m,size:k.size,type:w}),$=(r=(i=y.root)!=null?i:u.Root)!=null?r:Cke,I=(o=(a=y.input)!=null?a:u.Input)!=null?o:kke;return C.jsx(Uw,F({slots:{root:$,input:I},renderSuffix:z=>C.jsx(Eke,{ownerState:A,className:x.notchedOutline,label:p!=null&&p!==""&&k.required?s||(s=C.jsxs(T.Fragment,{children:[p," ","*"]})):p,notched:typeof v<"u"?v:!!(z.startAdornment||z.filled||z.focused)}),fullWidth:f,inputComponent:d,multiline:m,ref:n,type:w},b,{classes:F({},x,{notchedOutline:null})}))});DW.muiName="Input";const PW=DW;function Tke(e){return bt("MuiSelect",e)}const Ake=_t("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),E1=Ake;var lB;const $ke=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Rke=Le("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${E1.select}`]:t.select},{[`&.${E1.select}`]:t[n.variant]},{[`&.${E1.multiple}`]:t.multiple}]}})(OW,{[`&.${E1.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Oke=Le("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Fe(n.variant)}`],n.open&&t.iconOpen]}})(IW),Ike=Le("input",{shouldForwardProp:e=>q2(e)&&e!=="classes",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 uB(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Dke(e){return e==null||typeof e=="string"&&!e.trim()}const Pke=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o}=e,a={select:["select",n,r&&"disabled",i&&"multiple"],icon:["icon",`icon${Fe(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return St(a,Tke,t)},Lke=T.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":i,autoFocus:o,autoWidth:a,children:s,className:l,defaultOpen:u,defaultValue:f,disabled:d,displayEmpty:p,IconComponent:m,inputRef:v,labelId:y,MenuProps:w={},multiple:b,name:x,onBlur:S,onChange:k,onClose:A,onFocus:$,onOpen:I,open:z,readOnly:K,renderValue:D,SelectDisplayProps:W={},tabIndex:ie,value:ae,variant:q="standard"}=t,G=Qe(t,$ke),[J,le]=Rp({controlled:ae,default:f,name:"Select"}),[Q,te]=Rp({controlled:z,default:u,name:"Select"}),P=T.useRef(null),me=T.useRef(null),[j,L]=T.useState(null),{current:oe}=T.useRef(z!=null),[ue,se]=T.useState(),Ee=On(n,v),Re=T.useCallback(re=>{me.current=re,re&&L(re)},[]),ke=j==null?void 0:j.parentNode;T.useImperativeHandle(Ee,()=>({focus:()=>{me.current.focus()},node:P.current,value:J}),[J]),T.useEffect(()=>{u&&Q&&j&&!oe&&(se(a?null:ke.clientWidth),me.current.focus())},[j,a]),T.useEffect(()=>{o&&me.current.focus()},[o]),T.useEffect(()=>{if(!y)return;const re=er(me.current).getElementById(y);if(re){const xe=()=>{getSelection().isCollapsed&&me.current.focus()};return re.addEventListener("click",xe),()=>{re.removeEventListener("click",xe)}}},[y]);const De=(re,xe)=>{re?I&&I(xe):A&&A(xe),oe||(se(a?null:ke.clientWidth),te(re))},Me=re=>{re.button===0&&(re.preventDefault(),me.current.focus(),De(!0,re))},Be=re=>{De(!1,re)},Ue=T.Children.toArray(s),Ke=re=>{const xe=Ue.map(_e=>_e.props.value).indexOf(re.target.value);if(xe===-1)return;const Se=Ue[xe];le(Se.props.value),k&&k(re,Se)},He=re=>xe=>{let Se;if(xe.currentTarget.hasAttribute("tabindex")){if(b){Se=Array.isArray(J)?J.slice():[];const _e=J.indexOf(re.props.value);_e===-1?Se.push(re.props.value):Se.splice(_e,1)}else Se=re.props.value;if(re.props.onClick&&re.props.onClick(xe),J!==Se&&(le(Se),k)){const _e=xe.nativeEvent||xe,et=new _e.constructor(_e.type,_e);Object.defineProperty(et,"target",{writable:!0,value:{value:Se,name:x}}),k(et,re)}b||De(!1,xe)}},lt=re=>{K||[" ","ArrowUp","ArrowDown","Enter"].indexOf(re.key)!==-1&&(re.preventDefault(),De(!0,re))},Xe=j!==null&&Q,nt=re=>{!Xe&&S&&(Object.defineProperty(re,"target",{writable:!0,value:{value:J,name:x}}),S(re))};delete G["aria-invalid"];let mt,ge;const $e=[];let Te=!1;(sO({value:J})||p)&&(D?mt=D(J):Te=!0);const Pe=Ue.map((re,xe,Se)=>{var _e,et,tt,fe;if(!T.isValidElement(re))return null;let he;if(b){if(!Array.isArray(J))throw new Error(Nu(2));he=J.some(We=>uB(We,re.props.value)),he&&Te&&$e.push(re.props.children)}else he=uB(J,re.props.value),he&&Te&&(ge=re.props.children);if(re.props.value===void 0)return T.cloneElement(re,{"aria-readonly":!0,role:"option"});const Ae=()=>{if(J)return he;const We=Se.find(Ve=>{var Ge;return(Ve==null||(Ge=Ve.props)==null?void 0:Ge.value)!==void 0&&Ve.props.disabled!==!0});return re===We?!0:he};return T.cloneElement(re,{"aria-selected":he?"true":"false",onClick:He(re),onKeyUp:We=>{We.key===" "&&We.preventDefault(),re.props.onKeyUp&&re.props.onKeyUp(We)},role:"option",selected:((_e=Se[0])==null||(et=_e.props)==null?void 0:et.value)===void 0||((tt=Se[0])==null||(fe=tt.props)==null?void 0:fe.disabled)===!0?Ae():he,value:void 0,"data-value":re.props.value})});Te&&(b?$e.length===0?mt=null:mt=$e.reduce((re,xe,Se)=>(re.push(xe),Se<$e.length-1&&re.push(", "),re),[]):mt=ge);let U=ue;!a&&oe&&j&&(U=ke.clientWidth);let H;typeof ie<"u"?H=ie:H=d?null:0;const de=W.id||(x?`mui-component-select-${x}`:void 0),Y=F({},t,{variant:q,value:J,open:Xe}),Z=Pke(Y);return C.jsxs(T.Fragment,{children:[C.jsx(Rke,F({ref:Re,tabIndex:H,role:"button","aria-disabled":d?"true":void 0,"aria-expanded":Xe?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[y,de].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:lt,onMouseDown:d||K?null:Me,onBlur:nt,onFocus:$},W,{ownerState:Y,className:Ye(W.className,Z.select,l),id:de,children:Dke(mt)?lB||(lB=C.jsx("span",{className:"notranslate",children:""})):mt})),C.jsx(Ike,F({value:Array.isArray(J)?J.join(","):J,name:x,ref:P,"aria-hidden":!0,onChange:Ke,tabIndex:-1,disabled:d,className:Z.nativeInput,autoFocus:o,ownerState:Y},G)),C.jsx(Oke,{as:m,className:Z.icon,ownerState:Y}),C.jsx(uy,F({id:`menu-${x||""}`,anchorEl:ke,open:Xe,onClose:Be,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},w,{MenuListProps:F({"aria-labelledby":y,role:"listbox",disableListWrap:!0},w.MenuListProps),PaperProps:F({},w.PaperProps,{style:F({minWidth:U},w.PaperProps!=null?w.PaperProps.style:null)}),children:Pe}))]})}),Mke=Lke;var cB,fB;const Fke=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Nke=e=>{const{classes:t}=e;return t},fO={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Fo(e)&&e!=="variant",slot:"Root"},Bke=Le(kW,fO)(""),jke=Le(PW,fO)(""),zke=Le(bW,fO)(""),LW=T.forwardRef(function(t,n){const r=Ct({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:f=zxe,id:d,input:p,inputProps:m,label:v,labelId:y,MenuProps:w,multiple:b=!1,native:x=!1,onClose:S,onOpen:k,open:A,renderValue:$,SelectDisplayProps:I,variant:z="outlined"}=r,K=Qe(r,Fke),D=x?vke:Mke,W=Ju(),ae=oh({props:r,muiFormControl:W,states:["variant"]}).variant||z,q=p||{standard:cB||(cB=C.jsx(Bke,{})),outlined:C.jsx(jke,{label:v}),filled:fB||(fB=C.jsx(zke,{}))}[ae],G=F({},r,{variant:ae,classes:a}),J=Nke(G),le=On(n,q.ref);return C.jsx(T.Fragment,{children:T.cloneElement(q,F({inputComponent:D,inputProps:F({children:o,IconComponent:f,variant:ae,type:void 0,multiple:b},x?{id:d}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:y,MenuProps:w,onClose:S,onOpen:k,open:A,renderValue:$,SelectDisplayProps:F({id:d},I)},m,{classes:m?Xi(J,m.classes):J},p?p.props.inputProps:{})},b&&x&&ae==="outlined"?{notched:!0}:{},{ref:le,className:Ye(q.props.className,s)},!p&&{variant:ae},K))})});LW.muiName="Select";const MW=LW,Uke=e=>!e||!Ds(e),Kke=Uke;function Wke(e){return bt("MuiSlider",e)}const Vke=_t("MuiSlider",["root","active","colorPrimary","colorSecondary","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Va=Vke,Hke=e=>{const{open:t}=e;return{offset:Ye(t&&Va.valueLabelOpen),circle:Va.valueLabelCircle,label:Va.valueLabelLabel}};function qke(e){const{children:t,className:n,value:r}=e,i=Hke(e);return t?T.cloneElement(t,{className:Ye(t.props.className)},C.jsxs(T.Fragment,{children:[t.props.children,C.jsx("span",{className:Ye(i.offset,n),"aria-hidden":!0,children:C.jsx("span",{className:i.circle,children:C.jsx("span",{className:i.label,children:r})})})]})):null}const Gke=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"],dB=(e,t,n)=>(e-t)*100/(n-t);function pB(e){return e}const Yke=Le("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Fe(n.color)}`],n.size!=="medium"&&t[`size${Fe(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>F({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&F({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&F({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${Va.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Va.dragging}`]:{[`& .${Va.thumb}, & .${Va.track}`]:{transition:"none"}}})),Xke=Le("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>F({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),Zke=Le("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Ev(e.palette[t.color].main,.62):Cv(e.palette[t.color].main,.5);return F({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),Jke=Le("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Fe(n.color)}`],n.size!=="medium"&&t[`thumbSize${Fe(n.size)}`]]}})(({theme:e,ownerState:t})=>F({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":F({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${Va.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Vt(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Va.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Vt(e.palette[t.color].main,.16)}`},[`&.${Va.disabled}`]:{"&:hover":{boxShadow:"none"}}})),Qke=Le(qke,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>F({[`&.${Va.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:"translateY(-100%) scale(0)",position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{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%"}},t.orientation==="vertical"&&{right:"30px",top:"24px",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",right:"-20%",top:"25%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),eTe=Le("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>q2(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>F({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),tTe=Le("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>q2(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>F({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),nTe=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:a,color:s,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",o==="inverted"&&"trackInverted",o===!1&&"trackFalse",s&&`color${Fe(s)}`,l&&`size${Fe(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Fe(l)}`,s&&`thumbColor${Fe(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return St(u,Wke,a)},rTe=({children:e})=>e,iTe=T.forwardRef(function(t,n){var r,i,o,a,s,l,u,f,d,p,m,v,y,w,b,x,S,k,A,$,I,z,K,D;const W=Ct({props:t,name:"MuiSlider"}),ae=nr().direction==="rtl",{"aria-label":q,"aria-valuetext":G,"aria-labelledby":J,component:le="span",components:Q={},componentsProps:te={},color:P="primary",classes:me,className:j,disableSwap:L=!1,disabled:oe=!1,getAriaLabel:ue,getAriaValueText:se,marks:Ee=!1,max:Re=100,min:ke=0,orientation:De="horizontal",size:Me="medium",step:Be=1,scale:Ue=pB,slotProps:Ke,slots:He,track:lt="normal",valueLabelDisplay:Xe="off",valueLabelFormat:nt=pB}=W,mt=Qe(W,Gke),ge=F({},W,{isRtl:ae,max:Re,min:ke,classes:me,disabled:oe,disableSwap:L,orientation:De,marks:Ee,color:P,size:Me,step:Be,scale:Ue,track:lt,valueLabelDisplay:Xe,valueLabelFormat:nt}),{axisProps:$e,getRootProps:Te,getHiddenInputProps:Pe,getThumbProps:U,open:H,active:de,axis:Y,focusedThumbIndex:Z,range:re,dragging:xe,marks:Se,values:_e,trackOffset:et,trackLeap:tt}=Nbe(F({},ge,{ref:n}));ge.marked=Se.length>0&&Se.some(kn=>kn.label),ge.dragging=xe,ge.focusedThumbIndex=Z;const fe=nTe(ge),he=(r=(i=He==null?void 0:He.root)!=null?i:Q.Root)!=null?r:Yke,Ae=(o=(a=He==null?void 0:He.rail)!=null?a:Q.Rail)!=null?o:Xke,We=(s=(l=He==null?void 0:He.track)!=null?l:Q.Track)!=null?s:Zke,Ve=(u=(f=He==null?void 0:He.thumb)!=null?f:Q.Thumb)!=null?u:Jke,Ge=(d=(p=He==null?void 0:He.valueLabel)!=null?p:Q.ValueLabel)!=null?d:Qke,ft=(m=(v=He==null?void 0:He.mark)!=null?v:Q.Mark)!=null?m:eTe,ut=(y=(w=He==null?void 0:He.markLabel)!=null?w:Q.MarkLabel)!=null?y:tTe,it=(b=(x=He==null?void 0:He.input)!=null?x:Q.Input)!=null?b:"input",pt=(S=Ke==null?void 0:Ke.root)!=null?S:te.root,Ot=(k=Ke==null?void 0:Ke.rail)!=null?k:te.rail,rn=(A=Ke==null?void 0:Ke.track)!=null?A:te.track,Qt=($=Ke==null?void 0:Ke.thumb)!=null?$:te.thumb,Yt=(I=Ke==null?void 0:Ke.valueLabel)!=null?I:te.valueLabel,br=(z=Ke==null?void 0:Ke.mark)!=null?z:te.mark,Sn=(K=Ke==null?void 0:Ke.markLabel)!=null?K:te.markLabel,Nr=(D=Ke==null?void 0:Ke.input)!=null?D:te.input,_r=ja({elementType:he,getSlotProps:Te,externalSlotProps:pt,externalForwardedProps:mt,additionalProps:F({},Kke(he)&&{as:le}),ownerState:F({},ge,pt==null?void 0:pt.ownerState),className:[fe.root,j]}),kr=ja({elementType:Ae,externalSlotProps:Ot,ownerState:ge,className:fe.rail}),qr=ja({elementType:We,externalSlotProps:rn,additionalProps:{style:F({},$e[Y].offset(et),$e[Y].leap(tt))},ownerState:F({},ge,rn==null?void 0:rn.ownerState),className:fe.track}),_i=ja({elementType:Ve,getSlotProps:U,externalSlotProps:Qt,ownerState:F({},ge,Qt==null?void 0:Qt.ownerState)}),Gs=ja({elementType:Ge,externalSlotProps:Yt,ownerState:F({},ge,Yt==null?void 0:Yt.ownerState),className:fe.valueLabel}),xi=ja({elementType:ft,externalSlotProps:br,ownerState:ge,className:fe.mark}),Gr=ja({elementType:ut,externalSlotProps:Sn,ownerState:ge}),Ul=ja({elementType:it,getSlotProps:Pe,externalSlotProps:Nr,ownerState:ge});return C.jsxs(he,F({},_r,{children:[C.jsx(Ae,F({},kr)),C.jsx(We,F({},qr)),Se.filter(kn=>kn.value>=ke&&kn.value<=Re).map((kn,Tn)=>{const uo=dB(kn.value,ke,Re),fr=$e[Y].offset(uo);let Rt;return lt===!1?Rt=_e.indexOf(kn.value)!==-1:Rt=lt==="normal"&&(re?kn.value>=_e[0]&&kn.value<=_e[_e.length-1]:kn.value<=_e[0])||lt==="inverted"&&(re?kn.value<=_e[0]||kn.value>=_e[_e.length-1]:kn.value>=_e[0]),C.jsxs(T.Fragment,{children:[C.jsx(ft,F({"data-index":Tn},xi,!Ds(ft)&&{markActive:Rt},{style:F({},fr,xi.style),className:Ye(xi.className,Rt&&fe.markActive)})),kn.label!=null?C.jsx(ut,F({"aria-hidden":!0,"data-index":Tn},Gr,!Ds(ut)&&{markLabelActive:Rt},{style:F({},fr,Gr.style),className:Ye(fe.markLabel,Gr.className,Rt&&fe.markLabelActive),children:kn.label})):null]},Tn)}),_e.map((kn,Tn)=>{const uo=dB(kn,ke,Re),fr=$e[Y].offset(uo),Rt=Xe==="off"?rTe:Ge;return C.jsx(T.Fragment,{children:C.jsx(Rt,F({},!Ds(Rt)&&{valueLabelFormat:nt,valueLabelDisplay:Xe,value:typeof nt=="function"?nt(Ue(kn),Tn):nt,index:Tn,open:H===Tn||de===Tn||Xe==="on",disabled:oe},Gs,{children:C.jsx(Ve,F({"data-index":Tn,"data-focusvisible":Z===Tn},_i,{className:Ye(fe.thumb,_i.className,de===Tn&&fe.active,Z===Tn&&fe.focusVisible),style:F({},fr,{pointerEvents:L&&de!==Tn?"none":void 0},_i.style),children:C.jsx(it,F({"data-index":Tn,"aria-label":ue?ue(Tn):q,"aria-valuenow":Ue(kn),"aria-labelledby":J,"aria-valuetext":se?se(Ue(kn),Tn):G,value:_e[Tn]},Ul))}))}))},Tn)})]}))}),oTe=iTe;function aTe(e){return bt("MuiTooltip",e)}const sTe=_t("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Su=sTe,lTe=["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"];function uTe(e){return Math.round(e*1e5)/1e5}const cTe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${Fe(o.split("-")[0])}`],arrow:["arrow"]};return St(a,aTe,t)},fTe=Le(lW,{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]}})(({theme:e,ownerState:t,open:n})=>F({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Su.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Su.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Su.arrow}`]:F({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Su.arrow}`]:F({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),dTe=Le("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${Fe(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>F({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Vt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${uTe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Su.popper}[data-popper-placement*="left"] &`]:F({transformOrigin:"right center"},t.isRtl?F({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):F({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Su.popper}[data-popper-placement*="right"] &`]:F({transformOrigin:"left center"},t.isRtl?F({marginRight:"14px"},t.touch&&{marginRight:"24px"}):F({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Su.popper}[data-popper-placement*="top"] &`]:F({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Su.popper}[data-popper-placement*="bottom"] &`]:F({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),pTe=Le("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Vt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let k1=!1,JE=null,Gg={x:0,y:0};function T1(e,t){return n=>{t&&t(n),e(n)}}const hTe=T.forwardRef(function(t,n){var r,i,o,a,s,l,u,f,d,p,m,v,y,w,b,x,S,k,A;const $=Ct({props:t,name:"MuiTooltip"}),{arrow:I=!1,children:z,components:K={},componentsProps:D={},describeChild:W=!1,disableFocusListener:ie=!1,disableHoverListener:ae=!1,disableInteractive:q=!1,disableTouchListener:G=!1,enterDelay:J=100,enterNextDelay:le=0,enterTouchDelay:Q=700,followCursor:te=!1,id:P,leaveDelay:me=0,leaveTouchDelay:j=1500,onClose:L,onOpen:oe,open:ue,placement:se="bottom",PopperComponent:Ee,PopperProps:Re={},slotProps:ke={},slots:De={},title:Me,TransitionComponent:Be=VA,TransitionProps:Ue}=$,Ke=Qe($,lTe),He=nr(),lt=He.direction==="rtl",[Xe,nt]=T.useState(),[mt,ge]=T.useState(null),$e=T.useRef(!1),Te=q||te,Pe=T.useRef(),U=T.useRef(),H=T.useRef(),de=T.useRef(),[Y,Z]=Rp({controlled:ue,default:!1,name:"Tooltip",state:"open"});let re=Y;const xe=ty(P),Se=T.useRef(),_e=T.useCallback(()=>{Se.current!==void 0&&(document.body.style.WebkitUserSelect=Se.current,Se.current=void 0),clearTimeout(de.current)},[]);T.useEffect(()=>()=>{clearTimeout(Pe.current),clearTimeout(U.current),clearTimeout(H.current),_e()},[_e]);const et=ot=>{clearTimeout(JE),k1=!0,Z(!0),oe&&!re&&oe(ot)},tt=Ri(ot=>{clearTimeout(JE),JE=setTimeout(()=>{k1=!1},800+me),Z(!1),L&&re&&L(ot),clearTimeout(Pe.current),Pe.current=setTimeout(()=>{$e.current=!1},He.transitions.duration.shortest)}),fe=ot=>{$e.current&&ot.type!=="touchstart"||(Xe&&Xe.removeAttribute("title"),clearTimeout(U.current),clearTimeout(H.current),J||k1&&le?U.current=setTimeout(()=>{et(ot)},k1?le:J):et(ot))},he=ot=>{clearTimeout(U.current),clearTimeout(H.current),H.current=setTimeout(()=>{tt(ot)},me)},{isFocusVisibleRef:Ae,onBlur:We,onFocus:Ve,ref:Ge}=ny(),[,ft]=T.useState(!1),ut=ot=>{We(ot),Ae.current===!1&&(ft(!1),he(ot))},it=ot=>{Xe||nt(ot.currentTarget),Ve(ot),Ae.current===!0&&(ft(!0),fe(ot))},pt=ot=>{$e.current=!0;const xr=z.props;xr.onTouchStart&&xr.onTouchStart(ot)},Ot=fe,rn=he,Qt=ot=>{pt(ot),clearTimeout(H.current),clearTimeout(Pe.current),_e(),Se.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",de.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Se.current,fe(ot)},Q)},Yt=ot=>{z.props.onTouchEnd&&z.props.onTouchEnd(ot),_e(),clearTimeout(H.current),H.current=setTimeout(()=>{tt(ot)},j)};T.useEffect(()=>{if(!re)return;function ot(xr){(xr.key==="Escape"||xr.key==="Esc")&&tt(xr)}return document.addEventListener("keydown",ot),()=>{document.removeEventListener("keydown",ot)}},[tt,re]);const br=On(z.ref,Ge,nt,n);!Me&&Me!==0&&(re=!1);const Sn=T.useRef(),Nr=ot=>{const xr=z.props;xr.onMouseMove&&xr.onMouseMove(ot),Gg={x:ot.clientX,y:ot.clientY},Sn.current&&Sn.current.update()},_r={},kr=typeof Me=="string";W?(_r.title=!re&&kr&&!ae?Me:null,_r["aria-describedby"]=re?xe:null):(_r["aria-label"]=kr?Me:null,_r["aria-labelledby"]=re&&!kr?xe:null);const qr=F({},_r,Ke,z.props,{className:Ye(Ke.className,z.props.className),onTouchStart:pt,ref:br},te?{onMouseMove:Nr}:{}),_i={};G||(qr.onTouchStart=Qt,qr.onTouchEnd=Yt),ae||(qr.onMouseOver=T1(Ot,qr.onMouseOver),qr.onMouseLeave=T1(rn,qr.onMouseLeave),Te||(_i.onMouseOver=Ot,_i.onMouseLeave=rn)),ie||(qr.onFocus=T1(it,qr.onFocus),qr.onBlur=T1(ut,qr.onBlur),Te||(_i.onFocus=it,_i.onBlur=ut));const Gs=T.useMemo(()=>{var ot;let xr=[{name:"arrow",enabled:!!mt,options:{element:mt,padding:4}}];return(ot=Re.popperOptions)!=null&&ot.modifiers&&(xr=xr.concat(Re.popperOptions.modifiers)),F({},Re.popperOptions,{modifiers:xr})},[mt,Re]),xi=F({},$,{isRtl:lt,arrow:I,disableInteractive:Te,placement:se,PopperComponentProp:Ee,touch:$e.current}),Gr=cTe(xi),Ul=(r=(i=De.popper)!=null?i:K.Popper)!=null?r:fTe,kn=(o=(a=(s=De.transition)!=null?s:K.Transition)!=null?a:Be)!=null?o:VA,Tn=(l=(u=De.tooltip)!=null?u:K.Tooltip)!=null?l:dTe,uo=(f=(d=De.arrow)!=null?d:K.Arrow)!=null?f:pTe,fr=bm(Ul,F({},Re,(p=ke.popper)!=null?p:D.popper,{className:Ye(Gr.popper,Re==null?void 0:Re.className,(m=(v=ke.popper)!=null?v:D.popper)==null?void 0:m.className)}),xi),Rt=bm(kn,F({},Ue,(y=ke.transition)!=null?y:D.transition),xi),ic=bm(Tn,F({},(w=ke.tooltip)!=null?w:D.tooltip,{className:Ye(Gr.tooltip,(b=(x=ke.tooltip)!=null?x:D.tooltip)==null?void 0:b.className)}),xi),Wf=bm(uo,F({},(S=ke.arrow)!=null?S:D.arrow,{className:Ye(Gr.arrow,(k=(A=ke.arrow)!=null?A:D.arrow)==null?void 0:k.className)}),xi);return C.jsxs(T.Fragment,{children:[T.cloneElement(z,qr),C.jsx(Ul,F({as:Ee??lW,placement:se,anchorEl:te?{getBoundingClientRect:()=>({top:Gg.y,left:Gg.x,right:Gg.x,bottom:Gg.y,width:0,height:0})}:Xe,popperRef:Sn,open:Xe?re:!1,id:xe,transition:!0},_i,fr,{popperOptions:Gs,children:({TransitionProps:ot})=>C.jsx(kn,F({timeout:He.transitions.duration.shorter},ot,Rt,{children:C.jsxs(Tn,F({},ic,{children:[Me,I?C.jsx(uo,F({},Wf,{ref:ge})):null]}))}))}))]})}),Io=hTe,gTe=["component","direction","spacing","divider","children"];function mTe(e,t){const n=T.Children.toArray(e).filter(Boolean);return n.reduce((r,i,o)=>(r.push(i),o<n.length-1&&r.push(T.cloneElement(t,{key:`separator-${o}`})),r),[])}const vTe=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],yTe=({ownerState:e,theme:t})=>{let n=F({display:"flex",flexDirection:"column"},Ja({theme:t},WE({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=U2(t),i=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),o=WE({values:e.direction,base:i}),a=WE({values:e.spacing,base:i});typeof o=="object"&&Object.keys(o).forEach((l,u,f)=>{if(!o[l]){const p=u>0?o[f[u-1]]:"column";o[l]=p}}),n=Xi(n,Ja({theme:t},a,(l,u)=>({"& > :not(style) + :not(style)":{margin:0,[`margin${vTe(u?o[u]:e.direction)}`]:rh(r,l)}})))}return n=Jve(t.breakpoints,n),n},bTe=Le("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>[t.root]})(yTe),_Te=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiStack"}),i=V2(r),{component:o="div",direction:a="column",spacing:s=0,divider:l,children:u}=i,f=Qe(i,gTe),d={direction:a,spacing:s};return C.jsx(bTe,F({as:o,ownerState:d,ref:n},f,{children:l?mTe(u,l):u}))}),Ht=_Te;function xTe(e){return bt("MuiSwitch",e)}const wTe=_t("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Ti=wTe,STe=["className","color","edge","size","sx"],CTe=e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:a}=e,s={root:["root",n&&`edge${Fe(n)}`,`size${Fe(r)}`],switchBase:["switchBase",`color${Fe(i)}`,o&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=St(s,xTe,t);return F({},t,l)},ETe=Le("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Fe(n.edge)}`],t[`size${Fe(n.size)}`]]}})(({ownerState:e})=>F({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${Ti.thumb}`]:{width:16,height:16},[`& .${Ti.switchBase}`]:{padding:4,[`&.${Ti.checked}`]:{transform:"translateX(16px)"}}})),kTe=Le(Swe,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Ti.input}`]:t.input},n.color!=="default"&&t[`color${Fe(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Ti.checked}`]:{transform:"translateX(20px)"},[`&.${Ti.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Ti.checked} + .${Ti.track}`]:{opacity:.5},[`&.${Ti.disabled} + .${Ti.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Ti.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>F({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Vt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Ti.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Vt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ti.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Ev(e.palette[t.color].main,.62):Cv(e.palette[t.color].main,.55)}`}},[`&.${Ti.checked} + .${Ti.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),TTe=Le("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),ATe=Le("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),$Te=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:a=!1,size:s="medium",sx:l}=r,u=Qe(r,STe),f=F({},r,{color:o,edge:a,size:s}),d=CTe(f),p=C.jsx(ATe,{className:d.thumb,ownerState:f});return C.jsxs(ETe,{className:Ye(d.root,i),sx:l,ownerState:f,children:[C.jsx(kTe,F({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:f},u,{classes:F({},d,{root:d.switchBase})})),C.jsx(TTe,{className:d.track,ownerState:f})]})}),RTe=$Te;function OTe(e){return bt("MuiTab",e)}const ITe=_t("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),xc=ITe,DTe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],PTe=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:o,label:a,selected:s,disabled:l}=e,u={root:["root",o&&a&&"labelIcon",`textColor${Fe(n)}`,r&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return St(u,OTe,t)},LTe=Le(Ms,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Fe(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>F({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${xc.iconWrapper}`]:F({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${xc.selected}`]:{opacity:1},[`&.${xc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${xc.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${xc.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${xc.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${xc.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),MTe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiTab"}),{className:i,disabled:o=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:u="top",indicator:f,label:d,onChange:p,onClick:m,onFocus:v,selected:y,selectionFollowsFocus:w,textColor:b="inherit",value:x,wrapped:S=!1}=r,k=Qe(r,DTe),A=F({},r,{disabled:o,disableFocusRipple:a,selected:y,icon:!!l,iconPosition:u,label:!!d,fullWidth:s,textColor:b,wrapped:S}),$=PTe(A),I=l&&d&&T.isValidElement(l)?T.cloneElement(l,{className:Ye($.iconWrapper,l.props.className)}):l,z=D=>{!y&&p&&p(D,x),m&&m(D)},K=D=>{w&&!y&&p&&p(D,x),v&&v(D)};return C.jsxs(LTe,F({focusRipple:!a,className:Ye($.root,i),ref:n,role:"tab","aria-selected":y,disabled:o,onClick:z,onFocus:K,ownerState:A,tabIndex:y?0:-1},k,{children:[u==="top"||u==="start"?C.jsxs(T.Fragment,{children:[I,d]}):C.jsxs(T.Fragment,{children:[d,I]}),f]}))}),FTe=MTe;function NTe(e){return bt("MuiToolbar",e)}_t("MuiToolbar",["root","gutters","regular","dense"]);const BTe=["className","component","disableGutters","variant"],jTe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return St({root:["root",!n&&"gutters",r]},NTe,t)},zTe=Le("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>F({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),UTe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:a=!1,variant:s="regular"}=r,l=Qe(r,BTe),u=F({},r,{component:o,disableGutters:a,variant:s}),f=jTe(u);return C.jsx(zTe,F({as:o,className:Ye(f.root,i),ref:n,ownerState:u},l))}),KTe=UTe,WTe=Mi(C.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),VTe=Mi(C.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function HTe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function qTe(e,t,n,r={},i=()=>{}){const{ease:o=HTe,duration:a=300}=r;let s=null;const l=t[e];let u=!1;const f=()=>{u=!0},d=p=>{if(u){i(new Error("Animation cancelled"));return}s===null&&(s=p);const m=Math.min(1,(p-s)/a);if(t[e]=o(m)*(n-l)+l,m>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(d)};return l===n?(i(new Error("Element already at target position")),f):(requestAnimationFrame(d),f)}const GTe=["onChange"],YTe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function XTe(e){const{onChange:t}=e,n=Qe(e,GTe),r=T.useRef(),i=T.useRef(null),o=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return T.useEffect(()=>{const a=uf(()=>{const l=r.current;o(),l!==r.current&&t(r.current)}),s=da(i.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),T.useEffect(()=>{o(),t(r.current)},[t]),C.jsx("div",F({style:YTe,ref:i},n))}function ZTe(e){return bt("MuiTabScrollButton",e)}const JTe=_t("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),QTe=JTe;var hB,gB;const eAe=["className","direction","orientation","disabled"],tAe=e=>{const{classes:t,orientation:n,disabled:r}=e;return St({root:["root",n,r&&"disabled"]},ZTe,t)},nAe=Le(Ms,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>F({width:40,flexShrink:0,opacity:.8,[`&.${QTe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),rAe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiTabScrollButton"}),{className:i,direction:o}=r,a=Qe(r,eAe),l=nr().direction==="rtl",u=F({isRtl:l},r),f=tAe(u);return C.jsx(nAe,F({component:"div",className:Ye(f.root,i),ref:n,role:null,ownerState:u,tabIndex:null},a,{children:o==="left"?hB||(hB=C.jsx(WTe,{fontSize:"small"})):gB||(gB=C.jsx(VTe,{fontSize:"small"}))}))}),iAe=rAe;function oAe(e){return bt("MuiTabs",e)}const aAe=_t("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),QE=aAe,sAe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],mB=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,vB=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,A1=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const o=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||o)i=n(e,i);else{i.focus();return}}},lAe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:o,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return St({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},oAe,l)},uAe=Le("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${QE.scrollButtons}`]:t.scrollButtons},{[`& .${QE.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>F({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${QE.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),cAe=Le("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]}})(({ownerState:e})=>F({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),fAe=Le("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>F({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),dAe=Le("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>F({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),pAe=Le(XTe,{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),yB={},hAe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiTabs"}),i=nr(),o=i.direction==="rtl",{"aria-label":a,"aria-labelledby":s,action:l,centered:u=!1,children:f,className:d,component:p="div",allowScrollButtonsMobile:m=!1,indicatorColor:v="primary",onChange:y,orientation:w="horizontal",ScrollButtonComponent:b=iAe,scrollButtons:x="auto",selectionFollowsFocus:S,TabIndicatorProps:k={},TabScrollButtonProps:A={},textColor:$="primary",value:I,variant:z="standard",visibleScrollbar:K=!1}=r,D=Qe(r,sAe),W=z==="scrollable",ie=w==="vertical",ae=ie?"scrollTop":"scrollLeft",q=ie?"top":"left",G=ie?"bottom":"right",J=ie?"clientHeight":"clientWidth",le=ie?"height":"width",Q=F({},r,{component:p,allowScrollButtonsMobile:m,indicatorColor:v,orientation:w,vertical:ie,scrollButtons:x,textColor:$,variant:z,visibleScrollbar:K,fixed:!W,hideScrollbar:W&&!K,scrollableX:W&&!ie,scrollableY:W&&ie,centered:u&&!W,scrollButtonsHideMobile:!m}),te=lAe(Q),[P,me]=T.useState(!1),[j,L]=T.useState(yB),[oe,ue]=T.useState({start:!1,end:!1}),[se,Ee]=T.useState({overflow:"hidden",scrollbarWidth:0}),Re=new Map,ke=T.useRef(null),De=T.useRef(null),Me=()=>{const Z=ke.current;let re;if(Z){const Se=Z.getBoundingClientRect();re={clientWidth:Z.clientWidth,scrollLeft:Z.scrollLeft,scrollTop:Z.scrollTop,scrollLeftNormalized:qF(Z,i.direction),scrollWidth:Z.scrollWidth,top:Se.top,bottom:Se.bottom,left:Se.left,right:Se.right}}let xe;if(Z&&I!==!1){const Se=De.current.children;if(Se.length>0){const _e=Se[Re.get(I)];xe=_e?_e.getBoundingClientRect():null}}return{tabsMeta:re,tabMeta:xe}},Be=Ri(()=>{const{tabsMeta:Z,tabMeta:re}=Me();let xe=0,Se;if(ie)Se="top",re&&Z&&(xe=re.top-Z.top+Z.scrollTop);else if(Se=o?"right":"left",re&&Z){const et=o?Z.scrollLeftNormalized+Z.clientWidth-Z.scrollWidth:Z.scrollLeft;xe=(o?-1:1)*(re[Se]-Z[Se]+et)}const _e={[Se]:xe,[le]:re?re[le]:0};if(isNaN(j[Se])||isNaN(j[le]))L(_e);else{const et=Math.abs(j[Se]-_e[Se]),tt=Math.abs(j[le]-_e[le]);(et>=1||tt>=1)&&L(_e)}}),Ue=(Z,{animation:re=!0}={})=>{re?qTe(ae,ke.current,Z,{duration:i.transitions.duration.standard}):ke.current[ae]=Z},Ke=Z=>{let re=ke.current[ae];ie?re+=Z:(re+=Z*(o?-1:1),re*=o&&bK()==="reverse"?-1:1),Ue(re)},He=()=>{const Z=ke.current[J];let re=0;const xe=Array.from(De.current.children);for(let Se=0;Se<xe.length;Se+=1){const _e=xe[Se];if(re+_e[J]>Z){Se===0&&(re=Z);break}re+=_e[J]}return re},lt=()=>{Ke(-1*He())},Xe=()=>{Ke(He())},nt=T.useCallback(Z=>{Ee({overflow:null,scrollbarWidth:Z})},[]),mt=()=>{const Z={};Z.scrollbarSizeListener=W?C.jsx(pAe,{onChange:nt,className:Ye(te.scrollableX,te.hideScrollbar)}):null;const re=oe.start||oe.end,xe=W&&(x==="auto"&&re||x===!0);return Z.scrollButtonStart=xe?C.jsx(b,F({orientation:w,direction:o?"right":"left",onClick:lt,disabled:!oe.start},A,{className:Ye(te.scrollButtons,A.className)})):null,Z.scrollButtonEnd=xe?C.jsx(b,F({orientation:w,direction:o?"left":"right",onClick:Xe,disabled:!oe.end},A,{className:Ye(te.scrollButtons,A.className)})):null,Z},ge=Ri(Z=>{const{tabsMeta:re,tabMeta:xe}=Me();if(!(!xe||!re)){if(xe[q]<re[q]){const Se=re[ae]+(xe[q]-re[q]);Ue(Se,{animation:Z})}else if(xe[G]>re[G]){const Se=re[ae]+(xe[G]-re[G]);Ue(Se,{animation:Z})}}}),$e=Ri(()=>{if(W&&x!==!1){const{scrollTop:Z,scrollHeight:re,clientHeight:xe,scrollWidth:Se,clientWidth:_e}=ke.current;let et,tt;if(ie)et=Z>1,tt=Z<re-xe-1;else{const fe=qF(ke.current,i.direction);et=o?fe<Se-_e-1:fe>1,tt=o?fe>1:fe<Se-_e-1}(et!==oe.start||tt!==oe.end)&&ue({start:et,end:tt})}});T.useEffect(()=>{const Z=uf(()=>{ke.current&&(Be(),$e())}),re=da(ke.current);re.addEventListener("resize",Z);let xe;return typeof ResizeObserver<"u"&&(xe=new ResizeObserver(Z),Array.from(De.current.children).forEach(Se=>{xe.observe(Se)})),()=>{Z.clear(),re.removeEventListener("resize",Z),xe&&xe.disconnect()}},[Be,$e]);const Te=T.useMemo(()=>uf(()=>{$e()}),[$e]);T.useEffect(()=>()=>{Te.clear()},[Te]),T.useEffect(()=>{me(!0)},[]),T.useEffect(()=>{Be(),$e()}),T.useEffect(()=>{ge(yB!==j)},[ge,j]),T.useImperativeHandle(l,()=>({updateIndicator:Be,updateScrollButtons:$e}),[Be,$e]);const Pe=C.jsx(dAe,F({},k,{className:Ye(te.indicator,k.className),ownerState:Q,style:F({},j,k.style)}));let U=0;const H=T.Children.map(f,Z=>{if(!T.isValidElement(Z))return null;const re=Z.props.value===void 0?U:Z.props.value;Re.set(re,U);const xe=re===I;return U+=1,T.cloneElement(Z,F({fullWidth:z==="fullWidth",indicator:xe&&!P&&Pe,selected:xe,selectionFollowsFocus:S,onChange:y,textColor:$,value:re},U===1&&I===!1&&!Z.props.tabIndex?{tabIndex:0}:{}))}),de=Z=>{const re=De.current,xe=er(re).activeElement;if(xe.getAttribute("role")!=="tab")return;let _e=w==="horizontal"?"ArrowLeft":"ArrowUp",et=w==="horizontal"?"ArrowRight":"ArrowDown";switch(w==="horizontal"&&o&&(_e="ArrowRight",et="ArrowLeft"),Z.key){case _e:Z.preventDefault(),A1(re,xe,vB);break;case et:Z.preventDefault(),A1(re,xe,mB);break;case"Home":Z.preventDefault(),A1(re,null,mB);break;case"End":Z.preventDefault(),A1(re,null,vB);break}},Y=mt();return C.jsxs(uAe,F({className:Ye(te.root,d),ownerState:Q,ref:n,as:p},D,{children:[Y.scrollButtonStart,Y.scrollbarSizeListener,C.jsxs(cAe,{className:te.scroller,ownerState:Q,style:{overflow:se.overflow,[ie?`margin${o?"Left":"Right"}`:"marginBottom"]:K?void 0:-se.scrollbarWidth},ref:ke,onScroll:Te,children:[C.jsx(fAe,{"aria-label":a,"aria-labelledby":s,"aria-orientation":w==="vertical"?"vertical":null,className:te.flexContainer,ownerState:Q,onKeyDown:de,ref:De,role:"tablist",children:H}),P&&Pe]}),Y.scrollButtonEnd]}))}),gAe=hAe;function mAe(e){return bt("MuiTextField",e)}_t("MuiTextField",["root"]);const vAe=["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"],yAe={standard:kW,filled:bW,outlined:PW},bAe=e=>{const{classes:t}=e;return St({root:["root"]},mAe,t)},_Ae=Le(_W,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),xAe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:a,className:s,color:l="primary",defaultValue:u,disabled:f=!1,error:d=!1,FormHelperTextProps:p,fullWidth:m=!1,helperText:v,id:y,InputLabelProps:w,inputProps:b,InputProps:x,inputRef:S,label:k,maxRows:A,minRows:$,multiline:I=!1,name:z,onBlur:K,onChange:D,onFocus:W,placeholder:ie,required:ae=!1,rows:q,select:G=!1,SelectProps:J,type:le,value:Q,variant:te="outlined"}=r,P=Qe(r,vAe),me=F({},r,{autoFocus:o,color:l,disabled:f,error:d,fullWidth:m,multiline:I,required:ae,select:G,variant:te}),j=bAe(me),L={};te==="outlined"&&(w&&typeof w.shrink<"u"&&(L.notched=w.shrink),L.label=k),G&&((!J||!J.native)&&(L.id=void 0),L["aria-describedby"]=void 0);const oe=ty(y),ue=v&&oe?`${oe}-helper-text`:void 0,se=k&&oe?`${oe}-label`:void 0,Ee=yAe[te],Re=C.jsx(Ee,F({"aria-describedby":ue,autoComplete:i,autoFocus:o,defaultValue:u,fullWidth:m,multiline:I,name:z,rows:q,maxRows:A,minRows:$,type:le,value:Q,id:oe,inputRef:S,onBlur:K,onChange:D,onFocus:W,placeholder:ie,inputProps:b},L,x));return C.jsxs(_Ae,F({className:Ye(j.root,s),disabled:f,error:d,fullWidth:m,ref:n,required:ae,color:l,variant:te,ownerState:me},P,{children:[k!=null&&k!==""&&C.jsx(TW,F({htmlFor:oe,id:se},w,{children:k})),G?C.jsx(MW,F({"aria-describedby":ue,id:oe,labelId:se,value:Q,input:Re},J,{children:a})):Re,v&&C.jsx(xW,F({id:ue},p,{children:v}))]}))}),Hw=xAe;var HA=function(e,t){return HA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},HA(e,t)};function wAe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");HA(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ur=function(){return Ur=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Ur.apply(this,arguments)};function SAe(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Sd(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(f){try{u(r.next(f))}catch(d){a(d)}}function l(f){try{u(r.throw(f))}catch(d){a(d)}}function u(f){f.done?o(f.value):i(f.value).then(s,l)}u((r=r.apply(e,t||[])).next())})}function Cd(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(f){return l([u,f])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(f){u=[6,f],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function ws(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}var Jd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function dO(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function pO(e,t){return e(t={exports:{}},t.exports),t.exports}var Oc=pO(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function r(){var i=this;this.locked=new Map,this.addToLocked=function(o,a){var s=i.locked.get(o);s===void 0?a===void 0?i.locked.set(o,[]):i.locked.set(o,[a]):a!==void 0&&(s.unshift(a),i.locked.set(o,s))},this.isLocked=function(o){return i.locked.has(o)},this.lock=function(o){return new Promise(function(a,s){i.isLocked(o)?i.addToLocked(o,a):(i.addToLocked(o),a())})},this.unlock=function(o){var a=i.locked.get(o);if(a!==void 0&&a.length!==0){var s=a.pop();i.locked.set(o,a),s!==void 0&&setTimeout(s,0)}else i.locked.delete(o)}}return r.getInstance=function(){return r.instance===void 0&&(r.instance=new r),r.instance},r}();t.default=function(){return n.getInstance()}});dO(Oc);var CAe=dO(pO(function(e,t){var n=Jd&&Jd.__awaiter||function(l,u,f,d){return new(f||(f=Promise))(function(p,m){function v(b){try{w(d.next(b))}catch(x){m(x)}}function y(b){try{w(d.throw(b))}catch(x){m(x)}}function w(b){b.done?p(b.value):new f(function(x){x(b.value)}).then(v,y)}w((d=d.apply(l,u||[])).next())})},r=Jd&&Jd.__generator||function(l,u){var f,d,p,m,v={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return m={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function y(w){return function(b){return function(x){if(f)throw new TypeError("Generator is already executing.");for(;v;)try{if(f=1,d&&(p=2&x[0]?d.return:x[0]?d.throw||((p=d.return)&&p.call(d),0):d.next)&&!(p=p.call(d,x[1])).done)return p;switch(d=0,p&&(x=[2&x[0],p.value]),x[0]){case 0:case 1:p=x;break;case 4:return v.label++,{value:x[1],done:!1};case 5:v.label++,d=x[1],x=[0];continue;case 7:x=v.ops.pop(),v.trys.pop();continue;default:if(p=v.trys,!((p=p.length>0&&p[p.length-1])||x[0]!==6&&x[0]!==2)){v=0;continue}if(x[0]===3&&(!p||x[1]>p[0]&&x[1]<p[3])){v.label=x[1];break}if(x[0]===6&&v.label<p[1]){v.label=p[1],p=x;break}if(p&&v.label<p[2]){v.label=p[2],v.ops.push(x);break}p[2]&&v.ops.pop(),v.trys.pop();continue}x=u.call(l,v)}catch(S){x=[6,S],d=0}finally{f=p=0}if(5&x[0])throw x[1];return{value:x[0]?x[1]:void 0,done:!0}}([w,b])}}};Object.defineProperty(t,"__esModule",{value:!0});var i="browser-tabs-lock-key";function o(l){return new Promise(function(u){return setTimeout(u,l)})}function a(l){for(var u="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",f="",d=0;d<l;d++)f+=u[Math.floor(Math.random()*u.length)];return f}var s=function(){function l(){this.acquiredIatSet=new Set,this.id=Date.now().toString()+a(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),l.waiters===void 0&&(l.waiters=[])}return l.prototype.acquireLock=function(u,f){return f===void 0&&(f=5e3),n(this,void 0,void 0,function(){var d,p,m,v,y,w;return r(this,function(b){switch(b.label){case 0:d=Date.now()+a(4),p=Date.now()+f,m=i+"-"+u,v=window.localStorage,b.label=1;case 1:return Date.now()<p?[4,o(30)]:[3,8];case 2:return b.sent(),v.getItem(m)!==null?[3,5]:(y=this.id+"-"+u+"-"+d,[4,o(Math.floor(25*Math.random()))]);case 3:return b.sent(),v.setItem(m,JSON.stringify({id:this.id,iat:d,timeoutKey:y,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,o(30)];case 4:return b.sent(),(w=v.getItem(m))!==null&&(w=JSON.parse(w)).id===this.id&&w.iat===d?(this.acquiredIatSet.add(d),this.refreshLockWhileAcquired(m,d),[2,!0]):[3,7];case 5:return l.lockCorrector(),[4,this.waitForSomethingToChange(p)];case 6:b.sent(),b.label=7;case 7:return d=Date.now()+a(4),[3,1];case 8:return[2,!1]}})})},l.prototype.refreshLockWhileAcquired=function(u,f){return n(this,void 0,void 0,function(){var d=this;return r(this,function(p){return setTimeout(function(){return n(d,void 0,void 0,function(){var m,v;return r(this,function(y){switch(y.label){case 0:return[4,Oc.default().lock(f)];case 1:return y.sent(),this.acquiredIatSet.has(f)?(m=window.localStorage,(v=m.getItem(u))===null?(Oc.default().unlock(f),[2]):((v=JSON.parse(v)).timeRefreshed=Date.now(),m.setItem(u,JSON.stringify(v)),Oc.default().unlock(f),this.refreshLockWhileAcquired(u,f),[2])):(Oc.default().unlock(f),[2])}})})},1e3),[2]})})},l.prototype.waitForSomethingToChange=function(u){return n(this,void 0,void 0,function(){return r(this,function(f){switch(f.label){case 0:return[4,new Promise(function(d){var p=!1,m=Date.now(),v=!1;function y(){if(v||(window.removeEventListener("storage",y),l.removeFromWaiting(y),clearTimeout(w),v=!0),!p){p=!0;var b=50-(Date.now()-m);b>0?setTimeout(d,b):d()}}window.addEventListener("storage",y),l.addToWaiting(y);var w=setTimeout(y,Math.max(0,u-Date.now()))})];case 1:return f.sent(),[2]}})})},l.addToWaiting=function(u){this.removeFromWaiting(u),l.waiters!==void 0&&l.waiters.push(u)},l.removeFromWaiting=function(u){l.waiters!==void 0&&(l.waiters=l.waiters.filter(function(f){return f!==u}))},l.notifyWaiters=function(){l.waiters!==void 0&&l.waiters.slice().forEach(function(u){return u()})},l.prototype.releaseLock=function(u){return n(this,void 0,void 0,function(){return r(this,function(f){switch(f.label){case 0:return[4,this.releaseLock__private__(u)];case 1:return[2,f.sent()]}})})},l.prototype.releaseLock__private__=function(u){return n(this,void 0,void 0,function(){var f,d,p;return r(this,function(m){switch(m.label){case 0:return f=window.localStorage,d=i+"-"+u,(p=f.getItem(d))===null?[2]:(p=JSON.parse(p)).id!==this.id?[3,2]:[4,Oc.default().lock(p.iat)];case 1:m.sent(),this.acquiredIatSet.delete(p.iat),f.removeItem(d),Oc.default().unlock(p.iat),l.notifyWaiters(),m.label=2;case 2:return[2]}})})},l.lockCorrector=function(){for(var u=Date.now()-5e3,f=window.localStorage,d=Object.keys(f),p=!1,m=0;m<d.length;m++){var v=d[m];if(v.includes(i)){var y=f.getItem(v);y!==null&&((y=JSON.parse(y)).timeRefreshed===void 0&&y.timeAcquired<u||y.timeRefreshed!==void 0&&y.timeRefreshed<u)&&(f.removeItem(v),p=!0)}}p&&l.notifyWaiters()},l.waiters=void 0,l}();t.default=s}));const EAe={timeoutInSeconds:60},FW={name:"auth0-spa-js",version:"2.0.4"},NW=()=>Date.now();class la extends Error{constructor(t,n){super(n),this.error=t,this.error_description=n,Object.setPrototypeOf(this,la.prototype)}static fromPayload({error:t,error_description:n}){return new la(t,n)}}class hO extends la{constructor(t,n,r,i=null){super(t,n),this.state=r,this.appState=i,Object.setPrototypeOf(this,hO.prototype)}}class Av extends la{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,Av.prototype)}}class gO extends Av{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,gO.prototype)}}class mO extends la{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,mO.prototype)}}let kAe=class BW extends la{constructor(t,n,r){super(t,n),this.mfa_token=r,Object.setPrototypeOf(this,BW.prototype)}};class qw extends la{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${bB(t,["default"])}', scope: '${bB(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,qw.prototype)}}function bB(e,t=[]){return e&&!t.includes(e)?e:""}const Rb=()=>window.crypto,ek=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(Rb().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},_B=e=>btoa(e),qA=e=>{var{clientId:t}=e,n=ws(e,["clientId"]);return new URLSearchParams((r=>Object.keys(r).filter(i=>r[i]!==void 0).reduce((i,o)=>Object.assign(Object.assign({},i),{[o]:r[o]}),{}))(Object.assign({client_id:t},n))).toString()},xB=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),TAe=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},AAe=async(e,t,n)=>{const r=new AbortController;let i;return t.signal=r.signal,Promise.race([TAe(e,t),new Promise((o,a)=>{i=setTimeout(()=>{r.abort(),a(new Error("Timeout when executing 'fetch'"))},n)})]).finally(()=>{clearTimeout(i)})},$Ae=async(e,t,n,r,i,o,a)=>{return s={auth:{audience:t,scope:n},timeout:i,fetchUrl:e,fetchOptions:r,useFormData:a},l=o,new Promise(function(u,f){const d=new MessageChannel;d.port1.onmessage=function(p){p.data.error?f(new Error(p.data.error)):u(p.data),d.port1.close()},l.postMessage(s,[d.port2])});var s,l},RAe=async(e,t,n,r,i,o,a=1e4)=>i?$Ae(e,t,n,r,a,i,o):AAe(e,r,a);async function OAe(e,t){var{baseUrl:n,timeout:r,audience:i,scope:o,auth0Client:a,useFormData:s}=e,l=ws(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const u=s?qA(l):JSON.stringify(l);return await async function(f,d,p,m,v,y,w){let b,x=null;for(let z=0;z<3;z++)try{b=await RAe(f,p,m,v,y,w,d),x=null;break}catch(K){x=K}if(x)throw x;const S=b.json,{error:k,error_description:A}=S,$=ws(S,["error","error_description"]),{ok:I}=b;if(!I){const z=A||`HTTP error. Unable to fetch ${f}`;throw k==="mfa_required"?new kAe(k,z,$.mfa_token):k==="missing_refresh_token"?new qw(p,m):new la(k||"request_error",z)}return $}(`${n}/oauth/token`,r,i||"default",o,{method:"POST",body:u,headers:{"Content-Type":s?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(a||FW))}},t,s)}const $1=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};class As{constructor(t,n="@@auth0spajs@@",r){this.prefix=n,this.suffix=r,this.clientId=t.clientId,this.scope=t.scope,this.audience=t.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(t){const[n,r,i,o]=t.split("::");return new As({clientId:r,scope:o,audience:i},n)}static fromCacheEntry(t){const{scope:n,audience:r,client_id:i}=t;return new As({scope:n,audience:r,clientId:i})}}class IAe{set(t,n){localStorage.setItem(t,JSON.stringify(n))}get(t){const n=window.localStorage.getItem(t);if(n)try{return JSON.parse(n)}catch{return}}remove(t){localStorage.removeItem(t)}allKeys(){return Object.keys(window.localStorage).filter(t=>t.startsWith("@@auth0spajs@@"))}}class jW{constructor(){this.enclosedCache=function(){let t={};return{set(n,r){t[n]=r},get(n){const r=t[n];if(r)return r},remove(n){delete t[n]},allKeys:()=>Object.keys(t)}}()}}class DAe{constructor(t,n,r){this.cache=t,this.keyManifest=n,this.nowProvider=r||NW}async setIdToken(t,n,r){var i;const o=this.getIdTokenCacheKey(t);await this.cache.set(o,{id_token:n,decodedToken:r}),await((i=this.keyManifest)===null||i===void 0?void 0:i.add(o))}async getIdToken(t){const n=await this.cache.get(this.getIdTokenCacheKey(t.clientId));if(!n&&t.scope&&t.audience){const r=await this.get(t);return!r||!r.id_token||!r.decodedToken?void 0:{id_token:r.id_token,decodedToken:r.decodedToken}}if(n)return{id_token:n.id_token,decodedToken:n.decodedToken}}async get(t,n=0){var r;let i=await this.cache.get(t.toKey());if(!i){const s=await this.getCacheKeys();if(!s)return;const l=this.matchExistingCacheKey(t,s);l&&(i=await this.cache.get(l))}if(!i)return;const o=await this.nowProvider(),a=Math.floor(o/1e3);return i.expiresAt-n<a?i.body.refresh_token?(i.body={refresh_token:i.body.refresh_token},await this.cache.set(t.toKey(),i),i.body):(await this.cache.remove(t.toKey()),void await((r=this.keyManifest)===null||r===void 0?void 0:r.remove(t.toKey()))):i.body}async set(t){var n;const r=new As({clientId:t.client_id,scope:t.scope,audience:t.audience}),i=await this.wrapCacheEntry(t);await this.cache.set(r.toKey(),i),await((n=this.keyManifest)===null||n===void 0?void 0:n.add(r.toKey()))}async clear(t){var n;const r=await this.getCacheKeys();r&&(await r.filter(i=>!t||i.includes(t)).reduce(async(i,o)=>{await i,await this.cache.remove(o)},Promise.resolve()),await((n=this.keyManifest)===null||n===void 0?void 0:n.clear()))}async wrapCacheEntry(t){const n=await this.nowProvider();return{body:t,expiresAt:Math.floor(n/1e3)+t.expires_in}}async getCacheKeys(){var t;return this.keyManifest?(t=await this.keyManifest.get())===null||t===void 0?void 0:t.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(t){return new As({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(r=>{var i;const o=As.fromKey(r),a=new Set(o.scope&&o.scope.split(" ")),s=((i=t.scope)===null||i===void 0?void 0:i.split(" "))||[],l=o.scope&&s.reduce((u,f)=>u&&a.has(f),!0);return o.prefix==="@@auth0spajs@@"&&o.clientId===t.clientId&&o.audience===t.audience&&l})[0]}}class PAe{constructor(t,n){this.storage=t,this.clientId=n,this.storageKey=`a0.spajs.txs.${this.clientId}`,this.transaction=this.storage.get(this.storageKey)}create(t){this.transaction=t,this.storage.save(this.storageKey,t,{daysUntilExpire:1})}get(){return this.transaction}remove(){delete this.transaction,this.storage.remove(this.storageKey)}}const Yg=e=>typeof e=="number",LAe=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"],MAe=e=>{if(!e.id_token)throw new Error("ID token is required but missing");const t=(o=>{const a=o.split("."),[s,l,u]=a;if(a.length!==3||!s||!l||!u)throw new Error("ID token could not be decoded");const f=JSON.parse(xB(l)),d={__raw:o},p={};return Object.keys(f).forEach(m=>{d[m]=f[m],LAe.includes(m)||(p[m]=f[m])}),{encoded:{header:s,payload:l,signature:u},header:JSON.parse(xB(s)),claims:d,user:p}})(e.id_token);if(!t.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(t.claims.iss!==e.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${e.iss}", found "${t.claims.iss}"`);if(!t.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(t.header.alg!=="RS256")throw new Error(`Signature algorithm of "${t.header.alg}" is not supported. Expected the ID token to be signed with "RS256".`);if(!t.claims.aud||typeof t.claims.aud!="string"&&!Array.isArray(t.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(t.claims.aud)){if(!t.claims.aud.includes(e.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${e.aud}" but was not one of "${t.claims.aud.join(", ")}"`);if(t.claims.aud.length>1){if(!t.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(t.claims.azp!==e.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${e.aud}", found "${t.claims.azp}"`)}}else if(t.claims.aud!==e.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${e.aud}" but found "${t.claims.aud}"`);if(e.nonce){if(!t.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(t.claims.nonce!==e.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${e.nonce}", found "${t.claims.nonce}"`)}if(e.max_age&&!Yg(t.claims.auth_time))throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(t.claims.exp==null||!Yg(t.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!Yg(t.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const n=e.leeway||60,r=new Date(e.now||Date.now()),i=new Date(0);if(i.setUTCSeconds(t.claims.exp+n),r>i)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${r}) is after expiration time (${i})`);if(t.claims.nbf!=null&&Yg(t.claims.nbf)){const o=new Date(0);if(o.setUTCSeconds(t.claims.nbf-n),r<o)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${r}) is before ${o}`)}if(t.claims.auth_time!=null&&Yg(t.claims.auth_time)){const o=new Date(0);if(o.setUTCSeconds(parseInt(t.claims.auth_time)+e.max_age+n),r>o)throw new Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${r}) is after last auth at ${o}`)}if(e.organizationId){if(!t.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(e.organizationId!==t.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${e.organizationId}", found "${t.claims.org_id}"`)}return t};var Hc=pO(function(e,t){var n=Jd&&Jd.__assign||function(){return n=Object.assign||function(l){for(var u,f=1,d=arguments.length;f<d;f++)for(var p in u=arguments[f])Object.prototype.hasOwnProperty.call(u,p)&&(l[p]=u[p]);return l},n.apply(this,arguments)};function r(l,u){if(!u)return"";var f="; "+l;return u===!0?f:f+"="+u}function i(l,u,f){return encodeURIComponent(l).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(u).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(d){if(typeof d.expires=="number"){var p=new Date;p.setMilliseconds(p.getMilliseconds()+864e5*d.expires),d.expires=p}return r("Expires",d.expires?d.expires.toUTCString():"")+r("Domain",d.domain)+r("Path",d.path)+r("Secure",d.secure)+r("SameSite",d.sameSite)}(f)}function o(l){for(var u={},f=l?l.split("; "):[],d=/(%[\dA-F]{2})+/gi,p=0;p<f.length;p++){var m=f[p].split("="),v=m.slice(1).join("=");v.charAt(0)==='"'&&(v=v.slice(1,-1));try{u[m[0].replace(d,decodeURIComponent)]=v.replace(d,decodeURIComponent)}catch{}}return u}function a(){return o(document.cookie)}function s(l,u,f){document.cookie=i(l,u,n({path:"/"},f))}t.__esModule=!0,t.encode=i,t.parse=o,t.getAll=a,t.get=function(l){return a()[l]},t.set=s,t.remove=function(l,u){s(l,"",n(n({},u),{expires:-1}))}});dO(Hc),Hc.encode,Hc.parse,Hc.getAll;var FAe=Hc.get,zW=Hc.set,UW=Hc.remove;const Ld={get(e){const t=FAe(e);if(t!==void 0)return JSON.parse(t)},save(e,t,n){let r={};window.location.protocol==="https:"&&(r={secure:!0,sameSite:"none"}),n!=null&&n.daysUntilExpire&&(r.expires=n.daysUntilExpire),n!=null&&n.cookieDomain&&(r.domain=n.cookieDomain),zW(e,JSON.stringify(t),r)},remove(e,t){let n={};t!=null&&t.cookieDomain&&(n.domain=t.cookieDomain),UW(e,n)}},NAe={get(e){return Ld.get(e)||Ld.get(`_legacy_${e}`)},save(e,t,n){let r={};window.location.protocol==="https:"&&(r={secure:!0}),n!=null&&n.daysUntilExpire&&(r.expires=n.daysUntilExpire),n!=null&&n.cookieDomain&&(r.domain=n.cookieDomain),zW(`_legacy_${e}`,JSON.stringify(t),r),Ld.save(e,t,n)},remove(e,t){let n={};t!=null&&t.cookieDomain&&(n.domain=t.cookieDomain),UW(e,n),Ld.remove(e,t),Ld.remove(`_legacy_${e}`,t)}},BAe={get(e){if(typeof sessionStorage>"u")return;const t=sessionStorage.getItem(e);return t!=null?JSON.parse(t):void 0},save(e,t){sessionStorage.setItem(e,JSON.stringify(t))},remove(e){sessionStorage.removeItem(e)}};function jAe(e,t,n){var r=t===void 0?null:t,i=function(l,u){var f=atob(l);if(u){for(var d=new Uint8Array(f.length),p=0,m=f.length;p<m;++p)d[p]=f.charCodeAt(p);return String.fromCharCode.apply(null,new Uint16Array(d.buffer))}return f}(e,n!==void 0&&n),o=i.indexOf(`
|
|
368
|
-
`,10)+1,a=i.substring(o)+(r?"//# sourceMappingURL="+r:""),s=new Blob([a],{type:"application/javascript"});return URL.createObjectURL(s)}var wB,SB,CB,tk,zAe=(wB="Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9Y29uc3Qgcz1lPT57dmFye2NsaWVudElkOnR9PWUscj1mdW5jdGlvbihlLHQpe3ZhciByPXt9O2Zvcih2YXIgcyBpbiBlKU9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChlLHMpJiZ0LmluZGV4T2Yocyk8MCYmKHJbc109ZVtzXSk7aWYobnVsbCE9ZSYmImZ1bmN0aW9uIj09dHlwZW9mIE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpe3ZhciBvPTA7Zm9yKHM9T2JqZWN0LmdldE93blByb3BlcnR5U3ltYm9scyhlKTtvPHMubGVuZ3RoO28rKyl0LmluZGV4T2Yoc1tvXSk8MCYmT2JqZWN0LnByb3RvdHlwZS5wcm9wZXJ0eUlzRW51bWVyYWJsZS5jYWxsKGUsc1tvXSkmJihyW3Nbb11dPWVbc1tvXV0pfXJldHVybiByfShlLFsiY2xpZW50SWQiXSk7cmV0dXJuIG5ldyBVUkxTZWFyY2hQYXJhbXMoKGU9Pk9iamVjdC5rZXlzKGUpLmZpbHRlcigodD0+dm9pZCAwIT09ZVt0XSkpLnJlZHVjZSgoKHQscik9Pk9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSx0KSx7W3JdOmVbcl19KSkse30pKShPYmplY3QuYXNzaWduKHtjbGllbnRfaWQ6dH0scikpKS50b1N0cmluZygpfTtsZXQgbz17fTtjb25zdCBuPShlLHQpPT5gJHtlfXwke3R9YDthZGRFdmVudExpc3RlbmVyKCJtZXNzYWdlIiwoYXN5bmMoe2RhdGE6e3RpbWVvdXQ6ZSxhdXRoOnIsZmV0Y2hVcmw6aSxmZXRjaE9wdGlvbnM6Yyx1c2VGb3JtRGF0YTphfSxwb3J0czpbZl19KT0+e2xldCBwO2NvbnN0e2F1ZGllbmNlOmwsc2NvcGU6dX09cnx8e307dHJ5e2NvbnN0IHI9YT8oZT0+e2NvbnN0IHQ9bmV3IFVSTFNlYXJjaFBhcmFtcyhlKSxyPXt9O3JldHVybiB0LmZvckVhY2goKChlLHQpPT57clt0XT1lfSkpLHJ9KShjLmJvZHkpOkpTT04ucGFyc2UoYy5ib2R5KTtpZighci5yZWZyZXNoX3Rva2VuJiYicmVmcmVzaF90b2tlbiI9PT1yLmdyYW50X3R5cGUpe2NvbnN0IGU9KChlLHQpPT5vW24oZSx0KV0pKGwsdSk7aWYoIWUpdGhyb3cgbmV3IHQobCx1KTtjLmJvZHk9YT9zKE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpOkpTT04uc3RyaW5naWZ5KE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpfWxldCBkLGc7ImZ1bmN0aW9uIj09dHlwZW9mIEFib3J0Q29udHJvbGxlciYmKGQ9bmV3IEFib3J0Q29udHJvbGxlcixjLnNpZ25hbD1kLnNpZ25hbCk7dHJ5e2c9YXdhaXQgUHJvbWlzZS5yYWNlKFsoaD1lLG5ldyBQcm9taXNlKChlPT5zZXRUaW1lb3V0KGUsaCkpKSksZmV0Y2goaSxPYmplY3QuYXNzaWduKHt9LGMpKV0pfWNhdGNoKGUpe3JldHVybiB2b2lkIGYucG9zdE1lc3NhZ2Uoe2Vycm9yOmUubWVzc2FnZX0pfWlmKCFnKXJldHVybiBkJiZkLmFib3J0KCksdm9pZCBmLnBvc3RNZXNzYWdlKHtlcnJvcjoiVGltZW91dCB3aGVuIGV4ZWN1dGluZyAnZmV0Y2gnIn0pO3A9YXdhaXQgZy5qc29uKCkscC5yZWZyZXNoX3Rva2VuPygoKGUsdCxyKT0+e29bbih0LHIpXT1lfSkocC5yZWZyZXNoX3Rva2VuLGwsdSksZGVsZXRlIHAucmVmcmVzaF90b2tlbik6KChlLHQpPT57ZGVsZXRlIG9bbihlLHQpXX0pKGwsdSksZi5wb3N0TWVzc2FnZSh7b2s6Zy5vayxqc29uOnB9KX1jYXRjaChlKXtmLnBvc3RNZXNzYWdlKHtvazohMSxqc29uOntlcnJvcjplLmVycm9yLGVycm9yX2Rlc2NyaXB0aW9uOmUubWVzc2FnZX19KX12YXIgaH0pKX0oKTsKCg==",SB=null,CB=!1,function(e){return tk=tk||jAe(wB,SB,CB),new Worker(tk,e)});const nk={};class UAe{constructor(t,n){this.cache=t,this.clientId=n,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(t){var n;const r=new Set(((n=await this.cache.get(this.manifestKey))===null||n===void 0?void 0:n.keys)||[]);r.add(t),await this.cache.set(this.manifestKey,{keys:[...r]})}async remove(t){const n=await this.cache.get(this.manifestKey);if(n){const r=new Set(n.keys);return r.delete(t),r.size>0?await this.cache.set(this.manifestKey,{keys:[...r]}):await this.cache.remove(this.manifestKey)}}get(){return this.cache.get(this.manifestKey)}clear(){return this.cache.remove(this.manifestKey)}createManifestKeyFrom(t){return`@@auth0spajs@@::${t}`}}const KAe={memory:()=>new jW().enclosedCache,localstorage:()=>new IAe},EB=e=>KAe[e],kB=e=>{const{openUrl:t,onRedirect:n}=e,r=ws(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},r),{openUrl:t===!1||t?t:n})},rk=new CAe;class WAe{constructor(t){let n,r;if(this.userCache=new jW().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await rk.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)},this.options=Object.assign(Object.assign(Object.assign({},this.defaultOptions),t),{authorizationParams:Object.assign(Object.assign({},this.defaultOptions.authorizationParams),t.authorizationParams)}),typeof window<"u"&&(()=>{if(!Rb())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(Rb().subtle===void 0)throw new Error(`
|
|
369
|
-
auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/master/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.
|
|
370
|
-
`)})(),t.cache&&t.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),t.cache)r=t.cache;else{if(n=t.cacheLocation||"memory",!EB(n))throw new Error(`Invalid cache location "${n}"`);r=EB(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?Ld:NAe,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(a=>`auth0.${a}.is.authenticated`)(this.options.clientId),this.sessionCheckExpiryDays=t.sessionCheckExpiryDays||1;const i=t.useCookiesForTransactions?this.cookieStorage:BAe;var o;this.scope=$1("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new PAe(i,this.options.clientId),this.nowProvider=this.options.nowProvider||NW,this.cacheManager=new DAe(r,r.allKeys?void 0:new UAe(r,this.options.clientId),this.nowProvider),this.domainUrl=(o=this.options.domain,/^https?:\/\//.test(o)?o:`https://${o}`),this.tokenIssuer=((a,s)=>a?a.startsWith("https://")?a:`https://${a}/`:`${s}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&n==="memory"&&(this.worker=new zAe)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||FW)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${qA(t)}`)}async _verifyIdToken(t,n,r){const i=await this.nowProvider();return MAe({iss:this.tokenIssuer,aud:this.options.clientId,id_token:t,nonce:n,organizationId:r,leeway:this.options.leeway,max_age:(o=this.options.authorizationParams.max_age,typeof o!="string"?o:parseInt(o,10)||void 0),now:i});var o}_processOrgIdHint(t){t?this.cookieStorage.save(this.orgHintCookieName,t,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(t,n,r){const i=_B(ek()),o=_B(ek()),a=ek(),s=(f=>{const d=new Uint8Array(f);return(p=>{const m={"+":"-","/":"_","=":""};return p.replace(/[+/=]/g,v=>m[v])})(window.btoa(String.fromCharCode(...Array.from(d))))})(await(async f=>await Rb().subtle.digest({name:"SHA-256"},new TextEncoder().encode(f)))(a)),l=((f,d,p,m,v,y,w,b)=>Object.assign(Object.assign(Object.assign({client_id:f.clientId},f.authorizationParams),p),{scope:$1(d,p.scope),response_type:"code",response_mode:b||"query",state:m,nonce:v,redirect_uri:w||f.authorizationParams.redirect_uri,code_challenge:y,code_challenge_method:"S256"}))(this.options,this.scope,t,i,o,s,t.redirect_uri||this.options.authorizationParams.redirect_uri||r,n==null?void 0:n.response_mode),u=this._authorizeUrl(l);return{nonce:o,code_verifier:a,scope:l.scope,audience:l.audience||"default",redirect_uri:l.redirect_uri,state:i,url:u}}async loginWithPopup(t,n){var r;if(t=t||{},!(n=n||{}).popup&&(n.popup=(s=>{const l=window.screenX+(window.innerWidth-400)/2,u=window.screenY+(window.innerHeight-600)/2;return window.open(s,"auth0:authorize:popup",`left=${l},top=${u},width=400,height=600,resizable,scrollbars=yes,status=1`)})(""),!n.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const i=await this._prepareAuthorizeUrl(t.authorizationParams||{},{response_mode:"web_message"},window.location.origin);n.popup.location.href=i.url;const o=await(s=>new Promise((l,u)=>{let f;const d=setInterval(()=>{s.popup&&s.popup.closed&&(clearInterval(d),clearTimeout(p),window.removeEventListener("message",f,!1),u(new mO(s.popup)))},1e3),p=setTimeout(()=>{clearInterval(d),u(new gO(s.popup)),window.removeEventListener("message",f,!1)},1e3*(s.timeoutInSeconds||60));f=function(m){if(m.data&&m.data.type==="authorization_response"){if(clearTimeout(p),clearInterval(d),window.removeEventListener("message",f,!1),s.popup.close(),m.data.response.error)return u(la.fromPayload(m.data.response));l(m.data.response)}},window.addEventListener("message",f)}))(Object.assign(Object.assign({},n),{timeoutInSeconds:n.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(i.state!==o.state)throw new Error("Invalid state");const a=((r=t.authorizationParams)===null||r===void 0?void 0:r.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:i.audience,scope:i.scope,code_verifier:i.code_verifier,grant_type:"authorization_code",code:o.code,redirect_uri:i.redirect_uri},{nonceIn:i.nonce,organizationId:a})}async getUser(){var t;const n=await this._getIdTokenFromCache();return(t=n==null?void 0:n.decodedToken)===null||t===void 0?void 0:t.user}async getIdTokenClaims(){var t;const n=await this._getIdTokenFromCache();return(t=n==null?void 0:n.decodedToken)===null||t===void 0?void 0:t.claims}async loginWithRedirect(t={}){var n;const r=kB(t),{openUrl:i,fragment:o,appState:a}=r,s=ws(r,["openUrl","fragment","appState"]),l=((n=s.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization,u=await this._prepareAuthorizeUrl(s.authorizationParams||{}),{url:f}=u,d=ws(u,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},d),{appState:a}),l&&{organizationId:l}));const p=o?`${f}#${o}`:f;i?await i(p):window.location.assign(p)}async handleRedirectCallback(t=window.location.href){const n=t.split("?").slice(1);if(n.length===0)throw new Error("There are no query params available for parsing.");const{state:r,code:i,error:o,error_description:a}=(d=>{d.indexOf("#")>-1&&(d=d.substring(0,d.indexOf("#")));const p=new URLSearchParams(d);return{state:p.get("state"),code:p.get("code")||void 0,error:p.get("error")||void 0,error_description:p.get("error_description")||void 0}})(n.join("")),s=this.transactionManager.get();if(!s)throw new Error("Invalid state");if(this.transactionManager.remove(),o)throw new hO(o,a||o,r,s.appState);if(!s.code_verifier||s.state&&s.state!==r)throw new Error("Invalid state");const l=s.organizationId,u=s.nonce,f=s.redirect_uri;return await this._requestToken(Object.assign({audience:s.audience,scope:s.scope,code_verifier:s.code_verifier,grant_type:"authorization_code",code:i},f?{redirect_uri:f}:{}),{nonceIn:u,organizationId:l}),{appState:s.appState}}async checkSession(t){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}try{await this.getTokenSilently(t)}catch{}}async getTokenSilently(t={}){var n;const r=Object.assign(Object.assign({cacheMode:"on"},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:$1(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),i=await((o,a)=>{let s=nk[a];return s||(s=o().finally(()=>{delete nk[a],s=null}),nk[a]=s),s})(()=>this._getTokenSilently(r),`${this.options.clientId}::${r.authorizationParams.audience}::${r.authorizationParams.scope}`);return t.detailedResponse?i:i==null?void 0:i.access_token}async _getTokenSilently(t){const{cacheMode:n}=t,r=ws(t,["cacheMode"]);if(n!=="off"){const i=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(i)return i}if(n!=="cache-only"){if(!await(async(i,o=3)=>{for(let a=0;a<o;a++)if(await i())return!0;return!1})(()=>rk.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new Av;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),n!=="off"){const u=await this._getEntryFromCache({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId});if(u)return u}const i=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(r):await this._getTokenFromIFrame(r),{id_token:o,access_token:a,oauthTokenScope:s,expires_in:l}=i;return Object.assign(Object.assign({id_token:o,access_token:a},s?{scope:s}:null),{expires_in:l})}finally{await rk.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(t={},n={}){var r;const i=Object.assign(Object.assign({},t),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),t.authorizationParams),{scope:$1(this.scope,(r=t.authorizationParams)===null||r===void 0?void 0:r.scope)})});return n=Object.assign(Object.assign({},EAe),n),await this.loginWithPopup(i,n),(await this.cacheManager.get(new As({scope:i.authorizationParams.scope,audience:i.authorizationParams.audience||"default",clientId:this.options.clientId}))).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(t){t.clientId!==null?t.clientId=t.clientId||this.options.clientId:delete t.clientId;const n=t.logoutParams||{},{federated:r}=n,i=ws(n,["federated"]),o=r?"&federated":"";return this._url(`/v2/logout?${qA(Object.assign({clientId:t.clientId},i))}`)+o}async logout(t={}){const n=kB(t),{openUrl:r}=n,i=ws(n,["openUrl"]);t.clientId===null?await this.cacheManager.clear():await this.cacheManager.clear(t.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const o=this._buildLogoutUrl(i);r?await r(o):r!==!1&&window.location.assign(o)}async _getTokenFromIFrame(t){const n=Object.assign(Object.assign({},t.authorizationParams),{prompt:"none"}),r=this.cookieStorage.get(this.orgHintCookieName);r&&!n.organization&&(n.organization=r);const{url:i,state:o,nonce:a,code_verifier:s,redirect_uri:l,scope:u,audience:f}=await this._prepareAuthorizeUrl(n,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new la("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const d=t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,p=await((v,y,w=60)=>new Promise((b,x)=>{const S=window.document.createElement("iframe");S.setAttribute("width","0"),S.setAttribute("height","0"),S.style.display="none";const k=()=>{window.document.body.contains(S)&&(window.document.body.removeChild(S),window.removeEventListener("message",A,!1))};let A;const $=setTimeout(()=>{x(new Av),k()},1e3*w);A=function(I){if(I.origin!=y||!I.data||I.data.type!=="authorization_response")return;const z=I.source;z&&z.close(),I.data.response.error?x(la.fromPayload(I.data.response)):b(I.data.response),clearTimeout($),window.removeEventListener("message",A,!1),setTimeout(k,2e3)},window.addEventListener("message",A,!1),window.document.body.appendChild(S),S.setAttribute("src",v)}))(i,this.domainUrl,d);if(o!==p.state)throw new Error("Invalid state");const m=await this._requestToken(Object.assign(Object.assign({},t.authorizationParams),{code_verifier:s,code:p.code,grant_type:"authorization_code",redirect_uri:l,timeout:t.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:a});return Object.assign(Object.assign({},m),{scope:u,oauthTokenScope:m.scope,audience:f})}catch(d){throw d.error==="login_required"&&this.logout({openUrl:!1}),d}}async _getTokenUsingRefreshToken(t){const n=await this.cacheManager.get(new As({scope:t.authorizationParams.scope,audience:t.authorizationParams.audience||"default",clientId:this.options.clientId}));if(!(n&&n.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw new qw(t.authorizationParams.audience||"default",t.authorizationParams.scope)}const r=t.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,i=typeof t.timeoutInSeconds=="number"?1e3*t.timeoutInSeconds:null;try{const o=await this._requestToken(Object.assign(Object.assign(Object.assign({},t.authorizationParams),{grant_type:"refresh_token",refresh_token:n&&n.refresh_token,redirect_uri:r}),i&&{timeout:i}));return Object.assign(Object.assign({},o),{scope:t.authorizationParams.scope,oauthTokenScope:o.scope,audience:t.authorizationParams.audience||"default"})}catch(o){if((o.message.indexOf("Missing Refresh Token")>-1||o.message&&o.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(t);throw o}}async _saveEntryInCache(t){const{id_token:n,decodedToken:r}=t,i=ws(t,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:n,decodedToken:r}),await this.cacheManager.setIdToken(this.options.clientId,t.id_token,t.decodedToken),await this.cacheManager.set(i)}async _getIdTokenFromCache(){const t=this.options.authorizationParams.audience||"default",n=await this.cacheManager.getIdToken(new As({clientId:this.options.clientId,audience:t,scope:this.scope})),r=this.userCache.get("@@user@@");return n&&n.id_token===(r==null?void 0:r.id_token)?r:(this.userCache.set("@@user@@",n),n)}async _getEntryFromCache({scope:t,audience:n,clientId:r}){const i=await this.cacheManager.get(new As({scope:t,audience:n,clientId:r}),60);if(i&&i.access_token){const{access_token:o,oauthTokenScope:a,expires_in:s}=i,l=await this._getIdTokenFromCache();return l&&Object.assign(Object.assign({id_token:l.id_token,access_token:o},a?{scope:a}:null),{expires_in:s})}}async _requestToken(t,n){const{nonceIn:r,organizationId:i}=n||{},o=await OAe(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},t),this.worker),a=await this._verifyIdToken(o.id_token,r,i);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},o),{decodedToken:a,scope:t.scope,audience:t.audience||"default"}),o.scope?{oauthTokenScope:o.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgIdHint(a.claims.org_id),Object.assign(Object.assign({},o),{decodedToken:a})}}var KW={isAuthenticated:!1,isLoading:!0},ll=function(){throw new Error("You forgot to wrap your component in <Auth0Provider>.")},VAe=Ur(Ur({},KW),{buildAuthorizeUrl:ll,buildLogoutUrl:ll,getAccessTokenSilently:ll,getAccessTokenWithPopup:ll,getIdTokenClaims:ll,loginWithRedirect:ll,loginWithPopup:ll,logout:ll,handleRedirectCallback:ll}),WW=T.createContext(VAe),HAe=function(e){wAe(t,e);function t(n,r){var i=e.call(this,r||n)||this;return i.error=n,i.error_description=r,Object.setPrototypeOf(i,t.prototype),i}return t}(Error),qAe=/[?&]code=[^&]+/,GAe=/[?&]state=[^&]+/,YAe=/[?&]error=[^&]+/,XAe=function(e){return e===void 0&&(e=window.location.search),(qAe.test(e)||YAe.test(e))&&GAe.test(e)},VW=function(e){return function(t){return"error"in t?new HAe(t.error,t.error_description):t instanceof Error?t:new Error(e)}},TB=VW("Login failed"),ik=VW("Get access token failed"),HW=function(e){var t;e!=null&&e.redirectUri&&(console.warn("Using `redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `redirectUri` will be no longer supported in a future version"),e.authorizationParams=e.authorizationParams||{},e.authorizationParams.redirect_uri=e.redirectUri,delete e.redirectUri),!((t=e==null?void 0:e.authorizationParams)===null||t===void 0)&&t.redirectUri&&(console.warn("Using `authorizationParams.redirectUri` has been deprecated, please use `authorizationParams.redirect_uri` instead as `authorizationParams.redirectUri` will be removed in a future version"),e.authorizationParams.redirect_uri=e.authorizationParams.redirectUri,delete e.authorizationParams.redirectUri)},ZAe=function(e,t){switch(t.type){case"LOGIN_POPUP_STARTED":return Ur(Ur({},e),{isLoading:!0});case"LOGIN_POPUP_COMPLETE":case"INITIALISED":return Ur(Ur({},e),{isAuthenticated:!!t.user,user:t.user,isLoading:!1,error:void 0});case"HANDLE_REDIRECT_COMPLETE":case"GET_ACCESS_TOKEN_COMPLETE":return e.user===t.user?e:Ur(Ur({},e),{isAuthenticated:!!t.user,user:t.user});case"LOGOUT":return Ur(Ur({},e),{isAuthenticated:!1,user:void 0});case"ERROR":return Ur(Ur({},e),{isLoading:!1,error:t.error})}},JAe=function(e){return HW(e),Ur(Ur({},e),{auth0Client:{name:"auth0-react",version:"2.0.1"}})},QAe=function(e){window.history.replaceState({},document.title,(e==null?void 0:e.returnTo)||window.location.pathname)},e$e=function(e){var t=e.children,n=e.skipRedirectCallback,r=e.onRedirectCallback,i=r===void 0?QAe:r,o=e.context,a=o===void 0?WW:o,s=SAe(e,["children","skipRedirectCallback","onRedirectCallback","context"]),l=T.useState(function(){return new WAe(JAe(s))})[0],u=T.useReducer(ZAe,KW),f=u[0],d=u[1],p=T.useRef(!1);T.useEffect(function(){p.current||(p.current=!0,function(){return Sd(void 0,void 0,void 0,function(){var A,$,I;return Cd(this,function(z){switch(z.label){case 0:return z.trys.push([0,7,,8]),A=void 0,XAe()&&!n?[4,l.handleRedirectCallback()]:[3,3];case 1:return $=z.sent().appState,[4,l.getUser()];case 2:return A=z.sent(),i($,A),[3,6];case 3:return[4,l.checkSession()];case 4:return z.sent(),[4,l.getUser()];case 5:A=z.sent(),z.label=6;case 6:return d({type:"INITIALISED",user:A}),[3,8];case 7:return I=z.sent(),d({type:"ERROR",error:TB(I)}),[3,8];case 8:return[2]}})})}())},[l,i,n]);var m=T.useCallback(function(A){return HW(A),l.loginWithRedirect(A)},[l]),v=T.useCallback(function(A,$){return Sd(void 0,void 0,void 0,function(){var I,z;return Cd(this,function(K){switch(K.label){case 0:d({type:"LOGIN_POPUP_STARTED"}),K.label=1;case 1:return K.trys.push([1,3,,4]),[4,l.loginWithPopup(A,$)];case 2:return K.sent(),[3,4];case 3:return I=K.sent(),d({type:"ERROR",error:TB(I)}),[2];case 4:return[4,l.getUser()];case 5:return z=K.sent(),d({type:"LOGIN_POPUP_COMPLETE",user:z}),[2]}})})},[l]),y=T.useCallback(function(A){return A===void 0&&(A={}),Sd(void 0,void 0,void 0,function(){return Cd(this,function($){switch($.label){case 0:return[4,l.logout(A)];case 1:return $.sent(),(A.openUrl||A.openUrl===!1)&&d({type:"LOGOUT"}),[2]}})})},[l]),w=T.useCallback(function(A){return Sd(void 0,void 0,void 0,function(){var $,I,z,K;return Cd(this,function(D){switch(D.label){case 0:return D.trys.push([0,2,3,5]),[4,l.getTokenSilently(A)];case 1:return $=D.sent(),[3,5];case 2:throw I=D.sent(),ik(I);case 3:return z=d,K={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,l.getUser()];case 4:return z.apply(void 0,[(K.user=D.sent(),K)]),[7];case 5:return[2,$]}})})},[l]),b=T.useCallback(function(A,$){return Sd(void 0,void 0,void 0,function(){var I,z,K,D;return Cd(this,function(W){switch(W.label){case 0:return W.trys.push([0,2,3,5]),[4,l.getTokenWithPopup(A,$)];case 1:return I=W.sent(),[3,5];case 2:throw z=W.sent(),ik(z);case 3:return K=d,D={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,l.getUser()];case 4:return K.apply(void 0,[(D.user=W.sent(),D)]),[7];case 5:return[2,I]}})})},[l]),x=T.useCallback(function(){return l.getIdTokenClaims()},[l]),S=T.useCallback(function(A){return Sd(void 0,void 0,void 0,function(){var $,I,z;return Cd(this,function(K){switch(K.label){case 0:return K.trys.push([0,2,3,5]),[4,l.handleRedirectCallback(A)];case 1:return[2,K.sent()];case 2:throw $=K.sent(),ik($);case 3:return I=d,z={type:"HANDLE_REDIRECT_COMPLETE"},[4,l.getUser()];case 4:return I.apply(void 0,[(z.user=K.sent(),z)]),[7];case 5:return[2]}})})},[l]),k=T.useMemo(function(){return Ur(Ur({},f),{getAccessTokenSilently:w,getAccessTokenWithPopup:b,getIdTokenClaims:x,loginWithRedirect:m,loginWithPopup:v,logout:y,handleRedirectCallback:S})},[f,w,b,x,m,v,y,S]);return ht.createElement(a.Provider,{value:k},t)},t$e=function(e){return e===void 0&&(e=WW),T.useContext(e)};const ya=Gn({key:"ProjectSettings",default:void 0});let R1;const n$e=new Uint8Array(16);function r$e(){if(!R1&&(R1=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!R1))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return R1(n$e)}const Zr=[];for(let e=0;e<256;++e)Zr.push((e+256).toString(16).slice(1));function i$e(e,t=0){return(Zr[e[t+0]]+Zr[e[t+1]]+Zr[e[t+2]]+Zr[e[t+3]]+"-"+Zr[e[t+4]]+Zr[e[t+5]]+"-"+Zr[e[t+6]]+Zr[e[t+7]]+"-"+Zr[e[t+8]]+Zr[e[t+9]]+"-"+Zr[e[t+10]]+Zr[e[t+11]]+Zr[e[t+12]]+Zr[e[t+13]]+Zr[e[t+14]]+Zr[e[t+15]]).toLowerCase()}const o$e=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),AB={randomUUID:o$e};function M_(e,t,n){if(AB.randomUUID&&!t&&!e)return AB.randomUUID();e=e||{};const r=e.random||(e.rng||r$e)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return i$e(r)}const qW=Gn({key:"AccessToken",default:void 0}),$B=Gn({key:"SessionId",default:M_()}),GW=fK({key:"SessionIdSelector",get:({get:e})=>e($B),set:({set:e},t)=>e($B,t instanceof lme?M_():t)}),vO=Gn({key:"Role",default:void 0}),RB=localStorage.getItem("userEnv"),Gw=Gn({key:"UserEnv",default:RB?JSON.parse(RB):{}}),Qu=()=>{var f;const e=yt(ya),{isAuthenticated:t,isLoading:n,...r}=t$e(),i=yt(qW),o=yt(vO),a=n&&((f=e==null?void 0:e.project)==null?void 0:f.id),s=t&&o&&o!=="ANONYMOUS",l=(e==null?void 0:e.project.id)&&(e==null?void 0:e.project.public)===!1;return{role:o,accessToken:i,isAuthenticated:t,authenticating:a||t&&!i,isProjectMember:s,isLoading:a,cloudAuthRequired:l,...r}};function a$e(){const{user:e,error:t}=Qu(),n=Wu();return T.useEffect(()=>{e&&n("/")},[e]),t?C.jsx(no,{severity:"error",children:t.message}):null}var yO={exports:{}},cy={},Yw={exports:{}},YW={};const s$e=cU(U0e);var yr={},js={};Object.defineProperty(js,"__esModule",{value:!0});js.dontSetMe=d$e;js.findInArray=l$e;js.int=f$e;js.isFunction=u$e;js.isNum=c$e;function l$e(e,t){for(var n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function u$e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function c$e(e){return typeof e=="number"&&!isNaN(e)}function f$e(e){return parseInt(e,10)}function d$e(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))}var Ef={};Object.defineProperty(Ef,"__esModule",{value:!0});Ef.browserPrefixToKey=ZW;Ef.browserPrefixToStyle=p$e;Ef.default=void 0;Ef.getPrefix=XW;var ok=["Moz","Webkit","O","ms"];function XW(){var e,t,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";var r=(e=window.document)===null||e===void 0||(t=e.documentElement)===null||t===void 0?void 0:t.style;if(!r||n in r)return"";for(var i=0;i<ok.length;i++)if(ZW(n,ok[i])in r)return ok[i];return""}function ZW(e,t){return t?"".concat(t).concat(h$e(e)):e}function p$e(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e}function h$e(e){for(var t="",n=!0,r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):e[r]==="-"?n=!0:t+=e[r];return t}var g$e=XW();Ef.default=g$e;function GA(e){"@babel/helpers - typeof";return GA=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},GA(e)}Object.defineProperty(yr,"__esModule",{value:!0});yr.addClassName=nV;yr.addEvent=y$e;yr.addUserSelectStyles=$$e;yr.createCSSTransform=E$e;yr.createSVGTransform=k$e;yr.getTouch=T$e;yr.getTouchIdentifier=A$e;yr.getTranslation=bO;yr.innerHeight=w$e;yr.innerWidth=S$e;yr.matchesSelector=tV;yr.matchesSelectorAndParentsTo=v$e;yr.offsetXYFromParent=C$e;yr.outerHeight=_$e;yr.outerWidth=x$e;yr.removeClassName=rV;yr.removeEvent=b$e;yr.removeUserSelectStyles=R$e;var Ao=js,OB=m$e(Ef);function JW(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(JW=function(i){return i?n:t})(e)}function m$e(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||GA(e)!=="object"&&typeof e!="function")return{default:e};var n=JW(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function IB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function QW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IB(Object(n),!0).forEach(function(r){eV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O1="";function tV(e,t){return O1||(O1=(0,Ao.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(n){return(0,Ao.isFunction)(e[n])})),(0,Ao.isFunction)(e[O1])?e[O1](t):!1}function v$e(e,t,n){var r=e;do{if(tV(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1}function y$e(e,t,n,r){if(e){var i=QW({capture:!0},r);e.addEventListener?e.addEventListener(t,n,i):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}}function b$e(e,t,n,r){if(e){var i=QW({capture:!0},r);e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null}}function _$e(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,Ao.int)(n.borderTopWidth),t+=(0,Ao.int)(n.borderBottomWidth),t}function x$e(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,Ao.int)(n.borderLeftWidth),t+=(0,Ao.int)(n.borderRightWidth),t}function w$e(e){var t=e.clientHeight,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,Ao.int)(n.paddingTop),t-=(0,Ao.int)(n.paddingBottom),t}function S$e(e){var t=e.clientWidth,n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,Ao.int)(n.paddingLeft),t-=(0,Ao.int)(n.paddingRight),t}function C$e(e,t,n){var r=t===t.ownerDocument.body,i=r?{left:0,top:0}:t.getBoundingClientRect(),o=(e.clientX+t.scrollLeft-i.left)/n,a=(e.clientY+t.scrollTop-i.top)/n;return{x:o,y:a}}function E$e(e,t){var n=bO(e,t,"px");return eV({},(0,OB.browserPrefixToKey)("transform",OB.default),n)}function k$e(e,t){var n=bO(e,t,"");return n}function bO(e,t,n){var r=e.x,i=e.y,o="translate(".concat(r).concat(n,",").concat(i).concat(n,")");if(t){var a="".concat(typeof t.x=="string"?t.x:t.x+n),s="".concat(typeof t.y=="string"?t.y:t.y+n);o="translate(".concat(a,", ").concat(s,")")+o}return o}function T$e(e,t){return e.targetTouches&&(0,Ao.findInArray)(e.targetTouches,function(n){return t===n.identifier})||e.changedTouches&&(0,Ao.findInArray)(e.changedTouches,function(n){return t===n.identifier})}function A$e(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function $$e(e){if(e){var t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
371
|
-
`,t.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
372
|
-
`,e.getElementsByTagName("head")[0].appendChild(t)),e.body&&nV(e.body,"react-draggable-transparent-selection")}}function R$e(e){if(e)try{if(e.body&&rV(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{var t=(e.defaultView||window).getSelection();t&&t.type!=="Caret"&&t.removeAllRanges()}}catch{}}function nV(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function rV(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}var zs={};Object.defineProperty(zs,"__esModule",{value:!0});zs.canDragX=D$e;zs.canDragY=P$e;zs.createCoreData=M$e;zs.createDraggableData=F$e;zs.getBoundPosition=O$e;zs.getControlPosition=L$e;zs.snapToGrid=I$e;var vo=js,Qd=yr;function O$e(e,t,n){if(!e.props.bounds)return[t,n];var r=e.props.bounds;r=typeof r=="string"?r:N$e(r);var i=_O(e);if(typeof r=="string"){var o=i.ownerDocument,a=o.defaultView,s;if(r==="parent"?s=i.parentNode:s=o.querySelector(r),!(s instanceof a.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');var l=s,u=a.getComputedStyle(i),f=a.getComputedStyle(l);r={left:-i.offsetLeft+(0,vo.int)(f.paddingLeft)+(0,vo.int)(u.marginLeft),top:-i.offsetTop+(0,vo.int)(f.paddingTop)+(0,vo.int)(u.marginTop),right:(0,Qd.innerWidth)(l)-(0,Qd.outerWidth)(i)-i.offsetLeft+(0,vo.int)(f.paddingRight)-(0,vo.int)(u.marginRight),bottom:(0,Qd.innerHeight)(l)-(0,Qd.outerHeight)(i)-i.offsetTop+(0,vo.int)(f.paddingBottom)-(0,vo.int)(u.marginBottom)}}return(0,vo.isNum)(r.right)&&(t=Math.min(t,r.right)),(0,vo.isNum)(r.bottom)&&(n=Math.min(n,r.bottom)),(0,vo.isNum)(r.left)&&(t=Math.max(t,r.left)),(0,vo.isNum)(r.top)&&(n=Math.max(n,r.top)),[t,n]}function I$e(e,t,n){var r=Math.round(t/e[0])*e[0],i=Math.round(n/e[1])*e[1];return[r,i]}function D$e(e){return e.props.axis==="both"||e.props.axis==="x"}function P$e(e){return e.props.axis==="both"||e.props.axis==="y"}function L$e(e,t,n){var r=typeof t=="number"?(0,Qd.getTouch)(e,t):null;if(typeof t=="number"&&!r)return null;var i=_O(n),o=n.props.offsetParent||i.offsetParent||i.ownerDocument.body;return(0,Qd.offsetXYFromParent)(r||e,o,n.props.scale)}function M$e(e,t,n){var r=e.state,i=!(0,vo.isNum)(r.lastX),o=_O(e);return i?{node:o,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:o,deltaX:t-r.lastX,deltaY:n-r.lastY,lastX:r.lastX,lastY:r.lastY,x:t,y:n}}function F$e(e,t){var n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function N$e(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function _O(e){var t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var Xw={},Zw={};Object.defineProperty(Zw,"__esModule",{value:!0});Zw.default=B$e;function B$e(){}function F_(e){"@babel/helpers - typeof";return F_=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},F_(e)}Object.defineProperty(Xw,"__esModule",{value:!0});Xw.default=void 0;var ak=z$e(T),mo=xO(ey),j$e=xO(_f),di=yr,au=zs,sk=js,Xg=xO(Zw);function xO(e){return e&&e.__esModule?e:{default:e}}function iV(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(iV=function(i){return i?n:t})(e)}function z$e(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||F_(e)!=="object"&&typeof e!="function")return{default:e};var n=iV(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function DB(e,t){return V$e(e)||W$e(e,t)||K$e(e,t)||U$e()}function U$e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
373
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K$e(e,t){if(e){if(typeof e=="string")return PB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PB(e,t)}}function PB(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function W$e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function V$e(e){if(Array.isArray(e))return e}function H$e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LB(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 q$e(e,t,n){return t&&LB(e.prototype,t),n&&LB(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function G$e(e,t){if(typeof t!="function"&&t!==null)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&YA(e,t)}function YA(e,t){return YA=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},YA(e,t)}function Y$e(e){var t=Z$e();return function(){var r=N_(e),i;if(t){var o=N_(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return X$e(this,i)}}function X$e(e,t){if(t&&(F_(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hi(e)}function hi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z$e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function N_(e){return N_=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},N_(e)}function Zo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ma={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},su=Ma.mouse,Jw=function(e){G$e(n,e);var t=Y$e(n);function n(){var r;H$e(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,[this].concat(o)),Zo(hi(r),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),Zo(hi(r),"mounted",!1),Zo(hi(r),"handleDragStart",function(s){if(r.props.onMouseDown(s),!r.props.allowAnyClick&&typeof s.button=="number"&&s.button!==0)return!1;var l=r.findDOMNode();if(!l||!l.ownerDocument||!l.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");var u=l.ownerDocument;if(!(r.props.disabled||!(s.target instanceof u.defaultView.Node)||r.props.handle&&!(0,di.matchesSelectorAndParentsTo)(s.target,r.props.handle,l)||r.props.cancel&&(0,di.matchesSelectorAndParentsTo)(s.target,r.props.cancel,l))){s.type==="touchstart"&&s.preventDefault();var f=(0,di.getTouchIdentifier)(s);r.setState({touchIdentifier:f});var d=(0,au.getControlPosition)(s,f,hi(r));if(d!=null){var p=d.x,m=d.y,v=(0,au.createCoreData)(hi(r),p,m);(0,Xg.default)("DraggableCore: handleDragStart: %j",v),(0,Xg.default)("calling",r.props.onStart);var y=r.props.onStart(s,v);y===!1||r.mounted===!1||(r.props.enableUserSelectHack&&(0,di.addUserSelectStyles)(u),r.setState({dragging:!0,lastX:p,lastY:m}),(0,di.addEvent)(u,su.move,r.handleDrag),(0,di.addEvent)(u,su.stop,r.handleDragStop))}}}),Zo(hi(r),"handleDrag",function(s){var l=(0,au.getControlPosition)(s,r.state.touchIdentifier,hi(r));if(l!=null){var u=l.x,f=l.y;if(Array.isArray(r.props.grid)){var d=u-r.state.lastX,p=f-r.state.lastY,m=(0,au.snapToGrid)(r.props.grid,d,p),v=DB(m,2);if(d=v[0],p=v[1],!d&&!p)return;u=r.state.lastX+d,f=r.state.lastY+p}var y=(0,au.createCoreData)(hi(r),u,f);(0,Xg.default)("DraggableCore: handleDrag: %j",y);var w=r.props.onDrag(s,y);if(w===!1||r.mounted===!1){try{r.handleDragStop(new MouseEvent("mouseup"))}catch{var b=document.createEvent("MouseEvents");b.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),r.handleDragStop(b)}return}r.setState({lastX:u,lastY:f})}}),Zo(hi(r),"handleDragStop",function(s){if(r.state.dragging){var l=(0,au.getControlPosition)(s,r.state.touchIdentifier,hi(r));if(l!=null){var u=l.x,f=l.y;if(Array.isArray(r.props.grid)){var d=u-r.state.lastX||0,p=f-r.state.lastY||0,m=(0,au.snapToGrid)(r.props.grid,d,p),v=DB(m,2);d=v[0],p=v[1],u=r.state.lastX+d,f=r.state.lastY+p}var y=(0,au.createCoreData)(hi(r),u,f),w=r.props.onStop(s,y);if(w===!1||r.mounted===!1)return!1;var b=r.findDOMNode();b&&r.props.enableUserSelectHack&&(0,di.removeUserSelectStyles)(b.ownerDocument),(0,Xg.default)("DraggableCore: handleDragStop: %j",y),r.setState({dragging:!1,lastX:NaN,lastY:NaN}),b&&((0,Xg.default)("DraggableCore: Removing handlers"),(0,di.removeEvent)(b.ownerDocument,su.move,r.handleDrag),(0,di.removeEvent)(b.ownerDocument,su.stop,r.handleDragStop))}}}),Zo(hi(r),"onMouseDown",function(s){return su=Ma.mouse,r.handleDragStart(s)}),Zo(hi(r),"onMouseUp",function(s){return su=Ma.mouse,r.handleDragStop(s)}),Zo(hi(r),"onTouchStart",function(s){return su=Ma.touch,r.handleDragStart(s)}),Zo(hi(r),"onTouchEnd",function(s){return su=Ma.touch,r.handleDragStop(s)}),r}return q$e(n,[{key:"componentDidMount",value:function(){this.mounted=!0;var i=this.findDOMNode();i&&(0,di.addEvent)(i,Ma.touch.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.findDOMNode();if(i){var o=i.ownerDocument;(0,di.removeEvent)(o,Ma.mouse.move,this.handleDrag),(0,di.removeEvent)(o,Ma.touch.move,this.handleDrag),(0,di.removeEvent)(o,Ma.mouse.stop,this.handleDragStop),(0,di.removeEvent)(o,Ma.touch.stop,this.handleDragStop),(0,di.removeEvent)(i,Ma.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,di.removeUserSelectStyles)(o)}}},{key:"findDOMNode",value:function(){var i,o,a;return(i=this.props)!==null&&i!==void 0&&i.nodeRef?(o=this.props)===null||o===void 0||(a=o.nodeRef)===null||a===void 0?void 0:a.current:j$e.default.findDOMNode(this)}},{key:"render",value:function(){return ak.cloneElement(ak.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),n}(ak.Component);Xw.default=Jw;Zo(Jw,"displayName","DraggableCore");Zo(Jw,"propTypes",{allowAnyClick:mo.default.bool,disabled:mo.default.bool,enableUserSelectHack:mo.default.bool,offsetParent:function(t,n){if(t[n]&&t[n].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:mo.default.arrayOf(mo.default.number),handle:mo.default.string,cancel:mo.default.string,nodeRef:mo.default.object,onStart:mo.default.func,onDrag:mo.default.func,onStop:mo.default.func,onMouseDown:mo.default.func,scale:mo.default.number,className:sk.dontSetMe,style:sk.dontSetMe,transform:sk.dontSetMe});Zo(Jw,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(e){function t(j){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},t(j)}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return u.default}}),e.default=void 0;var n=v(T),r=p(ey),i=p(_f),o=p(s$e),a=yr,s=zs,l=js,u=p(Xw),f=p(Zw),d=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function p(j){return j&&j.__esModule?j:{default:j}}function m(j){if(typeof WeakMap!="function")return null;var L=new WeakMap,oe=new WeakMap;return(m=function(se){return se?oe:L})(j)}function v(j,L){if(!L&&j&&j.__esModule)return j;if(j===null||t(j)!=="object"&&typeof j!="function")return{default:j};var oe=m(L);if(oe&&oe.has(j))return oe.get(j);var ue={},se=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Ee in j)if(Ee!=="default"&&Object.prototype.hasOwnProperty.call(j,Ee)){var Re=se?Object.getOwnPropertyDescriptor(j,Ee):null;Re&&(Re.get||Re.set)?Object.defineProperty(ue,Ee,Re):ue[Ee]=j[Ee]}return ue.default=j,oe&&oe.set(j,ue),ue}function y(){return y=Object.assign||function(j){for(var L=1;L<arguments.length;L++){var oe=arguments[L];for(var ue in oe)Object.prototype.hasOwnProperty.call(oe,ue)&&(j[ue]=oe[ue])}return j},y.apply(this,arguments)}function w(j,L){if(j==null)return{};var oe=b(j,L),ue,se;if(Object.getOwnPropertySymbols){var Ee=Object.getOwnPropertySymbols(j);for(se=0;se<Ee.length;se++)ue=Ee[se],!(L.indexOf(ue)>=0)&&Object.prototype.propertyIsEnumerable.call(j,ue)&&(oe[ue]=j[ue])}return oe}function b(j,L){if(j==null)return{};var oe={},ue=Object.keys(j),se,Ee;for(Ee=0;Ee<ue.length;Ee++)se=ue[Ee],!(L.indexOf(se)>=0)&&(oe[se]=j[se]);return oe}function x(j,L){var oe=Object.keys(j);if(Object.getOwnPropertySymbols){var ue=Object.getOwnPropertySymbols(j);L&&(ue=ue.filter(function(se){return Object.getOwnPropertyDescriptor(j,se).enumerable})),oe.push.apply(oe,ue)}return oe}function S(j){for(var L=1;L<arguments.length;L++){var oe=arguments[L]!=null?arguments[L]:{};L%2?x(Object(oe),!0).forEach(function(ue){P(j,ue,oe[ue])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(oe)):x(Object(oe)).forEach(function(ue){Object.defineProperty(j,ue,Object.getOwnPropertyDescriptor(oe,ue))})}return j}function k(j,L){return K(j)||z(j,L)||$(j,L)||A()}function A(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
374
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $(j,L){if(j){if(typeof j=="string")return I(j,L);var oe=Object.prototype.toString.call(j).slice(8,-1);if(oe==="Object"&&j.constructor&&(oe=j.constructor.name),oe==="Map"||oe==="Set")return Array.from(j);if(oe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(oe))return I(j,L)}}function I(j,L){(L==null||L>j.length)&&(L=j.length);for(var oe=0,ue=new Array(L);oe<L;oe++)ue[oe]=j[oe];return ue}function z(j,L){var oe=j==null?null:typeof Symbol<"u"&&j[Symbol.iterator]||j["@@iterator"];if(oe!=null){var ue=[],se=!0,Ee=!1,Re,ke;try{for(oe=oe.call(j);!(se=(Re=oe.next()).done)&&(ue.push(Re.value),!(L&&ue.length===L));se=!0);}catch(De){Ee=!0,ke=De}finally{try{!se&&oe.return!=null&&oe.return()}finally{if(Ee)throw ke}}return ue}}function K(j){if(Array.isArray(j))return j}function D(j,L){if(!(j instanceof L))throw new TypeError("Cannot call a class as a function")}function W(j,L){for(var oe=0;oe<L.length;oe++){var ue=L[oe];ue.enumerable=ue.enumerable||!1,ue.configurable=!0,"value"in ue&&(ue.writable=!0),Object.defineProperty(j,ue.key,ue)}}function ie(j,L,oe){return L&&W(j.prototype,L),oe&&W(j,oe),Object.defineProperty(j,"prototype",{writable:!1}),j}function ae(j,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(L&&L.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),Object.defineProperty(j,"prototype",{writable:!1}),L&&q(j,L)}function q(j,L){return q=Object.setPrototypeOf||function(ue,se){return ue.__proto__=se,ue},q(j,L)}function G(j){var L=Q();return function(){var ue=te(j),se;if(L){var Ee=te(this).constructor;se=Reflect.construct(ue,arguments,Ee)}else se=ue.apply(this,arguments);return J(this,se)}}function J(j,L){if(L&&(t(L)==="object"||typeof L=="function"))return L;if(L!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return le(j)}function le(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}function Q(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function te(j){return te=Object.setPrototypeOf?Object.getPrototypeOf:function(oe){return oe.__proto__||Object.getPrototypeOf(oe)},te(j)}function P(j,L,oe){return L in j?Object.defineProperty(j,L,{value:oe,enumerable:!0,configurable:!0,writable:!0}):j[L]=oe,j}var me=function(j){ae(oe,j);var L=G(oe);function oe(ue){var se;return D(this,oe),se=L.call(this,ue),P(le(se),"onDragStart",function(Ee,Re){(0,f.default)("Draggable: onDragStart: %j",Re);var ke=se.props.onStart(Ee,(0,s.createDraggableData)(le(se),Re));if(ke===!1)return!1;se.setState({dragging:!0,dragged:!0})}),P(le(se),"onDrag",function(Ee,Re){if(!se.state.dragging)return!1;(0,f.default)("Draggable: onDrag: %j",Re);var ke=(0,s.createDraggableData)(le(se),Re),De={x:ke.x,y:ke.y};if(se.props.bounds){var Me=De.x,Be=De.y;De.x+=se.state.slackX,De.y+=se.state.slackY;var Ue=(0,s.getBoundPosition)(le(se),De.x,De.y),Ke=k(Ue,2),He=Ke[0],lt=Ke[1];De.x=He,De.y=lt,De.slackX=se.state.slackX+(Me-De.x),De.slackY=se.state.slackY+(Be-De.y),ke.x=De.x,ke.y=De.y,ke.deltaX=De.x-se.state.x,ke.deltaY=De.y-se.state.y}var Xe=se.props.onDrag(Ee,ke);if(Xe===!1)return!1;se.setState(De)}),P(le(se),"onDragStop",function(Ee,Re){if(!se.state.dragging)return!1;var ke=se.props.onStop(Ee,(0,s.createDraggableData)(le(se),Re));if(ke===!1)return!1;(0,f.default)("Draggable: onDragStop: %j",Re);var De={dragging:!1,slackX:0,slackY:0},Me=!!se.props.position;if(Me){var Be=se.props.position,Ue=Be.x,Ke=Be.y;De.x=Ue,De.y=Ke}se.setState(De)}),se.state={dragging:!1,dragged:!1,x:ue.position?ue.position.x:ue.defaultPosition.x,y:ue.position?ue.position.y:ue.defaultPosition.y,prevPropsPosition:S({},ue.position),slackX:0,slackY:0,isElementSVG:!1},ue.position&&!(ue.onDrag||ue.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element."),se}return ie(oe,[{key:"componentDidMount",value:function(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}},{key:"componentWillUnmount",value:function(){this.setState({dragging:!1})}},{key:"findDOMNode",value:function(){var se,Ee,Re;return(se=(Ee=this.props)===null||Ee===void 0||(Re=Ee.nodeRef)===null||Re===void 0?void 0:Re.current)!==null&&se!==void 0?se:i.default.findDOMNode(this)}},{key:"render",value:function(){var se,Ee=this.props;Ee.axis,Ee.bounds;var Re=Ee.children,ke=Ee.defaultPosition,De=Ee.defaultClassName,Me=Ee.defaultClassNameDragging,Be=Ee.defaultClassNameDragged,Ue=Ee.position,Ke=Ee.positionOffset;Ee.scale;var He=w(Ee,d),lt={},Xe=null,nt=!!Ue,mt=!nt||this.state.dragging,ge=Ue||ke,$e={x:(0,s.canDragX)(this)&&mt?this.state.x:ge.x,y:(0,s.canDragY)(this)&&mt?this.state.y:ge.y};this.state.isElementSVG?Xe=(0,a.createSVGTransform)($e,Ke):lt=(0,a.createCSSTransform)($e,Ke);var Te=(0,o.default)(Re.props.className||"",De,(se={},P(se,Me,this.state.dragging),P(se,Be,this.state.dragged),se));return n.createElement(u.default,y({},He,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),n.cloneElement(n.Children.only(Re),{className:Te,style:S(S({},Re.props.style),lt),transform:Xe}))}}],[{key:"getDerivedStateFromProps",value:function(se,Ee){var Re=se.position,ke=Ee.prevPropsPosition;return Re&&(!ke||Re.x!==ke.x||Re.y!==ke.y)?((0,f.default)("Draggable: getDerivedStateFromProps %j",{position:Re,prevPropsPosition:ke}),{x:Re.x,y:Re.y,prevPropsPosition:S({},Re)}):null}}]),oe}(n.Component);e.default=me,P(me,"displayName","Draggable"),P(me,"propTypes",S(S({},u.default.propTypes),{},{axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe})),P(me,"defaultProps",S(S({},u.default.defaultProps),{},{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))})(YW);var oV=YW,aV=oV.default,J$e=oV.DraggableCore;Yw.exports=aV;Yw.exports.default=aV;Yw.exports.DraggableCore=J$e;var Q$e=Yw.exports,wO={};wO.__esModule=!0;wO.cloneElement=oRe;var eRe=tRe(T);function tRe(e){return e&&e.__esModule?e:{default:e}}function MB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function FB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MB(Object(n),!0).forEach(function(r){nRe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nRe(e,t,n){return t=rRe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rRe(e){var t=iRe(e,"string");return typeof t=="symbol"?t:String(t)}function iRe(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oRe(e,t){return t.style&&e.props.style&&(t.style=FB(FB({},e.props.style),t.style)),t.className&&e.props.className&&(t.className=e.props.className+" "+t.className),eRe.default.cloneElement(e,t)}var fy={};fy.__esModule=!0;fy.resizableProps=void 0;var Mt=aRe(ey);function aRe(e){return e&&e.__esModule?e:{default:e}}var sRe={axis:Mt.default.oneOf(["both","x","y","none"]),className:Mt.default.string,children:Mt.default.element.isRequired,draggableOpts:Mt.default.shape({allowAnyClick:Mt.default.bool,cancel:Mt.default.string,children:Mt.default.node,disabled:Mt.default.bool,enableUserSelectHack:Mt.default.bool,offsetParent:Mt.default.node,grid:Mt.default.arrayOf(Mt.default.number),handle:Mt.default.string,nodeRef:Mt.default.object,onStart:Mt.default.func,onDrag:Mt.default.func,onStop:Mt.default.func,onMouseDown:Mt.default.func,scale:Mt.default.number}),height:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(i.axis==="both"||i.axis==="y"){var o;return(o=Mt.default.number).isRequired.apply(o,n)}return Mt.default.number.apply(Mt.default,n)},handle:Mt.default.oneOfType([Mt.default.node,Mt.default.func]),handleSize:Mt.default.arrayOf(Mt.default.number),lockAspectRatio:Mt.default.bool,maxConstraints:Mt.default.arrayOf(Mt.default.number),minConstraints:Mt.default.arrayOf(Mt.default.number),onResizeStop:Mt.default.func,onResizeStart:Mt.default.func,onResize:Mt.default.func,resizeHandles:Mt.default.arrayOf(Mt.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:Mt.default.number,width:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(i.axis==="both"||i.axis==="x"){var o;return(o=Mt.default.number).isRequired.apply(o,n)}return Mt.default.number.apply(Mt.default,n)}};fy.resizableProps=sRe;cy.__esModule=!0;cy.default=void 0;var Zg=dRe(T),lRe=Q$e,uRe=wO,cRe=fy,fRe=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function sV(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(sV=function(i){return i?n:t})(e)}function dRe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=sV(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function XA(){return XA=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},XA.apply(this,arguments)}function pRe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function NB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NB(Object(n),!0).forEach(function(r){hRe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hRe(e,t,n){return t=gRe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gRe(e){var t=mRe(e,"string");return typeof t=="symbol"?t:String(t)}function mRe(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vRe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ZA(e,t)}function ZA(e,t){return ZA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ZA(e,t)}var SO=function(e){vRe(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o))||this,r.handleRefs={},r.lastHandleRect=null,r.slack=null,r}var n=t.prototype;return n.componentWillUnmount=function(){this.resetData()},n.resetData=function(){this.lastHandleRect=this.slack=null},n.runConstraints=function(i,o){var a=this.props,s=a.minConstraints,l=a.maxConstraints,u=a.lockAspectRatio;if(!s&&!l&&!u)return[i,o];if(u){var f=this.props.width/this.props.height,d=i-this.props.width,p=o-this.props.height;Math.abs(d)>Math.abs(p*f)?o=i/f:i=o*f}var m=i,v=o,y=this.slack||[0,0],w=y[0],b=y[1];return i+=w,o+=b,s&&(i=Math.max(s[0],i),o=Math.max(s[1],o)),l&&(i=Math.min(l[0],i),o=Math.min(l[1],o)),this.slack=[w+(m-i),b+(v-o)],[i,o]},n.resizeHandler=function(i,o){var a=this;return function(s,l){var u=l.node,f=l.deltaX,d=l.deltaY;i==="onResizeStart"&&a.resetData();var p=(a.props.axis==="both"||a.props.axis==="x")&&o!=="n"&&o!=="s",m=(a.props.axis==="both"||a.props.axis==="y")&&o!=="e"&&o!=="w";if(!(!p&&!m)){var v=o[0],y=o[o.length-1],w=u.getBoundingClientRect();if(a.lastHandleRect!=null){if(y==="w"){var b=w.left-a.lastHandleRect.left;f+=b}if(v==="n"){var x=w.top-a.lastHandleRect.top;d+=x}}a.lastHandleRect=w,y==="w"&&(f=-f),v==="n"&&(d=-d);var S=a.props.width+(p?f/a.props.transformScale:0),k=a.props.height+(m?d/a.props.transformScale:0),A=a.runConstraints(S,k);S=A[0],k=A[1];var $=S!==a.props.width||k!==a.props.height,I=typeof a.props[i]=="function"?a.props[i]:null,z=i==="onResize"&&!$;I&&!z&&(s.persist==null||s.persist(),I(s,{node:u,size:{width:S,height:k},handle:o})),i==="onResizeStop"&&a.resetData()}}},n.renderResizeHandle=function(i,o){var a=this.props.handle;if(!a)return Zg.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+i,ref:o});if(typeof a=="function")return a(i,o);var s=typeof a.type=="string",l=lk({ref:o},s?{}:{handleAxis:i});return Zg.cloneElement(a,l)},n.render=function(){var i=this,o=this.props,a=o.children,s=o.className,l=o.draggableOpts;o.width,o.height,o.handle,o.handleSize,o.lockAspectRatio,o.axis,o.minConstraints,o.maxConstraints,o.onResize,o.onResizeStop,o.onResizeStart;var u=o.resizeHandles;o.transformScale;var f=pRe(o,fRe);return(0,uRe.cloneElement)(a,lk(lk({},f),{},{className:(s?s+" ":"")+"react-resizable",children:[].concat(a.props.children,u.map(function(d){var p,m=(p=i.handleRefs[d])!=null?p:i.handleRefs[d]=Zg.createRef();return Zg.createElement(lRe.DraggableCore,XA({},l,{nodeRef:m,key:"resizableHandle-"+d,onStop:i.resizeHandler("onResizeStop",d),onStart:i.resizeHandler("onResizeStart",d),onDrag:i.resizeHandler("onResize",d)}),i.renderResizeHandle(d,m))}))}))},t}(Zg.Component);cy.default=SO;SO.propTypes=cRe.resizableProps;SO.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var Qw={};Qw.__esModule=!0;Qw.default=void 0;var uk=wRe(T),yRe=lV(ey),bRe=lV(cy),_Re=fy,xRe=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function lV(e){return e&&e.__esModule?e:{default:e}}function uV(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(uV=function(i){return i?n:t})(e)}function wRe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=uV(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}function JA(){return JA=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},JA.apply(this,arguments)}function BB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function B_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BB(Object(n),!0).forEach(function(r){SRe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BB(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function SRe(e,t,n){return t=CRe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CRe(e){var t=ERe(e,"string");return typeof t=="symbol"?t:String(t)}function ERe(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kRe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function TRe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,QA(e,t)}function QA(e,t){return QA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},QA(e,t)}var cV=function(e){TRe(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o))||this,r.state={width:r.props.width,height:r.props.height,propsWidth:r.props.width,propsHeight:r.props.height},r.onResize=function(s,l){var u=l.size;r.props.onResize?(s.persist==null||s.persist(),r.setState(u,function(){return r.props.onResize&&r.props.onResize(s,l)})):r.setState(u)},r}t.getDerivedStateFromProps=function(i,o){return o.propsWidth!==i.width||o.propsHeight!==i.height?{width:i.width,height:i.height,propsWidth:i.width,propsHeight:i.height}:null};var n=t.prototype;return n.render=function(){var i=this.props,o=i.handle,a=i.handleSize;i.onResize;var s=i.onResizeStart,l=i.onResizeStop,u=i.draggableOpts,f=i.minConstraints,d=i.maxConstraints,p=i.lockAspectRatio,m=i.axis;i.width,i.height;var v=i.resizeHandles,y=i.style,w=i.transformScale,b=kRe(i,xRe);return uk.createElement(bRe.default,{axis:m,draggableOpts:u,handle:o,handleSize:a,height:this.state.height,lockAspectRatio:p,maxConstraints:d,minConstraints:f,onResizeStart:s,onResize:this.onResize,onResizeStop:l,resizeHandles:v,transformScale:w,width:this.state.width},uk.createElement("div",JA({},b,{style:B_(B_({},y),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},t}(uk.Component);Qw.default=cV;cV.propTypes=B_(B_({},_Re.resizableProps),{},{children:yRe.default.element});yO.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")};var ARe=yO.exports.Resizable=cy.default;yO.exports.ResizableBox=Qw.default;var $Re=globalThis&&globalThis.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(f){try{u(r.next(f))}catch(d){a(d)}}function l(f){try{u(r.throw(f))}catch(d){a(d)}}function u(f){f.done?o(f.value):i(f.value).then(s,l)}u((r=r.apply(e,t||[])).next())})};function RRe(){const[e,t]=T.useState(null);return[e,r=>$Re(this,void 0,void 0,function*(){if(!(navigator!=null&&navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return yield navigator.clipboard.writeText(r),t(r),!0}catch(i){return console.warn("Copy failed",i),t(null),!1}})]}function ORe(e,t,n,r){const i=T.useRef(t);fV(()=>{i.current=t},[t]),T.useEffect(()=>{var o;const a=(o=n==null?void 0:n.current)!==null&&o!==void 0?o:window;if(!(a&&a.addEventListener))return;const s=l=>i.current(l);return a.addEventListener(e,s,r),()=>{a.removeEventListener(e,s,r)}},[e,n,r])}globalThis&&globalThis.__awaiter;function eS(){const e=T.useRef(!0);return e.current?(e.current=!1,!0):e.current}const fV=typeof window<"u"?T.useLayoutEffect:T.useEffect;function CO(e){const[t,n]=T.useState(!!e),r=T.useCallback(()=>n(i=>!i),[]);return[t,r,n]}function IRe(){const[e,t]=T.useState({width:0,height:0}),n=()=>{t({width:window.innerWidth,height:window.innerHeight})};return ORe("resize",n),fV(()=>{n()},[]),e}var EO={},dV={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(dV);var Nn=dV.exports,ck={};const DRe=cU(Gbe);var jB;function Bn(){return jB||(jB=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=DRe}(ck)),ck}var PRe=Nn;Object.defineProperty(EO,"__esModule",{value:!0});var lh=EO.default=void 0,LRe=PRe(Bn()),MRe=C,FRe=(0,LRe.default)((0,MRe.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");lh=EO.default=FRe;const tS=Gn({key:"DisplayElements",default:[]}),kO=Gn({key:"AvatarElements",default:[]}),TO=Gn({key:"TasklistElements",default:[]}),AO=Gn({key:"SideView",default:void 0});function NRe(){const{search:e}=Zp();return T.useMemo(()=>new URLSearchParams(e),[e])}const BRe=window.origin,zB=new URL(BRe),e$=`${zB.protocol}//${zB.host}`,jRe=e$;class j_ extends Error{constructor(n,r){super(n);or(this,"detail");this.detail=r}toString(){return this.detail?`${this.message}: ${this.detail}`:this.message}}class $O{constructor(){or(this,"headers");or(this,"setAccessToken",t=>{this.headers.set("Authorization",t)});or(this,"fetch",async(t,n)=>{const r=await fetch(`${e$}${t}`,{...n,headers:this.headers});if(!r.ok){let i;try{const o=await r.json();i=new j_(r.statusText,o.detail)}catch{i=new j_(r.statusText)}throw i}return r});or(this,"getCompletion",async(t,n={},r,i)=>{var l;const a=(l=(await this.fetch("/completion",{method:"POST",signal:r.signal,body:JSON.stringify({prompt:t,userEnv:n})})).body)==null?void 0:l.getReader();return new ReadableStream({start(u){function f(){a.read().then(({done:d,value:p})=>{if(d){u.close(),i(d,"");return}const m=new TextDecoder("utf-8").decode(p);i(d,m),u.enqueue(p),f()}).catch(d=>{u.close(),i(!0,""),console.error(d)})}f()}})});or(this,"getRole",async()=>await(await this.fetch("/project/role",{method:"GET"})).text());or(this,"setHumanFeedback",async(t,n)=>{await this.fetch("/message/feedback",{method:"PUT",body:JSON.stringify({messageId:t,feedback:n})})});or(this,"getProjectMembers",async()=>(await this.fetch("/project/members",{method:"GET"})).json());or(this,"getConversations",async(t,n)=>(await this.fetch("/project/conversations",{method:"POST",body:JSON.stringify({pagination:t,filter:n})})).json());or(this,"getConversation",async t=>(await this.fetch(`/project/conversation/${t}`,{method:"GET"})).json());or(this,"getElement",async(t,n)=>(await this.fetch(`/project/conversation/${t}/element/${n}`,{method:"GET"})).json());or(this,"deleteConversation",async t=>(await this.fetch("/project/conversation",{method:"DELETE",body:JSON.stringify({conversationId:t})})).json());or(this,"getLLMProviders",async()=>(await this.fetch("/project/llm-providers",{headers:{"content-type":"application/json"},method:"GET"})).json());this.headers=new Headers({"content-type":"application/json"})}}or($O,"getProjectSettings",async()=>(await fetch(`${e$}/project/settings`,{headers:{"content-type":"application/json"},method:"GET"})).json());const Fl=Gn({key:"Client",default:new $O}),wl="#FFFFFF",gt={50:"#FAFAFA",100:"#F5F5F5",200:"#EEEEEE",300:"#E0E0E0",400:"#BDBDBD",500:"#9E9E9E",600:"#757575",700:"#616161",800:"#424242",850:"#303030",900:"#212121"},ks={50:"#FEEDEF",100:"#FCD1D7",200:"#FBA3B1",300:"#F9748F",400:"#F05579",500:"#F51762",600:"#DA0054",700:"#B90A47",800:"#980039",900:"#79002C"},pV={50:"#E6F5EE",100:"#CDEADE",200:"#9ED6BE",300:"#72C29E",400:"#4AAE80",500:"#20A56D",600:"#258A59",700:"#21794E",800:"#1D6844",900:"#19583A"};function hV({element:e}){const t=nr();if(!e.url&&!e.content)return null;const n=`${e.display}-audio`,r=e.url||URL.createObjectURL(new Blob([e.content],{type:"audio/mpeg"}));return C.jsxs(st,{className:n,children:[C.jsx(st,{sx:{fontSize:"14px",lineHeight:1.72,color:t.palette.mode==="dark"?gt[300]:gt[700],marginBottom:t.spacing(.5)},children:e.name}),C.jsx("audio",{controls:!0,src:r})]})}var RO={},zRe=Nn;Object.defineProperty(RO,"__esModule",{value:!0});var gV=RO.default=void 0,URe=zRe(Bn()),KRe=C,WRe=(0,URe.default)((0,KRe.jsx)("path",{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}),"AttachFile");gV=RO.default=WRe;const nS={fontFamily:["Inter","sans-serif"].join(",")},rS={MuiButton:{defaultProps:{disableElevation:!0,disableRipple:!0,sx:{textTransform:"none"}}},MuiLink:{defaultProps:{fontWeight:500}},MuiFormHelperText:{defaultProps:{sx:{m:0,fontWeight:400,color:gt[500]}}},MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:"black",color:"white"}}}},iS={borderRadius:8},mV={main:"rgba(25, 195, 125, 1)",contrastText:wl},vV={main:"rgba(239, 65, 70, 1)",contrastText:wl};var N6,B6,j6,z6,U6,K6,W6,V6,H6,q6,G6,Y6,X6;const VRe=ih({typography:nS,components:rS,shape:iS,palette:{mode:"dark",success:mV,error:vV,background:{default:((B6=(N6=window==null?void 0:window.theme)==null?void 0:N6.dark)==null?void 0:B6.background)||gt[850],paper:((z6=(j6=window==null?void 0:window.theme)==null?void 0:j6.dark)==null?void 0:z6.paper)||gt[900]},primary:{main:((W6=(K6=(U6=window==null?void 0:window.theme)==null?void 0:U6.dark)==null?void 0:K6.primary)==null?void 0:W6.main)||"#F80061",dark:((q6=(H6=(V6=window==null?void 0:window.theme)==null?void 0:V6.dark)==null?void 0:H6.primary)==null?void 0:q6.dark)||ks[800],light:((X6=(Y6=(G6=window==null?void 0:window.theme)==null?void 0:G6.dark)==null?void 0:Y6.primary)==null?void 0:X6.light)||"#FFE7EB",contrastText:wl},secondary:{main:"#9757D7",dark:"#763FB8",light:"#B87FE7",contrastText:wl},divider:gt[800],text:{primary:gt[200],secondary:gt[400]}}});var Z6,J6,Q6,eU,tU,nU,rU,iU,oU,aU,sU,lU,uU;const HRe=ih({typography:nS,components:rS,shape:iS,palette:{mode:"light",success:mV,error:vV,background:{default:((J6=(Z6=window==null?void 0:window.theme)==null?void 0:Z6.light)==null?void 0:J6.background)||gt[50],paper:((eU=(Q6=window==null?void 0:window.theme)==null?void 0:Q6.light)==null?void 0:eU.paper)||wl},primary:{main:((rU=(nU=(tU=window==null?void 0:window.theme)==null?void 0:tU.light)==null?void 0:nU.primary)==null?void 0:rU.main)||"#F80061",dark:((aU=(oU=(iU=window==null?void 0:window.theme)==null?void 0:iU.light)==null?void 0:oU.primary)==null?void 0:aU.dark)||ks[800],light:((uU=(lU=(sU=window==null?void 0:window.theme)==null?void 0:sU.light)==null?void 0:lU.primary)==null?void 0:uU.light)||"#FFE7EB",contrastText:wl},secondary:{main:"#9757D7",dark:"#763FB8",light:"#B87FE7",contrastText:wl},divider:gt[200],text:{primary:gt[900],secondary:gt[700]}}}),qRe=e=>e==="dark"?VRe:HRe,GRe=ih({typography:nS,components:rS,shape:iS,palette:{primary:{main:gt[700],contrastText:gt[100]}}}),YRe=ih({typography:nS,components:rS,shape:iS,palette:{primary:{main:gt[200],contrastText:gt[700]}}});function OO(e){const n=nr().palette.mode==="dark"?GRe:YRe;return C.jsx(GK,{theme:n,children:C.jsx(Cf,{...e})})}function yV({element:e}){if(!e.url&&!e.content)return null;const t=`${e.display}-file`,n=e.url||URL.createObjectURL(new Blob([e.content]));return C.jsx(OO,{disableElevation:!0,disableRipple:!0,sx:{textTransform:"none"},color:"primary",variant:"contained",className:t,startIcon:C.jsx(gV,{}),href:n,LinkComponent:({...r})=>C.jsx(ly,{download:e.name,...r}),children:e.name})}function XRe(e){return C.jsx(st,{sx:{p:1,boxSizing:"border-box",bgcolor:t=>t.palette.mode==="light"?gt[200]:gt[900],borderRadius:"4px",display:"flex"},children:e.children})}const ZRe=(e,t)=>{const n=document.createElement("a");n.href=t,n.target="_blank",n.download=e,n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)};function bV({element:e}){const t=e.url||URL.createObjectURL(new Blob([e.content])),n=`${e.display}-image`;return C.jsx(XRe,{children:C.jsx("img",{className:n,src:t,onClick:()=>{if(e.display==="inline"){const r=`${e.name}.png`;ZRe(r,t)}},style:{objectFit:"cover",maxWidth:"100%",margin:"auto",height:"auto",display:"block",cursor:e.display==="inline"?"pointer":"default"},alt:e.name,loading:"lazy"})})}function _V({element:e}){if(!e.url&&!e.content)return null;const t=`${e.display}-pdf`,n=e.url||URL.createObjectURL(new Blob([e.content],{type:"application/pdf"}));return C.jsx("iframe",{className:t,src:n,style:{border:"none"},width:"100%",height:"100%"})}/*!
|
|
375
|
-
* Determine if an object is a Buffer
|
|
376
|
-
*
|
|
377
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
378
|
-
* @license MIT
|
|
379
|
-
*/var JRe=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};const xV=bi(JRe);function Gm(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?UB(e.position):"start"in e||"end"in e?UB(e):"line"in e||"column"in e?t$(e):""}function t$(e){return KB(e&&e.line)+":"+KB(e&&e.column)}function UB(e){return t$(e&&e.start)+"-"+t$(e&&e.end)}function KB(e){return e&&typeof e=="number"?e:1}class ba extends Error{constructor(t,n,r){const i=[null,null];let o={start:{line:null,column:null},end:{line:null,column:null}};if(super(),typeof n=="string"&&(r=n,n=void 0),typeof r=="string"){const a=r.indexOf(":");a===-1?i[1]=r:(i[0]=r.slice(0,a),i[1]=r.slice(a+1))}n&&("type"in n||"position"in n?n.position&&(o=n.position):"start"in n||"end"in n?o=n:("line"in n||"column"in n)&&(o.start=n)),this.name=Gm(n)||"1:1",this.message=typeof t=="object"?t.message:t,this.stack="",typeof t=="object"&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=o.start.line,this.column=o.start.column,this.position=o,this.source=i[0],this.ruleId=i[1],this.file,this.actual,this.expected,this.url,this.note}}ba.prototype.file="";ba.prototype.name="";ba.prototype.reason="";ba.prototype.message="";ba.prototype.stack="";ba.prototype.fatal=null;ba.prototype.column=null;ba.prototype.line=null;ba.prototype.source=null;ba.prototype.ruleId=null;ba.prototype.position=null;const bs={basename:QRe,dirname:e2e,extname:t2e,join:n2e,sep:"/"};function QRe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');dy(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.charCodeAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(e.charCodeAt(i)===47){if(o){n=i+1;break}}else a<0&&(o=!0,a=i+1),s>-1&&(e.charCodeAt(i)===t.charCodeAt(s--)?s<0&&(r=i):(s=-1,r=a));return n===r?r=a:r<0&&(r=e.length),e.slice(n,r)}function e2e(e){if(dy(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.charCodeAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.charCodeAt(0)===47?"/":".":t===1&&e.charCodeAt(0)===47?"//":e.slice(0,t)}function t2e(e){dy(e);let t=e.length,n=-1,r=0,i=-1,o=0,a;for(;t--;){const s=e.charCodeAt(t);if(s===47){if(a){r=t+1;break}continue}n<0&&(a=!0,n=t+1),s===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function n2e(...e){let t=-1,n;for(;++t<e.length;)dy(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":r2e(n)}function r2e(e){dy(e);const t=e.charCodeAt(0)===47;let n=i2e(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function i2e(e,t){let n="",r=0,i=-1,o=0,a=-1,s,l;for(;++a<=e.length;){if(a<e.length)s=e.charCodeAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length>0){n="",r=0,i=a,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,a):n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o>-1?o++:o=-1}return n}function dy(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const o2e={cwd:a2e};function a2e(){return"/"}function n$(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function s2e(e){if(typeof e=="string")e=new URL(e);else if(!n$(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return l2e(e)}function l2e(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.charCodeAt(n)===37&&t.charCodeAt(n+1)===50){const r=t.charCodeAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const fk=["history","path","basename","stem","extname","dirname"];class wV{constructor(t){let n;t?typeof t=="string"||u2e(t)?n={value:t}:n$(t)?n={path:t}:n=t:n={},this.data={},this.messages=[],this.history=[],this.cwd=o2e.cwd(),this.value,this.stored,this.result,this.map;let r=-1;for(;++r<fk.length;){const o=fk[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)fk.includes(i)||(this[i]=n[i])}get path(){return this.history[this.history.length-1]}set path(t){n$(t)&&(t=s2e(t)),pk(t,"path"),this.path!==t&&this.history.push(t)}get dirname(){return typeof this.path=="string"?bs.dirname(this.path):void 0}set dirname(t){WB(this.basename,"dirname"),this.path=bs.join(t||"",this.basename)}get basename(){return typeof this.path=="string"?bs.basename(this.path):void 0}set basename(t){pk(t,"basename"),dk(t,"basename"),this.path=bs.join(this.dirname||"",t)}get extname(){return typeof this.path=="string"?bs.extname(this.path):void 0}set extname(t){if(dk(t,"extname"),WB(this.dirname,"extname"),t){if(t.charCodeAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=bs.join(this.dirname,this.stem+(t||""))}get stem(){return typeof this.path=="string"?bs.basename(this.path,this.extname):void 0}set stem(t){pk(t,"stem"),dk(t,"stem"),this.path=bs.join(this.dirname||"",t+(this.extname||""))}toString(t){return(this.value||"").toString(t||void 0)}message(t,n,r){const i=new ba(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=null,i}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}}function dk(e,t){if(e&&e.includes(bs.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+bs.sep+"`")}function pk(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function WB(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function u2e(e){return xV(e)}function VB(e){if(e)throw e}var Ob=Object.prototype.hasOwnProperty,SV=Object.prototype.toString,HB=Object.defineProperty,qB=Object.getOwnPropertyDescriptor,GB=function(t){return typeof Array.isArray=="function"?Array.isArray(t):SV.call(t)==="[object Array]"},YB=function(t){if(!t||SV.call(t)!=="[object Object]")return!1;var n=Ob.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Ob.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Ob.call(t,i)},XB=function(t,n){HB&&n.name==="__proto__"?HB(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},ZB=function(t,n){if(n==="__proto__")if(Ob.call(t,n)){if(qB)return qB(t,n).value}else return;return t[n]},c2e=function e(){var t,n,r,i,o,a,s=arguments[0],l=1,u=arguments.length,f=!1;for(typeof s=="boolean"&&(f=s,s=arguments[1]||{},l=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});l<u;++l)if(t=arguments[l],t!=null)for(n in t)r=ZB(s,n),i=ZB(t,n),s!==i&&(f&&i&&(YB(i)||(o=GB(i)))?(o?(o=!1,a=r&&GB(r)?r:[]):a=r&&YB(r)?r:{},XB(s,{name:n,newValue:e(f,a,i)})):typeof i<"u"&&XB(s,{name:n,newValue:i}));return s};const JB=bi(c2e);function r$(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function f2e(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);s(null,...i);function s(l,...u){const f=e[++o];let d=-1;if(l){a(l);return}for(;++d<i.length;)(u[d]===null||u[d]===void 0)&&(u[d]=i[d]);i=u,f?d2e(f,s)(...u):a(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function d2e(e,t){let n;return r;function r(...a){const s=e.length>a.length;let l;s&&a.push(i);try{l=e.apply(this,a)}catch(u){const f=u;if(s&&n)throw f;return i(f)}s||(l instanceof Promise?l.then(o,i):l instanceof Error?i(l):o(l))}function i(a,...s){n||(n=!0,t(a,...s))}function o(a){i(null,a)}}const p2e=EV().freeze(),CV={}.hasOwnProperty;function EV(){const e=f2e(),t=[];let n={},r,i=-1;return o.data=a,o.Parser=void 0,o.Compiler=void 0,o.freeze=s,o.attachers=t,o.use=l,o.parse=u,o.stringify=f,o.run=d,o.runSync=p,o.process=m,o.processSync=v,o;function o(){const y=EV();let w=-1;for(;++w<t.length;)y.use(...t[w]);return y.data(JB(!0,{},n)),y}function a(y,w){return typeof y=="string"?arguments.length===2?(mk("data",r),n[y]=w,o):CV.call(n,y)&&n[y]||null:y?(mk("data",r),n=y,o):n}function s(){if(r)return o;for(;++i<t.length;){const[y,...w]=t[i];if(w[0]===!1)continue;w[0]===!0&&(w[0]=void 0);const b=y.call(o,...w);typeof b=="function"&&e.use(b)}return r=!0,i=Number.POSITIVE_INFINITY,o}function l(y,...w){let b;if(mk("use",r),y!=null)if(typeof y=="function")A(y,...w);else if(typeof y=="object")Array.isArray(y)?k(y):S(y);else throw new TypeError("Expected usable value, not `"+y+"`");return b&&(n.settings=Object.assign(n.settings||{},b)),o;function x($){if(typeof $=="function")A($);else if(typeof $=="object")if(Array.isArray($)){const[I,...z]=$;A(I,...z)}else S($);else throw new TypeError("Expected usable value, not `"+$+"`")}function S($){k($.plugins),$.settings&&(b=Object.assign(b||{},$.settings))}function k($){let I=-1;if($!=null)if(Array.isArray($))for(;++I<$.length;){const z=$[I];x(z)}else throw new TypeError("Expected a list of plugins, not `"+$+"`")}function A($,I){let z=-1,K;for(;++z<t.length;)if(t[z][0]===$){K=t[z];break}K?(r$(K[1])&&r$(I)&&(I=JB(!0,K[1],I)),K[1]=I):t.push([...arguments])}}function u(y){o.freeze();const w=Jg(y),b=o.Parser;return hk("parse",b),QB(b,"parse")?new b(String(w),w).parse():b(String(w),w)}function f(y,w){o.freeze();const b=Jg(w),x=o.Compiler;return gk("stringify",x),e3(y),QB(x,"compile")?new x(y,b).compile():x(y,b)}function d(y,w,b){if(e3(y),o.freeze(),!b&&typeof w=="function"&&(b=w,w=void 0),!b)return new Promise(x);x(null,b);function x(S,k){e.run(y,Jg(w),A);function A($,I,z){I=I||y,$?k($):S?S(I):b(null,I,z)}}}function p(y,w){let b,x;return o.run(y,w,S),t3("runSync","run",x),b;function S(k,A){VB(k),b=A,x=!0}}function m(y,w){if(o.freeze(),hk("process",o.Parser),gk("process",o.Compiler),!w)return new Promise(b);b(null,w);function b(x,S){const k=Jg(y);o.run(o.parse(k),k,($,I,z)=>{if($||!I||!z)A($);else{const K=o.stringify(I,z);K==null||(m2e(K)?z.value=K:z.result=K),A($,z)}});function A($,I){$||!I?S($):x?x(I):w(null,I)}}}function v(y){let w;o.freeze(),hk("processSync",o.Parser),gk("processSync",o.Compiler);const b=Jg(y);return o.process(b,x),t3("processSync","process",w),b;function x(S){w=!0,VB(S)}}}function QB(e,t){return typeof e=="function"&&e.prototype&&(h2e(e.prototype)||t in e.prototype)}function h2e(e){let t;for(t in e)if(CV.call(e,t))return!0;return!1}function hk(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function gk(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function mk(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 e3(e){if(!r$(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function t3(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Jg(e){return g2e(e)?e:new wV(e)}function g2e(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function m2e(e){return typeof e=="string"||xV(e)}const v2e={};function y2e(e,t){const n=t||v2e,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return kV(e,r,i)}function kV(e,t,n){if(b2e(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return n3(e.children,t,n)}return Array.isArray(e)?n3(e,t,n):""}function n3(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=kV(e[i],t,n);return r.join("")}function b2e(e){return!!(e&&typeof e=="object")}function $o(e,t,n,r){const i=e.length;let o=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)a=Array.from(r),a.unshift(t,n),e.splice(...a);else for(n&&e.splice(t,n);o<r.length;)a=r.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function ta(e,t){return e.length>0?($o(e,e.length,0,t),e):t}const r3={}.hasOwnProperty;function TV(e){const t={};let n=-1;for(;++n<e.length;)_2e(t,e[n]);return t}function _2e(e,t){let n;for(n in t){const i=(r3.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){r3.call(i,a)||(i[a]=[]);const s=o[a];x2e(i[a],Array.isArray(s)?s:s?[s]:[])}}}function x2e(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);$o(e,0,0,r)}const w2e=/[!-\/:-@\[-`\{-~\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]/,$i=ec(/[A-Za-z]/),mi=ec(/[\dA-Za-z]/),S2e=ec(/[#-'*+\--9=?A-Z^-~]/);function z_(e){return e!==null&&(e<32||e===127)}const i$=ec(/\d/),C2e=ec(/[\dA-Fa-f]/),E2e=ec(/[!-/:-@[-`{-~]/);function kt(e){return e!==null&&e<-2}function Rn(e){return e!==null&&(e<0||e===32)}function Gt(e){return e===-2||e===-1||e===32}const oS=ec(w2e),df=ec(/\s/);function ec(e){return t;function t(n){return n!==null&&e.test(String.fromCharCode(n))}}function on(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return Gt(l)?(e.enter(n),s(l)):t(l)}function s(l){return Gt(l)&&o++<i?(e.consume(l),s):(e.exit(n),t(l))}}const k2e={tokenize:T2e};function T2e(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),on(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),o(s)}function o(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,a(s)}function a(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return kt(s)?(e.consume(s),e.exit("chunkText"),o):(e.consume(s),a)}}const A2e={tokenize:$2e},i3={tokenize:R2e};function $2e(e){const t=this,n=[];let r=0,i,o,a;return s;function s(S){if(r<n.length){const k=n[r];return t.containerState=k[1],e.attempt(k[0].continuation,l,u)(S)}return u(S)}function l(S){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&x();const k=t.events.length;let A=k,$;for(;A--;)if(t.events[A][0]==="exit"&&t.events[A][1].type==="chunkFlow"){$=t.events[A][1].end;break}b(r);let I=k;for(;I<t.events.length;)t.events[I][1].end=Object.assign({},$),I++;return $o(t.events,A+1,0,t.events.slice(k)),t.events.length=I,u(S)}return s(S)}function u(S){if(r===n.length){if(!i)return p(S);if(i.currentConstruct&&i.currentConstruct.concrete)return v(S);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(i3,f,d)(S)}function f(S){return i&&x(),b(r),p(S)}function d(S){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,v(S)}function p(S){return t.containerState={},e.attempt(i3,m,v)(S)}function m(S){return r++,n.push([t.currentConstruct,t.containerState]),p(S)}function v(S){if(S===null){i&&x(),b(0),e.consume(S);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:i}),y(S)}function y(S){if(S===null){w(e.exit("chunkFlow"),!0),b(0),e.consume(S);return}return kt(S)?(e.consume(S),w(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(S),y)}function w(S,k){const A=t.sliceStream(S);if(k&&A.push(null),S.previous=o,o&&(o.next=S),o=S,i.defineSkip(S.start),i.write(A),t.parser.lazy[S.start.line]){let $=i.events.length;for(;$--;)if(i.events[$][1].start.offset<a&&(!i.events[$][1].end||i.events[$][1].end.offset>a))return;const I=t.events.length;let z=I,K,D;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){if(K){D=t.events[z][1].end;break}K=!0}for(b(r),$=I;$<t.events.length;)t.events[$][1].end=Object.assign({},D),$++;$o(t.events,z+1,0,t.events.slice(I)),t.events.length=$}}function b(S){let k=n.length;for(;k-- >S;){const A=n[k];t.containerState=A[1],A[0].exit.call(t,e)}n.length=S}function x(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function R2e(e,t,n){return on(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function U_(e){if(e===null||Rn(e)||df(e))return 1;if(oS(e))return 2}function aS(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const o$={name:"attention",tokenize:I2e,resolveAll:O2e};function O2e(e,t){let n=-1,r,i,o,a,s,l,u,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),p=Object.assign({},e[n][1].start);o3(d,-l),o3(p,l),a={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:p},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},s.end)},e[r][1].end=Object.assign({},a.start),e[n][1].start=Object.assign({},s.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=ta(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=ta(u,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),u=ta(u,aS(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=ta(u,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,u=ta(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,$o(e,r-1,n-r+3,u),n=r+u.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function I2e(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=U_(r);let o;return a;function a(l){return o=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===o)return e.consume(l),s;const u=e.exit("attentionSequence"),f=U_(l),d=!f||f===2&&i||n.includes(l),p=!i||i===2&&f||n.includes(r);return u._open=!!(o===42?d:d&&(i||!p)),u._close=!!(o===42?p:p&&(f||!d)),t(l)}}function o3(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const D2e={name:"autolink",tokenize:P2e};function P2e(e,t,n){let r=0;return i;function i(m){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(m){return $i(m)?(e.consume(m),a):u(m)}function a(m){return m===43||m===45||m===46||mi(m)?(r=1,s(m)):u(m)}function s(m){return m===58?(e.consume(m),r=0,l):(m===43||m===45||m===46||mi(m))&&r++<32?(e.consume(m),s):(r=0,u(m))}function l(m){return m===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):m===null||m===32||m===60||z_(m)?n(m):(e.consume(m),l)}function u(m){return m===64?(e.consume(m),f):S2e(m)?(e.consume(m),u):n(m)}function f(m){return mi(m)?d(m):n(m)}function d(m){return m===46?(e.consume(m),r=0,f):m===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(m),e.exit("autolinkMarker"),e.exit("autolink"),t):p(m)}function p(m){if((m===45||mi(m))&&r++<63){const v=m===45?p:d;return e.consume(m),v}return n(m)}}const py={tokenize:L2e,partial:!0};function L2e(e,t,n){return r;function r(o){return Gt(o)?on(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||kt(o)?t(o):n(o)}}const AV={name:"blockQuote",tokenize:M2e,continuation:{tokenize:F2e},exit:N2e};function M2e(e,t,n){const r=this;return i;function i(a){if(a===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),o}return n(a)}function o(a){return Gt(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function F2e(e,t,n){const r=this;return i;function i(a){return Gt(a)?on(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return e.attempt(AV,t,n)(a)}}function N2e(e){e.exit("blockQuote")}const $V={name:"characterEscape",tokenize:B2e};function B2e(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return E2e(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const a3=document.createElement("i");function IO(e){const t="&"+e+";";a3.innerHTML=t;const n=a3.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const RV={name:"characterReference",tokenize:j2e};function j2e(e,t,n){const r=this;let i=0,o,a;return s;function s(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,a=mi,f(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=C2e,f):(e.enter("characterReferenceValue"),o=7,a=i$,f(d))}function f(d){if(d===59&&i){const p=e.exit("characterReferenceValue");return a===mi&&!IO(r.sliceSerialize(p))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(d)&&i++<o?(e.consume(d),f):n(d)}}const s3={tokenize:U2e,partial:!0},l3={name:"codeFenced",tokenize:z2e,concrete:!0};function z2e(e,t,n){const r=this,i={tokenize:A,partial:!0};let o=0,a=0,s;return l;function l($){return u($)}function u($){const I=r.events[r.events.length-1];return o=I&&I[1].type==="linePrefix"?I[2].sliceSerialize(I[1],!0).length:0,s=$,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f($)}function f($){return $===s?(a++,e.consume($),f):a<3?n($):(e.exit("codeFencedFenceSequence"),Gt($)?on(e,d,"whitespace")($):d($))}function d($){return $===null||kt($)?(e.exit("codeFencedFence"),r.interrupt?t($):e.check(s3,y,k)($)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p($))}function p($){return $===null||kt($)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d($)):Gt($)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),on(e,m,"whitespace")($)):$===96&&$===s?n($):(e.consume($),p)}function m($){return $===null||kt($)?d($):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v($))}function v($){return $===null||kt($)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d($)):$===96&&$===s?n($):(e.consume($),v)}function y($){return e.attempt(i,k,w)($)}function w($){return e.enter("lineEnding"),e.consume($),e.exit("lineEnding"),b}function b($){return o>0&&Gt($)?on(e,x,"linePrefix",o+1)($):x($)}function x($){return $===null||kt($)?e.check(s3,y,k)($):(e.enter("codeFlowValue"),S($))}function S($){return $===null||kt($)?(e.exit("codeFlowValue"),x($)):(e.consume($),S)}function k($){return e.exit("codeFenced"),t($)}function A($,I,z){let K=0;return D;function D(G){return $.enter("lineEnding"),$.consume(G),$.exit("lineEnding"),W}function W(G){return $.enter("codeFencedFence"),Gt(G)?on($,ie,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(G):ie(G)}function ie(G){return G===s?($.enter("codeFencedFenceSequence"),ae(G)):z(G)}function ae(G){return G===s?(K++,$.consume(G),ae):K>=a?($.exit("codeFencedFenceSequence"),Gt(G)?on($,q,"whitespace")(G):q(G)):z(G)}function q(G){return G===null||kt(G)?($.exit("codeFencedFence"),I(G)):z(G)}}}function U2e(e,t,n){const r=this;return i;function i(a){return a===null?n(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}const vk={name:"codeIndented",tokenize:W2e},K2e={tokenize:V2e,partial:!0};function W2e(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),on(e,o,"linePrefix",4+1)(u)}function o(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?a(u):n(u)}function a(u){return u===null?l(u):kt(u)?e.attempt(K2e,a,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||kt(u)?(e.exit("codeFlowValue"),a(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function V2e(e,t,n){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?n(a):kt(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):on(e,o,"linePrefix",4+1)(a)}function o(a){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):kt(a)?i(a):n(a)}}const H2e={name:"codeText",tokenize:Y2e,resolve:q2e,previous:G2e};function q2e(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function G2e(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Y2e(e,t,n){let r=0,i,o;return a;function a(d){return e.enter("codeText"),e.enter("codeTextSequence"),s(d)}function s(d){return d===96?(e.consume(d),r++,s):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(o=e.enter("codeTextSequence"),i=0,f(d)):kt(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(d))}function u(d){return d===null||d===32||d===96||kt(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),u)}function f(d){return d===96?(e.consume(d),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(o.type="codeTextData",u(d))}}function OV(e){const t={};let n=-1,r,i,o,a,s,l,u;for(;++n<e.length;){for(;n in t;)n=t[n];if(r=e[n],n&&r[1].type==="chunkFlow"&&e[n-1][1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,X2e(e,n)),n=t[n],u=!0);else if(r[1]._container){for(o=n,i=void 0;o--&&(a=e[o],a[1].type==="lineEnding"||a[1].type==="lineEndingBlank");)a[0]==="enter"&&(i&&(e[i][1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);i&&(r[1].end=Object.assign({},e[i][1].start),s=e.slice(i,n),s.unshift(r),$o(e,i,n-i+1,s))}}return!u}function X2e(e,t){const n=e[t][1],r=e[t][2];let i=t-1;const o=[],a=n._tokenizer||r.parser[n.contentType](n.start),s=a.events,l=[],u={};let f,d,p=-1,m=n,v=0,y=0;const w=[y];for(;m;){for(;e[++i][1]!==m;);o.push(i),m._tokenizer||(f=r.sliceStream(m),m.next||f.push(null),d&&a.defineSkip(m.start),m._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(f),m._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=m,m=m.next}for(m=n;++p<s.length;)s[p][0]==="exit"&&s[p-1][0]==="enter"&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(y=p+1,w.push(y),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(a.events=[],m?(m._tokenizer=void 0,m.previous=void 0):w.pop(),p=w.length;p--;){const b=s.slice(w[p],w[p+1]),x=o.pop();l.unshift([x,x+b.length-1]),$o(e,x,2,b)}for(p=-1;++p<l.length;)u[v+l[p][0]]=v+l[p][1],v+=l[p][1]-l[p][0]-1;return u}const Z2e={tokenize:eOe,resolve:Q2e},J2e={tokenize:tOe,partial:!0};function Q2e(e){return OV(e),e}function eOe(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?o(s):kt(s)?e.check(J2e,a,o)(s):(e.consume(s),i)}function o(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function a(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function tOe(e,t,n){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),on(e,o,"linePrefix")}function o(a){if(a===null||kt(a))return n(a);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}function IV(e,t,n,r,i,o,a,s,l){const u=l||Number.POSITIVE_INFINITY;let f=0;return d;function d(b){return b===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(b),e.exit(o),p):b===null||b===32||b===41||z_(b)?n(b):(e.enter(r),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),y(b))}function p(b){return b===62?(e.enter(o),e.consume(b),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),m(b))}function m(b){return b===62?(e.exit("chunkString"),e.exit(s),p(b)):b===null||b===60||kt(b)?n(b):(e.consume(b),b===92?v:m)}function v(b){return b===60||b===62||b===92?(e.consume(b),m):m(b)}function y(b){return!f&&(b===null||b===41||Rn(b))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(b)):f<u&&b===40?(e.consume(b),f++,y):b===41?(e.consume(b),f--,y):b===null||b===32||b===40||z_(b)?n(b):(e.consume(b),b===92?w:y)}function w(b){return b===40||b===41||b===92?(e.consume(b),y):y(b)}}function DV(e,t,n,r,i,o){const a=this;let s=0,l;return u;function u(m){return e.enter(r),e.enter(i),e.consume(m),e.exit(i),e.enter(o),f}function f(m){return s>999||m===null||m===91||m===93&&!l||m===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(m):m===93?(e.exit(o),e.enter(i),e.consume(m),e.exit(i),e.exit(r),t):kt(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===null||m===91||m===93||kt(m)||s++>999?(e.exit("chunkString"),f(m)):(e.consume(m),l||(l=!Gt(m)),m===92?p:d)}function p(m){return m===91||m===92||m===93?(e.consume(m),s++,d):d(m)}}function PV(e,t,n,r,i,o){let a;return s;function s(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),a=p===40?41:p,l):n(p)}function l(p){return p===a?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(o),u(p))}function u(p){return p===a?(e.exit(o),l(a)):p===null?n(p):kt(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),on(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===a||p===null||kt(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?d:f)}function d(p){return p===a||p===92?(e.consume(p),f):f(p)}}function Ym(e,t){let n;return r;function r(i){return kt(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Gt(i)?on(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function Ya(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const nOe={name:"definition",tokenize:iOe},rOe={tokenize:oOe,partial:!0};function iOe(e,t,n){const r=this;let i;return o;function o(m){return e.enter("definition"),a(m)}function a(m){return DV.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(m)}function s(m){return i=Ya(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),l):n(m)}function l(m){return Rn(m)?Ym(e,u)(m):u(m)}function u(m){return IV(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(m)}function f(m){return e.attempt(rOe,d,d)(m)}function d(m){return Gt(m)?on(e,p,"whitespace")(m):p(m)}function p(m){return m===null||kt(m)?(e.exit("definition"),r.parser.defined.push(i),t(m)):n(m)}}function oOe(e,t,n){return r;function r(s){return Rn(s)?Ym(e,i)(s):n(s)}function i(s){return PV(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return Gt(s)?on(e,a,"whitespace")(s):a(s)}function a(s){return s===null||kt(s)?t(s):n(s)}}const aOe={name:"hardBreakEscape",tokenize:sOe};function sOe(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return kt(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const lOe={name:"headingAtx",tokenize:cOe,resolve:uOe};function uOe(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},$o(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function cOe(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),a(f)}function a(f){return f===35&&r++<6?(e.consume(f),a):f===null||Rn(f)?(e.exit("atxHeadingSequence"),s(f)):n(f)}function s(f){return f===35?(e.enter("atxHeadingSequence"),l(f)):f===null||kt(f)?(e.exit("atxHeading"),t(f)):Gt(f)?on(e,s,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function l(f){return f===35?(e.consume(f),l):(e.exit("atxHeadingSequence"),s(f))}function u(f){return f===null||f===35||Rn(f)?(e.exit("atxHeadingText"),s(f)):(e.consume(f),u)}}const fOe=["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"],u3=["pre","script","style","textarea"],dOe={name:"htmlFlow",tokenize:mOe,resolveTo:gOe,concrete:!0},pOe={tokenize:yOe,partial:!0},hOe={tokenize:vOe,partial:!0};function gOe(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function mOe(e,t,n){const r=this;let i,o,a,s,l;return u;function u(L){return f(L)}function f(L){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(L),d}function d(L){return L===33?(e.consume(L),p):L===47?(e.consume(L),o=!0,y):L===63?(e.consume(L),i=3,r.interrupt?t:P):$i(L)?(e.consume(L),a=String.fromCharCode(L),w):n(L)}function p(L){return L===45?(e.consume(L),i=2,m):L===91?(e.consume(L),i=5,s=0,v):$i(L)?(e.consume(L),i=4,r.interrupt?t:P):n(L)}function m(L){return L===45?(e.consume(L),r.interrupt?t:P):n(L)}function v(L){const oe="CDATA[";return L===oe.charCodeAt(s++)?(e.consume(L),s===oe.length?r.interrupt?t:ie:v):n(L)}function y(L){return $i(L)?(e.consume(L),a=String.fromCharCode(L),w):n(L)}function w(L){if(L===null||L===47||L===62||Rn(L)){const oe=L===47,ue=a.toLowerCase();return!oe&&!o&&u3.includes(ue)?(i=1,r.interrupt?t(L):ie(L)):fOe.includes(a.toLowerCase())?(i=6,oe?(e.consume(L),b):r.interrupt?t(L):ie(L)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(L):o?x(L):S(L))}return L===45||mi(L)?(e.consume(L),a+=String.fromCharCode(L),w):n(L)}function b(L){return L===62?(e.consume(L),r.interrupt?t:ie):n(L)}function x(L){return Gt(L)?(e.consume(L),x):D(L)}function S(L){return L===47?(e.consume(L),D):L===58||L===95||$i(L)?(e.consume(L),k):Gt(L)?(e.consume(L),S):D(L)}function k(L){return L===45||L===46||L===58||L===95||mi(L)?(e.consume(L),k):A(L)}function A(L){return L===61?(e.consume(L),$):Gt(L)?(e.consume(L),A):S(L)}function $(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),l=L,I):Gt(L)?(e.consume(L),$):z(L)}function I(L){return L===l?(e.consume(L),l=null,K):L===null||kt(L)?n(L):(e.consume(L),I)}function z(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||Rn(L)?A(L):(e.consume(L),z)}function K(L){return L===47||L===62||Gt(L)?S(L):n(L)}function D(L){return L===62?(e.consume(L),W):n(L)}function W(L){return L===null||kt(L)?ie(L):Gt(L)?(e.consume(L),W):n(L)}function ie(L){return L===45&&i===2?(e.consume(L),J):L===60&&i===1?(e.consume(L),le):L===62&&i===4?(e.consume(L),me):L===63&&i===3?(e.consume(L),P):L===93&&i===5?(e.consume(L),te):kt(L)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(pOe,j,ae)(L)):L===null||kt(L)?(e.exit("htmlFlowData"),ae(L)):(e.consume(L),ie)}function ae(L){return e.check(hOe,q,j)(L)}function q(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),G}function G(L){return L===null||kt(L)?ae(L):(e.enter("htmlFlowData"),ie(L))}function J(L){return L===45?(e.consume(L),P):ie(L)}function le(L){return L===47?(e.consume(L),a="",Q):ie(L)}function Q(L){if(L===62){const oe=a.toLowerCase();return u3.includes(oe)?(e.consume(L),me):ie(L)}return $i(L)&&a.length<8?(e.consume(L),a+=String.fromCharCode(L),Q):ie(L)}function te(L){return L===93?(e.consume(L),P):ie(L)}function P(L){return L===62?(e.consume(L),me):L===45&&i===2?(e.consume(L),P):ie(L)}function me(L){return L===null||kt(L)?(e.exit("htmlFlowData"),j(L)):(e.consume(L),me)}function j(L){return e.exit("htmlFlow"),t(L)}}function vOe(e,t,n){const r=this;return i;function i(a){return kt(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):n(a)}function o(a){return r.parser.lazy[r.now().line]?n(a):t(a)}}function yOe(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(py,t,n)}}const bOe={name:"htmlText",tokenize:_Oe};function _Oe(e,t,n){const r=this;let i,o,a;return s;function s(P){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(P),l}function l(P){return P===33?(e.consume(P),u):P===47?(e.consume(P),A):P===63?(e.consume(P),S):$i(P)?(e.consume(P),z):n(P)}function u(P){return P===45?(e.consume(P),f):P===91?(e.consume(P),o=0,v):$i(P)?(e.consume(P),x):n(P)}function f(P){return P===45?(e.consume(P),m):n(P)}function d(P){return P===null?n(P):P===45?(e.consume(P),p):kt(P)?(a=d,le(P)):(e.consume(P),d)}function p(P){return P===45?(e.consume(P),m):d(P)}function m(P){return P===62?J(P):P===45?p(P):d(P)}function v(P){const me="CDATA[";return P===me.charCodeAt(o++)?(e.consume(P),o===me.length?y:v):n(P)}function y(P){return P===null?n(P):P===93?(e.consume(P),w):kt(P)?(a=y,le(P)):(e.consume(P),y)}function w(P){return P===93?(e.consume(P),b):y(P)}function b(P){return P===62?J(P):P===93?(e.consume(P),b):y(P)}function x(P){return P===null||P===62?J(P):kt(P)?(a=x,le(P)):(e.consume(P),x)}function S(P){return P===null?n(P):P===63?(e.consume(P),k):kt(P)?(a=S,le(P)):(e.consume(P),S)}function k(P){return P===62?J(P):S(P)}function A(P){return $i(P)?(e.consume(P),$):n(P)}function $(P){return P===45||mi(P)?(e.consume(P),$):I(P)}function I(P){return kt(P)?(a=I,le(P)):Gt(P)?(e.consume(P),I):J(P)}function z(P){return P===45||mi(P)?(e.consume(P),z):P===47||P===62||Rn(P)?K(P):n(P)}function K(P){return P===47?(e.consume(P),J):P===58||P===95||$i(P)?(e.consume(P),D):kt(P)?(a=K,le(P)):Gt(P)?(e.consume(P),K):J(P)}function D(P){return P===45||P===46||P===58||P===95||mi(P)?(e.consume(P),D):W(P)}function W(P){return P===61?(e.consume(P),ie):kt(P)?(a=W,le(P)):Gt(P)?(e.consume(P),W):K(P)}function ie(P){return P===null||P===60||P===61||P===62||P===96?n(P):P===34||P===39?(e.consume(P),i=P,ae):kt(P)?(a=ie,le(P)):Gt(P)?(e.consume(P),ie):(e.consume(P),q)}function ae(P){return P===i?(e.consume(P),i=void 0,G):P===null?n(P):kt(P)?(a=ae,le(P)):(e.consume(P),ae)}function q(P){return P===null||P===34||P===39||P===60||P===61||P===96?n(P):P===47||P===62||Rn(P)?K(P):(e.consume(P),q)}function G(P){return P===47||P===62||Rn(P)?K(P):n(P)}function J(P){return P===62?(e.consume(P),e.exit("htmlTextData"),e.exit("htmlText"),t):n(P)}function le(P){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),Q}function Q(P){return Gt(P)?on(e,te,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):te(P)}function te(P){return e.enter("htmlTextData"),a(P)}}const DO={name:"labelEnd",tokenize:kOe,resolveTo:EOe,resolveAll:COe},xOe={tokenize:TOe},wOe={tokenize:AOe},SOe={tokenize:$Oe};function COe(e){let t=-1;for(;++t<e.length;){const n=e[t][1];(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(e.splice(t+1,n.type==="labelImage"?4:2),n.type="data",t++)}return e}function EOe(e,t){let n=e.length,r=0,i,o,a,s;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=n);const l={type:e[o][1].type==="labelLink"?"link":"image",start:Object.assign({},e[o][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"label",start:Object.assign({},e[o][1].start),end:Object.assign({},e[a][1].end)},f={type:"labelText",start:Object.assign({},e[o+r+2][1].end),end:Object.assign({},e[a-2][1].start)};return s=[["enter",l,t],["enter",u,t]],s=ta(s,e.slice(o+1,o+r+3)),s=ta(s,[["enter",f,t]]),s=ta(s,aS(t.parser.constructs.insideSpan.null,e.slice(o+r+4,a-3),t)),s=ta(s,[["exit",f,t],e[a-2],e[a-1],["exit",u,t]]),s=ta(s,e.slice(a+1)),s=ta(s,[["exit",l,t]]),$o(e,o,e.length,s),e}function kOe(e,t,n){const r=this;let i=r.events.length,o,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return s;function s(p){return o?o._inactive?d(p):(a=r.parser.defined.includes(Ya(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):n(p)}function l(p){return p===40?e.attempt(xOe,f,a?f:d)(p):p===91?e.attempt(wOe,f,a?u:d)(p):a?f(p):d(p)}function u(p){return e.attempt(SOe,f,d)(p)}function f(p){return t(p)}function d(p){return o._balanced=!0,n(p)}}function TOe(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return Rn(d)?Ym(e,o)(d):o(d)}function o(d){return d===41?f(d):IV(e,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function a(d){return Rn(d)?Ym(e,l)(d):f(d)}function s(d){return n(d)}function l(d){return d===34||d===39||d===40?PV(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):f(d)}function u(d){return Rn(d)?Ym(e,f)(d):f(d)}function f(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function AOe(e,t,n){const r=this;return i;function i(s){return DV.call(r,e,o,a,"reference","referenceMarker","referenceString")(s)}function o(s){return r.parser.defined.includes(Ya(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function a(s){return n(s)}}function $Oe(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const ROe={name:"labelStartImage",tokenize:OOe,resolveAll:DO.resolveAll};function OOe(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),o}function o(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),a):n(s)}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const IOe={name:"labelStartLink",tokenize:DOe,resolveAll:DO.resolveAll};function DOe(e,t,n){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const yk={name:"lineEnding",tokenize:POe};function POe(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),on(e,t,"linePrefix")}}const Ib={name:"thematicBreak",tokenize:LOe};function LOe(e,t,n){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),a(u)}function a(u){return i=u,s(u)}function s(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||kt(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),Gt(u)?on(e,s,"whitespace")(u):s(u))}}const Ki={name:"list",tokenize:NOe,continuation:{tokenize:BOe},exit:zOe},MOe={tokenize:UOe,partial:!0},FOe={tokenize:jOe,partial:!0};function NOe(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(m){const v=r.containerState.type||(m===42||m===43||m===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!r.containerState.marker||m===r.containerState.marker:i$(m)){if(r.containerState.type||(r.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),m===42||m===45?e.check(Ib,n,u)(m):u(m);if(!r.interrupt||m===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(m)}return n(m)}function l(m){return i$(m)&&++a<10?(e.consume(m),l):(!r.interrupt||a<2)&&(r.containerState.marker?m===r.containerState.marker:m===41||m===46)?(e.exit("listItemValue"),u(m)):n(m)}function u(m){return e.enter("listItemMarker"),e.consume(m),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||m,e.check(py,r.interrupt?n:f,e.attempt(MOe,p,d))}function f(m){return r.containerState.initialBlankLine=!0,o++,p(m)}function d(m){return Gt(m)?(e.enter("listItemPrefixWhitespace"),e.consume(m),e.exit("listItemPrefixWhitespace"),p):n(m)}function p(m){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(m)}}function BOe(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(py,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,on(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!Gt(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(FOe,t,a)(s))}function a(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,on(e,e.attempt(Ki,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function jOe(e,t,n){const r=this;return on(e,i,"listItemIndent",r.containerState.size+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(o):n(o)}}function zOe(e){e.exit(this.containerState.type)}function UOe(e,t,n){const r=this;return on(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(o){const a=r.events[r.events.length-1];return!Gt(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const c3={name:"setextUnderline",tokenize:WOe,resolveTo:KOe};function KOe(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const a={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[o][1].end)):e[r][1]=a,e.push(["exit",a,t]),e}function WOe(e,t,n){const r=this;let i;return o;function o(u){let f=r.events.length,d;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){d=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=u,a(u)):n(u)}function a(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),Gt(u)?on(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||kt(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const VOe={tokenize:HOe};function HOe(e){const t=this,n=e.attempt(py,r,e.attempt(this.parser.constructs.flowInitial,i,on(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Z2e,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const qOe={resolveAll:MV()},GOe=LV("string"),YOe=LV("text");function LV(e){return{tokenize:t,resolveAll:MV(e==="text"?XOe:void 0)};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,a,s);return a;function a(f){return u(f)?o(f):s(f)}function s(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),l}function l(f){return u(f)?(n.exit("data"),o(f)):(n.consume(f),l)}function u(f){if(f===null)return!0;const d=i[f];let p=-1;if(d)for(;++p<d.length;){const m=d[p];if(!m.previous||m.previous.call(r,r.previous))return!0}return!1}}}function MV(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function XOe(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,a=-1,s=0,l;for(;o--;){const u=i[o];if(typeof u=="string"){for(a=u.length;u.charCodeAt(a-1)===32;)s++,a--;if(a)break;a=-1}else if(u===-2)l=!0,s++;else if(u!==-1){o++;break}}if(s){const u={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-s,offset:r.end.offset-s,_index:r.start._index+o,_bufferIndex:o?a:r.start._bufferIndex+a},end:Object.assign({},r.end)};r.end=Object.assign({},u.start),r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}function ZOe(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},o=[];let a=[],s=[];const l={consume:x,enter:S,exit:k,attempt:I(A),check:I($),interrupt:I($,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:m,sliceSerialize:p,now:v,defineSkip:y,write:d};let f=t.tokenize.call(u,l);return t.resolveAll&&o.push(t),u;function d(W){return a=ta(a,W),w(),a[a.length-1]!==null?[]:(z(t,0),u.events=aS(o,u.events,u),u.events)}function p(W,ie){return QOe(m(W),ie)}function m(W){return JOe(a,W)}function v(){const{line:W,column:ie,offset:ae,_index:q,_bufferIndex:G}=r;return{line:W,column:ie,offset:ae,_index:q,_bufferIndex:G}}function y(W){i[W.line]=W.column,D()}function w(){let W;for(;r._index<a.length;){const ie=a[r._index];if(typeof ie=="string")for(W=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===W&&r._bufferIndex<ie.length;)b(ie.charCodeAt(r._bufferIndex));else b(ie)}}function b(W){f=f(W)}function x(W){kt(W)?(r.line++,r.column=1,r.offset+=W===-3?2:1,D()):W!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=W}function S(W,ie){const ae=ie||{};return ae.type=W,ae.start=v(),u.events.push(["enter",ae,u]),s.push(ae),ae}function k(W){const ie=s.pop();return ie.end=v(),u.events.push(["exit",ie,u]),ie}function A(W,ie){z(W,ie.from)}function $(W,ie){ie.restore()}function I(W,ie){return ae;function ae(q,G,J){let le,Q,te,P;return Array.isArray(q)?j(q):"tokenize"in q?j([q]):me(q);function me(se){return Ee;function Ee(Re){const ke=Re!==null&&se[Re],De=Re!==null&&se.null,Me=[...Array.isArray(ke)?ke:ke?[ke]:[],...Array.isArray(De)?De:De?[De]:[]];return j(Me)(Re)}}function j(se){return le=se,Q=0,se.length===0?J:L(se[Q])}function L(se){return Ee;function Ee(Re){return P=K(),te=se,se.partial||(u.currentConstruct=se),se.name&&u.parser.constructs.disable.null.includes(se.name)?ue():se.tokenize.call(ie?Object.assign(Object.create(u),ie):u,l,oe,ue)(Re)}}function oe(se){return W(te,P),G}function ue(se){return P.restore(),++Q<le.length?L(le[Q]):J}}}function z(W,ie){W.resolveAll&&!o.includes(W)&&o.push(W),W.resolve&&$o(u.events,ie,u.events.length-ie,W.resolve(u.events.slice(ie),u)),W.resolveTo&&(u.events=W.resolveTo(u.events,u))}function K(){const W=v(),ie=u.previous,ae=u.currentConstruct,q=u.events.length,G=Array.from(s);return{restore:J,from:q};function J(){r=W,u.previous=ie,u.currentConstruct=ae,u.events.length=q,s=G,D()}}function D(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function JOe(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(n===i)a=[e[n].slice(r,o)];else{if(a=e.slice(n,i),r>-1){const s=a[0];typeof s=="string"?a[0]=s.slice(r):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function QOe(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=`
|
|
380
|
-
`;break}case-3:{a=`\r
|
|
381
|
-
`;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,r.push(a)}return r.join("")}const eIe={[42]:Ki,[43]:Ki,[45]:Ki,[48]:Ki,[49]:Ki,[50]:Ki,[51]:Ki,[52]:Ki,[53]:Ki,[54]:Ki,[55]:Ki,[56]:Ki,[57]:Ki,[62]:AV},tIe={[91]:nOe},nIe={[-2]:vk,[-1]:vk,[32]:vk},rIe={[35]:lOe,[42]:Ib,[45]:[c3,Ib],[60]:dOe,[61]:c3,[95]:Ib,[96]:l3,[126]:l3},iIe={[38]:RV,[92]:$V},oIe={[-5]:yk,[-4]:yk,[-3]:yk,[33]:ROe,[38]:RV,[42]:o$,[60]:[D2e,bOe],[91]:IOe,[92]:[aOe,$V],[93]:DO,[95]:o$,[96]:H2e},aIe={null:[o$,qOe]},sIe={null:[42,95]},lIe={null:[]},uIe=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:sIe,contentInitial:tIe,disable:lIe,document:eIe,flow:rIe,flowInitial:nIe,insideSpan:aIe,string:iIe,text:oIe},Symbol.toStringTag,{value:"Module"}));function cIe(e){const n=TV([uIe,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:i(k2e),document:i(A2e),flow:i(VOe),string:i(GOe),text:i(YOe)};return r;function i(o){return a;function a(s){return ZOe(r,o,s)}}}const f3=/[\0\t\n\r]/g;function fIe(){let e=1,t="",n=!0,r;return i;function i(o,a,s){const l=[];let u,f,d,p,m;for(o=t+o.toString(a),d=0,t="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if(f3.lastIndex=d,u=f3.exec(o),p=u&&u.index!==void 0?u.index:o.length,m=o.charCodeAt(p),!u){t=o.slice(d);break}if(m===10&&d===p&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<p&&(l.push(o.slice(d,p)),e+=p-d),m){case 0:{l.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,l.push(-2);e++<f;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}d=p+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}function dIe(e){for(;!OV(e););return e}function FV(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCharCode(n)}const pIe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function NV(e){return e.replace(pIe,hIe)}function hIe(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return FV(n.slice(o?2:1),o?16:10)}return IO(n)||e}const BV={}.hasOwnProperty,gIe=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),mIe(n)(dIe(cIe(n).document().write(fIe()(e,t,!0))))};function mIe(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ge),autolinkProtocol:W,autolinkEmail:W,atxHeading:s(lt),blockQuote:s(Me),characterEscape:W,characterReference:W,codeFenced:s(Be),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(Be,l),codeText:s(Ue,l),codeTextData:W,data:W,codeFlowValue:W,definition:s(Ke),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(He),hardBreakEscape:s(Xe),hardBreakTrailing:s(Xe),htmlFlow:s(nt,l),htmlFlowData:W,htmlText:s(nt,l),htmlTextData:W,image:s(mt),label:l,link:s(ge),listItem:s(Te),listItemValue:v,listOrdered:s($e,m),listUnordered:s($e),paragraph:s(Pe),reference:ue,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(lt),strong:s(U),thematicBreak:s(de)},exit:{atxHeading:f(),atxHeadingSequence:I,autolink:f(),autolinkEmail:De,autolinkProtocol:ke,blockQuote:f(),characterEscapeValue:ie,characterReferenceMarkerHexadecimal:Ee,characterReferenceMarkerNumeric:Ee,characterReferenceValue:Re,codeFenced:f(x),codeFencedFence:b,codeFencedFenceInfo:y,codeFencedFenceMeta:w,codeFlowValue:ie,codeIndented:f(S),codeText:f(le),codeTextData:ie,data:ie,definition:f(),definitionDestinationString:$,definitionLabelString:k,definitionTitleString:A,emphasis:f(),hardBreakEscape:f(q),hardBreakTrailing:f(q),htmlFlow:f(G),htmlFlowData:ie,htmlText:f(J),htmlTextData:ie,image:f(te),label:me,labelText:P,lineEnding:ae,link:f(Q),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:se,resourceDestinationString:j,resourceTitleString:L,resource:oe,setextHeading:f(D),setextHeadingLineSequence:K,setextHeadingText:z,strong:f(),thematicBreak:f()}};jV(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(Y){let Z={type:"root",children:[]};const re={stack:[Z],tokenStack:[],config:t,enter:u,exit:d,buffer:l,resume:p,setData:o,getData:a},xe=[];let Se=-1;for(;++Se<Y.length;)if(Y[Se][1].type==="listOrdered"||Y[Se][1].type==="listUnordered")if(Y[Se][0]==="enter")xe.push(Se);else{const _e=xe.pop();Se=i(Y,_e,Se)}for(Se=-1;++Se<Y.length;){const _e=t[Y[Se][0]];BV.call(_e,Y[Se][1].type)&&_e[Y[Se][1].type].call(Object.assign({sliceSerialize:Y[Se][2].sliceSerialize},re),Y[Se][1])}if(re.tokenStack.length>0){const _e=re.tokenStack[re.tokenStack.length-1];(_e[1]||d3).call(re,void 0,_e[0])}for(Z.position={start:lu(Y.length>0?Y[0][1].start:{line:1,column:1,offset:0}),end:lu(Y.length>0?Y[Y.length-2][1].end:{line:1,column:1,offset:0})},Se=-1;++Se<t.transforms.length;)Z=t.transforms[Se](Z)||Z;return Z}function i(Y,Z,re){let xe=Z-1,Se=-1,_e=!1,et,tt,fe,he;for(;++xe<=re;){const Ae=Y[xe];if(Ae[1].type==="listUnordered"||Ae[1].type==="listOrdered"||Ae[1].type==="blockQuote"?(Ae[0]==="enter"?Se++:Se--,he=void 0):Ae[1].type==="lineEndingBlank"?Ae[0]==="enter"&&(et&&!he&&!Se&&!fe&&(fe=xe),he=void 0):Ae[1].type==="linePrefix"||Ae[1].type==="listItemValue"||Ae[1].type==="listItemMarker"||Ae[1].type==="listItemPrefix"||Ae[1].type==="listItemPrefixWhitespace"||(he=void 0),!Se&&Ae[0]==="enter"&&Ae[1].type==="listItemPrefix"||Se===-1&&Ae[0]==="exit"&&(Ae[1].type==="listUnordered"||Ae[1].type==="listOrdered")){if(et){let We=xe;for(tt=void 0;We--;){const Ve=Y[We];if(Ve[1].type==="lineEnding"||Ve[1].type==="lineEndingBlank"){if(Ve[0]==="exit")continue;tt&&(Y[tt][1].type="lineEndingBlank",_e=!0),Ve[1].type="lineEnding",tt=We}else if(!(Ve[1].type==="linePrefix"||Ve[1].type==="blockQuotePrefix"||Ve[1].type==="blockQuotePrefixWhitespace"||Ve[1].type==="blockQuoteMarker"||Ve[1].type==="listItemIndent"))break}fe&&(!tt||fe<tt)&&(et._spread=!0),et.end=Object.assign({},tt?Y[tt][1].start:Ae[1].end),Y.splice(tt||xe,0,["exit",et,Ae[2]]),xe++,re++}Ae[1].type==="listItemPrefix"&&(et={type:"listItem",_spread:!1,start:Object.assign({},Ae[1].start),end:void 0},Y.splice(xe,0,["enter",et,Ae[2]]),xe++,re++,fe=void 0,he=!0)}}return Y[Z][1]._spread=_e,re}function o(Y,Z){n[Y]=Z}function a(Y){return n[Y]}function s(Y,Z){return re;function re(xe){u.call(this,Y(xe),xe),Z&&Z.call(this,xe)}}function l(){this.stack.push({type:"fragment",children:[]})}function u(Y,Z,re){return this.stack[this.stack.length-1].children.push(Y),this.stack.push(Y),this.tokenStack.push([Z,re]),Y.position={start:lu(Z.start)},Y}function f(Y){return Z;function Z(re){Y&&Y.call(this,re),d.call(this,re)}}function d(Y,Z){const re=this.stack.pop(),xe=this.tokenStack.pop();if(xe)xe[0].type!==Y.type&&(Z?Z.call(this,Y,xe[0]):(xe[1]||d3).call(this,Y,xe[0]));else throw new Error("Cannot close `"+Y.type+"` ("+Gm({start:Y.start,end:Y.end})+"): it’s not open");return re.position.end=lu(Y.end),re}function p(){return y2e(this.stack.pop())}function m(){o("expectingFirstListItemValue",!0)}function v(Y){if(a("expectingFirstListItemValue")){const Z=this.stack[this.stack.length-2];Z.start=Number.parseInt(this.sliceSerialize(Y),10),o("expectingFirstListItemValue")}}function y(){const Y=this.resume(),Z=this.stack[this.stack.length-1];Z.lang=Y}function w(){const Y=this.resume(),Z=this.stack[this.stack.length-1];Z.meta=Y}function b(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function x(){const Y=this.resume(),Z=this.stack[this.stack.length-1];Z.value=Y.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function S(){const Y=this.resume(),Z=this.stack[this.stack.length-1];Z.value=Y.replace(/(\r?\n|\r)$/g,"")}function k(Y){const Z=this.resume(),re=this.stack[this.stack.length-1];re.label=Z,re.identifier=Ya(this.sliceSerialize(Y)).toLowerCase()}function A(){const Y=this.resume(),Z=this.stack[this.stack.length-1];Z.title=Y}function $(){const Y=this.resume(),Z=this.stack[this.stack.length-1];Z.url=Y}function I(Y){const Z=this.stack[this.stack.length-1];if(!Z.depth){const re=this.sliceSerialize(Y).length;Z.depth=re}}function z(){o("setextHeadingSlurpLineEnding",!0)}function K(Y){const Z=this.stack[this.stack.length-1];Z.depth=this.sliceSerialize(Y).charCodeAt(0)===61?1:2}function D(){o("setextHeadingSlurpLineEnding")}function W(Y){const Z=this.stack[this.stack.length-1];let re=Z.children[Z.children.length-1];(!re||re.type!=="text")&&(re=H(),re.position={start:lu(Y.start)},Z.children.push(re)),this.stack.push(re)}function ie(Y){const Z=this.stack.pop();Z.value+=this.sliceSerialize(Y),Z.position.end=lu(Y.end)}function ae(Y){const Z=this.stack[this.stack.length-1];if(a("atHardBreak")){const re=Z.children[Z.children.length-1];re.position.end=lu(Y.end),o("atHardBreak");return}!a("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(Z.type)&&(W.call(this,Y),ie.call(this,Y))}function q(){o("atHardBreak",!0)}function G(){const Y=this.resume(),Z=this.stack[this.stack.length-1];Z.value=Y}function J(){const Y=this.resume(),Z=this.stack[this.stack.length-1];Z.value=Y}function le(){const Y=this.resume(),Z=this.stack[this.stack.length-1];Z.value=Y}function Q(){const Y=this.stack[this.stack.length-1];if(a("inReference")){const Z=a("referenceType")||"shortcut";Y.type+="Reference",Y.referenceType=Z,delete Y.url,delete Y.title}else delete Y.identifier,delete Y.label;o("referenceType")}function te(){const Y=this.stack[this.stack.length-1];if(a("inReference")){const Z=a("referenceType")||"shortcut";Y.type+="Reference",Y.referenceType=Z,delete Y.url,delete Y.title}else delete Y.identifier,delete Y.label;o("referenceType")}function P(Y){const Z=this.sliceSerialize(Y),re=this.stack[this.stack.length-2];re.label=NV(Z),re.identifier=Ya(Z).toLowerCase()}function me(){const Y=this.stack[this.stack.length-1],Z=this.resume(),re=this.stack[this.stack.length-1];if(o("inReference",!0),re.type==="link"){const xe=Y.children;re.children=xe}else re.alt=Z}function j(){const Y=this.resume(),Z=this.stack[this.stack.length-1];Z.url=Y}function L(){const Y=this.resume(),Z=this.stack[this.stack.length-1];Z.title=Y}function oe(){o("inReference")}function ue(){o("referenceType","collapsed")}function se(Y){const Z=this.resume(),re=this.stack[this.stack.length-1];re.label=Z,re.identifier=Ya(this.sliceSerialize(Y)).toLowerCase(),o("referenceType","full")}function Ee(Y){o("characterReferenceType",Y.type)}function Re(Y){const Z=this.sliceSerialize(Y),re=a("characterReferenceType");let xe;re?(xe=FV(Z,re==="characterReferenceMarkerNumeric"?10:16),o("characterReferenceType")):xe=IO(Z);const Se=this.stack.pop();Se.value+=xe,Se.position.end=lu(Y.end)}function ke(Y){ie.call(this,Y);const Z=this.stack[this.stack.length-1];Z.url=this.sliceSerialize(Y)}function De(Y){ie.call(this,Y);const Z=this.stack[this.stack.length-1];Z.url="mailto:"+this.sliceSerialize(Y)}function Me(){return{type:"blockquote",children:[]}}function Be(){return{type:"code",lang:null,meta:null,value:""}}function Ue(){return{type:"inlineCode",value:""}}function Ke(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function He(){return{type:"emphasis",children:[]}}function lt(){return{type:"heading",depth:void 0,children:[]}}function Xe(){return{type:"break"}}function nt(){return{type:"html",value:""}}function mt(){return{type:"image",title:null,url:"",alt:null}}function ge(){return{type:"link",title:null,url:"",children:[]}}function $e(Y){return{type:"list",ordered:Y.type==="listOrdered",start:null,spread:Y._spread,children:[]}}function Te(Y){return{type:"listItem",spread:Y._spread,checked:null,children:[]}}function Pe(){return{type:"paragraph",children:[]}}function U(){return{type:"strong",children:[]}}function H(){return{type:"text",value:""}}function de(){return{type:"thematicBreak"}}}function lu(e){return{line:e.line,column:e.column,offset:e.offset}}function jV(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?jV(e,r):vIe(e,r)}}function vIe(e,t){let n;for(n in t)if(BV.call(t,n)){if(n==="canContainEols"){const r=t[n];r&&e[n].push(...r)}else if(n==="transforms"){const r=t[n];r&&e[n].push(...r)}else if(n==="enter"||n==="exit"){const r=t[n];r&&Object.assign(e[n],r)}}}function d3(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Gm({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Gm({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Gm({start:t.start,end:t.end})+") is still open")}function yIe(e){Object.assign(this,{Parser:n=>{const r=this.data("settings");return gIe(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function bIe(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function _Ie(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
382
|
-
`}]}function xIe(e,t){const n=t.value?t.value+`
|
|
383
|
-
`:"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function wIe(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function SIe(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function uh(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let a="";if(o===37&&mi(e.charCodeAt(n+1))&&mi(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function zV(e,t){const n=String(t.identifier).toUpperCase(),r=uh(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let o;i===-1?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,o=e.footnoteOrder.length):(e.footnoteCounts[n]++,o=i+1);const a=e.footnoteCounts[n],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,s);const l={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,l),e.applyData(t,l)}function CIe(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},zV(e,{type:"footnoteReference",identifier:i,position:t.position})}function EIe(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function kIe(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null}function UV(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return{type:"text",value:"!["+t.alt+r};const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function TIe(e,t){const n=e.definition(t.identifier);if(!n)return UV(e,t);const r={src:uh(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function AIe(e,t){const n={src:uh(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function $Ie(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function RIe(e,t){const n=e.definition(t.identifier);if(!n)return UV(e,t);const r={href:uh(n.url||"")};n.title!==null&&n.title!==void 0&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function OIe(e,t){const n={href:uh(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function IIe(e,t,n){const r=e.all(t),i=n?DIe(n):KV(t),o={},a=[];if(typeof t.checked=="boolean"){const f=r[0];let d;f&&f.type==="element"&&f.tagName==="p"?d=f:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const f=r[s];(i||s!==0||f.type!=="element"||f.tagName!=="p")&&a.push({type:"text",value:`
|
|
384
|
-
`}),f.type==="element"&&f.tagName==="p"&&!i?a.push(...f.children):a.push(f)}const l=r[r.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&a.push({type:"text",value:`
|
|
385
|
-
`});const u={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,u),e.applyData(t,u)}function DIe(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=KV(n[r])}return t}function KV(e){const t=e.spread;return t??e.children.length>1}function PIe(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function LIe(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function MIe(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function FIe(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const PO=WV("start"),LO=WV("end");function NIe(e){return{start:PO(e),end:LO(e)}}function WV(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};return{line:r.line||null,column:r.column||null,offset:r.offset>-1?r.offset:null}}}function BIe(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],a),i.push(a)}if(n.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=PO(t.children[1]),l=LO(t.children[t.children.length-1]);s.line&&l.line&&(a.position={start:s,end:l}),i.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function jIe(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",a=n&&n.type==="table"?n.align:void 0,s=a?a.length:t.children.length;let l=-1;const u=[];for(;++l<s;){const d=t.children[l],p={},m=a?a[l]:void 0;m&&(p.align=m);let v={type:"element",tagName:o,properties:p,children:[]};d&&(v.children=e.all(d),e.patch(d,v),v=e.applyData(t,v)),u.push(v)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,f),e.applyData(t,f)}function zIe(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const p3=9,h3=32;function UIe(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(g3(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(g3(t.slice(i),i>0,!1)),o.join("")}function g3(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===p3||o===h3;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===p3||o===h3;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function KIe(e,t){const n={type:"text",value:UIe(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function WIe(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const VIe={blockquote:bIe,break:_Ie,code:xIe,delete:wIe,emphasis:SIe,footnoteReference:zV,footnote:CIe,heading:EIe,html:kIe,imageReference:TIe,image:AIe,inlineCode:$Ie,linkReference:RIe,link:OIe,listItem:IIe,list:PIe,paragraph:LIe,root:MIe,strong:FIe,table:BIe,tableCell:zIe,tableRow:jIe,text:KIe,thematicBreak:WIe,toml:I1,yaml:I1,definition:I1,footnoteDefinition:I1};function I1(){return null}const MO=function(e){if(e==null)return YIe;if(typeof e=="string")return GIe(e);if(typeof e=="object")return Array.isArray(e)?HIe(e):qIe(e);if(typeof e=="function")return sS(e);throw new Error("Expected function, string, or object as test")};function HIe(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=MO(e[n]);return sS(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].call(this,...i))return!0;return!1}}function qIe(e){return sS(t);function t(n){let r;for(r in e)if(n[r]!==e[r])return!1;return!0}}function GIe(e){return sS(t);function t(n){return n&&n.type===e}}function sS(e){return t;function t(n,...r){return!!(n&&typeof n=="object"&&"type"in n&&e.call(this,n,...r))}}function YIe(){return!0}const XIe=!0,m3=!1,ZIe="skip",VV=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null);const i=MO(t),o=r?-1:1;a(e,void 0,[])();function a(s,l,u){const f=s&&typeof s=="object"?s:{};if(typeof f.type=="string"){const p=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(s.type+(p?"<"+p+">":""))+")"})}return d;function d(){let p=[],m,v,y;if((!t||i(s,l,u[u.length-1]||null))&&(p=JIe(n(s,u)),p[0]===m3))return p;if(s.children&&p[0]!==ZIe)for(v=(r?s.children.length:-1)+o,y=u.concat(s);v>-1&&v<s.children.length;){if(m=a(s.children[v],v,y)(),m[0]===m3)return m;v=typeof m[1]=="number"?m[1]:v+o}return p}}};function JIe(e){return Array.isArray(e)?e:typeof e=="number"?[XIe,e]:[e]}const FO=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),VV(e,t,i,r);function i(o,a){const s=a[a.length-1];return n(o,s?s.children.indexOf(o):null,s)}};function QIe(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column}const v3={}.hasOwnProperty;function eDe(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return FO(e,"definition",r=>{const i=y3(r.identifier);i&&!v3.call(t,i)&&(t[i]=r)}),n;function n(r){const i=y3(r);return i&&v3.call(t,i)?t[i]:null}}function y3(e){return String(e||"").toUpperCase()}const K_={}.hasOwnProperty;function tDe(e,t){const n=t||{},r=n.allowDangerousHtml||!1,i={};return a.dangerous=r,a.clobberPrefix=n.clobberPrefix===void 0||n.clobberPrefix===null?"user-content-":n.clobberPrefix,a.footnoteLabel=n.footnoteLabel||"Footnotes",a.footnoteLabelTagName=n.footnoteLabelTagName||"h2",a.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},a.footnoteBackLabel=n.footnoteBackLabel||"Back to content",a.unknownHandler=n.unknownHandler,a.passThrough=n.passThrough,a.handlers={...VIe,...n.handlers},a.definition=eDe(e),a.footnoteById=i,a.footnoteOrder=[],a.footnoteCounts={},a.patch=nDe,a.applyData=rDe,a.one=s,a.all=l,a.wrap=oDe,a.augment=o,FO(e,"footnoteDefinition",u=>{const f=String(u.identifier).toUpperCase();K_.call(i,f)||(i[f]=u)}),a;function o(u,f){if(u&&"data"in u&&u.data){const d=u.data;d.hName&&(f.type!=="element"&&(f={type:"element",tagName:"",properties:{},children:[]}),f.tagName=d.hName),f.type==="element"&&d.hProperties&&(f.properties={...f.properties,...d.hProperties}),"children"in f&&f.children&&d.hChildren&&(f.children=d.hChildren)}if(u){const d="type"in u?u:{position:u};QIe(d)||(f.position={start:PO(d),end:LO(d)})}return f}function a(u,f,d,p){return Array.isArray(d)&&(p=d,d={}),o(u,{type:"element",tagName:f,properties:d||{},children:p||[]})}function s(u,f){return HV(a,u,f)}function l(u){return NO(a,u)}}function nDe(e,t){e.position&&(t.position=NIe(e))}function rDe(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;typeof r=="string"&&(n.type==="element"?n.tagName=r:n={type:"element",tagName:r,properties:{},children:[]}),n.type==="element"&&o&&(n.properties={...n.properties,...o}),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function HV(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return K_.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:NO(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):iDe(e,t)}function NO(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i<r.length;){const o=HV(e,r[i],t);if(o){if(i&&r[i-1].type==="break"&&(!Array.isArray(o)&&o.type==="text"&&(o.value=o.value.replace(/^\s+/,"")),!Array.isArray(o)&&o.type==="element")){const a=o.children[0];a&&a.type==="text"&&(a.value=a.value.replace(/^\s+/,""))}Array.isArray(o)?n.push(...o):n.push(o)}}}return n}function iDe(e,t){const n=t.data||{},r="value"in t&&!(K_.call(n,"hProperties")||K_.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:NO(e,t)};return e.patch(t,r),e.applyData(t,r)}function oDe(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
386
|
-
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
387
|
-
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
388
|
-
`}),n}function aDe(e){const t=[];let n=-1;for(;++n<e.footnoteOrder.length;){const r=e.footnoteById[e.footnoteOrder[n]];if(!r)continue;const i=e.all(r),o=String(r.identifier).toUpperCase(),a=uh(o.toLowerCase());let s=0;const l=[];for(;++s<=e.footnoteCounts[o];){const d={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:"↩"}]};s>1&&d.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),l.length>0&&l.push({type:"text",value:" "}),l.push(d)}const u=i[i.length-1];if(u&&u.type==="element"&&u.tagName==="p"){const d=u.children[u.children.length-1];d&&d.type==="text"?d.value+=" ":u.children.push({type:"text",value:" "}),u.children.push(...l)}else i.push(...l);const f={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:e.wrap(i,!0)};e.patch(r,f),t.push(f)}if(t.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:`
|
|
389
|
-
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:`
|
|
390
|
-
`}]}}function qV(e,t){const n=tDe(e,t),r=n.one(e,null),i=aDe(n);return i&&r.children.push({type:"text",value:`
|
|
391
|
-
`},i),Array.isArray(r)?{type:"root",children:r}:r}const sDe=function(e,t){return e&&"run"in e?uDe(e,t):cDe(e||t)},lDe=sDe;function uDe(e,t){return(n,r,i)=>{e.run(qV(n,t),r,o=>{i(o)})}}function cDe(e){return t=>qV(t,e)}let hy=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};hy.prototype.property={};hy.prototype.normal={};hy.prototype.space=null;function GV(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new hy(n,r,t)}function a$(e){return e.toLowerCase()}let _a=class{constructor(t,n){this.property=t,this.attribute=n}};_a.prototype.space=null;_a.prototype.boolean=!1;_a.prototype.booleanish=!1;_a.prototype.overloadedBoolean=!1;_a.prototype.number=!1;_a.prototype.commaSeparated=!1;_a.prototype.spaceSeparated=!1;_a.prototype.commaOrSpaceSeparated=!1;_a.prototype.mustUseProperty=!1;_a.prototype.defined=!1;let fDe=0;const Bt=kf(),Tr=kf(),YV=kf(),Je=kf(),Un=kf(),hp=kf(),yo=kf();function kf(){return 2**++fDe}const s$=Object.freeze(Object.defineProperty({__proto__:null,boolean:Bt,booleanish:Tr,commaOrSpaceSeparated:yo,commaSeparated:hp,number:Je,overloadedBoolean:YV,spaceSeparated:Un},Symbol.toStringTag,{value:"Module"})),bk=Object.keys(s$);class BO extends _a{constructor(t,n,r,i){let o=-1;if(super(t,n),b3(this,"space",i),typeof r=="number")for(;++o<bk.length;){const a=bk[o];b3(this,bk[o],(r&s$[a])===s$[a])}}}BO.prototype.defined=!0;function b3(e,t,n){n&&(e[t]=n)}const dDe={}.hasOwnProperty;function ch(e){const t={},n={};let r;for(r in e.properties)if(dDe.call(e.properties,r)){const i=e.properties[r],o=new BO(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[a$(r)]=r,n[a$(o.attribute)]=r}return new hy(t,n,e.space)}const XV=ch({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),ZV=ch({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function JV(e,t){return t in e?e[t]:t}function QV(e,t){return JV(e,t.toLowerCase())}const eH=ch({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:QV,properties:{xmlns:null,xmlnsXLink:null}}),tH=ch({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Tr,ariaAutoComplete:null,ariaBusy:Tr,ariaChecked:Tr,ariaColCount:Je,ariaColIndex:Je,ariaColSpan:Je,ariaControls:Un,ariaCurrent:null,ariaDescribedBy:Un,ariaDetails:null,ariaDisabled:Tr,ariaDropEffect:Un,ariaErrorMessage:null,ariaExpanded:Tr,ariaFlowTo:Un,ariaGrabbed:Tr,ariaHasPopup:null,ariaHidden:Tr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Un,ariaLevel:Je,ariaLive:null,ariaModal:Tr,ariaMultiLine:Tr,ariaMultiSelectable:Tr,ariaOrientation:null,ariaOwns:Un,ariaPlaceholder:null,ariaPosInSet:Je,ariaPressed:Tr,ariaReadOnly:Tr,ariaRelevant:null,ariaRequired:Tr,ariaRoleDescription:Un,ariaRowCount:Je,ariaRowIndex:Je,ariaRowSpan:Je,ariaSelected:Tr,ariaSetSize:Je,ariaSort:null,ariaValueMax:Je,ariaValueMin:Je,ariaValueNow:Je,ariaValueText:null,role:null}}),pDe=ch({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:QV,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:hp,acceptCharset:Un,accessKey:Un,action:null,allow:null,allowFullScreen:Bt,allowPaymentRequest:Bt,allowUserMedia:Bt,alt:null,as:null,async:Bt,autoCapitalize:null,autoComplete:Un,autoFocus:Bt,autoPlay:Bt,capture:Bt,charSet:null,checked:Bt,cite:null,className:Un,cols:Je,colSpan:null,content:null,contentEditable:Tr,controls:Bt,controlsList:Un,coords:Je|hp,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Bt,defer:Bt,dir:null,dirName:null,disabled:Bt,download:YV,draggable:Tr,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Bt,formTarget:null,headers:Un,height:Je,hidden:Bt,high:Je,href:null,hrefLang:null,htmlFor:Un,httpEquiv:Un,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:Bt,itemId:null,itemProp:Un,itemRef:Un,itemScope:Bt,itemType:Un,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Bt,low:Je,manifest:null,max:null,maxLength:Je,media:null,method:null,min:null,minLength:Je,multiple:Bt,muted:Bt,name:null,nonce:null,noModule:Bt,noValidate:Bt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint: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:Bt,optimum:Je,pattern:null,ping:Un,placeholder:null,playsInline:Bt,poster:null,preload:null,readOnly:Bt,referrerPolicy:null,rel:Un,required:Bt,reversed:Bt,rows:Je,rowSpan:Je,sandbox:Un,scope:null,scoped:Bt,seamless:Bt,selected:Bt,shape:null,size:Je,sizes:null,slot:null,span:Je,spellCheck:Tr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Je,step:null,style:null,tabIndex:Je,target:null,title:null,translate:null,type:null,typeMustMatch:Bt,useMap:null,value:Tr,width:Je,wrap:null,align:null,aLink:null,archive:Un,axis:null,background:null,bgColor:null,border:Je,borderColor:null,bottomMargin:Je,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Bt,declare:Bt,event:null,face:null,frame:null,frameBorder:null,hSpace:Je,leftMargin:Je,link:null,longDesc:null,lowSrc:null,marginHeight:Je,marginWidth:Je,noResize:Bt,noHref:Bt,noShade:Bt,noWrap:Bt,object:null,profile:null,prompt:null,rev:null,rightMargin:Je,rules:null,scheme:null,scrolling:Tr,standby:null,summary:null,text:null,topMargin:Je,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Je,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Bt,disableRemotePlayback:Bt,prefix:null,property:null,results:Je,security:null,unselectable:null}}),hDe=ch({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",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:JV,properties:{about:yo,accentHeight:Je,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Je,amplitude:Je,arabicForm:null,ascent:Je,attributeName:null,attributeType:null,azimuth:Je,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Je,by:null,calcMode:null,capHeight:Je,className:Un,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:Je,diffuseConstant:Je,direction:null,display:null,dur:null,divisor:Je,dominantBaseline:null,download:Bt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Je,enableBackground:null,end:null,event:null,exponent:Je,externalResourcesRequired:null,fill:null,fillOpacity:Je,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:hp,g2:hp,glyphName:hp,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Je,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Je,horizOriginX:Je,horizOriginY:Je,id:null,ideographic:Je,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Je,k:Je,k1:Je,k2:Je,k3:Je,k4:Je,kernelMatrix:yo,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Je,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:Je,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:Je,overlineThickness:Je,paintOrder:null,panose1:null,path:null,pathLength:Je,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Un,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Je,pointsAtY:Je,pointsAtZ:Je,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:yo,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:yo,rev:yo,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:yo,requiredFeatures:yo,requiredFonts:yo,requiredFormats:yo,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:Je,specularExponent:Je,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Je,strikethroughThickness:Je,string:null,stroke:null,strokeDashArray:yo,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Je,strokeOpacity:Je,strokeWidth:null,style:null,surfaceScale:Je,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:yo,tabIndex:Je,tableValues:null,target:null,targetX:Je,targetY:Je,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:yo,to:null,transform:null,u1:null,u2:null,underlinePosition:Je,underlineThickness:Je,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Je,values:null,vAlphabetic:Je,vMathematical:Je,vectorEffect:null,vHanging:Je,vIdeographic:Je,version:null,vertAdvY:Je,vertOriginX:Je,vertOriginY:Je,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Je,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),gDe=/^data[-\w.:]+$/i,_3=/-[a-z]/g,mDe=/[A-Z]/g;function vDe(e,t){const n=a$(t);let r=t,i=_a;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&gDe.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(_3,bDe);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!_3.test(o)){let a=o.replace(mDe,yDe);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=BO}return new i(r,t)}function yDe(e){return"-"+e.toLowerCase()}function bDe(e){return e.charAt(1).toUpperCase()}const x3={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"},_De=GV([ZV,XV,eH,tH,pDe],"html"),xDe=GV([ZV,XV,eH,tH,hDe],"svg");function wDe(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=>{FO(t,"element",(n,r,i)=>{const o=i;let a;if(e.allowedElements?a=!e.allowedElements.includes(n.tagName):e.disallowedElements&&(a=e.disallowedElements.includes(n.tagName)),!a&&e.allowElement&&typeof r=="number"&&(a=!e.allowElement(n,r,o)),a&&typeof r=="number")return e.unwrapDisallowed&&n.children?o.children.splice(r,1,...n.children):o.children.splice(r,1),r})}}function SDe(e){const t=e&&typeof e=="object"&&e.type==="text"?e.value||"":e;return typeof t=="string"&&t.replace(/[ \t\n\f\r]/g,"")===""}function CDe(e){return e.join(" ").trim()}function EDe(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var jO={exports:{}},w3=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,kDe=/\n/g,TDe=/^\s*/,ADe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,$De=/^:\s*/,RDe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ODe=/^[;\s]*/,IDe=/^\s+|\s+$/g,DDe=`
|
|
392
|
-
`,S3="/",C3="*",Fc="",PDe="comment",LDe="declaration",MDe=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(v){var y=v.match(kDe);y&&(n+=y.length);var w=v.lastIndexOf(DDe);r=~w?v.length-w:r+v.length}function o(){var v={line:n,column:r};return function(y){return y.position=new a(v),u(),y}}function a(v){this.start=v,this.end={line:n,column:r},this.source=t.source}a.prototype.content=e;function s(v){var y=new Error(t.source+":"+n+":"+r+": "+v);if(y.reason=v,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function l(v){var y=v.exec(e);if(y){var w=y[0];return i(w),e=e.slice(w.length),y}}function u(){l(TDe)}function f(v){var y;for(v=v||[];y=d();)y!==!1&&v.push(y);return v}function d(){var v=o();if(!(S3!=e.charAt(0)||C3!=e.charAt(1))){for(var y=2;Fc!=e.charAt(y)&&(C3!=e.charAt(y)||S3!=e.charAt(y+1));)++y;if(y+=2,Fc===e.charAt(y-1))return s("End of comment missing");var w=e.slice(2,y-2);return r+=2,i(w),e=e.slice(y),r+=2,v({type:PDe,comment:w})}}function p(){var v=o(),y=l(ADe);if(y){if(d(),!l($De))return s("property missing ':'");var w=l(RDe),b=v({type:LDe,property:E3(y[0].replace(w3,Fc)),value:w?E3(w[0].replace(w3,Fc)):Fc});return l(ODe),b}}function m(){var v=[];f(v);for(var y;y=p();)y!==!1&&(v.push(y),f(v));return v}return u(),m()};function E3(e){return e?e.replace(IDe,Fc):Fc}var FDe=MDe;function nH(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,i=FDe(e),o=typeof t=="function",a,s,l=0,u=i.length;l<u;l++)r=i[l],a=r.property,s=r.value,o?t(a,s,r):s&&(n||(n={}),n[a]=s);return n}jO.exports=nH;jO.exports.default=nH;var NDe=jO.exports;const BDe=bi(NDe),k3=["http","https","mailto","tel"];function jDe(e){const t=(e||"").trim(),n=t.charAt(0);if(n==="#"||n==="/")return t;const r=t.indexOf(":");if(r===-1)return t;let i=-1;for(;++i<k3.length;){const o=k3[i];if(r===o.length&&t.slice(0,o.length).toLowerCase()===o)return t}return i=t.indexOf("?"),i!==-1&&r>i||(i=t.indexOf("#"),i!==-1&&r>i)?t:"javascript:void(0)"}const l$={}.hasOwnProperty,zDe=new Set(["table","thead","tbody","tfoot","tr"]);function rH(e,t){const n=[];let r=-1,i;for(;++r<t.children.length;)i=t.children[r],i.type==="element"?n.push(UDe(e,i,r,t)):i.type==="text"?(t.type!=="element"||!zDe.has(t.tagName)||!SDe(i))&&n.push(i.value):i.type==="raw"&&!e.options.skipHtml&&n.push(i.value);return n}function UDe(e,t,n,r){const i=e.options,o=i.transformLinkUri===void 0?jDe:i.transformLinkUri,a=e.schema,s=t.tagName,l={};let u=a,f;if(a.space==="html"&&s==="svg"&&(u=xDe,e.schema=u),t.properties)for(f in t.properties)l$.call(t.properties,f)&&WDe(l,f,t.properties[f],e);(s==="ol"||s==="ul")&&e.listDepth++;const d=rH(e,t);(s==="ol"||s==="ul")&&e.listDepth--,e.schema=a;const p=t.position||{start:{line:null,column:null,offset:null},end:{line:null,column:null,offset:null}},m=i.components&&l$.call(i.components,s)?i.components[s]:s,v=typeof m=="string"||m===ht.Fragment;if(!Eme.isValidElementType(m))throw new TypeError(`Component for name \`${s}\` not defined or is not renderable`);if(l.key=[s,p.start.line,p.start.column,n].join("-"),s==="a"&&i.linkTarget&&(l.target=typeof i.linkTarget=="function"?i.linkTarget(String(l.href||""),t.children,typeof l.title=="string"?l.title:null):i.linkTarget),s==="a"&&o&&(l.href=o(String(l.href||""),t.children,typeof l.title=="string"?l.title:null)),!v&&s==="code"&&r.type==="element"&&r.tagName!=="pre"&&(l.inline=!0),!v&&(s==="h1"||s==="h2"||s==="h3"||s==="h4"||s==="h5"||s==="h6")&&(l.level=Number.parseInt(s.charAt(1),10)),s==="img"&&i.transformImageUri&&(l.src=i.transformImageUri(String(l.src||""),String(l.alt||""),typeof l.title=="string"?l.title:null)),!v&&s==="li"&&r.type==="element"){const y=KDe(t);l.checked=y&&y.properties?!!y.properties.checked:null,l.index=_k(r,t),l.ordered=r.tagName==="ol"}return!v&&(s==="ol"||s==="ul")&&(l.ordered=s==="ol",l.depth=e.listDepth),(s==="td"||s==="th")&&(l.align&&(l.style||(l.style={}),l.style.textAlign=l.align,delete l.align),v||(l.isHeader=s==="th")),!v&&s==="tr"&&r.type==="element"&&(l.isHeader=r.tagName==="thead"),i.sourcePos&&(l["data-sourcepos"]=qDe(p)),!v&&i.rawSourcePos&&(l.sourcePosition=t.position),!v&&i.includeElementIndex&&(l.index=_k(r,t),l.siblingCount=_k(r)),v||(l.node=t),d.length>0?ht.createElement(m,l,d):ht.createElement(m,l)}function KDe(e){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n.type==="element"&&n.tagName==="input")return n}return null}function _k(e,t){let n=-1,r=0;for(;++n<e.children.length&&e.children[n]!==t;)e.children[n].type==="element"&&r++;return r}function WDe(e,t,n,r){const i=vDe(r.schema,t);let o=n;o==null||o!==o||(Array.isArray(o)&&(o=i.commaSeparated?EDe(o):CDe(o)),i.property==="style"&&typeof o=="string"&&(o=VDe(o)),i.space&&i.property?e[l$.call(x3,i.property)?x3[i.property]:i.property]=o:i.attribute&&(e[i.attribute]=o))}function VDe(e){const t={};try{BDe(e,n)}catch{}return t;function n(r,i){const o=r.slice(0,4)==="-ms-"?`ms-${r.slice(4)}`:r;t[o.replace(/-([a-z])/g,HDe)]=i}}function HDe(e,t){return t.toUpperCase()}function qDe(e){return[e.start.line,":",e.start.column,"-",e.end.line,":",e.end.column].map(String).join("")}const T3={}.hasOwnProperty,GDe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",D1={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 lS(e){for(const o in D1)if(T3.call(D1,o)&&T3.call(e,o)){const a=D1[o];console.warn(`[react-markdown] Warning: please ${a.to?`use \`${a.to}\` instead of`:"remove"} \`${o}\` (see <${GDe}#${a.id}> for more info)`),delete D1[o]}const t=p2e().use(yIe).use(e.remarkPlugins||[]).use(lDe,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(wDe,e),n=new wV;typeof e.children=="string"?n.value=e.children:e.children!==void 0&&e.children!==null&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=t.runSync(t.parse(n),n);if(r.type!=="root")throw new TypeError("Expected a `root` node");let i=ht.createElement(ht.Fragment,{},rH({options:e,schema:_De,listDepth:0},r));return e.className&&(i=ht.createElement("div",{className:e.className},i)),i}lS.propTypes={children:ct.string,className:ct.string,allowElement:ct.func,allowedElements:ct.arrayOf(ct.string),disallowedElements:ct.arrayOf(ct.string),unwrapDisallowed:ct.bool,remarkPlugins:ct.arrayOf(ct.oneOfType([ct.object,ct.func,ct.arrayOf(ct.oneOfType([ct.bool,ct.string,ct.object,ct.func,ct.arrayOf(ct.any)]))])),rehypePlugins:ct.arrayOf(ct.oneOfType([ct.object,ct.func,ct.arrayOf(ct.oneOfType([ct.bool,ct.string,ct.object,ct.func,ct.arrayOf(ct.any)]))])),sourcePos:ct.bool,rawSourcePos:ct.bool,skipHtml:ct.bool,includeElementIndex:ct.bool,transformLinkUri:ct.oneOfType([ct.func,ct.bool]),linkTarget:ct.oneOfType([ct.func,ct.string]),transformImageUri:ct.func,components:ct.object};const YDe={tokenize:tPe,partial:!0},iH={tokenize:nPe,partial:!0},oH={tokenize:rPe,partial:!0},aH={tokenize:iPe,partial:!0},XDe={tokenize:oPe,partial:!0},sH={tokenize:QDe,previous:uH},lH={tokenize:ePe,previous:cH},Nl={tokenize:JDe,previous:fH},Us={},ZDe={text:Us};let wc=48;for(;wc<123;)Us[wc]=Nl,wc++,wc===58?wc=65:wc===91&&(wc=97);Us[43]=Nl;Us[45]=Nl;Us[46]=Nl;Us[95]=Nl;Us[72]=[Nl,lH];Us[104]=[Nl,lH];Us[87]=[Nl,sH];Us[119]=[Nl,sH];function JDe(e,t,n){const r=this;let i,o;return a;function a(d){return!u$(d)||!fH.call(r,r.previous)||zO(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return u$(d)?(e.consume(d),s):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(XDe,f,u)(d):d===45||d===95||mi(d)?(o=!0,e.consume(d),l):f(d)}function u(d){return e.consume(d),i=!0,l}function f(d){return o&&i&&$i(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function QDe(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!uH.call(r,r.previous)||zO(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(YDe,e.attempt(iH,e.attempt(oH,o),n),n)(a))}function o(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function ePe(e,t,n){const r=this;let i="",o=!1;return a;function a(d){return(d===72||d===104)&&cH.call(r,r.previous)&&!zO(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(d),e.consume(d),s):n(d)}function s(d){if($i(d)&&i.length<5)return i+=String.fromCodePoint(d),e.consume(d),s;if(d===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),o?u:(o=!0,l)):n(d)}function u(d){return d===null||z_(d)||Rn(d)||df(d)||oS(d)?n(d):e.attempt(iH,e.attempt(oH,f),n)(d)}function f(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function tPe(e,t,n){let r=0;return i;function i(a){return(a===87||a===119)&&r<3?(r++,e.consume(a),i):a===46&&r===3?(e.consume(a),o):n(a)}function o(a){return a===null?n(a):t(a)}}function nPe(e,t,n){let r,i,o;return a;function a(u){return u===46||u===95?e.check(aH,l,s)(u):u===null||Rn(u)||df(u)||u!==45&&oS(u)?l(u):(o=!0,e.consume(u),a)}function s(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),a}function l(u){return i||r||!o?n(u):t(u)}}function rPe(e,t){let n=0,r=0;return i;function i(a){return a===40?(n++,e.consume(a),i):a===41&&r<n?o(a):a===33||a===34||a===38||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===60||a===63||a===93||a===95||a===126?e.check(aH,t,o)(a):a===null||Rn(a)||df(a)?t(a):(e.consume(a),i)}function o(a){return a===41&&r++,e.consume(a),i}}function iPe(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),o):s===93?(e.consume(s),i):s===60||s===null||Rn(s)||df(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||Rn(s)||df(s)?t(s):r(s)}function o(s){return $i(s)?a(s):n(s)}function a(s){return s===59?(e.consume(s),r):$i(s)?(e.consume(s),a):n(s)}}function oPe(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return mi(o)?n(o):t(o)}}function uH(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Rn(e)}function cH(e){return!$i(e)}function fH(e){return!(e===47||u$(e))}function u$(e){return e===43||e===45||e===46||e===95||mi(e)}function zO(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const aPe={tokenize:hPe,partial:!0};function sPe(){return{document:{[91]:{tokenize:fPe,continuation:{tokenize:dPe},exit:pPe}},text:{[91]:{tokenize:cPe},[93]:{add:"after",tokenize:lPe,resolveTo:uPe}}}}function lPe(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){a=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return s;function s(l){if(!a||!a._balanced)return n(l);const u=Ya(r.sliceSerialize({start:a.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function uPe(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function cPe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,a;return s;function s(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(o>999||d===93&&!a||d===null||d===91||Rn(d))return n(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(Ya(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Rn(d)||(a=!0),o++,e.consume(d),d===92?f:u}function f(d){return d===91||d===92||d===93?(e.consume(d),o++,u):u(d)}}function fPe(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,a=0,s;return l;function l(v){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(v){return v===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(v)}function f(v){if(a>999||v===93&&!s||v===null||v===91||Rn(v))return n(v);if(v===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return o=Ya(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return Rn(v)||(s=!0),a++,e.consume(v),v===92?d:f}function d(v){return v===91||v===92||v===93?(e.consume(v),a++,f):f(v)}function p(v){return v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),i.includes(o)||i.push(o),on(e,m,"gfmFootnoteDefinitionWhitespace")):n(v)}function m(v){return t(v)}}function dPe(e,t,n){return e.check(py,t,e.attempt(aPe,t,n))}function pPe(e){e.exit("gfmFootnoteDefinition")}function hPe(e,t,n){const r=this;return on(e,i,"gfmFootnoteDefinitionIndent",4+1);function i(o){const a=r.events[r.events.length-1];return a&&a[1].type==="gfmFootnoteDefinitionIndent"&&a[2].sliceSerialize(a[1],!0).length===4?t(o):n(o)}}function gPe(e){let n=(e||{}).singleTilde;const r={tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{[126]:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(a,s){let l=-1;for(;++l<a.length;)if(a[l][0]==="enter"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._close){let u=l;for(;u--;)if(a[u][0]==="exit"&&a[u][1].type==="strikethroughSequenceTemporary"&&a[u][1]._open&&a[l][1].end.offset-a[l][1].start.offset===a[u][1].end.offset-a[u][1].start.offset){a[l][1].type="strikethroughSequence",a[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},a[u][1].start),end:Object.assign({},a[l][1].end)},d={type:"strikethroughText",start:Object.assign({},a[u][1].end),end:Object.assign({},a[l][1].start)},p=[["enter",f,s],["enter",a[u][1],s],["exit",a[u][1],s],["enter",d,s]],m=s.parser.constructs.insideSpan.null;m&&$o(p,p.length,0,aS(m,a.slice(u+1,l),s)),$o(p,p.length,0,[["exit",d,s],["enter",a[l][1],s],["exit",a[l][1],s],["exit",f,s]]),$o(a,u-1,l-u+3,p),l=u+p.length-2;break}}for(l=-1;++l<a.length;)a[l][1].type==="strikethroughSequenceTemporary"&&(a[l][1].type="data");return a}function o(a,s,l){const u=this.previous,f=this.events;let d=0;return p;function p(v){return u===126&&f[f.length-1][1].type!=="characterEscape"?l(v):(a.enter("strikethroughSequenceTemporary"),m(v))}function m(v){const y=U_(u);if(v===126)return d>1?l(v):(a.consume(v),d++,m);if(d<2&&!n)return l(v);const w=a.exit("strikethroughSequenceTemporary"),b=U_(v);return w._open=!b||b===2&&!!y,w._close=!y||y===2&&!!b,s(v)}}}class mPe{constructor(){this.map=[]}add(t,n,r){vPe(this,t,n,r)}consume(t){if(this.map.sort((o,a)=>o[0]-a[0]),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1])),r.push(this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function vPe(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function yPe(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}const bPe={flow:{null:{tokenize:_Pe,resolveAll:xPe}}};function _Pe(e,t,n){const r=this;let i=0,o=0,a;return s;function s(D){let W=r.events.length-1;for(;W>-1;){const q=r.events[W][1].type;if(q==="lineEnding"||q==="linePrefix")W--;else break}const ie=W>-1?r.events[W][1].type:null,ae=ie==="tableHead"||ie==="tableRow"?$:l;return ae===$&&r.parser.lazy[r.now().line]?n(D):ae(D)}function l(D){return e.enter("tableHead"),e.enter("tableRow"),u(D)}function u(D){return D===124||(a=!0,o+=1),f(D)}function f(D){return D===null?n(D):kt(D)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),m):n(D):Gt(D)?on(e,f,"whitespace")(D):(o+=1,a&&(a=!1,i+=1),D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),a=!0,f):(e.enter("data"),d(D)))}function d(D){return D===null||D===124||Rn(D)?(e.exit("data"),f(D)):(e.consume(D),D===92?p:d)}function p(D){return D===92||D===124?(e.consume(D),d):d(D)}function m(D){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(D):(e.enter("tableDelimiterRow"),a=!1,Gt(D)?on(e,v,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):v(D))}function v(D){return D===45||D===58?w(D):D===124?(a=!0,e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),y):A(D)}function y(D){return Gt(D)?on(e,w,"whitespace")(D):w(D)}function w(D){return D===58?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),b):D===45?(o+=1,b(D)):D===null||kt(D)?k(D):A(D)}function b(D){return D===45?(e.enter("tableDelimiterFiller"),x(D)):A(D)}function x(D){return D===45?(e.consume(D),x):D===58?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(D))}function S(D){return Gt(D)?on(e,k,"whitespace")(D):k(D)}function k(D){return D===124?v(D):D===null||kt(D)?!a||i!==o?A(D):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(D)):A(D)}function A(D){return n(D)}function $(D){return e.enter("tableRow"),I(D)}function I(D){return D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),I):D===null||kt(D)?(e.exit("tableRow"),t(D)):Gt(D)?on(e,I,"whitespace")(D):(e.enter("data"),z(D))}function z(D){return D===null||D===124||Rn(D)?(e.exit("data"),I(D)):(e.consume(D),D===92?K:z)}function K(D){return D===92||D===124?(e.consume(D),z):z(D)}}function xPe(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],a=[0,0,0,0],s=!1,l=0,u,f,d;const p=new mPe;for(;++n<e.length;){const m=e[n],v=m[1];m[0]==="enter"?v.type==="tableHead"?(s=!1,l!==0&&(A3(p,t,l,u,f),f=void 0,l=0),u={type:"table",start:Object.assign({},v.start),end:Object.assign({},v.end)},p.add(n,0,[["enter",u,t]])):v.type==="tableRow"||v.type==="tableDelimiterRow"?(r=!0,d=void 0,o=[0,0,0,0],a=[0,n+1,0,0],s&&(s=!1,f={type:"tableBody",start:Object.assign({},v.start),end:Object.assign({},v.end)},p.add(n,0,[["enter",f,t]])),i=v.type==="tableDelimiterRow"?2:f?3:1):i&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")?(r=!1,a[2]===0&&(o[1]!==0&&(a[0]=a[1],d=P1(p,t,o,i,void 0,d),o=[0,0,0,0]),a[2]=n)):v.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(a[0]=a[1],d=P1(p,t,o,i,void 0,d)),o=a,a=[o[1],n,0,0])):v.type==="tableHead"?(s=!0,l=n):v.type==="tableRow"||v.type==="tableDelimiterRow"?(l=n,o[1]!==0?(a[0]=a[1],d=P1(p,t,o,i,n,d)):a[1]!==0&&(d=P1(p,t,a,i,n,d)),i=0):i&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")&&(a[3]=n)}for(l!==0&&A3(p,t,l,u,f),p.consume(t.events),n=-1;++n<t.events.length;){const m=t.events[n];m[0]==="enter"&&m[1].type==="table"&&(m[1]._align=yPe(t.events,n))}return e}function P1(e,t,n,r,i,o){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(o.end=Object.assign({},Md(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const l=Md(t.events,n[1]);if(o={type:a,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const u=Md(t.events,n[2]),f=Md(t.events,n[3]),d={type:s,start:Object.assign({},u),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const p=t.events[n[2]],m=t.events[n[3]];if(p[1].end=Object.assign({},m[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const v=n[2]+1,y=n[3]-n[2]-1;e.add(v,y,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return i!==void 0&&(o.end=Object.assign({},Md(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function A3(e,t,n,r,i){const o=[],a=Md(t.events,n);i&&(i.end=Object.assign({},a),o.push(["exit",i,t])),r.end=Object.assign({},a),o.push(["exit",r,t]),e.add(n+1,0,o)}function Md(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const wPe={tokenize:CPe},SPe={text:{[91]:wPe}};function CPe(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return Rn(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),a):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),a):n(l)}function a(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(l)}function s(l){return kt(l)?t(l):Gt(l)?e.check({tokenize:EPe},t,n)(l):n(l)}}function EPe(e,t,n){return on(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function kPe(e){return TV([ZDe,sPe(),gPe(e),bPe,SPe])}function $3(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function TPe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const APe={}.hasOwnProperty,$Pe=function(e,t,n,r){let i,o;typeof t=="string"||t instanceof RegExp?(o=[[t,n]],i=r):(o=t,i=n),i||(i={});const a=MO(i.ignore||[]),s=RPe(o);let l=-1;for(;++l<s.length;)VV(e,"text",u);return e;function u(d,p){let m=-1,v;for(;++m<p.length;){const y=p[m];if(a(y,v?v.children.indexOf(y):void 0,v))return;v=y}if(v)return f(d,p)}function f(d,p){const m=p[p.length-1],v=s[l][0],y=s[l][1];let w=0;const b=m.children.indexOf(d);let x=!1,S=[];v.lastIndex=0;let k=v.exec(d.value);for(;k;){const A=k.index,$={index:k.index,input:k.input,stack:[...p,d]};let I=y(...k,$);if(typeof I=="string"&&(I=I.length>0?{type:"text",value:I}:void 0),I!==!1&&(w!==A&&S.push({type:"text",value:d.value.slice(w,A)}),Array.isArray(I)?S.push(...I):I&&S.push(I),w=A+k[0].length,x=!0),!v.global)break;k=v.exec(d.value)}return x?(w<d.value.length&&S.push({type:"text",value:d.value.slice(w)}),m.children.splice(b,1,...S)):S=[d],b+S.length}};function RPe(e){const t=[];if(typeof e!="object")throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let n=-1;for(;++n<e.length;)t.push([R3(e[n][0]),O3(e[n][1])])}else{let n;for(n in e)APe.call(e,n)&&t.push([R3(n),O3(e[n])])}return t}function R3(e){return typeof e=="string"?new RegExp(TPe(e),"g"):e}function O3(e){return typeof e=="function"?e:()=>e}const xk="phrasing",wk=["autolink","link","image","label"],OPe={transforms:[NPe],enter:{literalAutolink:DPe,literalAutolinkEmail:Sk,literalAutolinkHttp:Sk,literalAutolinkWww:Sk},exit:{literalAutolink:FPe,literalAutolinkEmail:MPe,literalAutolinkHttp:PPe,literalAutolinkWww:LPe}},IPe={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:xk,notInConstruct:wk},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:xk,notInConstruct:wk},{character:":",before:"[ps]",after:"\\/",inConstruct:xk,notInConstruct:wk}]};function DPe(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Sk(e){this.config.enter.autolinkProtocol.call(this,e)}function PPe(e){this.config.exit.autolinkProtocol.call(this,e)}function LPe(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function MPe(e){this.config.exit.autolinkEmail.call(this,e)}function FPe(e){this.exit(e)}function NPe(e){$Pe(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,BPe],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,jPe]],{ignore:["link","linkReference"]})}function BPe(e,t,n,r,i){let o="";if(!dH(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!zPe(n)))return!1;const a=UPe(n+r);if(!a[0])return!1;const s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function jPe(e,t,n,r){return!dH(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function zPe(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function UPe(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=$3(e,"(");let o=$3(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function dH(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||df(n)||oS(n))&&(!t||n!==47)}function pH(e){return e.label||!e.identifier?e.label||"":NV(e.identifier)}function KPe(e,t,n){const r=t.indexStack,i=e.children||[],o=t.createTracker(n),a=[];let s=-1;for(r.push(-1);++s<i.length;){const l=i[s];r[r.length-1]=s,a.push(o.move(t.handle(l,e,t,{before:`
|
|
393
|
-
`,after:`
|
|
394
|
-
`,...o.current()}))),l.type!=="list"&&(t.bulletLastUsed=void 0),s<i.length-1&&a.push(o.move(WPe(l,i[s+1],e,t)))}return r.pop(),a.join("")}function WPe(e,t,n,r){let i=r.join.length;for(;i--;){const o=r.join[i](e,t,n,r);if(o===!0||o===1)break;if(typeof o=="number")return`
|
|
395
|
-
`.repeat(1+o);if(o===!1)return`
|
|
396
|
-
|
|
397
|
-
<!---->
|
|
398
|
-
|
|
399
|
-
`}return`
|
|
400
|
-
|
|
401
|
-
`}const VPe=/\r?\n|\r/g;function HPe(e,t){const n=[];let r=0,i=0,o;for(;o=VPe.exec(e);)a(e.slice(r,o.index)),n.push(o[0]),r=o.index+o[0].length,i++;return a(e.slice(r)),n.join("");function a(s){n.push(t(s,i,!s))}}function hH(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function qPe(e,t){return I3(e,t.inConstruct,!0)&&!I3(e,t.notInConstruct,!1)}function I3(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function gH(e,t,n){const r=(n.before||"")+(t||"")+(n.after||""),i=[],o=[],a={};let s=-1;for(;++s<e.unsafe.length;){const f=e.unsafe[s];if(!qPe(e.stack,f))continue;const d=hH(f);let p;for(;p=d.exec(r);){const m="before"in f||!!f.atBreak,v="after"in f,y=p.index+(m?p[1].length:0);i.includes(y)?(a[y].before&&!m&&(a[y].before=!1),a[y].after&&!v&&(a[y].after=!1)):(i.push(y),a[y]={before:m,after:v})}}i.sort(GPe);let l=n.before?n.before.length:0;const u=r.length-(n.after?n.after.length:0);for(s=-1;++s<i.length;){const f=i[s];f<l||f>=u||f+1<u&&i[s+1]===f+1&&a[f].after&&!a[f+1].before&&!a[f+1].after||i[s-1]===f-1&&a[f].before&&!a[f-1].before&&!a[f-1].after||(l!==f&&o.push(D3(r.slice(l,f),"\\")),l=f,/[!-/:-@[-`{-~]/.test(r.charAt(f))&&(!n.encode||!n.encode.includes(r.charAt(f)))?o.push("\\"):(o.push("&#x"+r.charCodeAt(f).toString(16).toUpperCase()+";"),l++))}return o.push(D3(r.slice(l,u),n.after)),o.join("")}function GPe(e,t){return e-t}function D3(e,t){const n=/\\(?=[!-/:-@[-`{-~])/g,r=[],i=[],o=e+t;let a=-1,s=0,l;for(;l=n.exec(o);)r.push(l.index);for(;++a<r.length;)s!==r[a]&&i.push(e.slice(s,r[a])),i.push("\\"),s=r[a];return i.push(e.slice(s)),i.join("")}function uS(e){const t=e||{},n=t.now||{};let r=t.lineShift||0,i=n.line||1,o=n.column||1;return{move:l,current:a,shift:s};function a(){return{now:{line:i,column:o},lineShift:r}}function s(u){r+=u}function l(u){const f=u||"",d=f.split(/\r?\n|\r/g),p=d[d.length-1];return i+=d.length-1,o=d.length===1?o+p.length:1+p.length+r,f}}mH.peek=oLe;function YPe(){return{enter:{gfmFootnoteDefinition:ZPe,gfmFootnoteDefinitionLabelString:JPe,gfmFootnoteCall:tLe,gfmFootnoteCallString:nLe},exit:{gfmFootnoteDefinition:eLe,gfmFootnoteDefinitionLabelString:QPe,gfmFootnoteCall:iLe,gfmFootnoteCallString:rLe}}}function XPe(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:aLe,footnoteReference:mH}}}function ZPe(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function JPe(){this.buffer()}function QPe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Ya(this.sliceSerialize(e)).toLowerCase()}function eLe(e){this.exit(e)}function tLe(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function nLe(){this.buffer()}function rLe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Ya(this.sliceSerialize(e)).toLowerCase()}function iLe(e){this.exit(e)}function mH(e,t,n,r){const i=uS(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(gH(n,pH(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function oLe(){return"["}function aLe(e,t,n,r){const i=uS(r);let o=i.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=i.move(gH(n,pH(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(HPe(KPe(e,n,i.current()),sLe)),a(),o}function sLe(e,t,n){return t===0?e:(n?"":" ")+e}function vH(e,t,n){const r=t.indexStack,i=e.children||[],o=[];let a=-1,s=n.before;r.push(-1);let l=t.createTracker(n);for(;++a<i.length;){const u=i[a];let f;if(r[r.length-1]=a,a+1<i.length){let d=t.handle.handlers[i[a+1].type];d&&d.peek&&(d=d.peek),f=d?d(i[a+1],e,t,{before:"",after:"",...l.current()}).charAt(0):""}else f=n.after;o.length>0&&(s==="\r"||s===`
|
|
402
|
-
`)&&u.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),s=" ",l=t.createTracker(n),l.move(o.join(""))),o.push(l.move(t.handle(u,e,t,{...l.current(),before:s,after:f}))),s=o[o.length-1].slice(-1)}return r.pop(),o.join("")}const lLe=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];yH.peek=pLe;const uLe={canContainEols:["delete"],enter:{strikethrough:fLe},exit:{strikethrough:dLe}},cLe={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:lLe}],handlers:{delete:yH}};function fLe(e){this.enter({type:"delete",children:[]},e)}function dLe(e){this.exit(e)}function yH(e,t,n,r){const i=uS(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=vH(e,n,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function pLe(){return"~"}bH.peek=hLe;function bH(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const a=n.unsafe[o],s=hH(a);let l;if(a.atBreak)for(;l=s.exec(r);){let u=l.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(l.index+1)}}return i+r+i}function hLe(){return"`"}function gLe(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||vLe,i=[],o=[],a=[],s=[];let l=0,u=-1;for(;++u<e.length;){const v=[],y=[];let w=-1;for(e[u].length>l&&(l=e[u].length);++w<e[u].length;){const b=mLe(e[u][w]);if(t.alignDelimiters!==!1){const x=r(b);y[w]=x,(s[w]===void 0||x>s[w])&&(s[w]=x)}v.push(b)}o[u]=v,a[u]=y}let f=-1;if(typeof n=="object"&&"length"in n)for(;++f<l;)i[f]=P3(n[f]);else{const v=P3(n);for(;++f<l;)i[f]=v}f=-1;const d=[],p=[];for(;++f<l;){const v=i[f];let y="",w="";v===99?(y=":",w=":"):v===108?y=":":v===114&&(w=":");let b=t.alignDelimiters===!1?1:Math.max(1,s[f]-y.length-w.length);const x=y+"-".repeat(b)+w;t.alignDelimiters!==!1&&(b=y.length+b+w.length,b>s[f]&&(s[f]=b),p[f]=b),d[f]=x}o.splice(1,0,d),a.splice(1,0,p),u=-1;const m=[];for(;++u<o.length;){const v=o[u],y=a[u];f=-1;const w=[];for(;++f<l;){const b=v[f]||"";let x="",S="";if(t.alignDelimiters!==!1){const k=s[f]-(y[f]||0),A=i[f];A===114?x=" ".repeat(k):A===99?k%2?(x=" ".repeat(k/2+.5),S=" ".repeat(k/2-.5)):(x=" ".repeat(k/2),S=x):S=" ".repeat(k)}t.delimiterStart!==!1&&!f&&w.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&b==="")&&(t.delimiterStart!==!1||f)&&w.push(" "),t.alignDelimiters!==!1&&w.push(x),w.push(b),t.alignDelimiters!==!1&&w.push(S),t.padding!==!1&&w.push(" "),(t.delimiterEnd!==!1||f!==l-1)&&w.push("|")}m.push(t.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return m.join(`
|
|
403
|
-
`)}function mLe(e){return e==null?"":String(e)}function vLe(e){return e.length}function P3(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const yLe={enter:{table:bLe,tableData:L3,tableHeader:L3,tableRow:xLe},exit:{codeText:wLe,table:_Le,tableData:Ck,tableHeader:Ck,tableRow:Ck}};function bLe(e){const t=e._align;this.enter({type:"table",align:t.map(n=>n==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function _Le(e){this.exit(e),this.setData("inTable")}function xLe(e){this.enter({type:"tableRow",children:[]},e)}function Ck(e){this.exit(e)}function L3(e){this.enter({type:"tableCell",children:[]},e)}function wLe(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,SLe));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function SLe(e,t){return t==="|"?t:e}function CLe(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
404
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:a,tableRow:s,tableCell:l,inlineCode:p}};function a(m,v,y,w){return u(f(m,y,w),m.align)}function s(m,v,y,w){const b=d(m,y,w),x=u([b]);return x.slice(0,x.indexOf(`
|
|
405
|
-
`))}function l(m,v,y,w){const b=y.enter("tableCell"),x=y.enter("phrasing"),S=vH(m,y,{...w,before:o,after:o});return x(),b(),S}function u(m,v){return gLe(m,{align:v,alignDelimiters:r,padding:n,stringLength:i})}function f(m,v,y){const w=m.children;let b=-1;const x=[],S=v.enter("table");for(;++b<w.length;)x[b]=d(w[b],v,y);return S(),x}function d(m,v,y){const w=m.children;let b=-1;const x=[],S=v.enter("tableRow");for(;++b<w.length;)x[b]=l(w[b],m,v,y);return S(),x}function p(m,v,y){let w=bH(m,v,y);return y.stack.includes("tableCell")&&(w=w.replace(/\|/g,"\\$&")),w}}function ELe(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function kLe(e){const t=e.options.listItemIndent||"tab";if(t===1||t==="1")return"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function TLe(e,t,n,r){const i=kLe(n);let o=n.bulletCurrent||ELe(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let a=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(a=Math.ceil(a/4)*4);const s=n.createTracker(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),f);return l(),u;function f(d,p,m){return p?(m?"":" ".repeat(a))+d:(m?o:o+" ".repeat(a-o.length))+d}}const ALe={exit:{taskListCheckValueChecked:M3,taskListCheckValueUnchecked:M3,paragraph:RLe}},$Le={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:OLe}};function M3(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function RLe(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1],r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,a;for(;++o<i.length;){const s=i[o];if(s.type==="paragraph"){a=s;break}}a===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function OLe(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",s=uS(r);o&&s.move(a);let l=TLe(e,t,n,{...r,...s.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(f){return f+a}}function ILe(){return[OPe,YPe(),uLe,yLe,ALe]}function DLe(e){return{extensions:[IPe,XPe(),cLe,CLe(e),$Le]}}function UO(e={}){const t=this.data();n("micromarkExtensions",kPe(e)),n("fromMarkdownExtensions",ILe()),n("toMarkdownExtensions",DLe(e));function n(r,i){(t[r]?t[r]:t[r]=[]).push(i)}}function PLe(e,t){if(e==null)return{};var n=Qe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function c$(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function LLe(e){if(Array.isArray(e))return c$(e)}function MLe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function FLe(e,t){if(e){if(typeof e=="string")return c$(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c$(e,t)}}function NLe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
406
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BLe(e){return LLe(e)||MLe(e)||FLe(e)||NLe()}function Bp(e){"@babel/helpers - typeof";return Bp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bp(e)}function jLe(e,t){if(Bp(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Bp(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _H(e){var t=jLe(e,"string");return Bp(t)==="symbol"?t:String(t)}function gl(e,t,n){return t=_H(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ep(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F3(Object(n),!0).forEach(function(r){gl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zLe(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var Ek={};function ULe(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return Ek[t]||(Ek[t]=zLe(e)),Ek[t]}function KLe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.filter(function(o){return o!=="token"}),i=ULe(r);return i.reduce(function(o,a){return ep(ep({},o),n[a])},t)}function N3(e){return e.join(" ")}function WLe(e,t){var n=0;return function(r){return n+=1,r.map(function(i,o){return xH({node:i,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(o)})})}}function xH(e){var t=e.node,n=e.stylesheet,r=e.style,i=r===void 0?{}:r,o=e.useInlineStyles,a=e.key,s=t.properties,l=t.type,u=t.tagName,f=t.value;if(l==="text")return f;if(u){var d=WLe(n,o),p;if(!o)p=ep(ep({},s),{},{className:N3(s.className)});else{var m=Object.keys(n).reduce(function(b,x){return x.split(".").forEach(function(S){b.includes(S)||b.push(S)}),b},[]),v=s.className&&s.className.includes("token")?["token"]:[],y=s.className&&v.concat(s.className.filter(function(b){return!m.includes(b)}));p=ep(ep({},s),{},{className:N3(y)||void 0,style:KLe(s.className,Object.assign({},s.style,i),n)})}var w=d(t.children);return ht.createElement(u,F({key:a},p),w)}}const VLe=function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1};var HLe=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function B3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ss(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B3(Object(n),!0).forEach(function(r){gl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var qLe=/\n/g;function GLe(e){return e.match(qLe)}function YLe(e){var t=e.lines,n=e.startingLineNumber,r=e.style;return t.map(function(i,o){var a=o+n;return ht.createElement("span",{key:"line-".concat(o),className:"react-syntax-highlighter-line-number",style:typeof r=="function"?r(a):r},"".concat(a,`
|
|
407
|
-
`))})}function XLe(e){var t=e.codeString,n=e.codeStyle,r=e.containerStyle,i=r===void 0?{float:"left",paddingRight:"10px"}:r,o=e.numberStyle,a=o===void 0?{}:o,s=e.startingLineNumber;return ht.createElement("code",{style:Object.assign({},n,i)},YLe({lines:t.replace(/\n$/,"").split(`
|
|
408
|
-
`),style:a,startingLineNumber:s}))}function ZLe(e){return"".concat(e.toString().length,".25em")}function wH(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function SH(e,t,n){var r={display:"inline-block",minWidth:ZLe(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},i=typeof e=="function"?e(t):e,o=Ss(Ss({},r),i);return o}function Db(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,i=e.largestLineNumber,o=e.showInlineLineNumbers,a=e.lineProps,s=a===void 0?{}:a,l=e.className,u=l===void 0?[]:l,f=e.showLineNumbers,d=e.wrapLongLines,p=typeof s=="function"?s(n):s;if(p.className=u,n&&o){var m=SH(r,n,i);t.unshift(wH(n,m))}return d&f&&(p.style=Ss(Ss({},p.style),{},{display:"flex"})),{type:"element",tagName:"span",properties:p,children:t}}function CH(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=0;r<e.length;r++){var i=e[r];if(i.type==="text")n.push(Db({children:[i],className:BLe(new Set(t))}));else if(i.children){var o=t.concat(i.properties.className);CH(i.children,o).forEach(function(a){return n.push(a)})}}return n}function JLe(e,t,n,r,i,o,a,s,l){var u,f=CH(e.value),d=[],p=-1,m=0;function v(A,$){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Db({children:A,lineNumber:$,lineNumberStyle:s,largestLineNumber:a,showInlineLineNumbers:i,lineProps:n,className:I,showLineNumbers:r,wrapLongLines:l})}function y(A,$){if(r&&$&&i){var I=SH(s,$,a);A.unshift(wH($,I))}return A}function w(A,$){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||I.length>0?v(A,$,I):y(A,$)}for(var b=function(){var $=f[m],I=$.children[0].value,z=GLe(I);if(z){var K=I.split(`
|
|
409
|
-
`);K.forEach(function(D,W){var ie=r&&d.length+o,ae={type:"text",value:"".concat(D,`
|
|
410
|
-
`)};if(W===0){var q=f.slice(p+1,m).concat(Db({children:[ae],className:$.properties.className})),G=w(q,ie);d.push(G)}else if(W===K.length-1){var J=f[m+1]&&f[m+1].children&&f[m+1].children[0],le={type:"text",value:"".concat(D)};if(J){var Q=Db({children:[le],className:$.properties.className});f.splice(m+1,0,Q)}else{var te=[le],P=w(te,ie,$.properties.className);d.push(P)}}else{var me=[ae],j=w(me,ie,$.properties.className);d.push(j)}}),p=m}m++};m<f.length;)b();if(p!==f.length-1){var x=f.slice(p+1,f.length);if(x&&x.length){var S=r&&d.length+o,k=w(x,S);d.push(k)}}return t?d:(u=[]).concat.apply(u,d)}function QLe(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(i,o){return xH({node:i,stylesheet:n,useInlineStyles:r,key:"code-segement".concat(o)})})}function EH(e){return e&&typeof e.highlightAuto<"u"}function eMe(e){var t=e.astGenerator,n=e.language,r=e.code,i=e.defaultCodeValue;if(EH(t)){var o=VLe(t,n);return n==="text"?{value:i,language:"text"}:o?t.highlight(n,r):t.highlightAuto(r)}try{return n&&n!=="text"?{value:t.highlight(r,n)}:{value:i}}catch{return{value:i}}}function tMe(e,t){return function(r){var i=r.language,o=r.children,a=r.style,s=a===void 0?t:a,l=r.customStyle,u=l===void 0?{}:l,f=r.codeTagProps,d=f===void 0?{className:i?"language-".concat(i):void 0,style:Ss(Ss({},s['code[class*="language-"]']),s['code[class*="language-'.concat(i,'"]')])}:f,p=r.useInlineStyles,m=p===void 0?!0:p,v=r.showLineNumbers,y=v===void 0?!1:v,w=r.showInlineLineNumbers,b=w===void 0?!0:w,x=r.startingLineNumber,S=x===void 0?1:x,k=r.lineNumberContainerStyle,A=r.lineNumberStyle,$=A===void 0?{}:A,I=r.wrapLines,z=r.wrapLongLines,K=z===void 0?!1:z,D=r.lineProps,W=D===void 0?{}:D,ie=r.renderer,ae=r.PreTag,q=ae===void 0?"pre":ae,G=r.CodeTag,J=G===void 0?"code":G,le=r.code,Q=le===void 0?(Array.isArray(o)?o[0]:o)||"":le,te=r.astGenerator,P=PLe(r,HLe);te=te||e;var me=y?ht.createElement(XLe,{containerStyle:k,codeStyle:d.style||{},numberStyle:$,startingLineNumber:S,codeString:Q}):null,j=s.hljs||s['pre[class*="language-"]']||{backgroundColor:"#fff"},L=EH(te)?"hljs":"prismjs",oe=m?Object.assign({},P,{style:Object.assign({},j,u)}):Object.assign({},P,{className:P.className?"".concat(L," ").concat(P.className):L,style:Object.assign({},u)});if(K?d.style=Ss(Ss({},d.style),{},{whiteSpace:"pre-wrap"}):d.style=Ss(Ss({},d.style),{},{whiteSpace:"pre"}),!te)return ht.createElement(q,oe,me,ht.createElement(J,d,Q));(I===void 0&&ie||K)&&(I=!0),ie=ie||QLe;var ue=[{type:"text",value:Q}],se=eMe({astGenerator:te,language:i,code:Q,defaultCodeValue:ue});se.language===null&&(se.value=ue);var Ee=se.value.length+S,Re=JLe(se,I,W,y,b,S,Ee,$,K);return ht.createElement(q,oe,ht.createElement(J,d,!b&&me,ie({rows:Re,stylesheet:s,useInlineStyles:m})))}}const nMe="modulepreload",rMe=function(e){return"/"+e},j3={},iMe=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=rMe(o),o in j3)return;j3[o]=!0;const a=o.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!r)for(let f=i.length-1;f>=0;f--){const d=i[f];if(d.href===o&&(!a||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${s}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":nMe,a||(u.as="script",u.crossOrigin=""),u.href=o,document.head.appendChild(u),a)return new Promise((f,d)=>{u.addEventListener("load",f),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t())};function z3(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(u){n(u);return}s.done?t(l):Promise.resolve(l).then(r,i)}function oMe(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(l){z3(o,r,i,a,s,"next",l)}function s(l){z3(o,r,i,a,s,"throw",l)}a(void 0)})}}function aMe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U3(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,_H(r.key),r)}}function sMe(e,t,n){return t&&U3(e.prototype,t),n&&U3(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function lMe(e,t){if(typeof t!="function"&&t!==null)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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O_(e,t)}function uMe(e,t){if(t&&(Bp(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return D_(e)}function W_(e){return W_=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},W_(e)}var kH={exports:{}},TH={exports:{}};(function(e){function t(n){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(TH);var cMe=TH.exports;(function(e){var t=cMe.default;function n(){e.exports=n=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var r={},i=Object.prototype,o=i.hasOwnProperty,a=Object.defineProperty||function(q,G,J){q[G]=J.value},s=typeof Symbol=="function"?Symbol:{},l=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",f=s.toStringTag||"@@toStringTag";function d(q,G,J){return Object.defineProperty(q,G,{value:J,enumerable:!0,configurable:!0,writable:!0}),q[G]}try{d({},"")}catch{d=function(J,le,Q){return J[le]=Q}}function p(q,G,J,le){var Q=G&&G.prototype instanceof y?G:y,te=Object.create(Q.prototype),P=new ie(le||[]);return a(te,"_invoke",{value:z(q,J,P)}),te}function m(q,G,J){try{return{type:"normal",arg:q.call(G,J)}}catch(le){return{type:"throw",arg:le}}}r.wrap=p;var v={};function y(){}function w(){}function b(){}var x={};d(x,l,function(){return this});var S=Object.getPrototypeOf,k=S&&S(S(ae([])));k&&k!==i&&o.call(k,l)&&(x=k);var A=b.prototype=y.prototype=Object.create(x);function $(q){["next","throw","return"].forEach(function(G){d(q,G,function(J){return this._invoke(G,J)})})}function I(q,G){function J(Q,te,P,me){var j=m(q[Q],q,te);if(j.type!=="throw"){var L=j.arg,oe=L.value;return oe&&t(oe)=="object"&&o.call(oe,"__await")?G.resolve(oe.__await).then(function(ue){J("next",ue,P,me)},function(ue){J("throw",ue,P,me)}):G.resolve(oe).then(function(ue){L.value=ue,P(L)},function(ue){return J("throw",ue,P,me)})}me(j.arg)}var le;a(this,"_invoke",{value:function(te,P){function me(){return new G(function(j,L){J(te,P,j,L)})}return le=le?le.then(me,me):me()}})}function z(q,G,J){var le="suspendedStart";return function(Q,te){if(le==="executing")throw new Error("Generator is already running");if(le==="completed"){if(Q==="throw")throw te;return{value:void 0,done:!0}}for(J.method=Q,J.arg=te;;){var P=J.delegate;if(P){var me=K(P,J);if(me){if(me===v)continue;return me}}if(J.method==="next")J.sent=J._sent=J.arg;else if(J.method==="throw"){if(le==="suspendedStart")throw le="completed",J.arg;J.dispatchException(J.arg)}else J.method==="return"&&J.abrupt("return",J.arg);le="executing";var j=m(q,G,J);if(j.type==="normal"){if(le=J.done?"completed":"suspendedYield",j.arg===v)continue;return{value:j.arg,done:J.done}}j.type==="throw"&&(le="completed",J.method="throw",J.arg=j.arg)}}}function K(q,G){var J=G.method,le=q.iterator[J];if(le===void 0)return G.delegate=null,J==="throw"&&q.iterator.return&&(G.method="return",G.arg=void 0,K(q,G),G.method==="throw")||J!=="return"&&(G.method="throw",G.arg=new TypeError("The iterator does not provide a '"+J+"' method")),v;var Q=m(le,q.iterator,G.arg);if(Q.type==="throw")return G.method="throw",G.arg=Q.arg,G.delegate=null,v;var te=Q.arg;return te?te.done?(G[q.resultName]=te.value,G.next=q.nextLoc,G.method!=="return"&&(G.method="next",G.arg=void 0),G.delegate=null,v):te:(G.method="throw",G.arg=new TypeError("iterator result is not an object"),G.delegate=null,v)}function D(q){var G={tryLoc:q[0]};1 in q&&(G.catchLoc=q[1]),2 in q&&(G.finallyLoc=q[2],G.afterLoc=q[3]),this.tryEntries.push(G)}function W(q){var G=q.completion||{};G.type="normal",delete G.arg,q.completion=G}function ie(q){this.tryEntries=[{tryLoc:"root"}],q.forEach(D,this),this.reset(!0)}function ae(q){if(q||q===""){var G=q[l];if(G)return G.call(q);if(typeof q.next=="function")return q;if(!isNaN(q.length)){var J=-1,le=function Q(){for(;++J<q.length;)if(o.call(q,J))return Q.value=q[J],Q.done=!1,Q;return Q.value=void 0,Q.done=!0,Q};return le.next=le}}throw new TypeError(t(q)+" is not iterable")}return w.prototype=b,a(A,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:w,configurable:!0}),w.displayName=d(b,f,"GeneratorFunction"),r.isGeneratorFunction=function(q){var G=typeof q=="function"&&q.constructor;return!!G&&(G===w||(G.displayName||G.name)==="GeneratorFunction")},r.mark=function(q){return Object.setPrototypeOf?Object.setPrototypeOf(q,b):(q.__proto__=b,d(q,f,"GeneratorFunction")),q.prototype=Object.create(A),q},r.awrap=function(q){return{__await:q}},$(I.prototype),d(I.prototype,u,function(){return this}),r.AsyncIterator=I,r.async=function(q,G,J,le,Q){Q===void 0&&(Q=Promise);var te=new I(p(q,G,J,le),Q);return r.isGeneratorFunction(G)?te:te.next().then(function(P){return P.done?P.value:te.next()})},$(A),d(A,f,"Generator"),d(A,l,function(){return this}),d(A,"toString",function(){return"[object Generator]"}),r.keys=function(q){var G=Object(q),J=[];for(var le in G)J.push(le);return J.reverse(),function Q(){for(;J.length;){var te=J.pop();if(te in G)return Q.value=te,Q.done=!1,Q}return Q.done=!0,Q}},r.values=ae,ie.prototype={constructor:ie,reset:function(G){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(W),!G)for(var J in this)J.charAt(0)==="t"&&o.call(this,J)&&!isNaN(+J.slice(1))&&(this[J]=void 0)},stop:function(){this.done=!0;var G=this.tryEntries[0].completion;if(G.type==="throw")throw G.arg;return this.rval},dispatchException:function(G){if(this.done)throw G;var J=this;function le(L,oe){return P.type="throw",P.arg=G,J.next=L,oe&&(J.method="next",J.arg=void 0),!!oe}for(var Q=this.tryEntries.length-1;Q>=0;--Q){var te=this.tryEntries[Q],P=te.completion;if(te.tryLoc==="root")return le("end");if(te.tryLoc<=this.prev){var me=o.call(te,"catchLoc"),j=o.call(te,"finallyLoc");if(me&&j){if(this.prev<te.catchLoc)return le(te.catchLoc,!0);if(this.prev<te.finallyLoc)return le(te.finallyLoc)}else if(me){if(this.prev<te.catchLoc)return le(te.catchLoc,!0)}else{if(!j)throw new Error("try statement without catch or finally");if(this.prev<te.finallyLoc)return le(te.finallyLoc)}}}},abrupt:function(G,J){for(var le=this.tryEntries.length-1;le>=0;--le){var Q=this.tryEntries[le];if(Q.tryLoc<=this.prev&&o.call(Q,"finallyLoc")&&this.prev<Q.finallyLoc){var te=Q;break}}te&&(G==="break"||G==="continue")&&te.tryLoc<=J&&J<=te.finallyLoc&&(te=null);var P=te?te.completion:{};return P.type=G,P.arg=J,te?(this.method="next",this.next=te.finallyLoc,v):this.complete(P)},complete:function(G,J){if(G.type==="throw")throw G.arg;return G.type==="break"||G.type==="continue"?this.next=G.arg:G.type==="return"?(this.rval=this.arg=G.arg,this.method="return",this.next="end"):G.type==="normal"&&J&&(this.next=J),v},finish:function(G){for(var J=this.tryEntries.length-1;J>=0;--J){var le=this.tryEntries[J];if(le.finallyLoc===G)return this.complete(le.completion,le.afterLoc),W(le),v}},catch:function(G){for(var J=this.tryEntries.length-1;J>=0;--J){var le=this.tryEntries[J];if(le.tryLoc===G){var Q=le.completion;if(Q.type==="throw"){var te=Q.arg;W(le)}return te}}throw new Error("illegal catch attempt")},delegateYield:function(G,J,le){return this.delegate={iterator:ae(G),resultName:J,nextLoc:le},this.method==="next"&&(this.arg=void 0),v}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(kH);var fMe=kH.exports,Pb=fMe(),dMe=Pb;try{regeneratorRuntime=Pb}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Pb:Function("r","regeneratorRuntime = r")(Pb)}const K3=bi(dMe);function pMe(e){var t=hMe();return function(){var r=W_(e),i;if(t){var o=W_(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return uMe(this,i)}}function hMe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}const gMe=function(e){var t=e.loader,n=e.isLanguageRegistered,r=e.registerLanguage,i=e.languageLoaders,o=e.noAsyncLoadingLanguages,a=function(s){lMe(u,s);var l=pMe(u);function u(){return aMe(this,u),l.apply(this,arguments)}return sMe(u,[{key:"componentDidUpdate",value:function(){!u.isRegistered(this.props.language)&&i&&this.loadLanguage()}},{key:"componentDidMount",value:function(){var d=this;u.astGeneratorPromise||u.loadAstGenerator(),u.astGenerator||u.astGeneratorPromise.then(function(){d.forceUpdate()}),!u.isRegistered(this.props.language)&&i&&this.loadLanguage()}},{key:"loadLanguage",value:function(){var d=this,p=this.props.language;p!=="text"&&u.loadLanguage(p).then(function(){return d.forceUpdate()}).catch(function(){})}},{key:"normalizeLanguage",value:function(d){return u.isSupportedLanguage(d)?d:"text"}},{key:"render",value:function(){return ht.createElement(u.highlightInstance,F({},this.props,{language:this.normalizeLanguage(this.props.language),astGenerator:u.astGenerator}))}}],[{key:"preload",value:function(){return u.loadAstGenerator()}},{key:"loadLanguage",value:function(){var f=oMe(K3.mark(function p(m){var v;return K3.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(v=i[m],typeof v!="function"){w.next=5;break}return w.abrupt("return",v(u.registerLanguage));case 5:throw new Error("Language ".concat(m," not supported"));case 6:case"end":return w.stop()}},p)}));function d(p){return f.apply(this,arguments)}return d}()},{key:"isSupportedLanguage",value:function(d){return u.isRegistered(d)||typeof i[d]=="function"}},{key:"loadAstGenerator",value:function(){return u.astGeneratorPromise=t().then(function(d){u.astGenerator=d,r&&u.languages.forEach(function(p,m){return r(d,m,p)})}),u.astGeneratorPromise}}]),u}(ht.PureComponent);return gl(a,"astGenerator",null),gl(a,"highlightInstance",tMe(null,{})),gl(a,"astGeneratorPromise",null),gl(a,"languages",new Map),gl(a,"supportedLanguages",e.supportedLanguages||Object.keys(i||{})),gl(a,"isRegistered",function(s){if(o)return!0;if(!r)throw new Error("Current syntax highlighter doesn't support registration of languages");return a.astGenerator?n(a.astGenerator,s):a.languages.has(s)}),gl(a,"registerLanguage",function(s,l){if(!r)throw new Error("Current syntax highlighter doesn't support registration of languages");if(a.astGenerator)return r(a.astGenerator,s,l);a.languages.set(s,l)}),a},mMe=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"],vMe=gMe({loader:function(){return iMe(()=>import("./index-34600e45.js").then(t=>t.i),[]).then(function(t){return t.default||t})},noAsyncLoadingLanguages:!0,supportedLanguages:mMe}),yMe={'code[class*="language-"]':{color:"#f8f8f2",background:"none",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#282a36",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#282a36",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#6272a4"},prolog:{color:"#6272a4"},doctype:{color:"#6272a4"},cdata:{color:"#6272a4"},punctuation:{color:"#f8f8f2"},".namespace":{Opacity:".7"},property:{color:"#ff79c6"},tag:{color:"#ff79c6"},constant:{color:"#ff79c6"},symbol:{color:"#ff79c6"},deleted:{color:"#ff79c6"},boolean:{color:"#bd93f9"},number:{color:"#bd93f9"},selector:{color:"#50fa7b"},"attr-name":{color:"#50fa7b"},string:{color:"#50fa7b"},char:{color:"#50fa7b"},builtin:{color:"#50fa7b"},inserted:{color:"#50fa7b"},operator:{color:"#f8f8f2"},entity:{color:"#f8f8f2",cursor:"help"},url:{color:"#f8f8f2"},".language-css .token.string":{color:"#f8f8f2"},".style .token.string":{color:"#f8f8f2"},variable:{color:"#f8f8f2"},atrule:{color:"#f1fa8c"},"attr-value":{color:"#f1fa8c"},function:{color:"#f1fa8c"},"class-name":{color:"#f1fa8c"},keyword:{color:"#8be9fd"},regex:{color:"#ffb86c"},important:{color:"#ffb86c",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};function gy(){return nr().palette.mode==="dark"}const bMe=Mi([C.jsx("path",{d:"M15 2h-3.5l-1-1h-5l-1 1H1v2h14zm1 7c-.7 0-1.37.1-2 .29V5H2v12c0 1.1.9 2 2 2h5.68c1.12 2.36 3.53 4 6.32 4 3.87 0 7-3.13 7-7s-3.13-7-7-7zm0 12c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"},"0"),C.jsx("path",{d:"M16.5 12H15v5l3.6 2.1.8-1.2-2.9-1.7z"},"1")],"AutoDelete"),_Me=Mi(C.jsx("path",{d:"M18 2H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H9V4h9v12zM3 15v-2h2v2H3zm0-5.5h2v2H3v-2zM10 20h2v2h-2v-2zm-7-1.5v-2h2v2H3zM5 22c-1.1 0-2-.9-2-2h2v2zm3.5 0h-2v-2h2v2zm5 0v-2h2c0 1.1-.9 2-2 2zM5 6v2H3c0-1.1.9-2 2-2z"}),"CopyAll"),xMe=Mi(C.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"}),"Info"),wMe=Mi(C.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDown"),AH=({value:e,theme:t})=>{const[n,r]=CO(),i=gy(),[o,a]=RRe(),s=()=>{if(t){if(t==="dark")return gt[200];if(t==="light")return gt[800]}return i?gt[200]:gt[800]};return C.jsx(Io,{open:n,title:"Copied to clipboard!",onClose:r,sx:{zIndex:2},children:C.jsx(vr,{sx:{color:s(),position:"absolute",right:4,top:4},onClick:()=>{a(e).then(()=>r()).catch(l=>console.log("An error occurred while copying: ",l))},children:C.jsx(_Me,{})})})};function KO({inline:e,children:t,...n}){const r=gy(),i=/language-(\w+)/.exec(n.className||""),o=!e&&i,a=()=>o?C.jsx(vMe,{...n,children:String(t).replace(/\n$/,""),style:yMe,customStyle:{paddingRight:"2.5em"},wrapLongLines:!0,language:i[1],PreTag:"div"}):e?C.jsx("code",{...n,style:{background:r?gt[800]:gt[200],borderRadius:"4px",padding:"0.2em 0.4em",overflowX:"auto"},children:t}):C.jsx(st,{sx:{background:r?gt[800]:gt[200],borderRadius:"4px",padding:s=>s.spacing(1),paddingRight:"2.5em",overflowX:"auto"},children:C.jsx("code",{...n,style:{whiteSpace:"pre-wrap"},children:t})});return C.jsxs("code",{style:{position:"relative"},children:[e?null:C.jsx(AH,{value:t[0],theme:o?"dark":void 0}),a()]})}function $H({element:e}){const[t,n]=T.useState(!1),[r,i]=T.useState(!1),[o,a]=T.useState("");T.useEffect(()=>{t||!e.url||(n(!0),fetch(e.url).then(l=>l.text()).then(l=>{a(l),n(!1),i(!1)}).catch(()=>{a(""),i(!0),n(!1)}))},[e]);let s=t?"Loading...":r?"Error":o||e.content;return!t&&!r&&e.language&&(s=`\`\`\`${e.language}
|
|
411
|
-
${s}
|
|
412
|
-
\`\`\``),C.jsx(lS,{remarkPlugins:[UO],className:"markdown-body",components:{a:({children:l,...u})=>C.jsx(ly,{...u,target:"_blank",children:l}),code:({...l})=>C.jsx(KO,{...l})},children:s})}function RH({element:e}){if(!e.url&&!e.content)return null;const t=`${e.display}-video`,n=e.url||URL.createObjectURL(new Blob([e.content],{type:"video/mp4"}));return C.jsx("video",{className:t,width:"100%",controls:!0,src:n})}const OH=e=>{switch(e.type){case"file":return C.jsx(yV,{element:e});case"image":return C.jsx(bV,{element:e});case"text":return C.jsx($H,{element:e});case"pdf":return C.jsx(_V,{element:e});case"audio":return C.jsx(hV,{element:e});case"video":return C.jsx(RH,{element:e})}},SMe=()=>{const{id:e}=BU(),t=NRe(),n=yt(tS),r=yt(Fl),[i,o]=T.useState(),[a,s]=T.useState(null),l=t.get("conversation");if(!a&&e)if(l)r.getElement(l,e).then(s).catch(u=>{o(u.message)});else{const u=n.find(f=>f.id===e);u&&s(u)}return!a||i?null:C.jsxs(st,{display:"flex",flexDirection:"column",flexGrow:1,p:3,gap:2,boxSizing:"border-box",mx:"auto",sx:{width:"100%",maxWidth:"60rem",color:"text.primary"},id:"element-view",children:[C.jsx(Zt,{fontWeight:700,fontSize:"25px",children:a.name}),OH(a)]})},kk=400,CMe=T.forwardRef(function({...t},n){return delete t.handleAxis,C.jsx(st,{sx:{width:"4px",height:"24px",position:"absolute",top:"50%",marginTop:"-12px",left:0,cursor:"ew-resize",padding:"10px 5px"},ref:n,...t,children:C.jsx(st,{sx:{width:"100%",height:"100%",backgroundColor:"grey.300",borderRadius:"4px"}})})}),IH=({children:e})=>{const[t,n]=cr(AO),[r,i]=T.useState(!1),[o,a]=T.useState(kk),s=(d,p)=>a(p.size.width),{width:l}=IRe(),u=!Vw(d=>d.breakpoints.up("sm")),f=T.useMemo(()=>t?OH(t):null,[t]);return o<kk&&u&&a(kk),C.jsxs(C.Fragment,{children:[C.jsx(EMe,{open:!!t,width:o,children:e}),C.jsx(ARe,{width:o,height:0,onResize:s,onResizeStart:()=>i(!0),onResizeStop:()=>i(!1),resizeHandles:["w"],handle:u?C.jsx(C.Fragment,{}):C.jsx(CMe,{}),axis:"x",minConstraints:[100,0],maxConstraints:[l/2,0],children:C.jsxs(kMe,{anchor:"right",isSmallScreen:u,open:!!t,variant:u?"temporary":"persistent",width:o,children:[C.jsxs(Ht,{direction:"row",alignItems:"center",children:[C.jsx(Zt,{noWrap:!0,fontSize:"20px",fontWeight:500,id:"side-view-title",children:t==null?void 0:t.name}),C.jsx(vr,{edge:"end",sx:{ml:"auto"},onClick:()=>n(void 0),children:C.jsx(lh,{})})]}),C.jsx(st,{mt:"1.5rem",id:"side-view-content",sx:{height:"100%",pointerEvents:r?"none":"auto"},children:f})]})})]})},EMe=Le(st,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>({width:"100%",display:"flex",flexDirection:"column",boxSizing:"border-box",padding:"0 16px",transition:e.transitions.create("margin",{easing:e.transitions.easing[t?"easeOut":"sharp"],duration:e.transitions.duration[t?"enteringScreen":"leavingScreen"]})})),kMe=Le(vW,{shouldForwardProp:e=>e!=="isSmallScreen"})(({theme:e,open:t,width:n,isSmallScreen:r})=>({width:n,flexShrink:0,display:t?"flex":"none","& .MuiDrawer-paper":{position:"inherit",width:n,maxWidth:r?"80%":"100%",backgroundColor:e.palette.mode==="dark"?e.palette.grey[800]:e.palette.grey[100],borderLeft:`1px solid ${e.palette.mode==="dark"?e.palette.grey[800]:e.palette.grey[200]}`,flexDirection:"column",borderRadius:0,color:e.palette.text.primary,whiteSpace:"nowrap",boxSizing:"border-box",padding:"1.5rem",paddingTop:".5rem",overflowX:"hidden"}})),Tf=Gn({key:"Session",dangerouslyAllowMutability:!0,default:void 0}),cS=Gn({key:"Messages",dangerouslyAllowMutability:!0,default:[]}),DH=Gn({key:"TokenCount",default:0}),my=Gn({key:"Loading",default:!1}),fS=Gn({key:"AskUser",default:void 0}),PH=Gn({key:"HighlightMessage",default:null}),vy=Gn({key:"ChatSettings",default:{open:!1,inputs:[]}}),LH=fK({key:"ChatSettingsValue/Default",get:({get:e})=>e(vy).inputs.reduce((n,r)=>(n[r.id]=r.initial,n),{})}),WO=Gn({key:"ChatSettingsValue",default:LH}),TMe="light",W3=localStorage.getItem("themeVariant"),AMe=W3||TMe,Ks=Gn({key:"AppSettings",default:{open:!1,expandAll:!1,hideCot:!1,theme:AMe}}),V3=["#066DEB","#04857C","#FF9900","#F34F3C","#E86004","#2D8C26","#5E5BFE","#A132FE"],Tk=["#67A0F8","#25B1A7","#FFC266","#F09691","#FA7F54","#59C654","#9695F8","#B889F8"];function $Me(e){return e.split("").reduce((n,r)=>n=r.charCodeAt(0)+(n<<6)+(n<<16)-n,0)}function VO(e){const{theme:t}=yt(Ks);let n=t==="dark"?Tk:V3;return e&&(n===Tk?n=V3:n=Tk),n}function RMe(){const e=yt(ya),t=VO();return function(n,r,i){var a;if(i)return"error.main";if(n===((a=e==null?void 0:e.ui)==null?void 0:a.name))return"primary.main";if(r)return"text.primary";const o=Math.abs($Me(n))%t.length;return t[o]}}function OMe({element:e,author:t}){const n=e.url||URL.createObjectURL(new Blob([e.content])),r="message-avatar";return C.jsx(Io,{title:t,children:C.jsx("span",{className:r,children:C.jsx(KA,{sx:{width:38,height:38,mt:"-4px"},src:n})})})}function IMe({timestamp:e}){if(!e)return null;const t={hour:"2-digit",minute:"2-digit",second:"2-digit"},n=new Date(e).toLocaleTimeString(void 0,t);return C.jsx(Zt,{lineHeight:"24px",color:gt[500],fontSize:"11px",children:n})}const f$=70;function DMe({message:e,show:t}){const n=RMe(),i=yt(kO).find(l=>l.name===e.author),o=t&&i&&C.jsx(OMe,{element:i,author:e.author}),a=t&&C.jsx(Io,{title:e.author,children:C.jsx(Zt,{noWrap:!0,lineHeight:"24px",sx:{mb:"-5px",width:f$,fontSize:"12px",fontWeight:500,color:n(e.author,e.authorIsUser,e.isError)},children:e.author})}),s=o||a;return C.jsxs(C.Fragment,{children:[C.jsxs(st,{width:f$,pr:2,children:[s,C.jsx(IMe,{timestamp:e.createdAt})]}),(!!e.indent||e.parentId)&&C.jsx(st,{width:"2px",borderRadius:"13px",bgcolor:n(e.author,e.authorIsUser),mr:2})]})}var HO={},PMe=Nn;Object.defineProperty(HO,"__esModule",{value:!0});var MH=HO.default=void 0,LMe=PMe(Bn()),MMe=C,FMe=(0,LMe.default)((0,MMe.jsx)("path",{d:"M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-6 8h-4v-2h4v2zm0-4h-4v-2h4v2z"}),"BugReport");MH=HO.default=FMe;function NMe(e){return bt("MuiLoadingButton",e)}const BMe=_t("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),ul=BMe,jMe=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],zMe=e=>{const{loading:t,loadingPosition:n,classes:r}=e,i={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${Fe(n)}`],endIcon:[t&&`endIconLoading${Fe(n)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${Fe(n)}`]},o=St(i,NMe,r);return F({},r,o)},UMe=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",KMe=Le(Cf,{shouldForwardProp:e=>UMe(e)||e==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${ul.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${ul.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})(({ownerState:e,theme:t})=>F({[`& .${ul.startIconLoadingStart}, & .${ul.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},e.loadingPosition==="center"&&{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${ul.loading}`]:{color:"transparent"}},e.loadingPosition==="start"&&e.fullWidth&&{[`& .${ul.startIconLoadingStart}, & .${ul.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},e.loadingPosition==="end"&&e.fullWidth&&{[`& .${ul.startIconLoadingStart}, & .${ul.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}})),WMe=Le("div",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t[`loadingIndicator${Fe(n.loadingPosition)}`]]}})(({theme:e,ownerState:t})=>F({position:"absolute",visibility:"visible",display:"flex"},t.loadingPosition==="start"&&(t.variant==="outlined"||t.variant==="contained")&&{left:t.size==="small"?10:14},t.loadingPosition==="start"&&t.variant==="text"&&{left:6},t.loadingPosition==="center"&&{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled},t.loadingPosition==="end"&&(t.variant==="outlined"||t.variant==="contained")&&{right:t.size==="small"?10:14},t.loadingPosition==="end"&&t.variant==="text"&&{right:6},t.loadingPosition==="start"&&t.fullWidth&&{position:"relative",left:-10},t.loadingPosition==="end"&&t.fullWidth&&{position:"relative",right:-10})),VMe=T.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiLoadingButton"}),{children:i,disabled:o=!1,id:a,loading:s=!1,loadingIndicator:l,loadingPosition:u="center",variant:f="text"}=r,d=Qe(r,jMe),p=ty(a),m=l??C.jsx(lO,{"aria-labelledby":p,color:"inherit",size:16}),v=F({},r,{disabled:o,loading:s,loadingIndicator:m,loadingPosition:u,variant:f}),y=zMe(v),w=s?C.jsx(WMe,{className:y.loadingIndicator,ownerState:v,children:m}):null;return C.jsxs(KMe,F({disabled:o||s,id:p,ref:n},d,{variant:f,classes:y,ownerState:v,children:[v.loadingPosition==="end"?i:w,v.loadingPosition==="end"?w:i]}))}),qO=VMe;function yy({children:e,...t}){return C.jsx("span",{children:C.jsx(Cf,{sx:{textTransform:"none",color:n=>n.palette.mode==="dark"?"text.primary":n.palette.primary.main,background:n=>n.palette.mode==="dark"?gt[700]:n.palette.primary.light,"&:hover":{background:n=>n.palette.mode==="dark"?gt[700]:n.palette.primary.light}},...t,children:e})})}const HMe=({action:e,loading:t,session:n})=>{const r=T.useCallback(async()=>{try{if(!(n==null?void 0:n.socket.id))return;n==null||n.socket.emit("action_call",e)}catch(o){o instanceof Error&&Mr.error(o.message)}},[n]),i=C.jsx(qO,{id:e.id,onClick:r,disabled:t,children:e.label||e.name});return C.jsx(Io,{title:e.description,placement:"top",children:i})};function qMe({actions:e}){const t=yt(my),n=yt(Tf),[r,i]=ht.useState(null),o=Vw(s=>s.breakpoints.down("sm")),a=s=>s.map(l=>C.jsx(HMe,{action:l,loading:t,session:n},l.id));return C.jsxs(st,{id:"actions-list",margin:"auto",children:[o?null:a(e.slice(0,2)),e.length>2?C.jsxs(C.Fragment,{children:[C.jsx(yy,{id:"actions-button",onClick:s=>i(s.currentTarget),children:"More actions"}),C.jsx(uy,{id:"actions-menu",anchorEl:r,open:!!r,onClose:()=>i(null),sx:{marginTop:1},children:C.jsx(Ht,{direction:"column",paddingX:2,gap:1,children:a(o?e:e.slice(2,e.length))})})]}):null]})}const es=Gn({key:"Playground",default:void 0}),dS=Gn({key:"PlaygroundVariable",default:void 0}),pS=Gn({key:"PlaygroundMode",default:"Template"});var GO={},GMe=Nn;Object.defineProperty(GO,"__esModule",{value:!0});var FH=GO.default=void 0,YMe=GMe(Bn()),XMe=C,ZMe=(0,YMe.default)((0,XMe.jsx)("path",{d:"M22 4h-2c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h2V4zM2.17 11.12c-.11.25-.17.52-.17.8V13c0 1.1.9 2 2 2h5.5l-.92 4.65c-.05.22-.02.46.08.66.23.45.52.86.88 1.22L10 22l6.41-6.41c.38-.38.59-.89.59-1.42V6.34C17 5.05 15.95 4 14.66 4h-8.1c-.71 0-1.36.37-1.72.97l-2.67 6.15z"}),"ThumbDownAlt");FH=GO.default=ZMe;var YO={},JMe=Nn;Object.defineProperty(YO,"__esModule",{value:!0});var NH=YO.default=void 0,QMe=JMe(Bn()),eFe=C,tFe=(0,QMe.default)((0,eFe.jsx)("path",{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.58-6.59c.37-.36.59-.86.59-1.41V5c0-1.1-.9-2-2-2zm0 12-4.34 4.34L11.77 14H3v-2l3-7h9v10zm4-12h4v12h-4z"}),"ThumbDownAltOutlined");NH=YO.default=tFe;var XO={},nFe=Nn;Object.defineProperty(XO,"__esModule",{value:!0});var BH=XO.default=void 0,rFe=nFe(Bn()),iFe=C,oFe=(0,rFe.default)((0,iFe.jsx)("path",{d:"M2 20h2c.55 0 1-.45 1-1v-9c0-.55-.45-1-1-1H2v11zm19.83-7.12c.11-.25.17-.52.17-.8V11c0-1.1-.9-2-2-2h-5.5l.92-4.65c.05-.22.02-.46-.08-.66-.23-.45-.52-.86-.88-1.22L14 2 7.59 8.41C7.21 8.79 7 9.3 7 9.83v7.84C7 18.95 8.05 20 9.34 20h8.11c.7 0 1.36-.37 1.72-.97l2.66-6.15z"}),"ThumbUpAlt");BH=XO.default=oFe;var ZO={},aFe=Nn;Object.defineProperty(ZO,"__esModule",{value:!0});var jH=ZO.default=void 0,sFe=aFe(Bn()),lFe=C,uFe=(0,sFe.default)((0,lFe.jsx)("path",{d:"M21 8h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2c0-1.1-.9-2-2-2zm0 4-3 7H9V9l4.34-4.34L12.23 10H21v2zM1 9h4v12H1z"}),"ThumbUpAltOutlined");jH=ZO.default=uFe;const L1="16px";function cFe({message:e}){const t=yt(cS),[n,r]=T.useState(e.humanFeedback||0),i=yt(Fl),o=n===-1?FH:NH,a=n===1?BH:jH,s=async l=>{try{await CU.promise(i.setHumanFeedback(e.id,l),{loading:"Updating...",success:"Feedback updated!",error:f=>C.jsx("span",{children:f.message})});const u=t.find(f=>f.id===e.id);u&&(u.humanFeedback=l),r(l)}catch(u){console.log(u)}};return C.jsxs(Ht,{direction:"row",spacing:1,children:[C.jsx(Io,{title:"Negative feedback",children:C.jsx(vr,{className:`negative-feedback-${n===-1?"on":"off"}`,onClick:()=>s(n===-1?0:-1),size:"small",children:C.jsx(o,{sx:{width:L1,height:L1}})})}),C.jsx(Io,{title:"Positive feedback",children:C.jsx(vr,{className:`positive-feedback-${n===1?"on":"off"}`,onClick:()=>s(n===1?0:1),size:"small",children:C.jsx(a,{sx:{width:L1,height:L1}})})})]})}function fFe({message:e,actions:t}){var l;const n=yt(ya),r=hn(es),i=t.filter(u=>u.forId?u.forId===e.id:!0),a=!!e.prompt&&!!e.content?C.jsx(Io,{title:"Inspect in prompt playground",children:C.jsx(vr,{size:"small",className:"playground-button",onClick:()=>{e.prompt&&r(u=>({...u,prompt:e.prompt,originalPrompt:e.prompt}))},children:C.jsx(MH,{sx:{width:"16px",height:"16px"}})})}):null,s=!!((l=n==null?void 0:n.project)!=null&&l.database)&&!e.authorIsUser&&!e.waitForAnswer&&!!e.content;return C.jsxs(Ht,{direction:"row",spacing:1,children:[a,s?C.jsx(cFe,{message:e}):null,i.length?C.jsx(qMe,{actions:i}):null]})}function dFe({element:e}){const t=hn(AO);if(e.display==="inline")return C.jsx("span",{style:{fontWeight:700},children:e.name});let n=`/element/${e.id}`;return e.conversationId&&(n+=`?conversation=${e.conversationId}`),C.jsx(ly,{className:"element-link",onClick:()=>{e.display==="side"&&t(e)},component:Uv,to:e.display==="page"?n:"#",children:e.name})}function pFe({items:e}){return C.jsx(Ht,{spacing:1,children:e.map((t,n)=>C.jsx(st,{pt:.5,children:C.jsx(hV,{element:t})},n))})}function hFe({items:e}){return C.jsx(Ht,{spacing:1,direction:"row",children:e.map((t,n)=>C.jsx("div",{children:C.jsx(yV,{element:t})},n))})}function H3(e){return e.size==="small"?1:e.size==="medium"?2:e.size==="large"?4:2}function zH({elements:e,renderElement:t}){return C.jsx(vCe,{sx:{margin:0,transform:"translateZ(0)",width:"100%",maxWidth:600,maxHeight:400},variant:"quilted",cols:4,gap:8,children:e.map((n,r)=>{const i=H3(n),o=H3(n);return C.jsx(CCe,{cols:i,rows:o,children:C.jsx(t,{element:n})},r)})})}function gFe({items:e}){return C.jsx(zH,{elements:e,renderElement:bV})}function mFe({items:e}){return C.jsx(Ht,{spacing:1,children:e.map((t,n)=>C.jsx("div",{style:{maxWidth:"600px",height:"400px"},children:C.jsx(_V,{element:t})},n))})}function vFe({items:e}){return C.jsx(Ht,{spacing:1,children:e.map((t,n)=>C.jsxs(no,{color:"info",icon:!1,children:[C.jsx(rxe,{children:t.name}),C.jsx($H,{element:t})]},n))})}function yFe({items:e}){return C.jsx(zH,{elements:e,renderElement:RH})}function bFe({elements:e}){var n,r,i,o,a,s;if(!e.length)return null;const t=e.reduce((l,u)=>(l[u.type]||(l[u.type]=[]),l[u.type].push(u),l),{});return C.jsxs(Ht,{gap:1,mt:1,children:[(n=t.image)!=null&&n.length?C.jsx(gFe,{items:t.image}):null,(r=t.text)!=null&&r.length?C.jsx(vFe,{items:t.text}):null,(i=t.pdf)!=null&&i.length?C.jsx(mFe,{items:t.pdf}):null,(o=t.audio)!=null&&o.length?C.jsx(pFe,{items:t.audio}):null,(a=t.video)!=null&&a.length?C.jsx(yFe,{items:t.video}):null,(s=t.file)!=null&&s.length?C.jsx(hFe,{items:t.file}):null]})}const q3=(e,t)=>!t||!t.length||!e?!1:t.includes(e.toString()),_Fe=e=>!e||!e.length;function xFe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function wFe({id:e,elements:t,content:n,language:r}){const i=t.map(u=>xFe(u.name));i.sort((u,f)=>f.length-u.length);const o=i.length?new RegExp(`(${i.join("|")})`,"g"):void 0;let a=n?n.trim():"";const s=t.filter(u=>q3(e,u==null?void 0:u.forIds)&&u.display==="inline"),l=[];return o&&(a=a.replaceAll(o,u=>{const f=t.find(m=>{const v=m.name===u,y=_Fe(m==null?void 0:m.forIds)||q3(e,m==null?void 0:m.forIds);return v&&y}),d=!!f,p=(f==null?void 0:f.display)==="inline";return d?p?(s.indexOf(f)===-1&&s.push(f),u):(l.push(f),`[${u}](${u.replaceAll(" ","_")})`):u})),r&&(a=`\`\`\`${r}
|
|
413
|
-
${a}
|
|
414
|
-
\`\`\``),{preparedContent:a,inlinedElements:s,refElements:l}}const SFe=T.memo(function({id:t,content:n,elements:r,language:i,authorIsUser:o}){const{preparedContent:a,inlinedElements:s,refElements:l}=wFe({id:t,content:n,language:i,elements:r});return a?C.jsxs(Ht,{width:"100%",children:[C.jsx(Ht,{direction:"row",children:C.jsx(Zt,{sx:{width:"100%",minHeight:"20px",fontSize:"1rem",lineHeight:"1.5rem",fontFamily:"Inter",fontWeight:o?500:300},component:"div",children:C.jsx(lS,{remarkPlugins:[UO],className:"markdown-body",components:{a({children:u,...f}){const d=u[0],p=l.find(m=>m.name===d);return p?C.jsx(dFe,{element:p}):C.jsx(ly,{...f,target:"_blank",children:u})},code({...u}){return C.jsx(KO,{...u})}},children:a})})}),C.jsx(bFe,{elements:s})]}):null});var JO={},CFe=Nn;Object.defineProperty(JO,"__esModule",{value:!0});var QO=JO.default=void 0,EFe=CFe(Bn()),kFe=C,TFe=(0,EFe.default)((0,kFe.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess");QO=JO.default=TFe;var eI={},AFe=Nn;Object.defineProperty(eI,"__esModule",{value:!0});var tI=eI.default=void 0,$Fe=AFe(Bn()),RFe=C,OFe=(0,$Fe.default)((0,RFe.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");tI=eI.default=OFe;function IFe({message:e,opened:t,onClick:n,loading:r}){var v;const{hideCot:i}=yt(Ks),o=(v=e.subMessages)==null?void 0:v.length,a=!!o,s=a?e.subMessages[o-1].author:void 0,l=r&&!e.content,u=r&&e.authorIsUser;if(!(a||l||u)||i)return null;const d=o?e.subMessages.filter(y=>!!y.content).length:0,p=r?s?`Using ${s}`:"Running":`Took ${d} step${d<=1?"":"s"}`;let m="";return s&&(m=s.trim().toLowerCase().replaceAll(" ","-")),r?m+="-loading":m+="-done",C.jsx(OO,{id:m,disableElevation:!0,disableRipple:!0,sx:{textTransform:"none"},color:"primary",startIcon:r?C.jsx(lO,{color:"inherit",size:16}):void 0,variant:"contained",endIcon:a&&s?t?C.jsx(QO,{}):C.jsx(tI,{}):void 0,onClick:s?n:void 0,children:p})}function fh(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(f){try{u(r.next(f))}catch(d){a(d)}}function l(f){try{u(r.throw(f))}catch(d){a(d)}}function u(f){f.done?o(f.value):i(f.value).then(s,l)}u((r=r.apply(e,t||[])).next())})}function dh(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(u){return function(f){return l([u,f])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(f){u=[6,f],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function G3(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],a;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(s){a={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}function Y3(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var DFe=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function by(e,t){var n=PFe(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function PFe(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),i=DFe.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var LFe=[".DS_Store","Thumbs.db"];function MFe(e){return fh(this,void 0,void 0,function(){return dh(this,function(t){return V_(e)&&FFe(e.dataTransfer)?[2,zFe(e.dataTransfer,e.type)]:NFe(e)?[2,BFe(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,jFe(e)]:[2,[]]})})}function FFe(e){return V_(e)}function NFe(e){return V_(e)&&V_(e.target)}function V_(e){return typeof e=="object"&&e!==null}function BFe(e){return d$(e.target.files).map(function(t){return by(t)})}function jFe(e){return fh(this,void 0,void 0,function(){var t;return dh(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return by(r)})]}})})}function zFe(e,t){return fh(this,void 0,void 0,function(){var n,r;return dh(this,function(i){switch(i.label){case 0:return e.items?(n=d$(e.items).filter(function(o){return o.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(UFe))]):[3,2];case 1:return r=i.sent(),[2,X3(UH(r))];case 2:return[2,X3(d$(e.files).map(function(o){return by(o)}))]}})})}function X3(e){return e.filter(function(t){return LFe.indexOf(t.name)===-1})}function d$(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function UFe(e){if(typeof e.webkitGetAsEntry!="function")return Z3(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?KH(t):Z3(e)}function UH(e){return e.reduce(function(t,n){return Y3(Y3([],G3(t),!1),G3(Array.isArray(n)?UH(n):[n]),!1)},[])}function Z3(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=by(t);return Promise.resolve(n)}function KFe(e){return fh(this,void 0,void 0,function(){return dh(this,function(t){return[2,e.isDirectory?KH(e):WFe(e)]})})}function KH(e){var t=e.createReader();return new Promise(function(n,r){var i=[];function o(){var a=this;t.readEntries(function(s){return fh(a,void 0,void 0,function(){var l,u,f;return dh(this,function(d){switch(d.label){case 0:if(s.length)return[3,5];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return l=d.sent(),n(l),[3,4];case 3:return u=d.sent(),r(u),[3,4];case 4:return[3,6];case 5:f=Promise.all(s.map(KFe)),i.push(f),o(),d.label=6;case 6:return[2]}})})},function(s){r(s)})}o()})}function WFe(e){return fh(this,void 0,void 0,function(){return dh(this,function(t){return[2,new Promise(function(n,r){e.file(function(i){var o=by(i,e.fullPath);n(o)},function(i){r(i)})})]})})}var VFe=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=(e.type||"").toLowerCase(),o=i.replace(/\/.*$/,"");return n.some(function(a){var s=a.trim().toLowerCase();return s.charAt(0)==="."?r.toLowerCase().endsWith(s):s.endsWith("/*")?o===s.replace(/\/.*$/,""):i===s})}return!0};function J3(e){return GFe(e)||qFe(e)||VH(e)||HFe()}function HFe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
415
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qFe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GFe(e){if(Array.isArray(e))return p$(e)}function Q3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ej(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Q3(Object(n),!0).forEach(function(r){WH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function WH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $v(e,t){return ZFe(e)||XFe(e,t)||VH(e,t)||YFe()}function YFe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
416
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VH(e,t){if(e){if(typeof e=="string")return p$(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p$(e,t)}}function p$(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XFe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function ZFe(e){if(Array.isArray(e))return e}var JFe="file-invalid-type",QFe="file-too-large",eNe="file-too-small",tNe="too-many-files",nNe=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:JFe,message:"File type must be ".concat(n)}},tj=function(t){return{code:QFe,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},nj=function(t){return{code:eNe,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},rNe={code:tNe,message:"Too many files"};function HH(e,t){var n=e.type==="application/x-moz-file"||VFe(e,t);return[n,n?null:nNe(t)]}function qH(e,t,n){if(Nc(e.size))if(Nc(t)&&Nc(n)){if(e.size>n)return[!1,tj(n)];if(e.size<t)return[!1,nj(t)]}else{if(Nc(t)&&e.size<t)return[!1,nj(t)];if(Nc(n)&&e.size>n)return[!1,tj(n)]}return[!0,null]}function Nc(e){return e!=null}function iNe(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,o=e.multiple,a=e.maxFiles,s=e.validator;return!o&&t.length>1||o&&a>=1&&t.length>a?!1:t.every(function(l){var u=HH(l,n),f=$v(u,1),d=f[0],p=qH(l,r,i),m=$v(p,1),v=m[0],y=s?s(l):null;return d&&v&&!y})}function H_(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function M1(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function rj(e){e.preventDefault()}function oNe(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function aNe(e){return e.indexOf("Edge/")!==-1}function sNe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return oNe(e)||aNe(e)}function ds(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];return t.some(function(s){return!H_(r)&&s&&s.apply(void 0,[r].concat(o)),H_(r)})}}function lNe(){return"showOpenFilePicker"in window}function uNe(e){if(Nc(e)){var t=Object.entries(e).filter(function(n){var r=$v(n,2),i=r[0],o=r[1],a=!0;return GH(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),(!Array.isArray(o)||!o.every(YH))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=$v(r,2),o=i[0],a=i[1];return ej(ej({},n),{},WH({},o,a))},{});return[{description:"Files",accept:t}]}return e}function cNe(e){if(Nc(e))return Object.entries(e).reduce(function(t,n){var r=$v(n,2),i=r[0],o=r[1];return[].concat(J3(t),[i],J3(o))},[]).filter(function(t){return GH(t)||YH(t)}).join(",")}function fNe(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function dNe(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function GH(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function YH(e){return/^.*\.[\w]+$/.test(e)}var pNe=["children"],hNe=["open"],gNe=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],mNe=["refKey","onChange","onClick"];function vNe(e){return _Ne(e)||bNe(e)||XH(e)||yNe()}function yNe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
417
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bNe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _Ne(e){if(Array.isArray(e))return h$(e)}function Ak(e,t){return SNe(e)||wNe(e,t)||XH(e,t)||xNe()}function xNe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
418
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XH(e,t){if(e){if(typeof e=="string")return h$(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h$(e,t)}}function h$(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wNe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(e);!(i=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function SNe(e){if(Array.isArray(e))return e}function ij(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ar(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ij(Object(n),!0).forEach(function(r){g$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ij(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function g$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q_(e,t){if(e==null)return{};var n=CNe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function CNe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var nI=T.forwardRef(function(e,t){var n=e.children,r=q_(e,pNe),i=JH(r),o=i.open,a=q_(i,hNe);return T.useImperativeHandle(t,function(){return{open:o}},[o]),ht.createElement(T.Fragment,null,n(ar(ar({},a),{},{open:o})))});nI.displayName="Dropzone";var ZH={disabled:!1,getFilesFromEvent:MFe,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};nI.defaultProps=ZH;nI.propTypes={children:ct.func,accept:ct.objectOf(ct.arrayOf(ct.string)),multiple:ct.bool,preventDropOnDocument:ct.bool,noClick:ct.bool,noKeyboard:ct.bool,noDrag:ct.bool,noDragEventsBubbling:ct.bool,minSize:ct.number,maxSize:ct.number,maxFiles:ct.number,disabled:ct.bool,getFilesFromEvent:ct.func,onFileDialogCancel:ct.func,onFileDialogOpen:ct.func,useFsAccessApi:ct.bool,autoFocus:ct.bool,onDragEnter:ct.func,onDragLeave:ct.func,onDragOver:ct.func,onDrop:ct.func,onDropAccepted:ct.func,onDropRejected:ct.func,onError:ct.func,validator:ct.func};var m$={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function JH(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=ar(ar({},ZH),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,o=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,u=t.onDragEnter,f=t.onDragLeave,d=t.onDragOver,p=t.onDrop,m=t.onDropAccepted,v=t.onDropRejected,y=t.onFileDialogCancel,w=t.onFileDialogOpen,b=t.useFsAccessApi,x=t.autoFocus,S=t.preventDropOnDocument,k=t.noClick,A=t.noKeyboard,$=t.noDrag,I=t.noDragEventsBubbling,z=t.onError,K=t.validator,D=T.useMemo(function(){return cNe(n)},[n]),W=T.useMemo(function(){return uNe(n)},[n]),ie=T.useMemo(function(){return typeof w=="function"?w:oj},[w]),ae=T.useMemo(function(){return typeof y=="function"?y:oj},[y]),q=T.useRef(null),G=T.useRef(null),J=T.useReducer(ENe,m$),le=Ak(J,2),Q=le[0],te=le[1],P=Q.isFocused,me=Q.isFileDialogActive,j=T.useRef(typeof window<"u"&&window.isSecureContext&&b&&lNe()),L=function(){!j.current&&me&&setTimeout(function(){if(G.current){var H=G.current.files;H.length||(te({type:"closeDialog"}),ae())}},300)};T.useEffect(function(){return window.addEventListener("focus",L,!1),function(){window.removeEventListener("focus",L,!1)}},[G,me,ae,j]);var oe=T.useRef([]),ue=function(H){q.current&&q.current.contains(H.target)||(H.preventDefault(),oe.current=[])};T.useEffect(function(){return S&&(document.addEventListener("dragover",rj,!1),document.addEventListener("drop",ue,!1)),function(){S&&(document.removeEventListener("dragover",rj),document.removeEventListener("drop",ue))}},[q,S]),T.useEffect(function(){return!r&&x&&q.current&&q.current.focus(),function(){}},[q,x,r]);var se=T.useCallback(function(U){z?z(U):console.error(U)},[z]),Ee=T.useCallback(function(U){U.preventDefault(),U.persist(),ge(U),oe.current=[].concat(vNe(oe.current),[U.target]),M1(U)&&Promise.resolve(i(U)).then(function(H){if(!(H_(U)&&!I)){var de=H.length,Y=de>0&&iNe({files:H,accept:D,minSize:a,maxSize:o,multiple:s,maxFiles:l,validator:K}),Z=de>0&&!Y;te({isDragAccept:Y,isDragReject:Z,isDragActive:!0,type:"setDraggedFiles"}),u&&u(U)}}).catch(function(H){return se(H)})},[i,u,se,I,D,a,o,s,l,K]),Re=T.useCallback(function(U){U.preventDefault(),U.persist(),ge(U);var H=M1(U);if(H&&U.dataTransfer)try{U.dataTransfer.dropEffect="copy"}catch{}return H&&d&&d(U),!1},[d,I]),ke=T.useCallback(function(U){U.preventDefault(),U.persist(),ge(U);var H=oe.current.filter(function(Y){return q.current&&q.current.contains(Y)}),de=H.indexOf(U.target);de!==-1&&H.splice(de,1),oe.current=H,!(H.length>0)&&(te({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),M1(U)&&f&&f(U))},[q,f,I]),De=T.useCallback(function(U,H){var de=[],Y=[];U.forEach(function(Z){var re=HH(Z,D),xe=Ak(re,2),Se=xe[0],_e=xe[1],et=qH(Z,a,o),tt=Ak(et,2),fe=tt[0],he=tt[1],Ae=K?K(Z):null;if(Se&&fe&&!Ae)de.push(Z);else{var We=[_e,he];Ae&&(We=We.concat(Ae)),Y.push({file:Z,errors:We.filter(function(Ve){return Ve})})}}),(!s&&de.length>1||s&&l>=1&&de.length>l)&&(de.forEach(function(Z){Y.push({file:Z,errors:[rNe]})}),de.splice(0)),te({acceptedFiles:de,fileRejections:Y,type:"setFiles"}),p&&p(de,Y,H),Y.length>0&&v&&v(Y,H),de.length>0&&m&&m(de,H)},[te,s,D,a,o,l,p,m,v,K]),Me=T.useCallback(function(U){U.preventDefault(),U.persist(),ge(U),oe.current=[],M1(U)&&Promise.resolve(i(U)).then(function(H){H_(U)&&!I||De(H,U)}).catch(function(H){return se(H)}),te({type:"reset"})},[i,De,se,I]),Be=T.useCallback(function(){if(j.current){te({type:"openDialog"}),ie();var U={multiple:s,types:W};window.showOpenFilePicker(U).then(function(H){return i(H)}).then(function(H){De(H,null),te({type:"closeDialog"})}).catch(function(H){fNe(H)?(ae(H),te({type:"closeDialog"})):dNe(H)?(j.current=!1,G.current?(G.current.value=null,G.current.click()):se(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):se(H)});return}G.current&&(te({type:"openDialog"}),ie(),G.current.value=null,G.current.click())},[te,ie,ae,b,De,se,W,s]),Ue=T.useCallback(function(U){!q.current||!q.current.isEqualNode(U.target)||(U.key===" "||U.key==="Enter"||U.keyCode===32||U.keyCode===13)&&(U.preventDefault(),Be())},[q,Be]),Ke=T.useCallback(function(){te({type:"focus"})},[]),He=T.useCallback(function(){te({type:"blur"})},[]),lt=T.useCallback(function(){k||(sNe()?setTimeout(Be,0):Be())},[k,Be]),Xe=function(H){return r?null:H},nt=function(H){return A?null:Xe(H)},mt=function(H){return $?null:Xe(H)},ge=function(H){I&&H.stopPropagation()},$e=T.useMemo(function(){return function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},H=U.refKey,de=H===void 0?"ref":H,Y=U.role,Z=U.onKeyDown,re=U.onFocus,xe=U.onBlur,Se=U.onClick,_e=U.onDragEnter,et=U.onDragOver,tt=U.onDragLeave,fe=U.onDrop,he=q_(U,gNe);return ar(ar(g$({onKeyDown:nt(ds(Z,Ue)),onFocus:nt(ds(re,Ke)),onBlur:nt(ds(xe,He)),onClick:Xe(ds(Se,lt)),onDragEnter:mt(ds(_e,Ee)),onDragOver:mt(ds(et,Re)),onDragLeave:mt(ds(tt,ke)),onDrop:mt(ds(fe,Me)),role:typeof Y=="string"&&Y!==""?Y:"presentation"},de,q),!r&&!A?{tabIndex:0}:{}),he)}},[q,Ue,Ke,He,lt,Ee,Re,ke,Me,A,$,r]),Te=T.useCallback(function(U){U.stopPropagation()},[]),Pe=T.useMemo(function(){return function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},H=U.refKey,de=H===void 0?"ref":H,Y=U.onChange,Z=U.onClick,re=q_(U,mNe),xe=g$({accept:D,multiple:s,type:"file",style:{display:"none"},onChange:Xe(ds(Y,Me)),onClick:Xe(ds(Z,Te)),tabIndex:-1},de,G);return ar(ar({},xe),re)}},[G,n,s,Me,r]);return ar(ar({},Q),{},{isFocused:P&&!r,getRootProps:$e,getInputProps:Pe,rootRef:q,inputRef:G,open:Xe(Be)})}function ENe(e,t){switch(t.type){case"focus":return ar(ar({},e),{},{isFocused:!0});case"blur":return ar(ar({},e),{},{isFocused:!1});case"openDialog":return ar(ar({},m$),{},{isFileDialogActive:!0});case"closeDialog":return ar(ar({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return ar(ar({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return ar(ar({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return ar({},m$);default:return e}}function oj(){}var rI={},kNe=Nn;Object.defineProperty(rI,"__esModule",{value:!0});var QH=rI.default=void 0,TNe=kNe(Bn()),ANe=C,$Ne=(0,TNe.default)((0,ANe.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.96zM19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3zM8 13h2.55v3h2.9v-3H16l-4-4z"}),"CloudUploadOutlined");QH=rI.default=$Ne;function RNe({askUser:e}){const[t,n]=T.useState(!1),r=T.useCallback((u,f)=>{if(f.length>0){Mr.error(f[0].errors[0].message);return}if(!u.length)return;n(!0);const d=u.map(p=>new Promise((m,v)=>{const y=new FileReader;y.onload=function(w){var S;const b=(S=w.target)==null?void 0:S.result,x={path:p.path,name:p.name,size:p.size,type:p.type,content:b};m(x)},y.onerror=function(){y.error&&v(y.error.message)},y.readAsArrayBuffer(p)}));Promise.all(d).then(p=>{e==null||e.callback(p)}).catch(p=>{Mr.error(p),n(!1)})},[e]);if(!e.spec.accept||!e.spec.max_size_mb)return null;let i={};const o=e.spec.accept;Array.isArray(o)?o.forEach(u=>{typeof u=="string"&&(i[u]=[])}):typeof o=="object"&&(i=o);const a=e.spec.max_size_mb,{getRootProps:s,getInputProps:l}=JH({onDrop:r,maxFiles:e.spec.max_files||1,accept:i,maxSize:a*1e6});return C.jsxs(Ht,{sx:{width:"100%",borderRadius:1,backgroundColor:u=>u.palette.mode==="dark"?gt[800]:gt[200],boxSizing:"border-box"},direction:"row",alignItems:"center",padding:2,...s({className:"dropzone"}),children:[C.jsx("input",{...l()}),C.jsx(QH,{fontSize:"large"}),C.jsxs(Ht,{ml:2,children:[C.jsx(Zt,{color:"text.primary",children:"Drag and drop files here"}),C.jsxs(Zt,{variant:"caption",color:"text.secondary",children:["Limit ",a,"mb."]})]}),C.jsx(qO,{id:t?"upload-button-loading":"upload-button",loading:t,sx:{ml:"auto !important"},variant:"contained",children:"Browse Files"})]})}function ONe(){const e=yt(fS);return(e==null?void 0:e.spec.type)!=="file"?null:C.jsx(RNe,{askUser:e})}const INe=nh`
|
|
419
|
-
from {
|
|
420
|
-
background-color: transparent;
|
|
421
|
-
}
|
|
422
|
-
25% {
|
|
423
|
-
background-color: rgba(255, 173, 51, 0.5);
|
|
424
|
-
}
|
|
425
|
-
to {
|
|
426
|
-
background-color: transparent;
|
|
427
|
-
}
|
|
428
|
-
`,DNe=({message:e,elements:t,actions:n,indent:r,showAvatar:i,showBorder:o,isRunning:a,isLast:s})=>{const l=yt(Ks),u=yt(PH),[f,d]=T.useState(l.expandAll);return T.useEffect(()=>{d(l.expandAll)},[l.expandAll]),l.hideCot&&r?null:C.jsxs(st,{sx:{color:"text.primary",backgroundColor:"transparent"},className:"message",children:[C.jsx(st,{sx:{boxSizing:"border-box",mx:"auto",maxWidth:"60rem",display:"flex",flexDirection:"column",position:"relative"},children:C.jsxs(Ht,{id:`message-${e.id}`,direction:"row",ml:r?`${r*(f$+16)}px`:0,sx:{py:2,borderBottom:p=>o?`1px solid ${p.palette.divider}`:"none",animation:e.id&&u===e.id?`3s ease-in-out 0.1s ${INe}`:"none"},children:[C.jsx(DMe,{message:e,show:i}),C.jsxs(Ht,{alignItems:"flex-start",width:0,flexGrow:1,spacing:1,minWidth:200,children:[C.jsx(SFe,{authorIsUser:e.authorIsUser,elements:t,id:e.id,content:e.content,language:e.language}),C.jsx(IFe,{message:e,opened:f,onClick:()=>d(!f),loading:a}),!a&&s&&e.waitForAnswer&&C.jsx(ONe,{}),C.jsx(fFe,{message:e,actions:n})]})]})}),e.subMessages&&f&&C.jsx(eq,{messages:e.subMessages,actions:n,elements:t,indent:r+1,isRunning:a})]})};function eq({messages:e,elements:t,actions:n,indent:r,isRunning:i}){const o=yt(my);let a="";const s=e.filter((l,u)=>{var v;const f=!!l.content,d=!!((v=l.subMessages)!=null&&v.length),p=u===e.length-1;return f||d||!f&&(i===void 0?o&&p:i&&p)});return C.jsx(C.Fragment,{children:s.map((l,u)=>{const f=u===s.length-1,d=i===void 0?o&&f:i&&f,p=l.author!==a,m=!1;return a=l.author,C.jsx(DNe,{message:l,elements:t,actions:n,showAvatar:p,showBorder:m,indent:r,isRunning:d,isLast:f},u)})})}function PNe(e){const t=[],n={};function r(i,o){if(i){const a=n[i];if(!a)return;a.subMessages||(a.subMessages=[]),a.subMessages.push(o)}else t.push(o)}for(const i of e){const o={...i};i.id&&(n[i.id]=o)}for(const i of e){if(!i.id){t.push({...i});continue}const o=n[i.id];o&&r(i.parentId,o)}return LNe(t)}function LNe(e){const t=[],n=[];for(const r of e){const i={...r},o=r.indent||0;if(o&&!r.authorIsUser&&!r.waitForAnswer){for(;n.length>0&&(n[n.length-1].indent||0)>=o;)n.pop();const a=n[n.length-1];a&&(a.subMessages||(a.subMessages=[]),a.subMessages.push(i))}else t.push(i);n.push(i)}return t}const tq=({messages:e,elements:t,actions:n,autoScroll:r,setAutoScroll:i})=>{const o=T.useRef(),a=PNe(e);T.useEffect(()=>{!o.current||!r||(o.current.scrollTop=o.current.scrollHeight)},[e,r]);const s=()=>{if(!o.current||!i)return;const{scrollTop:l,scrollHeight:u,clientHeight:f}=o.current,d=l+f>=u-10;i(d)};return C.jsx(st,{ref:o,position:"relative",display:"flex",flexDirection:"column",overflow:"auto",flexGrow:1,onScroll:s,children:C.jsx(eq,{indent:0,messages:a,elements:t,actions:n})})};var iI={},MNe=Nn;Object.defineProperty(iI,"__esModule",{value:!0});var nq=iI.default=void 0,FNe=MNe(Bn()),NNe=C,BNe=(0,FNe.default)((0,NNe.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"}),"Restore");nq=iI.default=BNe;class rq extends T.Component{constructor(){super(...arguments);or(this,"state",{hasError:!1,error:void 0})}static getDerivedStateFromError(n){return{hasError:!0,error:n.message}}componentDidCatch(n,r){console.error("Uncaught error:",n,r)}render(){if(this.state.hasError){const n=this.props.prefix?`${this.props.prefix}: ${this.state.error}`:this.state.error;return C.jsx(st,{flexGrow:1,children:C.jsx(no,{severity:"error",children:n})})}return this.props.children}}function jNe({children:e}){return C.jsx(Ht,{direction:"row",sx:{backgroundColor:t=>t.palette.background.paper,padding:"16px 24px",alignItems:"center",justifyContent:"flex-end",gap:2},children:e})}var iq={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ri,function(){var n=Array.prototype.slice;function r(g,E){E&&(g.prototype=Object.create(E.prototype)),g.prototype.constructor=g}function i(g){return l(g)?g:Ue(g)}r(o,i);function o(g){return u(g)?g:Ke(g)}r(a,i);function a(g){return f(g)?g:He(g)}r(s,i);function s(g){return l(g)&&!d(g)?g:lt(g)}function l(g){return!!(g&&g[m])}function u(g){return!!(g&&g[v])}function f(g){return!!(g&&g[y])}function d(g){return u(g)||f(g)}function p(g){return!!(g&&g[w])}i.isIterable=l,i.isKeyed=u,i.isIndexed=f,i.isAssociative=d,i.isOrdered=p,i.Keyed=o,i.Indexed=a,i.Set=s;var m="@@__IMMUTABLE_ITERABLE__@@",v="@@__IMMUTABLE_KEYED__@@",y="@@__IMMUTABLE_INDEXED__@@",w="@@__IMMUTABLE_ORDERED__@@",b="delete",x=5,S=1<<x,k=S-1,A={},$={value:!1},I={value:!1};function z(g){return g.value=!1,g}function K(g){g&&(g.value=!0)}function D(){}function W(g,E){E=E||0;for(var O=Math.max(0,g.length-E),M=new Array(O),B=0;B<O;B++)M[B]=g[B+E];return M}function ie(g){return g.size===void 0&&(g.size=g.__iterate(q)),g.size}function ae(g,E){if(typeof E!="number"){var O=E>>>0;if(""+O!==E||O===4294967295)return NaN;E=O}return E<0?ie(g)+E:E}function q(){return!0}function G(g,E,O){return(g===0||O!==void 0&&g<=-O)&&(E===void 0||O!==void 0&&E>=O)}function J(g,E){return Q(g,E,0)}function le(g,E){return Q(g,E,E)}function Q(g,E,O){return g===void 0?O:g<0?Math.max(0,E+g):E===void 0?g:Math.min(E,g)}var te=0,P=1,me=2,j=typeof Symbol=="function"&&Symbol.iterator,L="@@iterator",oe=j||L;function ue(g){this.next=g}ue.prototype.toString=function(){return"[Iterator]"},ue.KEYS=te,ue.VALUES=P,ue.ENTRIES=me,ue.prototype.inspect=ue.prototype.toSource=function(){return this.toString()},ue.prototype[oe]=function(){return this};function se(g,E,O,M){var B=g===0?E:g===1?O:[E,O];return M?M.value=B:M={value:B,done:!1},M}function Ee(){return{value:void 0,done:!0}}function Re(g){return!!Me(g)}function ke(g){return g&&typeof g.next=="function"}function De(g){var E=Me(g);return E&&E.call(g)}function Me(g){var E=g&&(j&&g[j]||g[L]);if(typeof E=="function")return E}function Be(g){return g&&typeof g.length=="number"}r(Ue,i);function Ue(g){return g==null?U():l(g)?g.toSeq():Y(g)}Ue.of=function(){return Ue(arguments)},Ue.prototype.toSeq=function(){return this},Ue.prototype.toString=function(){return this.__toString("Seq {","}")},Ue.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Ue.prototype.__iterate=function(g,E){return re(this,g,E,!0)},Ue.prototype.__iterator=function(g,E){return xe(this,g,E,!0)},r(Ke,Ue);function Ke(g){return g==null?U().toKeyedSeq():l(g)?u(g)?g.toSeq():g.fromEntrySeq():H(g)}Ke.prototype.toKeyedSeq=function(){return this},r(He,Ue);function He(g){return g==null?U():l(g)?u(g)?g.entrySeq():g.toIndexedSeq():de(g)}He.of=function(){return He(arguments)},He.prototype.toIndexedSeq=function(){return this},He.prototype.toString=function(){return this.__toString("Seq [","]")},He.prototype.__iterate=function(g,E){return re(this,g,E,!1)},He.prototype.__iterator=function(g,E){return xe(this,g,E,!1)},r(lt,Ue);function lt(g){return(g==null?U():l(g)?u(g)?g.entrySeq():g:de(g)).toSetSeq()}lt.of=function(){return lt(arguments)},lt.prototype.toSetSeq=function(){return this},Ue.isSeq=Te,Ue.Keyed=Ke,Ue.Set=lt,Ue.Indexed=He;var Xe="@@__IMMUTABLE_SEQ__@@";Ue.prototype[Xe]=!0,r(nt,He);function nt(g){this._array=g,this.size=g.length}nt.prototype.get=function(g,E){return this.has(g)?this._array[ae(this,g)]:E},nt.prototype.__iterate=function(g,E){for(var O=this._array,M=O.length-1,B=0;B<=M;B++)if(g(O[E?M-B:B],B,this)===!1)return B+1;return B},nt.prototype.__iterator=function(g,E){var O=this._array,M=O.length-1,B=0;return new ue(function(){return B>M?Ee():se(g,B,O[E?M-B++:B++])})},r(mt,Ke);function mt(g){var E=Object.keys(g);this._object=g,this._keys=E,this.size=E.length}mt.prototype.get=function(g,E){return E!==void 0&&!this.has(g)?E:this._object[g]},mt.prototype.has=function(g){return this._object.hasOwnProperty(g)},mt.prototype.__iterate=function(g,E){for(var O=this._object,M=this._keys,B=M.length-1,ne=0;ne<=B;ne++){var pe=M[E?B-ne:ne];if(g(O[pe],pe,this)===!1)return ne+1}return ne},mt.prototype.__iterator=function(g,E){var O=this._object,M=this._keys,B=M.length-1,ne=0;return new ue(function(){var pe=M[E?B-ne:ne];return ne++>B?Ee():se(g,pe,O[pe])})},mt.prototype[w]=!0,r(ge,He);function ge(g){this._iterable=g,this.size=g.length||g.size}ge.prototype.__iterateUncached=function(g,E){if(E)return this.cacheResult().__iterate(g,E);var O=this._iterable,M=De(O),B=0;if(ke(M))for(var ne;!(ne=M.next()).done&&g(ne.value,B++,this)!==!1;);return B},ge.prototype.__iteratorUncached=function(g,E){if(E)return this.cacheResult().__iterator(g,E);var O=this._iterable,M=De(O);if(!ke(M))return new ue(Ee);var B=0;return new ue(function(){var ne=M.next();return ne.done?ne:se(g,B++,ne.value)})},r($e,He);function $e(g){this._iterator=g,this._iteratorCache=[]}$e.prototype.__iterateUncached=function(g,E){if(E)return this.cacheResult().__iterate(g,E);for(var O=this._iterator,M=this._iteratorCache,B=0;B<M.length;)if(g(M[B],B++,this)===!1)return B;for(var ne;!(ne=O.next()).done;){var pe=ne.value;if(M[B]=pe,g(pe,B++,this)===!1)break}return B},$e.prototype.__iteratorUncached=function(g,E){if(E)return this.cacheResult().__iterator(g,E);var O=this._iterator,M=this._iteratorCache,B=0;return new ue(function(){if(B>=M.length){var ne=O.next();if(ne.done)return ne;M[B]=ne.value}return se(g,B,M[B++])})};function Te(g){return!!(g&&g[Xe])}var Pe;function U(){return Pe||(Pe=new nt([]))}function H(g){var E=Array.isArray(g)?new nt(g).fromEntrySeq():ke(g)?new $e(g).fromEntrySeq():Re(g)?new ge(g).fromEntrySeq():typeof g=="object"?new mt(g):void 0;if(!E)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+g);return E}function de(g){var E=Z(g);if(!E)throw new TypeError("Expected Array or iterable object of values: "+g);return E}function Y(g){var E=Z(g)||typeof g=="object"&&new mt(g);if(!E)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+g);return E}function Z(g){return Be(g)?new nt(g):ke(g)?new $e(g):Re(g)?new ge(g):void 0}function re(g,E,O,M){var B=g._cache;if(B){for(var ne=B.length-1,pe=0;pe<=ne;pe++){var we=B[O?ne-pe:pe];if(E(we[1],M?we[0]:pe,g)===!1)return pe+1}return pe}return g.__iterateUncached(E,O)}function xe(g,E,O,M){var B=g._cache;if(B){var ne=B.length-1,pe=0;return new ue(function(){var we=B[O?ne-pe:pe];return pe++>ne?Ee():se(E,M?we[0]:pe-1,we[1])})}return g.__iteratorUncached(E,O)}function Se(g,E){return E?_e(E,g,"",{"":g}):et(g)}function _e(g,E,O,M){return Array.isArray(E)?g.call(M,O,He(E).map(function(B,ne){return _e(g,B,ne,E)})):tt(E)?g.call(M,O,Ke(E).map(function(B,ne){return _e(g,B,ne,E)})):E}function et(g){return Array.isArray(g)?He(g).map(et).toList():tt(g)?Ke(g).map(et).toMap():g}function tt(g){return g&&(g.constructor===Object||g.constructor===void 0)}function fe(g,E){if(g===E||g!==g&&E!==E)return!0;if(!g||!E)return!1;if(typeof g.valueOf=="function"&&typeof E.valueOf=="function"){if(g=g.valueOf(),E=E.valueOf(),g===E||g!==g&&E!==E)return!0;if(!g||!E)return!1}return!!(typeof g.equals=="function"&&typeof E.equals=="function"&&g.equals(E))}function he(g,E){if(g===E)return!0;if(!l(E)||g.size!==void 0&&E.size!==void 0&&g.size!==E.size||g.__hash!==void 0&&E.__hash!==void 0&&g.__hash!==E.__hash||u(g)!==u(E)||f(g)!==f(E)||p(g)!==p(E))return!1;if(g.size===0&&E.size===0)return!0;var O=!d(g);if(p(g)){var M=g.entries();return E.every(function(Oe,Ie){var ee=M.next().value;return ee&&fe(ee[1],Oe)&&(O||fe(ee[0],Ie))})&&M.next().done}var B=!1;if(g.size===void 0)if(E.size===void 0)typeof g.cacheResult=="function"&&g.cacheResult();else{B=!0;var ne=g;g=E,E=ne}var pe=!0,we=E.__iterate(function(Oe,Ie){if(O?!g.has(Oe):B?!fe(Oe,g.get(Ie,A)):!fe(g.get(Ie,A),Oe))return pe=!1,!1});return pe&&g.size===we}r(Ae,He);function Ae(g,E){if(!(this instanceof Ae))return new Ae(g,E);if(this._value=g,this.size=E===void 0?1/0:Math.max(0,E),this.size===0){if(We)return We;We=this}}Ae.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Ae.prototype.get=function(g,E){return this.has(g)?this._value:E},Ae.prototype.includes=function(g){return fe(this._value,g)},Ae.prototype.slice=function(g,E){var O=this.size;return G(g,E,O)?this:new Ae(this._value,le(E,O)-J(g,O))},Ae.prototype.reverse=function(){return this},Ae.prototype.indexOf=function(g){return fe(this._value,g)?0:-1},Ae.prototype.lastIndexOf=function(g){return fe(this._value,g)?this.size:-1},Ae.prototype.__iterate=function(g,E){for(var O=0;O<this.size;O++)if(g(this._value,O,this)===!1)return O+1;return O},Ae.prototype.__iterator=function(g,E){var O=this,M=0;return new ue(function(){return M<O.size?se(g,M++,O._value):Ee()})},Ae.prototype.equals=function(g){return g instanceof Ae?fe(this._value,g._value):he(g)};var We;function Ve(g,E){if(!g)throw new Error(E)}r(Ge,He);function Ge(g,E,O){if(!(this instanceof Ge))return new Ge(g,E,O);if(Ve(O!==0,"Cannot step a Range by 0"),g=g||0,E===void 0&&(E=1/0),O=O===void 0?1:Math.abs(O),E<g&&(O=-O),this._start=g,this._end=E,this._step=O,this.size=Math.max(0,Math.ceil((E-g)/O-1)+1),this.size===0){if(ft)return ft;ft=this}}Ge.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},Ge.prototype.get=function(g,E){return this.has(g)?this._start+ae(this,g)*this._step:E},Ge.prototype.includes=function(g){var E=(g-this._start)/this._step;return E>=0&&E<this.size&&E===Math.floor(E)},Ge.prototype.slice=function(g,E){return G(g,E,this.size)?this:(g=J(g,this.size),E=le(E,this.size),E<=g?new Ge(0,0):new Ge(this.get(g,this._end),this.get(E,this._end),this._step))},Ge.prototype.indexOf=function(g){var E=g-this._start;if(E%this._step===0){var O=E/this._step;if(O>=0&&O<this.size)return O}return-1},Ge.prototype.lastIndexOf=function(g){return this.indexOf(g)},Ge.prototype.__iterate=function(g,E){for(var O=this.size-1,M=this._step,B=E?this._start+O*M:this._start,ne=0;ne<=O;ne++){if(g(B,ne,this)===!1)return ne+1;B+=E?-M:M}return ne},Ge.prototype.__iterator=function(g,E){var O=this.size-1,M=this._step,B=E?this._start+O*M:this._start,ne=0;return new ue(function(){var pe=B;return B+=E?-M:M,ne>O?Ee():se(g,ne++,pe)})},Ge.prototype.equals=function(g){return g instanceof Ge?this._start===g._start&&this._end===g._end&&this._step===g._step:he(this,g)};var ft;r(ut,i);function ut(){throw TypeError("Abstract")}r(it,ut);function it(){}r(pt,ut);function pt(){}r(Ot,ut);function Ot(){}ut.Keyed=it,ut.Indexed=pt,ut.Set=Ot;var rn=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(E,O){E=E|0,O=O|0;var M=E&65535,B=O&65535;return M*B+((E>>>16)*B+M*(O>>>16)<<16>>>0)|0};function Qt(g){return g>>>1&1073741824|g&3221225471}function Yt(g){if(g===!1||g===null||g===void 0||typeof g.valueOf=="function"&&(g=g.valueOf(),g===!1||g===null||g===void 0))return 0;if(g===!0)return 1;var E=typeof g;if(E==="number"){var O=g|0;for(O!==g&&(O^=g*4294967295);g>4294967295;)g/=4294967295,O^=g;return Qt(O)}if(E==="string")return g.length>Ul?br(g):Sn(g);if(typeof g.hashCode=="function")return g.hashCode();if(E==="object")return Nr(g);if(typeof g.toString=="function")return Sn(g.toString());throw new Error("Value type "+E+" cannot be hashed.")}function br(g){var E=uo[g];return E===void 0&&(E=Sn(g),Tn===kn&&(Tn=0,uo={}),Tn++,uo[g]=E),E}function Sn(g){for(var E=0,O=0;O<g.length;O++)E=31*E+g.charCodeAt(O)|0;return Qt(E)}function Nr(g){var E;if(_i&&(E=Gs.get(g),E!==void 0)||(E=g[Gr],E!==void 0)||!kr&&(E=g.propertyIsEnumerable&&g.propertyIsEnumerable[Gr],E!==void 0||(E=qr(g),E!==void 0)))return E;if(E=++xi,xi&1073741824&&(xi=0),_i)Gs.set(g,E);else{if(_r!==void 0&&_r(g)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(kr)Object.defineProperty(g,Gr,{enumerable:!1,configurable:!1,writable:!1,value:E});else if(g.propertyIsEnumerable!==void 0&&g.propertyIsEnumerable===g.constructor.prototype.propertyIsEnumerable)g.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},g.propertyIsEnumerable[Gr]=E;else if(g.nodeType!==void 0)g[Gr]=E;else throw new Error("Unable to set a non-enumerable property on object.")}return E}var _r=Object.isExtensible,kr=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function qr(g){if(g&&g.nodeType>0)switch(g.nodeType){case 1:return g.uniqueID;case 9:return g.documentElement&&g.documentElement.uniqueID}}var _i=typeof WeakMap=="function",Gs;_i&&(Gs=new WeakMap);var xi=0,Gr="__immutablehash__";typeof Symbol=="function"&&(Gr=Symbol(Gr));var Ul=16,kn=255,Tn=0,uo={};function fr(g){Ve(g!==1/0,"Cannot perform this action with an infinite size.")}r(Rt,it);function Rt(g){return g==null?No():ic(g)&&!p(g)?g:No().withMutations(function(E){var O=o(g);fr(O.size),O.forEach(function(M,B){return E.set(B,M)})})}Rt.prototype.toString=function(){return this.__toString("Map {","}")},Rt.prototype.get=function(g,E){return this._root?this._root.get(0,void 0,g,E):E},Rt.prototype.set=function(g,E){return Ky(this,g,E)},Rt.prototype.setIn=function(g,E){return this.updateIn(g,A,function(){return E})},Rt.prototype.remove=function(g){return Ky(this,g,A)},Rt.prototype.deleteIn=function(g){return this.updateIn(g,function(){return A})},Rt.prototype.update=function(g,E,O){return arguments.length===1?g(this):this.updateIn([g],E,O)},Rt.prototype.updateIn=function(g,E,O){O||(O=E,E=void 0);var M=qy(this,Jf(g),E,O);return M===A?void 0:M},Rt.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):No()},Rt.prototype.merge=function(){return qf(this,void 0,arguments)},Rt.prototype.mergeWith=function(g){var E=n.call(arguments,1);return qf(this,g,E)},Rt.prototype.mergeIn=function(g){var E=n.call(arguments,1);return this.updateIn(g,No(),function(O){return typeof O.merge=="function"?O.merge.apply(O,E):E[E.length-1]})},Rt.prototype.mergeDeep=function(){return qf(this,jh,arguments)},Rt.prototype.mergeDeepWith=function(g){var E=n.call(arguments,1);return qf(this,ac(g),E)},Rt.prototype.mergeDeepIn=function(g){var E=n.call(arguments,1);return this.updateIn(g,No(),function(O){return typeof O.mergeDeep=="function"?O.mergeDeep.apply(O,E):E[E.length-1]})},Rt.prototype.sort=function(g){return rr(Zs(this,g))},Rt.prototype.sortBy=function(g,E){return rr(Zs(this,E,g))},Rt.prototype.withMutations=function(g){var E=this.asMutable();return g(E),E.wasAltered()?E.__ensureOwner(this.__ownerID):this},Rt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new D)},Rt.prototype.asImmutable=function(){return this.__ensureOwner()},Rt.prototype.wasAltered=function(){return this.__altered},Rt.prototype.__iterator=function(g,E){return new Ph(this,g,E)},Rt.prototype.__iterate=function(g,E){var O=this,M=0;return this._root&&this._root.iterate(function(B){return M++,g(B[1],B[0],O)},E),M},Rt.prototype.__ensureOwner=function(g){return g===this.__ownerID?this:g?Vf(this.size,this._root,g,this.__hash):(this.__ownerID=g,this.__altered=!1,this)};function ic(g){return!!(g&&g[Wf])}Rt.isMap=ic;var Wf="@@__IMMUTABLE_MAP__@@",ot=Rt.prototype;ot[Wf]=!0,ot[b]=ot.remove,ot.removeIn=ot.deleteIn;function xr(g,E){this.ownerID=g,this.entries=E}xr.prototype.get=function(g,E,O,M){for(var B=this.entries,ne=0,pe=B.length;ne<pe;ne++)if(fe(O,B[ne][0]))return B[ne][1];return M},xr.prototype.update=function(g,E,O,M,B,ne,pe){for(var we=B===A,Oe=this.entries,Ie=0,ee=Oe.length;Ie<ee&&!fe(M,Oe[Ie][0]);Ie++);var be=Ie<ee;if(be?Oe[Ie][1]===B:we)return this;if(K(pe),(we||!be)&&K(ne),!(we&&Oe.length===1)){if(!be&&!we&&Oe.length>=Gy)return Vy(g,Oe,M,B);var ye=g&&g===this.ownerID,ze=ye?Oe:W(Oe);return be?we?Ie===ee-1?ze.pop():ze[Ie]=ze.pop():ze[Ie]=[M,B]:ze.push([M,B]),ye?(this.entries=ze,this):new xr(g,ze)}};function Ea(g,E,O){this.ownerID=g,this.bitmap=E,this.nodes=O}Ea.prototype.get=function(g,E,O,M){E===void 0&&(E=Yt(O));var B=1<<((g===0?E:E>>>g)&k),ne=this.bitmap;return ne&B?this.nodes[Uh(ne&B-1)].get(g+x,E,O,M):M},Ea.prototype.update=function(g,E,O,M,B,ne,pe){O===void 0&&(O=Yt(M));var we=(E===0?O:O>>>E)&k,Oe=1<<we,Ie=this.bitmap,ee=(Ie&Oe)!==0;if(!ee&&B===A)return this;var be=Uh(Ie&Oe-1),ye=this.nodes,ze=ee?ye[be]:void 0,rt=Nh(ze,g,E+x,O,M,B,ne,pe);if(rt===ze)return this;if(!ee&&rt&&ye.length>=Vh)return Bh(g,ye,Ie,we,rt);if(ee&&!rt&&ye.length===2&&Wy(ye[be^1]))return ye[be^1];if(ee&&rt&&ye.length===1&&Wy(rt))return rt;var xt=g&&g===this.ownerID,cn=ee?rt?Ie:Ie^Oe:Ie|Oe,Wt=ee?rt?Kh(ye,be,rt,xt):oC(ye,be,xt):Wh(ye,be,rt,xt);return xt?(this.bitmap=cn,this.nodes=Wt,this):new Ea(g,cn,Wt)};function oc(g,E,O){this.ownerID=g,this.count=E,this.nodes=O}oc.prototype.get=function(g,E,O,M){E===void 0&&(E=Yt(O));var B=(g===0?E:E>>>g)&k,ne=this.nodes[B];return ne?ne.get(g+x,E,O,M):M},oc.prototype.update=function(g,E,O,M,B,ne,pe){O===void 0&&(O=Yt(M));var we=(E===0?O:O>>>E)&k,Oe=B===A,Ie=this.nodes,ee=Ie[we];if(Oe&&!ee)return this;var be=Nh(ee,g,E+x,O,M,B,ne,pe);if(be===ee)return this;var ye=this.count;if(!ee)ye++;else if(!be&&(ye--,ye<Hh))return Hy(g,Ie,ye,we);var ze=g&&g===this.ownerID,rt=Kh(Ie,we,be,ze);return ze?(this.count=ye,this.nodes=rt,this):new oc(g,ye,rt)};function ka(g,E,O){this.ownerID=g,this.keyHash=E,this.entries=O}ka.prototype.get=function(g,E,O,M){for(var B=this.entries,ne=0,pe=B.length;ne<pe;ne++)if(fe(O,B[ne][0]))return B[ne][1];return M},ka.prototype.update=function(g,E,O,M,B,ne,pe){O===void 0&&(O=Yt(M));var we=B===A;if(O!==this.keyHash)return we?this:(K(pe),K(ne),Hf(this,g,E,O,[M,B]));for(var Oe=this.entries,Ie=0,ee=Oe.length;Ie<ee&&!fe(M,Oe[Ie][0]);Ie++);var be=Ie<ee;if(be?Oe[Ie][1]===B:we)return this;if(K(pe),(we||!be)&&K(ne),we&&ee===2)return new Ta(g,this.keyHash,Oe[Ie^1]);var ye=g&&g===this.ownerID,ze=ye?Oe:W(Oe);return be?we?Ie===ee-1?ze.pop():ze[Ie]=ze.pop():ze[Ie]=[M,B]:ze.push([M,B]),ye?(this.entries=ze,this):new ka(g,this.keyHash,ze)};function Ta(g,E,O){this.ownerID=g,this.keyHash=E,this.entry=O}Ta.prototype.get=function(g,E,O,M){return fe(O,this.entry[0])?this.entry[1]:M},Ta.prototype.update=function(g,E,O,M,B,ne,pe){var we=B===A,Oe=fe(M,this.entry[0]);if(Oe?B===this.entry[1]:we)return this;if(K(pe),we){K(ne);return}return Oe?g&&g===this.ownerID?(this.entry[1]=B,this):new Ta(g,this.keyHash,[M,B]):(K(ne),Hf(this,g,E,Yt(M),[M,B]))},xr.prototype.iterate=ka.prototype.iterate=function(g,E){for(var O=this.entries,M=0,B=O.length-1;M<=B;M++)if(g(O[E?B-M:M])===!1)return!1},Ea.prototype.iterate=oc.prototype.iterate=function(g,E){for(var O=this.nodes,M=0,B=O.length-1;M<=B;M++){var ne=O[E?B-M:M];if(ne&&ne.iterate(g,E)===!1)return!1}},Ta.prototype.iterate=function(g,E){return g(this.entry)},r(Ph,ue);function Ph(g,E,O){this._type=E,this._reverse=O,this._stack=g._root&&Mh(g._root)}Ph.prototype.next=function(){for(var g=this._type,E=this._stack;E;){var O=E.node,M=E.index++,B;if(O.entry){if(M===0)return Lh(g,O.entry)}else if(O.entries){if(B=O.entries.length-1,M<=B)return Lh(g,O.entries[this._reverse?B-M:M])}else if(B=O.nodes.length-1,M<=B){var ne=O.nodes[this._reverse?B-M:M];if(ne){if(ne.entry)return Lh(g,ne.entry);E=this._stack=Mh(ne,E)}continue}E=this._stack=this._stack.__prev}return Ee()};function Lh(g,E){return se(g,E[0],E[1])}function Mh(g,E){return{node:g,index:0,__prev:E}}function Vf(g,E,O,M){var B=Object.create(ot);return B.size=g,B._root=E,B.__ownerID=O,B.__hash=M,B.__altered=!1,B}var Fh;function No(){return Fh||(Fh=Vf(0))}function Ky(g,E,O){var M,B;if(g._root){var ne=z($),pe=z(I);if(M=Nh(g._root,g.__ownerID,0,void 0,E,O,ne,pe),!pe.value)return g;B=g.size+(ne.value?O===A?-1:1:0)}else{if(O===A)return g;B=1,M=new xr(g.__ownerID,[[E,O]])}return g.__ownerID?(g.size=B,g._root=M,g.__hash=void 0,g.__altered=!0,g):M?Vf(B,M):No()}function Nh(g,E,O,M,B,ne,pe,we){return g?g.update(E,O,M,B,ne,pe,we):ne===A?g:(K(we),K(pe),new Ta(E,M,[B,ne]))}function Wy(g){return g.constructor===Ta||g.constructor===ka}function Hf(g,E,O,M,B){if(g.keyHash===M)return new ka(E,M,[g.entry,B]);var ne=(O===0?g.keyHash:g.keyHash>>>O)&k,pe=(O===0?M:M>>>O)&k,we,Oe=ne===pe?[Hf(g,E,O+x,M,B)]:(we=new Ta(E,M,B),ne<pe?[g,we]:[we,g]);return new Ea(E,1<<ne|1<<pe,Oe)}function Vy(g,E,O,M){g||(g=new D);for(var B=new Ta(g,Yt(O),[O,M]),ne=0;ne<E.length;ne++){var pe=E[ne];B=B.update(g,0,void 0,pe[0],pe[1])}return B}function Hy(g,E,O,M){for(var B=0,ne=0,pe=new Array(O),we=0,Oe=1,Ie=E.length;we<Ie;we++,Oe<<=1){var ee=E[we];ee!==void 0&&we!==M&&(B|=Oe,pe[ne++]=ee)}return new Ea(g,B,pe)}function Bh(g,E,O,M,B){for(var ne=0,pe=new Array(S),we=0;O!==0;we++,O>>>=1)pe[we]=O&1?E[ne++]:void 0;return pe[M]=B,new oc(g,ne+1,pe)}function qf(g,E,O){for(var M=[],B=0;B<O.length;B++){var ne=O[B],pe=o(ne);l(ne)||(pe=pe.map(function(we){return Se(we)})),M.push(pe)}return zh(g,E,M)}function jh(g,E,O){return g&&g.mergeDeep&&l(E)?g.mergeDeep(E):fe(g,E)?g:E}function ac(g){return function(E,O,M){if(E&&E.mergeDeepWith&&l(O))return E.mergeDeepWith(g,O);var B=g(E,O,M);return fe(E,B)?E:B}}function zh(g,E,O){return O=O.filter(function(M){return M.size!==0}),O.length===0?g:g.size===0&&!g.__ownerID&&O.length===1?g.constructor(O[0]):g.withMutations(function(M){for(var B=E?function(pe,we){M.update(we,A,function(Oe){return Oe===A?pe:E(Oe,pe,we)})}:function(pe,we){M.set(we,pe)},ne=0;ne<O.length;ne++)O[ne].forEach(B)})}function qy(g,E,O,M){var B=g===A,ne=E.next();if(ne.done){var pe=B?O:g,we=M(pe);return we===pe?g:we}Ve(B||g&&g.set,"invalid keyPath");var Oe=ne.value,Ie=B?A:g.get(Oe,A),ee=qy(Ie,E,O,M);return ee===Ie?g:ee===A?g.remove(Oe):(B?No():g).set(Oe,ee)}function Uh(g){return g=g-(g>>1&1431655765),g=(g&858993459)+(g>>2&858993459),g=g+(g>>4)&252645135,g=g+(g>>8),g=g+(g>>16),g&127}function Kh(g,E,O,M){var B=M?g:W(g);return B[E]=O,B}function Wh(g,E,O,M){var B=g.length+1;if(M&&E+1===B)return g[E]=O,g;for(var ne=new Array(B),pe=0,we=0;we<B;we++)we===E?(ne[we]=O,pe=-1):ne[we]=g[we+pe];return ne}function oC(g,E,O){var M=g.length-1;if(O&&E===M)return g.pop(),g;for(var B=new Array(M),ne=0,pe=0;pe<M;pe++)pe===E&&(ne=1),B[pe]=g[pe+ne];return B}var Gy=S/4,Vh=S/2,Hh=S/4;r(sn,pt);function sn(g){var E=Xh();if(g==null)return E;if(qh(g))return g;var O=a(g),M=O.size;return M===0?E:(fr(M),M>0&&M<S?Wl(0,M,x,null,new Aa(O.toArray())):E.withMutations(function(B){B.setSize(M),O.forEach(function(ne,pe){return B.set(pe,ne)})}))}sn.of=function(){return this(arguments)},sn.prototype.toString=function(){return this.__toString("List [","]")},sn.prototype.get=function(g,E){if(g=ae(this,g),g>=0&&g<this.size){g+=this._origin;var O=Xy(this,g);return O&&O.array[g&k]}return E},sn.prototype.set=function(g,E){return aC(this,g,E)},sn.prototype.remove=function(g){return this.has(g)?g===0?this.shift():g===this.size-1?this.pop():this.splice(g,1):this},sn.prototype.insert=function(g,E){return this.splice(g,0,E)},sn.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=x,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Xh()},sn.prototype.push=function(){var g=arguments,E=this.size;return this.withMutations(function(O){is(O,0,E+g.length);for(var M=0;M<g.length;M++)O.set(E+M,g[M])})},sn.prototype.pop=function(){return is(this,0,-1)},sn.prototype.unshift=function(){var g=arguments;return this.withMutations(function(E){is(E,-g.length);for(var O=0;O<g.length;O++)E.set(O,g[O])})},sn.prototype.shift=function(){return is(this,1)},sn.prototype.merge=function(){return Yf(this,void 0,arguments)},sn.prototype.mergeWith=function(g){var E=n.call(arguments,1);return Yf(this,g,E)},sn.prototype.mergeDeep=function(){return Yf(this,jh,arguments)},sn.prototype.mergeDeepWith=function(g){var E=n.call(arguments,1);return Yf(this,ac(g),E)},sn.prototype.setSize=function(g){return is(this,0,g)},sn.prototype.slice=function(g,E){var O=this.size;return G(g,E,O)?this:is(this,J(g,O),le(E,O))},sn.prototype.__iterator=function(g,E){var O=0,M=Yh(this,E);return new ue(function(){var B=M();return B===Kl?Ee():se(g,O++,B)})},sn.prototype.__iterate=function(g,E){for(var O=0,M=Yh(this,E),B;(B=M())!==Kl&&g(B,O++,this)!==!1;);return O},sn.prototype.__ensureOwner=function(g){return g===this.__ownerID?this:g?Wl(this._origin,this._capacity,this._level,this._root,this._tail,g,this.__hash):(this.__ownerID=g,this)};function qh(g){return!!(g&&g[Gh])}sn.isList=qh;var Gh="@@__IMMUTABLE_LIST__@@",Yr=sn.prototype;Yr[Gh]=!0,Yr[b]=Yr.remove,Yr.setIn=ot.setIn,Yr.deleteIn=Yr.removeIn=ot.removeIn,Yr.update=ot.update,Yr.updateIn=ot.updateIn,Yr.mergeIn=ot.mergeIn,Yr.mergeDeepIn=ot.mergeDeepIn,Yr.withMutations=ot.withMutations,Yr.asMutable=ot.asMutable,Yr.asImmutable=ot.asImmutable,Yr.wasAltered=ot.wasAltered;function Aa(g,E){this.array=g,this.ownerID=E}Aa.prototype.removeBefore=function(g,E,O){if(O===E?1<<E:this.array.length===0)return this;var M=O>>>E&k;if(M>=this.array.length)return new Aa([],g);var B=M===0,ne;if(E>0){var pe=this.array[M];if(ne=pe&&pe.removeBefore(g,E-x,O),ne===pe&&B)return this}if(B&&!ne)return this;var we=Vl(this,g);if(!B)for(var Oe=0;Oe<M;Oe++)we.array[Oe]=void 0;return ne&&(we.array[M]=ne),we},Aa.prototype.removeAfter=function(g,E,O){if(O===(E?1<<E:0)||this.array.length===0)return this;var M=O-1>>>E&k;if(M>=this.array.length)return this;var B;if(E>0){var ne=this.array[M];if(B=ne&&ne.removeAfter(g,E-x,O),B===ne&&M===this.array.length-1)return this}var pe=Vl(this,g);return pe.array.splice(M+1),B&&(pe.array[M]=B),pe};var Kl={};function Yh(g,E){var O=g._origin,M=g._capacity,B=Ys(M),ne=g._tail;return pe(g._root,g._level,0);function pe(Ie,ee,be){return ee===0?we(Ie,be):Oe(Ie,ee,be)}function we(Ie,ee){var be=ee===B?ne&&ne.array:Ie&&Ie.array,ye=ee>O?0:O-ee,ze=M-ee;return ze>S&&(ze=S),function(){if(ye===ze)return Kl;var rt=E?--ze:ye++;return be&&be[rt]}}function Oe(Ie,ee,be){var ye,ze=Ie&&Ie.array,rt=be>O?0:O-be>>ee,xt=(M-be>>ee)+1;return xt>S&&(xt=S),function(){do{if(ye){var cn=ye();if(cn!==Kl)return cn;ye=null}if(rt===xt)return Kl;var Wt=E?--xt:rt++;ye=pe(ze&&ze[Wt],ee-x,be+(Wt<<ee))}while(!0)}}}function Wl(g,E,O,M,B,ne,pe){var we=Object.create(Yr);return we.size=E-g,we._origin=g,we._capacity=E,we._level=O,we._root=M,we._tail=B,we.__ownerID=ne,we.__hash=pe,we.__altered=!1,we}var Yy;function Xh(){return Yy||(Yy=Wl(0,0,x))}function aC(g,E,O){if(E=ae(g,E),E!==E)return g;if(E>=g.size||E<0)return g.withMutations(function(pe){E<0?is(pe,E).set(0,O):is(pe,0,E+1).set(E,O)});E+=g._origin;var M=g._tail,B=g._root,ne=z(I);return E>=Ys(g._capacity)?M=Gf(M,g.__ownerID,0,E,O,ne):B=Gf(B,g.__ownerID,g._level,E,O,ne),ne.value?g.__ownerID?(g._root=B,g._tail=M,g.__hash=void 0,g.__altered=!0,g):Wl(g._origin,g._capacity,g._level,B,M):g}function Gf(g,E,O,M,B,ne){var pe=M>>>O&k,we=g&&pe<g.array.length;if(!we&&B===void 0)return g;var Oe;if(O>0){var Ie=g&&g.array[pe],ee=Gf(Ie,E,O-x,M,B,ne);return ee===Ie?g:(Oe=Vl(g,E),Oe.array[pe]=ee,Oe)}return we&&g.array[pe]===B?g:(K(ne),Oe=Vl(g,E),B===void 0&&pe===Oe.array.length-1?Oe.array.pop():Oe.array[pe]=B,Oe)}function Vl(g,E){return E&&g&&E===g.ownerID?g:new Aa(g?g.array.slice():[],E)}function Xy(g,E){if(E>=Ys(g._capacity))return g._tail;if(E<1<<g._level+x){for(var O=g._root,M=g._level;O&&M>0;)O=O.array[E>>>M&k],M-=x;return O}}function is(g,E,O){E!==void 0&&(E=E|0),O!==void 0&&(O=O|0);var M=g.__ownerID||new D,B=g._origin,ne=g._capacity,pe=B+E,we=O===void 0?ne:O<0?ne+O:B+O;if(pe===B&&we===ne)return g;if(pe>=we)return g.clear();for(var Oe=g._level,Ie=g._root,ee=0;pe+ee<0;)Ie=new Aa(Ie&&Ie.array.length?[void 0,Ie]:[],M),Oe+=x,ee+=1<<Oe;ee&&(pe+=ee,B+=ee,we+=ee,ne+=ee);for(var be=Ys(ne),ye=Ys(we);ye>=1<<Oe+x;)Ie=new Aa(Ie&&Ie.array.length?[Ie]:[],M),Oe+=x;var ze=g._tail,rt=ye<be?Xy(g,we-1):ye>be?new Aa([],M):ze;if(ze&&ye>be&&pe<ne&&ze.array.length){Ie=Vl(Ie,M);for(var xt=Ie,cn=Oe;cn>x;cn-=x){var Wt=be>>>cn&k;xt=xt.array[Wt]=Vl(xt.array[Wt],M)}xt.array[be>>>x&k]=ze}if(we<ne&&(rt=rt&&rt.removeAfter(M,0,we)),pe>=ye)pe-=ye,we-=ye,Oe=x,Ie=null,rt=rt&&rt.removeBefore(M,0,pe);else if(pe>B||ye<be){for(ee=0;Ie;){var Xl=pe>>>Oe&k;if(Xl!==ye>>>Oe&k)break;Xl&&(ee+=(1<<Oe)*Xl),Oe-=x,Ie=Ie.array[Xl]}Ie&&pe>B&&(Ie=Ie.removeBefore(M,Oe,pe-ee)),Ie&&ye<be&&(Ie=Ie.removeAfter(M,Oe,ye-ee)),ee&&(pe-=ee,we-=ee)}return g.__ownerID?(g.size=we-pe,g._origin=pe,g._capacity=we,g._level=Oe,g._root=Ie,g._tail=rt,g.__hash=void 0,g.__altered=!0,g):Wl(pe,we,Oe,Ie,rt)}function Yf(g,E,O){for(var M=[],B=0,ne=0;ne<O.length;ne++){var pe=O[ne],we=a(pe);we.size>B&&(B=we.size),l(pe)||(we=we.map(function(Oe){return Se(Oe)})),M.push(we)}return B>g.size&&(g=g.setSize(B)),zh(g,E,M)}function Ys(g){return g<S?0:g-1>>>x<<x}r(rr,Rt);function rr(g){return g==null?Xf():Zy(g)?g:Xf().withMutations(function(E){var O=o(g);fr(O.size),O.forEach(function(M,B){return E.set(B,M)})})}rr.of=function(){return this(arguments)},rr.prototype.toString=function(){return this.__toString("OrderedMap {","}")},rr.prototype.get=function(g,E){var O=this._map.get(g);return O!==void 0?this._list.get(O)[1]:E},rr.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Xf()},rr.prototype.set=function(g,E){return Cn(this,g,E)},rr.prototype.remove=function(g){return Cn(this,g,A)},rr.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},rr.prototype.__iterate=function(g,E){var O=this;return this._list.__iterate(function(M){return M&&g(M[1],M[0],O)},E)},rr.prototype.__iterator=function(g,E){return this._list.fromEntrySeq().__iterator(g,E)},rr.prototype.__ensureOwner=function(g){if(g===this.__ownerID)return this;var E=this._map.__ensureOwner(g),O=this._list.__ensureOwner(g);return g?Zh(E,O,g,this.__hash):(this.__ownerID=g,this._map=E,this._list=O,this)};function Zy(g){return ic(g)&&p(g)}rr.isOrderedMap=Zy,rr.prototype[w]=!0,rr.prototype[b]=rr.prototype.remove;function Zh(g,E,O,M){var B=Object.create(rr.prototype);return B.size=g?g.size:0,B._map=g,B._list=E,B.__ownerID=O,B.__hash=M,B}var Jy;function Xf(){return Jy||(Jy=Zh(No(),Xh()))}function Cn(g,E,O){var M=g._map,B=g._list,ne=M.get(E),pe=ne!==void 0,we,Oe;if(O===A){if(!pe)return g;B.size>=S&&B.size>=M.size*2?(Oe=B.filter(function(Ie,ee){return Ie!==void 0&&ne!==ee}),we=Oe.toKeyedSeq().map(function(Ie){return Ie[0]}).flip().toMap(),g.__ownerID&&(we.__ownerID=Oe.__ownerID=g.__ownerID)):(we=M.remove(E),Oe=ne===B.size-1?B.pop():B.set(ne,void 0))}else if(pe){if(O===B.get(ne)[1])return g;we=M,Oe=B.set(ne,[E,O])}else we=M.set(E,B.size),Oe=B.set(B.size,[E,O]);return g.__ownerID?(g.size=we.size,g._map=we,g._list=Oe,g.__hash=void 0,g):Zh(we,Oe)}r(zt,Ke);function zt(g,E){this._iter=g,this._useKeys=E,this.size=g.size}zt.prototype.get=function(g,E){return this._iter.get(g,E)},zt.prototype.has=function(g){return this._iter.has(g)},zt.prototype.valueSeq=function(){return this._iter.valueSeq()},zt.prototype.reverse=function(){var g=this,E=Jh(this,!0);return this._useKeys||(E.valueSeq=function(){return g._iter.toSeq().reverse()}),E},zt.prototype.map=function(g,E){var O=this,M=e0(this,g,E);return this._useKeys||(M.valueSeq=function(){return O._iter.toSeq().map(g,E)}),M},zt.prototype.__iterate=function(g,E){var O=this,M;return this._iter.__iterate(this._useKeys?function(B,ne){return g(B,ne,O)}:(M=E?Si(this):0,function(B){return g(B,E?--M:M++,O)}),E)},zt.prototype.__iterator=function(g,E){if(this._useKeys)return this._iter.__iterator(g,E);var O=this._iter.__iterator(P,E),M=E?Si(this):0;return new ue(function(){var B=O.next();return B.done?B:se(g,E?--M:M++,B.value,B)})},zt.prototype[w]=!0,r(Hl,He);function Hl(g){this._iter=g,this.size=g.size}Hl.prototype.includes=function(g){return this._iter.includes(g)},Hl.prototype.__iterate=function(g,E){var O=this,M=0;return this._iter.__iterate(function(B){return g(B,M++,O)},E)},Hl.prototype.__iterator=function(g,E){var O=this._iter.__iterator(P,E),M=0;return new ue(function(){var B=O.next();return B.done?B:se(g,M++,B.value,B)})},r(ql,lt);function ql(g){this._iter=g,this.size=g.size}ql.prototype.has=function(g){return this._iter.includes(g)},ql.prototype.__iterate=function(g,E){var O=this;return this._iter.__iterate(function(M){return g(M,M,O)},E)},ql.prototype.__iterator=function(g,E){var O=this._iter.__iterator(P,E);return new ue(function(){var M=O.next();return M.done?M:se(g,M.value,M.value,M)})},r(Gl,Ke);function Gl(g){this._iter=g,this.size=g.size}Gl.prototype.entrySeq=function(){return this._iter.toSeq()},Gl.prototype.__iterate=function(g,E){var O=this;return this._iter.__iterate(function(M){if(M){r0(M);var B=l(M);return g(B?M.get(1):M[1],B?M.get(0):M[0],O)}},E)},Gl.prototype.__iterator=function(g,E){var O=this._iter.__iterator(P,E);return new ue(function(){for(;;){var M=O.next();if(M.done)return M;var B=M.value;if(B){r0(B);var ne=l(B);return se(g,ne?B.get(0):B[0],ne?B.get(1):B[1],M)}}})},Hl.prototype.cacheResult=zt.prototype.cacheResult=ql.prototype.cacheResult=Gl.prototype.cacheResult=Bo;function Qy(g){var E=co(g);return E._iter=g,E.size=g.size,E.flip=function(){return g},E.reverse=function(){var O=g.reverse.apply(this);return O.flip=function(){return g.reverse()},O},E.has=function(O){return g.includes(O)},E.includes=function(O){return g.has(O)},E.cacheResult=Bo,E.__iterateUncached=function(O,M){var B=this;return g.__iterate(function(ne,pe){return O(pe,ne,B)!==!1},M)},E.__iteratorUncached=function(O,M){if(O===me){var B=g.__iterator(O,M);return new ue(function(){var ne=B.next();if(!ne.done){var pe=ne.value[0];ne.value[0]=ne.value[1],ne.value[1]=pe}return ne})}return g.__iterator(O===P?te:P,M)},E}function e0(g,E,O){var M=co(g);return M.size=g.size,M.has=function(B){return g.has(B)},M.get=function(B,ne){var pe=g.get(B,A);return pe===A?ne:E.call(O,pe,B,g)},M.__iterateUncached=function(B,ne){var pe=this;return g.__iterate(function(we,Oe,Ie){return B(E.call(O,we,Oe,Ie),Oe,pe)!==!1},ne)},M.__iteratorUncached=function(B,ne){var pe=g.__iterator(me,ne);return new ue(function(){var we=pe.next();if(we.done)return we;var Oe=we.value,Ie=Oe[0];return se(B,Ie,E.call(O,Oe[1],Ie,g),we)})},M}function Jh(g,E){var O=co(g);return O._iter=g,O.size=g.size,O.reverse=function(){return g},g.flip&&(O.flip=function(){var M=Qy(g);return M.reverse=function(){return g.flip()},M}),O.get=function(M,B){return g.get(E?M:-1-M,B)},O.has=function(M){return g.has(E?M:-1-M)},O.includes=function(M){return g.includes(M)},O.cacheResult=Bo,O.__iterate=function(M,B){var ne=this;return g.__iterate(function(pe,we){return M(pe,we,ne)},!B)},O.__iterator=function(M,B){return g.__iterator(M,!B)},O}function Qh(g,E,O,M){var B=co(g);return M&&(B.has=function(ne){var pe=g.get(ne,A);return pe!==A&&!!E.call(O,pe,ne,g)},B.get=function(ne,pe){var we=g.get(ne,A);return we!==A&&E.call(O,we,ne,g)?we:pe}),B.__iterateUncached=function(ne,pe){var we=this,Oe=0;return g.__iterate(function(Ie,ee,be){if(E.call(O,Ie,ee,be))return Oe++,ne(Ie,M?ee:Oe-1,we)},pe),Oe},B.__iteratorUncached=function(ne,pe){var we=g.__iterator(me,pe),Oe=0;return new ue(function(){for(;;){var Ie=we.next();if(Ie.done)return Ie;var ee=Ie.value,be=ee[0],ye=ee[1];if(E.call(O,ye,be,g))return se(ne,M?be:Oe++,ye,Ie)}})},B}function sC(g,E,O){var M=Rt().asMutable();return g.__iterate(function(B,ne){M.update(E.call(O,B,ne,g),0,function(pe){return pe+1})}),M.asImmutable()}function Dr(g,E,O){var M=u(g),B=(p(g)?rr():Rt()).asMutable();g.__iterate(function(pe,we){B.update(E.call(O,pe,we,g),function(Oe){return Oe=Oe||[],Oe.push(M?[we,pe]:pe),Oe})});var ne=i0(g);return B.map(function(pe){return Pt(g,ne(pe))})}function sc(g,E,O,M){var B=g.size;if(E!==void 0&&(E=E|0),O!==void 0&&(O=O|0),G(E,O,B))return g;var ne=J(E,B),pe=le(O,B);if(ne!==ne||pe!==pe)return sc(g.toSeq().cacheResult(),E,O,M);var we=pe-ne,Oe;we===we&&(Oe=we<0?0:we);var Ie=co(g);return Ie.size=Oe===0?Oe:g.size&&Oe||void 0,!M&&Te(g)&&Oe>=0&&(Ie.get=function(ee,be){return ee=ae(this,ee),ee>=0&&ee<Oe?g.get(ee+ne,be):be}),Ie.__iterateUncached=function(ee,be){var ye=this;if(Oe===0)return 0;if(be)return this.cacheResult().__iterate(ee,be);var ze=0,rt=!0,xt=0;return g.__iterate(function(cn,Wt){if(!(rt&&(rt=ze++<ne)))return xt++,ee(cn,M?Wt:xt-1,ye)!==!1&&xt!==Oe}),xt},Ie.__iteratorUncached=function(ee,be){if(Oe!==0&&be)return this.cacheResult().__iterator(ee,be);var ye=Oe!==0&&g.__iterator(ee,be),ze=0,rt=0;return new ue(function(){for(;ze++<ne;)ye.next();if(++rt>Oe)return Ee();var xt=ye.next();return M||ee===P?xt:ee===te?se(ee,rt-1,void 0,xt):se(ee,rt-1,xt.value[1],xt)})},Ie}function Xs(g,E,O){var M=co(g);return M.__iterateUncached=function(B,ne){var pe=this;if(ne)return this.cacheResult().__iterate(B,ne);var we=0;return g.__iterate(function(Oe,Ie,ee){return E.call(O,Oe,Ie,ee)&&++we&&B(Oe,Ie,pe)}),we},M.__iteratorUncached=function(B,ne){var pe=this;if(ne)return this.cacheResult().__iterator(B,ne);var we=g.__iterator(me,ne),Oe=!0;return new ue(function(){if(!Oe)return Ee();var Ie=we.next();if(Ie.done)return Ie;var ee=Ie.value,be=ee[0],ye=ee[1];return E.call(O,ye,be,pe)?B===me?Ie:se(B,be,ye,Ie):(Oe=!1,Ee())})},M}function eg(g,E,O,M){var B=co(g);return B.__iterateUncached=function(ne,pe){var we=this;if(pe)return this.cacheResult().__iterate(ne,pe);var Oe=!0,Ie=0;return g.__iterate(function(ee,be,ye){if(!(Oe&&(Oe=E.call(O,ee,be,ye))))return Ie++,ne(ee,M?be:Ie-1,we)}),Ie},B.__iteratorUncached=function(ne,pe){var we=this;if(pe)return this.cacheResult().__iterator(ne,pe);var Oe=g.__iterator(me,pe),Ie=!0,ee=0;return new ue(function(){var be,ye,ze;do{if(be=Oe.next(),be.done)return M||ne===P?be:ne===te?se(ne,ee++,void 0,be):se(ne,ee++,be.value[1],be);var rt=be.value;ye=rt[0],ze=rt[1],Ie&&(Ie=E.call(O,ze,ye,we))}while(Ie);return ne===me?be:se(ne,ye,ze,be)})},B}function tg(g,E){var O=u(g),M=[g].concat(E).map(function(pe){return l(pe)?O&&(pe=o(pe)):pe=O?H(pe):de(Array.isArray(pe)?pe:[pe]),pe}).filter(function(pe){return pe.size!==0});if(M.length===0)return g;if(M.length===1){var B=M[0];if(B===g||O&&u(B)||f(g)&&f(B))return B}var ne=new nt(M);return O?ne=ne.toKeyedSeq():f(g)||(ne=ne.toSetSeq()),ne=ne.flatten(!0),ne.size=M.reduce(function(pe,we){if(pe!==void 0){var Oe=we.size;if(Oe!==void 0)return pe+Oe}},0),ne}function wi(g,E,O){var M=co(g);return M.__iterateUncached=function(B,ne){var pe=0,we=!1;function Oe(Ie,ee){var be=this;Ie.__iterate(function(ye,ze){return(!E||ee<E)&&l(ye)?Oe(ye,ee+1):B(ye,O?ze:pe++,be)===!1&&(we=!0),!we},ne)}return Oe(g,0),pe},M.__iteratorUncached=function(B,ne){var pe=g.__iterator(B,ne),we=[],Oe=0;return new ue(function(){for(;pe;){var Ie=pe.next();if(Ie.done!==!1){pe=we.pop();continue}var ee=Ie.value;if(B===me&&(ee=ee[1]),(!E||we.length<E)&&l(ee))we.push(pe),pe=ee.__iterator(B,ne);else return O?Ie:se(B,Oe++,ee,Ie)}return Ee()})},M}function t0(g,E,O){var M=i0(g);return g.toSeq().map(function(B,ne){return M(E.call(O,B,ne,g))}).flatten(!0)}function n0(g,E){var O=co(g);return O.size=g.size&&g.size*2-1,O.__iterateUncached=function(M,B){var ne=this,pe=0;return g.__iterate(function(we,Oe){return(!pe||M(E,pe++,ne)!==!1)&&M(we,pe++,ne)!==!1},B),pe},O.__iteratorUncached=function(M,B){var ne=g.__iterator(P,B),pe=0,we;return new ue(function(){return(!we||pe%2)&&(we=ne.next(),we.done)?we:pe%2?se(M,pe++,E):se(M,pe++,we.value,we)})},O}function Zs(g,E,O){E||(E=uc);var M=u(g),B=0,ne=g.toSeq().map(function(pe,we){return[we,pe,B++,O?O(pe,we,g):pe]}).toArray();return ne.sort(function(pe,we){return E(pe[3],we[3])||pe[2]-we[2]}).forEach(M?function(pe,we){ne[we].length=2}:function(pe,we){ne[we]=pe[1]}),M?Ke(ne):f(g)?He(ne):lt(ne)}function lc(g,E,O){if(E||(E=uc),O){var M=g.toSeq().map(function(B,ne){return[B,O(B,ne,g)]}).reduce(function(B,ne){return ng(E,B[1],ne[1])?ne:B});return M&&M[0]}else return g.reduce(function(B,ne){return ng(E,B,ne)?ne:B})}function ng(g,E,O){var M=g(O,E);return M===0&&O!==E&&(O==null||O!==O)||M>0}function Zf(g,E,O){var M=co(g);return M.size=new nt(O).map(function(B){return B.size}).min(),M.__iterate=function(B,ne){for(var pe=this.__iterator(P,ne),we,Oe=0;!(we=pe.next()).done&&B(we.value,Oe++,this)!==!1;);return Oe},M.__iteratorUncached=function(B,ne){var pe=O.map(function(Ie){return Ie=i(Ie),De(ne?Ie.reverse():Ie)}),we=0,Oe=!1;return new ue(function(){var Ie;return Oe||(Ie=pe.map(function(ee){return ee.next()}),Oe=Ie.some(function(ee){return ee.done})),Oe?Ee():se(B,we++,E.apply(null,Ie.map(function(ee){return ee.value})))})},M}function Pt(g,E){return Te(g)?E:g.constructor(E)}function r0(g){if(g!==Object(g))throw new TypeError("Expected [K, V] tuple: "+g)}function Si(g){return fr(g.size),ie(g)}function i0(g){return u(g)?o:f(g)?a:s}function co(g){return Object.create((u(g)?Ke:f(g)?He:lt).prototype)}function Bo(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Ue.prototype.cacheResult.call(this)}function uc(g,E){return g>E?1:g<E?-1:0}function Jf(g){var E=De(g);if(!E){if(!Be(g))throw new TypeError("Expected iterable or array-like: "+g);E=De(i(g))}return E}r(Kt,it);function Kt(g,E){var O,M=function(pe){if(pe instanceof M)return pe;if(!(this instanceof M))return new M(pe);if(!O){O=!0;var we=Object.keys(g);rg(B,we),B.size=we.length,B._name=E,B._keys=we,B._defaultValues=g}this._map=Rt(pe)},B=M.prototype=Object.create(In);return B.constructor=M,M}Kt.prototype.toString=function(){return this.__toString(o0(this)+" {","}")},Kt.prototype.has=function(g){return this._defaultValues.hasOwnProperty(g)},Kt.prototype.get=function(g,E){if(!this.has(g))return E;var O=this._defaultValues[g];return this._map?this._map.get(g,O):O},Kt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var g=this.constructor;return g._empty||(g._empty=Yl(this,No()))},Kt.prototype.set=function(g,E){if(!this.has(g))throw new Error('Cannot set unknown key "'+g+'" on '+o0(this));var O=this._map&&this._map.set(g,E);return this.__ownerID||O===this._map?this:Yl(this,O)},Kt.prototype.remove=function(g){if(!this.has(g))return this;var E=this._map&&this._map.remove(g);return this.__ownerID||E===this._map?this:Yl(this,E)},Kt.prototype.wasAltered=function(){return this._map.wasAltered()},Kt.prototype.__iterator=function(g,E){var O=this;return o(this._defaultValues).map(function(M,B){return O.get(B)}).__iterator(g,E)},Kt.prototype.__iterate=function(g,E){var O=this;return o(this._defaultValues).map(function(M,B){return O.get(B)}).__iterate(g,E)},Kt.prototype.__ensureOwner=function(g){if(g===this.__ownerID)return this;var E=this._map&&this._map.__ensureOwner(g);return g?Yl(this,E,g):(this.__ownerID=g,this._map=E,this)};var In=Kt.prototype;In[b]=In.remove,In.deleteIn=In.removeIn=ot.removeIn,In.merge=ot.merge,In.mergeWith=ot.mergeWith,In.mergeIn=ot.mergeIn,In.mergeDeep=ot.mergeDeep,In.mergeDeepWith=ot.mergeDeepWith,In.mergeDeepIn=ot.mergeDeepIn,In.setIn=ot.setIn,In.update=ot.update,In.updateIn=ot.updateIn,In.withMutations=ot.withMutations,In.asMutable=ot.asMutable,In.asImmutable=ot.asImmutable;function Yl(g,E,O){var M=Object.create(Object.getPrototypeOf(g));return M._map=E,M.__ownerID=O,M}function o0(g){return g._name||g.constructor.name||"Record"}function rg(g,E){try{E.forEach(lC.bind(void 0,g))}catch{}}function lC(g,E){Object.defineProperty(g,E,{get:function(){return this.get(E)},set:function(O){Ve(this.__ownerID,"Cannot set on an immutable record."),this.set(E,O)}})}r(Dn,Ot);function Dn(g){return g==null?Qf():ig(g)&&!p(g)?g:Qf().withMutations(function(E){var O=s(g);fr(O.size),O.forEach(function(M){return E.add(M)})})}Dn.of=function(){return this(arguments)},Dn.fromKeys=function(g){return this(o(g).keySeq())},Dn.prototype.toString=function(){return this.__toString("Set {","}")},Dn.prototype.has=function(g){return this._map.has(g)},Dn.prototype.add=function(g){return os(this,this._map.set(g,!0))},Dn.prototype.remove=function(g){return os(this,this._map.remove(g))},Dn.prototype.clear=function(){return os(this,this._map.clear())},Dn.prototype.union=function(){var g=n.call(arguments,0);return g=g.filter(function(E){return E.size!==0}),g.length===0?this:this.size===0&&!this.__ownerID&&g.length===1?this.constructor(g[0]):this.withMutations(function(E){for(var O=0;O<g.length;O++)s(g[O]).forEach(function(M){return E.add(M)})})},Dn.prototype.intersect=function(){var g=n.call(arguments,0);if(g.length===0)return this;g=g.map(function(O){return s(O)});var E=this;return this.withMutations(function(O){E.forEach(function(M){g.every(function(B){return B.includes(M)})||O.remove(M)})})},Dn.prototype.subtract=function(){var g=n.call(arguments,0);if(g.length===0)return this;g=g.map(function(O){return s(O)});var E=this;return this.withMutations(function(O){E.forEach(function(M){g.some(function(B){return B.includes(M)})&&O.remove(M)})})},Dn.prototype.merge=function(){return this.union.apply(this,arguments)},Dn.prototype.mergeWith=function(g){var E=n.call(arguments,1);return this.union.apply(this,E)},Dn.prototype.sort=function(g){return Fi(Zs(this,g))},Dn.prototype.sortBy=function(g,E){return Fi(Zs(this,E,g))},Dn.prototype.wasAltered=function(){return this._map.wasAltered()},Dn.prototype.__iterate=function(g,E){var O=this;return this._map.__iterate(function(M,B){return g(B,B,O)},E)},Dn.prototype.__iterator=function(g,E){return this._map.map(function(O,M){return M}).__iterator(g,E)},Dn.prototype.__ensureOwner=function(g){if(g===this.__ownerID)return this;var E=this._map.__ensureOwner(g);return g?this.__make(E,g):(this.__ownerID=g,this._map=E,this)};function ig(g){return!!(g&&g[og])}Dn.isSet=ig;var og="@@__IMMUTABLE_SET__@@",Br=Dn.prototype;Br[og]=!0,Br[b]=Br.remove,Br.mergeDeep=Br.merge,Br.mergeDeepWith=Br.mergeWith,Br.withMutations=ot.withMutations,Br.asMutable=ot.asMutable,Br.asImmutable=ot.asImmutable,Br.__empty=Qf,Br.__make=a0;function os(g,E){return g.__ownerID?(g.size=E.size,g._map=E,g):E===g._map?g:E.size===0?g.__empty():g.__make(E)}function a0(g,E){var O=Object.create(Br);return O.size=g?g.size:0,O._map=g,O.__ownerID=E,O}var ag;function Qf(){return ag||(ag=a0(No()))}r(Fi,Dn);function Fi(g){return g==null?fc():ed(g)?g:fc().withMutations(function(E){var O=s(g);fr(O.size),O.forEach(function(M){return E.add(M)})})}Fi.of=function(){return this(arguments)},Fi.fromKeys=function(g){return this(o(g).keySeq())},Fi.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function ed(g){return ig(g)&&p(g)}Fi.isOrderedSet=ed;var cc=Fi.prototype;cc[w]=!0,cc.__empty=fc,cc.__make=s0;function s0(g,E){var O=Object.create(cc);return O.size=g?g.size:0,O._map=g,O.__ownerID=E,O}var td;function fc(){return td||(td=s0(Xf()))}r(dr,pt);function dr(g){return g==null?nd():sg(g)?g:nd().unshiftAll(g)}dr.of=function(){return this(arguments)},dr.prototype.toString=function(){return this.__toString("Stack [","]")},dr.prototype.get=function(g,E){var O=this._head;for(g=ae(this,g);O&&g--;)O=O.next;return O?O.value:E},dr.prototype.peek=function(){return this._head&&this._head.value},dr.prototype.push=function(){if(arguments.length===0)return this;for(var g=this.size+arguments.length,E=this._head,O=arguments.length-1;O>=0;O--)E={value:arguments[O],next:E};return this.__ownerID?(this.size=g,this._head=E,this.__hash=void 0,this.__altered=!0,this):$a(g,E)},dr.prototype.pushAll=function(g){if(g=a(g),g.size===0)return this;fr(g.size);var E=this.size,O=this._head;return g.reverse().forEach(function(M){E++,O={value:M,next:O}}),this.__ownerID?(this.size=E,this._head=O,this.__hash=void 0,this.__altered=!0,this):$a(E,O)},dr.prototype.pop=function(){return this.slice(1)},dr.prototype.unshift=function(){return this.push.apply(this,arguments)},dr.prototype.unshiftAll=function(g){return this.pushAll(g)},dr.prototype.shift=function(){return this.pop.apply(this,arguments)},dr.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):nd()},dr.prototype.slice=function(g,E){if(G(g,E,this.size))return this;var O=J(g,this.size),M=le(E,this.size);if(M!==this.size)return pt.prototype.slice.call(this,g,E);for(var B=this.size-O,ne=this._head;O--;)ne=ne.next;return this.__ownerID?(this.size=B,this._head=ne,this.__hash=void 0,this.__altered=!0,this):$a(B,ne)},dr.prototype.__ensureOwner=function(g){return g===this.__ownerID?this:g?$a(this.size,this._head,g,this.__hash):(this.__ownerID=g,this.__altered=!1,this)},dr.prototype.__iterate=function(g,E){if(E)return this.reverse().__iterate(g);for(var O=0,M=this._head;M&&g(M.value,O++,this)!==!1;)M=M.next;return O},dr.prototype.__iterator=function(g,E){if(E)return this.reverse().__iterator(g);var O=0,M=this._head;return new ue(function(){if(M){var B=M.value;return M=M.next,se(g,O++,B)}return Ee()})};function sg(g){return!!(g&&g[si])}dr.isStack=sg;var si="@@__IMMUTABLE_STACK__@@",as=dr.prototype;as[si]=!0,as.withMutations=ot.withMutations,as.asMutable=ot.asMutable,as.asImmutable=ot.asImmutable,as.wasAltered=ot.wasAltered;function $a(g,E,O,M){var B=Object.create(as);return B.size=g,B._head=E,B.__ownerID=O,B.__hash=M,B.__altered=!1,B}var lg;function nd(){return lg||(lg=$a(0))}function jo(g,E){var O=function(M){g.prototype[M]=E[M]};return Object.keys(E).forEach(O),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(E).forEach(O),g}i.Iterator=ue,jo(i,{toArray:function(){fr(this.size);var g=new Array(this.size||0);return this.valueSeq().__iterate(function(E,O){g[O]=E}),g},toIndexedSeq:function(){return new Hl(this)},toJS:function(){return this.toSeq().map(function(g){return g&&typeof g.toJS=="function"?g.toJS():g}).__toJS()},toJSON:function(){return this.toSeq().map(function(g){return g&&typeof g.toJSON=="function"?g.toJSON():g}).__toJS()},toKeyedSeq:function(){return new zt(this,!0)},toMap:function(){return Rt(this.toKeyedSeq())},toObject:function(){fr(this.size);var g={};return this.__iterate(function(E,O){g[O]=E}),g},toOrderedMap:function(){return rr(this.toKeyedSeq())},toOrderedSet:function(){return Fi(u(this)?this.valueSeq():this)},toSet:function(){return Dn(u(this)?this.valueSeq():this)},toSetSeq:function(){return new ql(this)},toSeq:function(){return f(this)?this.toIndexedSeq():u(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return dr(u(this)?this.valueSeq():this)},toList:function(){return sn(u(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(g,E){return this.size===0?g+E:g+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+E},concat:function(){var g=n.call(arguments,0);return Pt(this,tg(this,g))},includes:function(g){return this.some(function(E){return fe(E,g)})},entries:function(){return this.__iterator(me)},every:function(g,E){fr(this.size);var O=!0;return this.__iterate(function(M,B,ne){if(!g.call(E,M,B,ne))return O=!1,!1}),O},filter:function(g,E){return Pt(this,Qh(this,g,E,!0))},find:function(g,E,O){var M=this.findEntry(g,E);return M?M[1]:O},findEntry:function(g,E){var O;return this.__iterate(function(M,B,ne){if(g.call(E,M,B,ne))return O=[B,M],!1}),O},findLastEntry:function(g,E){return this.toSeq().reverse().findEntry(g,E)},forEach:function(g,E){return fr(this.size),this.__iterate(E?g.bind(E):g)},join:function(g){fr(this.size),g=g!==void 0?""+g:",";var E="",O=!0;return this.__iterate(function(M){O?O=!1:E+=g,E+=M!=null?M.toString():""}),E},keys:function(){return this.__iterator(te)},map:function(g,E){return Pt(this,e0(this,g,E))},reduce:function(g,E,O){fr(this.size);var M,B;return arguments.length<2?B=!0:M=E,this.__iterate(function(ne,pe,we){B?(B=!1,M=ne):M=g.call(O,M,ne,pe,we)}),M},reduceRight:function(g,E,O){var M=this.toKeyedSeq().reverse();return M.reduce.apply(M,arguments)},reverse:function(){return Pt(this,Jh(this,!0))},slice:function(g,E){return Pt(this,sc(this,g,E,!0))},some:function(g,E){return!this.every(Ra(g),E)},sort:function(g){return Pt(this,Zs(this,g))},values:function(){return this.__iterator(P)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(g,E){return ie(g?this.toSeq().filter(g,E):this)},countBy:function(g,E){return sC(this,g,E)},equals:function(g){return he(this,g)},entrySeq:function(){var g=this;if(g._cache)return new nt(g._cache);var E=g.toSeq().map(cC).toIndexedSeq();return E.fromEntrySeq=function(){return g.toSeq()},E},filterNot:function(g,E){return this.filter(Ra(g),E)},findLast:function(g,E,O){return this.toKeyedSeq().reverse().find(g,E,O)},first:function(){return this.find(q)},flatMap:function(g,E){return Pt(this,t0(this,g,E))},flatten:function(g){return Pt(this,wi(this,g,!0))},fromEntrySeq:function(){return new Gl(this)},get:function(g,E){return this.find(function(O,M){return fe(M,g)},void 0,E)},getIn:function(g,E){for(var O=this,M=Jf(g),B;!(B=M.next()).done;){var ne=B.value;if(O=O&&O.get?O.get(ne,A):A,O===A)return E}return O},groupBy:function(g,E){return Dr(this,g,E)},has:function(g){return this.get(g,A)!==A},hasIn:function(g){return this.getIn(g,A)!==A},isSubset:function(g){return g=typeof g.includes=="function"?g:i(g),this.every(function(E){return g.includes(E)})},isSuperset:function(g){return g=typeof g.isSubset=="function"?g:i(g),g.isSubset(this)},keySeq:function(){return this.toSeq().map(uC).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(g){return lc(this,g)},maxBy:function(g,E){return lc(this,E,g)},min:function(g){return lc(this,g?l0(g):cg)},minBy:function(g,E){return lc(this,E?l0(E):cg,g)},rest:function(){return this.slice(1)},skip:function(g){return this.slice(Math.max(0,g))},skipLast:function(g){return Pt(this,this.toSeq().reverse().skip(g).reverse())},skipWhile:function(g,E){return Pt(this,eg(this,g,E,!0))},skipUntil:function(g,E){return this.skipWhile(Ra(g),E)},sortBy:function(g,E){return Pt(this,Zs(this,E,g))},take:function(g){return this.slice(0,Math.max(0,g))},takeLast:function(g){return Pt(this,this.toSeq().reverse().take(g).reverse())},takeWhile:function(g,E){return Pt(this,Xs(this,g,E))},takeUntil:function(g,E){return this.takeWhile(Ra(g),E)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ss(this))}});var jr=i.prototype;jr[m]=!0,jr[oe]=jr.values,jr.__toJS=jr.toArray,jr.__toStringMapper=u0,jr.inspect=jr.toSource=function(){return this.toString()},jr.chain=jr.flatMap,jr.contains=jr.includes,function(){try{Object.defineProperty(jr,"length",{get:function(){if(!i.noLengthWarning){var g;try{throw new Error}catch(E){g=E.stack}if(g.indexOf("_wrapObject")===-1)return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+g),this.size}}})}catch{}}(),jo(o,{flip:function(){return Pt(this,Qy(this))},findKey:function(g,E){var O=this.findEntry(g,E);return O&&O[0]},findLastKey:function(g,E){return this.toSeq().reverse().findKey(g,E)},keyOf:function(g){return this.findKey(function(E){return fe(E,g)})},lastKeyOf:function(g){return this.findLastKey(function(E){return fe(E,g)})},mapEntries:function(g,E){var O=this,M=0;return Pt(this,this.toSeq().map(function(B,ne){return g.call(E,[ne,B],M++,O)}).fromEntrySeq())},mapKeys:function(g,E){var O=this;return Pt(this,this.toSeq().flip().map(function(M,B){return g.call(E,M,B,O)}).flip())}});var rd=o.prototype;rd[v]=!0,rd[oe]=jr.entries,rd.__toJS=jr.toObject,rd.__toStringMapper=function(g,E){return JSON.stringify(E)+": "+u0(g)},jo(a,{toKeyedSeq:function(){return new zt(this,!1)},filter:function(g,E){return Pt(this,Qh(this,g,E,!1))},findIndex:function(g,E){var O=this.findEntry(g,E);return O?O[0]:-1},indexOf:function(g){var E=this.toKeyedSeq().keyOf(g);return E===void 0?-1:E},lastIndexOf:function(g){var E=this.toKeyedSeq().reverse().keyOf(g);return E===void 0?-1:E},reverse:function(){return Pt(this,Jh(this,!1))},slice:function(g,E){return Pt(this,sc(this,g,E,!1))},splice:function(g,E){var O=arguments.length;if(E=Math.max(E|0,0),O===0||O===2&&!E)return this;g=J(g,g<0?this.count():this.size);var M=this.slice(0,g);return Pt(this,O===1?M:M.concat(W(arguments,2),this.slice(g+E)))},findLastIndex:function(g,E){var O=this.toKeyedSeq().findLastKey(g,E);return O===void 0?-1:O},first:function(){return this.get(0)},flatten:function(g){return Pt(this,wi(this,g,!1))},get:function(g,E){return g=ae(this,g),g<0||this.size===1/0||this.size!==void 0&&g>this.size?E:this.find(function(O,M){return M===g},void 0,E)},has:function(g){return g=ae(this,g),g>=0&&(this.size!==void 0?this.size===1/0||g<this.size:this.indexOf(g)!==-1)},interpose:function(g){return Pt(this,n0(this,g))},interleave:function(){var g=[this].concat(W(arguments)),E=Zf(this.toSeq(),He.of,g),O=E.flatten(!0);return E.size&&(O.size=E.size*g.length),Pt(this,O)},last:function(){return this.get(-1)},skipWhile:function(g,E){return Pt(this,eg(this,g,E,!1))},zip:function(){var g=[this].concat(W(arguments));return Pt(this,Zf(this,ug,g))},zipWith:function(g){var E=W(arguments);return E[0]=this,Pt(this,Zf(this,g,E))}}),a.prototype[y]=!0,a.prototype[w]=!0,jo(s,{get:function(g,E){return this.has(g)?g:E},includes:function(g){return this.has(g)},keySeq:function(){return this.valueSeq()}}),s.prototype.has=jr.includes,jo(Ke,o.prototype),jo(He,a.prototype),jo(lt,s.prototype),jo(it,o.prototype),jo(pt,a.prototype),jo(Ot,s.prototype);function uC(g,E){return E}function cC(g,E){return[E,g]}function Ra(g){return function(){return!g.apply(this,arguments)}}function l0(g){return function(){return-g.apply(this,arguments)}}function u0(g){return typeof g=="string"?JSON.stringify(g):g}function ug(){return W(arguments)}function cg(g,E){return g<E?1:g>E?-1:0}function ss(g){if(g.size===1/0)return 0;var E=p(g),O=u(g),M=E?1:0,B=g.__iterate(O?E?function(ne,pe){M=31*M+c0(Yt(ne),Yt(pe))|0}:function(ne,pe){M=M+c0(Yt(ne),Yt(pe))|0}:E?function(ne){M=31*M+Yt(ne)|0}:function(ne){M=M+Yt(ne)|0});return id(B,M)}function id(g,E){return E=rn(E,3432918353),E=rn(E<<15|E>>>-15,461845907),E=rn(E<<13|E>>>-13,5),E=(E+3864292196|0)^g,E=rn(E^E>>>16,2246822507),E=rn(E^E>>>13,3266489909),E=Qt(E^E>>>16),E}function c0(g,E){return g^E+2654435769+(g<<6)+(g>>2)|0}var fC={Iterable:i,Seq:Ue,Collection:ut,Map:Rt,OrderedMap:rr,List:sn,Stack:dr,Set:Dn,OrderedSet:Fi,Record:Kt,Range:Ge,Repeat:Ae,is:fe,fromJS:Se};return fC})})(iq);var un=iq.exports,zNe=un,UNe=zNe.OrderedMap,KNe={createFromArray:function(t){return UNe(t.map(function(n){return[n.getKey(),n]}))}},_y=KNe;function WNe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var oI=un,v$=oI.Map,y$=oI.OrderedSet,VNe=oI.Record,oq=y$(),aq={style:oq,entity:null},HNe=VNe(aq),aI=function(e){WNe(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.getStyle=function(){return this.get("style")},n.getEntity=function(){return this.get("entity")},n.hasStyle=function(i){return this.getStyle().includes(i)},t.applyStyle=function(i,o){var a=i.set("style",i.getStyle().add(o));return t.create(a)},t.removeStyle=function(i,o){var a=i.set("style",i.getStyle().remove(o));return t.create(a)},t.applyEntity=function(i,o){var a=i.getEntity()===o?i:i.set("entity",o);return t.create(a)},t.create=function(i){if(!i)return sI;var o={style:oq,entity:null},a=v$(o).merge(i),s=$k.get(a);if(s)return s;var l=new t(a);return $k=$k.set(a,l),l},t.fromJS=function(i){var o=i.style,a=i.entity;return new t({style:Array.isArray(o)?y$(o):o,entity:Array.isArray(a)?y$(a):a})},t}(HNe),sI=new aI,$k=v$([[v$(aq),sI]]);aI.EMPTY=sI;var xa=aI;function qNe(e,t,n,r){if(e.size){var i=0;e.reduce(function(o,a,s){return t(o,a)||(n(o)&&r(i,s),i=s),a}),n(e.last())&&r(i,e.count())}}var xy=qNe;function GNe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var YNe=xa,aj=xy,wy=un,sq=wy.List,XNe=wy.Map,ZNe=wy.OrderedSet,JNe=wy.Record,QNe=wy.Repeat,eBe=ZNe(),tBe={key:"",type:"unstyled",text:"",characterList:sq(),depth:0,data:XNe()},nBe=JNe(tBe),rBe=function(t){if(!t)return t;var n=t.characterList,r=t.text;return r&&!n&&(t.characterList=sq(QNe(YNe.EMPTY,r.length))),t},iBe=function(e){GNe(t,e);function t(r){return e.call(this,rBe(r))||this}var n=t.prototype;return n.getKey=function(){return this.get("key")},n.getType=function(){return this.get("type")},n.getText=function(){return this.get("text")},n.getCharacterList=function(){return this.get("characterList")},n.getLength=function(){return this.getText().length},n.getDepth=function(){return this.get("depth")},n.getData=function(){return this.get("data")},n.getInlineStyleAt=function(i){var o=this.getCharacterList().get(i);return o?o.getStyle():eBe},n.getEntityAt=function(i){var o=this.getCharacterList().get(i);return o?o.getEntity():null},n.findStyleRanges=function(i,o){aj(this.getCharacterList(),oBe,i,o)},n.findEntityRanges=function(i,o){aj(this.getCharacterList(),aBe,i,o)},t}(nBe);function oBe(e,t){return e.getStyle()===t.getStyle()}function aBe(e,t){return e.getEntity()===t.getEntity()}var Af=iBe;function sBe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var lBe=xa,sj=xy,Sy=un,b$=Sy.List,uBe=Sy.Map,cBe=Sy.OrderedSet,fBe=Sy.Record,dBe=Sy.Repeat,pBe=cBe(),lj={parent:null,characterList:b$(),data:uBe(),depth:0,key:"",text:"",type:"unstyled",children:b$(),prevSibling:null,nextSibling:null},hBe=function(t,n){return t.getStyle()===n.getStyle()},gBe=function(t,n){return t.getEntity()===n.getEntity()},mBe=function(t){if(!t)return t;var n=t.characterList,r=t.text;return r&&!n&&(t.characterList=b$(dBe(lBe.EMPTY,r.length))),t},vBe=function(e){sBe(t,e);function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lj;return e.call(this,mBe(r))||this}var n=t.prototype;return n.getKey=function(){return this.get("key")},n.getType=function(){return this.get("type")},n.getText=function(){return this.get("text")},n.getCharacterList=function(){return this.get("characterList")},n.getLength=function(){return this.getText().length},n.getDepth=function(){return this.get("depth")},n.getData=function(){return this.get("data")},n.getInlineStyleAt=function(i){var o=this.getCharacterList().get(i);return o?o.getStyle():pBe},n.getEntityAt=function(i){var o=this.getCharacterList().get(i);return o?o.getEntity():null},n.getChildKeys=function(){return this.get("children")},n.getParentKey=function(){return this.get("parent")},n.getPrevSiblingKey=function(){return this.get("prevSibling")},n.getNextSiblingKey=function(){return this.get("nextSibling")},n.findStyleRanges=function(i,o){sj(this.getCharacterList(),hBe,i,o)},n.findEntityRanges=function(i,o){sj(this.getCharacterList(),gBe,i,o)},t}(fBe(lj)),wa=vBe,uj=xa,yBe=un,bBe=yBe.Map,_Be={add:function(t,n,r){return cj(t,n,r,!0)},remove:function(t,n,r){return cj(t,n,r,!1)}};function cj(e,t,n,r){var i=e.getBlockMap(),o=t.getStartKey(),a=t.getStartOffset(),s=t.getEndKey(),l=t.getEndOffset(),u=i.skipUntil(function(f,d){return d===o}).takeUntil(function(f,d){return d===s}).concat(bBe([[s,i.get(s)]])).map(function(f,d){var p,m;o===s?(p=a,m=l):(p=d===o?a:0,m=d===s?l:f.getLength());for(var v=f.getCharacterList(),y;p<m;)y=v.get(p),v=v.set(p,r?uj.applyStyle(y,n):uj.removeStyle(y,n)),p++;return f.set("characterList",v)});return e.merge({blockMap:i.merge(u),selectionBefore:t,selectionAfter:t})}var xBe=_Be,wBe=xa;function SBe(e,t,n,r){for(var i=t,o=e.getCharacterList();i<n;)o=o.set(i,wBe.applyEntity(o.get(i),r)),i++;return e.set("characterList",o)}var CBe=SBe,EBe=CBe,kBe=un;function TBe(e,t,n){var r=e.getBlockMap(),i=t.getStartKey(),o=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),l=r.skipUntil(function(u,f){return f===i}).takeUntil(function(u,f){return f===a}).toOrderedMap().merge(kBe.OrderedMap([[a,r.get(a)]])).map(function(u,f){var d=f===i?o:0,p=f===a?s:u.getLength();return EBe(u,d,p,n)});return e.merge({blockMap:r.merge(l),selectionBefore:t,selectionAfter:t})}var ABe=TBe,$Be={getRemovalRange:function(t,n,r,i,o){var a=r.split(" ");a=a.map(function(w,b){if(o==="forward"){if(b>0)return" "+w}else if(b<a.length-1)return w+" ";return w});for(var s=i,l,u,f=null,d=null,p=0;p<a.length;p++){if(u=a[p],l=s+u.length,t<l&&s<n)f!==null||(f=s),d=l;else if(f!==null)break;s=l}var m=i+r.length,v=f===i,y=d===m;return(!v&&y||v&&!y)&&(o==="forward"?d!==m&&d++:f!==i&&f--),{start:f,end:d}}},RBe=$Be;function OBe(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(!e){var o;if(t===void 0)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;o=new Error(t.replace(/%s/g,function(){return String(r[a++])})),o.name="Invariant Violation"}throw o.framesToPop=1,o}}var mn=OBe,IBe=mn;function DBe(e,t){var n=[];return e.findEntityRanges(function(r){return r.getEntity()===t},function(r,i){n.push({start:r,end:i})}),n.length||IBe(!1),n}var PBe=DBe,LBe=RBe,MBe=PBe,FBe=mn;function NBe(e,t,n,r,i){var o=r.getStartOffset(),a=r.getEndOffset(),s=t.getEntityAt(o),l=n.getEntityAt(a-1);if(!s&&!l)return r;var u=r;if(s&&s===l)u=Qg(e,t,u,i,s,!0,!0);else if(s&&l){var f=Qg(e,t,u,i,s,!1,!0),d=Qg(e,n,u,i,l,!1,!1);u=u.merge({anchorOffset:f.getAnchorOffset(),focusOffset:d.getFocusOffset(),isBackward:!1})}else if(s){var p=Qg(e,t,u,i,s,!1,!0);u=u.merge({anchorOffset:p.getStartOffset(),isBackward:!1})}else if(l){var m=Qg(e,n,u,i,l,!1,!1);u=u.merge({focusOffset:m.getEndOffset(),isBackward:!1})}return u}function Qg(e,t,n,r,i,o,a){var s=n.getStartOffset(),l=n.getEndOffset(),u=e.__get(i),f=u.getMutability(),d=a?s:l;if(f==="MUTABLE")return n;var p=MBe(t,i).filter(function(y){return d<=y.end&&d>=y.start});p.length!=1&&FBe(!1);var m=p[0];if(f==="IMMUTABLE")return n.merge({anchorOffset:m.start,focusOffset:m.end,isBackward:!1});o||(a?l=m.end:s=m.start);var v=LBe.getRemovalRange(s,l,t.getText().slice(m.start,m.end),m.start,r);return n.merge({anchorOffset:v.start,focusOffset:v.end,isBackward:!1})}var BBe=NBe,fj={},jBe=Math.pow(2,24);function zBe(){for(var e;e===void 0||fj.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*jBe).toString(32);return fj[e]=!0,e}var Ws=zBe,UBe=wa,lq=Ws,KBe=un,uq=KBe.OrderedMap,WBe=function(t){var n={},r;return uq(t.withMutations(function(i){i.forEach(function(o,a){var s=o.getKey(),l=o.getNextSiblingKey(),u=o.getPrevSiblingKey(),f=o.getChildKeys(),d=o.getParentKey(),p=lq();if(n[s]=p,l){var m=i.get(l);m?i.setIn([l,"prevSibling"],p):i.setIn([s,"nextSibling"],null)}if(u){var v=i.get(u);v?i.setIn([u,"nextSibling"],p):i.setIn([s,"prevSibling"],null)}if(d&&i.get(d)){var y=i.get(d),w=y.getChildKeys();i.setIn([d,"children"],w.set(w.indexOf(o.getKey()),p))}else i.setIn([s,"parent"],null),r&&(i.setIn([r.getKey(),"nextSibling"],p),i.setIn([s,"prevSibling"],n[r.getKey()])),r=i.get(s);f.forEach(function(b){var x=i.get(b);x?i.setIn([b,"parent"],p):i.setIn([s,"children"],o.getChildKeys().filter(function(S){return S!==b}))})})}).toArray().map(function(i){return[n[i.getKey()],i.set("key",n[i.getKey()])]}))},VBe=function(t){return uq(t.toArray().map(function(n){var r=lq();return[r,n.set("key",r)]}))},HBe=function(t){var n=t.first()instanceof UBe;return n?WBe(t):VBe(t)},cq=HBe,qBe=xa,GBe=xy,YBe=mn;function XBe(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),i={},o=t.getStartKey(),a=t.getStartOffset(),s=n.get(o),l=dj(r,s,a);l!==s&&(i[o]=l);var u=t.getEndKey(),f=t.getEndOffset(),d=n.get(u);o===u&&(d=l);var p=dj(r,d,f);return p!==d&&(i[u]=p),Object.keys(i).length?e.merge({blockMap:n.merge(i),selectionAfter:t}):e.set("selectionAfter",t)}function ZBe(e,t,n){var r;return GBe(e,function(i,o){return i.getEntity()===o.getEntity()},function(i){return i.getEntity()===t},function(i,o){i<=n&&o>=n&&(r={start:i,end:o})}),typeof r!="object"&&YBe(!1),r}function dj(e,t,n){var r=t.getCharacterList(),i=n>0?r.get(n-1):void 0,o=n<r.count()?r.get(n):void 0,a=i?i.getEntity():void 0,s=o?o.getEntity():void 0;if(s&&s===a){var l=e.__get(s);if(l.getMutability()!=="MUTABLE"){for(var u=ZBe(r,s,n),f=u.start,d=u.end,p;f<d;)p=r.get(f),r=r.set(f,qBe.applyEntity(p,null)),f++;return t.set("characterList",r)}}return t}var fq=XBe,JBe=cq,QBe=fq,e3e=function(t,n){var r=n.getStartKey(),i=n.getStartOffset(),o=n.getEndKey(),a=n.getEndOffset(),s=QBe(t,n),l=s.getBlockMap(),u=l.keySeq(),f=u.indexOf(r),d=u.indexOf(o)+1;return JBe(l.slice(f,d).map(function(p,m){var v=p.getText(),y=p.getCharacterList();return r===o?p.merge({text:v.slice(i,a),characterList:y.slice(i,a)}):m===r?p.merge({text:v.slice(i),characterList:y.slice(i)}):m===o?p.merge({text:v.slice(0,a),characterList:y.slice(0,a)}):p}))},hS=e3e;function t3e(e,t,n){var r=e;if(n===r.count())t.forEach(function(a){r=r.push(a)});else if(n===0)t.reverse().forEach(function(a){r=r.unshift(a)});else{var i=r.slice(0,n),o=r.slice(n);r=i.concat(t,o).toList()}return r}var dq=t3e,n3e=_y,pq=wa,r3e=un,i3e=dq,pj=mn,o3e=cq,a3e=r3e.List,s3e=function(t,n,r,i,o,a){var s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:"REPLACE_WITH_NEW_DATA",l=r.get(o),u=l.getText(),f=l.getCharacterList(),d=o,p=a+i.getText().length,m=null;switch(s){case"MERGE_OLD_DATA_TO_NEW_DATA":m=i.getData().merge(l.getData());break;case"REPLACE_WITH_NEW_DATA":m=i.getData();break}var v=l.getType();u&&v==="unstyled"&&(v=i.getType());var y=l.merge({text:u.slice(0,a)+i.getText()+u.slice(a),characterList:i3e(f,i.getCharacterList(),a),type:v,data:m});return t.merge({blockMap:r.set(o,y),selectionBefore:n,selectionAfter:n.merge({anchorKey:d,anchorOffset:p,focusKey:d,focusOffset:p,isBackward:!1})})},l3e=function(t,n,r){var i=t.getText(),o=t.getCharacterList(),a=i.slice(0,n),s=o.slice(0,n),l=r.first();return t.merge({text:a+l.getText(),characterList:s.concat(l.getCharacterList()),type:a?t.getType():l.getType(),data:l.getData()})},u3e=function(t,n,r){var i=t.getText(),o=t.getCharacterList(),a=i.length,s=i.slice(n,a),l=o.slice(n,a),u=r.last();return u.merge({text:u.getText()+s,characterList:u.getCharacterList().concat(l),data:u.getData()})},c3e=function(t,n){var r=t.getKey(),i=t,o=[];for(n.get(r)&&o.push(r);i&&i.getNextSiblingKey();){var a=i.getNextSiblingKey();if(!a)break;o.push(a),i=n.get(a)}return o},f3e=function(t,n,r,i){return t.withMutations(function(o){var a=r.getKey(),s=i.getKey(),l=r.getNextSiblingKey(),u=r.getParentKey(),f=c3e(i,t),d=f[f.length-1];if(o.get(s)?(o.setIn([a,"nextSibling"],s),o.setIn([s,"prevSibling"],a)):(o.setIn([a,"nextSibling"],i.getNextSiblingKey()),o.setIn([i.getNextSiblingKey(),"prevSibling"],a)),o.setIn([d,"nextSibling"],l),l&&o.setIn([l,"prevSibling"],d),f.forEach(function(b){return o.setIn([b,"parent"],u)}),u){var p=t.get(u),m=p.getChildKeys(),v=m.indexOf(a),y=v+1,w=m.toArray();w.splice.apply(w,[y,0].concat(f)),o.setIn([u,"children"],a3e(w))}})},d3e=function(t,n,r,i,o,a){var s=r.first()instanceof pq,l=[],u=i.size,f=r.get(o),d=i.first(),p=i.last(),m=p.getLength(),v=p.getKey(),y=s&&(!f.getChildKeys().isEmpty()||!d.getChildKeys().isEmpty());r.forEach(function(b,x){if(x!==o){l.push(b);return}y?l.push(b):l.push(l3e(b,a,i)),i.slice(y?0:1,u-1).forEach(function(S){return l.push(S)}),l.push(u3e(b,a,i))});var w=n3e.createFromArray(l);return s&&(w=f3e(w,r,f,d)),t.merge({blockMap:w,selectionBefore:n,selectionAfter:n.merge({anchorKey:v,anchorOffset:m,focusKey:v,focusOffset:m,isBackward:!1})})},p3e=function(t,n,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA";n.isCollapsed()||pj(!1);var o=t.getBlockMap(),a=o3e(r),s=n.getStartKey(),l=n.getStartOffset(),u=o.get(s);return u instanceof pq&&(u.getChildKeys().isEmpty()||pj(!1)),a.size===1?s3e(t,n,o,a.first(),s,l,i):d3e(t,n,o,a,s,l)},h3e=p3e,g3e=un,m3e=dq,v3e=mn,y3e=g3e.Repeat;function b3e(e,t,n,r){t.isCollapsed()||v3e(!1);var i=null;if(n!=null&&(i=n.length),i==null||i===0)return e;var o=e.getBlockMap(),a=t.getStartKey(),s=t.getStartOffset(),l=o.get(a),u=l.getText(),f=l.merge({text:u.slice(0,s)+n+u.slice(s,l.getLength()),characterList:m3e(l.getCharacterList(),y3e(r,i).toList(),s)}),d=s+i;return e.merge({blockMap:o.set(a,f),selectionAfter:t.merge({anchorOffset:d,focusOffset:d})})}var _3e=b3e,x3e=un,w3e=x3e.Map;function S3e(e,t,n){var r=t.getStartKey(),i=t.getEndKey(),o=e.getBlockMap(),a=o.toSeq().skipUntil(function(s,l){return l===r}).takeUntil(function(s,l){return l===i}).concat(w3e([[i,o.get(i)]])).map(n);return e.merge({blockMap:o.merge(a),selectionBefore:t,selectionAfter:t})}var hq=S3e,C3e=wa,E3e=function(t,n){var r=t instanceof C3e;if(!r)return null;var i=t.getNextSiblingKey();if(i)return i;var o=t.getParentKey();if(!o)return null;for(var a=n.get(o);a&&!a.getNextSiblingKey();){var s=a.getParentKey();a=s?n.get(s):null}return a?a.getNextSiblingKey():null},gq=E3e,k3e=wa,_$=gq,mq=un;mq.List;var hj=mq.Map,Ui=function(t,n,r){if(t){var i=n.get(t);i&&n.set(t,r(i))}},G_=function(t,n){var r=[];if(!t)return r;for(var i=n.get(t);i&&i.getParentKey();){var o=i.getParentKey();o&&r.push(o),i=o?n.get(o):null}return r},T3e=function(t,n){var r=[];if(!t)return r;for(var i=_$(t,n);i&&n.get(i);){var o=n.get(i);r.push(i),i=o.getParentKey()?_$(o,n):null}return r},Ed=function(t,n,r){if(!t)return null;for(var i=r.get(t.getKey()).getNextSiblingKey();i&&!n.get(i);)i=r.get(i).getNextSiblingKey()||null;return i},kd=function(t,n,r){if(!t)return null;for(var i=r.get(t.getKey()).getPrevSiblingKey();i&&!n.get(i);)i=r.get(i).getPrevSiblingKey()||null;return i},A3e=function(t,n,r,i){return t.withMutations(function(o){if(Ui(n.getKey(),o,function(f){return f.merge({nextSibling:Ed(f,o,i),prevSibling:kd(f,o,i)})}),Ui(r.getKey(),o,function(f){return f.merge({nextSibling:Ed(f,o,i),prevSibling:kd(f,o,i)})}),G_(n.getKey(),i).forEach(function(f){return Ui(f,o,function(d){return d.merge({children:d.getChildKeys().filter(function(p){return o.get(p)}),nextSibling:Ed(d,o,i),prevSibling:kd(d,o,i)})})}),Ui(n.getNextSiblingKey(),o,function(f){return f.merge({prevSibling:n.getPrevSiblingKey()})}),Ui(n.getPrevSiblingKey(),o,function(f){return f.merge({nextSibling:Ed(f,o,i)})}),Ui(r.getNextSiblingKey(),o,function(f){return f.merge({prevSibling:kd(f,o,i)})}),Ui(r.getPrevSiblingKey(),o,function(f){return f.merge({nextSibling:r.getNextSiblingKey()})}),G_(r.getKey(),i).forEach(function(f){Ui(f,o,function(d){return d.merge({children:d.getChildKeys().filter(function(p){return o.get(p)}),nextSibling:Ed(d,o,i),prevSibling:kd(d,o,i)})})}),T3e(r,i).forEach(function(f){return Ui(f,o,function(d){return d.merge({nextSibling:Ed(d,o,i),prevSibling:kd(d,o,i)})})}),t.get(n.getKey())==null&&t.get(r.getKey())!=null&&r.getParentKey()===n.getKey()&&r.getPrevSiblingKey()==null){var a=n.getPrevSiblingKey();Ui(r.getKey(),o,function(f){return f.merge({prevSibling:a})}),Ui(a,o,function(f){return f.merge({nextSibling:r.getKey()})});var s=a?t.get(a):null,l=s?s.getParentKey():null;if(n.getChildKeys().forEach(function(f){Ui(f,o,function(d){return d.merge({parent:l})})}),l!=null){var u=t.get(l);Ui(l,o,function(f){return f.merge({children:u.getChildKeys().concat(n.getChildKeys())})})}Ui(n.getChildKeys().find(function(f){var d=t.get(f);return d.getNextSiblingKey()===null}),o,function(f){return f.merge({nextSibling:n.getNextSiblingKey()})})}})},$3e=function(t,n){if(n.isCollapsed())return t;var r=t.getBlockMap(),i=n.getStartKey(),o=n.getStartOffset(),a=n.getEndKey(),s=n.getEndOffset(),l=r.get(i),u=r.get(a),f=l instanceof k3e,d=[];if(f){var p=u.getChildKeys(),m=G_(a,r);u.getNextSiblingKey()&&(d=d.concat(m)),p.isEmpty()||(d=d.concat(m.concat([a]))),d=d.concat(G_(_$(u,r),r))}var v;l===u?v=R3e(l.getCharacterList(),o,s):v=l.getCharacterList().slice(0,o).concat(u.getCharacterList().slice(s));var y=l.merge({text:l.getText().slice(0,o)+u.getText().slice(s),characterList:v}),w=f&&o===0&&s===0&&u.getParentKey()===i&&u.getPrevSiblingKey()==null,b=w?hj([[i,null]]):r.toSeq().skipUntil(function(S,k){return k===i}).takeUntil(function(S,k){return k===a}).filter(function(S,k){return d.indexOf(k)===-1}).concat(hj([[a,null]])).map(function(S,k){return k===i?y:null}),x=r.merge(b).filter(function(S){return!!S});return f&&l!==u&&(x=A3e(x,l,u,r)),t.merge({blockMap:x,selectionBefore:n,selectionAfter:n.merge({anchorKey:i,anchorOffset:o,focusKey:i,focusOffset:o,isBackward:!1})})},R3e=function(t,n,r){if(n===0)for(;n<r;)t=t.shift(),n++;else if(r===t.count())for(;r>n;)t=t.pop(),r--;else{var i=t.slice(0,n),o=t.slice(r);t=i.concat(o).toList()}return t},O3e=$3e,I3e=wa,D3e=Ws,vq=un,gj=mn,P3e=hq,L3e=vq.List,M3e=vq.Map,F1=function(t,n,r){if(t){var i=n.get(t);i&&n.set(t,r(i))}},F3e=function(t,n,r){return t.withMutations(function(i){var o=n.getKey(),a=r.getKey();F1(n.getParentKey(),i,function(s){var l=s.getChildKeys(),u=l.indexOf(o)+1,f=l.toArray();return f.splice(u,0,a),s.merge({children:L3e(f)})}),F1(n.getNextSiblingKey(),i,function(s){return s.merge({prevSibling:a})}),F1(o,i,function(s){return s.merge({nextSibling:a})}),F1(a,i,function(s){return s.merge({prevSibling:o})})})},N3e=function(t,n){n.isCollapsed()||gj(!1);var r=n.getAnchorKey(),i=t.getBlockMap(),o=i.get(r),a=o.getText();if(!a){var s=o.getType();if(s==="unordered-list-item"||s==="ordered-list-item")return P3e(t,n,function(b){return b.merge({type:"unstyled",depth:0})})}var l=n.getAnchorOffset(),u=o.getCharacterList(),f=D3e(),d=o instanceof I3e,p=o.merge({text:a.slice(0,l),characterList:u.slice(0,l)}),m=p.merge({key:f,text:a.slice(l),characterList:u.slice(l),data:M3e()}),v=i.toSeq().takeUntil(function(b){return b===o}),y=i.toSeq().skipUntil(function(b){return b===o}).rest(),w=v.concat([[r,p],[f,m]],y).toOrderedMap();return d&&(o.getChildKeys().isEmpty()||gj(!1),w=F3e(w,p,m)),t.merge({blockMap:w,selectionBefore:n,selectionAfter:n.merge({anchorKey:f,anchorOffset:0,focusKey:f,focusOffset:0,isBackward:!1})})},B3e=N3e,j3e=xa,mj=xBe,z3e=ABe,U3e=BBe,K3e=hS,W3e=un,V3e=h3e,H3e=_3e,q3e=mn,Rk=hq,em=fq,tm=O3e,G3e=B3e,Y3e=W3e.OrderedSet,Lb={replaceText:function(t,n,r,i,o){var a=em(t,n),s=tm(a,n),l=j3e.create({style:i||Y3e(),entity:o||null});return H3e(s,s.getSelectionAfter(),r,l)},insertText:function(t,n,r,i,o){return n.isCollapsed()||q3e(!1),Lb.replaceText(t,n,r,i,o)},moveText:function(t,n,r){var i=K3e(t,n),o=Lb.removeRange(t,n,"backward");return Lb.replaceWithFragment(o,r,i)},replaceWithFragment:function(t,n,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA",o=em(t,n),a=tm(o,n);return V3e(a,a.getSelectionAfter(),r,i)},removeRange:function(t,n,r){var i,o,a,s;n.getIsBackward()&&(n=n.merge({anchorKey:n.getFocusKey(),anchorOffset:n.getFocusOffset(),focusKey:n.getAnchorKey(),focusOffset:n.getAnchorOffset(),isBackward:!1})),i=n.getAnchorKey(),o=n.getFocusKey(),a=t.getBlockForKey(i),s=t.getBlockForKey(o);var l=n.getStartOffset(),u=n.getEndOffset(),f=a.getEntityAt(l),d=s.getEntityAt(u-1);if(i===o&&f&&f===d){var p=U3e(t.getEntityMap(),a,s,n,r);return tm(t,p)}var m=em(t,n);return tm(m,n)},splitBlock:function(t,n){var r=em(t,n),i=tm(r,n);return G3e(i,i.getSelectionAfter())},applyInlineStyle:function(t,n,r){return mj.add(t,n,r)},removeInlineStyle:function(t,n,r){return mj.remove(t,n,r)},setBlockType:function(t,n,r){return Rk(t,n,function(i){return i.merge({type:r,depth:0})})},setBlockData:function(t,n,r){return Rk(t,n,function(i){return i.merge({data:r})})},mergeBlockData:function(t,n,r){return Rk(t,n,function(i){return i.merge({data:i.getData().merge(r)})})},applyEntity:function(t,n,r){var i=em(t,n);return z3e(i,n,r)}},ao=Lb;function X3e(e){return Object.keys(e).map(function(t){return e[t]})}var yq=X3e;function Z3e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){J3e(e,i,n[i])})}return e}function J3e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q3e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var bq=xy,eje=yq,lI=un,Fd=lI.List,tje=lI.Repeat,_q=lI.Record,xq=function(){return!0},nje={start:null,end:null},x$=_q(nje),rje={start:null,end:null,decoratorKey:null,leaves:null},Ok=_q(rje),ije={generate:function(t,n,r){var i=n.getLength();if(!i)return Fd.of(new Ok({start:0,end:0,decoratorKey:null,leaves:Fd.of(new x$({start:0,end:0}))}));var o=[],a=r?r.getDecorations(n,t):Fd(tje(null,i)),s=n.getCharacterList();return bq(a,wq,xq,function(l,u){o.push(new Ok({start:l,end:u,decoratorKey:a.get(l),leaves:oje(s.slice(l,u).toList(),l)}))}),Fd(o)},fromJS:function(t){var n=t.leaves,r=Q3e(t,["leaves"]);return new Ok(Z3e({},r,{leaves:n!=null?Fd(Array.isArray(n)?n:eje(n)).map(function(i){return x$(i)}):null}))}};function oje(e,t){var n=[],r=e.map(function(i){return i.getStyle()}).toList();return bq(r,wq,xq,function(i,o){n.push(new x$({start:i+t,end:o+t}))}),Fd(n)}function wq(e,t){return e===t}var aje=ije;function sje(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var lje=un,uje=lje.Record,cje=uje({type:"TOKEN",mutability:"IMMUTABLE",data:Object}),fje=function(e){sje(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.getType=function(){return this.get("type")},n.getMutability=function(){return this.get("mutability")},n.getData=function(){return this.get("data")},t}(cje),Sq=fje;function dje(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=Math.random()*16|0,n=e=="x"?t:t&3|8;return n.toString(16)})}var pje=dje;function hje(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){gje(e,i,n[i])})}return e}function gje(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mje=Sq,vje=un,yje=mn,w$=pje,bje=vje.Map,cl=bje(),nm=w$();function Td(e,t){console.warn("WARNING: "+e+` will be deprecated soon!
|
|
429
|
-
Please use "`+t+'" instead.')}var gs={getLastCreatedEntityKey:function(){return Td("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),gs.__getLastCreatedEntityKey()},create:function(t,n,r){return Td("DraftEntity.create","contentState.createEntity"),gs.__create(t,n,r)},add:function(t){return Td("DraftEntity.add","contentState.addEntity"),gs.__add(t)},get:function(t){return Td("DraftEntity.get","contentState.getEntity"),gs.__get(t)},__getAll:function(){return cl},__loadWithEntities:function(t){cl=t,nm=w$()},mergeData:function(t,n){return Td("DraftEntity.mergeData","contentState.mergeEntityData"),gs.__mergeData(t,n)},replaceData:function(t,n){return Td("DraftEntity.replaceData","contentState.replaceEntityData"),gs.__replaceData(t,n)},__getLastCreatedEntityKey:function(){return nm},__create:function(t,n,r){return gs.__add(new mje({type:t,mutability:n,data:r||{}}))},__add:function(t){return nm=w$(),cl=cl.set(nm,t),nm},__get:function(t){var n=cl.get(t);return n||yje(!1),n},__mergeData:function(t,n){var r=gs.__get(t),i=hje({},r.getData(),n),o=r.set("data",i);return cl=cl.set(t,o),o},__replaceData:function(t,n){var r=gs.__get(t),i=r.set("data",n);return cl=cl.set(t,i),i}},gS=gs;function _je(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var xje=un,wje=xje.Record,Sje={anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1},Cje=wje(Sje),Eje=function(e){_je(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},n.getAnchorKey=function(){return this.get("anchorKey")},n.getAnchorOffset=function(){return this.get("anchorOffset")},n.getFocusKey=function(){return this.get("focusKey")},n.getFocusOffset=function(){return this.get("focusOffset")},n.getIsBackward=function(){return this.get("isBackward")},n.getHasFocus=function(){return this.get("hasFocus")},n.hasEdgeWithin=function(i,o,a){var s=this.getAnchorKey(),l=this.getFocusKey();if(s===l&&s===i){var u=this.getStartOffset(),f=this.getEndOffset();return o<=u&&u<=a||o<=f&&f<=a}if(i!==s&&i!==l)return!1;var d=i===s?this.getAnchorOffset():this.getFocusOffset();return o<=d&&a>=d},n.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},n.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},n.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},n.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},n.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},t.createEmpty=function(i){return new t({anchorKey:i,anchorOffset:0,focusKey:i,focusOffset:0,isBackward:!1,hasFocus:!1})},t}(Cje),mS=Eje,tc=function(e){return typeof window<"u"&&window.__DRAFT_GKX?!!window.__DRAFT_GKX[e]:!1},kje=new RegExp("\r","g");function Tje(e){return e.replace(kje,"")}var Cq=Tje;function vj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){Aje(e,i,n[i])})}return e}function Aje(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $je(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Rje=_y,yj=xa,Oje=Af,Ije=wa,ps=gS,N1=mS,Dje=Ws,Pje=yq,Lje=tc,Cy=un,Mje=Cq,bj=Cy.List,Fje=Cy.Record,Nje=Cy.Repeat,Bje=Cy.Map,jje=Cy.OrderedMap,zje={entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null},Uje=Fje(zje),_j=Lje("draft_tree_data_support")?Ije:Oje,Kje=function(e){$je(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.getEntityMap=function(){return ps},n.getBlockMap=function(){return this.get("blockMap")},n.getSelectionBefore=function(){return this.get("selectionBefore")},n.getSelectionAfter=function(){return this.get("selectionAfter")},n.getBlockForKey=function(i){var o=this.getBlockMap().get(i);return o},n.getKeyBefore=function(i){return this.getBlockMap().reverse().keySeq().skipUntil(function(o){return o===i}).skip(1).first()},n.getKeyAfter=function(i){return this.getBlockMap().keySeq().skipUntil(function(o){return o===i}).skip(1).first()},n.getBlockAfter=function(i){return this.getBlockMap().skipUntil(function(o,a){return a===i}).skip(1).first()},n.getBlockBefore=function(i){return this.getBlockMap().reverse().skipUntil(function(o,a){return a===i}).skip(1).first()},n.getBlocksAsArray=function(){return this.getBlockMap().toArray()},n.getFirstBlock=function(){return this.getBlockMap().first()},n.getLastBlock=function(){return this.getBlockMap().last()},n.getPlainText=function(i){return this.getBlockMap().map(function(o){return o?o.getText():""}).join(i||`
|
|
430
|
-
`)},n.getLastCreatedEntityKey=function(){return ps.__getLastCreatedEntityKey()},n.hasText=function(){var i=this.getBlockMap();return i.size>1||escape(i.first().getText()).replace(/%u200B/g,"").length>0},n.createEntity=function(i,o,a){return ps.__create(i,o,a),this},n.mergeEntityData=function(i,o){return ps.__mergeData(i,o),this},n.replaceEntityData=function(i,o){return ps.__replaceData(i,o),this},n.addEntity=function(i){return ps.__add(i),this},n.getEntity=function(i){return ps.__get(i)},n.getAllEntities=function(){return ps.__getAll()},n.loadWithEntities=function(i){return ps.__loadWithEntities(i)},t.createFromBlockArray=function(i,o){var a=Array.isArray(i)?i:i.contentBlocks,s=Rje.createFromArray(a),l=s.isEmpty()?new N1:N1.createEmpty(s.first().getKey());return new t({blockMap:s,entityMap:o||ps,selectionBefore:l,selectionAfter:l})},t.createFromText=function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:/\r\n?|\n/g,a=i.split(o),s=a.map(function(l){return l=Mje(l),new _j({key:Dje(),text:l,type:"unstyled",characterList:bj(Nje(yj.EMPTY,l.length))})});return t.createFromBlockArray(s)},t.fromJS=function(i){return new t(vj({},i,{blockMap:jje(i.blockMap).map(t.createContentBlockFromJS),selectionBefore:new N1(i.selectionBefore),selectionAfter:new N1(i.selectionAfter)}))},t.createContentBlockFromJS=function(i){var o=i.characterList;return new _j(vj({},i,{data:Bje(i.data),characterList:o!=null?bj((Array.isArray(o)?o:Pje(o)).map(function(a){return yj.fromJS(a)})):void 0}))},t}(Uje),uI=Kje,Y_=mn,Wje="NEUTRAL",vS="LTR",Eq="RTL",Mb=null;function X_(e){return e===vS||e===Eq}function kq(e){return X_(e)||Y_(!1),e===vS?"ltr":"rtl"}function Vje(e,t){return X_(e)||Y_(!1),X_(t)||Y_(!1),e===t?null:kq(e)}function Tq(e){Mb=e}function Hje(){Tq(vS)}function qje(){return Mb||this.initGlobalDir(),Mb||Y_(!1),Mb}var Gje={NEUTRAL:Wje,LTR:vS,RTL:Eq,isStrong:X_,getHTMLDir:kq,getHTMLDirIfDifferent:Vje,setGlobalDir:Tq,initGlobalDir:Hje,getGlobalDir:qje},yS=Gje,Sl=yS,Yje=mn,Xm={L:"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",R:"־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",AL:"؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-"},Xje=new RegExp("["+Xm.L+Xm.R+Xm.AL+"]"),Zje=new RegExp("["+Xm.R+Xm.AL+"]");function Aq(e){var t=Xje.exec(e);return t==null?null:t[0]}function $q(e){var t=Aq(e);return t==null?Sl.NEUTRAL:Zje.exec(t)?Sl.RTL:Sl.LTR}function Rq(e,t){if(t=t||Sl.NEUTRAL,!e.length)return t;var n=$q(e);return n===Sl.NEUTRAL?t:n}function cI(e,t){return t||(t=Sl.getGlobalDir()),Sl.isStrong(t)||Yje(!1),Rq(e,t)}function Jje(e,t){return cI(e,t)===Sl.LTR}function Qje(e,t){return cI(e,t)===Sl.RTL}var eze={firstStrongChar:Aq,firstStrongCharDir:$q,resolveBlockDir:Rq,getDirection:cI,isDirectionLTR:Jje,isDirectionRTL:Qje},fI=eze;function xj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tze=fI,wj=yS,nze=mn,rze=function(){function e(n){xj(this,"_defaultDir",void 0),xj(this,"_lastDir",void 0),n?wj.isStrong(n)||nze(!1):n=wj.getGlobalDir(),this._defaultDir=n,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(r){return this._lastDir=tze.getDirection(r,this._lastDir),this._lastDir},e}(),ize=rze,oze=function(t){if(t!=null)return t;throw new Error("Got unexpected null or undefined")},so=oze,aze=ize,Oq=un,sze=so,lze=Oq.OrderedMap,B1,uze={getDirectionMap:function(t,n){B1?B1.reset():B1=new aze;var r=t.getBlockMap(),i=r.valueSeq().map(function(a){return sze(B1).getDirection(a.getText())}),o=lze(r.keySeq().zip(i));return n!=null&&Oq.is(n,o)?n:o}},cze=uze;function Sj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){Iq(e,i,n[i])})}return e}function Iq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bS=aje,rm=uI,j1=cze,Ik=mS,Ey=un,Dq=Ey.OrderedSet,fze=Ey.Record,Bc=Ey.Stack,Cj=Ey.OrderedMap,dze=Ey.List,pze={allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:Bc(),selection:null,treeMap:null,undoStack:Bc()},Ej=fze(pze),Pq=function(){t.createEmpty=function(r){return this.createWithText("",r)},t.createWithText=function(r,i){return t.createWithContent(rm.createFromText(r),i)},t.createWithContent=function(r,i){if(r.getBlockMap().count()===0)return t.createEmpty(i);var o=r.getBlockMap().first().getKey();return t.create({currentContent:r,undoStack:Bc(),redoStack:Bc(),decorator:i||null,selection:Ik.createEmpty(o)})},t.create=function(r){var i=r.currentContent,o=r.decorator,a=Sj({},r,{treeMap:Tj(i,o),directionMap:j1.getDirectionMap(i)});return new t(new Ej(a))},t.fromJS=function(r){return new t(new Ej(Sj({},r,{directionMap:r.directionMap!=null?Cj(r.directionMap):r.directionMap,inlineStyleOverride:r.inlineStyleOverride!=null?Dq(r.inlineStyleOverride):r.inlineStyleOverride,nativelyRenderedContent:r.nativelyRenderedContent!=null?rm.fromJS(r.nativelyRenderedContent):r.nativelyRenderedContent,redoStack:r.redoStack!=null?Bc(r.redoStack.map(function(i){return rm.fromJS(i)})):r.redoStack,selection:r.selection!=null?new Ik(r.selection):r.selection,treeMap:r.treeMap!=null?Cj(r.treeMap).map(function(i){return dze(i).map(function(o){return bS.fromJS(o)})}):r.treeMap,undoStack:r.undoStack!=null?Bc(r.undoStack.map(function(i){return rm.fromJS(i)})):r.undoStack,currentContent:rm.fromJS(r.currentContent)})))},t.set=function(r,i){var o=r.getImmutable().withMutations(function(a){var s=a.get("decorator"),l=s;i.decorator===null?l=null:i.decorator&&(l=i.decorator);var u=i.currentContent||r.getCurrentContent();if(l!==s){var f=a.get("treeMap"),d;l&&s?d=gze(u,u.getBlockMap(),f,l,s):d=Tj(u,l),a.merge({decorator:l,treeMap:d,nativelyRenderedContent:null});return}var p=r.getCurrentContent();u!==p&&a.set("treeMap",hze(r,u.getBlockMap(),u.getEntityMap(),l)),a.merge(i)});return new t(o)};var e=t.prototype;e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(r,i){return t.set(r,{inlineStyleOverride:i})},e.getCurrentInlineStyle=function(){var r=this.getInlineStyleOverride();if(r!=null)return r;var i=this.getCurrentContent(),o=this.getSelection();return o.isCollapsed()?vze(i,o):yze(i,o)},e.getBlockTree=function(r){return this.getImmutable().getIn(["treeMap",r])},e.isSelectionAtStartOfContent=function(){var r=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(r,0,0)},e.isSelectionAtEndOfContent=function(){var r=this.getCurrentContent(),i=r.getBlockMap(),o=i.last(),a=o.getLength();return this.getSelection().hasEdgeWithin(o.getKey(),a,a)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(r,i){return kj(r,i,!1)},t.forceSelection=function(r,i){return i.getHasFocus()||(i=i.set("hasFocus",!0)),kj(r,i,!0)},t.moveSelectionToEnd=function(r){var i=r.getCurrentContent(),o=i.getLastBlock(),a=o.getKey(),s=o.getLength();return t.acceptSelection(r,new Ik({anchorKey:a,anchorOffset:s,focusKey:a,focusOffset:s,isBackward:!1}))},t.moveFocusToEnd=function(r){var i=t.moveSelectionToEnd(r);return t.forceSelection(i,i.getSelection())},t.push=function(r,i,o){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;if(r.getCurrentContent()===i)return r;var s=j1.getDirectionMap(i,r.getDirectionMap());if(!r.getAllowUndo())return t.set(r,{currentContent:i,directionMap:s,lastChangeType:o,selection:i.getSelectionAfter(),forceSelection:a,inlineStyleOverride:null});var l=r.getSelection(),u=r.getCurrentContent(),f=r.getUndoStack(),d=i;l!==u.getSelectionAfter()||mze(r,o)?(f=f.push(u),d=d.set("selectionBefore",l)):(o==="insert-characters"||o==="backspace-character"||o==="delete-character")&&(d=d.set("selectionBefore",u.getSelectionBefore()));var p=r.getInlineStyleOverride(),m=["adjust-depth","change-block-type","split-block"];m.indexOf(o)===-1&&(p=null);var v={currentContent:d,directionMap:s,undoStack:f,redoStack:Bc(),lastChangeType:o,selection:i.getSelectionAfter(),forceSelection:a,inlineStyleOverride:p};return t.set(r,v)},t.undo=function(r){if(!r.getAllowUndo())return r;var i=r.getUndoStack(),o=i.peek();if(!o)return r;var a=r.getCurrentContent(),s=j1.getDirectionMap(o,r.getDirectionMap());return t.set(r,{currentContent:o,directionMap:s,undoStack:i.shift(),redoStack:r.getRedoStack().push(a),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:a.getSelectionBefore()})},t.redo=function(r){if(!r.getAllowUndo())return r;var i=r.getRedoStack(),o=i.peek();if(!o)return r;var a=r.getCurrentContent(),s=j1.getDirectionMap(o,r.getDirectionMap());return t.set(r,{currentContent:o,directionMap:s,undoStack:r.getUndoStack().push(a),redoStack:i.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:o.getSelectionAfter()})};function t(n){Iq(this,"_immutable",void 0),this._immutable=n}return e.getImmutable=function(){return this._immutable},t}();function kj(e,t,n){return Pq.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function Tj(e,t){return e.getBlockMap().map(function(n){return bS.generate(e,n,t)}).toOrderedMap()}function hze(e,t,n,r){var i=e.getCurrentContent().set("entityMap",n),o=i.getBlockMap(),a=e.getImmutable().get("treeMap");return a.merge(t.toSeq().filter(function(s,l){return s!==o.get(l)}).map(function(s){return bS.generate(i,s,r)}))}function gze(e,t,n,r,i){return n.merge(t.toSeq().filter(function(o){return r.getDecorations(o,e)!==i.getDecorations(o,e)}).map(function(o){return bS.generate(e,o,r)}))}function mze(e,t){var n=e.getLastChangeType();return t!==n||t!=="insert-characters"&&t!=="backspace-character"&&t!=="delete-character"}function vze(e,t){var n=t.getStartKey(),r=t.getStartOffset(),i=e.getBlockForKey(n);return r>0?i.getInlineStyleAt(r-1):i.getLength()?i.getInlineStyleAt(0):Lq(e,n)}function yze(e,t){var n=t.getStartKey(),r=t.getStartOffset(),i=e.getBlockForKey(n);return r<i.getLength()?i.getInlineStyleAt(r):r>0?i.getInlineStyleAt(r-1):Lq(e,n)}function Lq(e,t){var n=e.getBlockMap().reverse().skipUntil(function(r,i){return i===t}).skip(1).skipUntil(function(r,i){return r.getLength()}).first();return n?n.getInlineStyleAt(n.getLength()-1):Dq()}var jn=Pq,bze=wa,_ze=gq,Mq=un,z1=mn,xze=Mq.OrderedMap,wze=Mq.List,Sc=function(t,n,r){if(t){var i=n.get(t);i&&n.set(t,r(i))}},Sze=function(t,n,r,i,o){if(!o)return t;var a=i==="after",s=n.getKey(),l=r.getKey(),u=n.getParentKey(),f=n.getNextSiblingKey(),d=n.getPrevSiblingKey(),p=r.getParentKey(),m=a?r.getNextSiblingKey():l,v=a?l:r.getPrevSiblingKey();return t.withMutations(function(y){Sc(u,y,function(w){var b=w.getChildKeys();return w.merge({children:b.delete(b.indexOf(s))})}),Sc(d,y,function(w){return w.merge({nextSibling:f})}),Sc(f,y,function(w){return w.merge({prevSibling:d})}),Sc(m,y,function(w){return w.merge({prevSibling:s})}),Sc(v,y,function(w){return w.merge({nextSibling:s})}),Sc(p,y,function(w){var b=w.getChildKeys(),x=b.indexOf(l),S=a?x+1:x!==0?x-1:0,k=b.toArray();return k.splice(S,0,s),w.merge({children:wze(k)})}),Sc(s,y,function(w){return w.merge({nextSibling:m,prevSibling:v,parent:p})})})},Cze=function(t,n,r,i){i==="replace"&&z1(!1);var o=r.getKey(),a=n.getKey();a===o&&z1(!1);var s=t.getBlockMap(),l=n instanceof bze,u=[n],f=s.delete(a);l&&(u=[],f=s.withMutations(function(b){var x=n.getNextSiblingKey(),S=_ze(n,b);b.toSeq().skipUntil(function(k){return k.getKey()===a}).takeWhile(function(k){var A=k.getKey(),$=A===a,I=x&&A!==x,z=!x&&k.getParentKey()&&(!S||A!==S);return!!($||I||z)}).forEach(function(k){u.push(k),b.delete(k.getKey())})}));var d=f.toSeq().takeUntil(function(b){return b===r}),p=f.toSeq().skipUntil(function(b){return b===r}).skip(1),m=u.map(function(b){return[b.getKey(),b]}),v=xze();if(i==="before"){var y=t.getBlockBefore(o);!y||y.getKey()!==n.getKey()||z1(!1),v=d.concat([].concat(m,[[o,r]]),p).toOrderedMap()}else if(i==="after"){var w=t.getBlockAfter(o);!w||w.getKey()!==a||z1(!1),v=d.concat([[o,r]].concat(m),p).toOrderedMap()}return t.merge({blockMap:Sze(v,n,r,i,l),selectionBefore:t.getSelectionAfter(),selectionAfter:t.getSelectionAfter().merge({anchorKey:a,focusKey:a})})},Eze=Cze;function Aj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){kze(e,i,n[i])})}return e}function kze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tze=_y,Aze=xa,$ze=Af,Rze=wa,Ad=ao,$j=jn,Rj=Ws,Oze=tc,Fq=un,U1=Eze,Nq=Oze("draft_tree_data_support"),Oj=Nq?Rze:$ze,Ize=Fq.List,Dze=Fq.Repeat,Pze={insertAtomicBlock:function(t,n,r){var i=t.getCurrentContent(),o=t.getSelection(),a=Ad.removeRange(i,o,"backward"),s=a.getSelectionAfter(),l=Ad.splitBlock(a,s),u=l.getSelectionAfter(),f=Ad.setBlockType(l,u,"atomic"),d=Aze.create({entity:n}),p={key:Rj(),type:"atomic",text:r,characterList:Ize(Dze(d,r.length))},m={key:Rj(),type:"unstyled"};Nq&&(p=Aj({},p,{nextSibling:m.key}),m=Aj({},m,{prevSibling:p.key}));var v=[new Oj(p),new Oj(m)],y=Tze.createFromArray(v),w=Ad.replaceWithFragment(f,u,y),b=w.merge({selectionBefore:o,selectionAfter:w.getSelectionAfter().set("hasFocus",!0)});return $j.push(t,b,"insert-fragment")},moveAtomicBlock:function(t,n,r,i){var o=t.getCurrentContent(),a=t.getSelection(),s;if(i==="before"||i==="after"){var l=o.getBlockForKey(i==="before"?r.getStartKey():r.getEndKey());s=U1(o,n,l,i)}else{var u=Ad.removeRange(o,r,"backward"),f=u.getSelectionAfter(),d=u.getBlockForKey(f.getFocusKey());if(f.getStartOffset()===0)s=U1(u,n,d,"before");else if(f.getEndOffset()===d.getLength())s=U1(u,n,d,"after");else{var p=Ad.splitBlock(u,f),m=p.getSelectionAfter(),v=p.getBlockForKey(m.getFocusKey());s=U1(p,n,v,"before")}}var y=s.merge({selectionBefore:a,selectionAfter:s.getSelectionAfter().set("hasFocus",!0)});return $j.push(t,y,"move-block")}},Lze=Pze;function Mze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fze=un,Nze=Fze.List,Dk=".",Bze=function(){function e(n){Mze(this,"_decorators",void 0),this._decorators=n.slice()}var t=e.prototype;return t.getDecorations=function(r,i){var o=Array(r.getText().length).fill(null);return this._decorators.forEach(function(a,s){var l=0,u=a.strategy,f=function(p,m){jze(o,p,m)&&(zze(o,p,m,s+Dk+l),l++)};u(r,f,i)}),Nze(o)},t.getComponentForKey=function(r){var i=parseInt(r.split(Dk)[0],10);return this._decorators[i].component},t.getPropsForKey=function(r){var i=parseInt(r.split(Dk)[0],10);return this._decorators[i].props},e}();function jze(e,t,n){for(var r=t;r<n;r++)if(e[r]!=null)return!1;return!0}function zze(e,t,n,r){for(var i=t;i<n;i++)e[i]=r}var Uze=Bze;function Kze(e){return typeof e=="object"?Object.keys(e).filter(function(t){return e[t]}).map(Ij).join(" "):Array.prototype.map.call(arguments,Ij).join(" ")}function Ij(e){return e.replace(/\//g,"-")}var $f=Kze,dI=T,pI=$f,Wze=un,Vze=Wze.Map,Hze=dI.createElement("ul",{className:pI("public/DraftStyleDefault/ul")}),qze=dI.createElement("ol",{className:pI("public/DraftStyleDefault/ol")}),Gze=dI.createElement("pre",{className:pI("public/DraftStyleDefault/pre")}),Yze=Vze({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:Hze},"ordered-list-item":{element:"li",wrapper:qze},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:Gze},unstyled:{element:"div",aliasedElements:["p"]}}),hI=Yze,Bq={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}};/*
|
|
431
|
-
object-assign
|
|
432
|
-
(c) Sindre Sorhus
|
|
433
|
-
@license MIT
|
|
434
|
-
*/var Dj=Object.getOwnPropertySymbols,Xze=Object.prototype.hasOwnProperty,Zze=Object.prototype.propertyIsEnumerable;function Jze(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Qze(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Rf=Qze()?Object.assign:function(e,t){for(var n,r=Jze(e),i,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var a in n)Xze.call(n,a)&&(r[a]=n[a]);if(Dj){i=Dj(n);for(var s=0;s<i.length;s++)Zze.call(n,i[s])&&(r[i[s]]=n[i[s]])}}return r},S$={exports:{}};(function(e,t){(function(n,r){var i="0.7.35",o="",a="?",s="function",l="undefined",u="object",f="string",d="major",p="model",m="name",v="type",y="vendor",w="version",b="architecture",x="console",S="mobile",k="tablet",A="smarttv",$="wearable",I="embedded",z=350,K="Amazon",D="Apple",W="ASUS",ie="BlackBerry",ae="Browser",q="Chrome",G="Edge",J="Firefox",le="Google",Q="Huawei",te="LG",P="Microsoft",me="Motorola",j="Opera",L="Samsung",oe="Sharp",ue="Sony",se="Xiaomi",Ee="Zebra",Re="Facebook",ke="Chromium OS",De="Mac OS",Me=function(H,de){var Y={};for(var Z in H)de[Z]&&de[Z].length%2===0?Y[Z]=de[Z].concat(H[Z]):Y[Z]=H[Z];return Y},Be=function(H){for(var de={},Y=0;Y<H.length;Y++)de[H[Y].toUpperCase()]=H[Y];return de},Ue=function(H,de){return typeof H===f?Ke(de).indexOf(Ke(H))!==-1:!1},Ke=function(H){return H.toLowerCase()},He=function(H){return typeof H===f?H.replace(/[^\d\.]/g,o).split(".")[0]:r},lt=function(H,de){if(typeof H===f)return H=H.replace(/^\s\s*/,o),typeof de===l?H:H.substring(0,z)},Xe=function(H,de){for(var Y=0,Z,re,xe,Se,_e,et;Y<de.length&&!_e;){var tt=de[Y],fe=de[Y+1];for(Z=re=0;Z<tt.length&&!_e&&tt[Z];)if(_e=tt[Z++].exec(H),_e)for(xe=0;xe<fe.length;xe++)et=_e[++re],Se=fe[xe],typeof Se===u&&Se.length>0?Se.length===2?typeof Se[1]==s?this[Se[0]]=Se[1].call(this,et):this[Se[0]]=Se[1]:Se.length===3?typeof Se[1]===s&&!(Se[1].exec&&Se[1].test)?this[Se[0]]=et?Se[1].call(this,et,Se[2]):r:this[Se[0]]=et?et.replace(Se[1],Se[2]):r:Se.length===4&&(this[Se[0]]=et?Se[3].call(this,et.replace(Se[1],Se[2])):r):this[Se]=et||r;Y+=2}},nt=function(H,de){for(var Y in de)if(typeof de[Y]===u&&de[Y].length>0){for(var Z=0;Z<de[Y].length;Z++)if(Ue(de[Y][Z],H))return Y===a?r:Y}else if(Ue(de[Y],H))return Y===a?r:Y;return H},mt={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},ge={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"},$e={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[w,[m,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[w,[m,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[m,w],[/opios[\/ ]+([\w\.]+)/i],[w,[m,j+" Mini"]],[/\bopr\/([\w\.]+)/i],[w,[m,j]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[m,w],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[w,[m,"UC"+ae]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[w,[m,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[w,[m,"WeChat"]],[/konqueror\/([\w\.]+)/i],[w,[m,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[w,[m,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[w,[m,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[m,/(.+)/,"$1 Secure "+ae],w],[/\bfocus\/([\w\.]+)/i],[w,[m,J+" Focus"]],[/\bopt\/([\w\.]+)/i],[w,[m,j+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[w,[m,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[w,[m,"Dolphin"]],[/coast\/([\w\.]+)/i],[w,[m,j+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[w,[m,"MIUI "+ae]],[/fxios\/([-\w\.]+)/i],[w,[m,J]],[/\bqihu|(qi?ho?o?|360)browser/i],[[m,"360 "+ae]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[m,/(.+)/,"$1 "+ae],w],[/(comodo_dragon)\/([\w\.]+)/i],[[m,/_/g," "],w],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[m,w],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[m],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[m,Re],w],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[m,w],[/\bgsa\/([\w\.]+) .*safari\//i],[w,[m,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[w,[m,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[w,[m,q+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[m,q+" WebView"],w],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[w,[m,"Android "+ae]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[m,w],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[w,[m,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[w,m],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[m,[w,nt,mt]],[/(webkit|khtml)\/([\w\.]+)/i],[m,w],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[m,"Netscape"],w],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[w,[m,J+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\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|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[m,w],[/(cobalt)\/([\w\.]+)/i],[m,[w,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[b,"amd64"]],[/(ia32(?=;))/i],[[b,Ke]],[/((?:i[346]|x)86)[;\)]/i],[[b,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[b,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[b,"armhf"]],[/windows (ce|mobile); ppc;/i],[[b,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[b,/ower/,o,Ke]],[/(sun4\w)[;\)]/i],[[b,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[b,Ke]]],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],[p,[y,L],[v,k]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[p,[y,L],[v,S]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[p,[y,D],[v,S]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[p,[y,D],[v,k]],[/(macintosh);/i],[p,[y,D]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[p,[y,oe],[v,S]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[p,[y,Q],[v,k]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[p,[y,Q],[v,S]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[p,/_/g," "],[y,se],[v,S]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[p,/_/g," "],[y,se],[v,k]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[p,[y,"OPPO"],[v,S]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[p,[y,"Vivo"],[v,S]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[p,[y,"Realme"],[v,S]],[/\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],[p,[y,me],[v,S]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[p,[y,me],[v,k]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[p,[y,te],[v,k]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[p,[y,te],[v,S]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[p,[y,"Lenovo"],[v,k]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[p,/_/g," "],[y,"Nokia"],[v,S]],[/(pixel c)\b/i],[p,[y,le],[v,k]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[p,[y,le],[v,S]],[/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],[p,[y,ue],[v,S]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[p,"Xperia Tablet"],[y,ue],[v,k]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[p,[y,"OnePlus"],[v,S]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[p,[y,K],[v,k]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[p,/(.+)/g,"Fire Phone $1"],[y,K],[v,S]],[/(playbook);[-\w\),; ]+(rim)/i],[p,y,[v,k]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[p,[y,ie],[v,S]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[p,[y,W],[v,k]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[p,[y,W],[v,S]],[/(nexus 9)/i],[p,[y,"HTC"],[v,k]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[y,[p,/_/g," "],[v,S]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[p,[y,"Acer"],[v,k]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[p,[y,"Meizu"],[v,S]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[y,p,[v,S]],[/(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],[y,p,[v,k]],[/(surface duo)/i],[p,[y,P],[v,k]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[p,[y,"Fairphone"],[v,S]],[/(u304aa)/i],[p,[y,"AT&T"],[v,S]],[/\bsie-(\w*)/i],[p,[y,"Siemens"],[v,S]],[/\b(rct\w+) b/i],[p,[y,"RCA"],[v,k]],[/\b(venue[\d ]{2,7}) b/i],[p,[y,"Dell"],[v,k]],[/\b(q(?:mv|ta)\w+) b/i],[p,[y,"Verizon"],[v,k]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[p,[y,"Barnes & Noble"],[v,k]],[/\b(tm\d{3}\w+) b/i],[p,[y,"NuVision"],[v,k]],[/\b(k88) b/i],[p,[y,"ZTE"],[v,k]],[/\b(nx\d{3}j) b/i],[p,[y,"ZTE"],[v,S]],[/\b(gen\d{3}) b.+49h/i],[p,[y,"Swiss"],[v,S]],[/\b(zur\d{3}) b/i],[p,[y,"Swiss"],[v,k]],[/\b((zeki)?tb.*\b) b/i],[p,[y,"Zeki"],[v,k]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[y,"Dragon Touch"],p,[v,k]],[/\b(ns-?\w{0,9}) b/i],[p,[y,"Insignia"],[v,k]],[/\b((nxa|next)-?\w{0,9}) b/i],[p,[y,"NextBook"],[v,k]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[y,"Voice"],p,[v,S]],[/\b(lvtel\-)?(v1[12]) b/i],[[y,"LvTel"],p,[v,S]],[/\b(ph-1) /i],[p,[y,"Essential"],[v,S]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[p,[y,"Envizen"],[v,k]],[/\b(trio[-\w\. ]+) b/i],[p,[y,"MachSpeed"],[v,k]],[/\btu_(1491) b/i],[p,[y,"Rotor"],[v,k]],[/(shield[\w ]+) b/i],[p,[y,"Nvidia"],[v,k]],[/(sprint) (\w+)/i],[y,p,[v,S]],[/(kin\.[onetw]{3})/i],[[p,/\./g," "],[y,P],[v,S]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[p,[y,Ee],[v,k]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[p,[y,Ee],[v,S]],[/smart-tv.+(samsung)/i],[y,[v,A]],[/hbbtv.+maple;(\d+)/i],[[p,/^/,"SmartTV"],[y,L],[v,A]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[y,te],[v,A]],[/(apple) ?tv/i],[y,[p,D+" TV"],[v,A]],[/crkey/i],[[p,q+"cast"],[y,le],[v,A]],[/droid.+aft(\w)( bui|\))/i],[p,[y,K],[v,A]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[p,[y,oe],[v,A]],[/(bravia[\w ]+)( bui|\))/i],[p,[y,ue],[v,A]],[/(mitv-\w{5}) bui/i],[p,[y,se],[v,A]],[/Hbbtv.*(technisat) (.*);/i],[y,p,[v,A]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[y,lt],[p,lt],[v,A]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[v,A]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[y,p,[v,x]],[/droid.+; (shield) bui/i],[p,[y,"Nvidia"],[v,x]],[/(playstation [345portablevi]+)/i],[p,[y,ue],[v,x]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[p,[y,P],[v,x]],[/((pebble))app/i],[y,p,[v,$]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[p,[y,D],[v,$]],[/droid.+; (glass) \d/i],[p,[y,le],[v,$]],[/droid.+; (wt63?0{2,3})\)/i],[p,[y,Ee],[v,$]],[/(quest( 2| pro)?)/i],[p,[y,Re],[v,$]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[y,[v,I]],[/(aeobc)\b/i],[p,[y,K],[v,I]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[p,[v,S]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[p,[v,k]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[v,k]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[v,S]],[/(android[-\w\. ]{0,9});.+buil/i],[p,[y,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[w,[m,G+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[w,[m,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[m,w],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[w,m]],os:[[/microsoft (windows) (vista|xp)/i],[m,w],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[m,[w,nt,ge]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,"Windows"],[w,nt,ge]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[w,/_/g,"."],[m,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[m,De],[w,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[w,m],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[m,w],[/\(bb(10);/i],[w,[m,ie]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[w,[m,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[w,[m,J+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[w,[m,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[w,[m,"watchOS"]],[/crkey\/([\d\.]+)/i],[w,[m,q+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[m,ke],w],[/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],[m,w],[/(sunos) ?([\w\.\d]*)/i],[[m,"Solaris"],w],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[m,w]]},Te=function(H,de){if(typeof H===u&&(de=H,H=r),!(this instanceof Te))return new Te(H,de).getResult();var Y=typeof n!==l&&n.navigator?n.navigator:r,Z=H||(Y&&Y.userAgent?Y.userAgent:o),re=Y&&Y.userAgentData?Y.userAgentData:r,xe=de?Me($e,de):$e,Se=Y&&Y.userAgent==Z;return this.getBrowser=function(){var _e={};return _e[m]=r,_e[w]=r,Xe.call(_e,Z,xe.browser),_e[d]=He(_e[w]),Se&&Y&&Y.brave&&typeof Y.brave.isBrave==s&&(_e[m]="Brave"),_e},this.getCPU=function(){var _e={};return _e[b]=r,Xe.call(_e,Z,xe.cpu),_e},this.getDevice=function(){var _e={};return _e[y]=r,_e[p]=r,_e[v]=r,Xe.call(_e,Z,xe.device),Se&&!_e[v]&&re&&re.mobile&&(_e[v]=S),Se&&_e[p]=="Macintosh"&&Y&&typeof Y.standalone!==l&&Y.maxTouchPoints&&Y.maxTouchPoints>2&&(_e[p]="iPad",_e[v]=k),_e},this.getEngine=function(){var _e={};return _e[m]=r,_e[w]=r,Xe.call(_e,Z,xe.engine),_e},this.getOS=function(){var _e={};return _e[m]=r,_e[w]=r,Xe.call(_e,Z,xe.os),Se&&!_e[m]&&re&&re.platform!="Unknown"&&(_e[m]=re.platform.replace(/chrome os/i,ke).replace(/macos/i,De)),_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 Z},this.setUA=function(_e){return Z=typeof _e===f&&_e.length>z?lt(_e,z):_e,this},this.setUA(Z),this};Te.VERSION=i,Te.BROWSER=Be([m,w,d]),Te.CPU=Be([b]),Te.DEVICE=Be([p,y,v,x,S,A,k,$,I]),Te.ENGINE=Te.OS=Be([m,w]),e.exports&&(t=e.exports=Te),t.UAParser=Te;var Pe=typeof n!==l&&(n.jQuery||n.Zepto);if(Pe&&!Pe.ua){var U=new Te;Pe.ua=U.getResult(),Pe.ua.get=function(){return U.getUA()},Pe.ua.set=function(H){U.setUA(H);var de=U.getResult();for(var Y in de)Pe.ua[Y]=de[Y]}}})(typeof window=="object"?window:ri)})(S$,S$.exports);var e4e=S$.exports,t4e=e4e,qo="Unknown",n4e={"Mac OS":"Mac OS X"};function r4e(e){return n4e[e]||e}function i4e(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}var o4e=new t4e,Yo=o4e.getResult(),a4e=i4e(Yo.browser.version),s4e={browserArchitecture:Yo.cpu.architecture||qo,browserFullVersion:Yo.browser.version||qo,browserMinorVersion:a4e.minor||qo,browserName:Yo.browser.name||qo,browserVersion:Yo.browser.major||qo,deviceName:Yo.device.model||qo,engineName:Yo.engine.name||qo,engineVersion:Yo.engine.version||qo,platformArchitecture:Yo.cpu.architecture||qo,platformName:r4e(Yo.os.name)||qo,platformVersion:Yo.os.version||qo,platformFullVersion:Yo.os.version||qo},l4e=s4e,Z_=mn,jq=/\./,u4e=/\|\|/,c4e=/\s+\-\s+/,f4e=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,Pj=/^(\d*)(.*)/;function d4e(e,t){var n=e.split(u4e);return n.length>1?n.some(function(r){return Wq.contains(r,t)}):(e=n[0].trim(),p4e(e,t))}function p4e(e,t){var n=e.split(c4e);if(n.length>0&&n.length<=2||Z_(!1),n.length===1)return Pk(n[0],t);var r=n[0],i=n[1];return Lj(r)&&Lj(i)||Z_(!1),Pk(">="+r,t)&&Pk("<="+i,t)}function Pk(e,t){if(e=e.trim(),e==="")return!0;var n=t.split(jq),r=Kq(e),i=r.modifier,o=r.rangeComponents;switch(i){case"<":return zq(n,o);case"<=":return h4e(n,o);case">=":return Uq(n,o);case">":return m4e(n,o);case"~":case"~>":return v4e(n,o);default:return g4e(n,o)}}function zq(e,t){return ky(e,t)===-1}function h4e(e,t){var n=ky(e,t);return n===-1||n===0}function g4e(e,t){return ky(e,t)===0}function Uq(e,t){var n=ky(e,t);return n===1||n===0}function m4e(e,t){return ky(e,t)===1}function v4e(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var i=r.length-1,o=parseInt(r[i],10);return C$(o)&&(r[i]=o+1+""),Uq(e,n)&&zq(e,r)}function Kq(e){var t=e.split(jq),n=t[0].match(f4e);return n||Z_(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function C$(e){return!isNaN(e)&&isFinite(e)}function Lj(e){return!Kq(e).modifier}function Mj(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function y4e(e,t){e=e.slice(),t=t.slice(),Mj(e,t.length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0",r[0]==="*"&&n===t.length-1))for(var i=n;i<e.length;i++)e[i]="0"}return Mj(t,e.length),[e,t]}function b4e(e,t){var n=e.match(Pj)[1],r=t.match(Pj)[1],i=parseInt(n,10),o=parseInt(r,10);return C$(i)&&C$(o)&&i!==o?Fj(i,o):Fj(e,t)}function Fj(e,t){return typeof e!=typeof t&&Z_(!1),e>t?1:e<t?-1:0}function ky(e,t){for(var n=y4e(e,t),r=n[0],i=n[1],o=0;o<i.length;o++){var a=b4e(r[o],i[o]);if(a)return a}return 0}var Wq={contains:function(t,n){return d4e(t.trim(),n.trim())}},_4e=Wq,x4e=Object.prototype.hasOwnProperty;function w4e(e,t,n){if(!e)return null;var r={};for(var i in e)x4e.call(e,i)&&(r[i]=t.call(n,e[i],i,e));return r}var S4e=w4e;function C4e(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}var E4e=C4e,ms=l4e,k4e=_4e,T4e=S4e,A4e=E4e;function $d(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var i=n.slice(e.length);return t?(i=r?r(i):i,k4e.contains(i,t)):!1}function $4e(e){return ms.platformName==="Windows"?e.replace(/^\s*NT/,""):e}var R4e={isBrowser:function(t){return $d(ms.browserName,ms.browserFullVersion,t)},isBrowserArchitecture:function(t){return $d(ms.browserArchitecture,null,t)},isDevice:function(t){return $d(ms.deviceName,null,t)},isEngine:function(t){return $d(ms.engineName,ms.engineVersion,t)},isPlatform:function(t){return $d(ms.platformName,ms.platformFullVersion,t,$4e)},isPlatformArchitecture:function(t){return $d(ms.platformArchitecture,null,t)}},lo=T4e(R4e,A4e);function O4e(e){return!e||!e.ownerDocument?document:e.ownerDocument}var _S=O4e;function I4e(e){return!e||!e.ownerDocument?!1:e.nodeType===Node.ELEMENT_NODE}var Of=I4e,D4e=Of;function Vq(e){if(D4e(e)){var t=e,n=t.getAttribute("data-offset-key");if(n)return n;for(var r=0;r<t.childNodes.length;r++){var i=Vq(t.childNodes[r]);if(i)return i}}return null}var Hq=Vq,P4e=_S,L4e=Hq;function M4e(e){for(var t=e;t&&t!==P4e(e).documentElement;){var n=L4e(t);if(n!=null)return n;t=t.parentNode}return null}var xS=M4e;function F4e(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}var qq=F4e;function K1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N4e=lo,B4e=xS,j4e=qq,z4e=un,U4e=mn,K4e=so,Nj=z4e.Map,W4e={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},Bj=N4e.isBrowser("IE <= 11"),V4e=function(){function e(n){var r=this;K1(this,"observer",void 0),K1(this,"container",void 0),K1(this,"mutations",void 0),K1(this,"onCharData",void 0),this.container=n,this.mutations=Nj();var i=j4e(n);i.MutationObserver&&!Bj?this.observer=new i.MutationObserver(function(o){return r.registerMutations(o)}):this.onCharData=function(o){o.target instanceof Node||U4e(!1),r.registerMutation({type:"characterData",target:o.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,W4e):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var r=this.observer;r?(this.registerMutations(r.takeRecords()),r.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var i=this.mutations;return this.mutations=Nj(),i},t.registerMutations=function(r){for(var i=0;i<r.length;i++)this.registerMutation(r[i])},t.getMutationTextContent=function(r){var i=r.type,o=r.target,a=r.removedNodes;if(i==="characterData"){if(o.textContent!=="")return Bj?o.textContent.replace(`
|
|
435
|
-
`,""):o.textContent}else if(i==="childList"){if(a&&a.length)return"";if(o.textContent!=="")return o.textContent}return null},t.registerMutation=function(r){var i=this.getMutationTextContent(r);if(i!=null){var o=K4e(B4e(r.target));this.mutations=this.mutations.set(o,i)}},e}(),H4e=V4e,W1="-",q4e={encode:function(t,n,r){return t+W1+n+W1+r},decode:function(t){var n=t.split(W1).reverse(),r=n[0],i=n[1],o=n.slice(2);return{blockKey:o.reverse().join(W1),decoratorKey:parseInt(i,10),leafKey:parseInt(r,10)}}},Bl=q4e,wS={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105},Gq={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};function G4e(e){return!e||!e.ownerDocument?!1:e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement}var Ty=G4e,jj=mn,Y4e=Ty;function X4e(e){var t=e.editorContainer;t||jj(!1),Y4e(t.firstChild)||jj(!1);var n=t.firstChild;return n}var Yq=X4e,zj=Bl,Z4e=so;function J4e(e,t,n,r,i){var o=Z4e(e.getSelection());if(!t||!r)return o;var a=zj.decode(t),s=a.blockKey,l=e.getBlockTree(s),u=l&&l.getIn([a.decoratorKey,"leaves",a.leafKey]),f=zj.decode(r),d=f.blockKey,p=e.getBlockTree(d),m=p&&p.getIn([f.decoratorKey,"leaves",f.leafKey]);if(!u||!m)return o;var v=u.get("start"),y=m.get("start"),w=u?v+n:null,b=m?y+i:null,x=o.getAnchorKey()===s&&o.getAnchorOffset()===w&&o.getFocusKey()===d&&o.getFocusOffset()===b;if(x)return o;var S=!1;if(s===d){var k=u.get("end"),A=m.get("end");y===v&&A===k?S=i<n:S=y<v}else{var $=e.getCurrentContent().getBlockMap().keySeq().skipUntil(function(I){return I===s||I===d}).first();S=$===d}return o.merge({anchorKey:s,anchorOffset:w,focusKey:d,focusOffset:b,isBackward:S})}var Xq=J4e,xm=xS,Zm=Hq,Uj=Xq,Lk=mn,gI=Of,qc=so;function Q4e(e,t,n,r,i,o){var a=n.nodeType===Node.TEXT_NODE,s=i.nodeType===Node.TEXT_NODE;if(a&&s)return{selectionState:Uj(e,qc(xm(n)),r,qc(xm(i)),o),needsRecovery:!1};var l=null,u=null,f=!0;return a?(l={key:qc(xm(n)),offset:r},u=V1(t,i,o)):s?(u={key:qc(xm(i)),offset:o},l=V1(t,n,r)):(l=V1(t,n,r),u=V1(t,i,o),n===i&&r===o&&(f=!!n.firstChild&&n.firstChild.nodeName!=="BR")),{selectionState:Uj(e,l.key,l.offset,u.key,u.offset),needsRecovery:f}}function e5e(e){for(;e.firstChild&&(gI(e.firstChild)&&e.firstChild.getAttribute("data-blocks")==="true"||Zm(e.firstChild));)e=e.firstChild;return e}function t5e(e){for(;e.lastChild&&(gI(e.lastChild)&&e.lastChild.getAttribute("data-blocks")==="true"||Zm(e.lastChild));)e=e.lastChild;return e}function V1(e,t,n){var r=t,i=xm(r);if(i!=null||e&&(e===r||e.firstChild===r)||Lk(!1),e===r){r=r.firstChild,gI(r)||Lk(!1);var o=r;r=o,r.getAttribute("data-contents")!=="true"&&Lk(!1),n>0&&(n=r.childNodes.length)}if(n===0){var a=null;if(i!=null)a=i;else{var s=e5e(r);a=qc(Zm(s))}return{key:a,offset:0}}var l=r.childNodes[n-1],u=null,f=null;if(!Zm(l))u=qc(i),f=Kj(l);else{var d=t5e(l);u=qc(Zm(d)),f=Kj(d)}return{key:u,offset:f}}function Kj(e){var t=e.textContent;return t===`
|
|
436
|
-
`?0:t.length}var Zq=Q4e,n5e=Zq;function r5e(e,t){var n=t.ownerDocument.defaultView.getSelection(),r=n.anchorNode,i=n.anchorOffset,o=n.focusNode,a=n.focusOffset,s=n.rangeCount;return s===0||r==null||o==null?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:n5e(e,t,r,i,o,a)}var Jq=r5e,i5e=Gq,Wj=jn,o5e=Yq,a5e=Jq;function s5e(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState,n=t.getSelection();i5e.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:new Error().stack}),selectionState:JSON.stringify(n.toJS())})}return}var r=e.props.editorState,i=a5e(r,o5e(e)),o=i.selectionState;o!==r.getSelection()&&(i.needsRecovery?r=Wj.forceSelection(r,o):r=Wj.acceptSelection(r,o),e.update(r))}var Qq=s5e;function l5e(e){return e!=null&&e!=""}var eG={notEmptyKey:l5e},u5e=eG,c5e=u5e.notEmptyKey;function f5e(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),i=t.getAnchorOffset();return i>0?(n=e.getBlockForKey(r).getEntityAt(i-1),n!==e.getBlockForKey(r).getEntityAt(i)?null:Vj(e.getEntityMap(),n)):null}var o=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(o);return n=a===s.getLength()?null:s.getEntityAt(a),Vj(e.getEntityMap(),n)}function Vj(e,t){if(c5e(t)){var n=e.__get(t);return n.getMutability()==="MUTABLE"?t:null}return null}var mI=f5e,d5e=H4e,p5e=ao,h5e=Bl,im=jn,Mk=wS,g5e=lo,m5e=Qq,tG=Yq,v5e=Jq,y5e=mI,b5e=so,_5e=g5e.isBrowser("IE"),x5e=20,Fk=!1,H1=!1,Jm=null;function w5e(e){Jm||(Jm=new d5e(tG(e)),Jm.start())}var E$={onCompositionStart:function(t){H1=!0,w5e(t)},onCompositionEnd:function(t){Fk=!1,H1=!1,setTimeout(function(){Fk||E$.resolveComposition(t)},x5e)},onSelect:m5e,onKeyDown:function(t,n){if(!H1){E$.resolveComposition(t),t._onKeyDown(n);return}(n.which===Mk.RIGHT||n.which===Mk.LEFT)&&n.preventDefault()},onKeyPress:function(t,n){n.which===Mk.RETURN&&n.preventDefault()},resolveComposition:function(t){if(!H1){var n=b5e(Jm).stopAndFlushMutations();Jm=null,Fk=!0;var r=im.set(t._latestEditorState,{inCompositionMode:!1});if(t.exitCurrentMode(),!n.size){t.update(r);return}var i=r.getCurrentContent();n.forEach(function(l,u){var f=h5e.decode(u),d=f.blockKey,p=f.decoratorKey,m=f.leafKey,v=r.getBlockTree(d).getIn([p,"leaves",m]),y=v.start,w=v.end,b=r.getSelection().merge({anchorKey:d,focusKey:d,anchorOffset:y,focusOffset:w,isBackward:!1}),x=y5e(i,b),S=i.getBlockForKey(d).getInlineStyleAt(y);i=p5e.replaceText(i,b,l,S,x),r=im.set(r,{currentContent:i})});var o=v5e(r,tG(t)),a=o.selectionState;t.restoreEditorDOM();var s=_5e?im.forceSelection(r,a):im.acceptSelection(r,a);t.update(im.push(s,i,"insert-characters"))}}},S5e=E$,Nk,Hj;function C5e(){if(Hj)return Nk;Hj=1;var e=Rf;function t(){return t=e||function(l){for(var u=1;u<arguments.length;u++){var f=arguments[u];for(var d in f)Object.prototype.hasOwnProperty.call(f,d)&&(l[d]=f[d])}return l},t.apply(this,arguments)}function n(l,u){l.prototype=Object.create(u.prototype),l.prototype.constructor=l,l.__proto__=u}var r=Bl,i=T,o=fI,a=yS,s=function(l){n(u,l);function u(){return l.apply(this,arguments)||this}var f=u.prototype;return f.render=function(){var p=this.props,m=p.block,v=p.children,y=p.contentState,w=p.decorator,b=p.decoratorKey,x=p.direction,S=p.leafSet,k=p.text,A=m.getKey(),$=S.get("leaves"),I=w.getComponentForKey(b),z=w.getPropsForKey(b),K=r.encode(A,parseInt(b,10),0),D=k.slice($.first().get("start"),$.last().get("end")),W=a.getHTMLDirIfDifferent(o.getDirection(D),x);return i.createElement(I,t({},z,{contentState:y,decoratedText:D,dir:W,key:K,entityKey:m.getEntityAt(S.get("start")),offsetKey:K}),v)},u}(i.Component);return Nk=s,Nk}function qj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E5e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Gj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jp=T,k5e=lo,T5e=mn,A5e=Of,vI=k5e.isBrowser("IE <= 11");function $5e(e){return vI?e.textContent===`
|
|
437
|
-
`:e.tagName==="BR"}var R5e=function(t){return vI?jp.createElement("span",{key:"A","data-text":"true",ref:t},`
|
|
438
|
-
`):jp.createElement("br",{key:"A","data-text":"true",ref:t})},O5e=function(t){return vI?jp.createElement("span",{key:"B","data-text":"true",ref:t},`
|
|
439
|
-
`):jp.createElement("br",{key:"B","data-text":"true",ref:t})},I5e=function(e){E5e(t,e);function t(r){var i;return i=e.call(this,r)||this,Gj(qj(i),"_forceFlag",void 0),Gj(qj(i),"_node",void 0),i._forceFlag=!1,i}var n=t.prototype;return n.shouldComponentUpdate=function(i){var o=this._node,a=i.children==="";A5e(o)||T5e(!1);var s=o;return a?!$5e(s):s.textContent!==i.children},n.componentDidMount=function(){this._forceFlag=!this._forceFlag},n.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},n.render=function(){var i=this;return this.props.children===""?this._forceFlag?R5e(function(o){return i._node=o}):O5e(function(o){return i._node=o}):jp.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(a){return i._node=a}},this.props.children)},t}(jp.Component),D5e=I5e,P5e=Of;function L5e(e){return!e||!e.ownerDocument?!1:P5e(e)&&e.nodeName==="BR"}var nG=L5e,rG={initODS:function(){},handleExtensionCausedError:function(){}};function M5e(e){var t=e?e.ownerDocument||e:document,n=t.defaultView||window;return!!(e&&(typeof n.Node=="function"?e instanceof n.Node:typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string"))}var F5e=M5e,N5e=F5e;function B5e(e){return N5e(e)&&e.nodeType==3}var j5e=B5e,Yj=j5e;function iG(e,t){return!e||!t?!1:e===t?!0:Yj(e)?!1:Yj(t)?iG(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}var yI=iG;function z5e(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var oG=z5e,U5e=rG,k$=Gq,K5e=lo,aG=yI,W5e=oG,bI=_S,V5e=mn,sG=Of,H5e=K5e.isBrowser("IE");function q5e(e,t){if(!e)return"[empty]";var n=lG(e,t);if(n.nodeType===Node.TEXT_NODE)return n.textContent;sG(n)||V5e(!1);var r=n;return r.outerHTML}function lG(e,t){var n=t!==void 0?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return bI(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var i=e.cloneNode();i.nodeType===1&&n.length&&i.setAttribute("data-labels",n.join(", "));for(var o=e.childNodes,a=0;a<o.length;a++)i.appendChild(lG(o[a],t));return i}function T$(e,t){for(var n=e,r=n;n;){if(sG(n)&&r.hasAttribute("contenteditable"))return q5e(n,t);n=n.parentNode,r=n}return"Could not find contentEditable parent of node"}function uG(e){return e.nodeValue===null?e.childNodes.length:e.nodeValue.length}function G5e(e,t,n,r,i){var o=bI(t);if(aG(o.documentElement,t)){var a=o.defaultView.getSelection(),s=e.getAnchorKey(),l=e.getAnchorOffset(),u=e.getFocusKey(),f=e.getFocusOffset(),d=e.getIsBackward();if(!a.extend&&d){var p=s,m=l;s=u,l=f,u=p,f=m,d=!1}var v=s===n&&r<=l&&i>=l,y=u===n&&r<=f&&i>=f;if(v&&y){a.removeAllRanges(),q1(a,t,l-r,e),Fb(a,t,f-r,e);return}if(!d)v&&(a.removeAllRanges(),q1(a,t,l-r,e)),y&&Fb(a,t,f-r,e);else if(y&&(a.removeAllRanges(),q1(a,t,f-r,e)),v){var w=a.focusNode,b=a.focusOffset;a.removeAllRanges(),q1(a,t,l-r,e),Fb(a,w,b,e)}}}function Fb(e,t,n,r){var i=W5e(),o=e.extend;if(o&&t!=null&&aG(i,t)){n>uG(t)&&k$.logSelectionStateFailure({anonymizedDom:T$(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var a=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(l){throw k$.logSelectionStateFailure({anonymizedDom:T$(t,function(u){var f=[];return u===i&&f.push("active element"),u===e.anchorNode&&f.push("selection anchor node"),u===e.focusNode&&f.push("selection focus node"),f}),extraParams:JSON.stringify({activeElementName:i?i.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:a,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:l?""+l:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),l}}else if(t&&e.rangeCount>0){var s=e.getRangeAt(0);s.setEnd(t,n),e.addRange(s.cloneRange())}}function q1(e,t,n,r){var i=bI(t).createRange();if(n>uG(t)&&(k$.logSelectionStateFailure({anonymizedDom:T$(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),U5e.handleExtensionCausedError()),i.setStart(t,n),H5e)try{e.addRange(i)}catch{}else e.addRange(i)}var Y5e={setDraftEditorSelection:G5e,addFocusToSelection:Fb},Xj=Rf;function X5e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z5e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function J5e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Q5e=D5e,Bk=T,G1=mn,e6e=nG,t6e=Y5e.setDraftEditorSelection,n6e=function(e){Z5e(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o))||this,J5e(X5e(r),"leaf",void 0),r}var n=t.prototype;return n._setSelection=function(){var i=this.props.selection;if(!(i==null||!i.getHasFocus())){var o=this.props,a=o.block,s=o.start,l=o.text,u=a.getKey(),f=s+l.length;if(i.hasEdgeWithin(u,s,f)){var d=this.leaf;d||G1(!1);var p=d.firstChild;p||G1(!1);var m;p.nodeType===Node.TEXT_NODE?m=p:e6e(p)?m=d:(m=p.firstChild,m||G1(!1)),t6e(i,m,u,s,f)}}},n.shouldComponentUpdate=function(i){var o=this.leaf;o||G1(!1);var a=o.textContent!==i.text||i.styleSet!==this.props.styleSet||i.forceSelection;return a},n.componentDidUpdate=function(){this._setSelection()},n.componentDidMount=function(){this._setSelection()},n.render=function(){var i=this,o=this.props.block,a=this.props.text;a.endsWith(`
|
|
440
|
-
`)&&this.props.isLast&&(a+=`
|
|
441
|
-
`);var s=this.props,l=s.customStyleMap,u=s.customStyleFn,f=s.offsetKey,d=s.styleSet,p=d.reduce(function(v,y){var w={},b=l[y];return b!==void 0&&v.textDecoration!==b.textDecoration&&(w.textDecoration=[v.textDecoration,b.textDecoration].join(" ").trim()),Xj(v,b,w)},{});if(u){var m=u(d,o);p=Xj(p,m)}return Bk.createElement("span",{"data-offset-key":f,ref:function(y){return i.leaf=y},style:p},Bk.createElement(Q5e,null,a))},t}(Bk.Component),cG=n6e,jk,Zj;function r6e(){if(Zj)return jk;Zj=1;function e(l,u){l.prototype=Object.create(u.prototype),l.prototype.constructor=l,l.__proto__=u}var t=C5e(),n=cG,r=Bl,i=un,o=T,a=$f;i.List;var s=function(l){e(u,l);function u(){return l.apply(this,arguments)||this}var f=u.prototype;return f.render=function(){var p=this.props,m=p.block,v=p.contentState,y=p.customStyleFn,w=p.customStyleMap,b=p.decorator,x=p.direction,S=p.forceSelection,k=p.hasSelection,A=p.selection,$=p.tree,I=m.getKey(),z=m.getText(),K=$.size-1,D=this.props.children||$.map(function(W,ie){var ae=W.get("decoratorKey"),q=W.get("leaves"),G=q.size-1,J=q.map(function(le,Q){var te=r.encode(I,ie,Q),P=le.get("start"),me=le.get("end");return o.createElement(n,{key:te,offsetKey:te,block:m,start:P,selection:k?A:null,forceSelection:S,text:z.slice(P,me),styleSet:m.getInlineStyleAt(P),customStyleMap:w,customStyleFn:y,isLast:ae===K&&Q===G})}).toArray();return!ae||!b?J:o.createElement(t,{block:m,children:J,contentState:v,decorator:b,decoratorKey:ae,direction:x,leafSet:W,text:z,key:ie})}).toArray();return o.createElement("div",{"data-offset-key":r.encode(I,0,0),className:a({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":x==="LTR","public/DraftStyleDefault/rtl":x==="RTL"})},D)},u}(o.Component);return jk=s,jk}function Y1(e,t){return!!t&&(e===t.documentElement||e===t.body)}var i6e={getTop:function(t){var n=t.ownerDocument;return Y1(t,n)?n.body.scrollTop||n.documentElement.scrollTop:t.scrollTop},setTop:function(t,n){var r=t.ownerDocument;Y1(t,r)?r.body.scrollTop=r.documentElement.scrollTop=n:t.scrollTop=n},getLeft:function(t){var n=t.ownerDocument;return Y1(t,n)?n.body.scrollLeft||n.documentElement.scrollLeft:t.scrollLeft},setLeft:function(t,n){var r=t.ownerDocument;Y1(t,r)?r.body.scrollLeft=r.documentElement.scrollLeft=n:t.scrollLeft=n}},_I=i6e,o6e=/-(.)/g;function a6e(e){return e.replace(o6e,function(t,n){return n.toUpperCase()})}var s6e=a6e,l6e=/([A-Z])/g;function u6e(e){return e.replace(l6e,"-$1").toLowerCase()}var c6e=u6e,Jj=s6e,Qj=c6e;function om(e){return e==null?e:String(e)}function f6e(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null),n))return om(n.getPropertyValue(Qj(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null),n)return om(n.getPropertyValue(Qj(t)));if(t==="display")return"none"}return e.currentStyle?om(t==="float"?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[Jj(t)]):om(e.style&&e.style[Jj(t)])}var d6e=f6e,p6e=d6e;function zk(e,t){var n=fG.get(e,t);return n==="auto"||n==="scroll"}var fG={get:p6e,getScrollParent:function(t){if(!t)return null;for(var n=t.ownerDocument;t&&t!==n.body;){if(zk(t,"overflow")||zk(t,"overflowY")||zk(t,"overflowX"))return t;t=t.parentNode}return n.defaultView||n.parentWindow}},SS=fG,h6e=yI;function g6e(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!h6e(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}var m6e=g6e,v6e=m6e;function y6e(e){var t=v6e(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}var dG=y6e,b6e=typeof navigator<"u"&&navigator.userAgent.indexOf("AppleWebKit")>-1;function _6e(e){return e=e||document,e.scrollingElement?e.scrollingElement:!b6e&&e.compatMode==="CSS1Compat"?e.documentElement:e.body}var x6e=_6e;function w6e(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}var S6e=w6e,C6e=x6e,E6e=S6e;function k6e(e){var t=C6e(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=E6e(e),r=e===t?e.ownerDocument.documentElement:e,i=e.scrollWidth-r.clientWidth,o=e.scrollHeight-r.clientHeight;return n.x=Math.max(0,Math.min(n.x,i)),n.y=Math.max(0,Math.min(n.y,o)),n}var CS=k6e;function pG(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function hG(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function gG(){return{width:window.innerWidth||pG(),height:window.innerHeight||hG()}}gG.withoutScrollbars=function(){return{width:pG(),height:hG()}};var mG=gG,Uk,ez;function T6e(){if(ez)return Uk;ez=1;var e=Rf;function t(){return t=e||function(K){for(var D=1;D<arguments.length;D++){var W=arguments[D];for(var ie in W)Object.prototype.hasOwnProperty.call(W,ie)&&(K[ie]=W[ie])}return K},t.apply(this,arguments)}function n(K){if(K===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return K}function r(K,D){K.prototype=Object.create(D.prototype),K.prototype.constructor=K,K.__proto__=D}function i(K){for(var D=1;D<arguments.length;D++){var W=arguments[D]!=null?arguments[D]:{},ie=Object.keys(W);typeof Object.getOwnPropertySymbols=="function"&&(ie=ie.concat(Object.getOwnPropertySymbols(W).filter(function(ae){return Object.getOwnPropertyDescriptor(W,ae).enumerable}))),ie.forEach(function(ae){o(K,ae,W[ae])})}return K}function o(K,D,W){return D in K?Object.defineProperty(K,D,{value:W,enumerable:!0,configurable:!0,writable:!0}):K[D]=W,K}var a=r6e(),s=Bl,l=T,u=_I,f=SS,d=dG,p=CS,m=mG,v=un,y=mn,w=Ty,b=10;v.List;var x=function(D,W){return D.getAnchorKey()===W||D.getFocusKey()===W},S=function(D,W){var ie=D.getNextSiblingKey();return ie?W.getBlockForKey(ie).getType()===D.getType():!1},k=function(D,W,ie){var ae=[],q=!0,G=!1,J=void 0;try{for(var le=ie.reverse()[Symbol.iterator](),Q;!(q=(Q=le.next()).done);q=!0){var te=Q.value;if(te.type!==W)break;ae.push(te)}}catch(j){G=!0,J=j}finally{try{!q&&le.return!=null&&le.return()}finally{if(G)throw J}}ie.splice(ie.indexOf(ae[0]),ae.length+1);var P=ae.reverse(),me=P[0].key;return ie.push(l.cloneElement(D,{key:"".concat(me,"-wrap"),"data-offset-key":s.encode(me,0,0)},P)),ie},A=function(D,W){var ie=W.get(D.getType())||W.get("unstyled"),ae=ie.wrapper,q=ie.element||W.get("unstyled").element;return{Element:q,wrapperTemplate:ae}},$=function(D,W){var ie=W(D);if(!ie)return{};var ae=ie.component,q=ie.props,G=ie.editable;return{CustomComponent:ae,customProps:q,customEditable:G}},I=function(D,W,ie,ae,q,G){var J={"data-block":!0,"data-editor":W,"data-offset-key":ie,key:D.getKey(),ref:G},le=ae(D);return le&&(J.className=le),q.customEditable!==void 0&&(J=i({},J,{contentEditable:q.customEditable,suppressContentEditableWarning:!0})),J},z=function(K){r(D,K);function D(){for(var ie,ae=arguments.length,q=new Array(ae),G=0;G<ae;G++)q[G]=arguments[G];return ie=K.call.apply(K,[this].concat(q))||this,o(n(ie),"wrapperRef",l.createRef()),ie}var W=D.prototype;return W.shouldComponentUpdate=function(ae){var q=this.props,G=q.block,J=q.direction,le=q.tree,Q=!G.getChildKeys().isEmpty(),te=G!==ae.block||le!==ae.tree||J!==ae.direction||x(ae.selection,ae.block.getKey())&&ae.forceSelection;return Q||te},W.componentDidMount=function(){var ae=this.props.selection,q=ae.getEndKey();if(!(!ae.getHasFocus()||q!==this.props.block.getKey())){var G=this.wrapperRef.current;if(G){var J=f.getScrollParent(G),le=p(J),Q;if(J===window){var te=d(G),P=te.y+te.height,me=m().height;Q=P-me,Q>0&&window.scrollTo(le.x,le.y+Q+b)}else{w(G)||y(!1);var j=G,L=j.offsetHeight+j.offsetTop,oe=J.offsetHeight+le.y;Q=L-oe,Q>0&&u.setTop(J,u.getTop(J)+Q+b)}}}},W.render=function(){var ae=this,q=this.props,G=q.block,J=q.blockRenderMap,le=q.blockRendererFn,Q=q.blockStyleFn,te=q.contentState,P=q.decorator,me=q.editorKey,j=q.editorState,L=q.customStyleFn,oe=q.customStyleMap,ue=q.direction,se=q.forceSelection,Ee=q.selection,Re=q.tree,ke=null;G.children.size&&(ke=G.children.reduce(function(nt,mt){var ge=s.encode(mt,0,0),$e=te.getBlockForKey(mt),Te=$($e,le),Pe=Te.CustomComponent||D,U=A($e,J),H=U.Element,de=U.wrapperTemplate,Y=I($e,me,ge,Q,Te,null),Z=i({},ae.props,{tree:j.getBlockTree(mt),blockProps:Te.customProps,offsetKey:ge,block:$e});return nt.push(l.createElement(H,Y,l.createElement(Pe,Z))),!de||S($e,te)||k(de,H,nt),nt},[]));var De=G.getKey(),Me=s.encode(De,0,0),Be=$(G,le),Ue=Be.CustomComponent,Ke=Ue!=null?l.createElement(Ue,t({},this.props,{tree:j.getBlockTree(De),blockProps:Be.customProps,offsetKey:Me,block:G})):l.createElement(a,{block:G,children:ke,contentState:te,customStyleFn:L,customStyleMap:oe,decorator:P,direction:ue,forceSelection:se,hasSelection:x(Ee,De),selection:Ee,tree:Re});if(G.getParentKey())return Ke;var He=A(G,J),lt=He.Element,Xe=I(G,me,Me,Q,Be,this.wrapperRef);return l.createElement(lt,Xe,Ke)},D}(l.Component);return Uk=z,Uk}var Kk,tz;function A6e(){if(tz)return Kk;tz=1;var e=Rf;function t(){return t=e||function(l){for(var u=1;u<arguments.length;u++){var f=arguments[u];for(var d in f)Object.prototype.hasOwnProperty.call(f,d)&&(l[d]=f[d])}return l},t.apply(this,arguments)}function n(l,u){l.prototype=Object.create(u.prototype),l.prototype.constructor=l,l.__proto__=u}var r=T6e(),i=Bl,o=T,a=so,s=function(l){n(u,l);function u(){return l.apply(this,arguments)||this}var f=u.prototype;return f.shouldComponentUpdate=function(p){var m=this.props.editorState,v=p.editorState,y=m.getDirectionMap(),w=v.getDirectionMap();if(y!==w)return!0;var b=m.getSelection().getHasFocus(),x=v.getSelection().getHasFocus();if(b!==x)return!0;var S=v.getNativelyRenderedContent(),k=m.isInCompositionMode(),A=v.isInCompositionMode();if(m===v||S!==null&&v.getCurrentContent()===S||k&&A)return!1;var $=m.getCurrentContent(),I=v.getCurrentContent(),z=m.getDecorator(),K=v.getDecorator();return k!==A||$!==I||z!==K||v.mustForceSelection()},f.render=function(){for(var p=this.props,m=p.blockRenderMap,v=p.blockRendererFn,y=p.blockStyleFn,w=p.customStyleMap,b=p.customStyleFn,x=p.editorState,S=p.editorKey,k=p.textDirectionality,A=x.getCurrentContent(),$=x.getSelection(),I=x.mustForceSelection(),z=x.getDecorator(),K=a(x.getDirectionMap()),D=A.getBlocksAsArray(),W=D[0],ie=[],ae=W;ae;){var q=ae.getKey(),G={blockRenderMap:m,blockRendererFn:v,blockStyleFn:y,contentState:A,customStyleFn:b,customStyleMap:w,decorator:z,editorKey:S,editorState:x,forceSelection:I,selection:$,block:ae,direction:k||K.get(q),tree:x.getBlockTree(q)},J=m.get(ae.getType())||m.get("unstyled"),le=J.wrapper;ie.push({block:o.createElement(r,t({key:q},G)),wrapperTemplate:le,key:q,offsetKey:i.encode(q,0,0)});var Q=ae.getNextSiblingKey();ae=Q?A.getBlockForKey(Q):null}for(var te=[],P=0;P<ie.length;){var me=ie[P];if(me.wrapperTemplate){var j=[];do j.push(ie[P].block),P++;while(P<ie.length&&ie[P].wrapperTemplate===me.wrapperTemplate);var L=o.cloneElement(me.wrapperTemplate,{key:me.key+"-wrap","data-offset-key":me.offsetKey},j);te.push(L)}else te.push(me.block),P++}return o.createElement("div",{"data-contents":"true"},te)},u}(o.Component);return Kk=s,Kk}var $6e=Rf;function A$(){return A$=$6e||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},A$.apply(this,arguments)}function R6e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O6e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function I6e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D6e=cG,nz=Bl,X1=T,rz=_I,P6e=SS,L6e=fI,M6e=yS,F6e=$f,N6e=dG,B6e=CS,j6e=mG,z6e=mn,U6e=Ty,K6e=so,iz=10,oz=function(t,n){return t.getAnchorKey()===n||t.getFocusKey()===n},W6e=function(e){O6e(t,e);function t(){for(var r,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=e.call.apply(e,[this].concat(o))||this,I6e(R6e(r),"_node",void 0),r}var n=t.prototype;return n.shouldComponentUpdate=function(i){return this.props.block!==i.block||this.props.tree!==i.tree||this.props.direction!==i.direction||oz(i.selection,i.block.getKey())&&i.forceSelection},n.componentDidMount=function(){if(!this.props.preventScroll){var i=this.props.selection,o=i.getEndKey();if(!(!i.getHasFocus()||o!==this.props.block.getKey())){var a=this._node;if(a!=null){var s=P6e.getScrollParent(a),l=B6e(s),u;if(s===window){var f=N6e(a),d=f.y+f.height,p=j6e().height;u=d-p,u>0&&window.scrollTo(l.x,l.y+u+iz)}else{U6e(a)||z6e(!1);var m=a.offsetHeight+a.offsetTop,v=s.offsetTop+s.offsetHeight,y=v+l.y;u=m-y,u>0&&rz.setTop(s,rz.getTop(s)+u+iz)}}}}},n._renderChildren=function(){var i=this,o=this.props.block,a=o.getKey(),s=o.getText(),l=this.props.tree.size-1,u=oz(this.props.selection,a);return this.props.tree.map(function(f,d){var p=f.get("leaves");if(p.size===0)return null;var m=p.size-1,v=p.map(function(D,W){var ie=nz.encode(a,d,W),ae=D.get("start"),q=D.get("end");return X1.createElement(D6e,{key:ie,offsetKey:ie,block:o,start:ae,selection:u?i.props.selection:null,forceSelection:i.props.forceSelection,text:s.slice(ae,q),styleSet:o.getInlineStyleAt(ae),customStyleMap:i.props.customStyleMap,customStyleFn:i.props.customStyleFn,isLast:d===l&&W===m})}).toArray(),y=f.get("decoratorKey");if(y==null||!i.props.decorator)return v;var w=K6e(i.props.decorator),b=w.getComponentForKey(y);if(!b)return v;var x=w.getPropsForKey(y),S=nz.encode(a,d,0),k=p.first().get("start"),A=p.last().get("end"),$=s.slice(k,A),I=o.getEntityAt(f.get("start")),z=M6e.getHTMLDirIfDifferent(L6e.getDirection($),i.props.direction),K={contentState:i.props.contentState,decoratedText:$,dir:z,start:k,end:A,blockKey:a,entityKey:I,offsetKey:S};return X1.createElement(b,A$({},x,K,{key:S}),v)}).toArray()},n.render=function(){var i=this,o=this.props,a=o.direction,s=o.offsetKey,l=F6e({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":a==="LTR","public/DraftStyleDefault/rtl":a==="RTL"});return X1.createElement("div",{"data-offset-key":s,className:l,ref:function(f){return i._node=f}},this._renderChildren())},t}(X1.Component),vG=W6e,Wk,az;function V6e(){if(az)return Wk;az=1;function e(t){var n=t||"",r=arguments.length;if(r>1)for(var i=1;i<r;i++){var o=arguments[i];o&&(n=(n?n+" ":"")+o)}return n}return Wk=e,Wk}var Vk,sz;function H6e(){if(sz)return Vk;sz=1;var e=Rf;function t(){return t=e||function(m){for(var v=1;v<arguments.length;v++){var y=arguments[v];for(var w in y)Object.prototype.hasOwnProperty.call(y,w)&&(m[w]=y[w])}return m},t.apply(this,arguments)}function n(m){for(var v=1;v<arguments.length;v++){var y=arguments[v]!=null?arguments[v]:{},w=Object.keys(y);typeof Object.getOwnPropertySymbols=="function"&&(w=w.concat(Object.getOwnPropertySymbols(y).filter(function(b){return Object.getOwnPropertyDescriptor(y,b).enumerable}))),w.forEach(function(b){r(m,b,y[b])})}return m}function r(m,v,y){return v in m?Object.defineProperty(m,v,{value:y,enumerable:!0,configurable:!0,writable:!0}):m[v]=y,m}function i(m,v){m.prototype=Object.create(v.prototype),m.prototype.constructor=m,m.__proto__=v}var o=vG,a=Bl,s=T,l=$f,u=V6e(),f=so,d=function(v,y,w,b){return l({"public/DraftStyleDefault/unorderedListItem":v==="unordered-list-item","public/DraftStyleDefault/orderedListItem":v==="ordered-list-item","public/DraftStyleDefault/reset":w,"public/DraftStyleDefault/depth0":y===0,"public/DraftStyleDefault/depth1":y===1,"public/DraftStyleDefault/depth2":y===2,"public/DraftStyleDefault/depth3":y===3,"public/DraftStyleDefault/depth4":y>=4,"public/DraftStyleDefault/listLTR":b==="LTR","public/DraftStyleDefault/listRTL":b==="RTL"})},p=function(m){i(v,m);function v(){return m.apply(this,arguments)||this}var y=v.prototype;return y.shouldComponentUpdate=function(b){var x=this.props.editorState,S=b.editorState,k=x.getDirectionMap(),A=S.getDirectionMap();if(k!==A)return!0;var $=x.getSelection().getHasFocus(),I=S.getSelection().getHasFocus();if($!==I)return!0;var z=S.getNativelyRenderedContent(),K=x.isInCompositionMode(),D=S.isInCompositionMode();if(x===S||z!==null&&S.getCurrentContent()===z||K&&D)return!1;var W=x.getCurrentContent(),ie=S.getCurrentContent(),ae=x.getDecorator(),q=S.getDecorator();return K!==D||W!==ie||ae!==q||S.mustForceSelection()},y.render=function(){for(var b=this.props,x=b.blockRenderMap,S=b.blockRendererFn,k=b.blockStyleFn,A=b.customStyleMap,$=b.customStyleFn,I=b.editorState,z=b.editorKey,K=b.preventScroll,D=b.textDirectionality,W=I.getCurrentContent(),ie=I.getSelection(),ae=I.mustForceSelection(),q=I.getDecorator(),G=f(I.getDirectionMap()),J=W.getBlocksAsArray(),le=[],Q=null,te=null,P=0;P<J.length;P++){var me=J[P],j=me.getKey(),L=me.getType(),oe=S(me),ue=void 0,se=void 0,Ee=void 0;oe&&(ue=oe.component,se=oe.props,Ee=oe.editable);var Re=D||G.get(j),ke=a.encode(j,0,0),De={contentState:W,block:me,blockProps:se,blockStyleFn:k,customStyleMap:A,customStyleFn:$,decorator:q,direction:Re,forceSelection:ae,offsetKey:ke,preventScroll:K,selection:ie,tree:I.getBlockTree(j)},Me=x.get(L)||x.get("unstyled"),Be=Me.wrapper,Ue=Me.element||x.get("unstyled").element,Ke=me.getDepth(),He="";if(k&&(He=k(me)),Ue==="li"){var lt=te!==Be||Q===null||Ke>Q;He=u(He,d(L,Ke,lt,Re))}var Xe=ue||o,nt={className:He,"data-block":!0,"data-editor":z,"data-offset-key":ke,key:j};Ee!==void 0&&(nt=n({},nt,{contentEditable:Ee,suppressContentEditableWarning:!0}));var mt=s.createElement(Ue,nt,s.createElement(Xe,t({},De,{key:j})));le.push({block:mt,wrapperTemplate:Be,key:j,offsetKey:ke}),Be?Q=me.getDepth():Q=null,te=Be}for(var ge=[],$e=0;$e<le.length;){var Te=le[$e];if(Te.wrapperTemplate){var Pe=[];do Pe.push(le[$e].block),$e++;while($e<le.length&&le[$e].wrapperTemplate===Te.wrapperTemplate);var U=s.cloneElement(Te.wrapperTemplate,{key:Te.key+"-wrap","data-offset-key":Te.offsetKey},Pe);ge.push(U)}else ge.push(Te.block),$e++}return s.createElement("div",{"data-contents":"true"},ge)},v}(s.Component);return Vk=p,Vk}var q6e=tc,G6e=q6e("draft_tree_data_support"),Y6e=G6e?A6e():H6e(),yG={isImage:function(t){return lz(t)[0]==="image"},isJpeg:function(t){var n=lz(t);return yG.isImage(t)&&(n[1]==="jpeg"||n[1]==="pjpeg")}};function lz(e){return e.split("/")}var X6e=yG,Z1=mn;function Z6e(e){var t=e.length;if(!Array.isArray(e)&&(typeof e=="object"||typeof e=="function")||Z1(!1),typeof t!="number"&&Z1(!1),t===0||t-1 in e||Z1(!1),typeof e.callee=="function"&&Z1(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch{}for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}function J6e(e){return!!e&&(typeof e=="object"||typeof e=="function")&&"length"in e&&!("setInterval"in e)&&typeof e.nodeType!="number"&&(Array.isArray(e)||"callee"in e||"item"in e)}function Q6e(e){return J6e(e)?Array.isArray(e)?e.slice():Z6e(e):[e]}var eUe=Q6e;function ES(e){return function(){return e}}var If=function(){};If.thatReturns=ES;If.thatReturnsFalse=ES(!1);If.thatReturnsTrue=ES(!0);If.thatReturnsNull=ES(null);If.thatReturnsThis=function(){return this};If.thatReturnsArgument=function(e){return e};var tUe=If,nUe=X6e,rUe=eUe,iUe=tUe,oUe=new RegExp(`\r
|
|
442
|
-
`,"g"),aUe=`
|
|
443
|
-
`,sUe={"text/rtf":1,"text/html":1};function lUe(e){if(e.kind=="file")return e.getAsFile()}var uUe=function(){function e(n){this.data=n,this.types=n.types?rUe(n.types):[]}var t=e.prototype;return t.isRichText=function(){return this.getHTML()&&this.getText()?!0:this.isImage()?!1:this.types.some(function(r){return sUe[r]})},t.getText=function(){var r;return this.data.getData&&(this.types.length?this.types.indexOf("text/plain")!=-1&&(r=this.data.getData("text/plain")):r=this.data.getData("Text")),r?r.replace(oUe,aUe):null},t.getHTML=function(){if(this.data.getData)if(this.types.length){if(this.types.indexOf("text/html")!=-1)return this.data.getData("text/html")}else return this.data.getData("Text")},t.isLink=function(){return this.types.some(function(r){return r.indexOf("Url")!=-1||r.indexOf("text/uri-list")!=-1||r.indexOf("text/x-moz-url")})},t.getLink=function(){if(this.data.getData){if(this.types.indexOf("text/x-moz-url")!=-1){var r=this.data.getData("text/x-moz-url").split(`
|
|
444
|
-
`);return r[0]}return this.types.indexOf("text/uri-list")!=-1?this.data.getData("text/uri-list"):this.data.getData("url")}return null},t.isImage=function(){var r=this.types.some(function(s){return s.indexOf("application/x-moz-file")!=-1});if(r)return!0;for(var i=this.getFiles(),o=0;o<i.length;o++){var a=i[o].type;if(!nUe.isImage(a))return!1}return!0},t.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},t.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(lUe).filter(iUe.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),bG=uUe,cUe=mn,uz=/\.textClipping$/,fUe={"text/plain":!0,"text/html":!0,"text/rtf":!0},dUe=5e3;function pUe(e,t){var n=0,r=[];e.forEach(function(i){hUe(i,function(o){n++,o&&r.push(o.slice(0,dUe)),n==e.length&&t(r.join("\r"))})})}function hUe(e,t){if(!ri.FileReader||e.type&&!(e.type in fUe)){t("");return}if(e.type===""){var n="";uz.test(e.name)&&(n=e.name.replace(uz,"")),t(n);return}var r=new FileReader;r.onload=function(){var i=r.result;typeof i!="string"&&cUe(!1),t(i)},r.onerror=function(){t("")},r.readAsText(e)}var _G=pUe;function gUe(e){return e==="handled"||e===!0}var kS=gUe,mUe=bG,xG=ao,wG=jn,vUe=xS,yUe=_S,bUe=_G,_Ue=Xq,xUe=qq,cz=kS,Hk=so;function wUe(e,t){var n=null,r=null,i=yUe(e.currentTarget);if(typeof i.caretRangeFromPoint=="function"){var o=i.caretRangeFromPoint(e.x,e.y);n=o.startContainer,r=o.startOffset}else if(e.rangeParent)n=e.rangeParent,r=e.rangeOffset;else return null;n=Hk(n),r=Hk(r);var a=Hk(vUe(n));return _Ue(t,a,r,a,r)}var SUe={onDragEnd:function(t){t.exitCurrentMode(),fz(t)},onDrop:function(t,n){var r=new mUe(n.nativeEvent.dataTransfer),i=t._latestEditorState,o=wUe(n.nativeEvent,i);if(n.preventDefault(),t._dragCount=0,t.exitCurrentMode(),o!=null){var a=r.getFiles();if(a.length>0){if(t.props.handleDroppedFiles&&cz(t.props.handleDroppedFiles(o,a)))return;bUe(a,function(l){l&&t.update(dz(i,o,l))});return}var s=t._internalDrag?"internal":"external";t.props.handleDrop&&cz(t.props.handleDrop(o,r,s))||(t._internalDrag?t.update(CUe(i,o)):t.update(dz(i,o,r.getText()))),fz(t)}}};function fz(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:xUe(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function CUe(e,t){var n=xG.moveText(e.getCurrentContent(),e.getSelection(),t);return wG.push(e,n,"insert-fragment")}function dz(e,t,n){var r=xG.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return wG.push(e,r,"insert-fragment")}var EUe=SUe;function kUe(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),i=t.getStartOffset(),o=!1;return r.some(function(a){return i===a.get("start")?(o=!0,!0):i<a.get("end")?a.get("leaves").some(function(s){var l=s.get("start");return i===l?(o=!0,!0):!1}):!1}),o}var TUe=kUe;(function(e,t){if(e.setImmediate)return;var n=1,r={},i=!1,o=e.document,a;function s(x){typeof x!="function"&&(x=new Function(""+x));for(var S=new Array(arguments.length-1),k=0;k<S.length;k++)S[k]=arguments[k+1];var A={callback:x,args:S};return r[n]=A,a(n),n++}function l(x){delete r[x]}function u(x){var S=x.callback,k=x.args;switch(k.length){case 0:S();break;case 1:S(k[0]);break;case 2:S(k[0],k[1]);break;case 3:S(k[0],k[1],k[2]);break;default:S.apply(t,k);break}}function f(x){if(i)setTimeout(f,0,x);else{var S=r[x];if(S){i=!0;try{u(S)}finally{l(x),i=!1}}}}function d(){a=function(x){process.nextTick(function(){f(x)})}}function p(){if(e.postMessage&&!e.importScripts){var x=!0,S=e.onmessage;return e.onmessage=function(){x=!1},e.postMessage("","*"),e.onmessage=S,x}}function m(){var x="setImmediate$"+Math.random()+"$",S=function(k){k.source===e&&typeof k.data=="string"&&k.data.indexOf(x)===0&&f(+k.data.slice(x.length))};e.addEventListener?e.addEventListener("message",S,!1):e.attachEvent("onmessage",S),a=function(k){e.postMessage(x+k,"*")}}function v(){var x=new MessageChannel;x.port1.onmessage=function(S){var k=S.data;f(k)},a=function(S){x.port2.postMessage(S)}}function y(){var x=o.documentElement;a=function(S){var k=o.createElement("script");k.onreadystatechange=function(){f(S),k.onreadystatechange=null,x.removeChild(k),k=null},x.appendChild(k)}}function w(){a=function(x){setTimeout(f,0,x)}}var b=Object.getPrototypeOf&&Object.getPrototypeOf(e);b=b&&b.setTimeout?b:e,{}.toString.call(e.process)==="[object process]"?d():p()?m():e.MessageChannel?v():o&&"onreadystatechange"in o.createElement("script")?y():w(),b.setImmediate=s,b.clearImmediate=l})(typeof self>"u"?ri:self);var AUe=ri.setImmediate,$Ue=ao,$$=jn,RUe=lo,pz=mI,OUe=kS,IUe=TUe,hz=so,DUe=AUe,PUe="'",LUe="/",MUe=RUe.isBrowser("Firefox");function FUe(e){return MUe&&(e==PUe||e==LUe)}function gz(e,t,n,r,i){var o=$Ue.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return $$.push(e,o,"insert-characters",i)}function NUe(e,t){e._pendingStateFromBeforeInput!==void 0&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,r=t.data;if(r){if(e.props.handleBeforeInput&&OUe(e.props.handleBeforeInput(r,n,t.timeStamp))){t.preventDefault();return}var i=n.getSelection(),o=i.getStartOffset(),a=i.getAnchorKey();if(!i.isCollapsed()){t.preventDefault(),e.update(gz(n,r,n.getCurrentInlineStyle(),pz(n.getCurrentContent(),n.getSelection()),!0));return}var s=gz(n,r,n.getCurrentInlineStyle(),pz(n.getCurrentContent(),n.getSelection()),!1),l=!1;if(l||(l=IUe(e._latestCommittedEditorState)),!l){var u=n.getBlockTree(a),f=s.getBlockTree(a);l=u.size!==f.size||u.zip(f).some(function(d){var p=d[0],m=d[1],v=p.get("start"),y=v+(v>=o?r.length:0),w=p.get("end"),b=w+(w>=o?r.length:0),x=m.get("start"),S=m.get("end"),k=m.get("decoratorKey");return p.get("decoratorKey")!==k||p.get("leaves").size!==m.get("leaves").size||y!==x||b!==S||k!=null&&S-x!==w-v})}if(l||(l=FUe(r)),l||(l=hz(s.getDirectionMap()).get(a)!==hz(n.getDirectionMap()).get(a)),l){t.preventDefault(),s=$$.set(s,{forceSelection:!0}),e.update(s);return}s=$$.set(s,{nativelyRenderedContent:s.getCurrentContent()}),e._pendingStateFromBeforeInput=s,DUe(function(){e._pendingStateFromBeforeInput!==void 0&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)})}}var BUe=NUe,jUe=jn,mz=yI,zUe=oG;function UUe(e,t){var n=t.currentTarget.ownerDocument;if(!e.props.preserveSelectionOnBlur&&zUe(n)===n.body){var r=n.defaultView.getSelection(),i=e.editor;r.rangeCount===1&&mz(i,r.anchorNode)&&mz(i,r.focusNode)&&r.removeAllRanges()}var o=e._latestEditorState,a=o.getSelection();if(a.getHasFocus()){var s=a.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(jUe.acceptSelection(o,s))}}var KUe=UUe,WUe=jn;function VUe(e,t){e.setMode("composite"),e.update(WUe.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}var HUe=VUe,qUe=hS;function GUe(e){var t=e.getSelection();return t.isCollapsed()?null:qUe(e.getCurrentContent(),t)}var SG=GUe,YUe=SG;function XUe(e,t){var n=e._latestEditorState,r=n.getSelection();if(r.isCollapsed()){t.preventDefault();return}e.setClipboard(YUe(e._latestEditorState))}var ZUe=XUe;function JUe(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1}var QUe=JUe,e9e=ao,t9e=jn,n9e=SS,r9e=SG,i9e=CS,o9e=QUe;function a9e(e,t){var n=e._latestEditorState,r=n.getSelection(),i=t.target,o;if(r.isCollapsed()){t.preventDefault();return}if(o9e(i)){var a=i;o=i9e(n9e.getScrollParent(a))}var s=r9e(n);e.setClipboard(s),e.setMode("cut"),setTimeout(function(){e.restoreEditorDOM(o),e.exitCurrentMode(),e.update(s9e(n))},0)}function s9e(e){var t=e9e.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return t9e.push(e,t,"remove-range")}var l9e=a9e;function u9e(e,t){e.setMode("drag"),t.preventDefault()}var c9e=u9e;function f9e(e){e._internalDrag=!0,e.setMode("drag")}var d9e=f9e,vz=jn,p9e=lo;function h9e(e,t){var n=e._latestEditorState,r=n.getSelection();if(!r.getHasFocus()){var i=r.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),p9e.isBrowser("Chrome < 60.0.3081.0")?e.update(vz.forceSelection(n,i)):e.update(vz.acceptSelection(n,i))}}var g9e=h9e,m9e=mn,CG=55296,v9e=56319,y9e=56320,EG=57343,b9e=/[\uD800-\uDFFF]/;function kG(e){return CG<=e&&e<=EG}function _9e(e,t){if(0<=t&&t<e.length||m9e(!1),t+1===e.length)return!1;var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return CG<=n&&n<=v9e&&y9e<=r&&r<=EG}function xI(e){return b9e.test(e)}function gp(e,t){return 1+kG(e.charCodeAt(t))}function x9e(e){if(!xI(e))return e.length;for(var t=0,n=0;n<e.length;n+=gp(e,n))t++;return t}function TG(e,t,n){if(t=t||0,n=n===void 0?1/0:n||0,!xI(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var i=0;if(t>0){for(;t>0&&i<r;t--)i+=gp(e,i);if(i>=r)return""}else if(t<0){for(i=r;t<0&&0<i;t++)i-=gp(e,i-1);i<0&&(i=0)}var o=r;if(n<r)for(o=i;n>0&&o<r;n--)o+=gp(e,o);return e.substring(i,o)}function w9e(e,t,n){t=t||0,n=n===void 0?1/0:n||0,t<0&&(t=0),n<0&&(n=0);var r=Math.abs(n-t);return t=t<n?t:n,TG(e,t,r)}function S9e(e){for(var t=[],n=0;n<e.length;n+=gp(e,n))t.push(e.codePointAt(n));return t}var C9e={getCodePoints:S9e,getUTF16Length:gp,hasSurrogateUnit:xI,isCodeUnitInSurrogateRange:kG,isSurrogatePair:_9e,strlen:x9e,substring:w9e,substr:TG},Df=C9e;function E9e(e,t){var n=e.getSelection(),r=e.getCurrentContent(),i=n.getStartKey(),o=n.getStartOffset(),a=i,s=0;if(t>o){var l=r.getKeyBefore(i);if(l==null)a=i;else{a=l;var u=r.getBlockForKey(l);s=u.getText().length}}else s=o-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})}var wI=E9e,k9e=ao,T9e=tc,yz=T9e("draft_tree_data_support");function A9e(e,t,n){var r=e.getSelection(),i=e.getCurrentContent(),o=r,a=r.getAnchorKey(),s=r.getFocusKey(),l=i.getBlockForKey(a);if(yz&&n==="forward"&&a!==s)return i;if(r.isCollapsed()){if(n==="forward"){if(e.isSelectionAtEndOfContent())return i;if(yz){var u=r.getAnchorOffset()===i.getBlockForKey(a).getLength();if(u){var f=i.getBlockForKey(l.nextSibling);if(!f||f.getLength()===0)return i}}}else if(e.isSelectionAtStartOfContent())return i;if(o=t(e),o===r)return i}return k9e.removeRange(i,o,n)}var Ay=A9e,$9e=jn,R9e=Df,O9e=wI,I9e=Ay;function D9e(e){var t=I9e(e,function(r){var i=r.getSelection(),o=r.getCurrentContent(),a=i.getAnchorKey(),s=i.getAnchorOffset(),l=o.getBlockForKey(a).getText()[s-1];return O9e(r,l?R9e.getUTF16Length(l,0):1)},"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return $9e.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}var AG=D9e,P9e=ao,L9e=Bl,M9e=jn,F9e=lo,N9e=eG,B9e=N9e.notEmptyKey,j9e=xS,z9e=AG,U9e=so,K9e=F9e.isEngine("Gecko"),W9e=`
|
|
445
|
-
|
|
446
|
-
`;function V9e(e,t){switch(e){case"deleteContentBackward":return z9e(t)}return t}function H9e(e,t){e._pendingStateFromBeforeInput!==void 0&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor,r=n.ownerDocument.defaultView.getSelection(),i=r.anchorNode,o=r.isCollapsed,a=(i==null?void 0:i.nodeType)!==Node.TEXT_NODE&&(i==null?void 0:i.nodeType)!==Node.ELEMENT_NODE;if(!(i==null||a)){if(i.nodeType===Node.TEXT_NODE&&(i.previousSibling!==null||i.nextSibling!==null)){var s=i.parentNode;if(s==null)return;i.nodeValue=s.textContent;for(var l=s.firstChild;l!=null;l=l.nextSibling)l!==i&&s.removeChild(l)}var u=i.textContent,f=e._latestEditorState,d=U9e(j9e(i)),p=L9e.decode(d),m=p.blockKey,v=p.decoratorKey,y=p.leafKey,w=f.getBlockTree(m).getIn([v,"leaves",y]),b=w.start,x=w.end,S=f.getCurrentContent(),k=S.getBlockForKey(m),A=k.getText().slice(b,x);if(u.endsWith(W9e)&&(u=u.slice(0,-1)),u===A){var $=t.nativeEvent.inputType;if($){var I=V9e($,f);if(I!==f){e.restoreEditorDOM(),e.update(I);return}}return}var z=f.getSelection(),K=z.merge({anchorOffset:b,focusOffset:x,isBackward:!1}),D=k.getEntityAt(b),W=B9e(D)?S.getEntity(D):null,ie=W!=null?W.getMutability():null,ae=ie==="MUTABLE",q=ae?"spellcheck-change":"apply-entity",G=P9e.replaceText(S,K,u,k.getInlineStyleAt(b),ae?k.getEntityAt(b):null),J,le,Q,te;if(K9e)J=r.anchorOffset,le=r.focusOffset,Q=b+Math.min(J,le),te=Q+Math.abs(J-le),J=Q,le=te;else{var P=u.length-A.length;Q=z.getStartOffset(),te=z.getEndOffset(),J=o?te+P:Q,le=te+P}var me=G.merge({selectionBefore:S.getSelectionAfter(),selectionAfter:z.merge({anchorOffset:J,focusOffset:le})});e.update(M9e.push(f,me,q))}}var q9e=H9e,G9e=wS;function Y9e(e){return e.which===G9e.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))}var X9e=Y9e,Z9e=lo,J9e=X9e,qk=Z9e.isPlatform("Mac OS X"),$G={isCtrlKeyCommand:function(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function(t){return qk&&t.altKey},usesMacOSHeuristics:function(){return qk},hasCommandModifier:function(t){return qk?!!t.metaKey&&!t.altKey:$G.isCtrlKeyCommand(t)},isSoftNewlineEvent:J9e},SI=$G,bz=ao,_z=jn,Q9e=hS,e8e=so,Gk=null,t8e={cut:function(t){var n=t.getCurrentContent(),r=t.getSelection(),i=null;if(r.isCollapsed()){var o=r.getAnchorKey(),a=n.getBlockForKey(o).getLength();if(a===r.getAnchorOffset()){var s=n.getKeyAfter(o);if(s==null)return t;i=r.set("focusKey",s).set("focusOffset",0)}else i=r.set("focusOffset",a)}else i=r;i=e8e(i),Gk=Q9e(n,i);var l=bz.removeRange(n,i,"forward");return l===n?t:_z.push(t,l,"remove-range")},paste:function(t){if(!Gk)return t;var n=bz.replaceWithFragment(t.getCurrentContent(),t.getSelection(),Gk);return _z.push(t,n,"insert-fragment")}},n8e=t8e,r8e=lo,i8e=mn,o8e=r8e.isBrowser("Chrome");function a8e(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;r!=null;r=r.parentNode){var i=r===e.commonAncestorContainer;i?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var o=Array.from(t.getClientRects());if(n.push(o),i){var a;return n.reverse(),(a=[]).concat.apply(a,n)}t.setEndBefore(r)}i8e(!1)}var s8e=o8e?a8e:function(e){return Array.from(e.getClientRects())},RG=s8e,l8e=Df,u8e=_S,xz=RG,R$=mn;function c8e(e){var t=getComputedStyle(e),n=u8e(e),r=n.createElement("div");r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.fontStyle=t.fontStyle,r.style.fontWeight=t.fontWeight,r.style.lineHeight=t.lineHeight,r.style.position="absolute",r.textContent="M";var i=n.body;i||R$(!1),i.appendChild(r);var o=r.getBoundingClientRect();return i.removeChild(r),o.height}function wz(e,t){for(var n=1/0,r=1/0,i=-1/0,o=-1/0,a=0;a<e.length;a++){var s=e[a];s.width===0||s.width===1||(n=Math.min(n,s.top),r=Math.min(r,s.bottom),i=Math.max(i,s.top),o=Math.max(o,s.bottom))}return i<=r&&i-n<t&&o-r<t}function f8e(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}function d8e(e){e.collapsed||R$(!1),e=e.cloneRange();var t=e.startContainer;t.nodeType!==1&&(t=t.parentNode);var n=c8e(t),r=e.endContainer,i=e.endOffset;for(e.setStart(e.startContainer,0);wz(xz(e),n)&&(r=e.startContainer,i=e.startOffset,r.parentNode||R$(!1),e.setStartBefore(r),!(r.nodeType===1&&getComputedStyle(r).display!=="inline")););var o=r,a=i-1;do{for(var s=o.nodeValue,l=a;l>=0;l--)if(!(s!=null&&l>0&&l8e.isSurrogatePair(s,l-1)))if(e.setStart(o,l),wz(xz(e),n))r=o,i=l;else break;if(l===-1||o.childNodes.length===0)break;o=o.childNodes[l],a=f8e(o)}while(!0);return e.setStart(r,i),e}var p8e=d8e,h8e=jn,g8e=p8e,m8e=Zq,v8e=wI,y8e=Ay;function b8e(e,t){var n=y8e(e,function(r){var i=r.getSelection();if(i.isCollapsed()&&i.getAnchorOffset()===0)return v8e(r,1);var o=t.currentTarget.ownerDocument,a=o.defaultView.getSelection(),s=a.getRangeAt(0);return s=g8e(s),m8e(r,null,s.endContainer,s.endOffset,s.startContainer,s.startOffset).selectionState},"backward");return n===e.getCurrentContent()?e:h8e.push(e,n,"remove-range")}var _8e=b8e,x8e=`[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]`,w8e={getPunctuation:function(){return x8e}},S8e=w8e,C8e=S8e.getPunctuation(),OG="['‘’]",mp="\\s|(?![_])"+C8e,E8e="^(?:"+mp+")*(?:"+OG+"|(?!"+mp+").)*(?:(?!"+mp+").)",k8e=new RegExp(E8e),T8e="(?:(?!"+mp+").)(?:"+OG+"|(?!"+mp+").)*(?:"+mp+")*$",A8e=new RegExp(T8e);function Sz(e,t){var n=t?A8e.exec(e):k8e.exec(e);return n?n[0]:e}var $8e={getBackward:function(t){return Sz(t,!0)},getForward:function(t){return Sz(t,!1)}},IG=$8e,R8e=IG,O8e=jn,Cz=wI,I8e=Ay;function D8e(e){var t=I8e(e,function(n){var r=n.getSelection(),i=r.getStartOffset();if(i===0)return Cz(n,1);var o=r.getStartKey(),a=n.getCurrentContent(),s=a.getBlockForKey(o).getText().slice(0,i),l=R8e.getBackward(s);return Cz(n,l.length||1)},"backward");return t===e.getCurrentContent()?e:O8e.push(e,t,"remove-range")}var P8e=D8e;function L8e(e,t){var n=e.getSelection(),r=n.getStartKey(),i=n.getStartOffset(),o=e.getCurrentContent(),a=r,s,l=o.getBlockForKey(r);return t>l.getText().length-i?(a=o.getKeyAfter(r),s=0):s=i+t,n.merge({focusKey:a,focusOffset:s})}var DG=L8e,M8e=IG,F8e=jn,N8e=DG,B8e=Ay;function j8e(e){var t=B8e(e,function(n){var r=n.getSelection(),i=r.getStartOffset(),o=r.getStartKey(),a=n.getCurrentContent(),s=a.getBlockForKey(o).getText().slice(i),l=M8e.getForward(s);return N8e(n,l.length||1)},"forward");return t===e.getCurrentContent()?e:F8e.push(e,t,"remove-range")}var z8e=j8e,U8e=ao,K8e=jn;function W8e(e){var t=U8e.splitBlock(e.getCurrentContent(),e.getSelection());return K8e.push(e,t,"split-block")}var V8e=W8e,H8e=jn;function q8e(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent(),i=r.getBlockForKey(n).getLength();return H8e.set(e,{selection:t.merge({anchorKey:n,anchorOffset:i,focusKey:n,focusOffset:i,isBackward:!1}),forceSelection:!0})}var G8e=q8e,Y8e=jn;function X8e(e){var t=e.getSelection(),n=t.getStartKey();return Y8e.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}var Z8e=X8e,J8e=jn,Q8e=Df,e7e=DG,t7e=Ay;function n7e(e){var t=t7e(e,function(r){var i=r.getSelection(),o=r.getCurrentContent(),a=i.getAnchorKey(),s=i.getAnchorOffset(),l=o.getBlockForKey(a).getText()[s];return e7e(r,l?Q8e.getUTF16Length(l,0):1)},"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return J8e.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}var r7e=n7e,Ez=ao,kz=jn,i7e=hS;function o7e(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(n===0)return e;var r=t.getAnchorKey(),i=e.getCurrentContent(),o=i.getBlockForKey(r),a=o.getLength();if(a<=1)return e;var s,l;n===a?(s=t.set("anchorOffset",n-1),l=t):(s=t.set("focusOffset",n+1),l=s.set("anchorOffset",n+1));var u=i7e(i,s),f=Ez.removeRange(i,s,"backward"),d=f.getSelectionAfter(),p=d.getAnchorOffset()-1,m=d.merge({anchorOffset:p,focusOffset:p}),v=Ez.replaceWithFragment(f,m,u),y=kz.push(e,v,"insert-fragment");return kz.acceptSelection(y,l)}var a7e=o7e,Yk=jn;function s7e(e,t,n){var r=Yk.undo(t);if(t.getLastChangeType()==="spellcheck-change"){var i=r.getCurrentContent();n(Yk.set(r,{nativelyRenderedContent:i}));return}if(e.preventDefault(),!t.getNativelyRenderedContent()){n(r);return}n(Yk.set(t,{nativelyRenderedContent:null})),setTimeout(function(){n(r)},0)}var l7e=s7e,u7e=ao,PG=jn,c7e=SI,fl=wS,Tz=n8e,f7e=lo,Az=kS,d7e=_8e,p7e=P8e,h7e=z8e,g7e=V8e,m7e=G8e,v7e=Z8e,y7e=AG,b7e=r7e,_7e=a7e,x7e=l7e,$z=c7e.isOptionKeyCommand,Rz=f7e.isBrowser("Chrome");function w7e(e,t,n){switch(e){case"redo":return PG.redo(t);case"delete":return b7e(t);case"delete-word":return h7e(t);case"backspace":return y7e(t);case"backspace-word":return p7e(t);case"backspace-to-start-of-line":return d7e(t,n);case"split-block":return g7e(t);case"transpose-characters":return _7e(t);case"move-selection-to-start-of-block":return v7e(t);case"move-selection-to-end-of-block":return m7e(t);case"secondary-cut":return Tz.cut(t);case"secondary-paste":return Tz.paste(t);default:return t}}function S7e(e,t){var n=t.which,r=e._latestEditorState;function i(l){var u=e.props[l];return u?(u(t),!0):!1}switch(n){case fl.RETURN:if(t.preventDefault(),e.props.handleReturn&&Az(e.props.handleReturn(t,r)))return;break;case fl.ESC:if(t.preventDefault(),i("onEscape"))return;break;case fl.TAB:if(i("onTab"))return;break;case fl.UP:if(i("onUpArrow"))return;break;case fl.RIGHT:if(i("onRightArrow"))return;break;case fl.DOWN:if(i("onDownArrow"))return;break;case fl.LEFT:if(i("onLeftArrow"))return;break;case fl.SPACE:Rz&&$z(t)&&t.preventDefault()}var o=e.props.keyBindingFn(t);if(o==null||o===""){if(n===fl.SPACE&&Rz&&$z(t)){var a=u7e.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(PG.push(r,a,"insert-characters"))}return}if(o==="undo"){x7e(t,r,e.update);return}if(t.preventDefault(),!(e.props.handleKeyCommand&&Az(e.props.handleKeyCommand(o,r,t.timeStamp)))){var s=w7e(o,r,t);s!==r&&e.update(s)}}var C7e=S7e;function E7e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k7e=function(){function e(n){E7e(this,"_uri",void 0),this._uri=n}var t=e.prototype;return t.toString=function(){return this._uri},e}(),T7e=k7e,A7e=lo,$7e=mn,R7e=A7e.isBrowser("IE <= 9");function O7e(e){var t,n=null;return!R7e&&document.implementation&&document.implementation.createHTMLDocument&&(t=document.implementation.createHTMLDocument("foo"),t.documentElement||$7e(!1),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}var LG=O7e,I7e=Of;function D7e(e){return!e||!e.ownerDocument?!1:I7e(e)&&e.nodeName==="A"}var P7e=D7e,L7e=Of;function M7e(e){return!e||!e.ownerDocument?!1:L7e(e)&&e.nodeName==="IMG"}var F7e=M7e,Cc;function Xk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){ei(e,i,n[i])})}return e}function ei(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N7e=xa,B7e=Af,j7e=wa,z7e=hI,Oz=gS,MG=T7e,am=$f,Iz=Ws,U7e=LG,FG=tc,CI=un,uu=CI.List,NG=CI.Map,K7e=CI.OrderedSet,BG=P7e,W7e=nG,EI=Ty,jG=F7e,Dz=FG("draft_tree_data_support"),V7e=" ",zG=" ",H7e=new RegExp("\r","g"),q7e=new RegExp(`
|
|
447
|
-
`,"g"),G7e=new RegExp(`^
|
|
448
|
-
`,"g"),Y7e=new RegExp(V7e,"g"),X7e=new RegExp(" ?","g"),Z7e=new RegExp("​?","g"),J7e=["bold","bolder","500","600","700","800","900"],Q7e=["light","lighter","normal","100","200","300","400"],eKe=["className","href","rel","target","title"],tKe=["alt","className","height","src","width"],Pz=(Cc={},ei(Cc,am("public/DraftStyleDefault/depth0"),0),ei(Cc,am("public/DraftStyleDefault/depth1"),1),ei(Cc,am("public/DraftStyleDefault/depth2"),2),ei(Cc,am("public/DraftStyleDefault/depth3"),3),ei(Cc,am("public/DraftStyleDefault/depth4"),4),Cc),Lz=NG({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),nKe=function(t){var n={};return t.mapKeys(function(r,i){var o=[i.element];i.aliasedElements!==void 0&&o.push.apply(o,i.aliasedElements),o.forEach(function(a){n[a]===void 0?n[a]=r:typeof n[a]=="string"?n[a]=[n[a],r]:n[a].push(r)})}),NG(n)},rKe=function(t){if(EI(t)){var n=t;if(n.style.fontFamily.includes("monospace"))return"CODE"}return null},iKe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Object.keys(Pz).some(function(r){t.classList.contains(r)&&(n=Pz[r])}),n},oKe=function(t){if(!BG(t))return!1;var n=t;if(!n.href||n.protocol!=="http:"&&n.protocol!=="https:"&&n.protocol!=="mailto:"&&n.protocol!=="tel:")return!1;try{var r=new MG(n.href);return!0}catch{return!1}},aKe=function(t){if(!jG(t))return!1;var n=t;return!!(n.attributes.getNamedItem("src")&&n.attributes.getNamedItem("src").value)},sKe=function(t,n){if(!EI(t))return n;var r=t,i=r.style.fontWeight,o=r.style.fontStyle,a=r.style.textDecoration;return n.withMutations(function(s){J7e.indexOf(i)>=0?s.add("BOLD"):Q7e.indexOf(i)>=0&&s.remove("BOLD"),o==="italic"?s.add("ITALIC"):o==="normal"&&s.remove("ITALIC"),a==="underline"&&s.add("UNDERLINE"),a==="line-through"&&s.add("STRIKETHROUGH"),a==="none"&&(s.remove("UNDERLINE"),s.remove("STRIKETHROUGH"))})},Zk=function(t){return t==="ul"||t==="ol"},lKe=function(){function e(n,r){ei(this,"characterList",uu()),ei(this,"currentBlockType","unstyled"),ei(this,"currentDepth",0),ei(this,"currentEntity",null),ei(this,"currentText",""),ei(this,"wrapper",null),ei(this,"blockConfigs",[]),ei(this,"contentBlocks",[]),ei(this,"entityMap",Oz),ei(this,"blockTypeMap",void 0),ei(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=n,this.disambiguate=r}var t=e.prototype;return t.clear=function(){this.characterList=uu(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=Oz,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(r){var i;return this.contentBlocks=[],this.currentDepth=0,(i=this.blockConfigs).push.apply(i,this._toBlockConfigs([r],K7e())),this._trimCurrentText(),this.currentText!==""&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return this.contentBlocks.length===0&&(Dz?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=r.key||Iz(),o=Xk({key:i,type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:uu(),prevSibling:null,nextSibling:null,childConfigs:[]},r);return this.characterList=uu(),this.currentBlockType="unstyled",this.currentText="",o},t._toBlockConfigs=function(r,i){for(var o=[],a=0;a<r.length;a++){var s=r[a],l=s.nodeName.toLowerCase();if(l==="body"||Zk(l)){this._trimCurrentText(),this.currentText!==""&&o.push(this._makeBlockConfig());var u=this.currentDepth,f=this.wrapper;Zk(l)&&(this.wrapper=l,Zk(f)&&this.currentDepth++),o.push.apply(o,this._toBlockConfigs(Array.from(s.childNodes),i)),this.currentDepth=u,this.wrapper=f;continue}var d=this.blockTypeMap.get(l);if(d!==void 0){this._trimCurrentText(),this.currentText!==""&&o.push(this._makeBlockConfig());var p=this.currentDepth,m=this.wrapper;if(this.wrapper=l==="pre"?"pre":this.wrapper,typeof d!="string"&&(d=this.disambiguate(l,this.wrapper)||d[0]||"unstyled"),!Dz&&EI(s)&&(d==="unordered-list-item"||d==="ordered-list-item")){var v=s;this.currentDepth=iKe(v,this.currentDepth)}var y=Iz(),w=this._toBlockConfigs(Array.from(s.childNodes),i);this._trimCurrentText(),o.push(this._makeBlockConfig({key:y,childConfigs:w,type:d})),this.currentDepth=p,this.wrapper=m;continue}if(l==="#text"){this._addTextNode(s,i);continue}if(l==="br"){this._addBreakNode(s,i);continue}if(aKe(s)){this._addImgNode(s,i);continue}if(oKe(s)){this._addAnchorNode(s,o,i);continue}var b=i;Lz.has(l)&&(b=b.add(Lz.get(l))),b=sKe(s,b);var x=rKe(s);x!=null&&(b=b.add(x)),o.push.apply(o,this._toBlockConfigs(Array.from(s.childNodes),b))}return o},t._appendText=function(r,i){var o;this.currentText+=r;var a=N7e.create({style:i,entity:this.currentEntity});this.characterList=(o=this.characterList).push.apply(o,Array(r.length).fill(a))},t._trimCurrentText=function(){var r=this.currentText.length,i=r-this.currentText.trimLeft().length,o=this.currentText.trimRight().length,a=this.characterList.findEntry(function(s){return s.getEntity()!==null});i=a!==void 0?Math.min(i,a[0]):i,a=this.characterList.reverse().findEntry(function(s){return s.getEntity()!==null}),o=a!==void 0?Math.max(o,r-a[0]):o,i>o?(this.currentText="",this.characterList=uu()):(this.currentText=this.currentText.slice(i,o),this.characterList=this.characterList.slice(i,o))},t._addTextNode=function(r,i){var o=r.textContent,a=o.trim();a===""&&this.wrapper!=="pre"&&(o=" "),this.wrapper!=="pre"&&(o=o.replace(G7e,""),o=o.replace(q7e,zG)),this._appendText(o,i)},t._addBreakNode=function(r,i){W7e(r)&&this._appendText(`
|
|
449
|
-
`,i)},t._addImgNode=function(r,i){if(jG(r)){var o=r,a={};tKe.forEach(function(s){var l=o.getAttribute(s);l&&(a[s]=l)}),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",a),FG("draftjs_fix_paste_for_img")?o.getAttribute("role")!=="presentation"&&this._appendText("📷",i):this._appendText("📷",i),this.currentEntity=null}},t._addAnchorNode=function(r,i,o){if(BG(r)){var a=r,s={};eKe.forEach(function(l){var u=a.getAttribute(l);u&&(s[l]=u)}),s.url=new MG(a.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",s||{}),i.push.apply(i,this._toBlockConfigs(Array.from(r.childNodes),o)),this.currentEntity=null}},t._toContentBlocks=function(r){for(var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,o=r.length-1,a=0;a<=o;a++){var s=r[a];s.parent=i,s.prevSibling=a>0?r[a-1].key:null,s.nextSibling=a<o?r[a+1].key:null,s.children=uu(s.childConfigs.map(function(l){return l.key})),this.contentBlocks.push(new j7e(Xk({},s))),this._toContentBlocks(s.childConfigs,s.key)}},t._hoistContainersInBlockConfigs=function(r){var i=this,o=uu(r).flatMap(function(a){return a.type!=="unstyled"||a.text!==""?[a]:i._hoistContainersInBlockConfigs(a.childConfigs)});return o},t._toFlatContentBlocks=function(r){var i=this,o=this._hoistContainersInBlockConfigs(r);o.forEach(function(a){var s=i._extractTextFromBlockConfigs(a.childConfigs),l=s.text,u=s.characterList;i.contentBlocks.push(new B7e(Xk({},a,{text:a.text+l,characterList:a.characterList.concat(u)})))})},t._extractTextFromBlockConfigs=function(r){for(var i=r.length-1,o="",a=uu(),s=0;s<=i;s++){var l=r[s];o+=l.text,a=a.concat(l.characterList),o!==""&&l.type!=="unstyled"&&(o+=`
|
|
450
|
-
`,a=a.push(a.last()));var u=this._extractTextFromBlockConfigs(l.childConfigs);o+=u.text,a=a.concat(u.characterList)}return{text:o,characterList:a}},e}(),uKe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:U7e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:z7e;t=t.trim().replace(H7e,"").replace(Y7e,zG).replace(X7e,"").replace(Z7e,"");var i=n(t);if(!i)return null;var o=nKe(r),a=function(l,u){return l==="li"?u==="ol"?"ordered-list-item":"unordered-list-item":null};return new lKe(o,a).addDOMNode(i).getContentBlocks()},UG=uKe;function cKe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){fKe(e,i,n[i])})}return e}function fKe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dKe=Af,pKe=wa,hKe=UG,gKe=Ws,mKe=LG,vKe=tc,KG=un,yKe=Cq,bKe=KG.List,_Ke=KG.Repeat,WG=vKe("draft_tree_data_support"),xKe=WG?pKe:dKe,wKe={processHTML:function(t,n){return hKe(t,mKe,n)},processText:function(t,n,r){return t.reduce(function(i,o,a){o=yKe(o);var s=gKe(),l={key:s,type:r,text:o,characterList:bKe(_Ke(n,o.length))};if(WG&&a!==0){var u=a-1,f=i[u]=i[u].merge({nextSibling:s});l=cKe({},l,{prevSibling:f.getKey()})}return i.push(new xKe(l)),i},[])}},SKe=wKe;function CKe(e,t,n,r){var i=t.getStartKey(),o=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil(function(l,u){return u===i}).takeUntil(function(l,u){return u===o}).concat([[o,a.get(o)]]).map(function(l){var u=l.getDepth()+n;return u=Math.max(0,Math.min(u,r)),l.set("depth",u)});return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})}var EKe=CKe,Ec=ao,hs=jn,kKe=EKe,TKe=so,vs={currentBlockContainsLink:function(t){var n=t.getSelection(),r=t.getCurrentContent(),i=r.getEntityMap();return r.getBlockForKey(n.getAnchorKey()).getCharacterList().slice(n.getStartOffset(),n.getEndOffset()).some(function(o){var a=o.getEntity();return!!a&&i.__get(a).getType()==="LINK"})},getCurrentBlockType:function(t){var n=t.getSelection();return t.getCurrentContent().getBlockForKey(n.getStartKey()).getType()},getDataObjectForLinkURL:function(t){return{url:t.toString()}},handleKeyCommand:function(t,n,r){switch(n){case"bold":return vs.toggleInlineStyle(t,"BOLD");case"italic":return vs.toggleInlineStyle(t,"ITALIC");case"underline":return vs.toggleInlineStyle(t,"UNDERLINE");case"code":return vs.toggleCode(t);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return vs.onBackspace(t);case"delete":case"delete-word":case"delete-to-end-of-block":return vs.onDelete(t);default:return null}},insertSoftNewline:function(t){var n=Ec.insertText(t.getCurrentContent(),t.getSelection(),`
|
|
451
|
-
`,t.getCurrentInlineStyle(),null),r=hs.push(t,n,"insert-characters");return hs.forceSelection(r,n.getSelectionAfter())},onBackspace:function(t){var n=t.getSelection();if(!n.isCollapsed()||n.getAnchorOffset()||n.getFocusOffset())return null;var r=t.getCurrentContent(),i=n.getStartKey(),o=r.getBlockBefore(i);if(o&&o.getType()==="atomic"){var a=r.getBlockMap().delete(o.getKey()),s=r.merge({blockMap:a,selectionAfter:n});if(s!==r)return hs.push(t,s,"remove-range")}var l=vs.tryToRemoveBlockStyle(t);return l?hs.push(t,l,"change-block-type"):null},onDelete:function(t){var n=t.getSelection();if(!n.isCollapsed())return null;var r=t.getCurrentContent(),i=n.getStartKey(),o=r.getBlockForKey(i),a=o.getLength();if(n.getStartOffset()<a)return null;var s=r.getBlockAfter(i);if(!s||s.getType()!=="atomic")return null;var l=n.merge({focusKey:s.getKey(),focusOffset:s.getLength()}),u=Ec.removeRange(r,l,"forward");return u!==r?hs.push(t,u,"remove-range"):null},onTab:function(t,n,r){var i=n.getSelection(),o=i.getAnchorKey();if(o!==i.getFocusKey())return n;var a=n.getCurrentContent(),s=a.getBlockForKey(o),l=s.getType();if(l!=="unordered-list-item"&&l!=="ordered-list-item")return n;t.preventDefault();var u=s.getDepth();if(!t.shiftKey&&u===r)return n;var f=kKe(a,i,t.shiftKey?-1:1,r);return hs.push(n,f,"adjust-depth")},toggleBlockType:function(t,n){var r=t.getSelection(),i=r.getStartKey(),o=r.getEndKey(),a=t.getCurrentContent(),s=r;if(i!==o&&r.getEndOffset()===0){var l=TKe(a.getBlockBefore(o));o=l.getKey(),s=s.merge({anchorKey:i,anchorOffset:r.getStartOffset(),focusKey:o,focusOffset:l.getLength(),isBackward:!1})}var u=a.getBlockMap().skipWhile(function(d,p){return p!==i}).reverse().skipWhile(function(d,p){return p!==o}).some(function(d){return d.getType()==="atomic"});if(u)return t;var f=a.getBlockForKey(i).getType()===n?"unstyled":n;return hs.push(t,Ec.setBlockType(a,s,f),"change-block-type")},toggleCode:function(t){var n=t.getSelection(),r=n.getAnchorKey(),i=n.getFocusKey();return n.isCollapsed()||r!==i?vs.toggleBlockType(t,"code-block"):vs.toggleInlineStyle(t,"CODE")},toggleInlineStyle:function(t,n){var r=t.getSelection(),i=t.getCurrentInlineStyle();if(r.isCollapsed())return hs.setInlineStyleOverride(t,i.has(n)?i.remove(n):i.add(n));var o=t.getCurrentContent(),a;return i.has(n)?a=Ec.removeInlineStyle(o,r,n):a=Ec.applyInlineStyle(o,r,n),hs.push(t,a,"change-inline-style")},toggleLink:function(t,n,r){var i=Ec.applyEntity(t.getCurrentContent(),n,r);return hs.push(t,i,"apply-entity")},tryToRemoveBlockStyle:function(t){var n=t.getSelection(),r=n.getAnchorOffset();if(n.isCollapsed()&&r===0){var i=n.getAnchorKey(),o=t.getCurrentContent(),a=o.getBlockForKey(i),s=a.getType(),l=o.getBlockBefore(i);if(s==="code-block"&&l&&l.getType()==="code-block"&&l.getLength()!==0)return null;if(s!=="unstyled")return Ec.setBlockType(o,n,"unstyled")}return null}},VG=vs,AKe=/\r\n?|\n/g;function $Ke(e){return e.split(AKe)}var RKe=$Ke,Jk=_y,Mz=xa,OKe=bG,HG=ao,Qk=SKe,qG=jn,Fz=VG,Nz=mI,IKe=_G,Bz=kS,jz=RKe;function DKe(e,t){t.preventDefault();var n=new OKe(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),i=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&Bz(e.props.handlePastedFiles(r)))return;IKe(r,function($){if($=$||i,!!$){var I=e._latestEditorState,z=jz($),K=Mz.create({style:I.getCurrentInlineStyle(),entity:Nz(I.getCurrentContent(),I.getSelection())}),D=Fz.getCurrentBlockType(I),W=Qk.processText(z,K,D),ie=Jk.createFromArray(W),ae=HG.replaceWithFragment(I.getCurrentContent(),I.getSelection(),ie);e.update(qG.push(I,ae,"insert-fragment"))}});return}}var o=[],a=n.getText(),s=n.getHTML(),l=e._latestEditorState;if(e.props.formatPastedText){var u=e.props.formatPastedText(a,s),f=u.text,d=u.html;a=f,s=d}if(!(e.props.handlePastedText&&Bz(e.props.handlePastedText(a,s,l)))){if(a&&(o=jz(a)),!e.props.stripPastedStyles){var p=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&p){var m;if(((m=s)===null||m===void 0?void 0:m.indexOf(e.getEditorKey()))!==-1||o.length===1&&p.size===1&&p.first().getText()===a){e.update(J1(e._latestEditorState,p));return}}else if(p&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&PKe(o,p)){e.update(J1(e._latestEditorState,p));return}if(s){var v=Qk.processHTML(s,e.props.blockRenderMap);if(v){var y=v.contentBlocks,w=v.entityMap;if(y){var b=Jk.createFromArray(y);e.update(J1(e._latestEditorState,b,w));return}}}e.setClipboard(null)}if(o.length){var x=Mz.create({style:l.getCurrentInlineStyle(),entity:Nz(l.getCurrentContent(),l.getSelection())}),S=Fz.getCurrentBlockType(l),k=Qk.processText(o,x,S),A=Jk.createFromArray(k);e.update(J1(e._latestEditorState,A))}}}function J1(e,t,n){var r=HG.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return qG.push(e,r.set("entityMap",n),"insert-fragment")}function PKe(e,t){return e.length===t.size&&t.valueSeq().every(function(n,r){return n.getText()===e[r]})}var LKe=DKe,GG=lo,MKe=BUe,FKe=KUe,NKe=HUe,BKe=ZUe,jKe=l9e,zKe=c9e,UKe=d9e,KKe=g9e,WKe=q9e,VKe=C7e,HKe=LKe,YG=Qq,qKe=GG.isBrowser("Chrome"),GKe=GG.isBrowser("Firefox"),zz=qKe||GKe?YG:function(e){},YKe={onBeforeInput:MKe,onBlur:FKe,onCompositionStart:NKe,onCopy:BKe,onCut:jKe,onDragOver:zKe,onDragStart:UKe,onFocus:KKe,onInput:WKe,onKeyDown:VKe,onPaste:HKe,onSelect:YG,onMouseUp:zz,onKeyUp:zz},XKe=YKe,ZKe=_f,JKe=ZKe.unstable_flushControlled,QKe=JKe;function eWe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var eT=T,Uz=$f,tWe=function(e){eWe(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.shouldComponentUpdate=function(i){return this.props.text!==i.text||this.props.editorState.getSelection().getHasFocus()!==i.editorState.getSelection().getHasFocus()},n.render=function(){var i=this.props.editorState.getSelection().getHasFocus(),o=Uz({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":i}),a={whiteSpace:"pre-wrap"};return eT.createElement("div",{className:o},eT.createElement("div",{className:Uz("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:a},this.props.text))},t}(eT.Component),nWe=tWe,XG=SI,sm=wS,ZG=lo,Cu=ZG.isPlatform("Mac OS X"),Kz=Cu&&ZG.isBrowser("Firefox < 29"),mu=XG.hasCommandModifier,dl=XG.isCtrlKeyCommand;function JG(e){return Cu&&e.altKey||dl(e)}function rWe(e){return mu(e)?e.shiftKey?"redo":"undo":null}function iWe(e){return!Cu&&e.shiftKey?null:JG(e)?"delete-word":"delete"}function oWe(e){return mu(e)&&Cu?"backspace-to-start-of-line":JG(e)?"backspace-word":"backspace"}function aWe(e){switch(e.keyCode){case 66:return mu(e)?"bold":null;case 68:return dl(e)?"delete":null;case 72:return dl(e)?"backspace":null;case 73:return mu(e)?"italic":null;case 74:return mu(e)?"code":null;case 75:return Cu&&dl(e)?"secondary-cut":null;case 77:return dl(e)?"split-block":null;case 79:return dl(e)?"split-block":null;case 84:return Cu&&dl(e)?"transpose-characters":null;case 85:return mu(e)?"underline":null;case 87:return Cu&&dl(e)?"backspace-word":null;case 89:return dl(e)?Cu?"secondary-paste":"redo":null;case 90:return rWe(e)||null;case sm.RETURN:return"split-block";case sm.DELETE:return iWe(e);case sm.BACKSPACE:return oWe(e);case sm.LEFT:return Kz&&mu(e)?"move-selection-to-start-of-block":null;case sm.RIGHT:return Kz&&mu(e)?"move-selection-to-end-of-block":null;default:return null}}var QG=aWe,sWe=Rf;function O$(){return O$=sWe||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},O$.apply(this,arguments)}function tT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){wt(e,i,n[i])})}return e}function Et(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eY(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var lWe=hI,uWe=Bq,cWe=S5e,fWe=Y6e,dWe=EUe,pWe=XKe,Wz=QKe,hWe=nWe,gWe=rG,mWe=jn,fu=T,vWe=_I,yWe=SS,bWe=lo,nT=$f,_We=Ws,xWe=QG,wWe=CS,SWe=tc,Vz=mn,Hz=Ty,CWe=so,tY=bWe.isBrowser("IE"),EWe=!tY,qz={edit:pWe,composite:cWe,drag:dWe,cut:null,render:null},Gz=!1,kWe=function(e){eY(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var i=this.props.editor;i._latestEditorState=this.props.editorState,i._blockSelectEvents=!0},t}(fu.Component),nY=function(e){eY(t,e);function t(r){var i;return i=e.call(this,r)||this,wt(Et(i),"_blockSelectEvents",void 0),wt(Et(i),"_clipboard",void 0),wt(Et(i),"_handler",void 0),wt(Et(i),"_dragCount",void 0),wt(Et(i),"_internalDrag",void 0),wt(Et(i),"_editorKey",void 0),wt(Et(i),"_placeholderAccessibilityID",void 0),wt(Et(i),"_latestEditorState",void 0),wt(Et(i),"_latestCommittedEditorState",void 0),wt(Et(i),"_pendingStateFromBeforeInput",void 0),wt(Et(i),"_onBeforeInput",void 0),wt(Et(i),"_onBlur",void 0),wt(Et(i),"_onCharacterData",void 0),wt(Et(i),"_onCompositionEnd",void 0),wt(Et(i),"_onCompositionStart",void 0),wt(Et(i),"_onCopy",void 0),wt(Et(i),"_onCut",void 0),wt(Et(i),"_onDragEnd",void 0),wt(Et(i),"_onDragOver",void 0),wt(Et(i),"_onDragStart",void 0),wt(Et(i),"_onDrop",void 0),wt(Et(i),"_onInput",void 0),wt(Et(i),"_onFocus",void 0),wt(Et(i),"_onKeyDown",void 0),wt(Et(i),"_onKeyPress",void 0),wt(Et(i),"_onKeyUp",void 0),wt(Et(i),"_onMouseDown",void 0),wt(Et(i),"_onMouseUp",void 0),wt(Et(i),"_onPaste",void 0),wt(Et(i),"_onSelect",void 0),wt(Et(i),"editor",void 0),wt(Et(i),"editorContainer",void 0),wt(Et(i),"focus",void 0),wt(Et(i),"blur",void 0),wt(Et(i),"setMode",void 0),wt(Et(i),"exitCurrentMode",void 0),wt(Et(i),"restoreEditorDOM",void 0),wt(Et(i),"setClipboard",void 0),wt(Et(i),"getClipboard",void 0),wt(Et(i),"getEditorKey",void 0),wt(Et(i),"update",void 0),wt(Et(i),"onDragEnter",void 0),wt(Et(i),"onDragLeave",void 0),wt(Et(i),"_handleEditorContainerRef",function(o){i.editorContainer=o,i.editor=o!==null?o.firstChild:null}),wt(Et(i),"focus",function(o){var a=i.props.editorState,s=a.getSelection().getHasFocus(),l=i.editor;if(l){var u=yWe.getScrollParent(l),f=o||wWe(u),d=f.x,p=f.y;Hz(l)||Vz(!1),l.focus(),u===window?window.scrollTo(d,p):vWe.setTop(u,p),s||i.update(mWe.forceSelection(a,a.getSelection()))}}),wt(Et(i),"blur",function(){var o=i.editor;o&&(Hz(o)||Vz(!1),o.blur())}),wt(Et(i),"setMode",function(o){var a=i.props,s=a.onPaste,l=a.onCut,u=a.onCopy,f=tT({},qz.edit);s&&(f.onPaste=s),l&&(f.onCut=l),u&&(f.onCopy=u);var d=tT({},qz,{edit:f});i._handler=d[o]}),wt(Et(i),"exitCurrentMode",function(){i.setMode("edit")}),wt(Et(i),"restoreEditorDOM",function(o){i.setState({contentsKey:i.state.contentsKey+1},function(){i.focus(o)})}),wt(Et(i),"setClipboard",function(o){i._clipboard=o}),wt(Et(i),"getClipboard",function(){return i._clipboard}),wt(Et(i),"update",function(o){i._latestEditorState=o,i.props.onChange(o)}),wt(Et(i),"onDragEnter",function(){i._dragCount++}),wt(Et(i),"onDragLeave",function(){i._dragCount--,i._dragCount===0&&i.exitCurrentMode()}),i._blockSelectEvents=!1,i._clipboard=null,i._handler=null,i._dragCount=0,i._editorKey=r.editorKey||_We(),i._placeholderAccessibilityID="placeholder-"+i._editorKey,i._latestEditorState=r.editorState,i._latestCommittedEditorState=r.editorState,i._onBeforeInput=i._buildHandler("onBeforeInput"),i._onBlur=i._buildHandler("onBlur"),i._onCharacterData=i._buildHandler("onCharacterData"),i._onCompositionEnd=i._buildHandler("onCompositionEnd"),i._onCompositionStart=i._buildHandler("onCompositionStart"),i._onCopy=i._buildHandler("onCopy"),i._onCut=i._buildHandler("onCut"),i._onDragEnd=i._buildHandler("onDragEnd"),i._onDragOver=i._buildHandler("onDragOver"),i._onDragStart=i._buildHandler("onDragStart"),i._onDrop=i._buildHandler("onDrop"),i._onInput=i._buildHandler("onInput"),i._onFocus=i._buildHandler("onFocus"),i._onKeyDown=i._buildHandler("onKeyDown"),i._onKeyPress=i._buildHandler("onKeyPress"),i._onKeyUp=i._buildHandler("onKeyUp"),i._onMouseDown=i._buildHandler("onMouseDown"),i._onMouseUp=i._buildHandler("onMouseUp"),i._onPaste=i._buildHandler("onPaste"),i._onSelect=i._buildHandler("onSelect"),i.getEditorKey=function(){return i._editorKey},i.state={contentsKey:0},i}var n=t.prototype;return n._buildHandler=function(i){var o=this;return function(a){if(!o.props.readOnly){var s=o._handler&&o._handler[i];s&&(Wz?Wz(function(){return s(o,a)}):s(o,a))}}},n._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},n._renderPlaceholder=function(){if(this._showPlaceholder()){var i={text:CWe(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return fu.createElement(hWe,i)}return null},n._renderARIADescribedBy=function(){var i=this.props.ariaDescribedBy||"",o=this._showPlaceholder()?this._placeholderAccessibilityID:"";return i.replace("{{editor_id_placeholder}}",o)||void 0},n.render=function(){var i=this.props,o=i.blockRenderMap,a=i.blockRendererFn,s=i.blockStyleFn,l=i.customStyleFn,u=i.customStyleMap,f=i.editorState,d=i.preventScroll,p=i.readOnly,m=i.textAlignment,v=i.textDirectionality,y=nT({"DraftEditor/root":!0,"DraftEditor/alignLeft":m==="left","DraftEditor/alignRight":m==="right","DraftEditor/alignCenter":m==="center"}),w={outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},b=this.props.role||"textbox",x=b==="combobox"?!!this.props.ariaExpanded:null,S={blockRenderMap:o,blockRendererFn:a,blockStyleFn:s,customStyleMap:tT({},uWe,u),customStyleFn:l,editorKey:this._editorKey,editorState:f,preventScroll:d,textDirectionality:v};return fu.createElement("div",{className:y},this._renderPlaceholder(),fu.createElement("div",{className:nT("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},fu.createElement("div",{"aria-activedescendant":p?null:this.props.ariaActiveDescendantID,"aria-autocomplete":p?null:this.props.ariaAutoComplete,"aria-controls":p?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":p?null:x,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":p?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:nT({notranslate:!p,"public/DraftEditor/content":!0}),contentEditable:!p,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:p?null:b,spellCheck:EWe&&this.props.spellCheck,style:w,suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},fu.createElement(kWe,{editor:this,editorState:f}),fu.createElement(fWe,O$({},S,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!Gz&&SWe("draft_ods_enabled")&&(Gz=!0,gWe.initODS()),this.setMode("edit"),tY&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):ri.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(fu.Component);wt(nY,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:lWe,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:xWe,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var TWe=nY,AWe={},$We={stringify:function(t){return"_"+String(t)},unstringify:function(t){return t.slice(1)}},rY=$We,RWe=rY,OWe=Df,Yz=OWe.strlen;function IWe(e,t){var n=[];return e.findEntityRanges(function(r){return!!r.getEntity()},function(r,i){var o=e.getText(),a=e.getEntityAt(r);n.push({offset:Yz(o.slice(0,r)),length:Yz(o.slice(r,i)),key:Number(t[RWe.stringify(a)])})}),n}var DWe=IWe,Xz=Df,PWe=xy,LWe=function(t,n){return t===n},MWe=function(t){return!!t},FWe=[];function NWe(e,t,n){var r=[],i=t.map(function(o){return o.has(n)}).toList();return PWe(i,LWe,MWe,function(o,a){var s=e.getText();r.push({offset:Xz.strlen(s.slice(0,o)),length:Xz.strlen(s.slice(o,a)),style:n})}),r}function BWe(e){var t=e.getCharacterList().map(function(r){return r.getStyle()}).toList(),n=t.flatten().toSet().map(function(r){return NWe(e,t,r)});return Array.prototype.concat.apply(FWe,n.toJS())}var jWe=BWe;function zWe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){UWe(e,i,n[i])})}return e}function UWe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var KWe=Af,WWe=wa,iY=rY,VWe=DWe,HWe=jWe,qWe=mn,Zz=function(t,n){return{key:t.getKey(),text:t.getText(),type:t.getType(),depth:t.getDepth(),inlineStyleRanges:HWe(t),entityRanges:VWe(t,n),data:t.getData().toObject()}},GWe=function(t,n,r,i){if(t instanceof KWe){r.push(Zz(t,n));return}t instanceof WWe||qWe(!1);var o=t.getParentKey(),a=i[t.getKey()]=zWe({},Zz(t,n),{children:[]});if(o){i[o].children.push(a);return}r.push(a)},YWe=function(t,n){var r=n.entityMap,i=[],o={},a={},s=0;return t.getBlockMap().forEach(function(l){l.findEntityRanges(function(u){return u.getEntity()!==null},function(u){var f=l.getEntityAt(u),d=iY.stringify(f);a[d]||(a[d]=f,r[d]="".concat(s),s++)}),GWe(l,r,i,o)}),{blocks:i,entityMap:r}},XWe=function(t,n){var r=n.blocks,i=n.entityMap,o={};return Object.keys(i).forEach(function(a,s){var l=t.getEntity(iY.unstringify(a));o[s]={type:l.getType(),mutability:l.getMutability(),data:l.getData()}}),{blocks:r,entityMap:o}},ZWe=function(t){var n={entityMap:{},blocks:[]};return n=YWe(t,n),n=XWe(t,n),n},JWe=ZWe;function wm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){QWe(e,i,n[i])})}return e}function QWe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eVe=Ws,oY=mn,tVe=function(t,n){for(var r=[].concat(t).reverse();r.length;){var i=r.pop();n(i);var o=i.children;Array.isArray(o)||oY(!1),r=r.concat([].concat(o.reverse()))}},Jz=function(t){if(!(t&&t.type))return!1;var n=t.type;return n==="unordered-list-item"||n==="ordered-list-item"},nVe=function(t){Array.isArray(t.children)&&(t.children=t.children.map(function(n){return n.type===t.type?wm({},n,{depth:(t.depth||0)+1}):n}))},rVe={fromRawTreeStateToRawState:function(t){var n=t.blocks,r=[];return Array.isArray(n)||oY(!1),!Array.isArray(n)||!n.length?t:(tVe(n,function(i){var o=wm({},i);Jz(i)&&(o.depth=o.depth||0,nVe(i),i.children!=null&&i.children.length>0)||(delete o.children,r.push(o))}),t.blocks=r,wm({},t,{blocks:r}))},fromRawStateToRawTreeState:function(t){var n=[],r=[];return t.blocks.forEach(function(i){var o=Jz(i),a=i.depth||0,s=wm({},i,{children:[]});if(!o){n.push(s);return}var l=r[0];if(l==null&&a===0)n.push(s);else if(l==null||l.depth<a-1){var u={key:eVe(),text:"",depth:a-1,type:i.type,children:[],entityRanges:[],inlineStyleRanges:[]};r.unshift(u),a===1?n.push(u):l!=null&&l.children.push(u),u.children.push(s)}else if(l.depth===a-1)l.children.push(s);else{for(;l!=null&&l.depth>=a;)r.shift(),l=r[0];a>0?l.children.push(s):n.push(s)}}),wm({},t,{blocks:n})}},iVe=rVe,oVe=xa,aVe=un,sVe=aVe.List;function lVe(e,t){var n=e.map(function(r,i){var o=t[i];return oVe.create({style:r,entity:o})});return sVe(n)}var uVe=lVe,cVe=Df,Qz=cVe.substr;function fVe(e,t){var n=Array(e.length).fill(null);return t&&t.forEach(function(r){for(var i=Qz(e,0,r.offset).length,o=i+Qz(e,r.offset,r.length).length,a=i;a<o;a++)n[a]=r.key}),n}var dVe=fVe,pVe=Df,hVe=un,gVe=hVe.OrderedSet,e4=pVe.substr,mVe=gVe();function vVe(e,t){var n=Array(e.length).fill(mVe);return t&&t.forEach(function(r){for(var i=e4(e,0,r.offset).length,o=i+e4(e,r.offset,r.length).length;i<o;)n[i]=n[i].add(r.style),i++}),n}var yVe=vVe;function Rv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){bVe(e,i,n[i])})}return e}function bVe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _Ve=Af,t4=wa,xVe=uI,wVe=gS,n4=iVe,r4=mS,SVe=uVe,CVe=dVe,EVe=yVe,aY=Ws,kVe=tc,kI=un,I$=mn,i4=kVe("draft_tree_data_support"),o4=kI.List,TVe=kI.Map,sY=kI.OrderedMap,D$=function(t,n){var r=t.key,i=t.type,o=t.data,a=t.text,s=t.depth,l={text:a,depth:s||0,type:i||"unstyled",key:r||aY(),data:TVe(o),characterList:AVe(t,n)};return l},AVe=function(t,n){var r=t.text,i=t.entityRanges,o=t.inlineStyleRanges,a=i||[],s=o||[];return SVe(EVe(r,s),CVe(r,a.filter(function(l){return n.hasOwnProperty(l.key)}).map(function(l){return Rv({},l,{key:n[l.key]})})))},rT=function(t){return Rv({},t,{key:t.key||aY()})},a4=function(t,n,r){var i=n.map(function(o){return Rv({},o,{parentRef:r})});return t.concat(i.reverse())},$Ve=function(t,n){return t.map(rT).reduce(function(r,i,o){Array.isArray(i.children)||I$(!1);var a=i.children.map(rT),s=new t4(Rv({},D$(i,n),{prevSibling:o===0?null:t[o-1].key,nextSibling:o===t.length-1?null:t[o+1].key,children:o4(a.map(function(w){return w.key}))}));r=r.set(s.getKey(),s);for(var l=a4([],a,s);l.length>0;){var u=l.pop(),f=u.parentRef,d=f.getChildKeys(),p=d.indexOf(u.key),m=Array.isArray(u.children);if(!m){m||I$(!1);break}var v=u.children.map(rT),y=new t4(Rv({},D$(u,n),{parent:f.getKey(),children:o4(v.map(function(w){return w.key})),prevSibling:p===0?null:d.get(p-1),nextSibling:p===d.size-1?null:d.get(p+1)}));r=r.set(y.getKey(),y),l=a4(l,v,y)}return r},sY())},RVe=function(t,n){return sY(t.map(function(r){var i=new _Ve(D$(r,n));return[i.getKey(),i]}))},OVe=function(t,n){var r=t.blocks.find(function(a){return Array.isArray(a.children)&&a.children.length>0}),i=i4&&!r?n4.fromRawStateToRawTreeState(t).blocks:t.blocks;if(!i4)return RVe(r?n4.fromRawTreeStateToRawState(t).blocks:i,n);var o=$Ve(i,n);return o},IVe=function(t){var n=t.entityMap,r={};return Object.keys(n).forEach(function(i){var o=n[i],a=o.type,s=o.mutability,l=o.data;r[i]=wVe.__create(a,s,l||{})}),r},DVe=function(t){Array.isArray(t.blocks)||I$(!1);var n=IVe(t),r=OVe(t,n),i=r.isEmpty()?new r4:r4.createEmpty(r.first().getKey());return new xVe({blockMap:r,entityMap:n,selectionBefore:i,selectionAfter:i})},PVe=DVe,LVe=RG;function MVe(e){var t=LVe(e),n=0,r=0,i=0,o=0;if(t.length){if(t.length>1&&t[0].width===0){var a=t[1];n=a.top,r=a.right,i=a.bottom,o=a.left}else{var s=t[0];n=s.top,r=s.right,i=s.bottom,o=s.left}for(var l=1;l<t.length;l++){var u=t[l];u.height!==0&&u.width!==0&&(n=Math.min(n,u.top),r=Math.max(r,u.right),i=Math.max(i,u.bottom),o=Math.min(o,u.left))}}return{top:n,right:r,bottom:i,left:o,width:r-o,height:i-n}}var FVe=MVe,NVe=FVe;function BVe(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=NVe(n),i=r.top,o=r.right,a=r.bottom,s=r.left;return i===0&&o===0&&a===0&&s===0?null:r}var jVe=BVe,zVe=Lze,UVe=_y,KVe=xa,WVe=Uze,VVe=Af,HVe=uI,qVe=hI,GVe=Bq,YVe=TWe,XVe=vG,ZVe=gS,JVe=ao,QVe=Sq,eHe=jn,tHe=SI,nHe=AWe,rHe=VG,iHe=mS,oHe=JWe,aHe=PVe,sHe=Ws,lHe=QG,uHe=jVe,cHe=UG,fHe={Editor:YVe,EditorBlock:XVe,EditorState:eHe,CompositeDecorator:WVe,Entity:ZVe,EntityInstance:QVe,BlockMapBuilder:UVe,CharacterMetadata:KVe,ContentBlock:VVe,ContentState:HVe,RawDraftContentState:nHe,SelectionState:iHe,AtomicBlockUtils:zVe,KeyBindingUtil:tHe,Modifier:JVe,RichUtils:rHe,DefaultDraftBlockRenderMap:qVe,DefaultDraftInlineStyle:GVe,convertFromHTML:cHe,convertFromRaw:aHe,convertToRaw:oHe,genKey:sHe,getDefaultKeyBinding:lHe,getVisibleSelectionRect:uHe},En=fHe,$y="delete",Vn=5,ia=1<<Vn,Oi=ia-1,nn={};function P$(){return{value:!1}}function oa(e){e&&(e.value=!0)}function TI(){}function zp(e){return e.size===void 0&&(e.size=e.__iterate(lY)),e.size}function Bu(e,t){if(typeof t!="number"){var n=t>>>0;if(""+n!==t||n===4294967295)return NaN;t=n}return t<0?zp(e)+t:t}function lY(){return!0}function TS(e,t,n){return(e===0&&!cY(e)||n!==void 0&&e<=-n)&&(t===void 0||n!==void 0&&t>=n)}function Ry(e,t){return uY(e,t,0)}function AS(e,t){return uY(e,t,t)}function uY(e,t,n){return e===void 0?n:cY(e)?t===1/0?t:Math.max(0,t+e)|0:t===void 0||t===e?e:Math.min(t,e)|0}function cY(e){return e<0||e===0&&1/e===-1/0}var fY="@@__IMMUTABLE_ITERABLE__@@";function ro(e){return!!(e&&e[fY])}var dY="@@__IMMUTABLE_KEYED__@@";function Zn(e){return!!(e&&e[dY])}var pY="@@__IMMUTABLE_INDEXED__@@";function Qi(e){return!!(e&&e[pY])}function $S(e){return Zn(e)||Qi(e)}var Er=function(t){return ro(t)?t:Do(t)},Sa=function(e){function t(n){return Zn(n)?n:nc(n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Er),Pf=function(e){function t(n){return Qi(n)?n:ts(n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Er),ph=function(e){function t(n){return ro(n)&&!$S(n)?n:vh(n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Er);Er.Keyed=Sa;Er.Indexed=Pf;Er.Set=ph;var hY="@@__IMMUTABLE_SEQ__@@";function AI(e){return!!(e&&e[hY])}var gY="@@__IMMUTABLE_RECORD__@@";function hh(e){return!!(e&&e[gY])}function Vs(e){return ro(e)||hh(e)}var gh="@@__IMMUTABLE_ORDERED__@@";function Xa(e){return!!(e&&e[gh])}var Oy=0,Qa=1,ga=2,L$=typeof Symbol=="function"&&Symbol.iterator,mY="@@iterator",RS=L$||mY,gn=function(t){this.next=t};gn.prototype.toString=function(){return"[Iterator]"};gn.KEYS=Oy;gn.VALUES=Qa;gn.ENTRIES=ga;gn.prototype.inspect=gn.prototype.toSource=function(){return this.toString()};gn.prototype[RS]=function(){return this};function tr(e,t,n,r){var i=e===0?t:e===1?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function io(){return{value:void 0,done:!0}}function vY(e){return Array.isArray(e)?!0:!!OS(e)}function s4(e){return e&&typeof e.next=="function"}function M$(e){var t=OS(e);return t&&t.call(e)}function OS(e){var t=e&&(L$&&e[L$]||e[mY]);if(typeof t=="function")return t}function dHe(e){var t=OS(e);return t&&t===e.entries}function pHe(e){var t=OS(e);return t&&t===e.keys}var mh=Object.prototype.hasOwnProperty;function yY(e){return Array.isArray(e)||typeof e=="string"?!0:e&&typeof e=="object"&&Number.isInteger(e.length)&&e.length>=0&&(e.length===0?Object.keys(e).length===1:e.hasOwnProperty(e.length-1))}var Do=function(e){function t(n){return n==null?RI():Vs(n)?n.toSeq():gHe(n)}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(r,i){var o=this._cache;if(o){for(var a=o.length,s=0;s!==a;){var l=o[i?a-++s:s++];if(r(l[1],l[0],this)===!1)break}return s}return this.__iterateUncached(r,i)},t.prototype.__iterator=function(r,i){var o=this._cache;if(o){var a=o.length,s=0;return new gn(function(){if(s===a)return io();var l=o[i?a-++s:s++];return tr(r,l[0],l[1])})}return this.__iteratorUncached(r,i)},t}(Er),nc=function(e){function t(n){return n==null?RI().toKeyedSeq():ro(n)?Zn(n)?n.toSeq():n.fromEntrySeq():hh(n)?n.toSeq():OI(n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(Do),ts=function(e){function t(n){return n==null?RI():ro(n)?Zn(n)?n.entrySeq():n.toIndexedSeq():hh(n)?n.toSeq().entrySeq():bY(n)}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}(Do),vh=function(e){function t(n){return(ro(n)&&!$S(n)?n:ts(n)).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}(Do);Do.isSeq=AI;Do.Keyed=nc;Do.Set=vh;Do.Indexed=ts;Do.prototype[hY]=!0;var pf=function(e){function t(n){this._array=n,this.size=n.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(r,i){return this.has(r)?this._array[Bu(this,r)]:i},t.prototype.__iterate=function(r,i){for(var o=this._array,a=o.length,s=0;s!==a;){var l=i?a-++s:s++;if(r(o[l],l,this)===!1)break}return s},t.prototype.__iterator=function(r,i){var o=this._array,a=o.length,s=0;return new gn(function(){if(s===a)return io();var l=i?a-++s:s++;return tr(r,l,o[l])})},t}(ts),$I=function(e){function t(n){var r=Object.keys(n).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n):[]);this._object=n,this._keys=r,this.size=r.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(r,i){return i!==void 0&&!this.has(r)?i:this._object[r]},t.prototype.has=function(r){return mh.call(this._object,r)},t.prototype.__iterate=function(r,i){for(var o=this._object,a=this._keys,s=a.length,l=0;l!==s;){var u=a[i?s-++l:l++];if(r(o[u],u,this)===!1)break}return l},t.prototype.__iterator=function(r,i){var o=this._object,a=this._keys,s=a.length,l=0;return new gn(function(){if(l===s)return io();var u=a[i?s-++l:l++];return tr(r,u,o[u])})},t}(nc);$I.prototype[gh]=!0;var hHe=function(e){function t(n){this._collection=n,this.size=n.length||n.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(r,i){if(i)return this.cacheResult().__iterate(r,i);var o=this._collection,a=M$(o),s=0;if(s4(a))for(var l;!(l=a.next()).done&&r(l.value,s++,this)!==!1;);return s},t.prototype.__iteratorUncached=function(r,i){if(i)return this.cacheResult().__iterator(r,i);var o=this._collection,a=M$(o);if(!s4(a))return new gn(io);var s=0;return new gn(function(){var l=a.next();return l.done?l:tr(r,s++,l.value)})},t}(ts),l4;function RI(){return l4||(l4=new pf([]))}function OI(e){var t=II(e);if(t)return t.fromEntrySeq();if(typeof e=="object")return new $I(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function bY(e){var t=II(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function gHe(e){var t=II(e);if(t)return dHe(e)?t.fromEntrySeq():pHe(e)?t.toSetSeq():t;if(typeof e=="object")return new $I(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}function II(e){return yY(e)?new pf(e):vY(e)?new hHe(e):void 0}var _Y="@@__IMMUTABLE_MAP__@@";function DI(e){return!!(e&&e[_Y])}function xY(e){return DI(e)&&Xa(e)}function u4(e){return!!(e&&typeof e.equals=="function"&&typeof e.hashCode=="function")}function Eo(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if(typeof e.valueOf=="function"&&typeof t.valueOf=="function"){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!!(u4(e)&&u4(t)&&e.equals(t))}var lm=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(t,n){t|=0,n|=0;var r=t&65535,i=n&65535;return r*i+((t>>>16)*i+r*(n>>>16)<<16>>>0)|0};function IS(e){return e>>>1&1073741824|e&3221225471}var mHe=Object.prototype.valueOf;function _o(e){if(e==null)return c4(e);if(typeof e.hashCode=="function")return IS(e.hashCode(e));var t=wHe(e);if(t==null)return c4(t);switch(typeof t){case"boolean":return t?1108378657:1108378656;case"number":return vHe(t);case"string":return t.length>SHe?yHe(t):F$(t);case"object":case"function":return _He(t);case"symbol":return bHe(t);default:if(typeof t.toString=="function")return F$(t.toString());throw new Error("Value type "+typeof t+" cannot be hashed.")}}function c4(e){return e===null?1108378658:1108378659}function vHe(e){if(e!==e||e===1/0)return 0;var t=e|0;for(t!==e&&(t^=e*4294967295);e>4294967295;)e/=4294967295,t^=e;return IS(t)}function yHe(e){var t=aT[e];return t===void 0&&(t=F$(e),oT===CHe&&(oT=0,aT={}),oT++,aT[e]=t),t}function F$(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return IS(t)}function bHe(e){var t=p4[e];return t!==void 0||(t=wY(),p4[e]=t),t}function _He(e){var t;if(N$&&(t=B$.get(e),t!==void 0)||(t=e[jc],t!==void 0)||!d4&&(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[jc],t!==void 0||(t=xHe(e),t!==void 0)))return t;if(t=wY(),N$)B$.set(e,t);else{if(f4!==void 0&&f4(e)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(d4)Object.defineProperty(e,jc,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(e.propertyIsEnumerable!==void 0&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[jc]=t;else if(e.nodeType!==void 0)e[jc]=t;else throw new Error("Unable to set a non-enumerable property on object.")}return t}var f4=Object.isExtensible,d4=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function xHe(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function wHe(e){return e.valueOf!==mHe&&typeof e.valueOf=="function"?e.valueOf(e):e}function wY(){var e=++iT;return iT&1073741824&&(iT=0),e}var N$=typeof WeakMap=="function",B$;N$&&(B$=new WeakMap);var p4=Object.create(null),iT=0,jc="__immutablehash__";typeof Symbol=="function"&&(jc=Symbol(jc));var SHe=16,CHe=255,oT=0,aT={},DS=function(e){function t(n,r){this._iter=n,this._useKeys=r,this.size=n.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(r,i){return this._iter.get(r,i)},t.prototype.has=function(r){return this._iter.has(r)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var r=this,i=PI(this,!0);return this._useKeys||(i.valueSeq=function(){return r._iter.toSeq().reverse()}),i},t.prototype.map=function(r,i){var o=this,a=TY(this,r,i);return this._useKeys||(a.valueSeq=function(){return o._iter.toSeq().map(r,i)}),a},t.prototype.__iterate=function(r,i){var o=this;return this._iter.__iterate(function(a,s){return r(a,s,o)},i)},t.prototype.__iterator=function(r,i){return this._iter.__iterator(r,i)},t}(nc);DS.prototype[gh]=!0;var SY=function(e){function t(n){this._iter=n,this.size=n.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(r){return this._iter.includes(r)},t.prototype.__iterate=function(r,i){var o=this,a=0;return i&&zp(this),this._iter.__iterate(function(s){return r(s,i?o.size-++a:a++,o)},i)},t.prototype.__iterator=function(r,i){var o=this,a=this._iter.__iterator(Qa,i),s=0;return i&&zp(this),new gn(function(){var l=a.next();return l.done?l:tr(r,i?o.size-++s:s++,l.value,l)})},t}(ts),CY=function(e){function t(n){this._iter=n,this.size=n.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(r){return this._iter.includes(r)},t.prototype.__iterate=function(r,i){var o=this;return this._iter.__iterate(function(a){return r(a,a,o)},i)},t.prototype.__iterator=function(r,i){var o=this._iter.__iterator(Qa,i);return new gn(function(){var a=o.next();return a.done?a:tr(r,a.value,a.value,a)})},t}(vh),EY=function(e){function t(n){this._iter=n,this.size=n.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(r,i){var o=this;return this._iter.__iterate(function(a){if(a){g4(a);var s=ro(a);return r(s?a.get(1):a[1],s?a.get(0):a[0],o)}},i)},t.prototype.__iterator=function(r,i){var o=this._iter.__iterator(Qa,i);return new gn(function(){for(;;){var a=o.next();if(a.done)return a;var s=a.value;if(s){g4(s);var l=ro(s);return tr(r,l?s.get(0):s[0],l?s.get(1):s[1],a)}}})},t}(nc);SY.prototype.cacheResult=DS.prototype.cacheResult=CY.prototype.cacheResult=EY.prototype.cacheResult=FI;function kY(e){var t=Hs(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var n=e.reverse.apply(this);return n.flip=function(){return e.reverse()},n},t.has=function(n){return e.includes(n)},t.includes=function(n){return e.has(n)},t.cacheResult=FI,t.__iterateUncached=function(n,r){var i=this;return e.__iterate(function(o,a){return n(a,o,i)!==!1},r)},t.__iteratorUncached=function(n,r){if(n===ga){var i=e.__iterator(n,r);return new gn(function(){var o=i.next();if(!o.done){var a=o.value[0];o.value[0]=o.value[1],o.value[1]=a}return o})}return e.__iterator(n===Qa?Oy:Qa,r)},t}function TY(e,t,n){var r=Hs(e);return r.size=e.size,r.has=function(i){return e.has(i)},r.get=function(i,o){var a=e.get(i,nn);return a===nn?o:t.call(n,a,i,e)},r.__iterateUncached=function(i,o){var a=this;return e.__iterate(function(s,l,u){return i(t.call(n,s,l,u),l,a)!==!1},o)},r.__iteratorUncached=function(i,o){var a=e.__iterator(ga,o);return new gn(function(){var s=a.next();if(s.done)return s;var l=s.value,u=l[0];return tr(i,u,t.call(n,l[1],u,e),s)})},r}function PI(e,t){var n=this,r=Hs(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var i=kY(e);return i.reverse=function(){return e.flip()},i}),r.get=function(i,o){return e.get(t?i:-1-i,o)},r.has=function(i){return e.has(t?i:-1-i)},r.includes=function(i){return e.includes(i)},r.cacheResult=FI,r.__iterate=function(i,o){var a=this,s=0;return o&&zp(e),e.__iterate(function(l,u){return i(l,t?u:o?a.size-++s:s++,a)},!o)},r.__iterator=function(i,o){var a=0;o&&zp(e);var s=e.__iterator(ga,!o);return new gn(function(){var l=s.next();if(l.done)return l;var u=l.value;return tr(i,t?u[0]:o?n.size-++a:a++,u[1],l)})},r}function AY(e,t,n,r){var i=Hs(e);return r&&(i.has=function(o){var a=e.get(o,nn);return a!==nn&&!!t.call(n,a,o,e)},i.get=function(o,a){var s=e.get(o,nn);return s!==nn&&t.call(n,s,o,e)?s:a}),i.__iterateUncached=function(o,a){var s=this,l=0;return e.__iterate(function(u,f,d){if(t.call(n,u,f,d))return l++,o(u,r?f:l-1,s)},a),l},i.__iteratorUncached=function(o,a){var s=e.__iterator(ga,a),l=0;return new gn(function(){for(;;){var u=s.next();if(u.done)return u;var f=u.value,d=f[0],p=f[1];if(t.call(n,p,d,e))return tr(o,r?d:l++,p,u)}})},i}function EHe(e,t,n){var r=bh().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(a){return a+1})}),r.asImmutable()}function kHe(e,t,n){var r=Zn(e),i=(Xa(e)?Il():bh()).asMutable();e.__iterate(function(a,s){i.update(t.call(n,a,s,e),function(l){return l=l||[],l.push(r?[s,a]:a),l})});var o=MI(e);return i.map(function(a){return An(e,o(a))}).asImmutable()}function THe(e,t,n){var r=Zn(e),i=[[],[]];e.__iterate(function(a,s){i[t.call(n,a,s,e)?1:0].push(r?[s,a]:a)});var o=MI(e);return i.map(function(a){return An(e,o(a))})}function LI(e,t,n,r){var i=e.size;if(TS(t,n,i))return e;var o=Ry(t,i),a=AS(n,i);if(o!==o||a!==a)return LI(e.toSeq().cacheResult(),t,n,r);var s=a-o,l;s===s&&(l=s<0?0:s);var u=Hs(e);return u.size=l===0?l:e.size&&l||void 0,!r&&AI(e)&&l>=0&&(u.get=function(f,d){return f=Bu(this,f),f>=0&&f<l?e.get(f+o,d):d}),u.__iterateUncached=function(f,d){var p=this;if(l===0)return 0;if(d)return this.cacheResult().__iterate(f,d);var m=0,v=!0,y=0;return e.__iterate(function(w,b){if(!(v&&(v=m++<o)))return y++,f(w,r?b:y-1,p)!==!1&&y!==l}),y},u.__iteratorUncached=function(f,d){if(l!==0&&d)return this.cacheResult().__iterator(f,d);if(l===0)return new gn(io);var p=e.__iterator(f,d),m=0,v=0;return new gn(function(){for(;m++<o;)p.next();if(++v>l)return io();var y=p.next();return r||f===Qa||y.done?y:f===Oy?tr(f,v-1,void 0,y):tr(f,v-1,y.value[1],y)})},u}function AHe(e,t,n){var r=Hs(e);return r.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=0;return e.__iterate(function(l,u,f){return t.call(n,l,u,f)&&++s&&i(l,u,a)}),s},r.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=e.__iterator(ga,o),l=!0;return new gn(function(){if(!l)return io();var u=s.next();if(u.done)return u;var f=u.value,d=f[0],p=f[1];return t.call(n,p,d,a)?i===ga?u:tr(i,d,p,u):(l=!1,io())})},r}function $Y(e,t,n,r){var i=Hs(e);return i.__iterateUncached=function(o,a){var s=this;if(a)return this.cacheResult().__iterate(o,a);var l=!0,u=0;return e.__iterate(function(f,d,p){if(!(l&&(l=t.call(n,f,d,p))))return u++,o(f,r?d:u-1,s)}),u},i.__iteratorUncached=function(o,a){var s=this;if(a)return this.cacheResult().__iterator(o,a);var l=e.__iterator(ga,a),u=!0,f=0;return new gn(function(){var d,p,m;do{if(d=l.next(),d.done)return r||o===Qa?d:o===Oy?tr(o,f++,void 0,d):tr(o,f++,d.value[1],d);var v=d.value;p=v[0],m=v[1],u&&(u=t.call(n,m,p,s))}while(u);return o===ga?d:tr(o,p,m,d)})},i}function $He(e,t){var n=Zn(e),r=[e].concat(t).map(function(a){return ro(a)?n&&(a=Sa(a)):a=n?OI(a):bY(Array.isArray(a)?a:[a]),a}).filter(function(a){return a.size!==0});if(r.length===0)return e;if(r.length===1){var i=r[0];if(i===e||n&&Zn(i)||Qi(e)&&Qi(i))return i}var o=new pf(r);return n?o=o.toKeyedSeq():Qi(e)||(o=o.toSetSeq()),o=o.flatten(!0),o.size=r.reduce(function(a,s){if(a!==void 0){var l=s.size;if(l!==void 0)return a+l}},0),o}function RY(e,t,n){var r=Hs(e);return r.__iterateUncached=function(i,o){if(o)return this.cacheResult().__iterate(i,o);var a=0,s=!1;function l(u,f){u.__iterate(function(d,p){return(!t||f<t)&&ro(d)?l(d,f+1):(a++,i(d,n?p:a-1,r)===!1&&(s=!0)),!s},o)}return l(e,0),a},r.__iteratorUncached=function(i,o){if(o)return this.cacheResult().__iterator(i,o);var a=e.__iterator(i,o),s=[],l=0;return new gn(function(){for(;a;){var u=a.next();if(u.done!==!1){a=s.pop();continue}var f=u.value;if(i===ga&&(f=f[1]),(!t||s.length<t)&&ro(f))s.push(a),a=f.__iterator(i,o);else return n?u:tr(i,l++,f,u)}return io()})},r}function RHe(e,t,n){var r=MI(e);return e.toSeq().map(function(i,o){return r(t.call(n,i,o,e))}).flatten(!0)}function OHe(e,t){var n=Hs(e);return n.size=e.size&&e.size*2-1,n.__iterateUncached=function(r,i){var o=this,a=0;return e.__iterate(function(s){return(!a||r(t,a++,o)!==!1)&&r(s,a++,o)!==!1},i),a},n.__iteratorUncached=function(r,i){var o=e.__iterator(Qa,i),a=0,s;return new gn(function(){return(!s||a%2)&&(s=o.next(),s.done)?s:a%2?tr(r,a++,t):tr(r,a++,s.value,s)})},n}function Up(e,t,n){t||(t=OY);var r=Zn(e),i=0,o=e.toSeq().map(function(a,s){return[s,a,i++,n?n(a,s,e):a]}).valueSeq().toArray();return o.sort(function(a,s){return t(a[3],s[3])||a[2]-s[2]}).forEach(r?function(a,s){o[s].length=2}:function(a,s){o[s]=a[1]}),r?nc(o):Qi(e)?ts(o):vh(o)}function Q1(e,t,n){if(t||(t=OY),n){var r=e.toSeq().map(function(i,o){return[i,n(i,o,e)]}).reduce(function(i,o){return h4(t,i[1],o[1])?o:i});return r&&r[0]}return e.reduce(function(i,o){return h4(t,i,o)?o:i})}function h4(e,t,n){var r=e(n,t);return r===0&&n!==t&&(n==null||n!==n)||r>0}function eb(e,t,n,r){var i=Hs(e),o=new pf(n).map(function(a){return a.size});return i.size=r?o.max():o.min(),i.__iterate=function(a,s){for(var l=this.__iterator(Qa,s),u,f=0;!(u=l.next()).done&&a(u.value,f++,this)!==!1;);return f},i.__iteratorUncached=function(a,s){var l=n.map(function(d){return d=Er(d),M$(s?d.reverse():d)}),u=0,f=!1;return new gn(function(){var d;return f||(d=l.map(function(p){return p.next()}),f=r?d.every(function(p){return p.done}):d.some(function(p){return p.done})),f?io():tr(a,u++,t.apply(null,d.map(function(p){return p.value})))})},i}function An(e,t){return e===t?e:AI(e)?t:e.constructor(t)}function g4(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function MI(e){return Zn(e)?Sa:Qi(e)?Pf:ph}function Hs(e){return Object.create((Zn(e)?nc:Qi(e)?ts:vh).prototype)}function FI(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Do.prototype.cacheResult.call(this)}function OY(e,t){return e===void 0&&t===void 0?0:e===void 0?1:t===void 0?-1:e>t?1:e<t?-1:0}function Ts(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function NI(e,t){if(!e)throw new Error(t)}function So(e){NI(e!==1/0,"Cannot perform this action with an infinite size.")}function IY(e){if(yY(e)&&typeof e!="string")return e;if(Xa(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}var IHe=Object.prototype.toString;function DHe(e){if(!e||typeof e!="object"||IHe.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var n=t,r=Object.getPrototypeOf(t);r!==null;)n=r,r=Object.getPrototypeOf(n);return n===t}function ju(e){return typeof e=="object"&&(Vs(e)||Array.isArray(e)||DHe(e))}function Ov(e){try{return typeof e=="string"?JSON.stringify(e):String(e)}catch{return JSON.stringify(e)}}function PHe(e,t){return Vs(e)?e.has(t):ju(e)&&mh.call(e,t)}function DY(e,t,n){return Vs(e)?e.get(t,n):PHe(e,t)?typeof e.get=="function"?e.get(t):e[t]:n}function J_(e){if(Array.isArray(e))return Ts(e);var t={};for(var n in e)mh.call(e,n)&&(t[n]=e[n]);return t}function LHe(e,t){if(!ju(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(Vs(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!mh.call(e,t))return e;var n=J_(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function MHe(e,t,n){if(!ju(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(Vs(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(mh.call(e,t)&&n===e[t])return e;var r=J_(e);return r[t]=n,r}function yh(e,t,n,r){r||(r=n,n=void 0);var i=PY(Vs(e),e,IY(t),0,n,r);return i===nn?n:i}function PY(e,t,n,r,i,o){var a=t===nn;if(r===n.length){var s=a?i:t,l=o(s);return l===s?t:l}if(!a&&!ju(t))throw new TypeError("Cannot update within non-data-structure value in path ["+n.slice(0,r).map(Ov)+"]: "+t);var u=n[r],f=a?nn:DY(t,u,nn),d=PY(f===nn?e:Vs(f),f,n,r+1,i,o);return d===f?t:d===nn?LHe(t,u):MHe(a?e?Wa():{}:t,u,d)}function FHe(e,t,n){return yh(e,t,nn,function(){return n})}function BI(e,t){return FHe(this,e,t)}function NHe(e,t){return yh(e,t,function(){return nn})}function jI(e){return NHe(this,e)}function LY(e,t,n,r){return yh(e,[t],n,r)}function zI(e,t,n){return arguments.length===1?e(this):LY(this,e,t,n)}function UI(e,t,n){return yh(this,e,t,n)}function MY(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return NY(this,e)}function FY(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(typeof e!="function")throw new TypeError("Invalid merger function: "+e);return NY(this,t,e)}function NY(e,t,n){for(var r=[],i=0;i<t.length;i++){var o=Sa(t[i]);o.size!==0&&r.push(o)}return r.length===0?e:e.toSeq().size===0&&!e.__ownerID&&r.length===1?e.constructor(r[0]):e.withMutations(function(a){for(var s=n?function(u,f){LY(a,f,nn,function(d){return d===nn?u:n(d,u,f)})}:function(u,f){a.set(f,u)},l=0;l<r.length;l++)r[l].forEach(s)})}function KI(e,t,n){return WI(e,t,BHe(n))}function WI(e,t,n){if(!ju(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(Vs(e))return typeof n=="function"&&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),i=e,o=r?Pf:Sa,a=r?function(l){i===e&&(i=J_(i)),i.push(l)}:function(l,u){var f=mh.call(i,u),d=f&&n?n(i[u],l,u):l;(!f||d!==i[u])&&(i===e&&(i=J_(i)),i[u]=d)},s=0;s<t.length;s++)o(t[s]).forEach(a);return i}function BHe(e){function t(n,r,i){return ju(n)&&ju(r)&&jHe(n,r)?WI(n,[r],t):e?e(n,r,i):r}return t}function jHe(e,t){var n=Do(e),r=Do(t);return Qi(n)===Qi(r)&&Zn(n)===Zn(r)}function BY(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return KI(this,e)}function jY(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return KI(this,t,e)}function VI(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return yh(this,e,Wa(),function(r){return WI(r,t)})}function HI(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return yh(this,e,Wa(),function(r){return KI(r,t)})}function Iy(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function Dy(){return this.__ownerID?this:this.__ensureOwner(new TI)}function Py(){return this.__ensureOwner()}function qI(){return this.__altered}var bh=function(e){function t(n){return n==null?Wa():DI(n)&&!Xa(n)?n:Wa().withMutations(function(r){var i=e(n);So(i.size),i.forEach(function(o,a){return r.set(a,o)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return Wa().withMutations(function(o){for(var a=0;a<r.length;a+=2){if(a+1>=r.length)throw new Error("Missing value for key: "+r[a]);o.set(r[a],r[a+1])}})},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(r,i){return this._root?this._root.get(0,void 0,r,i):i},t.prototype.set=function(r,i){return y4(this,r,i)},t.prototype.remove=function(r){return y4(this,r,nn)},t.prototype.deleteAll=function(r){var i=Er(r);return i.size===0?this:this.withMutations(function(o){i.forEach(function(a){return o.remove(a)})})},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Wa()},t.prototype.sort=function(r){return Il(Up(this,r))},t.prototype.sortBy=function(r,i){return Il(Up(this,i,r))},t.prototype.map=function(r,i){var o=this;return this.withMutations(function(a){a.forEach(function(s,l){a.set(l,r.call(i,s,l,o))})})},t.prototype.__iterator=function(r,i){return new zHe(this,r,i)},t.prototype.__iterate=function(r,i){var o=this,a=0;return this._root&&this._root.iterate(function(s){return a++,r(s[1],s[0],o)},i),a},t.prototype.__ensureOwner=function(r){return r===this.__ownerID?this:r?GI(this.size,this._root,r,this.__hash):this.size===0?Wa():(this.__ownerID=r,this.__altered=!1,this)},t}(Sa);bh.isMap=DI;var qn=bh.prototype;qn[_Y]=!0;qn[$y]=qn.remove;qn.removeAll=qn.deleteAll;qn.setIn=BI;qn.removeIn=qn.deleteIn=jI;qn.update=zI;qn.updateIn=UI;qn.merge=qn.concat=MY;qn.mergeWith=FY;qn.mergeDeep=BY;qn.mergeDeepWith=jY;qn.mergeIn=VI;qn.mergeDeepIn=HI;qn.withMutations=Iy;qn.wasAltered=qI;qn.asImmutable=Py;qn["@@transducer/init"]=qn.asMutable=Dy;qn["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])};qn["@@transducer/result"]=function(e){return e.asImmutable()};var Iv=function(t,n){this.ownerID=t,this.entries=n};Iv.prototype.get=function(t,n,r,i){for(var o=this.entries,a=0,s=o.length;a<s;a++)if(Eo(r,o[a][0]))return o[a][1];return i};Iv.prototype.update=function(t,n,r,i,o,a,s){for(var l=o===nn,u=this.entries,f=0,d=u.length;f<d&&!Eo(i,u[f][0]);f++);var p=f<d;if(p?u[f][1]===o:l)return this;if(oa(s),(l||!p)&&oa(a),!(l&&u.length===1)){if(!p&&!l&&u.length>=qHe)return UHe(t,u,i,o);var m=t&&t===this.ownerID,v=m?u:Ts(u);return p?l?f===d-1?v.pop():v[f]=v.pop():v[f]=[i,o]:v.push([i,o]),m?(this.entries=v,this):new Iv(t,v)}};var Kp=function(t,n,r){this.ownerID=t,this.bitmap=n,this.nodes=r};Kp.prototype.get=function(t,n,r,i){n===void 0&&(n=_o(r));var o=1<<((t===0?n:n>>>t)&Oi),a=this.bitmap;return a&o?this.nodes[zY(a&o-1)].get(t+Vn,n,r,i):i};Kp.prototype.update=function(t,n,r,i,o,a,s){r===void 0&&(r=_o(i));var l=(n===0?r:r>>>n)&Oi,u=1<<l,f=this.bitmap,d=(f&u)!==0;if(!d&&o===nn)return this;var p=zY(f&u-1),m=this.nodes,v=d?m[p]:void 0,y=YI(v,t,n+Vn,r,i,o,a,s);if(y===v)return this;if(!d&&y&&m.length>=GHe)return WHe(t,m,f,l,y);if(d&&!y&&m.length===2&&b4(m[p^1]))return m[p^1];if(d&&y&&m.length===1&&b4(y))return y;var w=t&&t===this.ownerID,b=d?y?f:f^u:f|u,x=d?y?UY(m,p,y,w):HHe(m,p,w):VHe(m,p,y,w);return w?(this.bitmap=b,this.nodes=x,this):new Kp(t,b,x)};var Dv=function(t,n,r){this.ownerID=t,this.count=n,this.nodes=r};Dv.prototype.get=function(t,n,r,i){n===void 0&&(n=_o(r));var o=(t===0?n:n>>>t)&Oi,a=this.nodes[o];return a?a.get(t+Vn,n,r,i):i};Dv.prototype.update=function(t,n,r,i,o,a,s){r===void 0&&(r=_o(i));var l=(n===0?r:r>>>n)&Oi,u=o===nn,f=this.nodes,d=f[l];if(u&&!d)return this;var p=YI(d,t,n+Vn,r,i,o,a,s);if(p===d)return this;var m=this.count;if(!d)m++;else if(!p&&(m--,m<YHe))return KHe(t,f,m,l);var v=t&&t===this.ownerID,y=UY(f,l,p,v);return v?(this.count=m,this.nodes=y,this):new Dv(t,m,y)};var Wp=function(t,n,r){this.ownerID=t,this.keyHash=n,this.entries=r};Wp.prototype.get=function(t,n,r,i){for(var o=this.entries,a=0,s=o.length;a<s;a++)if(Eo(r,o[a][0]))return o[a][1];return i};Wp.prototype.update=function(t,n,r,i,o,a,s){r===void 0&&(r=_o(i));var l=o===nn;if(r!==this.keyHash)return l?this:(oa(s),oa(a),XI(this,t,n,r,[i,o]));for(var u=this.entries,f=0,d=u.length;f<d&&!Eo(i,u[f][0]);f++);var p=f<d;if(p?u[f][1]===o:l)return this;if(oa(s),(l||!p)&&oa(a),l&&d===2)return new Ol(t,this.keyHash,u[f^1]);var m=t&&t===this.ownerID,v=m?u:Ts(u);return p?l?f===d-1?v.pop():v[f]=v.pop():v[f]=[i,o]:v.push([i,o]),m?(this.entries=v,this):new Wp(t,this.keyHash,v)};var Ol=function(t,n,r){this.ownerID=t,this.keyHash=n,this.entry=r};Ol.prototype.get=function(t,n,r,i){return Eo(r,this.entry[0])?this.entry[1]:i};Ol.prototype.update=function(t,n,r,i,o,a,s){var l=o===nn,u=Eo(i,this.entry[0]);if(u?o===this.entry[1]:l)return this;if(oa(s),l){oa(a);return}return u?t&&t===this.ownerID?(this.entry[1]=o,this):new Ol(t,this.keyHash,[i,o]):(oa(a),XI(this,t,n,_o(i),[i,o]))};Iv.prototype.iterate=Wp.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(e(n[t?i-r:r])===!1)return!1};Kp.prototype.iterate=Dv.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var o=n[t?i-r:r];if(o&&o.iterate(e,t)===!1)return!1}};Ol.prototype.iterate=function(e,t){return e(this.entry)};var zHe=function(e){function t(n,r,i){this._type=r,this._reverse=i,this._stack=n._root&&m4(n._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var r=this._type,i=this._stack;i;){var o=i.node,a=i.index++,s=void 0;if(o.entry){if(a===0)return sT(r,o.entry)}else if(o.entries){if(s=o.entries.length-1,a<=s)return sT(r,o.entries[this._reverse?s-a:a])}else if(s=o.nodes.length-1,a<=s){var l=o.nodes[this._reverse?s-a:a];if(l){if(l.entry)return sT(r,l.entry);i=this._stack=m4(l,i)}continue}i=this._stack=this._stack.__prev}return io()},t}(gn);function sT(e,t){return tr(e,t[0],t[1])}function m4(e,t){return{node:e,index:0,__prev:t}}function GI(e,t,n,r){var i=Object.create(qn);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}var v4;function Wa(){return v4||(v4=GI(0))}function y4(e,t,n){var r,i;if(e._root){var o=P$(),a=P$();if(r=YI(e._root,e.__ownerID,0,void 0,t,n,o,a),!a.value)return e;i=e.size+(o.value?n===nn?-1:1:0)}else{if(n===nn)return e;i=1,r=new Iv(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?GI(i,r):Wa()}function YI(e,t,n,r,i,o,a,s){return e?e.update(t,n,r,i,o,a,s):o===nn?e:(oa(s),oa(a),new Ol(t,r,[i,o]))}function b4(e){return e.constructor===Ol||e.constructor===Wp}function XI(e,t,n,r,i){if(e.keyHash===r)return new Wp(t,r,[e.entry,i]);var o=(n===0?e.keyHash:e.keyHash>>>n)&Oi,a=(n===0?r:r>>>n)&Oi,s,l=o===a?[XI(e,t,n+Vn,r,i)]:(s=new Ol(t,r,i),o<a?[e,s]:[s,e]);return new Kp(t,1<<o|1<<a,l)}function UHe(e,t,n,r){e||(e=new TI);for(var i=new Ol(e,_o(n),[n,r]),o=0;o<t.length;o++){var a=t[o];i=i.update(e,0,void 0,a[0],a[1])}return i}function KHe(e,t,n,r){for(var i=0,o=0,a=new Array(n),s=0,l=1,u=t.length;s<u;s++,l<<=1){var f=t[s];f!==void 0&&s!==r&&(i|=l,a[o++]=f)}return new Kp(e,i,a)}function WHe(e,t,n,r,i){for(var o=0,a=new Array(ia),s=0;n!==0;s++,n>>>=1)a[s]=n&1?t[o++]:void 0;return a[r]=i,new Dv(e,o+1,a)}function zY(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,e&127}function UY(e,t,n,r){var i=r?e:Ts(e);return i[t]=n,i}function VHe(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var o=new Array(i),a=0,s=0;s<i;s++)s===t?(o[s]=n,a=-1):o[s]=e[s+a];return o}function HHe(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a<r;a++)a===t&&(o=1),i[a]=e[a+o];return i}var qHe=ia/4,GHe=ia/2,YHe=ia/4,KY="@@__IMMUTABLE_LIST__@@";function WY(e){return!!(e&&e[KY])}var PS=function(e){function t(n){var r=Nb();if(n==null)return r;if(WY(n))return n;var i=e(n),o=i.size;return o===0?r:(So(o),o>0&&o<ia?Pv(0,o,Vn,null,new Lu(i.toArray())):r.withMutations(function(a){a.setSize(o),i.forEach(function(s,l){return a.set(l,s)})}))}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(r,i){if(r=Bu(this,r),r>=0&&r<this.size){r+=this._origin;var o=VY(this,r);return o&&o.array[r&Oi]}return i},t.prototype.set=function(r,i){return XHe(this,r,i)},t.prototype.remove=function(r){return this.has(r)?r===0?this.shift():r===this.size-1?this.pop():this.splice(r,1):this},t.prototype.insert=function(r,i){return this.splice(r,0,i)},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Vn,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):Nb()},t.prototype.push=function(){var r=arguments,i=this.size;return this.withMutations(function(o){vu(o,0,i+r.length);for(var a=0;a<r.length;a++)o.set(i+a,r[a])})},t.prototype.pop=function(){return vu(this,0,-1)},t.prototype.unshift=function(){var r=arguments;return this.withMutations(function(i){vu(i,-r.length);for(var o=0;o<r.length;o++)i.set(o,r[o])})},t.prototype.shift=function(){return vu(this,1)},t.prototype.concat=function(){for(var r=arguments,i=[],o=0;o<arguments.length;o++){var a=r[o],s=e(typeof a!="string"&&vY(a)?a:[a]);s.size!==0&&i.push(s)}return i.length===0?this:this.size===0&&!this.__ownerID&&i.length===1?this.constructor(i[0]):this.withMutations(function(l){i.forEach(function(u){return u.forEach(function(f){return l.push(f)})})})},t.prototype.setSize=function(r){return vu(this,0,r)},t.prototype.map=function(r,i){var o=this;return this.withMutations(function(a){for(var s=0;s<o.size;s++)a.set(s,r.call(i,a.get(s),s,o))})},t.prototype.slice=function(r,i){var o=this.size;return TS(r,i,o)?this:vu(this,Ry(r,o),AS(i,o))},t.prototype.__iterator=function(r,i){var o=i?this.size:0,a=_4(this,i);return new gn(function(){var s=a();return s===Qm?io():tr(r,i?--o:o++,s)})},t.prototype.__iterate=function(r,i){for(var o=i?this.size:0,a=_4(this,i),s;(s=a())!==Qm&&r(s,i?--o:o++,this)!==!1;);return o},t.prototype.__ensureOwner=function(r){return r===this.__ownerID?this:r?Pv(this._origin,this._capacity,this._level,this._root,this._tail,r,this.__hash):this.size===0?Nb():(this.__ownerID=r,this.__altered=!1,this)},t}(Pf);PS.isList=WY;var Ir=PS.prototype;Ir[KY]=!0;Ir[$y]=Ir.remove;Ir.merge=Ir.concat;Ir.setIn=BI;Ir.deleteIn=Ir.removeIn=jI;Ir.update=zI;Ir.updateIn=UI;Ir.mergeIn=VI;Ir.mergeDeepIn=HI;Ir.withMutations=Iy;Ir.wasAltered=qI;Ir.asImmutable=Py;Ir["@@transducer/init"]=Ir.asMutable=Dy;Ir["@@transducer/step"]=function(e,t){return e.push(t)};Ir["@@transducer/result"]=function(e){return e.asImmutable()};var Lu=function(t,n){this.array=t,this.ownerID=n};Lu.prototype.removeBefore=function(t,n,r){if(r===n?1<<n:this.array.length===0)return this;var i=r>>>n&Oi;if(i>=this.array.length)return new Lu([],t);var o=i===0,a;if(n>0){var s=this.array[i];if(a=s&&s.removeBefore(t,n-Vn,r),a===s&&o)return this}if(o&&!a)return this;var l=Vp(this,t);if(!o)for(var u=0;u<i;u++)l.array[u]=void 0;return a&&(l.array[i]=a),l};Lu.prototype.removeAfter=function(t,n,r){if(r===(n?1<<n:0)||this.array.length===0)return this;var i=r-1>>>n&Oi;if(i>=this.array.length)return this;var o;if(n>0){var a=this.array[i];if(o=a&&a.removeAfter(t,n-Vn,r),o===a&&i===this.array.length-1)return this}var s=Vp(this,t);return s.array.splice(i+1),o&&(s.array[i]=o),s};var Qm={};function _4(e,t){var n=e._origin,r=e._capacity,i=Lv(r),o=e._tail;return a(e._root,e._level,0);function a(u,f,d){return f===0?s(u,d):l(u,f,d)}function s(u,f){var d=f===i?o&&o.array:u&&u.array,p=f>n?0:n-f,m=r-f;return m>ia&&(m=ia),function(){if(p===m)return Qm;var v=t?--m:p++;return d&&d[v]}}function l(u,f,d){var p,m=u&&u.array,v=d>n?0:n-d>>f,y=(r-d>>f)+1;return y>ia&&(y=ia),function(){for(;;){if(p){var w=p();if(w!==Qm)return w;p=null}if(v===y)return Qm;var b=t?--y:v++;p=a(m&&m[b],f-Vn,d+(b<<f))}}}}function Pv(e,t,n,r,i,o,a){var s=Object.create(Ir);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=i,s.__ownerID=o,s.__hash=a,s.__altered=!1,s}var x4;function Nb(){return x4||(x4=Pv(0,0,Vn))}function XHe(e,t,n){if(t=Bu(e,t),t!==t)return e;if(t>=e.size||t<0)return e.withMutations(function(a){t<0?vu(a,t).set(0,n):vu(a,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=P$();return t>=Lv(e._capacity)?r=j$(r,e.__ownerID,0,t,n,o):i=j$(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Pv(e._origin,e._capacity,e._level,i,r):e}function j$(e,t,n,r,i,o){var a=r>>>n&Oi,s=e&&a<e.array.length;if(!s&&i===void 0)return e;var l;if(n>0){var u=e&&e.array[a],f=j$(u,t,n-Vn,r,i,o);return f===u?e:(l=Vp(e,t),l.array[a]=f,l)}return s&&e.array[a]===i?e:(o&&oa(o),l=Vp(e,t),i===void 0&&a===l.array.length-1?l.array.pop():l.array[a]=i,l)}function Vp(e,t){return t&&e&&t===e.ownerID?e:new Lu(e?e.array.slice():[],t)}function VY(e,t){if(t>=Lv(e._capacity))return e._tail;if(t<1<<e._level+Vn){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&Oi],r-=Vn;return n}}function vu(e,t,n){t!==void 0&&(t|=0),n!==void 0&&(n|=0);var r=e.__ownerID||new TI,i=e._origin,o=e._capacity,a=i+t,s=n===void 0?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(a>=s)return e.clear();for(var l=e._level,u=e._root,f=0;a+f<0;)u=new Lu(u&&u.array.length?[void 0,u]:[],r),l+=Vn,f+=1<<l;f&&(a+=f,i+=f,s+=f,o+=f);for(var d=Lv(o),p=Lv(s);p>=1<<l+Vn;)u=new Lu(u&&u.array.length?[u]:[],r),l+=Vn;var m=e._tail,v=p<d?VY(e,s-1):p>d?new Lu([],r):m;if(m&&p>d&&a<o&&m.array.length){u=Vp(u,r);for(var y=u,w=l;w>Vn;w-=Vn){var b=d>>>w&Oi;y=y.array[b]=Vp(y.array[b],r)}y.array[d>>>Vn&Oi]=m}if(s<o&&(v=v&&v.removeAfter(r,0,s)),a>=p)a-=p,s-=p,l=Vn,u=null,v=v&&v.removeBefore(r,0,a);else if(a>i||p<d){for(f=0;u;){var x=a>>>l&Oi;if(x!==p>>>l&Oi)break;x&&(f+=(1<<l)*x),l-=Vn,u=u.array[x]}u&&a>i&&(u=u.removeBefore(r,l,a-f)),u&&p<d&&(u=u.removeAfter(r,l,p-f)),f&&(a-=f,s-=f)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=l,e._root=u,e._tail=v,e.__hash=void 0,e.__altered=!0,e):Pv(a,s,l,u,v)}function Lv(e){return e<ia?0:e-1>>>Vn<<Vn}var Il=function(e){function t(n){return n==null?Sm():xY(n)?n:Sm().withMutations(function(r){var i=Sa(n);So(i.size),i.forEach(function(o,a){return r.set(a,o)})})}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(r,i){var o=this._map.get(r);return o!==void 0?this._list.get(o)[1]:i},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):Sm()},t.prototype.set=function(r,i){return S4(this,r,i)},t.prototype.remove=function(r){return S4(this,r,nn)},t.prototype.__iterate=function(r,i){var o=this;return this._list.__iterate(function(a){return a&&r(a[1],a[0],o)},i)},t.prototype.__iterator=function(r,i){return this._list.fromEntrySeq().__iterator(r,i)},t.prototype.__ensureOwner=function(r){if(r===this.__ownerID)return this;var i=this._map.__ensureOwner(r),o=this._list.__ensureOwner(r);return r?ZI(i,o,r,this.__hash):this.size===0?Sm():(this.__ownerID=r,this.__altered=!1,this._map=i,this._list=o,this)},t}(bh);Il.isOrderedMap=xY;Il.prototype[gh]=!0;Il.prototype[$y]=Il.prototype.remove;function ZI(e,t,n,r){var i=Object.create(Il.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}var w4;function Sm(){return w4||(w4=ZI(Wa(),Nb()))}function S4(e,t,n){var r=e._map,i=e._list,o=r.get(t),a=o!==void 0,s,l;if(n===nn){if(!a)return e;i.size>=ia&&i.size>=r.size*2?(l=i.filter(function(u,f){return u!==void 0&&o!==f}),s=l.toKeyedSeq().map(function(u){return u[0]}).flip().toMap(),e.__ownerID&&(s.__ownerID=l.__ownerID=e.__ownerID)):(s=r.remove(t),l=o===i.size-1?i.pop():i.set(o,void 0))}else if(a){if(n===i.get(o)[1])return e;s=r,l=i.set(o,[t,n])}else s=r.set(t,i.size),l=i.set(i.size,[t,n]);return e.__ownerID?(e.size=s.size,e._map=s,e._list=l,e.__hash=void 0,e.__altered=!0,e):ZI(s,l)}var HY="@@__IMMUTABLE_STACK__@@";function z$(e){return!!(e&&e[HY])}var JI=function(e){function t(n){return n==null?tb():z$(n)?n:tb().pushAll(n)}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(r,i){var o=this._head;for(r=Bu(this,r);o&&r--;)o=o.next;return o?o.value:i},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var r=arguments;if(arguments.length===0)return this;for(var i=this.size+arguments.length,o=this._head,a=arguments.length-1;a>=0;a--)o={value:r[a],next:o};return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Cm(i,o)},t.prototype.pushAll=function(r){if(r=e(r),r.size===0)return this;if(this.size===0&&z$(r))return r;So(r.size);var i=this.size,o=this._head;return r.__iterate(function(a){i++,o={value:a,next:o}},!0),this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):Cm(i,o)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):tb()},t.prototype.slice=function(r,i){if(TS(r,i,this.size))return this;var o=Ry(r,this.size),a=AS(i,this.size);if(a!==this.size)return e.prototype.slice.call(this,r,i);for(var s=this.size-o,l=this._head;o--;)l=l.next;return this.__ownerID?(this.size=s,this._head=l,this.__hash=void 0,this.__altered=!0,this):Cm(s,l)},t.prototype.__ensureOwner=function(r){return r===this.__ownerID?this:r?Cm(this.size,this._head,r,this.__hash):this.size===0?tb():(this.__ownerID=r,this.__altered=!1,this)},t.prototype.__iterate=function(r,i){var o=this;if(i)return new pf(this.toArray()).__iterate(function(l,u){return r(l,u,o)},i);for(var a=0,s=this._head;s&&r(s.value,a++,this)!==!1;)s=s.next;return a},t.prototype.__iterator=function(r,i){if(i)return new pf(this.toArray()).__iterator(r,i);var o=0,a=this._head;return new gn(function(){if(a){var s=a.value;return a=a.next,tr(r,o++,s)}return io()})},t}(Pf);JI.isStack=z$;var Di=JI.prototype;Di[HY]=!0;Di.shift=Di.pop;Di.unshift=Di.push;Di.unshiftAll=Di.pushAll;Di.withMutations=Iy;Di.wasAltered=qI;Di.asImmutable=Py;Di["@@transducer/init"]=Di.asMutable=Dy;Di["@@transducer/step"]=function(e,t){return e.unshift(t)};Di["@@transducer/result"]=function(e){return e.asImmutable()};function Cm(e,t,n,r){var i=Object.create(Di);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}var C4;function tb(){return C4||(C4=Cm(0))}var qY="@@__IMMUTABLE_SET__@@";function QI(e){return!!(e&&e[qY])}function GY(e){return QI(e)&&Xa(e)}function YY(e,t){if(e===t)return!0;if(!ro(t)||e.size!==void 0&&t.size!==void 0&&e.size!==t.size||e.__hash!==void 0&&t.__hash!==void 0&&e.__hash!==t.__hash||Zn(e)!==Zn(t)||Qi(e)!==Qi(t)||Xa(e)!==Xa(t))return!1;if(e.size===0&&t.size===0)return!0;var n=!$S(e);if(Xa(e)){var r=e.entries();return t.every(function(l,u){var f=r.next().value;return f&&Eo(f[1],l)&&(n||Eo(f[0],u))})&&r.next().done}var i=!1;if(e.size===void 0)if(t.size===void 0)typeof e.cacheResult=="function"&&e.cacheResult();else{i=!0;var o=e;e=t,t=o}var a=!0,s=t.__iterate(function(l,u){if(n?!e.has(l):i?!Eo(l,e.get(u,nn)):!Eo(e.get(u,nn),l))return a=!1,!1});return a&&e.size===s}function Lf(e,t){var n=function(r){e.prototype[r]=t[r]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function Q_(e){if(!e||typeof e!="object")return e;if(!ro(e)){if(!ju(e))return e;e=Do(e)}if(Zn(e)){var t={};return e.__iterate(function(r,i){t[i]=Q_(r)}),t}var n=[];return e.__iterate(function(r){n.push(Q_(r))}),n}var LS=function(e){function t(n){return n==null?Em():QI(n)&&!Xa(n)?n:Em().withMutations(function(r){var i=e(n);So(i.size),i.forEach(function(o){return r.add(o)})})}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(r){return this(Sa(r).keySeq())},t.intersect=function(r){return r=Er(r).toArray(),r.length?oi.intersect.apply(t(r.pop()),r):Em()},t.union=function(r){return r=Er(r).toArray(),r.length?oi.union.apply(t(r.pop()),r):Em()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(r){return this._map.has(r)},t.prototype.add=function(r){return nb(this,this._map.set(r,r))},t.prototype.remove=function(r){return nb(this,this._map.remove(r))},t.prototype.clear=function(){return nb(this,this._map.clear())},t.prototype.map=function(r,i){var o=this,a=!1,s=nb(this,this._map.mapEntries(function(l){var u=l[1],f=r.call(i,u,u,o);return f!==u&&(a=!0),[f,f]},i));return a?s:this},t.prototype.union=function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return r=r.filter(function(o){return o.size!==0}),r.length===0?this:this.size===0&&!this.__ownerID&&r.length===1?this.constructor(r[0]):this.withMutations(function(o){for(var a=0;a<r.length;a++)typeof r[a]=="string"?o.add(r[a]):e(r[a]).forEach(function(s){return o.add(s)})})},t.prototype.intersect=function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];if(r.length===0)return this;r=r.map(function(a){return e(a)});var o=[];return this.forEach(function(a){r.every(function(s){return s.includes(a)})||o.push(a)}),this.withMutations(function(a){o.forEach(function(s){a.remove(s)})})},t.prototype.subtract=function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];if(r.length===0)return this;r=r.map(function(a){return e(a)});var o=[];return this.forEach(function(a){r.some(function(s){return s.includes(a)})&&o.push(a)}),this.withMutations(function(a){o.forEach(function(s){a.remove(s)})})},t.prototype.sort=function(r){return hf(Up(this,r))},t.prototype.sortBy=function(r,i){return hf(Up(this,i,r))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(r,i){var o=this;return this._map.__iterate(function(a){return r(a,a,o)},i)},t.prototype.__iterator=function(r,i){return this._map.__iterator(r,i)},t.prototype.__ensureOwner=function(r){if(r===this.__ownerID)return this;var i=this._map.__ensureOwner(r);return r?this.__make(i,r):this.size===0?this.__empty():(this.__ownerID=r,this._map=i,this)},t}(ph);LS.isSet=QI;var oi=LS.prototype;oi[qY]=!0;oi[$y]=oi.remove;oi.merge=oi.concat=oi.union;oi.withMutations=Iy;oi.asImmutable=Py;oi["@@transducer/init"]=oi.asMutable=Dy;oi["@@transducer/step"]=function(e,t){return e.add(t)};oi["@@transducer/result"]=function(e){return e.asImmutable()};oi.__empty=Em;oi.__make=XY;function nb(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:t.size===0?e.__empty():e.__make(t)}function XY(e,t){var n=Object.create(oi);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}var E4;function Em(){return E4||(E4=XY(Wa()))}var ZHe=function(e){function t(n,r,i){if(!(this instanceof t))return new t(n,r,i);if(NI(i!==0,"Cannot step a Range by 0"),n=n||0,r===void 0&&(r=1/0),i=i===void 0?1:Math.abs(i),r<n&&(i=-i),this._start=n,this._end=r,this._step=i,this.size=Math.max(0,Math.ceil((r-n)/i-1)+1),this.size===0){if(lT)return lT;lT=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step!==1?" by "+this._step:"")+" ]"},t.prototype.get=function(r,i){return this.has(r)?this._start+Bu(this,r)*this._step:i},t.prototype.includes=function(r){var i=(r-this._start)/this._step;return i>=0&&i<this.size&&i===Math.floor(i)},t.prototype.slice=function(r,i){return TS(r,i,this.size)?this:(r=Ry(r,this.size),i=AS(i,this.size),i<=r?new t(0,0):new t(this.get(r,this._end),this.get(i,this._end),this._step))},t.prototype.indexOf=function(r){var i=r-this._start;if(i%this._step===0){var o=i/this._step;if(o>=0&&o<this.size)return o}return-1},t.prototype.lastIndexOf=function(r){return this.indexOf(r)},t.prototype.__iterate=function(r,i){for(var o=this.size,a=this._step,s=i?this._start+(o-1)*a:this._start,l=0;l!==o&&r(s,i?o-++l:l++,this)!==!1;)s+=i?-a:a;return l},t.prototype.__iterator=function(r,i){var o=this.size,a=this._step,s=i?this._start+(o-1)*a:this._start,l=0;return new gn(function(){if(l===o)return io();var u=s;return s+=i?-a:a,tr(r,i?o-++l:l++,u)})},t.prototype.equals=function(r){return r instanceof t?this._start===r._start&&this._end===r._end&&this._step===r._step:YY(this,r)},t}(ts),lT;function ZY(e,t,n){for(var r=IY(t),i=0;i!==r.length;)if(e=DY(e,r[i++],nn),e===nn)return n;return e}function JY(e,t){return ZY(this,e,t)}function JHe(e,t){return ZY(e,t,nn)!==nn}function QHe(e){return JHe(this,e)}function QY(){So(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e}Er.isIterable=ro;Er.isKeyed=Zn;Er.isIndexed=Qi;Er.isAssociative=$S;Er.isOrdered=Xa;Er.Iterator=gn;Lf(Er,{toArray:function(){So(this.size);var t=new Array(this.size||0),n=Zn(this),r=0;return this.__iterate(function(i,o){t[r++]=n?[o,i]:i}),t},toIndexedSeq:function(){return new SY(this)},toJS:function(){return Q_(this)},toKeyedSeq:function(){return new DS(this,!0)},toMap:function(){return bh(this.toKeyedSeq())},toObject:QY,toOrderedMap:function(){return Il(this.toKeyedSeq())},toOrderedSet:function(){return hf(Zn(this)?this.valueSeq():this)},toSet:function(){return LS(Zn(this)?this.valueSeq():this)},toSetSeq:function(){return new CY(this)},toSeq:function(){return Qi(this)?this.toIndexedSeq():Zn(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return JI(Zn(this)?this.valueSeq():this)},toList:function(){return PS(Zn(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(t,n){return this.size===0?t+n:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+n},concat:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return An(this,$He(this,t))},includes:function(t){return this.some(function(n){return Eo(n,t)})},entries:function(){return this.__iterator(ga)},every:function(t,n){So(this.size);var r=!0;return this.__iterate(function(i,o,a){if(!t.call(n,i,o,a))return r=!1,!1}),r},filter:function(t,n){return An(this,AY(this,t,n,!0))},partition:function(t,n){return THe(this,t,n)},find:function(t,n,r){var i=this.findEntry(t,n);return i?i[1]:r},forEach:function(t,n){return So(this.size),this.__iterate(n?t.bind(n):t)},join:function(t){So(this.size),t=t!==void 0?""+t:",";var n="",r=!0;return this.__iterate(function(i){r?r=!1:n+=t,n+=i!=null?i.toString():""}),n},keys:function(){return this.__iterator(Oy)},map:function(t,n){return An(this,TY(this,t,n))},reduce:function(t,n,r){return k4(this,t,n,r,arguments.length<2,!1)},reduceRight:function(t,n,r){return k4(this,t,n,r,arguments.length<2,!0)},reverse:function(){return An(this,PI(this,!0))},slice:function(t,n){return An(this,LI(this,t,n,!0))},some:function(t,n){So(this.size);var r=!1;return this.__iterate(function(i,o,a){if(t.call(n,i,o,a))return r=!0,!1}),r},sort:function(t){return An(this,Up(this,t))},values:function(){return this.__iterator(Qa)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(t,n){return zp(t?this.toSeq().filter(t,n):this)},countBy:function(t,n){return EHe(this,t,n)},equals:function(t){return YY(this,t)},entrySeq:function(){var t=this;if(t._cache)return new pf(t._cache);var n=t.toSeq().map(tqe).toIndexedSeq();return n.fromEntrySeq=function(){return t.toSeq()},n},filterNot:function(t,n){return this.filter(uT(t),n)},findEntry:function(t,n,r){var i=r;return this.__iterate(function(o,a,s){if(t.call(n,o,a,s))return i=[a,o],!1}),i},findKey:function(t,n){var r=this.findEntry(t,n);return r&&r[0]},findLast:function(t,n,r){return this.toKeyedSeq().reverse().find(t,n,r)},findLastEntry:function(t,n,r){return this.toKeyedSeq().reverse().findEntry(t,n,r)},findLastKey:function(t,n){return this.toKeyedSeq().reverse().findKey(t,n)},first:function(t){return this.find(lY,null,t)},flatMap:function(t,n){return An(this,RHe(this,t,n))},flatten:function(t){return An(this,RY(this,t,!0))},fromEntrySeq:function(){return new EY(this)},get:function(t,n){return this.find(function(r,i){return Eo(i,t)},void 0,n)},getIn:JY,groupBy:function(t,n){return kHe(this,t,n)},has:function(t){return this.get(t,nn)!==nn},hasIn:QHe,isSubset:function(t){return t=typeof t.includes=="function"?t:Er(t),this.every(function(n){return t.includes(n)})},isSuperset:function(t){return t=typeof t.isSubset=="function"?t:Er(t),t.isSubset(this)},keyOf:function(t){return this.findKey(function(n){return Eo(n,t)})},keySeq:function(){return this.toSeq().map(eqe).toIndexedSeq()},last:function(t){return this.toSeq().reverse().first(t)},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return Q1(this,t)},maxBy:function(t,n){return Q1(this,n,t)},min:function(t){return Q1(this,t?T4(t):$4)},minBy:function(t,n){return Q1(this,n?T4(n):$4,t)},rest:function(){return this.slice(1)},skip:function(t){return t===0?this:this.slice(Math.max(0,t))},skipLast:function(t){return t===0?this:this.slice(0,-Math.max(0,t))},skipWhile:function(t,n){return An(this,$Y(this,t,n,!0))},skipUntil:function(t,n){return this.skipWhile(uT(t),n)},sortBy:function(t,n){return An(this,Up(this,n,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return this.slice(-Math.max(0,t))},takeWhile:function(t,n){return An(this,AHe(this,t,n))},takeUntil:function(t,n){return this.takeWhile(uT(t),n)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=nqe(this))}});var yi=Er.prototype;yi[fY]=!0;yi[RS]=yi.values;yi.toJSON=yi.toArray;yi.__toStringMapper=Ov;yi.inspect=yi.toSource=function(){return this.toString()};yi.chain=yi.flatMap;yi.contains=yi.includes;Lf(Sa,{flip:function(){return An(this,kY(this))},mapEntries:function(t,n){var r=this,i=0;return An(this,this.toSeq().map(function(o,a){return t.call(n,[a,o],i++,r)}).fromEntrySeq())},mapKeys:function(t,n){var r=this;return An(this,this.toSeq().flip().map(function(i,o){return t.call(n,i,o,r)}).flip())}});var Ly=Sa.prototype;Ly[dY]=!0;Ly[RS]=yi.entries;Ly.toJSON=QY;Ly.__toStringMapper=function(e,t){return Ov(t)+": "+Ov(e)};Lf(Pf,{toKeyedSeq:function(){return new DS(this,!1)},filter:function(t,n){return An(this,AY(this,t,n,!1))},findIndex:function(t,n){var r=this.findEntry(t,n);return r?r[0]:-1},indexOf:function(t){var n=this.keyOf(t);return n===void 0?-1:n},lastIndexOf:function(t){var n=this.lastKeyOf(t);return n===void 0?-1:n},reverse:function(){return An(this,PI(this,!1))},slice:function(t,n){return An(this,LI(this,t,n,!1))},splice:function(t,n){var r=arguments.length;if(n=Math.max(n||0,0),r===0||r===2&&!n)return this;t=Ry(t,t<0?this.count():this.size);var i=this.slice(0,t);return An(this,r===1?i:i.concat(Ts(arguments,2),this.slice(t+n)))},findLastIndex:function(t,n){var r=this.findLastEntry(t,n);return r?r[0]:-1},first:function(t){return this.get(0,t)},flatten:function(t){return An(this,RY(this,t,!1))},get:function(t,n){return t=Bu(this,t),t<0||this.size===1/0||this.size!==void 0&&t>this.size?n:this.find(function(r,i){return i===t},void 0,n)},has:function(t){return t=Bu(this,t),t>=0&&(this.size!==void 0?this.size===1/0||t<this.size:this.indexOf(t)!==-1)},interpose:function(t){return An(this,OHe(this,t))},interleave:function(){var t=[this].concat(Ts(arguments)),n=eb(this.toSeq(),ts.of,t),r=n.flatten(!0);return n.size&&(r.size=n.size*t.length),An(this,r)},keySeq:function(){return ZHe(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,n){return An(this,$Y(this,t,n,!1))},zip:function(){var t=[this].concat(Ts(arguments));return An(this,eb(this,A4,t))},zipAll:function(){var t=[this].concat(Ts(arguments));return An(this,eb(this,A4,t,!0))},zipWith:function(t){var n=Ts(arguments);return n[0]=this,An(this,eb(this,t,n))}});var _h=Pf.prototype;_h[pY]=!0;_h[gh]=!0;Lf(ph,{get:function(t,n){return this.has(t)?t:n},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}});var Hp=ph.prototype;Hp.has=yi.includes;Hp.contains=Hp.includes;Hp.keys=Hp.values;Lf(nc,Ly);Lf(ts,_h);Lf(vh,Hp);function k4(e,t,n,r,i,o){return So(e.size),e.__iterate(function(a,s,l){i?(i=!1,n=a):n=t.call(r,n,a,s,l)},o),n}function eqe(e,t){return t}function tqe(e,t){return[t,e]}function uT(e){return function(){return!e.apply(this,arguments)}}function T4(e){return function(){return-e.apply(this,arguments)}}function A4(){return Ts(arguments)}function $4(e,t){return e<t?1:e>t?-1:0}function nqe(e){if(e.size===1/0)return 0;var t=Xa(e),n=Zn(e),r=t?1:0,i=e.__iterate(n?t?function(o,a){r=31*r+R4(_o(o),_o(a))|0}:function(o,a){r=r+R4(_o(o),_o(a))|0}:t?function(o){r=31*r+_o(o)|0}:function(o){r=r+_o(o)|0});return rqe(i,r)}function rqe(e,t){return t=lm(t,3432918353),t=lm(t<<15|t>>>-15,461845907),t=lm(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=lm(t^t>>>16,2246822507),t=lm(t^t>>>13,3266489909),t=IS(t^t>>>16),t}function R4(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var hf=function(e){function t(n){return n==null?U$():GY(n)?n:U$().withMutations(function(r){var i=ph(n);So(i.size),i.forEach(function(o){return r.add(o)})})}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(r){return this(Sa(r).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(LS);hf.isOrderedSet=GY;var Mf=hf.prototype;Mf[gh]=!0;Mf.zip=_h.zip;Mf.zipWith=_h.zipWith;Mf.zipAll=_h.zipAll;Mf.__empty=U$;Mf.__make=eX;function eX(e,t){var n=Object.create(Mf);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}var O4;function U$(){return O4||(O4=eX(Sm()))}function iqe(e){if(hh(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(Vs(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(e===null||typeof e!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}var Hr=function(t,n){var r;iqe(t);var i=function(s){var l=this;if(s instanceof i)return s;if(!(this instanceof i))return new i(s);if(!r){r=!0;var u=Object.keys(t),f=o._indices={};o._name=n,o._keys=u,o._defaultValues=t;for(var d=0;d<u.length;d++){var p=u[d];f[p]=d,o[p]?typeof console=="object"&&console.warn&&console.warn("Cannot define "+tD(this)+' with property "'+p+'" since that property name is part of the Record API.'):oqe(o,p)}}return this.__ownerID=void 0,this._values=PS().withMutations(function(m){m.setSize(l._keys.length),Sa(s).forEach(function(v,y){m.set(l._indices[y],v===l._defaultValues[y]?void 0:v)})}),this},o=i.prototype=Object.create(Fn);return o.constructor=i,n&&(i.displayName=n),i};Hr.prototype.toString=function(){for(var t=tD(this)+" { ",n=this._keys,r,i=0,o=n.length;i!==o;i++)r=n[i],t+=(i?", ":"")+r+": "+Ov(this.get(r));return t+" }"};Hr.prototype.equals=function(t){return this===t||hh(t)&&qp(this).equals(qp(t))};Hr.prototype.hashCode=function(){return qp(this).hashCode()};Hr.prototype.has=function(t){return this._indices.hasOwnProperty(t)};Hr.prototype.get=function(t,n){if(!this.has(t))return n;var r=this._indices[t],i=this._values.get(r);return i===void 0?this._defaultValues[t]:i};Hr.prototype.set=function(t,n){if(this.has(t)){var r=this._values.set(this._indices[t],n===this._defaultValues[t]?void 0:n);if(r!==this._values&&!this.__ownerID)return eD(this,r)}return this};Hr.prototype.remove=function(t){return this.set(t)};Hr.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:eD(this,t)};Hr.prototype.wasAltered=function(){return this._values.wasAltered()};Hr.prototype.toSeq=function(){return qp(this)};Hr.prototype.toJS=function(){return Q_(this)};Hr.prototype.entries=function(){return this.__iterator(ga)};Hr.prototype.__iterator=function(t,n){return qp(this).__iterator(t,n)};Hr.prototype.__iterate=function(t,n){return qp(this).__iterate(t,n)};Hr.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var n=this._values.__ensureOwner(t);return t?eD(this,n,t):(this.__ownerID=t,this._values=n,this)};Hr.isRecord=hh;Hr.getDescriptiveName=tD;var Fn=Hr.prototype;Fn[gY]=!0;Fn[$y]=Fn.remove;Fn.deleteIn=Fn.removeIn=jI;Fn.getIn=JY;Fn.hasIn=yi.hasIn;Fn.merge=MY;Fn.mergeWith=FY;Fn.mergeIn=VI;Fn.mergeDeep=BY;Fn.mergeDeepWith=jY;Fn.mergeDeepIn=HI;Fn.setIn=BI;Fn.update=zI;Fn.updateIn=UI;Fn.withMutations=Iy;Fn.asMutable=Dy;Fn.asImmutable=Py;Fn[RS]=Fn.entries;Fn.toJSON=Fn.toObject=yi.toObject;Fn.inspect=Fn.toSource=function(){return this.toString()};function eD(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function tD(e){return e.constructor.displayName||e.constructor.name||"Record"}function qp(e){return OI(e._keys.map(function(t){return[t,e.get(t)]}))}function oqe(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(n){NI(this.__ownerID,"Cannot set on an immutable record."),this.set(t,n)}})}catch{}}function aqe(){this.__data__=[],this.size=0}var sqe=aqe;function lqe(e,t){return e===t||e!==e&&t!==t}var My=lqe,uqe=My;function cqe(e,t){for(var n=e.length;n--;)if(uqe(e[n][0],t))return n;return-1}var MS=cqe,fqe=MS,dqe=Array.prototype,pqe=dqe.splice;function hqe(e){var t=this.__data__,n=fqe(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():pqe.call(t,n,1),--this.size,!0}var gqe=hqe,mqe=MS;function vqe(e){var t=this.__data__,n=mqe(t,e);return n<0?void 0:t[n][1]}var yqe=vqe,bqe=MS;function _qe(e){return bqe(this.__data__,e)>-1}var xqe=_qe,wqe=MS;function Sqe(e,t){var n=this.__data__,r=wqe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var Cqe=Sqe,Eqe=sqe,kqe=gqe,Tqe=yqe,Aqe=xqe,$qe=Cqe;function xh(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}xh.prototype.clear=Eqe;xh.prototype.delete=kqe;xh.prototype.get=Tqe;xh.prototype.has=Aqe;xh.prototype.set=$qe;var FS=xh,Rqe=FS;function Oqe(){this.__data__=new Rqe,this.size=0}var Iqe=Oqe;function Dqe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var Pqe=Dqe;function Lqe(e){return this.__data__.get(e)}var Mqe=Lqe;function Fqe(e){return this.__data__.has(e)}var Nqe=Fqe,Bqe=typeof ri=="object"&&ri&&ri.Object===Object&&ri,tX=Bqe,jqe=tX,zqe=typeof self=="object"&&self&&self.Object===Object&&self,Uqe=jqe||zqe||Function("return this")(),ns=Uqe,Kqe=ns,Wqe=Kqe.Symbol,wh=Wqe,I4=wh,nX=Object.prototype,Vqe=nX.hasOwnProperty,Hqe=nX.toString,um=I4?I4.toStringTag:void 0;function qqe(e){var t=Vqe.call(e,um),n=e[um];try{e[um]=void 0;var r=!0}catch{}var i=Hqe.call(e);return r&&(t?e[um]=n:delete e[um]),i}var Gqe=qqe,Yqe=Object.prototype,Xqe=Yqe.toString;function Zqe(e){return Xqe.call(e)}var Jqe=Zqe,D4=wh,Qqe=Gqe,eGe=Jqe,tGe="[object Null]",nGe="[object Undefined]",P4=D4?D4.toStringTag:void 0;function rGe(e){return e==null?e===void 0?nGe:tGe:P4&&P4 in Object(e)?Qqe(e):eGe(e)}var Sh=rGe;function iGe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var rs=iGe,oGe=Sh,aGe=rs,sGe="[object AsyncFunction]",lGe="[object Function]",uGe="[object GeneratorFunction]",cGe="[object Proxy]";function fGe(e){if(!aGe(e))return!1;var t=oGe(e);return t==lGe||t==uGe||t==sGe||t==cGe}var nD=fGe,dGe=ns,pGe=dGe["__core-js_shared__"],hGe=pGe,cT=hGe,L4=function(){var e=/[^.]+$/.exec(cT&&cT.keys&&cT.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function gGe(e){return!!L4&&L4 in e}var mGe=gGe,vGe=Function.prototype,yGe=vGe.toString;function bGe(e){if(e!=null){try{return yGe.call(e)}catch{}try{return e+""}catch{}}return""}var rX=bGe,_Ge=nD,xGe=mGe,wGe=rs,SGe=rX,CGe=/[\\^$.*+?()[\]{}|]/g,EGe=/^\[object .+?Constructor\]$/,kGe=Function.prototype,TGe=Object.prototype,AGe=kGe.toString,$Ge=TGe.hasOwnProperty,RGe=RegExp("^"+AGe.call($Ge).replace(CGe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function OGe(e){if(!wGe(e)||xGe(e))return!1;var t=_Ge(e)?RGe:EGe;return t.test(SGe(e))}var IGe=OGe;function DGe(e,t){return e==null?void 0:e[t]}var PGe=DGe,LGe=IGe,MGe=PGe;function FGe(e,t){var n=MGe(e,t);return LGe(n)?n:void 0}var Ff=FGe,NGe=Ff,BGe=ns,jGe=NGe(BGe,"Map"),rD=jGe,zGe=Ff,UGe=zGe(Object,"create"),NS=UGe,M4=NS;function KGe(){this.__data__=M4?M4(null):{},this.size=0}var WGe=KGe;function VGe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var HGe=VGe,qGe=NS,GGe="__lodash_hash_undefined__",YGe=Object.prototype,XGe=YGe.hasOwnProperty;function ZGe(e){var t=this.__data__;if(qGe){var n=t[e];return n===GGe?void 0:n}return XGe.call(t,e)?t[e]:void 0}var JGe=ZGe,QGe=NS,eYe=Object.prototype,tYe=eYe.hasOwnProperty;function nYe(e){var t=this.__data__;return QGe?t[e]!==void 0:tYe.call(t,e)}var rYe=nYe,iYe=NS,oYe="__lodash_hash_undefined__";function aYe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=iYe&&t===void 0?oYe:t,this}var sYe=aYe,lYe=WGe,uYe=HGe,cYe=JGe,fYe=rYe,dYe=sYe;function Ch(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ch.prototype.clear=lYe;Ch.prototype.delete=uYe;Ch.prototype.get=cYe;Ch.prototype.has=fYe;Ch.prototype.set=dYe;var pYe=Ch,F4=pYe,hYe=FS,gYe=rD;function mYe(){this.size=0,this.__data__={hash:new F4,map:new(gYe||hYe),string:new F4}}var vYe=mYe;function yYe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var bYe=yYe,_Ye=bYe;function xYe(e,t){var n=e.__data__;return _Ye(t)?n[typeof t=="string"?"string":"hash"]:n.map}var BS=xYe,wYe=BS;function SYe(e){var t=wYe(this,e).delete(e);return this.size-=t?1:0,t}var CYe=SYe,EYe=BS;function kYe(e){return EYe(this,e).get(e)}var TYe=kYe,AYe=BS;function $Ye(e){return AYe(this,e).has(e)}var RYe=$Ye,OYe=BS;function IYe(e,t){var n=OYe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var DYe=IYe,PYe=vYe,LYe=CYe,MYe=TYe,FYe=RYe,NYe=DYe;function Eh(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Eh.prototype.clear=PYe;Eh.prototype.delete=LYe;Eh.prototype.get=MYe;Eh.prototype.has=FYe;Eh.prototype.set=NYe;var iD=Eh,BYe=FS,jYe=rD,zYe=iD,UYe=200;function KYe(e,t){var n=this.__data__;if(n instanceof BYe){var r=n.__data__;if(!jYe||r.length<UYe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new zYe(r)}return n.set(e,t),this.size=n.size,this}var WYe=KYe,VYe=FS,HYe=Iqe,qYe=Pqe,GYe=Mqe,YYe=Nqe,XYe=WYe;function kh(e){var t=this.__data__=new VYe(e);this.size=t.size}kh.prototype.clear=HYe;kh.prototype.delete=qYe;kh.prototype.get=GYe;kh.prototype.has=YYe;kh.prototype.set=XYe;var jS=kh,ZYe=Ff,JYe=function(){try{var e=ZYe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),iX=JYe,N4=iX;function QYe(e,t,n){t=="__proto__"&&N4?N4(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var zS=QYe,eXe=zS,tXe=My;function nXe(e,t,n){(n!==void 0&&!tXe(e[t],n)||n===void 0&&!(t in e))&&eXe(e,t,n)}var oX=nXe;function rXe(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++i];if(n(o[l],l,o)===!1)break}return t}}var iXe=rXe,oXe=iXe,aXe=oXe(),aX=aXe,ex={exports:{}};ex.exports;(function(e,t){var n=ns,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;function l(u,f){if(f)return u.slice();var d=u.length,p=s?s(d):new u.constructor(d);return u.copy(p),p}e.exports=l})(ex,ex.exports);var sX=ex.exports,sXe=ns,lXe=sXe.Uint8Array,lX=lXe,B4=lX;function uXe(e){var t=new e.constructor(e.byteLength);return new B4(t).set(new B4(e)),t}var oD=uXe,cXe=oD;function fXe(e,t){var n=t?cXe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var uX=fXe;function dXe(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var cX=dXe,pXe=rs,j4=Object.create,hXe=function(){function e(){}return function(t){if(!pXe(t))return{};if(j4)return j4(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),gXe=hXe;function mXe(e,t){return function(n){return e(t(n))}}var fX=mXe,vXe=fX,yXe=vXe(Object.getPrototypeOf,Object),aD=yXe,bXe=Object.prototype;function _Xe(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||bXe;return e===n}var sD=_Xe,xXe=gXe,wXe=aD,SXe=sD;function CXe(e){return typeof e.constructor=="function"&&!SXe(e)?xXe(wXe(e)):{}}var dX=CXe;function EXe(e){return e!=null&&typeof e=="object"}var jl=EXe,kXe=Sh,TXe=jl,AXe="[object Arguments]";function $Xe(e){return TXe(e)&&kXe(e)==AXe}var RXe=$Xe,z4=RXe,OXe=jl,pX=Object.prototype,IXe=pX.hasOwnProperty,DXe=pX.propertyIsEnumerable,PXe=z4(function(){return arguments}())?z4:function(e){return OXe(e)&&IXe.call(e,"callee")&&!DXe.call(e,"callee")},US=PXe,LXe=Array.isArray,Ca=LXe,MXe=9007199254740991;function FXe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=MXe}var lD=FXe,NXe=nD,BXe=lD;function jXe(e){return e!=null&&BXe(e.length)&&!NXe(e)}var Th=jXe,zXe=Th,UXe=jl;function KXe(e){return UXe(e)&&zXe(e)}var WXe=KXe,tx={exports:{}};function VXe(){return!1}var HXe=VXe;tx.exports;(function(e,t){var n=ns,r=HXe,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===i,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;e.exports=u})(tx,tx.exports);var KS=tx.exports,qXe=Sh,GXe=aD,YXe=jl,XXe="[object Object]",ZXe=Function.prototype,JXe=Object.prototype,hX=ZXe.toString,QXe=JXe.hasOwnProperty,eZe=hX.call(Object);function tZe(e){if(!YXe(e)||qXe(e)!=XXe)return!1;var t=GXe(e);if(t===null)return!0;var n=QXe.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&hX.call(n)==eZe}var gX=tZe,nZe=Sh,rZe=lD,iZe=jl,oZe="[object Arguments]",aZe="[object Array]",sZe="[object Boolean]",lZe="[object Date]",uZe="[object Error]",cZe="[object Function]",fZe="[object Map]",dZe="[object Number]",pZe="[object Object]",hZe="[object RegExp]",gZe="[object Set]",mZe="[object String]",vZe="[object WeakMap]",yZe="[object ArrayBuffer]",bZe="[object DataView]",_Ze="[object Float32Array]",xZe="[object Float64Array]",wZe="[object Int8Array]",SZe="[object Int16Array]",CZe="[object Int32Array]",EZe="[object Uint8Array]",kZe="[object Uint8ClampedArray]",TZe="[object Uint16Array]",AZe="[object Uint32Array]",Kn={};Kn[_Ze]=Kn[xZe]=Kn[wZe]=Kn[SZe]=Kn[CZe]=Kn[EZe]=Kn[kZe]=Kn[TZe]=Kn[AZe]=!0;Kn[oZe]=Kn[aZe]=Kn[yZe]=Kn[sZe]=Kn[bZe]=Kn[lZe]=Kn[uZe]=Kn[cZe]=Kn[fZe]=Kn[dZe]=Kn[pZe]=Kn[hZe]=Kn[gZe]=Kn[mZe]=Kn[vZe]=!1;function $Ze(e){return iZe(e)&&rZe(e.length)&&!!Kn[nZe(e)]}var RZe=$Ze;function OZe(e){return function(t){return e(t)}}var uD=OZe,nx={exports:{}};nx.exports;(function(e,t){var n=tX,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();e.exports=s})(nx,nx.exports);var cD=nx.exports,IZe=RZe,DZe=uD,U4=cD,K4=U4&&U4.isTypedArray,PZe=K4?DZe(K4):IZe,fD=PZe;function LZe(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var mX=LZe,MZe=zS,FZe=My,NZe=Object.prototype,BZe=NZe.hasOwnProperty;function jZe(e,t,n){var r=e[t];(!(BZe.call(e,t)&&FZe(r,n))||n===void 0&&!(t in e))&&MZe(e,t,n)}var vX=jZe,zZe=vX,UZe=zS;function KZe(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),i?UZe(n,s,l):zZe(n,s,l)}return n}var Ah=KZe;function WZe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var VZe=WZe,HZe=9007199254740991,qZe=/^(?:0|[1-9]\d*)$/;function GZe(e,t){var n=typeof e;return t=t??HZe,!!t&&(n=="number"||n!="symbol"&&qZe.test(e))&&e>-1&&e%1==0&&e<t}var dD=GZe,YZe=VZe,XZe=US,ZZe=Ca,JZe=KS,QZe=dD,eJe=fD,tJe=Object.prototype,nJe=tJe.hasOwnProperty;function rJe(e,t){var n=ZZe(e),r=!n&&XZe(e),i=!n&&!r&&JZe(e),o=!n&&!r&&!i&&eJe(e),a=n||r||i||o,s=a?YZe(e.length,String):[],l=s.length;for(var u in e)(t||nJe.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||QZe(u,l)))&&s.push(u);return s}var yX=rJe;function iJe(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var oJe=iJe,aJe=rs,sJe=sD,lJe=oJe,uJe=Object.prototype,cJe=uJe.hasOwnProperty;function fJe(e){if(!aJe(e))return lJe(e);var t=sJe(e),n=[];for(var r in e)r=="constructor"&&(t||!cJe.call(e,r))||n.push(r);return n}var dJe=fJe,pJe=yX,hJe=dJe,gJe=Th;function mJe(e){return gJe(e)?pJe(e,!0):hJe(e)}var Fy=mJe,vJe=Ah,yJe=Fy;function bJe(e){return vJe(e,yJe(e))}var _Je=bJe,W4=oX,xJe=sX,wJe=uX,SJe=cX,CJe=dX,V4=US,H4=Ca,EJe=WXe,kJe=KS,TJe=nD,AJe=rs,$Je=gX,RJe=fD,q4=mX,OJe=_Je;function IJe(e,t,n,r,i,o,a){var s=q4(e,n),l=q4(t,n),u=a.get(l);if(u){W4(e,n,u);return}var f=o?o(s,l,n+"",e,t,a):void 0,d=f===void 0;if(d){var p=H4(l),m=!p&&kJe(l),v=!p&&!m&&RJe(l);f=l,p||m||v?H4(s)?f=s:EJe(s)?f=SJe(s):m?(d=!1,f=xJe(l,!0)):v?(d=!1,f=wJe(l,!0)):f=[]:$Je(l)||V4(l)?(f=s,V4(s)?f=OJe(s):(!AJe(s)||TJe(s))&&(f=CJe(l))):d=!1}d&&(a.set(l,f),i(f,l,r,o,a),a.delete(l)),W4(e,n,f)}var DJe=IJe,PJe=jS,LJe=oX,MJe=aX,FJe=DJe,NJe=rs,BJe=Fy,jJe=mX;function bX(e,t,n,r,i){e!==t&&MJe(t,function(o,a){if(i||(i=new PJe),NJe(o))FJe(e,t,a,n,bX,r,i);else{var s=r?r(jJe(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),LJe(e,a,s)}},BJe)}var zJe=bX;function UJe(e){return e}var pD=UJe;function KJe(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 WJe=KJe,VJe=WJe,G4=Math.max;function HJe(e,t,n){return t=G4(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=G4(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),VJe(e,this,s)}}var _X=HJe;function qJe(e){return function(){return e}}var GJe=qJe,YJe=GJe,Y4=iX,XJe=pD,ZJe=Y4?function(e,t){return Y4(e,"toString",{configurable:!0,enumerable:!1,value:YJe(t),writable:!0})}:XJe,JJe=ZJe,QJe=800,eQe=16,tQe=Date.now;function nQe(e){var t=0,n=0;return function(){var r=tQe(),i=eQe-(r-n);if(n=r,i>0){if(++t>=QJe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var rQe=nQe,iQe=JJe,oQe=rQe,aQe=oQe(iQe),xX=aQe,sQe=pD,lQe=_X,uQe=xX;function cQe(e,t){return uQe(lQe(e,t,sQe),e+"")}var fQe=cQe,dQe=My,pQe=Th,hQe=dD,gQe=rs;function mQe(e,t,n){if(!gQe(n))return!1;var r=typeof t;return(r=="number"?pQe(n)&&hQe(t,n.length):r=="string"&&t in n)?dQe(n[t],e):!1}var vQe=mQe,yQe=fQe,bQe=vQe;function _Qe(e){return yQe(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,a&&bQe(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t})}var xQe=_Qe,wQe=zJe,SQe=xQe,CQe=SQe(function(e,t,n){wQe(e,t,n)}),EQe=CQe;const rx=bi(EQe);function WS({children:e,className:t,clipboardValue:n,sx:r,sxChildren:i,title:o}){const a=nr();return C.jsxs(Ht,{spacing:o?1.5:0,sx:rx({width:"100%",flex:1,overflowY:"auto"},r),children:[C.jsx(Zt,{fontSize:"14px",fontWeight:700,color:gt[400],children:o}),C.jsxs(st,{className:t,sx:rx({position:"relative",fontFamily:"Inter",fontSize:"16px",lineHeight:"24px",padding:3,paddingRight:4,border:`1.5px solid ${a.palette.divider}`,borderRadius:"8px",overflowY:"auto",flexGrow:1,caretColor:a.palette.text.primary,backgroundColor:a.palette.background.paper,"&:hover":{borderColor:a.palette.mode==="light"?gt[400]:"white"}},i),children:[n?C.jsx(AH,{value:n}):null,e]})]})}const kQe={COMPLETION:{backgroundColor:"#d2f4d3",color:"black",borderRadius:"2px"}};function wX({completion:e}){const[t,n]=T.useState(En.EditorState.createEmpty()),[r,i]=T.useState(!0);T.useEffect(()=>{let a=En.EditorState.createEmpty();e&&(a=o(a,e)),n(a),i(!0)},[e]);const o=(a,s)=>{const l=a.getCurrentContent(),u=l.getBlockMap(),f=u.last().getKey(),d=u.last().getLength(),p=new En.SelectionState({anchorKey:f,anchorOffset:d,focusKey:f,focusOffset:d}),m=En.Modifier.insertText(l,p,s,hf.of("COMPLETION")),v=En.EditorState.push(a,m,"insert-characters");return En.EditorState.forceSelection(v,m.getSelectionAfter())};return C.jsxs(st,{sx:{marginTop:2},children:[C.jsxs(Ht,{sx:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingRight:"6px"},children:[C.jsx(Zt,{fontSize:"14px",fontWeight:700,color:Jx[400],children:"Completion"}),C.jsx(vr,{onClick:()=>i(!r),children:r?C.jsx(QO,{}):C.jsx(tI,{})})]}),C.jsx(st,{sx:{border:a=>`1px solid ${a.palette.divider}`,borderRadius:1,marginTop:1}}),C.jsx(st,{sx:{maxHeight:r?"220px":"0px",transition:"max-height 0.5s ease-in-out",overflow:"auto",marginTop:2},children:C.jsx(WS,{className:"completion-editor",clipboardValue:t.getCurrentContent().getPlainText(),children:C.jsx(En.Editor,{customStyleMap:kQe,editorState:t,onChange:a=>{a=En.EditorState.push(a,t.getCurrentContent(),"insert-characters"),n(a)}})})})]})}function SX(e,t){switch(t){case"f-string":return new RegExp(`\\{+(${e}+)\\}+`,"g");default:throw new Error(`Unsupported template format ${t}`)}}function TQe(e={},t){const n=Object.keys(e).sort((r,i)=>i.length-r.length);switch(t){case"f-string":{const r=n.map(i=>`${i}`).join("|");return SX(r,t)}default:throw new Error(`Unsupported template format ${t}`)}}function AQe(e,t){switch(t){case"f-string":return e=e.replaceAll("{{","{"),e=e.replaceAll("}}","}"),e;default:throw new Error(`Unsupported template format ${t}`)}}function $Qe(e){switch(e){case"f-string":return/\{+([^{}]+)\}+|{{|}}/g;default:throw new Error(`Unsupported template format ${e}`)}}function CX(e,t){switch(t){case"f-string":return`{${e}}`;default:throw new Error(`Unsupported template format ${t}`)}}function hD(e,t,n){switch(n){case"f-string":{const r=t.split(e)[0].length,i=t.split(e)[1].length,a=r%2&&r===i,s=CX(e,n),l=t.indexOf(s),u=l+s.length;return{ok:a,localStartIndex:l,localEndIndex:u}}default:throw new Error(`Unsupported template format ${n}`)}}var ix={exports:{}};/**
|
|
452
|
-
* @license
|
|
453
|
-
* Lodash <https://lodash.com/>
|
|
454
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
455
|
-
* Released under MIT license <https://lodash.com/license>
|
|
456
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
457
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
458
|
-
*/ix.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",d=1,p=2,m=4,v=1,y=2,w=1,b=2,x=4,S=8,k=16,A=32,$=64,I=128,z=256,K=512,D=30,W="...",ie=800,ae=16,q=1,G=2,J=3,le=1/0,Q=9007199254740991,te=17976931348623157e292,P=0/0,me=4294967295,j=me-1,L=me>>>1,oe=[["ary",I],["bind",w],["bindKey",b],["curry",S],["curryRight",k],["flip",K],["partial",A],["partialRight",$],["rearg",z]],ue="[object Arguments]",se="[object Array]",Ee="[object AsyncFunction]",Re="[object Boolean]",ke="[object Date]",De="[object DOMException]",Me="[object Error]",Be="[object Function]",Ue="[object GeneratorFunction]",Ke="[object Map]",He="[object Number]",lt="[object Null]",Xe="[object Object]",nt="[object Promise]",mt="[object Proxy]",ge="[object RegExp]",$e="[object Set]",Te="[object String]",Pe="[object Symbol]",U="[object Undefined]",H="[object WeakMap]",de="[object WeakSet]",Y="[object ArrayBuffer]",Z="[object DataView]",re="[object Float32Array]",xe="[object Float64Array]",Se="[object Int8Array]",_e="[object Int16Array]",et="[object Int32Array]",tt="[object Uint8Array]",fe="[object Uint8ClampedArray]",he="[object Uint16Array]",Ae="[object Uint32Array]",We=/\b__p \+= '';/g,Ve=/\b(__p \+=) '' \+/g,Ge=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ft=/&(?:amp|lt|gt|quot|#39);/g,ut=/[&<>"']/g,it=RegExp(ft.source),pt=RegExp(ut.source),Ot=/<%-([\s\S]+?)%>/g,rn=/<%([\s\S]+?)%>/g,Qt=/<%=([\s\S]+?)%>/g,Yt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,br=/^\w*$/,Sn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nr=/[\\^$.*+?()[\]{}|]/g,_r=RegExp(Nr.source),kr=/^\s+/,qr=/\s/,_i=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Gs=/\{\n\/\* \[wrapped with (.+)\] \*/,xi=/,? & /,Gr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ul=/[()=,{}\[\]\/\s]/,kn=/\\(\\)?/g,Tn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,uo=/\w*$/,fr=/^[-+]0x[0-9a-f]+$/i,Rt=/^0b[01]+$/i,ic=/^\[object .+?Constructor\]$/,Wf=/^0o[0-7]+$/i,ot=/^(?:0|[1-9]\d*)$/,xr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ea=/($^)/,oc=/['\n\r\u2028\u2029\\]/g,ka="\\ud800-\\udfff",Ta="\\u0300-\\u036f",Ph="\\ufe20-\\ufe2f",Lh="\\u20d0-\\u20ff",Mh=Ta+Ph+Lh,Vf="\\u2700-\\u27bf",Fh="a-z\\xdf-\\xf6\\xf8-\\xff",No="\\xac\\xb1\\xd7\\xf7",Ky="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Nh="\\u2000-\\u206f",Wy=" \\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",Hf="A-Z\\xc0-\\xd6\\xd8-\\xde",Vy="\\ufe0e\\ufe0f",Hy=No+Ky+Nh+Wy,Bh="['’]",qf="["+ka+"]",jh="["+Hy+"]",ac="["+Mh+"]",zh="\\d+",qy="["+Vf+"]",Uh="["+Fh+"]",Kh="[^"+ka+Hy+zh+Vf+Fh+Hf+"]",Wh="\\ud83c[\\udffb-\\udfff]",oC="(?:"+ac+"|"+Wh+")",Gy="[^"+ka+"]",Vh="(?:\\ud83c[\\udde6-\\uddff]){2}",Hh="[\\ud800-\\udbff][\\udc00-\\udfff]",sn="["+Hf+"]",qh="\\u200d",Gh="(?:"+Uh+"|"+Kh+")",Yr="(?:"+sn+"|"+Kh+")",Aa="(?:"+Bh+"(?:d|ll|m|re|s|t|ve))?",Kl="(?:"+Bh+"(?:D|LL|M|RE|S|T|VE))?",Yh=oC+"?",Wl="["+Vy+"]?",Yy="(?:"+qh+"(?:"+[Gy,Vh,Hh].join("|")+")"+Wl+Yh+")*",Xh="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",aC="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Gf=Wl+Yh+Yy,Vl="(?:"+[qy,Vh,Hh].join("|")+")"+Gf,Xy="(?:"+[Gy+ac+"?",ac,Vh,Hh,qf].join("|")+")",is=RegExp(Bh,"g"),Yf=RegExp(ac,"g"),Ys=RegExp(Wh+"(?="+Wh+")|"+Xy+Gf,"g"),rr=RegExp([sn+"?"+Uh+"+"+Aa+"(?="+[jh,sn,"$"].join("|")+")",Yr+"+"+Kl+"(?="+[jh,sn+Gh,"$"].join("|")+")",sn+"?"+Gh+"+"+Aa,sn+"+"+Kl,aC,Xh,zh,Vl].join("|"),"g"),Zy=RegExp("["+qh+ka+Mh+Vy+"]"),Zh=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Jy=["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"],Xf=-1,Cn={};Cn[re]=Cn[xe]=Cn[Se]=Cn[_e]=Cn[et]=Cn[tt]=Cn[fe]=Cn[he]=Cn[Ae]=!0,Cn[ue]=Cn[se]=Cn[Y]=Cn[Re]=Cn[Z]=Cn[ke]=Cn[Me]=Cn[Be]=Cn[Ke]=Cn[He]=Cn[Xe]=Cn[ge]=Cn[$e]=Cn[Te]=Cn[H]=!1;var zt={};zt[ue]=zt[se]=zt[Y]=zt[Z]=zt[Re]=zt[ke]=zt[re]=zt[xe]=zt[Se]=zt[_e]=zt[et]=zt[Ke]=zt[He]=zt[Xe]=zt[ge]=zt[$e]=zt[Te]=zt[Pe]=zt[tt]=zt[fe]=zt[he]=zt[Ae]=!0,zt[Me]=zt[Be]=zt[H]=!1;var Hl={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},ql={"&":"&","<":"<",">":">",'"':""","'":"'"},Gl={"&":"&","<":"<",">":">",""":'"',"'":"'"},Qy={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},e0=parseFloat,Jh=parseInt,Qh=typeof ri=="object"&&ri&&ri.Object===Object&&ri,sC=typeof self=="object"&&self&&self.Object===Object&&self,Dr=Qh||sC||Function("return this")(),sc=t&&!t.nodeType&&t,Xs=sc&&!0&&e&&!e.nodeType&&e,eg=Xs&&Xs.exports===sc,tg=eg&&Qh.process,wi=function(){try{var ee=Xs&&Xs.require&&Xs.require("util").types;return ee||tg&&tg.binding&&tg.binding("util")}catch{}}(),t0=wi&&wi.isArrayBuffer,n0=wi&&wi.isDate,Zs=wi&&wi.isMap,lc=wi&&wi.isRegExp,ng=wi&&wi.isSet,Zf=wi&&wi.isTypedArray;function Pt(ee,be,ye){switch(ye.length){case 0:return ee.call(be);case 1:return ee.call(be,ye[0]);case 2:return ee.call(be,ye[0],ye[1]);case 3:return ee.call(be,ye[0],ye[1],ye[2])}return ee.apply(be,ye)}function r0(ee,be,ye,ze){for(var rt=-1,xt=ee==null?0:ee.length;++rt<xt;){var cn=ee[rt];be(ze,cn,ye(cn),ee)}return ze}function Si(ee,be){for(var ye=-1,ze=ee==null?0:ee.length;++ye<ze&&be(ee[ye],ye,ee)!==!1;);return ee}function i0(ee,be){for(var ye=ee==null?0:ee.length;ye--&&be(ee[ye],ye,ee)!==!1;);return ee}function co(ee,be){for(var ye=-1,ze=ee==null?0:ee.length;++ye<ze;)if(!be(ee[ye],ye,ee))return!1;return!0}function Bo(ee,be){for(var ye=-1,ze=ee==null?0:ee.length,rt=0,xt=[];++ye<ze;){var cn=ee[ye];be(cn,ye,ee)&&(xt[rt++]=cn)}return xt}function uc(ee,be){var ye=ee==null?0:ee.length;return!!ye&&os(ee,be,0)>-1}function Jf(ee,be,ye){for(var ze=-1,rt=ee==null?0:ee.length;++ze<rt;)if(ye(be,ee[ze]))return!0;return!1}function Kt(ee,be){for(var ye=-1,ze=ee==null?0:ee.length,rt=Array(ze);++ye<ze;)rt[ye]=be(ee[ye],ye,ee);return rt}function In(ee,be){for(var ye=-1,ze=be.length,rt=ee.length;++ye<ze;)ee[rt+ye]=be[ye];return ee}function Yl(ee,be,ye,ze){var rt=-1,xt=ee==null?0:ee.length;for(ze&&xt&&(ye=ee[++rt]);++rt<xt;)ye=be(ye,ee[rt],rt,ee);return ye}function o0(ee,be,ye,ze){var rt=ee==null?0:ee.length;for(ze&&rt&&(ye=ee[--rt]);rt--;)ye=be(ye,ee[rt],rt,ee);return ye}function rg(ee,be){for(var ye=-1,ze=ee==null?0:ee.length;++ye<ze;)if(be(ee[ye],ye,ee))return!0;return!1}var lC=Fi("length");function Dn(ee){return ee.split("")}function ig(ee){return ee.match(Gr)||[]}function og(ee,be,ye){var ze;return ye(ee,function(rt,xt,cn){if(be(rt,xt,cn))return ze=xt,!1}),ze}function Br(ee,be,ye,ze){for(var rt=ee.length,xt=ye+(ze?1:-1);ze?xt--:++xt<rt;)if(be(ee[xt],xt,ee))return xt;return-1}function os(ee,be,ye){return be===be?fC(ee,be,ye):Br(ee,ag,ye)}function a0(ee,be,ye,ze){for(var rt=ye-1,xt=ee.length;++rt<xt;)if(ze(ee[rt],be))return rt;return-1}function ag(ee){return ee!==ee}function Qf(ee,be){var ye=ee==null?0:ee.length;return ye?td(ee,be)/ye:P}function Fi(ee){return function(be){return be==null?n:be[ee]}}function ed(ee){return function(be){return ee==null?n:ee[be]}}function cc(ee,be,ye,ze,rt){return rt(ee,function(xt,cn,Wt){ye=ze?(ze=!1,xt):be(ye,xt,cn,Wt)}),ye}function s0(ee,be){var ye=ee.length;for(ee.sort(be);ye--;)ee[ye]=ee[ye].value;return ee}function td(ee,be){for(var ye,ze=-1,rt=ee.length;++ze<rt;){var xt=be(ee[ze]);xt!==n&&(ye=ye===n?xt:ye+xt)}return ye}function fc(ee,be){for(var ye=-1,ze=Array(ee);++ye<ee;)ze[ye]=be(ye);return ze}function dr(ee,be){return Kt(be,function(ye){return[ye,ee[ye]]})}function sg(ee){return ee&&ee.slice(0,M(ee)+1).replace(kr,"")}function si(ee){return function(be){return ee(be)}}function as(ee,be){return Kt(be,function(ye){return ee[ye]})}function $a(ee,be){return ee.has(be)}function lg(ee,be){for(var ye=-1,ze=ee.length;++ye<ze&&os(be,ee[ye],0)>-1;);return ye}function nd(ee,be){for(var ye=ee.length;ye--&&os(be,ee[ye],0)>-1;);return ye}function jo(ee,be){for(var ye=ee.length,ze=0;ye--;)ee[ye]===be&&++ze;return ze}var jr=ed(Hl),rd=ed(ql);function uC(ee){return"\\"+Qy[ee]}function cC(ee,be){return ee==null?n:ee[be]}function Ra(ee){return Zy.test(ee)}function l0(ee){return Zh.test(ee)}function u0(ee){for(var be,ye=[];!(be=ee.next()).done;)ye.push(be.value);return ye}function ug(ee){var be=-1,ye=Array(ee.size);return ee.forEach(function(ze,rt){ye[++be]=[rt,ze]}),ye}function cg(ee,be){return function(ye){return ee(be(ye))}}function ss(ee,be){for(var ye=-1,ze=ee.length,rt=0,xt=[];++ye<ze;){var cn=ee[ye];(cn===be||cn===f)&&(ee[ye]=f,xt[rt++]=ye)}return xt}function id(ee){var be=-1,ye=Array(ee.size);return ee.forEach(function(ze){ye[++be]=ze}),ye}function c0(ee){var be=-1,ye=Array(ee.size);return ee.forEach(function(ze){ye[++be]=[ze,ze]}),ye}function fC(ee,be,ye){for(var ze=ye-1,rt=ee.length;++ze<rt;)if(ee[ze]===be)return ze;return-1}function g(ee,be,ye){for(var ze=ye+1;ze--;)if(ee[ze]===be)return ze;return ze}function E(ee){return Ra(ee)?ne(ee):lC(ee)}function O(ee){return Ra(ee)?pe(ee):Dn(ee)}function M(ee){for(var be=ee.length;be--&&qr.test(ee.charAt(be)););return be}var B=ed(Gl);function ne(ee){for(var be=Ys.lastIndex=0;Ys.test(ee);)++be;return be}function pe(ee){return ee.match(Ys)||[]}function we(ee){return ee.match(rr)||[]}var Oe=function ee(be){be=be==null?Dr:Ie.defaults(Dr.Object(),be,Ie.pick(Dr,Jy));var ye=be.Array,ze=be.Date,rt=be.Error,xt=be.Function,cn=be.Math,Wt=be.Object,Xl=be.RegExp,AJ=be.String,zo=be.TypeError,f0=ye.prototype,$J=xt.prototype,od=Wt.prototype,d0=be["__core-js_shared__"],p0=$J.toString,bn=od.hasOwnProperty,RJ=0,iP=function(){var c=/[^.]+$/.exec(d0&&d0.keys&&d0.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),h0=od.toString,OJ=p0.call(Wt),IJ=Dr._,DJ=Xl("^"+p0.call(bn).replace(Nr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),g0=eg?be.Buffer:n,Zl=be.Symbol,m0=be.Uint8Array,oP=g0?g0.allocUnsafe:n,v0=cg(Wt.getPrototypeOf,Wt),aP=Wt.create,sP=od.propertyIsEnumerable,y0=f0.splice,lP=Zl?Zl.isConcatSpreadable:n,fg=Zl?Zl.iterator:n,dc=Zl?Zl.toStringTag:n,b0=function(){try{var c=vc(Wt,"defineProperty");return c({},"",{}),c}catch{}}(),PJ=be.clearTimeout!==Dr.clearTimeout&&be.clearTimeout,LJ=ze&&ze.now!==Dr.Date.now&&ze.now,MJ=be.setTimeout!==Dr.setTimeout&&be.setTimeout,_0=cn.ceil,x0=cn.floor,dC=Wt.getOwnPropertySymbols,FJ=g0?g0.isBuffer:n,uP=be.isFinite,NJ=f0.join,BJ=cg(Wt.keys,Wt),Pr=cn.max,li=cn.min,jJ=ze.now,zJ=be.parseInt,cP=cn.random,UJ=f0.reverse,pC=vc(be,"DataView"),dg=vc(be,"Map"),hC=vc(be,"Promise"),ad=vc(be,"Set"),pg=vc(be,"WeakMap"),hg=vc(Wt,"create"),w0=pg&&new pg,sd={},KJ=yc(pC),WJ=yc(dg),VJ=yc(hC),HJ=yc(ad),qJ=yc(pg),S0=Zl?Zl.prototype:n,gg=S0?S0.valueOf:n,fP=S0?S0.toString:n;function V(c){if(pr(c)&&!It(c)&&!(c instanceof Xt)){if(c instanceof Uo)return c;if(bn.call(c,"__wrapped__"))return dL(c)}return new Uo(c)}var ld=function(){function c(){}return function(h){if(!ir(h))return{};if(aP)return aP(h);c.prototype=h;var _=new c;return c.prototype=n,_}}();function C0(){}function Uo(c,h){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=n}V.templateSettings={escape:Ot,evaluate:rn,interpolate:Qt,variable:"",imports:{_:V}},V.prototype=C0.prototype,V.prototype.constructor=V,Uo.prototype=ld(C0.prototype),Uo.prototype.constructor=Uo;function Xt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=me,this.__views__=[]}function GJ(){var c=new Xt(this.__wrapped__);return c.__actions__=Ni(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=Ni(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=Ni(this.__views__),c}function YJ(){if(this.__filtered__){var c=new Xt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}function XJ(){var c=this.__wrapped__.value(),h=this.__dir__,_=It(c),R=h<0,N=_?c.length:0,X=lee(0,N,this.__views__),ce=X.start,ve=X.end,Ce=ve-ce,Ne=R?ve:ce-1,je=this.__iteratees__,qe=je.length,at=0,vt=li(Ce,this.__takeCount__);if(!_||!R&&N==Ce&&vt==Ce)return LP(c,this.__actions__);var At=[];e:for(;Ce--&&at<vt;){Ne+=h;for(var Nt=-1,$t=c[Ne];++Nt<qe;){var qt=je[Nt],en=qt.iteratee,ho=qt.type,ki=en($t);if(ho==G)$t=ki;else if(!ki){if(ho==q)continue e;break e}}At[at++]=$t}return At}Xt.prototype=ld(C0.prototype),Xt.prototype.constructor=Xt;function pc(c){var h=-1,_=c==null?0:c.length;for(this.clear();++h<_;){var R=c[h];this.set(R[0],R[1])}}function ZJ(){this.__data__=hg?hg(null):{},this.size=0}function JJ(c){var h=this.has(c)&&delete this.__data__[c];return this.size-=h?1:0,h}function QJ(c){var h=this.__data__;if(hg){var _=h[c];return _===l?n:_}return bn.call(h,c)?h[c]:n}function eQ(c){var h=this.__data__;return hg?h[c]!==n:bn.call(h,c)}function tQ(c,h){var _=this.__data__;return this.size+=this.has(c)?0:1,_[c]=hg&&h===n?l:h,this}pc.prototype.clear=ZJ,pc.prototype.delete=JJ,pc.prototype.get=QJ,pc.prototype.has=eQ,pc.prototype.set=tQ;function Js(c){var h=-1,_=c==null?0:c.length;for(this.clear();++h<_;){var R=c[h];this.set(R[0],R[1])}}function nQ(){this.__data__=[],this.size=0}function rQ(c){var h=this.__data__,_=E0(h,c);if(_<0)return!1;var R=h.length-1;return _==R?h.pop():y0.call(h,_,1),--this.size,!0}function iQ(c){var h=this.__data__,_=E0(h,c);return _<0?n:h[_][1]}function oQ(c){return E0(this.__data__,c)>-1}function aQ(c,h){var _=this.__data__,R=E0(_,c);return R<0?(++this.size,_.push([c,h])):_[R][1]=h,this}Js.prototype.clear=nQ,Js.prototype.delete=rQ,Js.prototype.get=iQ,Js.prototype.has=oQ,Js.prototype.set=aQ;function Qs(c){var h=-1,_=c==null?0:c.length;for(this.clear();++h<_;){var R=c[h];this.set(R[0],R[1])}}function sQ(){this.size=0,this.__data__={hash:new pc,map:new(dg||Js),string:new pc}}function lQ(c){var h=F0(this,c).delete(c);return this.size-=h?1:0,h}function uQ(c){return F0(this,c).get(c)}function cQ(c){return F0(this,c).has(c)}function fQ(c,h){var _=F0(this,c),R=_.size;return _.set(c,h),this.size+=_.size==R?0:1,this}Qs.prototype.clear=sQ,Qs.prototype.delete=lQ,Qs.prototype.get=uQ,Qs.prototype.has=cQ,Qs.prototype.set=fQ;function hc(c){var h=-1,_=c==null?0:c.length;for(this.__data__=new Qs;++h<_;)this.add(c[h])}function dQ(c){return this.__data__.set(c,l),this}function pQ(c){return this.__data__.has(c)}hc.prototype.add=hc.prototype.push=dQ,hc.prototype.has=pQ;function Oa(c){var h=this.__data__=new Js(c);this.size=h.size}function hQ(){this.__data__=new Js,this.size=0}function gQ(c){var h=this.__data__,_=h.delete(c);return this.size=h.size,_}function mQ(c){return this.__data__.get(c)}function vQ(c){return this.__data__.has(c)}function yQ(c,h){var _=this.__data__;if(_ instanceof Js){var R=_.__data__;if(!dg||R.length<i-1)return R.push([c,h]),this.size=++_.size,this;_=this.__data__=new Qs(R)}return _.set(c,h),this.size=_.size,this}Oa.prototype.clear=hQ,Oa.prototype.delete=gQ,Oa.prototype.get=mQ,Oa.prototype.has=vQ,Oa.prototype.set=yQ;function dP(c,h){var _=It(c),R=!_&&bc(c),N=!_&&!R&&nu(c),X=!_&&!R&&!N&&dd(c),ce=_||R||N||X,ve=ce?fc(c.length,AJ):[],Ce=ve.length;for(var Ne in c)(h||bn.call(c,Ne))&&!(ce&&(Ne=="length"||N&&(Ne=="offset"||Ne=="parent")||X&&(Ne=="buffer"||Ne=="byteLength"||Ne=="byteOffset")||rl(Ne,Ce)))&&ve.push(Ne);return ve}function pP(c){var h=c.length;return h?c[EC(0,h-1)]:n}function bQ(c,h){return N0(Ni(c),gc(h,0,c.length))}function _Q(c){return N0(Ni(c))}function gC(c,h,_){(_!==n&&!Ia(c[h],_)||_===n&&!(h in c))&&el(c,h,_)}function mg(c,h,_){var R=c[h];(!(bn.call(c,h)&&Ia(R,_))||_===n&&!(h in c))&&el(c,h,_)}function E0(c,h){for(var _=c.length;_--;)if(Ia(c[_][0],h))return _;return-1}function xQ(c,h,_,R){return Jl(c,function(N,X,ce){h(R,N,_(N),ce)}),R}function hP(c,h){return c&&us(h,zr(h),c)}function wQ(c,h){return c&&us(h,ji(h),c)}function el(c,h,_){h=="__proto__"&&b0?b0(c,h,{configurable:!0,enumerable:!0,value:_,writable:!0}):c[h]=_}function mC(c,h){for(var _=-1,R=h.length,N=ye(R),X=c==null;++_<R;)N[_]=X?n:XC(c,h[_]);return N}function gc(c,h,_){return c===c&&(_!==n&&(c=c<=_?c:_),h!==n&&(c=c>=h?c:h)),c}function Ko(c,h,_,R,N,X){var ce,ve=h&d,Ce=h&p,Ne=h&m;if(_&&(ce=N?_(c,R,N,X):_(c)),ce!==n)return ce;if(!ir(c))return c;var je=It(c);if(je){if(ce=cee(c),!ve)return Ni(c,ce)}else{var qe=ui(c),at=qe==Be||qe==Ue;if(nu(c))return NP(c,ve);if(qe==Xe||qe==ue||at&&!N){if(ce=Ce||at?{}:rL(c),!ve)return Ce?QQ(c,wQ(ce,c)):JQ(c,hP(ce,c))}else{if(!zt[qe])return N?c:{};ce=fee(c,qe,ve)}}X||(X=new Oa);var vt=X.get(c);if(vt)return vt;X.set(c,ce),IL(c)?c.forEach(function($t){ce.add(Ko($t,h,_,$t,c,X))}):RL(c)&&c.forEach(function($t,qt){ce.set(qt,Ko($t,h,_,qt,c,X))});var At=Ne?Ce?MC:LC:Ce?ji:zr,Nt=je?n:At(c);return Si(Nt||c,function($t,qt){Nt&&(qt=$t,$t=c[qt]),mg(ce,qt,Ko($t,h,_,qt,c,X))}),ce}function SQ(c){var h=zr(c);return function(_){return gP(_,c,h)}}function gP(c,h,_){var R=_.length;if(c==null)return!R;for(c=Wt(c);R--;){var N=_[R],X=h[N],ce=c[N];if(ce===n&&!(N in c)||!X(ce))return!1}return!0}function mP(c,h,_){if(typeof c!="function")throw new zo(a);return Sg(function(){c.apply(n,_)},h)}function vg(c,h,_,R){var N=-1,X=uc,ce=!0,ve=c.length,Ce=[],Ne=h.length;if(!ve)return Ce;_&&(h=Kt(h,si(_))),R?(X=Jf,ce=!1):h.length>=i&&(X=$a,ce=!1,h=new hc(h));e:for(;++N<ve;){var je=c[N],qe=_==null?je:_(je);if(je=R||je!==0?je:0,ce&&qe===qe){for(var at=Ne;at--;)if(h[at]===qe)continue e;Ce.push(je)}else X(h,qe,R)||Ce.push(je)}return Ce}var Jl=KP(ls),vP=KP(yC,!0);function CQ(c,h){var _=!0;return Jl(c,function(R,N,X){return _=!!h(R,N,X),_}),_}function k0(c,h,_){for(var R=-1,N=c.length;++R<N;){var X=c[R],ce=h(X);if(ce!=null&&(ve===n?ce===ce&&!po(ce):_(ce,ve)))var ve=ce,Ce=X}return Ce}function EQ(c,h,_,R){var N=c.length;for(_=Lt(_),_<0&&(_=-_>N?0:N+_),R=R===n||R>N?N:Lt(R),R<0&&(R+=N),R=_>R?0:PL(R);_<R;)c[_++]=h;return c}function yP(c,h){var _=[];return Jl(c,function(R,N,X){h(R,N,X)&&_.push(R)}),_}function Xr(c,h,_,R,N){var X=-1,ce=c.length;for(_||(_=pee),N||(N=[]);++X<ce;){var ve=c[X];h>0&&_(ve)?h>1?Xr(ve,h-1,_,R,N):In(N,ve):R||(N[N.length]=ve)}return N}var vC=WP(),bP=WP(!0);function ls(c,h){return c&&vC(c,h,zr)}function yC(c,h){return c&&bP(c,h,zr)}function T0(c,h){return Bo(h,function(_){return il(c[_])})}function mc(c,h){h=eu(h,c);for(var _=0,R=h.length;c!=null&&_<R;)c=c[cs(h[_++])];return _&&_==R?c:n}function _P(c,h,_){var R=h(c);return It(c)?R:In(R,_(c))}function Ci(c){return c==null?c===n?U:lt:dc&&dc in Wt(c)?see(c):_ee(c)}function bC(c,h){return c>h}function kQ(c,h){return c!=null&&bn.call(c,h)}function TQ(c,h){return c!=null&&h in Wt(c)}function AQ(c,h,_){return c>=li(h,_)&&c<Pr(h,_)}function _C(c,h,_){for(var R=_?Jf:uc,N=c[0].length,X=c.length,ce=X,ve=ye(X),Ce=1/0,Ne=[];ce--;){var je=c[ce];ce&&h&&(je=Kt(je,si(h))),Ce=li(je.length,Ce),ve[ce]=!_&&(h||N>=120&&je.length>=120)?new hc(ce&&je):n}je=c[0];var qe=-1,at=ve[0];e:for(;++qe<N&&Ne.length<Ce;){var vt=je[qe],At=h?h(vt):vt;if(vt=_||vt!==0?vt:0,!(at?$a(at,At):R(Ne,At,_))){for(ce=X;--ce;){var Nt=ve[ce];if(!(Nt?$a(Nt,At):R(c[ce],At,_)))continue e}at&&at.push(At),Ne.push(vt)}}return Ne}function $Q(c,h,_,R){return ls(c,function(N,X,ce){h(R,_(N),X,ce)}),R}function yg(c,h,_){h=eu(h,c),c=sL(c,h);var R=c==null?c:c[cs(Vo(h))];return R==null?n:Pt(R,c,_)}function xP(c){return pr(c)&&Ci(c)==ue}function RQ(c){return pr(c)&&Ci(c)==Y}function OQ(c){return pr(c)&&Ci(c)==ke}function bg(c,h,_,R,N){return c===h?!0:c==null||h==null||!pr(c)&&!pr(h)?c!==c&&h!==h:IQ(c,h,_,R,bg,N)}function IQ(c,h,_,R,N,X){var ce=It(c),ve=It(h),Ce=ce?se:ui(c),Ne=ve?se:ui(h);Ce=Ce==ue?Xe:Ce,Ne=Ne==ue?Xe:Ne;var je=Ce==Xe,qe=Ne==Xe,at=Ce==Ne;if(at&&nu(c)){if(!nu(h))return!1;ce=!0,je=!1}if(at&&!je)return X||(X=new Oa),ce||dd(c)?eL(c,h,_,R,N,X):oee(c,h,Ce,_,R,N,X);if(!(_&v)){var vt=je&&bn.call(c,"__wrapped__"),At=qe&&bn.call(h,"__wrapped__");if(vt||At){var Nt=vt?c.value():c,$t=At?h.value():h;return X||(X=new Oa),N(Nt,$t,_,R,X)}}return at?(X||(X=new Oa),aee(c,h,_,R,N,X)):!1}function DQ(c){return pr(c)&&ui(c)==Ke}function xC(c,h,_,R){var N=_.length,X=N,ce=!R;if(c==null)return!X;for(c=Wt(c);N--;){var ve=_[N];if(ce&&ve[2]?ve[1]!==c[ve[0]]:!(ve[0]in c))return!1}for(;++N<X;){ve=_[N];var Ce=ve[0],Ne=c[Ce],je=ve[1];if(ce&&ve[2]){if(Ne===n&&!(Ce in c))return!1}else{var qe=new Oa;if(R)var at=R(Ne,je,Ce,c,h,qe);if(!(at===n?bg(je,Ne,v|y,R,qe):at))return!1}}return!0}function wP(c){if(!ir(c)||gee(c))return!1;var h=il(c)?DJ:ic;return h.test(yc(c))}function PQ(c){return pr(c)&&Ci(c)==ge}function LQ(c){return pr(c)&&ui(c)==$e}function MQ(c){return pr(c)&&W0(c.length)&&!!Cn[Ci(c)]}function SP(c){return typeof c=="function"?c:c==null?zi:typeof c=="object"?It(c)?kP(c[0],c[1]):EP(c):VL(c)}function wC(c){if(!wg(c))return BJ(c);var h=[];for(var _ in Wt(c))bn.call(c,_)&&_!="constructor"&&h.push(_);return h}function FQ(c){if(!ir(c))return bee(c);var h=wg(c),_=[];for(var R in c)R=="constructor"&&(h||!bn.call(c,R))||_.push(R);return _}function SC(c,h){return c<h}function CP(c,h){var _=-1,R=Bi(c)?ye(c.length):[];return Jl(c,function(N,X,ce){R[++_]=h(N,X,ce)}),R}function EP(c){var h=NC(c);return h.length==1&&h[0][2]?oL(h[0][0],h[0][1]):function(_){return _===c||xC(_,c,h)}}function kP(c,h){return jC(c)&&iL(h)?oL(cs(c),h):function(_){var R=XC(_,c);return R===n&&R===h?ZC(_,c):bg(h,R,v|y)}}function A0(c,h,_,R,N){c!==h&&vC(h,function(X,ce){if(N||(N=new Oa),ir(X))NQ(c,h,ce,_,A0,R,N);else{var ve=R?R(UC(c,ce),X,ce+"",c,h,N):n;ve===n&&(ve=X),gC(c,ce,ve)}},ji)}function NQ(c,h,_,R,N,X,ce){var ve=UC(c,_),Ce=UC(h,_),Ne=ce.get(Ce);if(Ne){gC(c,_,Ne);return}var je=X?X(ve,Ce,_+"",c,h,ce):n,qe=je===n;if(qe){var at=It(Ce),vt=!at&&nu(Ce),At=!at&&!vt&&dd(Ce);je=Ce,at||vt||At?It(ve)?je=ve:wr(ve)?je=Ni(ve):vt?(qe=!1,je=NP(Ce,!0)):At?(qe=!1,je=BP(Ce,!0)):je=[]:Cg(Ce)||bc(Ce)?(je=ve,bc(ve)?je=LL(ve):(!ir(ve)||il(ve))&&(je=rL(Ce))):qe=!1}qe&&(ce.set(Ce,je),N(je,Ce,R,X,ce),ce.delete(Ce)),gC(c,_,je)}function TP(c,h){var _=c.length;if(_)return h+=h<0?_:0,rl(h,_)?c[h]:n}function AP(c,h,_){h.length?h=Kt(h,function(X){return It(X)?function(ce){return mc(ce,X.length===1?X[0]:X)}:X}):h=[zi];var R=-1;h=Kt(h,si(Tt()));var N=CP(c,function(X,ce,ve){var Ce=Kt(h,function(Ne){return Ne(X)});return{criteria:Ce,index:++R,value:X}});return s0(N,function(X,ce){return ZQ(X,ce,_)})}function BQ(c,h){return $P(c,h,function(_,R){return ZC(c,R)})}function $P(c,h,_){for(var R=-1,N=h.length,X={};++R<N;){var ce=h[R],ve=mc(c,ce);_(ve,ce)&&_g(X,eu(ce,c),ve)}return X}function jQ(c){return function(h){return mc(h,c)}}function CC(c,h,_,R){var N=R?a0:os,X=-1,ce=h.length,ve=c;for(c===h&&(h=Ni(h)),_&&(ve=Kt(c,si(_)));++X<ce;)for(var Ce=0,Ne=h[X],je=_?_(Ne):Ne;(Ce=N(ve,je,Ce,R))>-1;)ve!==c&&y0.call(ve,Ce,1),y0.call(c,Ce,1);return c}function RP(c,h){for(var _=c?h.length:0,R=_-1;_--;){var N=h[_];if(_==R||N!==X){var X=N;rl(N)?y0.call(c,N,1):AC(c,N)}}return c}function EC(c,h){return c+x0(cP()*(h-c+1))}function zQ(c,h,_,R){for(var N=-1,X=Pr(_0((h-c)/(_||1)),0),ce=ye(X);X--;)ce[R?X:++N]=c,c+=_;return ce}function kC(c,h){var _="";if(!c||h<1||h>Q)return _;do h%2&&(_+=c),h=x0(h/2),h&&(c+=c);while(h);return _}function Ut(c,h){return KC(aL(c,h,zi),c+"")}function UQ(c){return pP(pd(c))}function KQ(c,h){var _=pd(c);return N0(_,gc(h,0,_.length))}function _g(c,h,_,R){if(!ir(c))return c;h=eu(h,c);for(var N=-1,X=h.length,ce=X-1,ve=c;ve!=null&&++N<X;){var Ce=cs(h[N]),Ne=_;if(Ce==="__proto__"||Ce==="constructor"||Ce==="prototype")return c;if(N!=ce){var je=ve[Ce];Ne=R?R(je,Ce,ve):n,Ne===n&&(Ne=ir(je)?je:rl(h[N+1])?[]:{})}mg(ve,Ce,Ne),ve=ve[Ce]}return c}var OP=w0?function(c,h){return w0.set(c,h),c}:zi,WQ=b0?function(c,h){return b0(c,"toString",{configurable:!0,enumerable:!1,value:QC(h),writable:!0})}:zi;function VQ(c){return N0(pd(c))}function Wo(c,h,_){var R=-1,N=c.length;h<0&&(h=-h>N?0:N+h),_=_>N?N:_,_<0&&(_+=N),N=h>_?0:_-h>>>0,h>>>=0;for(var X=ye(N);++R<N;)X[R]=c[R+h];return X}function HQ(c,h){var _;return Jl(c,function(R,N,X){return _=h(R,N,X),!_}),!!_}function $0(c,h,_){var R=0,N=c==null?R:c.length;if(typeof h=="number"&&h===h&&N<=L){for(;R<N;){var X=R+N>>>1,ce=c[X];ce!==null&&!po(ce)&&(_?ce<=h:ce<h)?R=X+1:N=X}return N}return TC(c,h,zi,_)}function TC(c,h,_,R){var N=0,X=c==null?0:c.length;if(X===0)return 0;h=_(h);for(var ce=h!==h,ve=h===null,Ce=po(h),Ne=h===n;N<X;){var je=x0((N+X)/2),qe=_(c[je]),at=qe!==n,vt=qe===null,At=qe===qe,Nt=po(qe);if(ce)var $t=R||At;else Ne?$t=At&&(R||at):ve?$t=At&&at&&(R||!vt):Ce?$t=At&&at&&!vt&&(R||!Nt):vt||Nt?$t=!1:$t=R?qe<=h:qe<h;$t?N=je+1:X=je}return li(X,j)}function IP(c,h){for(var _=-1,R=c.length,N=0,X=[];++_<R;){var ce=c[_],ve=h?h(ce):ce;if(!_||!Ia(ve,Ce)){var Ce=ve;X[N++]=ce===0?0:ce}}return X}function DP(c){return typeof c=="number"?c:po(c)?P:+c}function fo(c){if(typeof c=="string")return c;if(It(c))return Kt(c,fo)+"";if(po(c))return fP?fP.call(c):"";var h=c+"";return h=="0"&&1/c==-le?"-0":h}function Ql(c,h,_){var R=-1,N=uc,X=c.length,ce=!0,ve=[],Ce=ve;if(_)ce=!1,N=Jf;else if(X>=i){var Ne=h?null:ree(c);if(Ne)return id(Ne);ce=!1,N=$a,Ce=new hc}else Ce=h?[]:ve;e:for(;++R<X;){var je=c[R],qe=h?h(je):je;if(je=_||je!==0?je:0,ce&&qe===qe){for(var at=Ce.length;at--;)if(Ce[at]===qe)continue e;h&&Ce.push(qe),ve.push(je)}else N(Ce,qe,_)||(Ce!==ve&&Ce.push(qe),ve.push(je))}return ve}function AC(c,h){return h=eu(h,c),c=sL(c,h),c==null||delete c[cs(Vo(h))]}function PP(c,h,_,R){return _g(c,h,_(mc(c,h)),R)}function R0(c,h,_,R){for(var N=c.length,X=R?N:-1;(R?X--:++X<N)&&h(c[X],X,c););return _?Wo(c,R?0:X,R?X+1:N):Wo(c,R?X+1:0,R?N:X)}function LP(c,h){var _=c;return _ instanceof Xt&&(_=_.value()),Yl(h,function(R,N){return N.func.apply(N.thisArg,In([R],N.args))},_)}function $C(c,h,_){var R=c.length;if(R<2)return R?Ql(c[0]):[];for(var N=-1,X=ye(R);++N<R;)for(var ce=c[N],ve=-1;++ve<R;)ve!=N&&(X[N]=vg(X[N]||ce,c[ve],h,_));return Ql(Xr(X,1),h,_)}function MP(c,h,_){for(var R=-1,N=c.length,X=h.length,ce={};++R<N;){var ve=R<X?h[R]:n;_(ce,c[R],ve)}return ce}function RC(c){return wr(c)?c:[]}function OC(c){return typeof c=="function"?c:zi}function eu(c,h){return It(c)?c:jC(c,h)?[c]:fL(vn(c))}var qQ=Ut;function tu(c,h,_){var R=c.length;return _=_===n?R:_,!h&&_>=R?c:Wo(c,h,_)}var FP=PJ||function(c){return Dr.clearTimeout(c)};function NP(c,h){if(h)return c.slice();var _=c.length,R=oP?oP(_):new c.constructor(_);return c.copy(R),R}function IC(c){var h=new c.constructor(c.byteLength);return new m0(h).set(new m0(c)),h}function GQ(c,h){var _=h?IC(c.buffer):c.buffer;return new c.constructor(_,c.byteOffset,c.byteLength)}function YQ(c){var h=new c.constructor(c.source,uo.exec(c));return h.lastIndex=c.lastIndex,h}function XQ(c){return gg?Wt(gg.call(c)):{}}function BP(c,h){var _=h?IC(c.buffer):c.buffer;return new c.constructor(_,c.byteOffset,c.length)}function jP(c,h){if(c!==h){var _=c!==n,R=c===null,N=c===c,X=po(c),ce=h!==n,ve=h===null,Ce=h===h,Ne=po(h);if(!ve&&!Ne&&!X&&c>h||X&&ce&&Ce&&!ve&&!Ne||R&&ce&&Ce||!_&&Ce||!N)return 1;if(!R&&!X&&!Ne&&c<h||Ne&&_&&N&&!R&&!X||ve&&_&&N||!ce&&N||!Ce)return-1}return 0}function ZQ(c,h,_){for(var R=-1,N=c.criteria,X=h.criteria,ce=N.length,ve=_.length;++R<ce;){var Ce=jP(N[R],X[R]);if(Ce){if(R>=ve)return Ce;var Ne=_[R];return Ce*(Ne=="desc"?-1:1)}}return c.index-h.index}function zP(c,h,_,R){for(var N=-1,X=c.length,ce=_.length,ve=-1,Ce=h.length,Ne=Pr(X-ce,0),je=ye(Ce+Ne),qe=!R;++ve<Ce;)je[ve]=h[ve];for(;++N<ce;)(qe||N<X)&&(je[_[N]]=c[N]);for(;Ne--;)je[ve++]=c[N++];return je}function UP(c,h,_,R){for(var N=-1,X=c.length,ce=-1,ve=_.length,Ce=-1,Ne=h.length,je=Pr(X-ve,0),qe=ye(je+Ne),at=!R;++N<je;)qe[N]=c[N];for(var vt=N;++Ce<Ne;)qe[vt+Ce]=h[Ce];for(;++ce<ve;)(at||N<X)&&(qe[vt+_[ce]]=c[N++]);return qe}function Ni(c,h){var _=-1,R=c.length;for(h||(h=ye(R));++_<R;)h[_]=c[_];return h}function us(c,h,_,R){var N=!_;_||(_={});for(var X=-1,ce=h.length;++X<ce;){var ve=h[X],Ce=R?R(_[ve],c[ve],ve,_,c):n;Ce===n&&(Ce=c[ve]),N?el(_,ve,Ce):mg(_,ve,Ce)}return _}function JQ(c,h){return us(c,BC(c),h)}function QQ(c,h){return us(c,tL(c),h)}function O0(c,h){return function(_,R){var N=It(_)?r0:xQ,X=h?h():{};return N(_,c,Tt(R,2),X)}}function ud(c){return Ut(function(h,_){var R=-1,N=_.length,X=N>1?_[N-1]:n,ce=N>2?_[2]:n;for(X=c.length>3&&typeof X=="function"?(N--,X):n,ce&&Ei(_[0],_[1],ce)&&(X=N<3?n:X,N=1),h=Wt(h);++R<N;){var ve=_[R];ve&&c(h,ve,R,X)}return h})}function KP(c,h){return function(_,R){if(_==null)return _;if(!Bi(_))return c(_,R);for(var N=_.length,X=h?N:-1,ce=Wt(_);(h?X--:++X<N)&&R(ce[X],X,ce)!==!1;);return _}}function WP(c){return function(h,_,R){for(var N=-1,X=Wt(h),ce=R(h),ve=ce.length;ve--;){var Ce=ce[c?ve:++N];if(_(X[Ce],Ce,X)===!1)break}return h}}function eee(c,h,_){var R=h&w,N=xg(c);function X(){var ce=this&&this!==Dr&&this instanceof X?N:c;return ce.apply(R?_:this,arguments)}return X}function VP(c){return function(h){h=vn(h);var _=Ra(h)?O(h):n,R=_?_[0]:h.charAt(0),N=_?tu(_,1).join(""):h.slice(1);return R[c]()+N}}function cd(c){return function(h){return Yl(KL(UL(h).replace(is,"")),c,"")}}function xg(c){return function(){var h=arguments;switch(h.length){case 0:return new c;case 1:return new c(h[0]);case 2:return new c(h[0],h[1]);case 3:return new c(h[0],h[1],h[2]);case 4:return new c(h[0],h[1],h[2],h[3]);case 5:return new c(h[0],h[1],h[2],h[3],h[4]);case 6:return new c(h[0],h[1],h[2],h[3],h[4],h[5]);case 7:return new c(h[0],h[1],h[2],h[3],h[4],h[5],h[6])}var _=ld(c.prototype),R=c.apply(_,h);return ir(R)?R:_}}function tee(c,h,_){var R=xg(c);function N(){for(var X=arguments.length,ce=ye(X),ve=X,Ce=fd(N);ve--;)ce[ve]=arguments[ve];var Ne=X<3&&ce[0]!==Ce&&ce[X-1]!==Ce?[]:ss(ce,Ce);if(X-=Ne.length,X<_)return XP(c,h,I0,N.placeholder,n,ce,Ne,n,n,_-X);var je=this&&this!==Dr&&this instanceof N?R:c;return Pt(je,this,ce)}return N}function HP(c){return function(h,_,R){var N=Wt(h);if(!Bi(h)){var X=Tt(_,3);h=zr(h),_=function(ve){return X(N[ve],ve,N)}}var ce=c(h,_,R);return ce>-1?N[X?h[ce]:ce]:n}}function qP(c){return nl(function(h){var _=h.length,R=_,N=Uo.prototype.thru;for(c&&h.reverse();R--;){var X=h[R];if(typeof X!="function")throw new zo(a);if(N&&!ce&&M0(X)=="wrapper")var ce=new Uo([],!0)}for(R=ce?R:_;++R<_;){X=h[R];var ve=M0(X),Ce=ve=="wrapper"?FC(X):n;Ce&&zC(Ce[0])&&Ce[1]==(I|S|A|z)&&!Ce[4].length&&Ce[9]==1?ce=ce[M0(Ce[0])].apply(ce,Ce[3]):ce=X.length==1&&zC(X)?ce[ve]():ce.thru(X)}return function(){var Ne=arguments,je=Ne[0];if(ce&&Ne.length==1&&It(je))return ce.plant(je).value();for(var qe=0,at=_?h[qe].apply(this,Ne):je;++qe<_;)at=h[qe].call(this,at);return at}})}function I0(c,h,_,R,N,X,ce,ve,Ce,Ne){var je=h&I,qe=h&w,at=h&b,vt=h&(S|k),At=h&K,Nt=at?n:xg(c);function $t(){for(var qt=arguments.length,en=ye(qt),ho=qt;ho--;)en[ho]=arguments[ho];if(vt)var ki=fd($t),go=jo(en,ki);if(R&&(en=zP(en,R,N,vt)),X&&(en=UP(en,X,ce,vt)),qt-=go,vt&&qt<Ne){var Sr=ss(en,ki);return XP(c,h,I0,$t.placeholder,_,en,Sr,ve,Ce,Ne-qt)}var Da=qe?_:this,al=at?Da[c]:c;return qt=en.length,ve?en=xee(en,ve):At&&qt>1&&en.reverse(),je&&Ce<qt&&(en.length=Ce),this&&this!==Dr&&this instanceof $t&&(al=Nt||xg(al)),al.apply(Da,en)}return $t}function GP(c,h){return function(_,R){return $Q(_,c,h(R),{})}}function D0(c,h){return function(_,R){var N;if(_===n&&R===n)return h;if(_!==n&&(N=_),R!==n){if(N===n)return R;typeof _=="string"||typeof R=="string"?(_=fo(_),R=fo(R)):(_=DP(_),R=DP(R)),N=c(_,R)}return N}}function DC(c){return nl(function(h){return h=Kt(h,si(Tt())),Ut(function(_){var R=this;return c(h,function(N){return Pt(N,R,_)})})})}function P0(c,h){h=h===n?" ":fo(h);var _=h.length;if(_<2)return _?kC(h,c):h;var R=kC(h,_0(c/E(h)));return Ra(h)?tu(O(R),0,c).join(""):R.slice(0,c)}function nee(c,h,_,R){var N=h&w,X=xg(c);function ce(){for(var ve=-1,Ce=arguments.length,Ne=-1,je=R.length,qe=ye(je+Ce),at=this&&this!==Dr&&this instanceof ce?X:c;++Ne<je;)qe[Ne]=R[Ne];for(;Ce--;)qe[Ne++]=arguments[++ve];return Pt(at,N?_:this,qe)}return ce}function YP(c){return function(h,_,R){return R&&typeof R!="number"&&Ei(h,_,R)&&(_=R=n),h=ol(h),_===n?(_=h,h=0):_=ol(_),R=R===n?h<_?1:-1:ol(R),zQ(h,_,R,c)}}function L0(c){return function(h,_){return typeof h=="string"&&typeof _=="string"||(h=Ho(h),_=Ho(_)),c(h,_)}}function XP(c,h,_,R,N,X,ce,ve,Ce,Ne){var je=h&S,qe=je?ce:n,at=je?n:ce,vt=je?X:n,At=je?n:X;h|=je?A:$,h&=~(je?$:A),h&x||(h&=~(w|b));var Nt=[c,h,N,vt,qe,At,at,ve,Ce,Ne],$t=_.apply(n,Nt);return zC(c)&&lL($t,Nt),$t.placeholder=R,uL($t,c,h)}function PC(c){var h=cn[c];return function(_,R){if(_=Ho(_),R=R==null?0:li(Lt(R),292),R&&uP(_)){var N=(vn(_)+"e").split("e"),X=h(N[0]+"e"+(+N[1]+R));return N=(vn(X)+"e").split("e"),+(N[0]+"e"+(+N[1]-R))}return h(_)}}var ree=ad&&1/id(new ad([,-0]))[1]==le?function(c){return new ad(c)}:nE;function ZP(c){return function(h){var _=ui(h);return _==Ke?ug(h):_==$e?c0(h):dr(h,c(h))}}function tl(c,h,_,R,N,X,ce,ve){var Ce=h&b;if(!Ce&&typeof c!="function")throw new zo(a);var Ne=R?R.length:0;if(Ne||(h&=~(A|$),R=N=n),ce=ce===n?ce:Pr(Lt(ce),0),ve=ve===n?ve:Lt(ve),Ne-=N?N.length:0,h&$){var je=R,qe=N;R=N=n}var at=Ce?n:FC(c),vt=[c,h,_,R,N,je,qe,X,ce,ve];if(at&&yee(vt,at),c=vt[0],h=vt[1],_=vt[2],R=vt[3],N=vt[4],ve=vt[9]=vt[9]===n?Ce?0:c.length:Pr(vt[9]-Ne,0),!ve&&h&(S|k)&&(h&=~(S|k)),!h||h==w)var At=eee(c,h,_);else h==S||h==k?At=tee(c,h,ve):(h==A||h==(w|A))&&!N.length?At=nee(c,h,_,R):At=I0.apply(n,vt);var Nt=at?OP:lL;return uL(Nt(At,vt),c,h)}function JP(c,h,_,R){return c===n||Ia(c,od[_])&&!bn.call(R,_)?h:c}function QP(c,h,_,R,N,X){return ir(c)&&ir(h)&&(X.set(h,c),A0(c,h,n,QP,X),X.delete(h)),c}function iee(c){return Cg(c)?n:c}function eL(c,h,_,R,N,X){var ce=_&v,ve=c.length,Ce=h.length;if(ve!=Ce&&!(ce&&Ce>ve))return!1;var Ne=X.get(c),je=X.get(h);if(Ne&&je)return Ne==h&&je==c;var qe=-1,at=!0,vt=_&y?new hc:n;for(X.set(c,h),X.set(h,c);++qe<ve;){var At=c[qe],Nt=h[qe];if(R)var $t=ce?R(Nt,At,qe,h,c,X):R(At,Nt,qe,c,h,X);if($t!==n){if($t)continue;at=!1;break}if(vt){if(!rg(h,function(qt,en){if(!$a(vt,en)&&(At===qt||N(At,qt,_,R,X)))return vt.push(en)})){at=!1;break}}else if(!(At===Nt||N(At,Nt,_,R,X))){at=!1;break}}return X.delete(c),X.delete(h),at}function oee(c,h,_,R,N,X,ce){switch(_){case Z:if(c.byteLength!=h.byteLength||c.byteOffset!=h.byteOffset)return!1;c=c.buffer,h=h.buffer;case Y:return!(c.byteLength!=h.byteLength||!X(new m0(c),new m0(h)));case Re:case ke:case He:return Ia(+c,+h);case Me:return c.name==h.name&&c.message==h.message;case ge:case Te:return c==h+"";case Ke:var ve=ug;case $e:var Ce=R&v;if(ve||(ve=id),c.size!=h.size&&!Ce)return!1;var Ne=ce.get(c);if(Ne)return Ne==h;R|=y,ce.set(c,h);var je=eL(ve(c),ve(h),R,N,X,ce);return ce.delete(c),je;case Pe:if(gg)return gg.call(c)==gg.call(h)}return!1}function aee(c,h,_,R,N,X){var ce=_&v,ve=LC(c),Ce=ve.length,Ne=LC(h),je=Ne.length;if(Ce!=je&&!ce)return!1;for(var qe=Ce;qe--;){var at=ve[qe];if(!(ce?at in h:bn.call(h,at)))return!1}var vt=X.get(c),At=X.get(h);if(vt&&At)return vt==h&&At==c;var Nt=!0;X.set(c,h),X.set(h,c);for(var $t=ce;++qe<Ce;){at=ve[qe];var qt=c[at],en=h[at];if(R)var ho=ce?R(en,qt,at,h,c,X):R(qt,en,at,c,h,X);if(!(ho===n?qt===en||N(qt,en,_,R,X):ho)){Nt=!1;break}$t||($t=at=="constructor")}if(Nt&&!$t){var ki=c.constructor,go=h.constructor;ki!=go&&"constructor"in c&&"constructor"in h&&!(typeof ki=="function"&&ki instanceof ki&&typeof go=="function"&&go instanceof go)&&(Nt=!1)}return X.delete(c),X.delete(h),Nt}function nl(c){return KC(aL(c,n,gL),c+"")}function LC(c){return _P(c,zr,BC)}function MC(c){return _P(c,ji,tL)}var FC=w0?function(c){return w0.get(c)}:nE;function M0(c){for(var h=c.name+"",_=sd[h],R=bn.call(sd,h)?_.length:0;R--;){var N=_[R],X=N.func;if(X==null||X==c)return N.name}return h}function fd(c){var h=bn.call(V,"placeholder")?V:c;return h.placeholder}function Tt(){var c=V.iteratee||eE;return c=c===eE?SP:c,arguments.length?c(arguments[0],arguments[1]):c}function F0(c,h){var _=c.__data__;return hee(h)?_[typeof h=="string"?"string":"hash"]:_.map}function NC(c){for(var h=zr(c),_=h.length;_--;){var R=h[_],N=c[R];h[_]=[R,N,iL(N)]}return h}function vc(c,h){var _=cC(c,h);return wP(_)?_:n}function see(c){var h=bn.call(c,dc),_=c[dc];try{c[dc]=n;var R=!0}catch{}var N=h0.call(c);return R&&(h?c[dc]=_:delete c[dc]),N}var BC=dC?function(c){return c==null?[]:(c=Wt(c),Bo(dC(c),function(h){return sP.call(c,h)}))}:rE,tL=dC?function(c){for(var h=[];c;)In(h,BC(c)),c=v0(c);return h}:rE,ui=Ci;(pC&&ui(new pC(new ArrayBuffer(1)))!=Z||dg&&ui(new dg)!=Ke||hC&&ui(hC.resolve())!=nt||ad&&ui(new ad)!=$e||pg&&ui(new pg)!=H)&&(ui=function(c){var h=Ci(c),_=h==Xe?c.constructor:n,R=_?yc(_):"";if(R)switch(R){case KJ:return Z;case WJ:return Ke;case VJ:return nt;case HJ:return $e;case qJ:return H}return h});function lee(c,h,_){for(var R=-1,N=_.length;++R<N;){var X=_[R],ce=X.size;switch(X.type){case"drop":c+=ce;break;case"dropRight":h-=ce;break;case"take":h=li(h,c+ce);break;case"takeRight":c=Pr(c,h-ce);break}}return{start:c,end:h}}function uee(c){var h=c.match(Gs);return h?h[1].split(xi):[]}function nL(c,h,_){h=eu(h,c);for(var R=-1,N=h.length,X=!1;++R<N;){var ce=cs(h[R]);if(!(X=c!=null&&_(c,ce)))break;c=c[ce]}return X||++R!=N?X:(N=c==null?0:c.length,!!N&&W0(N)&&rl(ce,N)&&(It(c)||bc(c)))}function cee(c){var h=c.length,_=new c.constructor(h);return h&&typeof c[0]=="string"&&bn.call(c,"index")&&(_.index=c.index,_.input=c.input),_}function rL(c){return typeof c.constructor=="function"&&!wg(c)?ld(v0(c)):{}}function fee(c,h,_){var R=c.constructor;switch(h){case Y:return IC(c);case Re:case ke:return new R(+c);case Z:return GQ(c,_);case re:case xe:case Se:case _e:case et:case tt:case fe:case he:case Ae:return BP(c,_);case Ke:return new R;case He:case Te:return new R(c);case ge:return YQ(c);case $e:return new R;case Pe:return XQ(c)}}function dee(c,h){var _=h.length;if(!_)return c;var R=_-1;return h[R]=(_>1?"& ":"")+h[R],h=h.join(_>2?", ":" "),c.replace(_i,`{
|
|
459
|
-
/* [wrapped with `+h+`] */
|
|
460
|
-
`)}function pee(c){return It(c)||bc(c)||!!(lP&&c&&c[lP])}function rl(c,h){var _=typeof c;return h=h??Q,!!h&&(_=="number"||_!="symbol"&&ot.test(c))&&c>-1&&c%1==0&&c<h}function Ei(c,h,_){if(!ir(_))return!1;var R=typeof h;return(R=="number"?Bi(_)&&rl(h,_.length):R=="string"&&h in _)?Ia(_[h],c):!1}function jC(c,h){if(It(c))return!1;var _=typeof c;return _=="number"||_=="symbol"||_=="boolean"||c==null||po(c)?!0:br.test(c)||!Yt.test(c)||h!=null&&c in Wt(h)}function hee(c){var h=typeof c;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?c!=="__proto__":c===null}function zC(c){var h=M0(c),_=V[h];if(typeof _!="function"||!(h in Xt.prototype))return!1;if(c===_)return!0;var R=FC(_);return!!R&&c===R[0]}function gee(c){return!!iP&&iP in c}var mee=d0?il:iE;function wg(c){var h=c&&c.constructor,_=typeof h=="function"&&h.prototype||od;return c===_}function iL(c){return c===c&&!ir(c)}function oL(c,h){return function(_){return _==null?!1:_[c]===h&&(h!==n||c in Wt(_))}}function vee(c){var h=U0(c,function(R){return _.size===u&&_.clear(),R}),_=h.cache;return h}function yee(c,h){var _=c[1],R=h[1],N=_|R,X=N<(w|b|I),ce=R==I&&_==S||R==I&&_==z&&c[7].length<=h[8]||R==(I|z)&&h[7].length<=h[8]&&_==S;if(!(X||ce))return c;R&w&&(c[2]=h[2],N|=_&w?0:x);var ve=h[3];if(ve){var Ce=c[3];c[3]=Ce?zP(Ce,ve,h[4]):ve,c[4]=Ce?ss(c[3],f):h[4]}return ve=h[5],ve&&(Ce=c[5],c[5]=Ce?UP(Ce,ve,h[6]):ve,c[6]=Ce?ss(c[5],f):h[6]),ve=h[7],ve&&(c[7]=ve),R&I&&(c[8]=c[8]==null?h[8]:li(c[8],h[8])),c[9]==null&&(c[9]=h[9]),c[0]=h[0],c[1]=N,c}function bee(c){var h=[];if(c!=null)for(var _ in Wt(c))h.push(_);return h}function _ee(c){return h0.call(c)}function aL(c,h,_){return h=Pr(h===n?c.length-1:h,0),function(){for(var R=arguments,N=-1,X=Pr(R.length-h,0),ce=ye(X);++N<X;)ce[N]=R[h+N];N=-1;for(var ve=ye(h+1);++N<h;)ve[N]=R[N];return ve[h]=_(ce),Pt(c,this,ve)}}function sL(c,h){return h.length<2?c:mc(c,Wo(h,0,-1))}function xee(c,h){for(var _=c.length,R=li(h.length,_),N=Ni(c);R--;){var X=h[R];c[R]=rl(X,_)?N[X]:n}return c}function UC(c,h){if(!(h==="constructor"&&typeof c[h]=="function")&&h!="__proto__")return c[h]}var lL=cL(OP),Sg=MJ||function(c,h){return Dr.setTimeout(c,h)},KC=cL(WQ);function uL(c,h,_){var R=h+"";return KC(c,dee(R,wee(uee(R),_)))}function cL(c){var h=0,_=0;return function(){var R=jJ(),N=ae-(R-_);if(_=R,N>0){if(++h>=ie)return arguments[0]}else h=0;return c.apply(n,arguments)}}function N0(c,h){var _=-1,R=c.length,N=R-1;for(h=h===n?R:h;++_<h;){var X=EC(_,N),ce=c[X];c[X]=c[_],c[_]=ce}return c.length=h,c}var fL=vee(function(c){var h=[];return c.charCodeAt(0)===46&&h.push(""),c.replace(Sn,function(_,R,N,X){h.push(N?X.replace(kn,"$1"):R||_)}),h});function cs(c){if(typeof c=="string"||po(c))return c;var h=c+"";return h=="0"&&1/c==-le?"-0":h}function yc(c){if(c!=null){try{return p0.call(c)}catch{}try{return c+""}catch{}}return""}function wee(c,h){return Si(oe,function(_){var R="_."+_[0];h&_[1]&&!uc(c,R)&&c.push(R)}),c.sort()}function dL(c){if(c instanceof Xt)return c.clone();var h=new Uo(c.__wrapped__,c.__chain__);return h.__actions__=Ni(c.__actions__),h.__index__=c.__index__,h.__values__=c.__values__,h}function See(c,h,_){(_?Ei(c,h,_):h===n)?h=1:h=Pr(Lt(h),0);var R=c==null?0:c.length;if(!R||h<1)return[];for(var N=0,X=0,ce=ye(_0(R/h));N<R;)ce[X++]=Wo(c,N,N+=h);return ce}function Cee(c){for(var h=-1,_=c==null?0:c.length,R=0,N=[];++h<_;){var X=c[h];X&&(N[R++]=X)}return N}function Eee(){var c=arguments.length;if(!c)return[];for(var h=ye(c-1),_=arguments[0],R=c;R--;)h[R-1]=arguments[R];return In(It(_)?Ni(_):[_],Xr(h,1))}var kee=Ut(function(c,h){return wr(c)?vg(c,Xr(h,1,wr,!0)):[]}),Tee=Ut(function(c,h){var _=Vo(h);return wr(_)&&(_=n),wr(c)?vg(c,Xr(h,1,wr,!0),Tt(_,2)):[]}),Aee=Ut(function(c,h){var _=Vo(h);return wr(_)&&(_=n),wr(c)?vg(c,Xr(h,1,wr,!0),n,_):[]});function $ee(c,h,_){var R=c==null?0:c.length;return R?(h=_||h===n?1:Lt(h),Wo(c,h<0?0:h,R)):[]}function Ree(c,h,_){var R=c==null?0:c.length;return R?(h=_||h===n?1:Lt(h),h=R-h,Wo(c,0,h<0?0:h)):[]}function Oee(c,h){return c&&c.length?R0(c,Tt(h,3),!0,!0):[]}function Iee(c,h){return c&&c.length?R0(c,Tt(h,3),!0):[]}function Dee(c,h,_,R){var N=c==null?0:c.length;return N?(_&&typeof _!="number"&&Ei(c,h,_)&&(_=0,R=N),EQ(c,h,_,R)):[]}function pL(c,h,_){var R=c==null?0:c.length;if(!R)return-1;var N=_==null?0:Lt(_);return N<0&&(N=Pr(R+N,0)),Br(c,Tt(h,3),N)}function hL(c,h,_){var R=c==null?0:c.length;if(!R)return-1;var N=R-1;return _!==n&&(N=Lt(_),N=_<0?Pr(R+N,0):li(N,R-1)),Br(c,Tt(h,3),N,!0)}function gL(c){var h=c==null?0:c.length;return h?Xr(c,1):[]}function Pee(c){var h=c==null?0:c.length;return h?Xr(c,le):[]}function Lee(c,h){var _=c==null?0:c.length;return _?(h=h===n?1:Lt(h),Xr(c,h)):[]}function Mee(c){for(var h=-1,_=c==null?0:c.length,R={};++h<_;){var N=c[h];R[N[0]]=N[1]}return R}function mL(c){return c&&c.length?c[0]:n}function Fee(c,h,_){var R=c==null?0:c.length;if(!R)return-1;var N=_==null?0:Lt(_);return N<0&&(N=Pr(R+N,0)),os(c,h,N)}function Nee(c){var h=c==null?0:c.length;return h?Wo(c,0,-1):[]}var Bee=Ut(function(c){var h=Kt(c,RC);return h.length&&h[0]===c[0]?_C(h):[]}),jee=Ut(function(c){var h=Vo(c),_=Kt(c,RC);return h===Vo(_)?h=n:_.pop(),_.length&&_[0]===c[0]?_C(_,Tt(h,2)):[]}),zee=Ut(function(c){var h=Vo(c),_=Kt(c,RC);return h=typeof h=="function"?h:n,h&&_.pop(),_.length&&_[0]===c[0]?_C(_,n,h):[]});function Uee(c,h){return c==null?"":NJ.call(c,h)}function Vo(c){var h=c==null?0:c.length;return h?c[h-1]:n}function Kee(c,h,_){var R=c==null?0:c.length;if(!R)return-1;var N=R;return _!==n&&(N=Lt(_),N=N<0?Pr(R+N,0):li(N,R-1)),h===h?g(c,h,N):Br(c,ag,N,!0)}function Wee(c,h){return c&&c.length?TP(c,Lt(h)):n}var Vee=Ut(vL);function vL(c,h){return c&&c.length&&h&&h.length?CC(c,h):c}function Hee(c,h,_){return c&&c.length&&h&&h.length?CC(c,h,Tt(_,2)):c}function qee(c,h,_){return c&&c.length&&h&&h.length?CC(c,h,n,_):c}var Gee=nl(function(c,h){var _=c==null?0:c.length,R=mC(c,h);return RP(c,Kt(h,function(N){return rl(N,_)?+N:N}).sort(jP)),R});function Yee(c,h){var _=[];if(!(c&&c.length))return _;var R=-1,N=[],X=c.length;for(h=Tt(h,3);++R<X;){var ce=c[R];h(ce,R,c)&&(_.push(ce),N.push(R))}return RP(c,N),_}function WC(c){return c==null?c:UJ.call(c)}function Xee(c,h,_){var R=c==null?0:c.length;return R?(_&&typeof _!="number"&&Ei(c,h,_)?(h=0,_=R):(h=h==null?0:Lt(h),_=_===n?R:Lt(_)),Wo(c,h,_)):[]}function Zee(c,h){return $0(c,h)}function Jee(c,h,_){return TC(c,h,Tt(_,2))}function Qee(c,h){var _=c==null?0:c.length;if(_){var R=$0(c,h);if(R<_&&Ia(c[R],h))return R}return-1}function ete(c,h){return $0(c,h,!0)}function tte(c,h,_){return TC(c,h,Tt(_,2),!0)}function nte(c,h){var _=c==null?0:c.length;if(_){var R=$0(c,h,!0)-1;if(Ia(c[R],h))return R}return-1}function rte(c){return c&&c.length?IP(c):[]}function ite(c,h){return c&&c.length?IP(c,Tt(h,2)):[]}function ote(c){var h=c==null?0:c.length;return h?Wo(c,1,h):[]}function ate(c,h,_){return c&&c.length?(h=_||h===n?1:Lt(h),Wo(c,0,h<0?0:h)):[]}function ste(c,h,_){var R=c==null?0:c.length;return R?(h=_||h===n?1:Lt(h),h=R-h,Wo(c,h<0?0:h,R)):[]}function lte(c,h){return c&&c.length?R0(c,Tt(h,3),!1,!0):[]}function ute(c,h){return c&&c.length?R0(c,Tt(h,3)):[]}var cte=Ut(function(c){return Ql(Xr(c,1,wr,!0))}),fte=Ut(function(c){var h=Vo(c);return wr(h)&&(h=n),Ql(Xr(c,1,wr,!0),Tt(h,2))}),dte=Ut(function(c){var h=Vo(c);return h=typeof h=="function"?h:n,Ql(Xr(c,1,wr,!0),n,h)});function pte(c){return c&&c.length?Ql(c):[]}function hte(c,h){return c&&c.length?Ql(c,Tt(h,2)):[]}function gte(c,h){return h=typeof h=="function"?h:n,c&&c.length?Ql(c,n,h):[]}function VC(c){if(!(c&&c.length))return[];var h=0;return c=Bo(c,function(_){if(wr(_))return h=Pr(_.length,h),!0}),fc(h,function(_){return Kt(c,Fi(_))})}function yL(c,h){if(!(c&&c.length))return[];var _=VC(c);return h==null?_:Kt(_,function(R){return Pt(h,n,R)})}var mte=Ut(function(c,h){return wr(c)?vg(c,h):[]}),vte=Ut(function(c){return $C(Bo(c,wr))}),yte=Ut(function(c){var h=Vo(c);return wr(h)&&(h=n),$C(Bo(c,wr),Tt(h,2))}),bte=Ut(function(c){var h=Vo(c);return h=typeof h=="function"?h:n,$C(Bo(c,wr),n,h)}),_te=Ut(VC);function xte(c,h){return MP(c||[],h||[],mg)}function wte(c,h){return MP(c||[],h||[],_g)}var Ste=Ut(function(c){var h=c.length,_=h>1?c[h-1]:n;return _=typeof _=="function"?(c.pop(),_):n,yL(c,_)});function bL(c){var h=V(c);return h.__chain__=!0,h}function Cte(c,h){return h(c),c}function B0(c,h){return h(c)}var Ete=nl(function(c){var h=c.length,_=h?c[0]:0,R=this.__wrapped__,N=function(X){return mC(X,c)};return h>1||this.__actions__.length||!(R instanceof Xt)||!rl(_)?this.thru(N):(R=R.slice(_,+_+(h?1:0)),R.__actions__.push({func:B0,args:[N],thisArg:n}),new Uo(R,this.__chain__).thru(function(X){return h&&!X.length&&X.push(n),X}))});function kte(){return bL(this)}function Tte(){return new Uo(this.value(),this.__chain__)}function Ate(){this.__values__===n&&(this.__values__=DL(this.value()));var c=this.__index__>=this.__values__.length,h=c?n:this.__values__[this.__index__++];return{done:c,value:h}}function $te(){return this}function Rte(c){for(var h,_=this;_ instanceof C0;){var R=dL(_);R.__index__=0,R.__values__=n,h?N.__wrapped__=R:h=R;var N=R;_=_.__wrapped__}return N.__wrapped__=c,h}function Ote(){var c=this.__wrapped__;if(c instanceof Xt){var h=c;return this.__actions__.length&&(h=new Xt(this)),h=h.reverse(),h.__actions__.push({func:B0,args:[WC],thisArg:n}),new Uo(h,this.__chain__)}return this.thru(WC)}function Ite(){return LP(this.__wrapped__,this.__actions__)}var Dte=O0(function(c,h,_){bn.call(c,_)?++c[_]:el(c,_,1)});function Pte(c,h,_){var R=It(c)?co:CQ;return _&&Ei(c,h,_)&&(h=n),R(c,Tt(h,3))}function Lte(c,h){var _=It(c)?Bo:yP;return _(c,Tt(h,3))}var Mte=HP(pL),Fte=HP(hL);function Nte(c,h){return Xr(j0(c,h),1)}function Bte(c,h){return Xr(j0(c,h),le)}function jte(c,h,_){return _=_===n?1:Lt(_),Xr(j0(c,h),_)}function _L(c,h){var _=It(c)?Si:Jl;return _(c,Tt(h,3))}function xL(c,h){var _=It(c)?i0:vP;return _(c,Tt(h,3))}var zte=O0(function(c,h,_){bn.call(c,_)?c[_].push(h):el(c,_,[h])});function Ute(c,h,_,R){c=Bi(c)?c:pd(c),_=_&&!R?Lt(_):0;var N=c.length;return _<0&&(_=Pr(N+_,0)),V0(c)?_<=N&&c.indexOf(h,_)>-1:!!N&&os(c,h,_)>-1}var Kte=Ut(function(c,h,_){var R=-1,N=typeof h=="function",X=Bi(c)?ye(c.length):[];return Jl(c,function(ce){X[++R]=N?Pt(h,ce,_):yg(ce,h,_)}),X}),Wte=O0(function(c,h,_){el(c,_,h)});function j0(c,h){var _=It(c)?Kt:CP;return _(c,Tt(h,3))}function Vte(c,h,_,R){return c==null?[]:(It(h)||(h=h==null?[]:[h]),_=R?n:_,It(_)||(_=_==null?[]:[_]),AP(c,h,_))}var Hte=O0(function(c,h,_){c[_?0:1].push(h)},function(){return[[],[]]});function qte(c,h,_){var R=It(c)?Yl:cc,N=arguments.length<3;return R(c,Tt(h,4),_,N,Jl)}function Gte(c,h,_){var R=It(c)?o0:cc,N=arguments.length<3;return R(c,Tt(h,4),_,N,vP)}function Yte(c,h){var _=It(c)?Bo:yP;return _(c,K0(Tt(h,3)))}function Xte(c){var h=It(c)?pP:UQ;return h(c)}function Zte(c,h,_){(_?Ei(c,h,_):h===n)?h=1:h=Lt(h);var R=It(c)?bQ:KQ;return R(c,h)}function Jte(c){var h=It(c)?_Q:VQ;return h(c)}function Qte(c){if(c==null)return 0;if(Bi(c))return V0(c)?E(c):c.length;var h=ui(c);return h==Ke||h==$e?c.size:wC(c).length}function ene(c,h,_){var R=It(c)?rg:HQ;return _&&Ei(c,h,_)&&(h=n),R(c,Tt(h,3))}var tne=Ut(function(c,h){if(c==null)return[];var _=h.length;return _>1&&Ei(c,h[0],h[1])?h=[]:_>2&&Ei(h[0],h[1],h[2])&&(h=[h[0]]),AP(c,Xr(h,1),[])}),z0=LJ||function(){return Dr.Date.now()};function nne(c,h){if(typeof h!="function")throw new zo(a);return c=Lt(c),function(){if(--c<1)return h.apply(this,arguments)}}function wL(c,h,_){return h=_?n:h,h=c&&h==null?c.length:h,tl(c,I,n,n,n,n,h)}function SL(c,h){var _;if(typeof h!="function")throw new zo(a);return c=Lt(c),function(){return--c>0&&(_=h.apply(this,arguments)),c<=1&&(h=n),_}}var HC=Ut(function(c,h,_){var R=w;if(_.length){var N=ss(_,fd(HC));R|=A}return tl(c,R,h,_,N)}),CL=Ut(function(c,h,_){var R=w|b;if(_.length){var N=ss(_,fd(CL));R|=A}return tl(h,R,c,_,N)});function EL(c,h,_){h=_?n:h;var R=tl(c,S,n,n,n,n,n,h);return R.placeholder=EL.placeholder,R}function kL(c,h,_){h=_?n:h;var R=tl(c,k,n,n,n,n,n,h);return R.placeholder=kL.placeholder,R}function TL(c,h,_){var R,N,X,ce,ve,Ce,Ne=0,je=!1,qe=!1,at=!0;if(typeof c!="function")throw new zo(a);h=Ho(h)||0,ir(_)&&(je=!!_.leading,qe="maxWait"in _,X=qe?Pr(Ho(_.maxWait)||0,h):X,at="trailing"in _?!!_.trailing:at);function vt(Sr){var Da=R,al=N;return R=N=n,Ne=Sr,ce=c.apply(al,Da),ce}function At(Sr){return Ne=Sr,ve=Sg(qt,h),je?vt(Sr):ce}function Nt(Sr){var Da=Sr-Ce,al=Sr-Ne,HL=h-Da;return qe?li(HL,X-al):HL}function $t(Sr){var Da=Sr-Ce,al=Sr-Ne;return Ce===n||Da>=h||Da<0||qe&&al>=X}function qt(){var Sr=z0();if($t(Sr))return en(Sr);ve=Sg(qt,Nt(Sr))}function en(Sr){return ve=n,at&&R?vt(Sr):(R=N=n,ce)}function ho(){ve!==n&&FP(ve),Ne=0,R=Ce=N=ve=n}function ki(){return ve===n?ce:en(z0())}function go(){var Sr=z0(),Da=$t(Sr);if(R=arguments,N=this,Ce=Sr,Da){if(ve===n)return At(Ce);if(qe)return FP(ve),ve=Sg(qt,h),vt(Ce)}return ve===n&&(ve=Sg(qt,h)),ce}return go.cancel=ho,go.flush=ki,go}var rne=Ut(function(c,h){return mP(c,1,h)}),ine=Ut(function(c,h,_){return mP(c,Ho(h)||0,_)});function one(c){return tl(c,K)}function U0(c,h){if(typeof c!="function"||h!=null&&typeof h!="function")throw new zo(a);var _=function(){var R=arguments,N=h?h.apply(this,R):R[0],X=_.cache;if(X.has(N))return X.get(N);var ce=c.apply(this,R);return _.cache=X.set(N,ce)||X,ce};return _.cache=new(U0.Cache||Qs),_}U0.Cache=Qs;function K0(c){if(typeof c!="function")throw new zo(a);return function(){var h=arguments;switch(h.length){case 0:return!c.call(this);case 1:return!c.call(this,h[0]);case 2:return!c.call(this,h[0],h[1]);case 3:return!c.call(this,h[0],h[1],h[2])}return!c.apply(this,h)}}function ane(c){return SL(2,c)}var sne=qQ(function(c,h){h=h.length==1&&It(h[0])?Kt(h[0],si(Tt())):Kt(Xr(h,1),si(Tt()));var _=h.length;return Ut(function(R){for(var N=-1,X=li(R.length,_);++N<X;)R[N]=h[N].call(this,R[N]);return Pt(c,this,R)})}),qC=Ut(function(c,h){var _=ss(h,fd(qC));return tl(c,A,n,h,_)}),AL=Ut(function(c,h){var _=ss(h,fd(AL));return tl(c,$,n,h,_)}),lne=nl(function(c,h){return tl(c,z,n,n,n,h)});function une(c,h){if(typeof c!="function")throw new zo(a);return h=h===n?h:Lt(h),Ut(c,h)}function cne(c,h){if(typeof c!="function")throw new zo(a);return h=h==null?0:Pr(Lt(h),0),Ut(function(_){var R=_[h],N=tu(_,0,h);return R&&In(N,R),Pt(c,this,N)})}function fne(c,h,_){var R=!0,N=!0;if(typeof c!="function")throw new zo(a);return ir(_)&&(R="leading"in _?!!_.leading:R,N="trailing"in _?!!_.trailing:N),TL(c,h,{leading:R,maxWait:h,trailing:N})}function dne(c){return wL(c,1)}function pne(c,h){return qC(OC(h),c)}function hne(){if(!arguments.length)return[];var c=arguments[0];return It(c)?c:[c]}function gne(c){return Ko(c,m)}function mne(c,h){return h=typeof h=="function"?h:n,Ko(c,m,h)}function vne(c){return Ko(c,d|m)}function yne(c,h){return h=typeof h=="function"?h:n,Ko(c,d|m,h)}function bne(c,h){return h==null||gP(c,h,zr(h))}function Ia(c,h){return c===h||c!==c&&h!==h}var _ne=L0(bC),xne=L0(function(c,h){return c>=h}),bc=xP(function(){return arguments}())?xP:function(c){return pr(c)&&bn.call(c,"callee")&&!sP.call(c,"callee")},It=ye.isArray,wne=t0?si(t0):RQ;function Bi(c){return c!=null&&W0(c.length)&&!il(c)}function wr(c){return pr(c)&&Bi(c)}function Sne(c){return c===!0||c===!1||pr(c)&&Ci(c)==Re}var nu=FJ||iE,Cne=n0?si(n0):OQ;function Ene(c){return pr(c)&&c.nodeType===1&&!Cg(c)}function kne(c){if(c==null)return!0;if(Bi(c)&&(It(c)||typeof c=="string"||typeof c.splice=="function"||nu(c)||dd(c)||bc(c)))return!c.length;var h=ui(c);if(h==Ke||h==$e)return!c.size;if(wg(c))return!wC(c).length;for(var _ in c)if(bn.call(c,_))return!1;return!0}function Tne(c,h){return bg(c,h)}function Ane(c,h,_){_=typeof _=="function"?_:n;var R=_?_(c,h):n;return R===n?bg(c,h,n,_):!!R}function GC(c){if(!pr(c))return!1;var h=Ci(c);return h==Me||h==De||typeof c.message=="string"&&typeof c.name=="string"&&!Cg(c)}function $ne(c){return typeof c=="number"&&uP(c)}function il(c){if(!ir(c))return!1;var h=Ci(c);return h==Be||h==Ue||h==Ee||h==mt}function $L(c){return typeof c=="number"&&c==Lt(c)}function W0(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=Q}function ir(c){var h=typeof c;return c!=null&&(h=="object"||h=="function")}function pr(c){return c!=null&&typeof c=="object"}var RL=Zs?si(Zs):DQ;function Rne(c,h){return c===h||xC(c,h,NC(h))}function One(c,h,_){return _=typeof _=="function"?_:n,xC(c,h,NC(h),_)}function Ine(c){return OL(c)&&c!=+c}function Dne(c){if(mee(c))throw new rt(o);return wP(c)}function Pne(c){return c===null}function Lne(c){return c==null}function OL(c){return typeof c=="number"||pr(c)&&Ci(c)==He}function Cg(c){if(!pr(c)||Ci(c)!=Xe)return!1;var h=v0(c);if(h===null)return!0;var _=bn.call(h,"constructor")&&h.constructor;return typeof _=="function"&&_ instanceof _&&p0.call(_)==OJ}var YC=lc?si(lc):PQ;function Mne(c){return $L(c)&&c>=-Q&&c<=Q}var IL=ng?si(ng):LQ;function V0(c){return typeof c=="string"||!It(c)&&pr(c)&&Ci(c)==Te}function po(c){return typeof c=="symbol"||pr(c)&&Ci(c)==Pe}var dd=Zf?si(Zf):MQ;function Fne(c){return c===n}function Nne(c){return pr(c)&&ui(c)==H}function Bne(c){return pr(c)&&Ci(c)==de}var jne=L0(SC),zne=L0(function(c,h){return c<=h});function DL(c){if(!c)return[];if(Bi(c))return V0(c)?O(c):Ni(c);if(fg&&c[fg])return u0(c[fg]());var h=ui(c),_=h==Ke?ug:h==$e?id:pd;return _(c)}function ol(c){if(!c)return c===0?c:0;if(c=Ho(c),c===le||c===-le){var h=c<0?-1:1;return h*te}return c===c?c:0}function Lt(c){var h=ol(c),_=h%1;return h===h?_?h-_:h:0}function PL(c){return c?gc(Lt(c),0,me):0}function Ho(c){if(typeof c=="number")return c;if(po(c))return P;if(ir(c)){var h=typeof c.valueOf=="function"?c.valueOf():c;c=ir(h)?h+"":h}if(typeof c!="string")return c===0?c:+c;c=sg(c);var _=Rt.test(c);return _||Wf.test(c)?Jh(c.slice(2),_?2:8):fr.test(c)?P:+c}function LL(c){return us(c,ji(c))}function Une(c){return c?gc(Lt(c),-Q,Q):c===0?c:0}function vn(c){return c==null?"":fo(c)}var Kne=ud(function(c,h){if(wg(h)||Bi(h)){us(h,zr(h),c);return}for(var _ in h)bn.call(h,_)&&mg(c,_,h[_])}),ML=ud(function(c,h){us(h,ji(h),c)}),H0=ud(function(c,h,_,R){us(h,ji(h),c,R)}),Wne=ud(function(c,h,_,R){us(h,zr(h),c,R)}),Vne=nl(mC);function Hne(c,h){var _=ld(c);return h==null?_:hP(_,h)}var qne=Ut(function(c,h){c=Wt(c);var _=-1,R=h.length,N=R>2?h[2]:n;for(N&&Ei(h[0],h[1],N)&&(R=1);++_<R;)for(var X=h[_],ce=ji(X),ve=-1,Ce=ce.length;++ve<Ce;){var Ne=ce[ve],je=c[Ne];(je===n||Ia(je,od[Ne])&&!bn.call(c,Ne))&&(c[Ne]=X[Ne])}return c}),Gne=Ut(function(c){return c.push(n,QP),Pt(FL,n,c)});function Yne(c,h){return og(c,Tt(h,3),ls)}function Xne(c,h){return og(c,Tt(h,3),yC)}function Zne(c,h){return c==null?c:vC(c,Tt(h,3),ji)}function Jne(c,h){return c==null?c:bP(c,Tt(h,3),ji)}function Qne(c,h){return c&&ls(c,Tt(h,3))}function ere(c,h){return c&&yC(c,Tt(h,3))}function tre(c){return c==null?[]:T0(c,zr(c))}function nre(c){return c==null?[]:T0(c,ji(c))}function XC(c,h,_){var R=c==null?n:mc(c,h);return R===n?_:R}function rre(c,h){return c!=null&&nL(c,h,kQ)}function ZC(c,h){return c!=null&&nL(c,h,TQ)}var ire=GP(function(c,h,_){h!=null&&typeof h.toString!="function"&&(h=h0.call(h)),c[h]=_},QC(zi)),ore=GP(function(c,h,_){h!=null&&typeof h.toString!="function"&&(h=h0.call(h)),bn.call(c,h)?c[h].push(_):c[h]=[_]},Tt),are=Ut(yg);function zr(c){return Bi(c)?dP(c):wC(c)}function ji(c){return Bi(c)?dP(c,!0):FQ(c)}function sre(c,h){var _={};return h=Tt(h,3),ls(c,function(R,N,X){el(_,h(R,N,X),R)}),_}function lre(c,h){var _={};return h=Tt(h,3),ls(c,function(R,N,X){el(_,N,h(R,N,X))}),_}var ure=ud(function(c,h,_){A0(c,h,_)}),FL=ud(function(c,h,_,R){A0(c,h,_,R)}),cre=nl(function(c,h){var _={};if(c==null)return _;var R=!1;h=Kt(h,function(X){return X=eu(X,c),R||(R=X.length>1),X}),us(c,MC(c),_),R&&(_=Ko(_,d|p|m,iee));for(var N=h.length;N--;)AC(_,h[N]);return _});function fre(c,h){return NL(c,K0(Tt(h)))}var dre=nl(function(c,h){return c==null?{}:BQ(c,h)});function NL(c,h){if(c==null)return{};var _=Kt(MC(c),function(R){return[R]});return h=Tt(h),$P(c,_,function(R,N){return h(R,N[0])})}function pre(c,h,_){h=eu(h,c);var R=-1,N=h.length;for(N||(N=1,c=n);++R<N;){var X=c==null?n:c[cs(h[R])];X===n&&(R=N,X=_),c=il(X)?X.call(c):X}return c}function hre(c,h,_){return c==null?c:_g(c,h,_)}function gre(c,h,_,R){return R=typeof R=="function"?R:n,c==null?c:_g(c,h,_,R)}var BL=ZP(zr),jL=ZP(ji);function mre(c,h,_){var R=It(c),N=R||nu(c)||dd(c);if(h=Tt(h,4),_==null){var X=c&&c.constructor;N?_=R?new X:[]:ir(c)?_=il(X)?ld(v0(c)):{}:_={}}return(N?Si:ls)(c,function(ce,ve,Ce){return h(_,ce,ve,Ce)}),_}function vre(c,h){return c==null?!0:AC(c,h)}function yre(c,h,_){return c==null?c:PP(c,h,OC(_))}function bre(c,h,_,R){return R=typeof R=="function"?R:n,c==null?c:PP(c,h,OC(_),R)}function pd(c){return c==null?[]:as(c,zr(c))}function _re(c){return c==null?[]:as(c,ji(c))}function xre(c,h,_){return _===n&&(_=h,h=n),_!==n&&(_=Ho(_),_=_===_?_:0),h!==n&&(h=Ho(h),h=h===h?h:0),gc(Ho(c),h,_)}function wre(c,h,_){return h=ol(h),_===n?(_=h,h=0):_=ol(_),c=Ho(c),AQ(c,h,_)}function Sre(c,h,_){if(_&&typeof _!="boolean"&&Ei(c,h,_)&&(h=_=n),_===n&&(typeof h=="boolean"?(_=h,h=n):typeof c=="boolean"&&(_=c,c=n)),c===n&&h===n?(c=0,h=1):(c=ol(c),h===n?(h=c,c=0):h=ol(h)),c>h){var R=c;c=h,h=R}if(_||c%1||h%1){var N=cP();return li(c+N*(h-c+e0("1e-"+((N+"").length-1))),h)}return EC(c,h)}var Cre=cd(function(c,h,_){return h=h.toLowerCase(),c+(_?zL(h):h)});function zL(c){return JC(vn(c).toLowerCase())}function UL(c){return c=vn(c),c&&c.replace(xr,jr).replace(Yf,"")}function Ere(c,h,_){c=vn(c),h=fo(h);var R=c.length;_=_===n?R:gc(Lt(_),0,R);var N=_;return _-=h.length,_>=0&&c.slice(_,N)==h}function kre(c){return c=vn(c),c&&pt.test(c)?c.replace(ut,rd):c}function Tre(c){return c=vn(c),c&&_r.test(c)?c.replace(Nr,"\\$&"):c}var Are=cd(function(c,h,_){return c+(_?"-":"")+h.toLowerCase()}),$re=cd(function(c,h,_){return c+(_?" ":"")+h.toLowerCase()}),Rre=VP("toLowerCase");function Ore(c,h,_){c=vn(c),h=Lt(h);var R=h?E(c):0;if(!h||R>=h)return c;var N=(h-R)/2;return P0(x0(N),_)+c+P0(_0(N),_)}function Ire(c,h,_){c=vn(c),h=Lt(h);var R=h?E(c):0;return h&&R<h?c+P0(h-R,_):c}function Dre(c,h,_){c=vn(c),h=Lt(h);var R=h?E(c):0;return h&&R<h?P0(h-R,_)+c:c}function Pre(c,h,_){return _||h==null?h=0:h&&(h=+h),zJ(vn(c).replace(kr,""),h||0)}function Lre(c,h,_){return(_?Ei(c,h,_):h===n)?h=1:h=Lt(h),kC(vn(c),h)}function Mre(){var c=arguments,h=vn(c[0]);return c.length<3?h:h.replace(c[1],c[2])}var Fre=cd(function(c,h,_){return c+(_?"_":"")+h.toLowerCase()});function Nre(c,h,_){return _&&typeof _!="number"&&Ei(c,h,_)&&(h=_=n),_=_===n?me:_>>>0,_?(c=vn(c),c&&(typeof h=="string"||h!=null&&!YC(h))&&(h=fo(h),!h&&Ra(c))?tu(O(c),0,_):c.split(h,_)):[]}var Bre=cd(function(c,h,_){return c+(_?" ":"")+JC(h)});function jre(c,h,_){return c=vn(c),_=_==null?0:gc(Lt(_),0,c.length),h=fo(h),c.slice(_,_+h.length)==h}function zre(c,h,_){var R=V.templateSettings;_&&Ei(c,h,_)&&(h=n),c=vn(c),h=H0({},h,R,JP);var N=H0({},h.imports,R.imports,JP),X=zr(N),ce=as(N,X),ve,Ce,Ne=0,je=h.interpolate||Ea,qe="__p += '",at=Xl((h.escape||Ea).source+"|"+je.source+"|"+(je===Qt?Tn:Ea).source+"|"+(h.evaluate||Ea).source+"|$","g"),vt="//# sourceURL="+(bn.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Xf+"]")+`
|
|
461
|
-
`;c.replace(at,function($t,qt,en,ho,ki,go){return en||(en=ho),qe+=c.slice(Ne,go).replace(oc,uC),qt&&(ve=!0,qe+=`' +
|
|
462
|
-
__e(`+qt+`) +
|
|
463
|
-
'`),ki&&(Ce=!0,qe+=`';
|
|
464
|
-
`+ki+`;
|
|
465
|
-
__p += '`),en&&(qe+=`' +
|
|
466
|
-
((__t = (`+en+`)) == null ? '' : __t) +
|
|
467
|
-
'`),Ne=go+$t.length,$t}),qe+=`';
|
|
468
|
-
`;var At=bn.call(h,"variable")&&h.variable;if(!At)qe=`with (obj) {
|
|
469
|
-
`+qe+`
|
|
470
|
-
}
|
|
471
|
-
`;else if(Ul.test(At))throw new rt(s);qe=(Ce?qe.replace(We,""):qe).replace(Ve,"$1").replace(Ge,"$1;"),qe="function("+(At||"obj")+`) {
|
|
472
|
-
`+(At?"":`obj || (obj = {});
|
|
473
|
-
`)+"var __t, __p = ''"+(ve?", __e = _.escape":"")+(Ce?`, __j = Array.prototype.join;
|
|
474
|
-
function print() { __p += __j.call(arguments, '') }
|
|
475
|
-
`:`;
|
|
476
|
-
`)+qe+`return __p
|
|
477
|
-
}`;var Nt=WL(function(){return xt(X,vt+"return "+qe).apply(n,ce)});if(Nt.source=qe,GC(Nt))throw Nt;return Nt}function Ure(c){return vn(c).toLowerCase()}function Kre(c){return vn(c).toUpperCase()}function Wre(c,h,_){if(c=vn(c),c&&(_||h===n))return sg(c);if(!c||!(h=fo(h)))return c;var R=O(c),N=O(h),X=lg(R,N),ce=nd(R,N)+1;return tu(R,X,ce).join("")}function Vre(c,h,_){if(c=vn(c),c&&(_||h===n))return c.slice(0,M(c)+1);if(!c||!(h=fo(h)))return c;var R=O(c),N=nd(R,O(h))+1;return tu(R,0,N).join("")}function Hre(c,h,_){if(c=vn(c),c&&(_||h===n))return c.replace(kr,"");if(!c||!(h=fo(h)))return c;var R=O(c),N=lg(R,O(h));return tu(R,N).join("")}function qre(c,h){var _=D,R=W;if(ir(h)){var N="separator"in h?h.separator:N;_="length"in h?Lt(h.length):_,R="omission"in h?fo(h.omission):R}c=vn(c);var X=c.length;if(Ra(c)){var ce=O(c);X=ce.length}if(_>=X)return c;var ve=_-E(R);if(ve<1)return R;var Ce=ce?tu(ce,0,ve).join(""):c.slice(0,ve);if(N===n)return Ce+R;if(ce&&(ve+=Ce.length-ve),YC(N)){if(c.slice(ve).search(N)){var Ne,je=Ce;for(N.global||(N=Xl(N.source,vn(uo.exec(N))+"g")),N.lastIndex=0;Ne=N.exec(je);)var qe=Ne.index;Ce=Ce.slice(0,qe===n?ve:qe)}}else if(c.indexOf(fo(N),ve)!=ve){var at=Ce.lastIndexOf(N);at>-1&&(Ce=Ce.slice(0,at))}return Ce+R}function Gre(c){return c=vn(c),c&&it.test(c)?c.replace(ft,B):c}var Yre=cd(function(c,h,_){return c+(_?" ":"")+h.toUpperCase()}),JC=VP("toUpperCase");function KL(c,h,_){return c=vn(c),h=_?n:h,h===n?l0(c)?we(c):ig(c):c.match(h)||[]}var WL=Ut(function(c,h){try{return Pt(c,n,h)}catch(_){return GC(_)?_:new rt(_)}}),Xre=nl(function(c,h){return Si(h,function(_){_=cs(_),el(c,_,HC(c[_],c))}),c});function Zre(c){var h=c==null?0:c.length,_=Tt();return c=h?Kt(c,function(R){if(typeof R[1]!="function")throw new zo(a);return[_(R[0]),R[1]]}):[],Ut(function(R){for(var N=-1;++N<h;){var X=c[N];if(Pt(X[0],this,R))return Pt(X[1],this,R)}})}function Jre(c){return SQ(Ko(c,d))}function QC(c){return function(){return c}}function Qre(c,h){return c==null||c!==c?h:c}var eie=qP(),tie=qP(!0);function zi(c){return c}function eE(c){return SP(typeof c=="function"?c:Ko(c,d))}function nie(c){return EP(Ko(c,d))}function rie(c,h){return kP(c,Ko(h,d))}var iie=Ut(function(c,h){return function(_){return yg(_,c,h)}}),oie=Ut(function(c,h){return function(_){return yg(c,_,h)}});function tE(c,h,_){var R=zr(h),N=T0(h,R);_==null&&!(ir(h)&&(N.length||!R.length))&&(_=h,h=c,c=this,N=T0(h,zr(h)));var X=!(ir(_)&&"chain"in _)||!!_.chain,ce=il(c);return Si(N,function(ve){var Ce=h[ve];c[ve]=Ce,ce&&(c.prototype[ve]=function(){var Ne=this.__chain__;if(X||Ne){var je=c(this.__wrapped__),qe=je.__actions__=Ni(this.__actions__);return qe.push({func:Ce,args:arguments,thisArg:c}),je.__chain__=Ne,je}return Ce.apply(c,In([this.value()],arguments))})}),c}function aie(){return Dr._===this&&(Dr._=IJ),this}function nE(){}function sie(c){return c=Lt(c),Ut(function(h){return TP(h,c)})}var lie=DC(Kt),uie=DC(co),cie=DC(rg);function VL(c){return jC(c)?Fi(cs(c)):jQ(c)}function fie(c){return function(h){return c==null?n:mc(c,h)}}var die=YP(),pie=YP(!0);function rE(){return[]}function iE(){return!1}function hie(){return{}}function gie(){return""}function mie(){return!0}function vie(c,h){if(c=Lt(c),c<1||c>Q)return[];var _=me,R=li(c,me);h=Tt(h),c-=me;for(var N=fc(R,h);++_<c;)h(_);return N}function yie(c){return It(c)?Kt(c,cs):po(c)?[c]:Ni(fL(vn(c)))}function bie(c){var h=++RJ;return vn(c)+h}var _ie=D0(function(c,h){return c+h},0),xie=PC("ceil"),wie=D0(function(c,h){return c/h},1),Sie=PC("floor");function Cie(c){return c&&c.length?k0(c,zi,bC):n}function Eie(c,h){return c&&c.length?k0(c,Tt(h,2),bC):n}function kie(c){return Qf(c,zi)}function Tie(c,h){return Qf(c,Tt(h,2))}function Aie(c){return c&&c.length?k0(c,zi,SC):n}function $ie(c,h){return c&&c.length?k0(c,Tt(h,2),SC):n}var Rie=D0(function(c,h){return c*h},1),Oie=PC("round"),Iie=D0(function(c,h){return c-h},0);function Die(c){return c&&c.length?td(c,zi):0}function Pie(c,h){return c&&c.length?td(c,Tt(h,2)):0}return V.after=nne,V.ary=wL,V.assign=Kne,V.assignIn=ML,V.assignInWith=H0,V.assignWith=Wne,V.at=Vne,V.before=SL,V.bind=HC,V.bindAll=Xre,V.bindKey=CL,V.castArray=hne,V.chain=bL,V.chunk=See,V.compact=Cee,V.concat=Eee,V.cond=Zre,V.conforms=Jre,V.constant=QC,V.countBy=Dte,V.create=Hne,V.curry=EL,V.curryRight=kL,V.debounce=TL,V.defaults=qne,V.defaultsDeep=Gne,V.defer=rne,V.delay=ine,V.difference=kee,V.differenceBy=Tee,V.differenceWith=Aee,V.drop=$ee,V.dropRight=Ree,V.dropRightWhile=Oee,V.dropWhile=Iee,V.fill=Dee,V.filter=Lte,V.flatMap=Nte,V.flatMapDeep=Bte,V.flatMapDepth=jte,V.flatten=gL,V.flattenDeep=Pee,V.flattenDepth=Lee,V.flip=one,V.flow=eie,V.flowRight=tie,V.fromPairs=Mee,V.functions=tre,V.functionsIn=nre,V.groupBy=zte,V.initial=Nee,V.intersection=Bee,V.intersectionBy=jee,V.intersectionWith=zee,V.invert=ire,V.invertBy=ore,V.invokeMap=Kte,V.iteratee=eE,V.keyBy=Wte,V.keys=zr,V.keysIn=ji,V.map=j0,V.mapKeys=sre,V.mapValues=lre,V.matches=nie,V.matchesProperty=rie,V.memoize=U0,V.merge=ure,V.mergeWith=FL,V.method=iie,V.methodOf=oie,V.mixin=tE,V.negate=K0,V.nthArg=sie,V.omit=cre,V.omitBy=fre,V.once=ane,V.orderBy=Vte,V.over=lie,V.overArgs=sne,V.overEvery=uie,V.overSome=cie,V.partial=qC,V.partialRight=AL,V.partition=Hte,V.pick=dre,V.pickBy=NL,V.property=VL,V.propertyOf=fie,V.pull=Vee,V.pullAll=vL,V.pullAllBy=Hee,V.pullAllWith=qee,V.pullAt=Gee,V.range=die,V.rangeRight=pie,V.rearg=lne,V.reject=Yte,V.remove=Yee,V.rest=une,V.reverse=WC,V.sampleSize=Zte,V.set=hre,V.setWith=gre,V.shuffle=Jte,V.slice=Xee,V.sortBy=tne,V.sortedUniq=rte,V.sortedUniqBy=ite,V.split=Nre,V.spread=cne,V.tail=ote,V.take=ate,V.takeRight=ste,V.takeRightWhile=lte,V.takeWhile=ute,V.tap=Cte,V.throttle=fne,V.thru=B0,V.toArray=DL,V.toPairs=BL,V.toPairsIn=jL,V.toPath=yie,V.toPlainObject=LL,V.transform=mre,V.unary=dne,V.union=cte,V.unionBy=fte,V.unionWith=dte,V.uniq=pte,V.uniqBy=hte,V.uniqWith=gte,V.unset=vre,V.unzip=VC,V.unzipWith=yL,V.update=yre,V.updateWith=bre,V.values=pd,V.valuesIn=_re,V.without=mte,V.words=KL,V.wrap=pne,V.xor=vte,V.xorBy=yte,V.xorWith=bte,V.zip=_te,V.zipObject=xte,V.zipObjectDeep=wte,V.zipWith=Ste,V.entries=BL,V.entriesIn=jL,V.extend=ML,V.extendWith=H0,tE(V,V),V.add=_ie,V.attempt=WL,V.camelCase=Cre,V.capitalize=zL,V.ceil=xie,V.clamp=xre,V.clone=gne,V.cloneDeep=vne,V.cloneDeepWith=yne,V.cloneWith=mne,V.conformsTo=bne,V.deburr=UL,V.defaultTo=Qre,V.divide=wie,V.endsWith=Ere,V.eq=Ia,V.escape=kre,V.escapeRegExp=Tre,V.every=Pte,V.find=Mte,V.findIndex=pL,V.findKey=Yne,V.findLast=Fte,V.findLastIndex=hL,V.findLastKey=Xne,V.floor=Sie,V.forEach=_L,V.forEachRight=xL,V.forIn=Zne,V.forInRight=Jne,V.forOwn=Qne,V.forOwnRight=ere,V.get=XC,V.gt=_ne,V.gte=xne,V.has=rre,V.hasIn=ZC,V.head=mL,V.identity=zi,V.includes=Ute,V.indexOf=Fee,V.inRange=wre,V.invoke=are,V.isArguments=bc,V.isArray=It,V.isArrayBuffer=wne,V.isArrayLike=Bi,V.isArrayLikeObject=wr,V.isBoolean=Sne,V.isBuffer=nu,V.isDate=Cne,V.isElement=Ene,V.isEmpty=kne,V.isEqual=Tne,V.isEqualWith=Ane,V.isError=GC,V.isFinite=$ne,V.isFunction=il,V.isInteger=$L,V.isLength=W0,V.isMap=RL,V.isMatch=Rne,V.isMatchWith=One,V.isNaN=Ine,V.isNative=Dne,V.isNil=Lne,V.isNull=Pne,V.isNumber=OL,V.isObject=ir,V.isObjectLike=pr,V.isPlainObject=Cg,V.isRegExp=YC,V.isSafeInteger=Mne,V.isSet=IL,V.isString=V0,V.isSymbol=po,V.isTypedArray=dd,V.isUndefined=Fne,V.isWeakMap=Nne,V.isWeakSet=Bne,V.join=Uee,V.kebabCase=Are,V.last=Vo,V.lastIndexOf=Kee,V.lowerCase=$re,V.lowerFirst=Rre,V.lt=jne,V.lte=zne,V.max=Cie,V.maxBy=Eie,V.mean=kie,V.meanBy=Tie,V.min=Aie,V.minBy=$ie,V.stubArray=rE,V.stubFalse=iE,V.stubObject=hie,V.stubString=gie,V.stubTrue=mie,V.multiply=Rie,V.nth=Wee,V.noConflict=aie,V.noop=nE,V.now=z0,V.pad=Ore,V.padEnd=Ire,V.padStart=Dre,V.parseInt=Pre,V.random=Sre,V.reduce=qte,V.reduceRight=Gte,V.repeat=Lre,V.replace=Mre,V.result=pre,V.round=Oie,V.runInContext=ee,V.sample=Xte,V.size=Qte,V.snakeCase=Fre,V.some=ene,V.sortedIndex=Zee,V.sortedIndexBy=Jee,V.sortedIndexOf=Qee,V.sortedLastIndex=ete,V.sortedLastIndexBy=tte,V.sortedLastIndexOf=nte,V.startCase=Bre,V.startsWith=jre,V.subtract=Iie,V.sum=Die,V.sumBy=Pie,V.template=zre,V.times=vie,V.toFinite=ol,V.toInteger=Lt,V.toLength=PL,V.toLower=Ure,V.toNumber=Ho,V.toSafeInteger=Une,V.toString=vn,V.toUpper=Kre,V.trim=Wre,V.trimEnd=Vre,V.trimStart=Hre,V.truncate=qre,V.unescape=Gre,V.uniqueId=bie,V.upperCase=Yre,V.upperFirst=JC,V.each=_L,V.eachRight=xL,V.first=mL,tE(V,function(){var c={};return ls(V,function(h,_){bn.call(V.prototype,_)||(c[_]=h)}),c}(),{chain:!1}),V.VERSION=r,Si(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){V[c].placeholder=V}),Si(["drop","take"],function(c,h){Xt.prototype[c]=function(_){_=_===n?1:Pr(Lt(_),0);var R=this.__filtered__&&!h?new Xt(this):this.clone();return R.__filtered__?R.__takeCount__=li(_,R.__takeCount__):R.__views__.push({size:li(_,me),type:c+(R.__dir__<0?"Right":"")}),R},Xt.prototype[c+"Right"]=function(_){return this.reverse()[c](_).reverse()}}),Si(["filter","map","takeWhile"],function(c,h){var _=h+1,R=_==q||_==J;Xt.prototype[c]=function(N){var X=this.clone();return X.__iteratees__.push({iteratee:Tt(N,3),type:_}),X.__filtered__=X.__filtered__||R,X}}),Si(["head","last"],function(c,h){var _="take"+(h?"Right":"");Xt.prototype[c]=function(){return this[_](1).value()[0]}}),Si(["initial","tail"],function(c,h){var _="drop"+(h?"":"Right");Xt.prototype[c]=function(){return this.__filtered__?new Xt(this):this[_](1)}}),Xt.prototype.compact=function(){return this.filter(zi)},Xt.prototype.find=function(c){return this.filter(c).head()},Xt.prototype.findLast=function(c){return this.reverse().find(c)},Xt.prototype.invokeMap=Ut(function(c,h){return typeof c=="function"?new Xt(this):this.map(function(_){return yg(_,c,h)})}),Xt.prototype.reject=function(c){return this.filter(K0(Tt(c)))},Xt.prototype.slice=function(c,h){c=Lt(c);var _=this;return _.__filtered__&&(c>0||h<0)?new Xt(_):(c<0?_=_.takeRight(-c):c&&(_=_.drop(c)),h!==n&&(h=Lt(h),_=h<0?_.dropRight(-h):_.take(h-c)),_)},Xt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},Xt.prototype.toArray=function(){return this.take(me)},ls(Xt.prototype,function(c,h){var _=/^(?:filter|find|map|reject)|While$/.test(h),R=/^(?:head|last)$/.test(h),N=V[R?"take"+(h=="last"?"Right":""):h],X=R||/^find/.test(h);N&&(V.prototype[h]=function(){var ce=this.__wrapped__,ve=R?[1]:arguments,Ce=ce instanceof Xt,Ne=ve[0],je=Ce||It(ce),qe=function(qt){var en=N.apply(V,In([qt],ve));return R&&at?en[0]:en};je&&_&&typeof Ne=="function"&&Ne.length!=1&&(Ce=je=!1);var at=this.__chain__,vt=!!this.__actions__.length,At=X&&!at,Nt=Ce&&!vt;if(!X&&je){ce=Nt?ce:new Xt(this);var $t=c.apply(ce,ve);return $t.__actions__.push({func:B0,args:[qe],thisArg:n}),new Uo($t,at)}return At&&Nt?c.apply(this,ve):($t=this.thru(qe),At?R?$t.value()[0]:$t.value():$t)})}),Si(["pop","push","shift","sort","splice","unshift"],function(c){var h=f0[c],_=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",R=/^(?:pop|shift)$/.test(c);V.prototype[c]=function(){var N=arguments;if(R&&!this.__chain__){var X=this.value();return h.apply(It(X)?X:[],N)}return this[_](function(ce){return h.apply(It(ce)?ce:[],N)})}}),ls(Xt.prototype,function(c,h){var _=V[h];if(_){var R=_.name+"";bn.call(sd,R)||(sd[R]=[]),sd[R].push({name:h,func:_})}}),sd[I0(n,b).name]=[{name:"wrapper",func:n}],Xt.prototype.clone=GJ,Xt.prototype.reverse=YJ,Xt.prototype.value=XJ,V.prototype.at=Ete,V.prototype.chain=kte,V.prototype.commit=Tte,V.prototype.next=Ate,V.prototype.plant=Rte,V.prototype.reverse=Ote,V.prototype.toJSON=V.prototype.valueOf=V.prototype.value=Ite,V.prototype.first=V.prototype.head,fg&&(V.prototype[fg]=$te),V},Ie=Oe();Xs?((Xs.exports=Ie)._=Ie,sc._=Ie):Dr._=Ie}).call(ri)})(ix,ix.exports);var EX=ix.exports;function RQe(){const e=VO(!0),t={};for(let n=0;n<e.length;n++)t[n.toString()]={background:e[n],borderRadius:"2px",cursor:"pointer"};return t}function OQe(e,t){const n=$Qe(t),r=[];let i;for(;(i=n.exec(e))!==null;)i.index>-1&&r.push(i);return r}function IQe(e,t,n){const i=SX(t,n).exec(e),o=i==null?void 0:i[0];if(o){const{ok:a}=hD(t,o,n);return{match:o,ok:a}}else return{match:"",ok:!1}}function DQe(e,t,n){let r=e.getCurrentContent(),i=e;return r.getBlockMap().forEach(o=>{if(!o)return;const a=o.getKey(),s=o.getText(),l=OQe(s,n);let u=0;const f=l.map(p=>{const m=p[0];let v;for(const S of t){const{match:k,ok:A}=IQe(m,S.name,n);if(A){v={variable:S,match:k};break}}const y=p.index+u,w=y+m.length,b=new En.SelectionState({anchorKey:a,anchorOffset:y,focusKey:a,focusOffset:w}),x=AQe(m,n);return u+=x.length-m.length,r=En.Modifier.replaceText(r,b,x),i=En.EditorState.push(e,r,"apply-entity"),p[0]=x,p.index=y,{ssm:p,variableFound:v}});let d=0;f.forEach(({ssm:p,variableFound:m})=>{if(!m)return;const{variable:v}=m,y=p[0],w=i.getSelection(),{localEndIndex:b,localStartIndex:x}=hD(v.name,y,n),S=p.index+x+d,k=p.index+b+d,A=new En.SelectionState({anchorKey:a,anchorOffset:S,focusKey:a,focusOffset:k}),$=v.content||"";d+=$.length-(b-x),r=i.getCurrentContent(),r=r.createEntity("TOKEN","SEGMENTED",v);const I=r.getLastCreatedEntityKey();r=En.Modifier.replaceText(r,A,$,hf.of(v.styleIndex.toString()),I),i=En.EditorState.push(i,r,"apply-entity"),i=En.EditorState.forceSelection(i,w)})}),i}function PQe(e){const t=e.getSelection(),n=t.getStartKey(),r=e.getCurrentContent(),i=r.getBlockForKey(n);if(!i)return;const o=i.getEntityAt(t.getStartOffset());if(o){const a=r.getEntity(o);return{type:a.getType(),mutability:a.getMutability(),data:a.getData()}}}function ox({template:e,formatted:t,prompt:n,readOnly:r,onChange:i,showTitle:o=!1,sxEditorChildren:a}){const s=T.useRef(null),l=hn(dS),u=hn(pS),[f,d]=T.useState(),[p,m]=T.useState(),v=RQe();if(eS()||!EX.isEqual(n.inputs,p)){if(typeof e=="string"){const x=n.inputs||{},S=Object.keys(x),k=[];for(let z=0;z<S.length;z++){const K=S[z],D=x[K];k.push({name:K,styleIndex:z,content:D})}const A=k.sort((z,K)=>K.name.length-z.name.length),$=En.EditorState.createWithContent(En.ContentState.createFromText(e)),I=DQe($,A,n.template_format);d(I)}else if(typeof t=="string"){const x=En.EditorState.createWithContent(En.ContentState.createFromText(t));d(x)}m(n.inputs)}const w=x=>{const S=x.getSelection().getHasFocus(),k=PQe(x);if(k&&S&&s.current&&(l(k.data.name),s.current.blur()),!r)i&&i(x);else if(f){const A=f.getCurrentContent(),$=x.getCurrentContent();A!==$&&(Mr.error("Formatted prompt is read only. Edit the template/variables instead."),u("Template")),x=En.EditorState.push(x,A,"insert-characters")}d(x)};if(!f)return null;const b=r?"Formatted prompt [Read Only]":"Formatted prompt";return C.jsx(WS,{className:"formatted-editor",title:o?b:void 0,clipboardValue:f==null?void 0:f.getCurrentContent().getPlainText(),sxChildren:rx(a||{},r?{caretColor:"transparent",backgroundColor:"transparent",borderColor:"transparent !important"}:{}),children:C.jsx(En.Editor,{ref:s,customStyleMap:v,editorState:f,onChange:w})})}function LQe(e,t=200){return e.length>t?e.slice(0,t-1)+"...":e}function MQe({children:e,decoratedText:t}){const n=hn(dS),r=yt(es),i=VO(!0),[o,a]=T.useState(),[s,l]=T.useState({}),u=r==null?void 0:r.prompt;if(!u)return null;T.useEffect(()=>{if(u.inputs&&t){const p=Object.keys(u.inputs).findIndex(m=>CX(m,u.template_format)===t);if(p>-1){a(p);const m=p%(i.length-1);l({backgroundColor:i[m],borderRadius:"2px",cursor:"pointer"})}}},[t,u]);const[f,d]=o!==void 0?Object.entries(u.inputs||{})[o]:[];return C.jsx(Io,{title:d?LQe(d):void 0,children:C.jsx("span",{className:f?`input-${f}`:void 0,style:s,onMouseDown:()=>n(f),children:e})})}const FQe=(e,t,n,r)=>{const i=n.getText();let o;for(;(o=e.exec(i))!==null;){const{ok:a,localEndIndex:s,localStartIndex:l}=hD(o[1],o[0],t);if(!a)continue;const u=o.index+l,f=o.index+s;r(u,f)}};function kX({prompt:e,template:t,onChange:n,showTitle:r=!0,sxEditorChildren:i}){const[o,a]=T.useState();if(eS()){const l=En.ContentState.createFromText(t),u={strategy:(d,p)=>{FQe(TQe(e.inputs,e.template_format),e.template_format,d,p)},component:MQe},f=new En.CompositeDecorator([u]);a(En.EditorState.createWithContent(l,f))}return o?C.jsx(WS,{className:"template-editor",title:r?"Prompt Template":void 0,clipboardValue:o==null?void 0:o.getCurrentContent().getPlainText(),sxChildren:i,children:C.jsx(En.Editor,{editorState:o,onChange:l=>{a(l),n&&n(l)}})}):null}function NQe({hasTemplate:e,prompt:t,restoredTime:n}){const r=yt(pS),i=hn(es);if(t.messages)return null;const o=u=>{const f=u.getCurrentContent().getPlainText();i(d=>({...d,prompt:{...d.prompt,template:f}}))},a=u=>{const f=u.getCurrentContent().getPlainText();i(d=>({...d,prompt:{...d.prompt,formatted:f}}))},s=()=>C.jsx(kX,{showTitle:!0,template:t.template||"",prompt:t,onChange:o}),l=()=>e?C.jsx(ox,{showTitle:!0,template:t.template,prompt:t,readOnly:!0}):typeof t.formatted=="string"?C.jsx(ox,{showTitle:!0,formatted:t.formatted,prompt:t,readOnly:!1,onChange:a}):C.jsx(no,{severity:"error",children:"Neither template or formatted prompt provided."});return C.jsxs(Ht,{flex:1,width:"100%",children:[r==="Template"?s():null,r==="Formatted"?l():null,C.jsx(wX,{completion:t.completion})]},n)}function TX({count:e,inputProps:t}){const n=nr();return e?t?(()=>{const o=a=>`${e.toString().length*8+(a?18:0)}px`;return t?C.jsx(Hw,{id:t.id,inputProps:{type:"number",max:t.max,min:t.min,step:t.step||1,sx:{width:o(),padding:a=>a.spacing(.5,1),fontSize:"12px",fontWeight:600,color:"text.secondary","&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{display:"none"},"&:focus":{width:o(!0),"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{display:"flex"}}}},sx:{borderRadius:"6px",backgroundColor:a=>a.palette.mode==="light"?"grey.100":"grey.800","& fieldset":{border:"none"}},value:e,onChange:t.onChange}):null})():(()=>C.jsx(st,{display:"flex",alignItems:"center",className:"notification-count",sx:{borderRadius:"6px",padding:"4px 8px",backgroundColor:n.palette.mode==="light"?"grey.100":"grey.800"},children:C.jsx(Zt,{className:"notification-count",color:"text.secondary",sx:{fontSize:"12px",fontWeight:600},children:e})}))():null}function BQe({id:e,label:t,tooltip:n,notificationsProps:r}){return C.jsxs(st,{display:"flex",justifyContent:"space-between",width:"100%",children:[C.jsxs(st,{display:"flex",gap:.5,alignItems:"center",children:[C.jsx(TW,{htmlFor:e,sx:{fontWeight:600,fontSize:"12px",color:"grey.500"},children:t}),n?C.jsx(Io,{title:n,children:C.jsx(xMe,{sx:{fontSize:12,color:"grey.600"}})}):null]}),r?C.jsx(TX,{...r}):null]})}function $h(e){const{children:t,description:n,hasError:r,id:i,label:o,notificationsProps:a,tooltip:s,sx:l}=e;return C.jsxs(Ht,{width:"100%",sx:l,gap:.5,children:[o?C.jsx(BQe,{id:i,label:o,tooltip:s,notificationsProps:a}):null,C.jsxs(_W,{error:r,fullWidth:!0,children:[t,n?C.jsx(xW,{children:n}):null]})]})}const jQe=({item:e,selected:t,isDarkMode:n,index:r})=>C.jsxs(qm,{value:e.value,sx:{display:"flex",justifyContent:"space-between",fontWeight:500,fontSize:"14px",color:n&>[400]||(t?ks[500]:gt[700]),"&:hover":{backgroundColor:n?gt[800]:ks[50],color:n?gt[400]:ks[500],"& .notification-count":{backgroundColor:n?gt[850]:ks[100],color:n?gt[400]:ks[500]}}},children:[e.label||e.value,e.notificationCount?C.jsx(TX,{count:e.notificationCount}):null]},`select-${r}`);function Rh({children:e,description:t,disabled:n=!1,hasError:r,id:i,items:o,label:a,name:s,onChange:l,size:u="small",tooltip:f,value:d,placeholder:p="Select",renderLabel:m,sx:v,iconSx:y,...w}){const b=gy();return C.jsx($h,{id:i,hasError:r,description:t,label:a,tooltip:f,sx:v,children:C.jsx(MW,{...w,labelId:i,value:d==null?void 0:d.toString(),onChange:l,size:u,disabled:n,displayEmpty:!0,renderValue:()=>{var x;return!d||d===""?p:m&&m()||`${(x=o==null?void 0:o.find(S=>S.value===d))==null?void 0:x.label}`},sx:{backgroundColor:x=>x.palette.background.paper,borderRadius:1,padding:.5,"&.MuiOutlinedInput-root":{"& fieldset":{border:x=>`1px solid ${x.palette.divider}`}}},inputProps:{id:i,name:s||i,sx:{color:gt[600],fontSize:"14px",fontWeight:400,px:"16px",py:u==="small"?"10px":"14px",h:"48px"}},MenuProps:{PaperProps:{sx:{border:x=>`1px solid ${x.palette.divider}`,boxShadow:x=>x.palette.mode==="light"?"0px 2px 4px 0px #0000000D":"0px 10px 10px 0px #0000000D","&& .Mui-selected, .Mui-selected.Mui-selected:hover":{backgroundColor:b?gt[800]:ks[50]}}},MenuListProps:{sx:{backgroundColor:b?gt[900]:""}}},IconComponent:x=>C.jsx(wMe,{...x,fontSize:"16px",sx:{px:"9px",color:n?"":`${b?gt[300]:gt[600]} !important`,...y}}),children:e||(o==null?void 0:o.map((x,S)=>jQe({item:x,index:S,selected:x.value===d,isDarkMode:b})))})})}const zQe=["Assistant","System","User"];function UQe({message:e,prompt:t,mode:n,index:r,onChange:i}){var m;const o=hn(es),[a,s]=CO(),l=nr(),u={prompt:t,sxEditorChildren:{padding:l.spacing(2),backgroundColor:"","&:hover":{background:l.palette.background.paper}}},f=()=>C.jsx(kX,{...u,showTitle:!1,template:e.template,onChange:v=>i(r,v)}),d=()=>typeof e.template=="string"?C.jsx(ox,{...u,template:e.template,readOnly:!0}):typeof e.formatted=="string"?C.jsx(ox,{...u,onChange:v=>i(r,v),formatted:e.formatted,readOnly:!1,showTitle:!1}):C.jsx(no,{severity:"error",children:"Neither template or formatted prompt provided."}),p=v=>{const y=v.target.value;y&&o(w=>{var b,x;return{...w,prompt:{...w.prompt,messages:(x=(b=w.prompt)==null?void 0:b.messages)==null?void 0:x.map((S,k)=>({...S,...k===r?{role:y}:{}}))}}}),s()};return C.jsxs(Ht,{className:"prompt-message",direction:"row",sx:{padding:v=>v.spacing(1,2),paddingRight:0,"&:hover":{background:v=>v.palette.background.paper}},children:[C.jsx(Ht,{sx:{fontSize:"12px",fontWeight:700,paddingRight:2,maxWidth:"100px",width:"100%"},children:a?C.jsx(Rh,{defaultOpen:!0,items:zQe.map(v=>({label:v,value:v.toLowerCase()})),id:"role-select",value:e.role,onChange:p,iconSx:{px:0,marginRight:"2px !important"}}):C.jsx(Zt,{onClick:s,color:"text.primary",sx:{marginTop:2,cursor:"pointer",fontSize:"12px",fontWeight:700,width:"fit-content",padding:v=>v.spacing(.5,1),"&:hover":{backgroundColor:v=>v.palette.divider}},children:(m=e==null?void 0:e.role)==null?void 0:m.toUpperCase()})}),C.jsxs(st,{sx:{width:"100%"},children:[n==="Template"?f():null,n==="Formatted"?d():null]})]},r)}function KQe({hasTemplate:e,prompt:t,restoredTime:n}){const r=hn(es),i=yt(pS),o=t.messages;if(!o)return null;const a=(l,u)=>{const f=u.getCurrentContent().getPlainText(),d=e?"template":"formatted";r(p=>{var m,v;return{...p,prompt:{...p.prompt,messages:(v=(m=p.prompt)==null?void 0:m.messages)==null?void 0:v.map((y,w)=>w===l?{...y,[d]:f}:y)}}})},s=i==="Formatted"?e?"Formatted messages [Read Only]":"Formatted messages":"Prompt messages";return C.jsxs(Ht,{sx:{width:"100%"},children:[C.jsx(Zt,{fontSize:"14px",fontWeight:700,color:Jx[400],children:s}),C.jsx(st,{sx:{flex:1,height:"auto",overflow:"scroll",marginTop:1,gap:1},children:o.length>0?C.jsx(Ht,{children:o.map((l,u)=>C.jsxs(T.Fragment,{children:[C.jsx(UQe,{message:l,prompt:t,mode:i,index:u,onChange:a}),u!==o.length-1?C.jsx(st,{sx:{border:f=>`1px solid ${f.palette.divider}`,borderRadius:1}}):null]},`prompt-message-${u}`))}):null},n),C.jsx(wX,{completion:t.completion})]})}function zu({children:e,...t}){const n=nr();return C.jsx("span",{style:{color:n.palette.text.primary},children:C.jsx(Cf,{color:n.palette.mode==="dark"?"inherit":"primary",...t,children:e})})}const WQe=()=>{const[e,t]=T.useState(),[n,r]=cr(es),[i,o]=cr(dS),a=nr();T.useEffect(()=>{var u;i&&((u=n.prompt)!=null&&u.inputs)&&t(En.EditorState.createWithContent(En.ContentState.createFromText(n.prompt.inputs[i])))},[i]);const s=()=>{i&&(r(u=>{var f;return u!=null&&u.prompt?{...u,prompt:{...u.prompt,inputs:{...(f=u==null?void 0:u.prompt)==null?void 0:f.inputs,[i]:(e==null?void 0:e.getCurrentContent().getPlainText())||""}}}:u}),o(void 0))},l=()=>{o(void 0)};return i?C.jsx(ah,{id:"variable-modal",open:!!i,onClose:l,fullWidth:!0,maxWidth:"md",sx:{border:u=>u.palette.mode==="dark"?`1px solid ${Jx[800]}`:null,borderRadius:1},children:C.jsxs(st,{bgcolor:"background.paper",children:[C.jsx(sy,{children:C.jsx(Zt,{fontSize:"16px",fontWeight:700,color:"text.secondary",children:`Edit ${i}`})}),C.jsxs(sh,{children:[C.jsx(no,{sx:{my:1},severity:"info",children:"Editing a variable will update its value in the formatted view. If you want to update the template instead, go to the template view."}),e?C.jsx(WS,{sx:{minHeight:"250px"},sxChildren:{padding:1},children:C.jsx(En.Editor,{customStyleFn:()=>({color:a.palette.text.primary,padding:"2px"}),editorState:e,onChange:u=>{u&&t(u)}})}):null]}),C.jsx(Ww,{sx:{padding:a.spacing(0,3,2)},children:C.jsx(zu,{id:"edit-variable",onClick:s,variant:"outlined",children:"Save"})})]})}):null};var gD={},VQe=Nn;Object.defineProperty(gD,"__esModule",{value:!0});var mD=gD.default=void 0,HQe=VQe(Bn()),qQe=C,GQe=(0,HQe.default)((0,qQe.jsx)("path",{d:"M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z"}),"Tune");mD=gD.default=GQe;const YQe=e=>{const{id:t,items:n,label:r,onChange:i,value:o}=e,a=gy();return C.jsx($h,{id:t,label:r,sx:{width:"fit-content"},children:C.jsx(st,{sx:{border:s=>`1px solid ${s.palette.divider}`,backgroundColor:s=>s.palette.background.paper,borderRadius:1,padding:.5},children:C.jsx(gAe,{value:n.findIndex(s=>s===o),onChange:(s,l)=>i(n[l]),sx:{minHeight:"40px !important","& .MuiButtonBase-root":{textTransform:"none",zIndex:1,color:gt[a?600:500],fontSize:"14px",fontWeight:500,padding:0,minHeight:"40px !important",width:"125px"},"& .Mui-selected":{color:"white !important"},"& .MuiTabs-indicator":{background:s=>a?s.palette.divider:ks[600],height:"100%",borderRadius:"5px"}},children:n.map(s=>C.jsx(FTe,{className:`tab-${s}`,disableRipple:!0,label:s},`tab-${s}`))})})})};function XQe({hasTemplate:e}){const[t,n]=cr(pS);return t==="Template"&&!e?(n("Formatted"),null):e?C.jsx(YQe,{label:"View",id:"toggle-prompt-mode",value:t,items:["Template","Formatted"],onChange:r=>n(r)}):C.jsx(no,{sx:{alignSelf:"flex-end"},severity:"info",id:"template-warning",children:"Prompt template not found. Only displaying formatted prompt instead."})}function ZQe({hasTemplate:e}){return e?C.jsx(Io,{title:"Coming soon!",children:C.jsx("span",{children:C.jsx(zu,{size:"large",variant:"contained",disabled:!0,children:"Save"})})}):null}function JQe(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var vD=JQe,QQe="__lodash_hash_undefined__";function eet(e){return this.__data__.set(e,QQe),this}var tet=eet;function net(e){return this.__data__.has(e)}var ret=net,iet=iD,oet=tet,aet=ret;function ax(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new iet;++t<n;)this.add(e[t])}ax.prototype.add=ax.prototype.push=oet;ax.prototype.has=aet;var set=ax;function uet(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var cet=uet;function fet(e,t){return e.has(t)}var det=fet,pet=set,het=cet,get=det,met=1,vet=2;function yet(e,t,n,r,i,o){var a=n&met,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(e),f=o.get(t);if(u&&f)return u==t&&f==e;var d=-1,p=!0,m=n&vet?new pet:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var v=e[d],y=t[d];if(r)var w=a?r(y,v,d,t,e,o):r(v,y,d,e,t,o);if(w!==void 0){if(w)continue;p=!1;break}if(m){if(!het(t,function(b,x){if(!get(m,x)&&(v===b||i(v,b,n,r,o)))return m.push(x)})){p=!1;break}}else if(!(v===y||i(v,y,n,r,o))){p=!1;break}}return o.delete(e),o.delete(t),p}var AX=yet;function bet(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var _et=bet;function xet(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var wet=xet,X4=wh,Z4=lX,Cet=My,Eet=AX,ket=_et,Tet=wet,Aet=1,$et=2,Ret="[object Boolean]",Oet="[object Date]",Iet="[object Error]",Det="[object Map]",Pet="[object Number]",Let="[object RegExp]",Met="[object Set]",Fet="[object String]",Net="[object Symbol]",Bet="[object ArrayBuffer]",jet="[object DataView]",J4=X4?X4.prototype:void 0,fT=J4?J4.valueOf:void 0;function zet(e,t,n,r,i,o,a){switch(n){case jet:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Bet:return!(e.byteLength!=t.byteLength||!o(new Z4(e),new Z4(t)));case Ret:case Oet:case Pet:return Cet(+e,+t);case Iet:return e.name==t.name&&e.message==t.message;case Let:case Fet:return e==t+"";case Det:var s=ket;case Met:var l=r&Aet;if(s||(s=Tet),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=$et,a.set(e,t);var f=Eet(s(e),s(t),r,i,o,a);return a.delete(e),f;case Net:if(fT)return fT.call(e)==fT.call(t)}return!1}var Uet=zet;function Ket(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var yD=Ket,Wet=yD,Vet=Ca;function Het(e,t,n){var r=t(e);return Vet(e)?r:Wet(r,n(e))}var $X=Het;function qet(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}var Get=qet;function Yet(){return[]}var RX=Yet,Xet=Get,Zet=RX,Jet=Object.prototype,Qet=Jet.propertyIsEnumerable,Q4=Object.getOwnPropertySymbols,ett=Q4?function(e){return e==null?[]:(e=Object(e),Xet(Q4(e),function(t){return Qet.call(e,t)}))}:Zet,bD=ett,ttt=fX,ntt=ttt(Object.keys,Object),rtt=ntt,itt=sD,ott=rtt,att=Object.prototype,stt=att.hasOwnProperty;function ltt(e){if(!itt(e))return ott(e);var t=[];for(var n in Object(e))stt.call(e,n)&&n!="constructor"&&t.push(n);return t}var utt=ltt,ctt=yX,ftt=utt,dtt=Th;function ptt(e){return dtt(e)?ctt(e):ftt(e)}var Ny=ptt,htt=$X,gtt=bD,mtt=Ny;function vtt(e){return htt(e,mtt,gtt)}var OX=vtt,e5=OX,ytt=1,btt=Object.prototype,_tt=btt.hasOwnProperty;function xtt(e,t,n,r,i,o){var a=n&ytt,s=e5(e),l=s.length,u=e5(t),f=u.length;if(l!=f&&!a)return!1;for(var d=l;d--;){var p=s[d];if(!(a?p in t:_tt.call(t,p)))return!1}var m=o.get(e),v=o.get(t);if(m&&v)return m==t&&v==e;var y=!0;o.set(e,t),o.set(t,e);for(var w=a;++d<l;){p=s[d];var b=e[p],x=t[p];if(r)var S=a?r(x,b,p,t,e,o):r(b,x,p,e,t,o);if(!(S===void 0?b===x||i(b,x,n,r,o):S)){y=!1;break}w||(w=p=="constructor")}if(y&&!w){var k=e.constructor,A=t.constructor;k!=A&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof A=="function"&&A instanceof A)&&(y=!1)}return o.delete(e),o.delete(t),y}var wtt=xtt,Stt=Ff,Ctt=ns,Ett=Stt(Ctt,"DataView"),ktt=Ett,Ttt=Ff,Att=ns,$tt=Ttt(Att,"Promise"),Rtt=$tt,Ott=Ff,Itt=ns,Dtt=Ott(Itt,"Set"),Ptt=Dtt,Ltt=Ff,Mtt=ns,Ftt=Ltt(Mtt,"WeakMap"),Ntt=Ftt,K$=ktt,W$=rD,V$=Rtt,H$=Ptt,q$=Ntt,IX=Sh,Oh=rX,t5="[object Map]",Btt="[object Object]",n5="[object Promise]",r5="[object Set]",i5="[object WeakMap]",o5="[object DataView]",jtt=Oh(K$),ztt=Oh(W$),Utt=Oh(V$),Ktt=Oh(H$),Wtt=Oh(q$),Ic=IX;(K$&&Ic(new K$(new ArrayBuffer(1)))!=o5||W$&&Ic(new W$)!=t5||V$&&Ic(V$.resolve())!=n5||H$&&Ic(new H$)!=r5||q$&&Ic(new q$)!=i5)&&(Ic=function(e){var t=IX(e),n=t==Btt?e.constructor:void 0,r=n?Oh(n):"";if(r)switch(r){case jtt:return o5;case ztt:return t5;case Utt:return n5;case Ktt:return r5;case Wtt:return i5}return t});var VS=Ic,dT=jS,Vtt=AX,Htt=Uet,qtt=wtt,a5=VS,s5=Ca,l5=KS,Gtt=fD,Ytt=1,u5="[object Arguments]",c5="[object Array]",rb="[object Object]",Xtt=Object.prototype,f5=Xtt.hasOwnProperty;function Ztt(e,t,n,r,i,o){var a=s5(e),s=s5(t),l=a?c5:a5(e),u=s?c5:a5(t);l=l==u5?rb:l,u=u==u5?rb:u;var f=l==rb,d=u==rb,p=l==u;if(p&&l5(e)){if(!l5(t))return!1;a=!0,f=!1}if(p&&!f)return o||(o=new dT),a||Gtt(e)?Vtt(e,t,n,r,i,o):Htt(e,t,l,n,r,i,o);if(!(n&Ytt)){var m=f&&f5.call(e,"__wrapped__"),v=d&&f5.call(t,"__wrapped__");if(m||v){var y=m?e.value():e,w=v?t.value():t;return o||(o=new dT),i(y,w,n,r,o)}}return p?(o||(o=new dT),qtt(e,t,n,r,i,o)):!1}var Jtt=Ztt,Qtt=Jtt,d5=jl;function DX(e,t,n,r,i){return e===t?!0:e==null||t==null||!d5(e)&&!d5(t)?e!==e&&t!==t:Qtt(e,t,n,r,DX,i)}var PX=DX,ent=jS,tnt=PX,nnt=1,rnt=2;function int(e,t,n,r){var i=n.length,o=i,a=!r;if(e==null)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){s=n[i];var l=s[0],u=e[l],f=s[1];if(a&&s[2]){if(u===void 0&&!(l in e))return!1}else{var d=new ent;if(r)var p=r(u,f,l,e,t,d);if(!(p===void 0?tnt(f,u,nnt|rnt,r,d):p))return!1}}return!0}var ont=int,ant=rs;function snt(e){return e===e&&!ant(e)}var LX=snt,lnt=LX,unt=Ny;function cnt(e){for(var t=unt(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,lnt(i)]}return t}var fnt=cnt;function dnt(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var MX=dnt,pnt=ont,hnt=fnt,gnt=MX;function mnt(e){var t=hnt(e);return t.length==1&&t[0][2]?gnt(t[0][0],t[0][1]):function(n){return n===e||pnt(n,e,t)}}var vnt=mnt,ynt=Sh,bnt=jl,_nt="[object Symbol]";function xnt(e){return typeof e=="symbol"||bnt(e)&&ynt(e)==_nt}var HS=xnt,wnt=Ca,Snt=HS,Cnt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ent=/^\w*$/;function knt(e,t){if(wnt(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Snt(e)?!0:Ent.test(e)||!Cnt.test(e)||t!=null&&e in Object(t)}var _D=knt,FX=iD,Tnt="Expected a function";function xD(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Tnt);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(xD.Cache||FX),n}xD.Cache=FX;var Ant=xD,$nt=Ant,Rnt=500;function Ont(e){var t=$nt(e,function(r){return n.size===Rnt&&n.clear(),r}),n=t.cache;return t}var Int=Ont,Dnt=Int,Pnt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Lnt=/\\(\\)?/g,Mnt=Dnt(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Pnt,function(n,r,i,o){t.push(i?o.replace(Lnt,"$1"):r||n)}),t}),Fnt=Mnt,p5=wh,Nnt=vD,Bnt=Ca,jnt=HS,znt=1/0,h5=p5?p5.prototype:void 0,g5=h5?h5.toString:void 0;function NX(e){if(typeof e=="string")return e;if(Bnt(e))return Nnt(e,NX)+"";if(jnt(e))return g5?g5.call(e):"";var t=e+"";return t=="0"&&1/e==-znt?"-0":t}var Unt=NX,Knt=Unt;function Wnt(e){return e==null?"":Knt(e)}var Vnt=Wnt,Hnt=Ca,qnt=_D,Gnt=Fnt,Ynt=Vnt;function Xnt(e,t){return Hnt(e)?e:qnt(e,t)?[e]:Gnt(Ynt(e))}var qS=Xnt,Znt=HS,Jnt=1/0;function Qnt(e){if(typeof e=="string"||Znt(e))return e;var t=e+"";return t=="0"&&1/e==-Jnt?"-0":t}var By=Qnt,ert=qS,trt=By;function nrt(e,t){t=ert(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[trt(t[n++])];return n&&n==r?e:void 0}var wD=nrt,rrt=wD;function irt(e,t,n){var r=e==null?void 0:rrt(e,t);return r===void 0?n:r}var ort=irt;function art(e,t){return e!=null&&t in Object(e)}var srt=art,lrt=qS,urt=US,crt=Ca,frt=dD,drt=lD,prt=By;function hrt(e,t,n){t=lrt(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=prt(t[r]);if(!(o=e!=null&&n(e,a)))break;e=e[a]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&drt(i)&&frt(a,i)&&(crt(e)||urt(e)))}var grt=hrt,mrt=srt,vrt=grt;function yrt(e,t){return e!=null&&vrt(e,t,mrt)}var brt=yrt,_rt=PX,xrt=ort,wrt=brt,Srt=_D,Crt=LX,Ert=MX,krt=By,Trt=1,Art=2;function $rt(e,t){return Srt(e)&&Crt(t)?Ert(krt(e),t):function(n){var r=xrt(n,e);return r===void 0&&r===t?wrt(n,e):_rt(t,r,Trt|Art)}}var Rrt=$rt;function Ort(e){return function(t){return t==null?void 0:t[e]}}var Irt=Ort,Drt=wD;function Prt(e){return function(t){return Drt(t,e)}}var Lrt=Prt,Mrt=Irt,Frt=Lrt,Nrt=_D,Brt=By;function jrt(e){return Nrt(e)?Mrt(Brt(e)):Frt(e)}var zrt=jrt,Urt=vnt,Krt=Rrt,Wrt=pD,Vrt=Ca,Hrt=zrt;function qrt(e){return typeof e=="function"?e:e==null?Wrt:typeof e=="object"?Vrt(e)?Krt(e[0],e[1]):Urt(e):Hrt(e)}var BX=qrt,Grt=aX,Yrt=Ny;function Xrt(e,t){return e&&Grt(e,t,Yrt)}var jX=Xrt,Zrt=Th;function Jrt(e,t){return function(n,r){if(n==null)return n;if(!Zrt(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=Object(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}var Qrt=Jrt,eit=jX,tit=Qrt,nit=tit(eit),rit=nit,iit=rit,oit=Th;function ait(e,t){var n=-1,r=oit(e)?Array(e.length):[];return iit(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var sit=ait,lit=vD,uit=BX,cit=sit,fit=Ca;function dit(e,t){var n=fit(e)?lit:cit;return n(e,uit(t))}var pit=dit;const hit=bi(pit),git=()=>{var i;const[e,t]=cr(dS),n=yt(es),r=hit((i=n==null?void 0:n.prompt)==null?void 0:i.inputs,(o,a)=>({label:a,value:a}));return(r==null?void 0:r.length)>0?C.jsx(Rh,{items:r,id:"variable-select",value:e||"",label:"Select a variable",onChange:o=>t(o.target.value),sx:{maxWidth:"270px"}}):null};function mit({hasTemplate:e,isSmallScreen:t,toggleDrawer:n,handleClose:r}){return C.jsxs(Ht,{direction:"row",alignItems:"center",children:[C.jsxs(Ht,{direction:"row",alignItems:"center",gap:1,children:[C.jsx(XQe,{hasTemplate:e}),C.jsx(git,{})]}),C.jsxs(Ht,{sx:{ml:"auto"},direction:"row",alignItems:"center",gap:1,children:[C.jsx(zu,{size:"large",target:"_blank",href:"https://docs.chainlit.io/concepts/prompt-playground",children:"Help"}),C.jsx(ZQe,{hasTemplate:e}),t?C.jsx(vr,{"aria-label":"open drawer",edge:"end",onClick:n,sx:{mr:"4px"},children:C.jsx(mD,{})}):null,C.jsx(vr,{edge:"end",id:"close-playground",onClick:r,children:C.jsx(lh,{sx:{height:"32px",width:"32px",color:gt[500]}})})]})]})}var m5=Array.isArray,v5=Object.keys,vit=Object.prototype.hasOwnProperty,yit=typeof Element<"u";function G$(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var n=m5(e),r=m5(t),i,o,a;if(n&&r){if(o=e.length,o!=t.length)return!1;for(i=o;i--!==0;)if(!G$(e[i],t[i]))return!1;return!0}if(n!=r)return!1;var s=e instanceof Date,l=t instanceof Date;if(s!=l)return!1;if(s&&l)return e.getTime()==t.getTime();var u=e instanceof RegExp,f=t instanceof RegExp;if(u!=f)return!1;if(u&&f)return e.toString()==t.toString();var d=v5(e);if(o=d.length,o!==v5(t).length)return!1;for(i=o;i--!==0;)if(!vit.call(t,d[i]))return!1;if(yit&&e instanceof Element&&t instanceof Element)return e===t;for(i=o;i--!==0;)if(a=d[i],!(a==="_owner"&&e.$$typeof)&&!G$(e[a],t[a]))return!1;return!0}return e!==e&&t!==t}var bit=function(t,n){try{return G$(t,n)}catch(r){if(r.message&&r.message.match(/stack|recursion/i)||r.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",r.name,r.message),!1;throw r}};const Dc=bi(bit);var _it=function(t){return xit(t)&&!wit(t)};function xit(e){return!!e&&typeof e=="object"}function wit(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Eit(e)}var Sit=typeof Symbol=="function"&&Symbol.for,Cit=Sit?Symbol.for("react.element"):60103;function Eit(e){return e.$$typeof===Cit}function kit(e){return Array.isArray(e)?[]:{}}function sx(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Mv(kit(e),e,t):e}function Tit(e,t,n){return e.concat(t).map(function(r){return sx(r,n)})}function Ait(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(i){r[i]=sx(e[i],n)}),Object.keys(t).forEach(function(i){!n.isMergeableObject(t[i])||!e[i]?r[i]=sx(t[i],n):r[i]=Mv(e[i],t[i],n)}),r}function Mv(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Tit,n.isMergeableObject=n.isMergeableObject||_it;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):Ait(e,t,n):sx(t,n)}Mv.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Mv(r,i,n)},{})};var Y$=Mv,$it=typeof global=="object"&&global&&global.Object===Object&&global;const zX=$it;var Rit=typeof self=="object"&&self&&self.Object===Object&&self,Oit=zX||Rit||Function("return this")();const qs=Oit;var Iit=qs.Symbol;const Uu=Iit;var UX=Object.prototype,Dit=UX.hasOwnProperty,Pit=UX.toString,cm=Uu?Uu.toStringTag:void 0;function Lit(e){var t=Dit.call(e,cm),n=e[cm];try{e[cm]=void 0;var r=!0}catch{}var i=Pit.call(e);return r&&(t?e[cm]=n:delete e[cm]),i}var Mit=Object.prototype,Fit=Mit.toString;function Nit(e){return Fit.call(e)}var Bit="[object Null]",jit="[object Undefined]",y5=Uu?Uu.toStringTag:void 0;function Nf(e){return e==null?e===void 0?jit:Bit:y5&&y5 in Object(e)?Lit(e):Nit(e)}function KX(e,t){return function(n){return e(t(n))}}var zit=KX(Object.getPrototypeOf,Object);const SD=zit;function Bf(e){return e!=null&&typeof e=="object"}var Uit="[object Object]",Kit=Function.prototype,Wit=Object.prototype,WX=Kit.toString,Vit=Wit.hasOwnProperty,Hit=WX.call(Object);function b5(e){if(!Bf(e)||Nf(e)!=Uit)return!1;var t=SD(e);if(t===null)return!0;var n=Vit.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&WX.call(n)==Hit}function qit(){this.__data__=[],this.size=0}function VX(e,t){return e===t||e!==e&&t!==t}function GS(e,t){for(var n=e.length;n--;)if(VX(e[n][0],t))return n;return-1}var Git=Array.prototype,Yit=Git.splice;function Xit(e){var t=this.__data__,n=GS(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Yit.call(t,n,1),--this.size,!0}function Zit(e){var t=this.__data__,n=GS(t,e);return n<0?void 0:t[n][1]}function Jit(e){return GS(this.__data__,e)>-1}function Qit(e,t){var n=this.__data__,r=GS(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function zl(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}zl.prototype.clear=qit;zl.prototype.delete=Xit;zl.prototype.get=Zit;zl.prototype.has=Jit;zl.prototype.set=Qit;function eot(){this.__data__=new zl,this.size=0}function tot(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function not(e){return this.__data__.get(e)}function rot(e){return this.__data__.has(e)}function jy(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var iot="[object AsyncFunction]",oot="[object Function]",aot="[object GeneratorFunction]",sot="[object Proxy]";function HX(e){if(!jy(e))return!1;var t=Nf(e);return t==oot||t==aot||t==iot||t==sot}var lot=qs["__core-js_shared__"];const pT=lot;var _5=function(){var e=/[^.]+$/.exec(pT&&pT.keys&&pT.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function uot(e){return!!_5&&_5 in e}var cot=Function.prototype,fot=cot.toString;function jf(e){if(e!=null){try{return fot.call(e)}catch{}try{return e+""}catch{}}return""}var dot=/[\\^$.*+?()[\]{}|]/g,pot=/^\[object .+?Constructor\]$/,hot=Function.prototype,got=Object.prototype,mot=hot.toString,vot=got.hasOwnProperty,yot=RegExp("^"+mot.call(vot).replace(dot,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function bot(e){if(!jy(e)||uot(e))return!1;var t=HX(e)?yot:pot;return t.test(jf(e))}function _ot(e,t){return e==null?void 0:e[t]}function zf(e,t){var n=_ot(e,t);return bot(n)?n:void 0}var xot=zf(qs,"Map");const Fv=xot;var wot=zf(Object,"create");const Nv=wot;function Sot(){this.__data__=Nv?Nv(null):{},this.size=0}function Cot(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Eot="__lodash_hash_undefined__",kot=Object.prototype,Tot=kot.hasOwnProperty;function Aot(e){var t=this.__data__;if(Nv){var n=t[e];return n===Eot?void 0:n}return Tot.call(t,e)?t[e]:void 0}var $ot=Object.prototype,Rot=$ot.hasOwnProperty;function Oot(e){var t=this.__data__;return Nv?t[e]!==void 0:Rot.call(t,e)}var Iot="__lodash_hash_undefined__";function Dot(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Nv&&t===void 0?Iot:t,this}function gf(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}gf.prototype.clear=Sot;gf.prototype.delete=Cot;gf.prototype.get=Aot;gf.prototype.has=Oot;gf.prototype.set=Dot;function Pot(){this.size=0,this.__data__={hash:new gf,map:new(Fv||zl),string:new gf}}function Lot(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function YS(e,t){var n=e.__data__;return Lot(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Mot(e){var t=YS(this,e).delete(e);return this.size-=t?1:0,t}function Fot(e){return YS(this,e).get(e)}function Not(e){return YS(this,e).has(e)}function Bot(e,t){var n=YS(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function rc(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}rc.prototype.clear=Pot;rc.prototype.delete=Mot;rc.prototype.get=Fot;rc.prototype.has=Not;rc.prototype.set=Bot;var jot=200;function zot(e,t){var n=this.__data__;if(n instanceof zl){var r=n.__data__;if(!Fv||r.length<jot-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new rc(r)}return n.set(e,t),this.size=n.size,this}function Ih(e){var t=this.__data__=new zl(e);this.size=t.size}Ih.prototype.clear=eot;Ih.prototype.delete=tot;Ih.prototype.get=not;Ih.prototype.has=rot;Ih.prototype.set=zot;function Uot(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var Kot=function(){try{var e=zf(Object,"defineProperty");return e({},"",{}),e}catch{}}();const x5=Kot;function qX(e,t,n){t=="__proto__"&&x5?x5(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Wot=Object.prototype,Vot=Wot.hasOwnProperty;function GX(e,t,n){var r=e[t];(!(Vot.call(e,t)&&VX(r,n))||n===void 0&&!(t in e))&&qX(e,t,n)}function XS(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;l===void 0&&(l=e[s]),i?qX(n,s,l):GX(n,s,l)}return n}function Hot(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var qot="[object Arguments]";function w5(e){return Bf(e)&&Nf(e)==qot}var YX=Object.prototype,Got=YX.hasOwnProperty,Yot=YX.propertyIsEnumerable,Xot=w5(function(){return arguments}())?w5:function(e){return Bf(e)&&Got.call(e,"callee")&&!Yot.call(e,"callee")};const Zot=Xot;var Jot=Array.isArray;const zy=Jot;function Qot(){return!1}var XX=typeof exports=="object"&&exports&&!exports.nodeType&&exports,S5=XX&&typeof module=="object"&&module&&!module.nodeType&&module,eat=S5&&S5.exports===XX,C5=eat?qs.Buffer:void 0,tat=C5?C5.isBuffer:void 0,nat=tat||Qot;const ZX=nat;var rat=9007199254740991,iat=/^(?:0|[1-9]\d*)$/;function oat(e,t){var n=typeof e;return t=t??rat,!!t&&(n=="number"||n!="symbol"&&iat.test(e))&&e>-1&&e%1==0&&e<t}var aat=9007199254740991;function JX(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=aat}var sat="[object Arguments]",lat="[object Array]",uat="[object Boolean]",cat="[object Date]",fat="[object Error]",dat="[object Function]",pat="[object Map]",hat="[object Number]",gat="[object Object]",mat="[object RegExp]",vat="[object Set]",yat="[object String]",bat="[object WeakMap]",_at="[object ArrayBuffer]",xat="[object DataView]",wat="[object Float32Array]",Sat="[object Float64Array]",Cat="[object Int8Array]",Eat="[object Int16Array]",kat="[object Int32Array]",Tat="[object Uint8Array]",Aat="[object Uint8ClampedArray]",$at="[object Uint16Array]",Rat="[object Uint32Array]",Wn={};Wn[wat]=Wn[Sat]=Wn[Cat]=Wn[Eat]=Wn[kat]=Wn[Tat]=Wn[Aat]=Wn[$at]=Wn[Rat]=!0;Wn[sat]=Wn[lat]=Wn[_at]=Wn[uat]=Wn[xat]=Wn[cat]=Wn[fat]=Wn[dat]=Wn[pat]=Wn[hat]=Wn[gat]=Wn[mat]=Wn[vat]=Wn[yat]=Wn[bat]=!1;function Oat(e){return Bf(e)&&JX(e.length)&&!!Wn[Nf(e)]}function CD(e){return function(t){return e(t)}}var QX=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ev=QX&&typeof module=="object"&&module&&!module.nodeType&&module,Iat=ev&&ev.exports===QX,hT=Iat&&zX.process,Dat=function(){try{var e=ev&&ev.require&&ev.require("util").types;return e||hT&&hT.binding&&hT.binding("util")}catch{}}();const Gp=Dat;var E5=Gp&&Gp.isTypedArray,Pat=E5?CD(E5):Oat;const Lat=Pat;var Mat=Object.prototype,Fat=Mat.hasOwnProperty;function eZ(e,t){var n=zy(e),r=!n&&Zot(e),i=!n&&!r&&ZX(e),o=!n&&!r&&!i&&Lat(e),a=n||r||i||o,s=a?Hot(e.length,String):[],l=s.length;for(var u in e)(t||Fat.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||oat(u,l)))&&s.push(u);return s}var Nat=Object.prototype;function ED(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Nat;return e===n}var Bat=KX(Object.keys,Object);const jat=Bat;var zat=Object.prototype,Uat=zat.hasOwnProperty;function Kat(e){if(!ED(e))return jat(e);var t=[];for(var n in Object(e))Uat.call(e,n)&&n!="constructor"&&t.push(n);return t}function tZ(e){return e!=null&&JX(e.length)&&!HX(e)}function kD(e){return tZ(e)?eZ(e):Kat(e)}function Wat(e,t){return e&&XS(t,kD(t),e)}function Vat(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Hat=Object.prototype,qat=Hat.hasOwnProperty;function Gat(e){if(!jy(e))return Vat(e);var t=ED(e),n=[];for(var r in e)r=="constructor"&&(t||!qat.call(e,r))||n.push(r);return n}function TD(e){return tZ(e)?eZ(e,!0):Gat(e)}function Yat(e,t){return e&&XS(t,TD(t),e)}var nZ=typeof exports=="object"&&exports&&!exports.nodeType&&exports,k5=nZ&&typeof module=="object"&&module&&!module.nodeType&&module,Xat=k5&&k5.exports===nZ,T5=Xat?qs.Buffer:void 0,A5=T5?T5.allocUnsafe:void 0;function Zat(e,t){if(t)return e.slice();var n=e.length,r=A5?A5(n):new e.constructor(n);return e.copy(r),r}function rZ(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Jat(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function iZ(){return[]}var Qat=Object.prototype,est=Qat.propertyIsEnumerable,$5=Object.getOwnPropertySymbols,tst=$5?function(e){return e==null?[]:(e=Object(e),Jat($5(e),function(t){return est.call(e,t)}))}:iZ;const AD=tst;function nst(e,t){return XS(e,AD(e),t)}function oZ(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var rst=Object.getOwnPropertySymbols,ist=rst?function(e){for(var t=[];e;)oZ(t,AD(e)),e=SD(e);return t}:iZ;const aZ=ist;function ost(e,t){return XS(e,aZ(e),t)}function sZ(e,t,n){var r=t(e);return zy(e)?r:oZ(r,n(e))}function ast(e){return sZ(e,kD,AD)}function sst(e){return sZ(e,TD,aZ)}var lst=zf(qs,"DataView");const X$=lst;var ust=zf(qs,"Promise");const Z$=ust;var cst=zf(qs,"Set");const J$=cst;var fst=zf(qs,"WeakMap");const Q$=fst;var R5="[object Map]",dst="[object Object]",O5="[object Promise]",I5="[object Set]",D5="[object WeakMap]",P5="[object DataView]",pst=jf(X$),hst=jf(Fv),gst=jf(Z$),mst=jf(J$),vst=jf(Q$),Pc=Nf;(X$&&Pc(new X$(new ArrayBuffer(1)))!=P5||Fv&&Pc(new Fv)!=R5||Z$&&Pc(Z$.resolve())!=O5||J$&&Pc(new J$)!=I5||Q$&&Pc(new Q$)!=D5)&&(Pc=function(e){var t=Nf(e),n=t==dst?e.constructor:void 0,r=n?jf(n):"";if(r)switch(r){case pst:return P5;case hst:return R5;case gst:return O5;case mst:return I5;case vst:return D5}return t});const $D=Pc;var yst=Object.prototype,bst=yst.hasOwnProperty;function _st(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&bst.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var xst=qs.Uint8Array;const L5=xst;function RD(e){var t=new e.constructor(e.byteLength);return new L5(t).set(new L5(e)),t}function wst(e,t){var n=t?RD(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Sst=/\w*$/;function Cst(e){var t=new e.constructor(e.source,Sst.exec(e));return t.lastIndex=e.lastIndex,t}var M5=Uu?Uu.prototype:void 0,F5=M5?M5.valueOf:void 0;function Est(e){return F5?Object(F5.call(e)):{}}function kst(e,t){var n=t?RD(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Tst="[object Boolean]",Ast="[object Date]",$st="[object Map]",Rst="[object Number]",Ost="[object RegExp]",Ist="[object Set]",Dst="[object String]",Pst="[object Symbol]",Lst="[object ArrayBuffer]",Mst="[object DataView]",Fst="[object Float32Array]",Nst="[object Float64Array]",Bst="[object Int8Array]",jst="[object Int16Array]",zst="[object Int32Array]",Ust="[object Uint8Array]",Kst="[object Uint8ClampedArray]",Wst="[object Uint16Array]",Vst="[object Uint32Array]";function Hst(e,t,n){var r=e.constructor;switch(t){case Lst:return RD(e);case Tst:case Ast:return new r(+e);case Mst:return wst(e,n);case Fst:case Nst:case Bst:case jst:case zst:case Ust:case Kst:case Wst:case Vst:return kst(e,n);case $st:return new r;case Rst:case Dst:return new r(e);case Ost:return Cst(e);case Ist:return new r;case Pst:return Est(e)}}var N5=Object.create,qst=function(){function e(){}return function(t){if(!jy(t))return{};if(N5)return N5(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const Gst=qst;function Yst(e){return typeof e.constructor=="function"&&!ED(e)?Gst(SD(e)):{}}var Xst="[object Map]";function Zst(e){return Bf(e)&&$D(e)==Xst}var B5=Gp&&Gp.isMap,Jst=B5?CD(B5):Zst;const Qst=Jst;var elt="[object Set]";function tlt(e){return Bf(e)&&$D(e)==elt}var j5=Gp&&Gp.isSet,nlt=j5?CD(j5):tlt;const rlt=nlt;var ilt=1,olt=2,alt=4,lZ="[object Arguments]",slt="[object Array]",llt="[object Boolean]",ult="[object Date]",clt="[object Error]",uZ="[object Function]",flt="[object GeneratorFunction]",dlt="[object Map]",plt="[object Number]",cZ="[object Object]",hlt="[object RegExp]",glt="[object Set]",mlt="[object String]",vlt="[object Symbol]",ylt="[object WeakMap]",blt="[object ArrayBuffer]",_lt="[object DataView]",xlt="[object Float32Array]",wlt="[object Float64Array]",Slt="[object Int8Array]",Clt="[object Int16Array]",Elt="[object Int32Array]",klt="[object Uint8Array]",Tlt="[object Uint8ClampedArray]",Alt="[object Uint16Array]",$lt="[object Uint32Array]",Pn={};Pn[lZ]=Pn[slt]=Pn[blt]=Pn[_lt]=Pn[llt]=Pn[ult]=Pn[xlt]=Pn[wlt]=Pn[Slt]=Pn[Clt]=Pn[Elt]=Pn[dlt]=Pn[plt]=Pn[cZ]=Pn[hlt]=Pn[glt]=Pn[mlt]=Pn[vlt]=Pn[klt]=Pn[Tlt]=Pn[Alt]=Pn[$lt]=!0;Pn[clt]=Pn[uZ]=Pn[ylt]=!1;function Bb(e,t,n,r,i,o){var a,s=t&ilt,l=t&olt,u=t&alt;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!jy(e))return e;var f=zy(e);if(f){if(a=_st(e),!s)return rZ(e,a)}else{var d=$D(e),p=d==uZ||d==flt;if(ZX(e))return Zat(e,s);if(d==cZ||d==lZ||p&&!i){if(a=l||p?{}:Yst(e),!s)return l?ost(e,Yat(a,e)):nst(e,Wat(a,e))}else{if(!Pn[d])return i?e:{};a=Hst(e,d,s)}}o||(o=new Ih);var m=o.get(e);if(m)return m;o.set(e,a),rlt(e)?e.forEach(function(w){a.add(Bb(w,t,n,w,e,o))}):Qst(e)&&e.forEach(function(w,b){a.set(b,Bb(w,t,n,b,e,o))});var v=u?l?sst:ast:l?TD:kD,y=f?void 0:v(e);return Uot(y||e,function(w,b){y&&(b=w,w=e[b]),GX(a,b,Bb(w,t,n,b,e,o))}),a}var Rlt=4;function z5(e){return Bb(e,Rlt)}function fZ(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var Olt="[object Symbol]";function OD(e){return typeof e=="symbol"||Bf(e)&&Nf(e)==Olt}var Ilt="Expected a function";function ID(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ilt);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(ID.Cache||rc),n}ID.Cache=rc;var Dlt=500;function Plt(e){var t=ID(e,function(r){return n.size===Dlt&&n.clear(),r}),n=t.cache;return t}var Llt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mlt=/\\(\\)?/g,Flt=Plt(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Llt,function(n,r,i,o){t.push(i?o.replace(Mlt,"$1"):r||n)}),t});const Nlt=Flt;var Blt=1/0;function jlt(e){if(typeof e=="string"||OD(e))return e;var t=e+"";return t=="0"&&1/e==-Blt?"-0":t}var zlt=1/0,U5=Uu?Uu.prototype:void 0,K5=U5?U5.toString:void 0;function dZ(e){if(typeof e=="string")return e;if(zy(e))return fZ(e,dZ)+"";if(OD(e))return K5?K5.call(e):"";var t=e+"";return t=="0"&&1/e==-zlt?"-0":t}function Ult(e){return e==null?"":dZ(e)}function pZ(e){return zy(e)?fZ(e,jlt):OD(e)?[e]:rZ(Nlt(Ult(e)))}var Klt=!0;function Wlt(e,t){if(!Klt){if(e)return;var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}function Jr(){return Jr=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},Jr.apply(this,arguments)}function hZ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Fa=function(t){return typeof t=="function"},ZS=function(t){return t!==null&&typeof t=="object"},Vlt=function(t){return String(Math.floor(Number(t)))===t},gT=function(t){return Object.prototype.toString.call(t)==="[object String]"},mT=function(t){return ZS(t)&&Fa(t.then)};function Xo(e,t,n,r){r===void 0&&(r=0);for(var i=pZ(t);e&&r<i.length;)e=e[i[r++]];return e===void 0?n:e}function Zc(e,t,n){for(var r=z5(e),i=r,o=0,a=pZ(t);o<a.length-1;o++){var s=a[o],l=Xo(e,a.slice(0,o+1));if(l&&(ZS(l)||Array.isArray(l)))i=i[s]=z5(l);else{var u=a[o+1];i=i[s]=Vlt(u)&&Number(u)>=0?[]:{}}}return(o===0?e:i)[a[o]]===n?e:(n===void 0?delete i[a[o]]:i[a[o]]=n,o===0&&n===void 0&&delete r[a[o]],r)}function gZ(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var i=0,o=Object.keys(e);i<o.length;i++){var a=o[i],s=e[a];ZS(s)?n.get(s)||(n.set(s,!0),r[a]=Array.isArray(s)?[]:{},gZ(s,t,n,r[a])):r[a]=t}return r}var JS=T.createContext(void 0);JS.displayName="FormikContext";JS.Provider;JS.Consumer;function Hlt(){var e=T.useContext(JS);return e||Wlt(!1),e}function qlt(e,t){switch(t.type){case"SET_VALUES":return Jr({},e,{values:t.payload});case"SET_TOUCHED":return Jr({},e,{touched:t.payload});case"SET_ERRORS":return Dc(e.errors,t.payload)?e:Jr({},e,{errors:t.payload});case"SET_STATUS":return Jr({},e,{status:t.payload});case"SET_ISSUBMITTING":return Jr({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Jr({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Jr({},e,{values:Zc(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Jr({},e,{touched:Zc(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Jr({},e,{errors:Zc(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Jr({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Jr({},e,{touched:gZ(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return Jr({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return Jr({},e,{isSubmitting:!1});default:return e}}var kc={},ib={};function DD(e){var t=e.validateOnChange,n=t===void 0?!0:t,r=e.validateOnBlur,i=r===void 0?!0:r,o=e.validateOnMount,a=o===void 0?!1:o,s=e.isInitialValid,l=e.enableReinitialize,u=l===void 0?!1:l,f=e.onSubmit,d=hZ(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),p=Jr({validateOnChange:n,validateOnBlur:i,validateOnMount:a,onSubmit:f},d),m=T.useRef(p.initialValues),v=T.useRef(p.initialErrors||kc),y=T.useRef(p.initialTouched||ib),w=T.useRef(p.initialStatus),b=T.useRef(!1),x=T.useRef({});T.useEffect(function(){return b.current=!0,function(){b.current=!1}},[]);var S=T.useReducer(qlt,{values:p.initialValues,errors:p.initialErrors||kc,touched:p.initialTouched||ib,status:p.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),k=S[0],A=S[1],$=T.useCallback(function(ge,$e){return new Promise(function(Te,Pe){var U=p.validate(ge,$e);U==null?Te(kc):mT(U)?U.then(function(H){Te(H||kc)},function(H){Pe(H)}):Te(U)})},[p.validate]),I=T.useCallback(function(ge,$e){var Te=p.validationSchema,Pe=Fa(Te)?Te($e):Te,U=$e&&Pe.validateAt?Pe.validateAt($e,ge):Ylt(ge,Pe);return new Promise(function(H,de){U.then(function(){H(kc)},function(Y){Y.name==="ValidationError"?H(Glt(Y)):de(Y)})})},[p.validationSchema]),z=T.useCallback(function(ge,$e){return new Promise(function(Te){return Te(x.current[ge].validate($e))})},[]),K=T.useCallback(function(ge){var $e=Object.keys(x.current).filter(function(Pe){return Fa(x.current[Pe].validate)}),Te=$e.length>0?$e.map(function(Pe){return z(Pe,Xo(ge,Pe))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(Te).then(function(Pe){return Pe.reduce(function(U,H,de){return H==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||H&&(U=Zc(U,$e[de],H)),U},{})})},[z]),D=T.useCallback(function(ge){return Promise.all([K(ge),p.validationSchema?I(ge):{},p.validate?$(ge):{}]).then(function($e){var Te=$e[0],Pe=$e[1],U=$e[2],H=Y$.all([Te,Pe,U],{arrayMerge:Xlt});return H})},[p.validate,p.validationSchema,K,$,I]),W=Go(function(ge){return ge===void 0&&(ge=k.values),A({type:"SET_ISVALIDATING",payload:!0}),D(ge).then(function($e){return b.current&&(A({type:"SET_ISVALIDATING",payload:!1}),A({type:"SET_ERRORS",payload:$e})),$e})});T.useEffect(function(){a&&b.current===!0&&Dc(m.current,p.initialValues)&&W(m.current)},[a,W]);var ie=T.useCallback(function(ge){var $e=ge&&ge.values?ge.values:m.current,Te=ge&&ge.errors?ge.errors:v.current?v.current:p.initialErrors||{},Pe=ge&&ge.touched?ge.touched:y.current?y.current:p.initialTouched||{},U=ge&&ge.status?ge.status:w.current?w.current:p.initialStatus;m.current=$e,v.current=Te,y.current=Pe,w.current=U;var H=function(){A({type:"RESET_FORM",payload:{isSubmitting:!!ge&&!!ge.isSubmitting,errors:Te,touched:Pe,status:U,values:$e,isValidating:!!ge&&!!ge.isValidating,submitCount:ge&&ge.submitCount&&typeof ge.submitCount=="number"?ge.submitCount:0}})};if(p.onReset){var de=p.onReset(k.values,Me);mT(de)?de.then(H):H()}else H()},[p.initialErrors,p.initialStatus,p.initialTouched]);T.useEffect(function(){b.current===!0&&!Dc(m.current,p.initialValues)&&(u&&(m.current=p.initialValues,ie()),a&&W(m.current))},[u,p.initialValues,ie,a,W]),T.useEffect(function(){u&&b.current===!0&&!Dc(v.current,p.initialErrors)&&(v.current=p.initialErrors||kc,A({type:"SET_ERRORS",payload:p.initialErrors||kc}))},[u,p.initialErrors]),T.useEffect(function(){u&&b.current===!0&&!Dc(y.current,p.initialTouched)&&(y.current=p.initialTouched||ib,A({type:"SET_TOUCHED",payload:p.initialTouched||ib}))},[u,p.initialTouched]),T.useEffect(function(){u&&b.current===!0&&!Dc(w.current,p.initialStatus)&&(w.current=p.initialStatus,A({type:"SET_STATUS",payload:p.initialStatus}))},[u,p.initialStatus,p.initialTouched]);var ae=Go(function(ge){if(x.current[ge]&&Fa(x.current[ge].validate)){var $e=Xo(k.values,ge),Te=x.current[ge].validate($e);return mT(Te)?(A({type:"SET_ISVALIDATING",payload:!0}),Te.then(function(Pe){return Pe}).then(function(Pe){A({type:"SET_FIELD_ERROR",payload:{field:ge,value:Pe}}),A({type:"SET_ISVALIDATING",payload:!1})})):(A({type:"SET_FIELD_ERROR",payload:{field:ge,value:Te}}),Promise.resolve(Te))}else if(p.validationSchema)return A({type:"SET_ISVALIDATING",payload:!0}),I(k.values,ge).then(function(Pe){return Pe}).then(function(Pe){A({type:"SET_FIELD_ERROR",payload:{field:ge,value:Pe[ge]}}),A({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),q=T.useCallback(function(ge,$e){var Te=$e.validate;x.current[ge]={validate:Te}},[]),G=T.useCallback(function(ge){delete x.current[ge]},[]),J=Go(function(ge,$e){A({type:"SET_TOUCHED",payload:ge});var Te=$e===void 0?i:$e;return Te?W(k.values):Promise.resolve()}),le=T.useCallback(function(ge){A({type:"SET_ERRORS",payload:ge})},[]),Q=Go(function(ge,$e){var Te=Fa(ge)?ge(k.values):ge;A({type:"SET_VALUES",payload:Te});var Pe=$e===void 0?n:$e;return Pe?W(Te):Promise.resolve()}),te=T.useCallback(function(ge,$e){A({type:"SET_FIELD_ERROR",payload:{field:ge,value:$e}})},[]),P=Go(function(ge,$e,Te){A({type:"SET_FIELD_VALUE",payload:{field:ge,value:$e}});var Pe=Te===void 0?n:Te;return Pe?W(Zc(k.values,ge,$e)):Promise.resolve()}),me=T.useCallback(function(ge,$e){var Te=$e,Pe=ge,U;if(!gT(ge)){ge.persist&&ge.persist();var H=ge.target?ge.target:ge.currentTarget,de=H.type,Y=H.name,Z=H.id,re=H.value,xe=H.checked,Se=H.outerHTML,_e=H.options,et=H.multiple;Te=$e||Y||Z,Pe=/number|range/.test(de)?(U=parseFloat(re),isNaN(U)?"":U):/checkbox/.test(de)?Jlt(Xo(k.values,Te),xe,re):_e&&et?Zlt(_e):re}Te&&P(Te,Pe)},[P,k.values]),j=Go(function(ge){if(gT(ge))return function($e){return me($e,ge)};me(ge)}),L=Go(function(ge,$e,Te){$e===void 0&&($e=!0),A({type:"SET_FIELD_TOUCHED",payload:{field:ge,value:$e}});var Pe=Te===void 0?i:Te;return Pe?W(k.values):Promise.resolve()}),oe=T.useCallback(function(ge,$e){ge.persist&&ge.persist();var Te=ge.target,Pe=Te.name,U=Te.id,H=Te.outerHTML,de=$e||Pe||U;L(de,!0)},[L]),ue=Go(function(ge){if(gT(ge))return function($e){return oe($e,ge)};oe(ge)}),se=T.useCallback(function(ge){Fa(ge)?A({type:"SET_FORMIK_STATE",payload:ge}):A({type:"SET_FORMIK_STATE",payload:function(){return ge}})},[]),Ee=T.useCallback(function(ge){A({type:"SET_STATUS",payload:ge})},[]),Re=T.useCallback(function(ge){A({type:"SET_ISSUBMITTING",payload:ge})},[]),ke=Go(function(){return A({type:"SUBMIT_ATTEMPT"}),W().then(function(ge){var $e=ge instanceof Error,Te=!$e&&Object.keys(ge).length===0;if(Te){var Pe;try{if(Pe=Be(),Pe===void 0)return}catch(U){throw U}return Promise.resolve(Pe).then(function(U){return b.current&&A({type:"SUBMIT_SUCCESS"}),U}).catch(function(U){if(b.current)throw A({type:"SUBMIT_FAILURE"}),U})}else if(b.current&&(A({type:"SUBMIT_FAILURE"}),$e))throw ge})}),De=Go(function(ge){ge&&ge.preventDefault&&Fa(ge.preventDefault)&&ge.preventDefault(),ge&&ge.stopPropagation&&Fa(ge.stopPropagation)&&ge.stopPropagation(),ke().catch(function($e){console.warn("Warning: An unhandled error was caught from submitForm()",$e)})}),Me={resetForm:ie,validateForm:W,validateField:ae,setErrors:le,setFieldError:te,setFieldTouched:L,setFieldValue:P,setStatus:Ee,setSubmitting:Re,setTouched:J,setValues:Q,setFormikState:se,submitForm:ke},Be=Go(function(){return f(k.values,Me)}),Ue=Go(function(ge){ge&&ge.preventDefault&&Fa(ge.preventDefault)&&ge.preventDefault(),ge&&ge.stopPropagation&&Fa(ge.stopPropagation)&&ge.stopPropagation(),ie()}),Ke=T.useCallback(function(ge){return{value:Xo(k.values,ge),error:Xo(k.errors,ge),touched:!!Xo(k.touched,ge),initialValue:Xo(m.current,ge),initialTouched:!!Xo(y.current,ge),initialError:Xo(v.current,ge)}},[k.errors,k.touched,k.values]),He=T.useCallback(function(ge){return{setValue:function(Te,Pe){return P(ge,Te,Pe)},setTouched:function(Te,Pe){return L(ge,Te,Pe)},setError:function(Te){return te(ge,Te)}}},[P,L,te]),lt=T.useCallback(function(ge){var $e=ZS(ge),Te=$e?ge.name:ge,Pe=Xo(k.values,Te),U={name:Te,value:Pe,onChange:j,onBlur:ue};if($e){var H=ge.type,de=ge.value,Y=ge.as,Z=ge.multiple;H==="checkbox"?de===void 0?U.checked=!!Pe:(U.checked=!!(Array.isArray(Pe)&&~Pe.indexOf(de)),U.value=de):H==="radio"?(U.checked=Pe===de,U.value=de):Y==="select"&&Z&&(U.value=U.value||[],U.multiple=!0)}return U},[ue,j,k.values]),Xe=T.useMemo(function(){return!Dc(m.current,k.values)},[m.current,k.values]),nt=T.useMemo(function(){return typeof s<"u"?Xe?k.errors&&Object.keys(k.errors).length===0:s!==!1&&Fa(s)?s(p):s:k.errors&&Object.keys(k.errors).length===0},[s,Xe,k.errors,p]),mt=Jr({},k,{initialValues:m.current,initialErrors:v.current,initialTouched:y.current,initialStatus:w.current,handleBlur:ue,handleChange:j,handleReset:Ue,handleSubmit:De,resetForm:ie,setErrors:le,setFormikState:se,setFieldTouched:L,setFieldValue:P,setFieldError:te,setStatus:Ee,setSubmitting:Re,setTouched:J,setValues:Q,submitForm:ke,validateForm:W,validateField:ae,isValid:nt,dirty:Xe,unregisterField:G,registerField:q,getFieldProps:lt,getFieldMeta:Ke,getFieldHelpers:He,validateOnBlur:i,validateOnChange:n,validateOnMount:a});return mt}function Glt(e){var t={};if(e.inner){if(e.inner.length===0)return Zc(t,e.path,e.message);for(var i=e.inner,n=Array.isArray(i),r=0,i=n?i:i[Symbol.iterator]();;){var o;if(n){if(r>=i.length)break;o=i[r++]}else{if(r=i.next(),r.done)break;o=r.value}var a=o;Xo(t,a.path)||(t=Zc(t,a.path,a.message))}}return t}function Ylt(e,t,n,r){n===void 0&&(n=!1),r===void 0&&(r={});var i=eR(e);return t[n?"validateSync":"validate"](i,{abortEarly:!1,context:r})}function eR(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(i){return Array.isArray(i)===!0||b5(i)?eR(i):i!==""?i:void 0}):b5(e[r])?t[r]=eR(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function Xlt(e,t,n){var r=e.slice();return t.forEach(function(o,a){if(typeof r[a]>"u"){var s=n.clone!==!1,l=s&&n.isMergeableObject(o);r[a]=l?Y$(Array.isArray(o)?[]:{},o,n):o}else n.isMergeableObject(o)?r[a]=Y$(e[a],o,n):e.indexOf(o)===-1&&r.push(o)}),r}function Zlt(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function Jlt(e,t,n){if(typeof e=="boolean")return!!t;var r=[],i=!1,o=-1;if(Array.isArray(e))r=e,o=e.indexOf(n),i=o>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!i?r.concat(n):i?r.slice(0,o).concat(r.slice(o+1)):r}var Qlt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?T.useLayoutEffect:T.useEffect;function Go(e){var t=T.useRef(e);return Qlt(function(){t.current=e}),T.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current.apply(void 0,r)},[])}var eut=T.forwardRef(function(e,t){var n=e.action,r=hZ(e,["action"]),i=n??"#",o=Hlt(),a=o.handleReset,s=o.handleSubmit;return T.createElement("form",Object.assign({onSubmit:s,ref:t,onReset:a,action:i},r))});eut.displayName="Form";function tut(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var nut=tut,rut=Ah,iut=Ny;function out(e,t){return e&&rut(t,iut(t),e)}var aut=out,sut=Ah,lut=Fy;function uut(e,t){return e&&sut(t,lut(t),e)}var cut=uut,fut=Ah,dut=bD;function put(e,t){return fut(e,dut(e),t)}var hut=put,gut=yD,mut=aD,vut=bD,yut=RX,but=Object.getOwnPropertySymbols,_ut=but?function(e){for(var t=[];e;)gut(t,vut(e)),e=mut(e);return t}:yut,mZ=_ut,xut=Ah,wut=mZ;function Sut(e,t){return xut(e,wut(e),t)}var Cut=Sut,Eut=$X,kut=mZ,Tut=Fy;function Aut(e){return Eut(e,Tut,kut)}var vZ=Aut,$ut=Object.prototype,Rut=$ut.hasOwnProperty;function Out(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Rut.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Iut=Out,Dut=oD;function Put(e,t){var n=t?Dut(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Lut=Put,Mut=/\w*$/;function Fut(e){var t=new e.constructor(e.source,Mut.exec(e));return t.lastIndex=e.lastIndex,t}var Nut=Fut,W5=wh,V5=W5?W5.prototype:void 0,H5=V5?V5.valueOf:void 0;function But(e){return H5?Object(H5.call(e)):{}}var jut=But,zut=oD,Uut=Lut,Kut=Nut,Wut=jut,Vut=uX,Hut="[object Boolean]",qut="[object Date]",Gut="[object Map]",Yut="[object Number]",Xut="[object RegExp]",Zut="[object Set]",Jut="[object String]",Qut="[object Symbol]",ect="[object ArrayBuffer]",tct="[object DataView]",nct="[object Float32Array]",rct="[object Float64Array]",ict="[object Int8Array]",oct="[object Int16Array]",act="[object Int32Array]",sct="[object Uint8Array]",lct="[object Uint8ClampedArray]",uct="[object Uint16Array]",cct="[object Uint32Array]";function fct(e,t,n){var r=e.constructor;switch(t){case ect:return zut(e);case Hut:case qut:return new r(+e);case tct:return Uut(e,n);case nct:case rct:case ict:case oct:case act:case sct:case lct:case uct:case cct:return Vut(e,n);case Gut:return new r;case Yut:case Jut:return new r(e);case Xut:return Kut(e);case Zut:return new r;case Qut:return Wut(e)}}var dct=fct,pct=VS,hct=jl,gct="[object Map]";function mct(e){return hct(e)&&pct(e)==gct}var vct=mct,yct=vct,bct=uD,q5=cD,G5=q5&&q5.isMap,_ct=G5?bct(G5):yct,xct=_ct,wct=VS,Sct=jl,Cct="[object Set]";function Ect(e){return Sct(e)&&wct(e)==Cct}var kct=Ect,Tct=kct,Act=uD,Y5=cD,X5=Y5&&Y5.isSet,$ct=X5?Act(X5):Tct,Rct=$ct,Oct=jS,Ict=nut,Dct=vX,Pct=aut,Lct=cut,Mct=sX,Fct=cX,Nct=hut,Bct=Cut,jct=OX,zct=vZ,Uct=VS,Kct=Iut,Wct=dct,Vct=dX,Hct=Ca,qct=KS,Gct=xct,Yct=rs,Xct=Rct,Zct=Ny,Jct=Fy,Qct=1,eft=2,tft=4,yZ="[object Arguments]",nft="[object Array]",rft="[object Boolean]",ift="[object Date]",oft="[object Error]",bZ="[object Function]",aft="[object GeneratorFunction]",sft="[object Map]",lft="[object Number]",_Z="[object Object]",uft="[object RegExp]",cft="[object Set]",fft="[object String]",dft="[object Symbol]",pft="[object WeakMap]",hft="[object ArrayBuffer]",gft="[object DataView]",mft="[object Float32Array]",vft="[object Float64Array]",yft="[object Int8Array]",bft="[object Int16Array]",_ft="[object Int32Array]",xft="[object Uint8Array]",wft="[object Uint8ClampedArray]",Sft="[object Uint16Array]",Cft="[object Uint32Array]",Ln={};Ln[yZ]=Ln[nft]=Ln[hft]=Ln[gft]=Ln[rft]=Ln[ift]=Ln[mft]=Ln[vft]=Ln[yft]=Ln[bft]=Ln[_ft]=Ln[sft]=Ln[lft]=Ln[_Z]=Ln[uft]=Ln[cft]=Ln[fft]=Ln[dft]=Ln[xft]=Ln[wft]=Ln[Sft]=Ln[Cft]=!0;Ln[oft]=Ln[bZ]=Ln[pft]=!1;function jb(e,t,n,r,i,o){var a,s=t&Qct,l=t&eft,u=t&tft;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!Yct(e))return e;var f=Hct(e);if(f){if(a=Kct(e),!s)return Fct(e,a)}else{var d=Uct(e),p=d==bZ||d==aft;if(qct(e))return Mct(e,s);if(d==_Z||d==yZ||p&&!i){if(a=l||p?{}:Vct(e),!s)return l?Bct(e,Lct(a,e)):Nct(e,Pct(a,e))}else{if(!Ln[d])return i?e:{};a=Wct(e,d,s)}}o||(o=new Oct);var m=o.get(e);if(m)return m;o.set(e,a),Xct(e)?e.forEach(function(w){a.add(jb(w,t,n,w,e,o))}):Gct(e)&&e.forEach(function(w,b){a.set(b,jb(w,t,n,b,e,o))});var v=u?l?zct:jct:l?Jct:Zct,y=f?void 0:v(e);return Ict(y||e,function(w,b){y&&(b=w,w=e[b]),Dct(a,b,jb(w,t,n,b,e,o))}),a}var xZ=jb,Eft=xZ,kft=1,Tft=4;function Aft(e){return Eft(e,kft|Tft)}var $ft=Aft;const wZ=bi($ft);function Uf(e){this._maxSize=e,this.clear()}Uf.prototype.clear=function(){this._size=0,this._values=Object.create(null)};Uf.prototype.get=function(e){return this._values[e]};Uf.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var Rft=/[^.^\]^[]+|(?=\[\]|\.\.)/g,SZ=/^\d+$/,Oft=/^\d/,Ift=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,Dft=/^\s*(['"]?)(.*?)(\1)\s*$/,PD=512,Z5=new Uf(PD),J5=new Uf(PD),Q5=new Uf(PD),Jc={Cache:Uf,split:tR,normalizePath:vT,setter:function(e){var t=vT(e);return J5.get(e)||J5.set(e,function(r,i){for(var o=0,a=t.length,s=r;o<a-1;){var l=t[o];if(l==="__proto__"||l==="constructor"||l==="prototype")return r;s=s[t[o++]]}s[t[o]]=i})},getter:function(e,t){var n=vT(e);return Q5.get(e)||Q5.set(e,function(i){for(var o=0,a=n.length;o<a;)if(i!=null||!t)i=i[n[o++]];else return;return i})},join:function(e){return e.reduce(function(t,n){return t+(LD(n)||SZ.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){Pft(Array.isArray(e)?e:tR(e),t,n)}};function vT(e){return Z5.get(e)||Z5.set(e,tR(e).map(function(t){return t.replace(Dft,"$2")}))}function tR(e){return e.match(Rft)||[""]}function Pft(e,t,n){var r=e.length,i,o,a,s;for(o=0;o<r;o++)i=e[o],i&&(Fft(i)&&(i='"'+i+'"'),s=LD(i),a=!s&&/^\d+$/.test(i),t.call(n,i,s,a,o,e))}function LD(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function Lft(e){return e.match(Oft)&&!e.match(SZ)}function Mft(e){return Ift.test(e)}function Fft(e){return!LD(e)&&(Lft(e)||Mft(e))}const Nft=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?: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])+(?:['’](?: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])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?: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,QS=e=>e.match(Nft)||[],eC=e=>e[0].toUpperCase()+e.slice(1),MD=(e,t)=>QS(e).join(t).toLowerCase(),CZ=e=>QS(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),Bft=e=>eC(CZ(e)),jft=e=>MD(e,"_"),zft=e=>MD(e,"-"),Uft=e=>eC(MD(e," ")),Kft=e=>QS(e).map(eC).join(" ");var yT={words:QS,upperFirst:eC,camelCase:CZ,pascalCase:Bft,snakeCase:jft,kebabCase:zft,sentenceCase:Uft,titleCase:Kft},FD={exports:{}};FD.exports=function(e){return EZ(Wft(e),e)};FD.exports.array=EZ;function EZ(e,t){var n=e.length,r=new Array(n),i={},o=n,a=Vft(t),s=Hft(e);for(t.forEach(function(u){if(!s.has(u[0])||!s.has(u[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});o--;)i[o]||l(e[o],o,new Set);return r;function l(u,f,d){if(d.has(u)){var p;try{p=", node was:"+JSON.stringify(u)}catch{p=""}throw new Error("Cyclic dependency"+p)}if(!s.has(u))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(u));if(!i[f]){i[f]=!0;var m=a.get(u)||new Set;if(m=Array.from(m),f=m.length){d.add(u);do{var v=m[--f];l(v,s.get(v),d)}while(f);d.delete(u)}r[--n]=u}}}function Wft(e){for(var t=new Set,n=0,r=e.length;n<r;n++){var i=e[n];t.add(i[0]),t.add(i[1])}return Array.from(t)}function Vft(e){for(var t=new Map,n=0,r=e.length;n<r;n++){var i=e[n];t.has(i[0])||t.set(i[0],new Set),t.has(i[1])||t.set(i[1],new Set),t.get(i[0]).add(i[1])}return t}function Hft(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}var qft=FD.exports;const Gft=bi(qft),Yft=Object.prototype.toString,Xft=Error.prototype.toString,Zft=RegExp.prototype.toString,Jft=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",Qft=/^Symbol\((.*)\)(.*)$/;function edt(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function e6(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return edt(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return Jft.call(e).replace(Qft,"Symbol($1)");const r=Yft.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+Xft.call(e)+"]":r==="RegExp"?Zft.call(e):null}function Qc(e,t){let n=e6(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let o=e6(this[r],t);return o!==null?o:i},2)}function kZ(e){return e==null?[]:[].concat(e)}let tdt=/\$\{\s*(\w+)\s*\}/g;class xo extends Error{static formatError(t,n){const r=n.label||n.path||"this";return r!==n.path&&(n=Object.assign({},n,{path:r})),typeof t=="string"?t.replace(tdt,(i,o)=>Qc(n[o])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,i){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=n,this.path=r,this.type=i,this.errors=[],this.inner=[],kZ(t).forEach(o=>{xo.isError(o)?(this.errors.push(...o.errors),this.inner=this.inner.concat(o.inner.length?o.inner:o)):this.errors.push(o)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,xo)}}let ml={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:({path:e,type:t,value:n,originalValue:r})=>{const i=r!=null&&r!==n?` (cast from the value \`${Qc(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Qc(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${Qc(n,!0)}\``+i}},Na={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",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},du={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"},nR={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},ndt={isValue:"${path} field must be ${value}"},rR={noUnknown:"${path} field has unspecified keys: ${unknown}"},zb={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"};Object.assign(Object.create(null),{mixed:ml,string:Na,number:du,date:nR,object:rR,array:zb,boolean:ndt});const tC=e=>e&&e.__isYupSchema__;class lx{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:i,otherwise:o}=n,a=typeof r=="function"?r:(...s)=>s.every(l=>l===r);return new lx(t,(s,l)=>{var u;let f=a(...s)?i:o;return(u=f==null?void 0:f(l))!=null?u:l})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(o=>o.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),i=this.fn(r,t,n);if(i===void 0||i===t)return t;if(!tC(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const ob={context:"$",value:"."};class Kf{constructor(t,n={}){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,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===ob.context,this.isValue=this.key[0]===ob.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?ob.context:this.isValue?ob.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&Jc.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let i=this.isContext?r:this.isValue?t:n;return this.getter&&(i=this.getter(i||{})),this.map&&(i=this.map(i)),i}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}Kf.prototype.__isYupRef=!0;const $s=e=>e==null;function Rd(e){function t({value:n,path:r="",options:i,originalValue:o,schema:a},s,l){const{name:u,test:f,params:d,message:p,skipAbsent:m}=e;let{parent:v,context:y,abortEarly:w=a.spec.abortEarly}=i;function b(D){return Kf.isRef(D)?D.getValue(n,v,y):D}function x(D={}){const W=Object.assign({value:n,originalValue:o,label:a.spec.label,path:D.path||r,spec:a.spec},d,D.params);for(const ae of Object.keys(W))W[ae]=b(W[ae]);const ie=new xo(xo.formatError(D.message||p,W),n,W.path,D.type||u);return ie.params=W,ie}const S=w?s:l;let k={path:r,parent:v,type:u,from:i.from,createError:x,resolve:b,options:i,originalValue:o,schema:a};const A=D=>{xo.isError(D)?S(D):D?l(null):S(x())},$=D=>{xo.isError(D)?S(D):s(D)},I=m&&$s(n);if(!i.sync){try{Promise.resolve(I?!0:f.call(k,n,k)).then(A,$)}catch(D){$(D)}return}let z;try{var K;if(z=I?!0:f.call(k,n,k),typeof((K=z)==null?void 0:K.then)=="function")throw new Error(`Validation test of type: "${k.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(D){$(D);return}A(z)}return t.OPTIONS=e,t}function rdt(e,t,n,r=n){let i,o,a;return t?(Jc.forEach(t,(s,l,u)=>{let f=l?s.slice(1,s.length-1):s;e=e.resolve({context:r,parent:i,value:n});let d=e.type==="tuple",p=u?parseInt(f,10):0;if(e.innerType||d){if(d&&!u)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&p>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${s}, in the path: ${t}. because there is no value at that index. `);i=n,n=n&&n[p],e=d?e.spec.types[p]:e.innerType}if(!u){if(!e.fields||!e.fields[f])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);i=n,n=n&&n[f],e=e.fields[f]}o=f,a=l?"["+s+"]":"."+s}),{schema:e,parent:i,parentPath:o}):{parent:i,parentPath:t,schema:e}}class ux extends Set{describe(){const t=[];for(const n of this.values())t.push(Kf.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new ux(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function tp(e,t=new Map){if(tC(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=tp(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,i]of e.entries())n.set(r,tp(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(tp(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=tp(i,t)}else throw Error(`Unable to clone ${e}`);return n}class ma{constructor(t){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 ux,this._blacklist=new ux,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(ml.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=tp(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const i=Object.assign({},n.spec,r.spec);return r.spec=i,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(o=>{t.tests.forEach(a=>{o.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((i,o)=>o.resolve(i,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,i;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(i=t.recursive)!=null?i:this.spec.recursive})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),i=n.assert==="ignore-optionality",o=r._cast(t,n);if(n.assert!==!1&&!r.isType(o)){if(i&&$s(o))return o;let a=Qc(t),s=Qc(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
|
|
478
|
-
|
|
479
|
-
attempted value: ${a}
|
|
480
|
-
`+(s!==a?`result of cast: ${s}`:""))}return o}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((i,o)=>o.call(this,i,t,this),t);return r===void 0&&(r=this.getDefault()),r}_validate(t,n={},r,i){let{path:o,originalValue:a=t,strict:s=this.spec.strict}=n,l=t;s||(l=this._cast(l,Object.assign({assert:!1},n)));let u=[];for(let f of Object.values(this.internalTests))f&&u.push(f);this.runTests({path:o,value:l,originalValue:a,options:n,tests:u},r,f=>{if(f.length)return i(f,l);this.runTests({path:o,value:l,originalValue:a,options:n,tests:this.tests},r,i)})}runTests(t,n,r){let i=!1,{tests:o,value:a,originalValue:s,path:l,options:u}=t,f=y=>{i||(i=!0,n(y,a))},d=y=>{i||(i=!0,r(y,a))},p=o.length,m=[];if(!p)return d([]);let v={value:a,originalValue:s,path:l,options:u,schema:this};for(let y=0;y<o.length;y++){const w=o[y];w(v,f,function(x){x&&(m=m.concat(x)),--p<=0&&d(m)})}}asNestedTest({key:t,index:n,parent:r,parentPath:i,originalParent:o,options:a}){const s=t??n;if(s==null)throw TypeError("Must include `key` or `index` for nested validations");const l=typeof s=="number";let u=r[s];const f=Object.assign({},a,{strict:!0,parent:r,value:u,originalValue:o[s],key:void 0,[l?"index":"key"]:s,path:l||s.includes(".")?`${i||""}[${u?s:`"${s}"`}]`:(i?`${i}.`:"")+t});return(d,p,m)=>this.resolve(f)._validate(u,f,p,m)}validate(t,n){let r=this.resolve(Object.assign({},n,{value:t}));return new Promise((i,o)=>r._validate(t,n,(a,s)=>{xo.isError(a)&&(a.value=s),o(a)},(a,s)=>{a.length?o(new xo(a,s)):i(s)}))}validateSync(t,n){let r=this.resolve(Object.assign({},n,{value:t})),i;return r._validate(t,Object.assign({},n,{sync:!0}),(o,a)=>{throw xo.isError(o)&&(o.value=a),o},(o,a)=>{if(o.length)throw new xo(o,t);i=a}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(xo.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(xo.isError(r))return!1;throw r}}_getDefault(){let t=this.spec.default;return t==null?t:typeof t=="function"?t.call(this):tp(t)}getDefault(t){return this.resolve(t||{})._getDefault()}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=Rd({message:n,name:"nullable",test(i){return i===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=Rd({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=ml.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=ml.notNull){return this.nullability(!1,t)}required(t=ml.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=ml.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=Rd(n),o=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(o||a.OPTIONS.test===i.OPTIONS.test))),r.tests.push(i),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),i=kZ(t).map(o=>new Kf(o));return i.forEach(o=>{o.isSibling&&r.deps.push(o.key)}),r.conditions.push(typeof n=="function"?new lx(i,n):lx.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Rd({message:t,name:"typeError",test(r){return!$s(r)&&!this.schema._typeCheck(r)?this.createError({params:{type:this.schema.type}}):!0}}),n}oneOf(t,n=ml.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=Rd({message:n,name:"oneOf",skipAbsent:!0,test(i){let o=this.schema._whitelist,a=o.resolveAll(this.resolve);return a.includes(i)?!0:this.createError({params:{values:Array.from(o).join(", "),resolved:a}})}}),r}notOneOf(t,n=ml.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=Rd({message:n,name:"notOneOf",test(i){let o=this.schema._blacklist,a=o.resolveAll(this.resolve);return a.includes(i)?this.createError({params:{values:Array.from(o).join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:i,optional:o,nullable:a}=n.spec;return{meta:i,label:r,optional:o,nullable:a,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(l=>({name:l.OPTIONS.name,params:l.OPTIONS.params})).filter((l,u,f)=>f.findIndex(d=>d.name===l.name)===u)}}}ma.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])ma.prototype[`${e}At`]=function(t,n,r={}){const{parent:i,parentPath:o,schema:a}=rdt(this,t,n,r.context);return a[e](i&&i[o],Object.assign({},r,{parent:i,path:t}))};for(const e of["equals","is"])ma.prototype[e]=ma.prototype.oneOf;for(const e of["not","nope"])ma.prototype[e]=ma.prototype.notOneOf;let idt=/^[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])?)*$/,odt=/^((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,adt=/^(?:[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,sdt=e=>$s(e)||e===e.trim(),ldt={}.toString();function cx(){return new TZ}class TZ extends ma{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const i=t!=null&&t.toString?t.toString():t;return i===ldt?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||ml.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=Na.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=Na.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=Na.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,i,o;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:i,name:o}=n:i=n),this.test({name:o||"matches",message:i||Na.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=Na.email){return this.matches(idt,{name:"email",message:t,excludeEmptyString:!0})}url(t=Na.url){return this.matches(odt,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Na.uuid){return this.matches(adt,{name:"uuid",message:t,excludeEmptyString:!1})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=Na.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:sdt})}lowercase(t=Na.lowercase){return this.transform(n=>$s(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>$s(n)||n===n.toLowerCase()})}uppercase(t=Na.uppercase){return this.transform(n=>$s(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>$s(n)||n===n.toUpperCase()})}}cx.prototype=TZ.prototype;let udt=e=>e!=+e;function AZ(){return new $Z}class $Z extends ma{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!udt(t)}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce)return t;let i=t;if(typeof i=="string"){if(i=i.replace(/\s/g,""),i==="")return NaN;i=+i}return r.isType(i)?i:parseFloat(i)})})}min(t,n=du.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r>=this.resolve(t)}})}max(t,n=du.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r<=this.resolve(t)}})}lessThan(t,n=du.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(r){return r<this.resolve(t)}})}moreThan(t,n=du.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(r){return r>this.resolve(t)}})}positive(t=du.positive){return this.moreThan(0,t)}negative(t=du.negative){return this.lessThan(0,t)}integer(t=du.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>$s(t)?t:t|0)}round(t){var n;let r=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(r.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(i=>$s(i)?i:Math[t](i))}}AZ.prototype=$Z.prototype;var cdt=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function fdt(e){var t=[1,4,5,6,7,10,11],n=0,r,i;if(i=cdt.exec(e)){for(var o=0,a;a=t[o];++o)i[a]=+i[a]||0;i[2]=(+i[2]||1)-1,i[3]=+i[3]||1,i[7]=i[7]?String(i[7]).substr(0,3):0,(i[8]===void 0||i[8]==="")&&(i[9]===void 0||i[9]==="")?r=+new Date(i[1],i[2],i[3],i[4],i[5],i[6],i[7]):(i[8]!=="Z"&&i[9]!==void 0&&(n=i[10]*60+i[11],i[9]==="+"&&(n=0-n)),r=Date.UTC(i[1],i[2],i[3],i[4],i[5]+n,i[6],i[7]))}else r=Date.parse?Date.parse(e):NaN;return r}let ddt=new Date(""),pdt=e=>Object.prototype.toString.call(e)==="[object Date]";class nC extends ma{constructor(){super({type:"date",check(t){return pdt(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)?t:(t=fdt(t),isNaN(t)?nC.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Kf.isRef(t))r=t;else{let i=this.cast(t);if(!this._typeCheck(i))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=i}return r}min(t,n=nR.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(i){return i>=this.resolve(r)}})}max(t,n=nR.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(i){return i<=this.resolve(r)}})}}nC.INVALID_DATE=ddt;nC.prototype;function hdt(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([a,s])=>`${a}-${s}`));function o(a,s){let l=Jc.split(a)[0];r.add(l),i.has(`${s}-${l}`)||n.push([s,l])}for(const a of Object.keys(e)){let s=e[a];r.add(a),Kf.isRef(s)&&s.isSibling?o(s.path,a):tC(s)&&"deps"in s&&s.deps.forEach(l=>o(l,a))}return Gft.array(Array.from(r),n).reverse()}function t6(e,t){let n=1/0;return e.some((r,i)=>{var o;if((o=t.path)!=null&&o.includes(r))return n=i,!0}),n}function RZ(e){return(t,n)=>t6(e,t)-t6(e,n)}const OZ=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function Ub(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=Ub(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=Ub(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(Ub)}):"optional"in e?e.optional():e}const gdt=(e,t)=>{const n=[...Jc.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=Jc.getter(Jc.join(n),!0)(e);return!!(i&&r in i)};let n6=e=>Object.prototype.toString.call(e)==="[object Object]";function mdt(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const vdt=RZ([]);function ND(e){return new IZ(e)}class IZ extends ma{constructor(t){super({type:"object",check(n){return n6(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=vdt,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let i=super._cast(t,n);if(i===void 0)return this.getDefault();if(!this._typeCheck(i))return i;let o=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,s=[].concat(this._nodes,Object.keys(i).filter(d=>!this._nodes.includes(d))),l={},u=Object.assign({},n,{parent:l,__validating:n.__validating||!1}),f=!1;for(const d of s){let p=o[d],m=d in i;if(p){let v,y=i[d];u.path=(n.path?`${n.path}.`:"")+d,p=p.resolve({value:y,context:n.context,parent:l});let w=p instanceof ma?p.spec:void 0,b=w==null?void 0:w.strict;if(w!=null&&w.strip){f=f||d in i;continue}v=!n.__validating||!b?p.cast(i[d],u):i[d],v!==void 0&&(l[d]=v)}else m&&!a&&(l[d]=i[d]);(m!==d in l||l[d]!==i[d])&&(f=!0)}return f?l:i}_validate(t,n={},r,i){let{from:o=[],originalValue:a=t,recursive:s=this.spec.recursive}=n;n.from=[{schema:this,value:a},...o],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(l,u)=>{if(!s||!n6(u)){i(l,u);return}a=a||u;let f=[];for(let d of this._nodes){let p=this.fields[d];!p||Kf.isRef(p)||f.push(p.asNestedTest({options:n,key:d,parent:u,parentPath:n.path,originalParent:a}))}this.runTests({tests:f,value:u,originalValue:a,options:n},r,d=>{i(d.sort(this._sortErrors).concat(l),u)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[i,o]of Object.entries(this.fields)){const a=r[i];r[i]=a===void 0?o:a}return n.withMutation(i=>i.setFields(r,this._excludedEdges))}_getDefault(){if("default"in this.spec)return super._getDefault();if(!this._nodes.length)return;let t={};return this._nodes.forEach(n=>{const r=this.fields[n];t[n]=r&&"getDefault"in r?r.getDefault():void 0}),t}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=hdt(t,n),r._sortErrors=RZ(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let i=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),i=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),i)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return Ub(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n)}omit(t){const n=Object.assign({},this.fields);for(const r of t)delete n[r];return this.setFields(n)}from(t,n,r){let i=Jc.getter(t,!0);return this.transform(o=>{if(!o)return o;let a=o;return gdt(o,t)&&(a=Object.assign({},o),r||delete a[t],a[n]=i(o)),a})}json(){return this.transform(OZ)}noUnknown(t=!0,n=rR.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(i){if(i==null)return!0;const o=mdt(this.schema,i);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=rR.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const i of Object.keys(n))r[t(i)]=n[i];return r})}camelCase(){return this.transformKeys(yT.camelCase)}snakeCase(){return this.transformKeys(yT.snakeCase)}constantCase(){return this.transformKeys(t=>yT.snakeCase(t).toUpperCase())}describe(t){let n=super.describe(t);n.fields={};for(const[i,o]of Object.entries(this.fields)){var r;let a=t;(r=a)!=null&&r.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[i]})),n.fields[i]=o.describe(a)}return n}}ND.prototype=IZ.prototype;function DZ(e){return new PZ(e)}class PZ extends ma{constructor(t){super({type:"array",check(n){return Array.isArray(n)}}),this.innerType=void 0,this.innerType=t}_cast(t,n){const r=super._cast(t,n);if(!this._typeCheck(r)||!this.innerType)return r;let i=!1;const o=r.map((a,s)=>{const l=this.innerType.cast(a,Object.assign({},n,{path:`${n.path||""}[${s}]`}));return l!==a&&(i=!0),l});return i?o:r}_validate(t,n={},r,i){var o;let a=this.innerType,s=(o=n.recursive)!=null?o:this.spec.recursive;n.originalValue!=null&&n.originalValue,super._validate(t,n,r,(l,u)=>{var f;if(!s||!a||!this._typeCheck(u)){i(l,u);return}let d=new Array(u.length);for(let m=0;m<u.length;m++){var p;d[m]=a.asNestedTest({options:n,index:m,parent:u,parentPath:n.path,originalParent:(p=n.originalValue)!=null?p:t})}this.runTests({value:u,tests:d,originalValue:(f=n.originalValue)!=null?f:t,options:n},r,m=>i(m.concat(l),u))})}clone(t){const n=super.clone(t);return n.innerType=this.innerType,n}json(){return this.transform(OZ)}concat(t){let n=super.concat(t);return n.innerType=this.innerType,t.innerType&&(n.innerType=n.innerType?n.innerType.concat(t.innerType):t.innerType),n}of(t){let n=this.clone();if(!tC(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+Qc(t));return n.innerType=t,n}length(t,n=zb.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n){return n=n||zb.min,this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n){return n=n||zb.max,this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}ensure(){return this.default(()=>[]).transform((t,n)=>this._typeCheck(t)?t:n==null?[]:[].concat(n))}compact(t){let n=t?(r,i,o)=>!t(r,i,o):r=>!!r;return this.transform(r=>r!=null?r.filter(n):r)}describe(t){let n=super.describe(t);if(this.innerType){var r;let i=t;(r=i)!=null&&r.value&&(i=Object.assign({},i,{parent:i.value,value:i.value[0]})),n.innerType=this.innerType.describe(t)}return n}}DZ.prototype=PZ.prototype;var BD={},ydt=Nn;Object.defineProperty(BD,"__esModule",{value:!0});var LZ=BD.default=void 0,bdt=ydt(Bn()),_dt=C,xdt=(0,bdt.default)((0,_dt.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");LZ=BD.default=xdt;function wdt(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Sdt=wdt;function Cdt(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}var Edt=Cdt,kdt=wD,Tdt=Edt;function Adt(e,t){return t.length<2?e:kdt(e,Tdt(t,0,-1))}var $dt=Adt,Rdt=qS,Odt=Sdt,Idt=$dt,Ddt=By;function Pdt(e,t){return t=Rdt(t,e),e=Idt(e,t),e==null||delete e[Ddt(Odt(t))]}var Ldt=Pdt,Mdt=gX;function Fdt(e){return Mdt(e)?void 0:e}var Ndt=Fdt,r6=wh,Bdt=US,jdt=Ca,i6=r6?r6.isConcatSpreadable:void 0;function zdt(e){return jdt(e)||Bdt(e)||!!(i6&&e&&e[i6])}var Udt=zdt,Kdt=yD,Wdt=Udt;function MZ(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=Wdt),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?MZ(s,t-1,n,r,i):Kdt(i,s):r||(i[i.length]=s)}return i}var Vdt=MZ,Hdt=Vdt;function qdt(e){var t=e==null?0:e.length;return t?Hdt(e,1):[]}var Gdt=qdt,Ydt=Gdt,Xdt=_X,Zdt=xX;function Jdt(e){return Zdt(Xdt(e,void 0,Ydt),e+"")}var Qdt=Jdt,ept=vD,tpt=xZ,npt=Ldt,rpt=qS,ipt=Ah,opt=Ndt,apt=Qdt,spt=vZ,lpt=1,upt=2,cpt=4,fpt=apt(function(e,t){var n={};if(e==null)return n;var r=!1;t=ept(t,function(o){return o=rpt(o,e),r||(r=o.length>1),o}),ipt(e,spt(e),n),r&&(n=tpt(n,lpt|upt|cpt,opt));for(var i=t.length;i--;)npt(n,t[i]);return n}),dpt=fpt;const bT=bi(dpt);function Kb(e){const{checked:t,description:n,disabled:r,hasError:i,id:o,inputProps:a,label:s,onChange:l,tooltip:u}=e;return C.jsx($h,{description:n,hasError:i,id:o,label:s,tooltip:u,children:C.jsx(ppt,{name:o,disabled:r,edge:"end",onChange:l,checked:t,inputProps:a})})}const ppt=Le(e=>C.jsx(RTe,{focusVisibleClassName:".Mui-focusVisible",disableRipple:!0,...e}))(({theme:e})=>{const t=e.palette.mode==="dark";return{width:40,height:24,padding:0,"& .MuiSwitch-switchBase":{margin:0,padding:"4px",transitionDuration:"300ms","&.Mui-checked":{transform:"translateX(16px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:pV[500],opacity:1,border:0},"&.Mui-disabled + .MuiSwitch-track":{opacity:.5}},"&.Mui-disabled .MuiSwitch-thumb":{color:t?e.palette.grey[600]:e.palette.grey[100]},"&.Mui-disabled + .MuiSwitch-track":{opacity:t?.3:.7}},"& .MuiSwitch-thumb":{boxSizing:"border-box",width:16,height:16,boxShadow:"unset"},"& .MuiSwitch-track":{borderRadius:26/2,backgroundColor:e.palette.grey[400],opacity:1,transition:e.transitions.create(["background-color"],{duration:500})}}}),Bv={enter:"Enter",backspace:"Backspace"},hpt={ime:229},gpt=Le(aO)(({theme:e,size:t})=>`
|
|
481
|
-
max-width: 100%;
|
|
482
|
-
margin: 2px 4px;
|
|
483
|
-
height: ${t==="small"?"26px":"32px"};
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
&[aria-disabled="true"] > svg {
|
|
487
|
-
color: ${e.palette.action.disabled};
|
|
488
|
-
cursor: default;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
&.MuiChipsInput-Chip-Editing {
|
|
492
|
-
background-color: ${e.palette.primary.light};
|
|
493
|
-
color: ${e.palette.primary.contrastText};
|
|
494
|
-
}
|
|
495
|
-
`),mpt={ChipStyled:gpt},o6=e=>{const{className:t,index:n,onDelete:r,disabled:i,onEdit:o,isEditing:a,disableEdition:s,...l}=e,u=p=>{p.key===Bv.enter&&r(n)},f=p=>{var m,v;(m=p==null?void 0:p.preventDefault)==null||m.call(p),(v=p==null?void 0:p.stopPropagation)==null||v.call(p),r(n)},d=p=>{p.target.textContent===l.label&&(i||o(n))};return C.jsx(mpt.ChipStyled,{className:`MuiChipsInput-Chip ${a?"MuiChipsInput-Chip-Editing":""} ${t||""}`,onKeyDown:u,disabled:i,onDoubleClick:s?void 0:d,tabIndex:i?-1:0,"aria-disabled":i,onDelete:f,...l})};function vpt(e){return typeof e=="boolean"}function ypt(e){return typeof e=="object"&&!Array.isArray(e)&&e!==null}function bpt(e,t){typeof t=="function"?t(e):t&&ypt(t)&&"current"in t&&(t.current=e)}const _pt=Le("div")`
|
|
496
|
-
top: 50%;
|
|
497
|
-
transform: translateY(-50%);
|
|
498
|
-
right: 10px;
|
|
499
|
-
position: absolute;
|
|
500
|
-
`,xpt=Le(Hw)(e=>{var t;return`
|
|
501
|
-
max-width: 100%;
|
|
502
|
-
|
|
503
|
-
.MuiInputBase-root {
|
|
504
|
-
display: flex;
|
|
505
|
-
flex-wrap: wrap;
|
|
506
|
-
align-items: flex-start;
|
|
507
|
-
row-gap: 5px;
|
|
508
|
-
padding-top: ${e.size==="small"?"5px":"9px"};
|
|
509
|
-
padding-right: ${(t=e.InputProps)!=null&&t.endAdornment?"30px":"9px"};
|
|
510
|
-
padding-bottom: ${e.size==="small"?"5px":"9px"};
|
|
511
|
-
padding-left: 10px;
|
|
512
|
-
|
|
513
|
-
input {
|
|
514
|
-
min-width: 30px;
|
|
515
|
-
width: auto;
|
|
516
|
-
flex-grow: 1;
|
|
517
|
-
text-overflow: ellipsis;
|
|
518
|
-
padding: ${e.size==="small"?"3.5px 4px":"7.5px 4px"};
|
|
519
|
-
align-self: center;
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
`}),wpt=Le(aO)(({theme:e,size:t})=>`
|
|
523
|
-
max-width: 100%;
|
|
524
|
-
margin: 2px 4px;
|
|
525
|
-
height: ${t==="small"?"26px":"32px"};
|
|
526
|
-
|
|
527
|
-
&[aria-disabled="true"] > svg.MuiChip-deleteIcon {
|
|
528
|
-
color: ${e.palette.action.disabled};
|
|
529
|
-
cursor: default;
|
|
530
|
-
}
|
|
531
|
-
`),a6={ChipStyled:wpt,TextFieldStyled:xpt,EndAdornmentClose:_pt},FZ=ht.forwardRef((e,t)=>{const{chips:n,onAddChip:r,onEditChip:i,onDeleteChip:o,onDeleteAllChips:a,InputProps:s,onInputChange:l,disabled:u,clearInputOnBlur:f,validate:d,error:p,helperText:m,hideClearAll:v,inputProps:y,size:w,disableDeleteOnBackspace:b,disableEdition:x,className:S,renderChip:k,addOnWhichKey:A,onFocus:$,inputValue:I,...z}=e,[K,D]=ht.useState(""),[W,ie]=ht.useState(""),ae=ht.useRef(null),q=ht.useRef(!1),G=ht.useRef(typeof I=="string"),[J,le]=ht.useState(null),{onKeyDown:Q,...te}=y||{},{inputRef:P,...me}=s||{},j=()=>{ie("")},L=G.current,oe=L?I:K,ue=Te=>{l==null||l(Te),L||D(Te)},se=Te=>{ue(n[Te]),le(Te),j()},Ee=()=>{le(null)},Re=()=>{j(),ue("")},ke=Te=>{ue(Te.target.value)},De=()=>{!q.current||(J!==null?(Ee(),Re()):f&&Re(),q.current=!1)},Me=Te=>{ae.current=Te,t&&bpt(Te,t)},Be=(Te,Pe)=>U=>{if(typeof d=="function"){const H=d(Te);if(H===!1){Pe.preventDefault();return}if(!vpt(H)&&H.isError){Pe.preventDefault(),ie(H.textError);return}}U()},Ue=(Te,Pe,U)=>{Be(Te,U)(()=>{i==null||i(Te,Pe),Ee(),Re()})},Ke=(Te,Pe)=>{Be(Te,Pe)(()=>{r==null||r(oe.trim()),Re()})},He=(Te,Pe)=>Pe===hpt.ime?!1:A?Array.isArray(A)?A.some(U=>U===Te):A===Te:Te===Bv.enter,lt=Te=>{const Pe=He(Te.key,Te.keyCode),U=Te.key===Bv.backspace,H=oe.trim();if(Te.code==="Tab"){De();return}if(Pe&&Te.preventDefault(),oe.length>0&&Pe)H.length===0?Re():J!==null?Ue(H,J,Te):Ke(H,Te);else if(U&&oe.length===0&&n.length>0&&!b){const de=n.length-1;o==null||o(de),J===de&&Ee()}Q==null||Q(Te)},Xe=Te=>{Te.preventDefault(),$==null||$(Te),q.current=!0},nt=Te=>{Te.preventDefault(),!v&&!u&&(a==null||a(),Re(),Ee())},mt=Te=>{var Pe;Te===J?(Re(),Ee()):se(Te),(Pe=ae.current)==null||Pe.focus()},ge=Te=>{u||(o==null||o(Te),J!==null&&(Ee(),Re()))},$e=n.length>0;return C.jsx(q0e,{onClickAway:De,children:C.jsx(a6.TextFieldStyled,{value:oe,onChange:ke,ref:t,className:`MuiChipsInput-TextField ${S||""}`,size:w,placeholder:"Type and press enter",onFocus:Xe,inputProps:{onKeyDown:lt,...te},disabled:u,error:!!W||p,helperText:W||m,InputProps:{inputRef:Me,startAdornment:$e?n.map((Te,Pe)=>{const U=`chip-${Pe}`,H={index:Pe,onEdit:mt,label:Te,title:Te,isEditing:Pe===J,size:w,disabled:u,disableEdition:x,onDelete:ge};return k?k(o6,U,H):T.createElement(o6,{...H,key:U})}):null,endAdornment:v?null:C.jsx(a6.EndAdornmentClose,{style:{visibility:$e?"visible":"hidden"},children:C.jsx(vr,{"aria-label":"Clear",title:"Clear",disabled:u,size:"small",onClick:nt,children:C.jsx(lh,{fontSize:"small"})})}),...me},...z})})});FZ.defaultProps={onInputChange:()=>{},clearInputOnBlur:!1,hideClearAll:!1,disableDeleteOnBackspace:!1,disableEdition:!1,addOnWhichKey:Bv.enter,onDeleteChip:()=>{},onAddChip:()=>{},inputValue:void 0,onEditChip:()=>{},renderChip:void 0,onDeleteAllChips:()=>{},validate:()=>!0};function Spt(e,t){return[...e,t]}function Cpt(e,t){return e.filter((n,r)=>t!==r)}function Ept(e,t,n){return e.map((r,i)=>t===i?n:r)}const NZ=ht.forwardRef((e,t)=>{const{value:n,onChange:r,onAddChip:i,onInputChange:o,onDeleteChip:a,disabled:s,validate:l,clearInputOnBlur:u,hideClearAll:f,disableDeleteOnBackspace:d,onEditChip:p,renderChip:m,disableEdition:v,addOnWhichKey:y,inputValue:w,...b}=e;return C.jsx(FZ,{chips:n,onAddChip:x=>{if(s)return;const S=Spt(n,x),k=S.length-1;i==null||i(x,k),r==null||r(S)},onInputChange:o,disableDeleteOnBackspace:d,onDeleteChip:x=>{if(s)return;const S=n[x];r==null||r(Cpt(n,x)),a==null||a(S,x)},onEditChip:(x,S)=>{s||v||(r==null||r(Ept(n,S,x)),p==null||p(x,S))},renderChip:m,onDeleteAllChips:()=>{r==null||r([])},clearInputOnBlur:u,disabled:s,disableEdition:v,validate:l,inputValue:w,hideClearAll:f,addOnWhichKey:y,...b,ref:t})});NZ.defaultProps={value:[],onChange:()=>{},onAddChip:()=>{},onDeleteChip:()=>{},onInputChange:()=>{},onEditChip:()=>{},addOnWhichKey:Bv.enter,clearInputOnBlur:!1,disableEdition:!1,hideClearAll:!1,disableDeleteOnBackspace:!1,validate:()=>!0};function kpt({description:e,hasError:t,id:n,label:r,size:i="small",tooltip:o,setField:a,...s}){return C.jsx($h,{description:e,hasError:t,id:n,label:r,tooltip:o,children:C.jsx(NZ,{...s,sx:{my:.5},size:i,onChange:l=>a==null?void 0:a(n,l,!1),inputProps:{id:n,name:n}})})}function BZ({description:e,disabled:t,hasError:n,id:r,label:i,size:o="small",tooltip:a,...s}){return C.jsx($h,{description:e,hasError:n,id:r,label:i,tooltip:a,children:C.jsx(Hw,{disabled:t,inputProps:{...s,id:r,name:r,sx:{height:o==="small"?"7px":"15px"}},fullWidth:!0,sx:{fontSize:"14px",fontWeight:400,my:.5}})})}const Tpt=({description:e,hasError:t,id:n,label:r,tooltip:i,setField:o,...a})=>{var l;const s=u=>{const f=parseFloat(u.target.value),{min:d,max:p,onChange:m}=a;p&&f>p?o&&o(n,p):d&&f<d?o&&o(n,d):m&&m(u,f,0)};return C.jsx($h,{description:e,hasError:t,id:n,label:r,tooltip:i,notificationsProps:{count:((l=a.value)==null?void 0:l.toString())||"0",inputProps:{id:n,max:a.max,min:a.min,step:a.step||1,onChange:s}},children:C.jsx(Apt,{...a,id:n,name:n})})},Apt=Le(oTe)(({theme:e})=>{const t=e.palette.mode==="light";return{width:"calc(100% - 18px)",marginLeft:"8px",color:gt[t?300:850],height:3,"& .MuiSlider-track":{border:"none",color:gt[500]},"& .MuiSlider-thumb":{height:15,width:15,backgroundColor:t?gt[600]:"white",border:`4px solid ${t?gt[300]:gt[800]}`,"&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:"inherit"},"&:before":{display:"none"}},"& .MuiSlider-valueLabel":{lineHeight:1.2,fontSize:12,background:"unset",padding:0,width:32,height:32,borderRadius:"50% 50% 50% 0",backgroundColor:"#52af77",transformOrigin:"bottom left",transform:"translate(50%, -100%) rotate(-45deg) scale(0)","&:before":{display:"none"},"&.MuiSlider-valueLabelOpen":{transform:"translate(50%, -100%) rotate(-45deg) scale(1)"},"& > *":{transform:"rotate(45deg)"}}}}),jZ=({element:e})=>{switch(e.type){case"select":return C.jsx(Rh,{...bT(e,"setField"),value:e.value??""});case"slider":return C.jsx(Tpt,{...e,value:e.value??0});case"tags":return C.jsx(kpt,{...e,value:e.value??[]});case"switch":return C.jsx(Kb,{...bT(e,"setField"),checked:!!e.value,inputProps:{id:e.id,name:e.id}});case"textinput":return C.jsx(BZ,{...bT(e,"setField"),value:e.value??""});default:return C.jsx(C.Fragment,{})}},jD=e=>{const t=(e==null?void 0:e.providers)||[];if(!(t!=null&&t.length))throw new Error("No LLM provider available");let n=t.find(i=>{var o;return i.id===((o=e.prompt)==null?void 0:o.provider)});const r=!!n;return n=n||t[0],{provider:n,providerFound:r,providers:t}},$pt=({settings:e,schema:t})=>{var d,p;const[n,r]=cr(es),{provider:i,providers:o,providerFound:a}=jD(n),s=a?null:C.jsx(no,{severity:"warning",children:(d=n.prompt)!=null&&d.provider?`${(p=n==null?void 0:n.prompt)==null?void 0:p.provider} provider is not found, using
|
|
532
|
-
${i.name} instead.`:`Provider not specified, using ${i.name} instead.`}),l=DD({initialValues:e,validationSchema:t,enableReinitialize:!0,onSubmit:async()=>{}});T.useEffect(()=>{r(m=>({...m,prompt:{...m.prompt,settings:l.values}}))},[l.values]);const u=m=>{r(v=>rx(wZ(v),{prompt:{provider:m.target.value}}))},f=()=>{var m,v;return i.is_chat&&!((m=n.prompt)!=null&&m.messages)?`${i.name} is message-based. This prompt will be wrapped in a message before being sent to ${i.name}.`:!i.is_chat&&((v=n.prompt)!=null&&v.messages)?`${i.name} is prompt-based. The messages will converted to a single prompt before being sent to ${i.name}.`:void 0};return C.jsxs(st,{width:250,sx:{height:"inherit"},children:[C.jsx(Zt,{fontSize:"16px",fontWeight:600,color:"text.primary",children:"Settings"}),C.jsxs(Ht,{spacing:2,sx:{overflowY:"auto",overflowX:"hidden",height:"100%"},children:[C.jsx(Rh,{items:o==null?void 0:o.map(m=>({label:m.name,value:m.id})),id:"llm-providers",value:i.id,label:"LLM Provider",tooltip:f(),onChange:u}),s,i.inputs.map((m,v)=>C.jsx(st,{sx:{paddingBottom:v===i.inputs.length-1?2:0},children:C.jsx(jZ,{element:{...m,id:m.id,value:l.values[m.id],onChange:y=>{l.handleChange(y)},setField:(y,w,b)=>{l.setFieldValue(y,w,b)}}},m.id)}))]})]})},s6=()=>{var s,l;const e=yt(es),{provider:t}=jD(e);if(!t)return null;const n={},r=((s=e==null?void 0:e.prompt)==null?void 0:s.settings)||{},i=((l=e==null?void 0:e.originalPrompt)==null?void 0:l.settings)||{},o=(u,f)=>{var d;return f.type==="select"?!!((d=f==null?void 0:f.items)!=null&&d.find(p=>p.value===u)):!0},a=ND(t.inputs.reduce((u,f)=>{const d=r[f.id]!==void 0?r[f.id]:i[f.id];switch(d!==void 0&&o(d,f)?n[f.id]=d:f.initial!==void 0&&(n[f.id]=f.initial),f.type){case"select":u[f.id]=cx();break;case"slider":{let p=AZ();f.min&&(p=p.min(f.min)),f.max&&(p=p.max(f.max)),u[f.id]=p;break}case"tags":u[f.id]=DZ().of(cx());break}return u},{}));return C.jsx($pt,{schema:a,settings:n})};function Rpt({isSmallScreen:e,isDrawerOpen:t,toggleDrawer:n}){return e?C.jsxs(vW,{sx:{"& .MuiDrawer-paper":{}},variant:"persistent",anchor:"right",open:t,children:[C.jsx(st,{sx:{display:"flex",justifyContent:"flex-end",pt:2,pr:1},children:C.jsx(vr,{onClick:n,children:C.jsx(LZ,{})})}),C.jsx(st,{px:3,children:C.jsx(s6,{})})]}):C.jsx(st,{ml:"32px !important",height:"100%",children:C.jsx(s6,{})})}function Opt(){const[e,t]=T.useState(),n=yt(Fl),[r,i]=cr(es),o=yt(Gw),a=async()=>{try{const{provider:s}=jD(r),l=EX.cloneDeep(r.prompt);l.provider=s.id;const u=new AbortController;t(u),i(f=>f!=null&&f.prompt?{...f,prompt:{...f.prompt,completion:""}}:f),await n.getCompletion(l,o,u,(f,d)=>{if(f){t(void 0);return}i(p=>{var m;return p!=null&&p.prompt?{...p,prompt:{...p.prompt,completion:(((m=p.prompt)==null?void 0:m.completion)||"")+d}}:p})})}catch(s){t(void 0),s instanceof j_&&Mr.error(s.toString())}};return e?C.jsx(yy,{onClick:()=>{e.abort(),t(void 0)},children:"Cancel"}):C.jsx(zu,{id:"submit-prompt",variant:"outlined",onClick:a,children:"Submit"})}function zZ(){var y,w;const e=yt(Fl),[t,n]=cr(es),[r,i]=T.useState(0),[o,a]=T.useState(),[s,l]=CO(!1),u=eS(),f=nr(),d=Vw(b=>b.breakpoints.down("md"));u&&e.getLLMProviders().then(b=>n(x=>({...x,providers:b.providers}))).catch(b=>a(b));const p=()=>{t&&(n(b=>({...b,prompt:b.originalPrompt})),i(b=>b+1))},m=()=>{n(b=>({...b,prompt:void 0}))};if(!(t!=null&&t.prompt))return null;const v=(y=t==null?void 0:t.prompt)!=null&&y.messages?t.prompt.messages.every(b=>typeof b.template=="string"):typeof((w=t==null?void 0:t.prompt)==null?void 0:w.template)=="string";return C.jsxs(ah,{open:!!t.prompt,fullScreen:!0,PaperProps:{style:{backgroundColor:f.palette.background.default,backgroundImage:"none"}},onClose:m,id:"playground","aria-labelledby":"playground","aria-describedby":"playground",children:[C.jsx(sy,{sx:{display:"flex",flexDirection:"column"},children:C.jsx(mit,{hasTemplate:v,isSmallScreen:d,toggleDrawer:l,handleClose:m})}),C.jsx(sh,{sx:{display:"flex",direction:"row",padding:3},children:C.jsxs(rq,{prefix:"Prompt Playground error",children:[C.jsxs(Ht,{gap:3,width:"100%",children:[o?C.jsx(no,{severity:"error",children:"An error occurred while fetching providers settings"}):null,C.jsxs(Ht,{direction:"row",spacing:1.5,sx:{overflowY:"auto",paddingBottom:2,height:"100%"},children:[C.jsx(WQe,{}),C.jsx(NQe,{restoredTime:r,hasTemplate:v,prompt:t.prompt}),C.jsx(KQe,{restoredTime:r,hasTemplate:v,prompt:t.prompt})]})]}),C.jsx(Rpt,{isSmallScreen:d,isDrawerOpen:s,toggleDrawer:l})]})}),C.jsxs(jNe,{children:[C.jsx(Io,{title:"Restore original",children:C.jsx(vr,{onClick:p,children:C.jsx(nq,{})})}),C.jsx(Opt,{})]})]})}function Ipt(){const{id:e}=BU(),t=yt(Fl),[n,r]=T.useState(),[i,o]=T.useState();if(T.useEffect(()=>{e&&(r(void 0),t.getConversation(e).then(l=>o(l)).catch(l=>{r(l.message)}))},[t,e]),!i||n)return null;const a=i.elements,s=[];return C.jsxs(st,{display:"flex",flexGrow:1,width:"100%",overflow:"scroll",children:[C.jsx(zZ,{}),C.jsxs(IH,{children:[C.jsx(st,{my:1}),C.jsx(tq,{actions:s,elements:a,messages:i.messages})]})]})}var zD={},Dpt=Nn;Object.defineProperty(zD,"__esModule",{value:!0});var UZ=zD.default=void 0,Ppt=Dpt(Bn()),Lpt=C,Mpt=(0,Ppt.default)((0,Lpt.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");UZ=zD.default=Mpt;const Fpt=e=>C.jsx(R_,{...e,viewBox:"0 0 98 96",children:C.jsx("path",{d:"M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z"})});function Npt({href:e}){return e?C.jsx(Io,{title:"See on Github",children:C.jsx(vr,{color:"inherit",href:e,target:"_blank",children:C.jsx(Fpt,{})})}):null}function Bpt(){var n;const{user:e}=Qu(),t=nr();return e?C.jsx(KA,{sx:{width:32,height:32},src:e.picture||void 0,children:(n=e.name)==null?void 0:n[0]}):C.jsx(st,{color:t.palette.mode==="dark"?"text.primary":"primary.main",children:C.jsx(KA,{sx:{width:32,height:32,bgcolor:"transparent",color:"inherit"}})})}var UD={},jpt=Nn;Object.defineProperty(UD,"__esModule",{value:!0});var KZ=UD.default=void 0,zpt=jpt(Bn()),Upt=C,Kpt=(0,zpt.default)((0,Upt.jsx)("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04L21 10zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3z"}),"Key");KZ=UD.default=Kpt;var KD={},Wpt=Nn;Object.defineProperty(KD,"__esModule",{value:!0});var WZ=KD.default=void 0,Vpt=Wpt(Bn()),Hpt=C,qpt=(0,Vpt.default)((0,Hpt.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z"}),"Logout");WZ=KD.default=qpt;var WD={},Gpt=Nn;Object.defineProperty(WD,"__esModule",{value:!0});var VZ=WD.default=void 0,Ypt=Gpt(Bn()),Xpt=C,Zpt=(0,Ypt.default)((0,Xpt.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-.61l-2.01-1.58zM12 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.6z"}),"Settings");VZ=WD.default=Zpt;function Jpt({anchorEl:e,open:t,handleClose:n}){var v,y;const{user:r,logout:i}=Qu(),o=yt(ya),a=hn(Ks),s=!!((y=(v=o==null?void 0:o.project)==null?void 0:v.user_env)!=null&&y.length),p=[r&&C.jsxs(Hm,{sx:{display:"flex",flexDirection:"column"},children:[C.jsx(Zt,{width:"100%",fontSize:"14px",fontWeight:700,children:r.name}),C.jsx(Zt,{width:"100%",fontSize:"13px",fontWeight:400,children:r.email})]},"user-name"),C.jsxs(qm,{onClick:()=>{a(w=>({...w,open:!0})),n()},children:[C.jsx(pp,{children:C.jsx(VZ,{fontSize:"small"})}),C.jsx($b,{children:"Settings"}),C.jsx(Zt,{variant:"body2",color:"text.secondary",children:"S"})]},"settings"),s&&C.jsxs(qm,{component:Uv,to:"/env",children:[C.jsx(pp,{children:C.jsx(KZ,{fontSize:"small"})}),"API keys"]},"env"),r&&C.jsxs(qm,{onClick:()=>{i({logoutParams:{returnTo:window.location.origin}}),n()},children:[C.jsx(pp,{children:C.jsx(WZ,{fontSize:"small"})}),"Logout"]},"logout")].filter(w=>!!w),m=p.reduce((w,b,x)=>x===p.length-1?[...w,b]:[...w,b,C.jsx(SSe,{sx:{my:1}},`divider-${x}`)],[]);return C.jsx(uy,{anchorEl:e,id:"account-menu",open:t,onClose:n,PaperProps:{sx:{width:220,overflow:"visible",mt:1.5,backgroundImage:"none",border:w=>`1px solid ${w.palette.divider}`,boxShadow:w=>w.palette.mode==="light"?"0px 2px 4px 0px #0000000D":"0px 10px 10px 0px #0000000D","& .MuiAvatar-root":{width:32,height:32,ml:-.5,mr:1},"&:before":{content:'""',display:"block",position:"absolute",top:0,right:14,width:10,height:10,bgcolor:"background.default",transform:"translateY(-50%) rotate(45deg)",zIndex:0}}},transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},children:m})}function Qpt(){const[e,t]=T.useState(null),n=!!e,r=o=>{t(o.currentTarget)},i=()=>{t(null)};return C.jsxs("div",{children:[C.jsx(vr,{edge:"end",onClick:r,size:"small","aria-controls":n?"account-menu":void 0,"aria-haspopup":"true","aria-expanded":n?"true":void 0,children:C.jsx(Bpt,{})}),C.jsx(Jpt,{open:n,anchorEl:e,handleClose:i})]})}var VD={},eht=Nn;Object.defineProperty(VD,"__esModule",{value:!0});var HZ=VD.default=void 0,tht=eht(Bn()),nht=C,rht=(0,tht.default)((0,nht.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");HZ=VD.default=rht;const HD=Gn({key:"Actions",default:[]});function iht(){const e=hn(cS),t=hn(tS),n=hn(kO),r=hn(TO),i=hn(HD),o=hn(AO),a=hn(DH),s=Cb(vy),l=Cb(WO),u=Cb(GW),f=yt(Tf);return()=>{f==null||f.socket.emit("clear_session"),f==null||f.socket.disconnect(),u(),f==null||f.socket.connect(),e([]),t([]),n([]),r([]),i([]),o(void 0),a(0),s(),l()}}function oht(){const e=Wu(),[t,n]=T.useState(!1),r=iht(),i=()=>{n(!0)},o=()=>{n(!1)},a=()=>{r(),e("/"),o()};return C.jsxs(st,{children:[C.jsx(zu,{id:"new-chat-button",variant:"outlined",onClick:i,startIcon:C.jsx(HZ,{}),children:"New Chat"}),C.jsxs(ah,{open:t,onClose:o,id:"new-chat-dialog",PaperProps:{sx:{backgroundImage:"none"}},children:[C.jsx(sy,{id:"alert-dialog-title",children:"Create a new chat?"}),C.jsx(sh,{children:C.jsx(hW,{id:"alert-dialog-description",children:"This will clear the current messages and start a new chat."})}),C.jsxs(Ww,{sx:{p:2},children:[C.jsx(yy,{onClick:o,children:"Cancel"}),C.jsx(zu,{id:"confirm",variant:"outlined",onClick:a,autoFocus:!0,children:"Confirm"})]})]})]})}function aht({to:e,label:t}){return C.jsx(yy,{component:Uv,to:e,children:t},e)}function sht({to:e,label:t}){return C.jsx(Cf,{component:Uv,to:e,sx:{textTransform:"none",color:"text.secondary","&:hover":{background:"transparent"}},children:t},e)}function lht({hasDb:e,hasReadme:t}){const n=Zp(),r=nr(),[i,o]=T.useState(!1),a=T.useRef();let s;i&&a.current&&(s=a.current);const l=Vw(r.breakpoints.down("md")),u=[{to:"/",label:"Chat"}];e&&u.push({to:"/dataset",label:"History"}),t&&u.push({to:"/readme",label:"Readme"});const f=C.jsx(Ht,{direction:l?"column":"row",spacing:1,children:u.map(d=>{const p=n.pathname===d.to;return C.jsx("div",{children:p?C.jsx(aht,{...d}):C.jsx(sht,{...d})},d.to)})});return l?C.jsxs(C.Fragment,{children:[C.jsx(vr,{ref:a,edge:"start","aria-label":"open nav",onClick:()=>o(!0),children:C.jsx(UZ,{})}),C.jsx(uy,{autoFocus:!0,anchorEl:s,open:i,onClose:()=>o(!1),PaperProps:{sx:{p:1,backgroundImage:"none",mt:-2,ml:-1,overflow:"visible",overflowY:"auto",border:d=>`1px solid ${d.palette.divider}`,boxShadow:d=>d.palette.mode==="light"?"0px 2px 4px 0px #0000000D":"0px 10px 10px 0px #0000000D"}},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"},children:f})]}):f}function qZ(){var t,n;const e=yt(ya);return C.jsx(uxe,{elevation:0,color:"transparent",position:"static",children:C.jsxs(KTe,{sx:{minHeight:"60px !important",borderBottomWidth:"1px",borderBottomStyle:"solid",background:r=>r.palette.background.paper,borderBottomColor:r=>r.palette.divider},children:[C.jsx(Ht,{alignItems:"center",direction:"row",children:C.jsx(lht,{hasDb:!!((t=e==null?void 0:e.project)!=null&&t.database),hasReadme:!!(e!=null&&e.markdown)})}),C.jsxs(Ht,{alignItems:"center",sx:{ml:"auto"},direction:"row",spacing:1,color:"text.primary",children:[C.jsx(oht,{}),C.jsx(st,{ml:1}),C.jsx(Npt,{href:(n=e==null?void 0:e.ui)==null?void 0:n.github}),C.jsx(Qpt,{})]})]})})}const Uy=({children:e})=>{var d;const{isProjectMember:t,authenticating:n,isAuthenticated:r,accessToken:i,role:o}=Qu(),a=yt(ya),s=yt(Gw),l=Wu(),u=a&&!((d=a.project)!=null&&d.public);if(T.useEffect(()=>{var p,m;if((p=a==null?void 0:a.project)!=null&&p.user_env)for(const v of((m=a.project)==null?void 0:m.user_env)||[])s[v]||l("/env");u&&!r&&!n&&l("/login")},[a,r,n,s]),!a||u&&(!i||!o))return null;const f=u&&o&&!t;return C.jsxs(st,{sx:{display:"flex",flexDirection:"column",width:"100%"},children:[C.jsx(qZ,{}),f?C.jsx(no,{severity:"error",children:"You are not part of this project."}):e]})},rC=Gn({key:"DatasetFilters",default:{}});function uht(){const e=yt(Fl),t=yt(vO),[n,r]=cr(rC),[i,o]=T.useState();if(T.useEffect(()=>{e.getProjectMembers().then(s=>{const l=s.map(u=>({value:u.email,label:u.email}));o([{value:"All",label:"All"},...l])})},[e]),!i||t==="USER")return null;const a=s=>{const l=s.target.value;r({...n,authorEmail:l==="All"?void 0:l})};return C.jsx(st,{sx:{width:200},children:C.jsx(Rh,{items:i,id:"author-filter-select",value:n.authorEmail||"All",label:"Author",onChange:a})})}const cht=[{value:0,label:"All"},{value:1,label:"Good"},{value:-1,label:"Bad"}];function fht(){const[e,t]=cr(rC),n=r=>{t({...e,feedback:parseInt(r.target.value)})};return C.jsx(st,{sx:{width:120},children:C.jsx(Rh,{items:cht,id:"feedback-filter-select",value:e.feedback||0,label:"Feedback",onChange:n})})}var dht=ns,pht=function(){return dht.Date.now()},hht=pht,ght=/\s/;function mht(e){for(var t=e.length;t--&&ght.test(e.charAt(t)););return t}var vht=mht,yht=vht,bht=/^\s+/;function _ht(e){return e&&e.slice(0,yht(e)+1).replace(bht,"")}var xht=_ht,wht=xht,l6=rs,Sht=HS,u6=0/0,Cht=/^[-+]0x[0-9a-f]+$/i,Eht=/^0b[01]+$/i,kht=/^0o[0-7]+$/i,Tht=parseInt;function Aht(e){if(typeof e=="number")return e;if(Sht(e))return u6;if(l6(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=l6(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=wht(e);var n=Eht.test(e);return n||kht.test(e)?Tht(e.slice(2),n?2:8):Cht.test(e)?u6:+e}var $ht=Aht,Rht=rs,_T=hht,c6=$ht,Oht="Expected a function",Iht=Math.max,Dht=Math.min;function Pht(e,t,n){var r,i,o,a,s,l,u=0,f=!1,d=!1,p=!0;if(typeof e!="function")throw new TypeError(Oht);t=c6(t)||0,Rht(n)&&(f=!!n.leading,d="maxWait"in n,o=d?Iht(c6(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p);function m($){var I=r,z=i;return r=i=void 0,u=$,a=e.apply(z,I),a}function v($){return u=$,s=setTimeout(b,t),f?m($):a}function y($){var I=$-l,z=$-u,K=t-I;return d?Dht(K,o-z):K}function w($){var I=$-l,z=$-u;return l===void 0||I>=t||I<0||d&&z>=o}function b(){var $=_T();if(w($))return x($);s=setTimeout(b,y($))}function x($){return s=void 0,p&&r?m($):(r=i=void 0,a)}function S(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0}function k(){return s===void 0?a:x(_T())}function A(){var $=_T(),I=w($);if(r=arguments,i=this,l=$,I){if(s===void 0)return v(l);if(d)return clearTimeout(s),s=setTimeout(b,t),m(l)}return s===void 0&&(s=setTimeout(b,t)),a}return A.cancel=S,A.flush=k,A}var Lht=Pht;const Mht=bi(Lht);var qD={},Fht=Nn;Object.defineProperty(qD,"__esModule",{value:!0});var GZ=qD.default=void 0,Nht=Fht(Bn()),Bht=C,jht=(0,Nht.default)((0,Bht.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");GZ=qD.default=jht;const zht=Le("div")(({theme:e})=>({position:"relative",color:e.palette.text.primary,borderRadius:e.shape.borderRadius,border:`${e.palette.divider} solid 1px`,"&:hover":{border:`${e.palette.primary} solid 1px !important`},marginLeft:0,display:"flex",[e.breakpoints.up("sm")]:{width:"auto"}})),f6=Le("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center"})),Uht=Le(Uw)(({theme:e})=>({color:"inherit","& .MuiInputBase-input":{padding:e.spacing(1,1,1,0),paddingLeft:`calc(1em + ${e.spacing(3)})`,transition:e.transitions.create("width"),width:"100%",[e.breakpoints.up("md")]:{width:"20ch"}}}));function Kht(){const[e,t]=cr(rC),r=Mht(a=>{a=a.trim(),t({...e,search:a===""?void 0:a})},300),i=T.useRef(),o=()=>{r(""),i.current&&(i.current.value="")};return C.jsxs(zht,{children:[C.jsx(f6,{sx:{position:"absolute",pointerEvents:"none",height:"100%",paddingX:1},children:C.jsx(GZ,{})}),C.jsx(Uht,{placeholder:"Search messages...",inputProps:{"aria-label":"search",ref:i},onChange:a=>r(a.target.value)}),C.jsx(f6,{children:C.jsx(vr,{onClick:o,children:C.jsx(lh,{})})})]})}function Wht(){return C.jsxs(Ht,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[C.jsx(Kht,{}),C.jsxs(Ht,{direction:"row",alignItems:"center",spacing:2,children:[C.jsx(fht,{}),C.jsx(uht,{})]})]})}var Vht=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{},YZ={};let ua;typeof window<"u"?ua=window:typeof self<"u"?ua=self:ua=Vht;let iR=null,oR=null;const d6=20,xT=ua.clearTimeout,p6=ua.setTimeout,wT=ua.cancelAnimationFrame||ua.mozCancelAnimationFrame||ua.webkitCancelAnimationFrame,h6=ua.requestAnimationFrame||ua.mozRequestAnimationFrame||ua.webkitRequestAnimationFrame;wT==null||h6==null?(iR=xT,oR=function(t){return p6(t,d6)}):(iR=function([t,n]){wT(t),xT(n)},oR=function(t){const n=h6(function(){xT(r),t()}),r=p6(function(){wT(n),t()},d6);return[n,r]});function Hht(e){let t,n,r,i,o,a,s;const l=typeof document<"u"&&document.attachEvent;if(!l){a=function(b){const x=b.__resizeTriggers__,S=x.firstElementChild,k=x.lastElementChild,A=S.firstElementChild;k.scrollLeft=k.scrollWidth,k.scrollTop=k.scrollHeight,A.style.width=S.offsetWidth+1+"px",A.style.height=S.offsetHeight+1+"px",S.scrollLeft=S.scrollWidth,S.scrollTop=S.scrollHeight},o=function(b){return b.offsetWidth!==b.__resizeLast__.width||b.offsetHeight!==b.__resizeLast__.height},s=function(b){if(b.target.className&&typeof b.target.className.indexOf=="function"&&b.target.className.indexOf("contract-trigger")<0&&b.target.className.indexOf("expand-trigger")<0)return;const x=this;a(this),this.__resizeRAF__&&iR(this.__resizeRAF__),this.__resizeRAF__=oR(function(){o(x)&&(x.__resizeLast__.width=x.offsetWidth,x.__resizeLast__.height=x.offsetHeight,x.__resizeListeners__.forEach(function(A){A.call(x,b)}))})};let p=!1,m="";r="animationstart";const v="Webkit Moz O ms".split(" ");let y="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),w="";{const b=document.createElement("fakeelement");if(b.style.animationName!==void 0&&(p=!0),p===!1){for(let x=0;x<v.length;x++)if(b.style[v[x]+"AnimationName"]!==void 0){w=v[x],m="-"+w.toLowerCase()+"-",r=y[x],p=!0;break}}}n="resizeanim",t="@"+m+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=m+"animation: 1ms "+n+"; "}const u=function(p){if(!p.getElementById("detectElementResize")){const m=(t||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',v=p.head||p.getElementsByTagName("head")[0],y=p.createElement("style");y.id="detectElementResize",y.type="text/css",e!=null&&y.setAttribute("nonce",e),y.styleSheet?y.styleSheet.cssText=m:y.appendChild(p.createTextNode(m)),v.appendChild(y)}};return{addResizeListener:function(p,m){if(l)p.attachEvent("onresize",m);else{if(!p.__resizeTriggers__){const v=p.ownerDocument,y=ua.getComputedStyle(p);y&&y.position==="static"&&(p.style.position="relative"),u(v),p.__resizeLast__={},p.__resizeListeners__=[],(p.__resizeTriggers__=v.createElement("div")).className="resize-triggers";const w=v.createElement("div");w.className="expand-trigger",w.appendChild(v.createElement("div"));const b=v.createElement("div");b.className="contract-trigger",p.__resizeTriggers__.appendChild(w),p.__resizeTriggers__.appendChild(b),p.appendChild(p.__resizeTriggers__),a(p),p.addEventListener("scroll",s,!0),r&&(p.__resizeTriggers__.__animationListener__=function(S){S.animationName===n&&a(p)},p.__resizeTriggers__.addEventListener(r,p.__resizeTriggers__.__animationListener__))}p.__resizeListeners__.push(m)}},removeResizeListener:function(p,m){if(l)p.detachEvent("onresize",m);else if(p.__resizeListeners__.splice(p.__resizeListeners__.indexOf(m),1),!p.__resizeListeners__.length){p.removeEventListener("scroll",s,!0),p.__resizeTriggers__.__animationListener__&&(p.__resizeTriggers__.removeEventListener(r,p.__resizeTriggers__.__animationListener__),p.__resizeTriggers__.__animationListener__=null);try{p.__resizeTriggers__=!p.removeChild(p.__resizeTriggers__)}catch{}}}}}YZ={createDetectElementResize:Hht};class XZ extends T.Component{constructor(){super(...arguments);or(this,"state",{height:this.props.defaultHeight||0,width:this.props.defaultWidth||0});or(this,"_parentNode",null);or(this,"_autoSizer",null);or(this,"_detectElementResize",null);or(this,"_onResize",()=>{const{disableHeight:n,disableWidth:r,onResize:i}=this.props;if(this._parentNode){const o=this._parentNode.getBoundingClientRect(),a=o.height||0,s=o.width||0,l=window.getComputedStyle(this._parentNode)||{},u=parseInt(l.paddingLeft,10)||0,f=parseInt(l.paddingRight,10)||0,d=parseInt(l.paddingTop,10)||0,p=parseInt(l.paddingBottom,10)||0,m=a-d-p,v=s-u-f;(!n&&this.state.height!==m||!r&&this.state.width!==v)&&(this.setState({height:a-d-p,width:s-u-f}),typeof i=="function"&&i({height:a,width:s}))}});or(this,"_setRef",n=>{this._autoSizer=n})}componentDidMount(){const{nonce:n}=this.props;if(this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement){this._parentNode=this._autoSizer.parentNode;const r=(0,YZ.createDetectElementResize)(n);r.addResizeListener(this._parentNode,this._onResize),this._detectElementResize=r,this._onResize()}}componentWillUnmount(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}render(){const{children:n,defaultHeight:r,defaultWidth:i,disableHeight:o,disableWidth:a,nonce:s,onResize:l,style:u,tagName:f="div",...d}=this.props,{height:p,width:m}=this.state,v={overflow:"visible"},y={};let w=!1;return o||(p===0&&(w=!0),v.height=0,y.height=p),a||(m===0&&(w=!0),v.width=0,y.width=m),T.createElement(f,{ref:this._setRef,style:{...v,...u},...d},!w&&n(y))}}or(XZ,"defaultProps",{onResize:()=>{},disableHeight:!1,disableWidth:!1,style:{}});var qht=XZ,g6=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Ght(e,t){return!!(e===t||g6(e)&&g6(t))}function Yht(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Ght(e[n],t[n]))return!1;return!0}function ST(e,t){t===void 0&&(t=Yht);var n,r=[],i,o=!1;function a(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return o&&n===this&&t(s,r)||(i=e.apply(this,s),o=!0,n=this,r=s),i}return a}var Xht=typeof performance=="object"&&typeof performance.now=="function",m6=Xht?function(){return performance.now()}:function(){return Date.now()};function v6(e){cancelAnimationFrame(e.id)}function Zht(e,t){var n=m6();function r(){m6()-n>=t?e.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var CT=-1;function y6(e){if(e===void 0&&(e=!1),CT===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),CT=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return CT}var Od=null;function b6(e){if(e===void 0&&(e=!1),Od===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?Od="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Od="negative":Od="positive-ascending"),document.body.removeChild(t),Od}return Od}var Jht=150,Qht=function(t,n){return t};function egt(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,i=e.getItemSize,o=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,f=e.validateProps;return t=function(d){tO(p,d);function p(v){var y;return y=d.call(this,v)||this,y._instanceProps=l(y.props,D_(y)),y._outerRef=void 0,y._resetIsScrollingTimeoutId=null,y.state={instance:D_(y),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof y.props.initialScrollOffset=="number"?y.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},y._callOnItemsRendered=void 0,y._callOnItemsRendered=ST(function(w,b,x,S){return y.props.onItemsRendered({overscanStartIndex:w,overscanStopIndex:b,visibleStartIndex:x,visibleStopIndex:S})}),y._callOnScroll=void 0,y._callOnScroll=ST(function(w,b,x){return y.props.onScroll({scrollDirection:w,scrollOffset:b,scrollUpdateWasRequested:x})}),y._getItemStyle=void 0,y._getItemStyle=function(w){var b=y.props,x=b.direction,S=b.itemSize,k=b.layout,A=y._getItemStyleCache(u&&S,u&&k,u&&x),$;if(A.hasOwnProperty(w))$=A[w];else{var I=n(y.props,w,y._instanceProps),z=i(y.props,w,y._instanceProps),K=x==="horizontal"||k==="horizontal",D=x==="rtl",W=K?I:0;A[w]=$={position:"absolute",left:D?void 0:W,right:D?W:void 0,top:K?0:I,height:K?"100%":z,width:K?z:"100%"}}return $},y._getItemStyleCache=void 0,y._getItemStyleCache=ST(function(w,b,x){return{}}),y._onScrollHorizontal=function(w){var b=w.currentTarget,x=b.clientWidth,S=b.scrollLeft,k=b.scrollWidth;y.setState(function(A){if(A.scrollOffset===S)return null;var $=y.props.direction,I=S;if($==="rtl")switch(b6()){case"negative":I=-S;break;case"positive-descending":I=k-x-S;break}return I=Math.max(0,Math.min(I,k-x)),{isScrolling:!0,scrollDirection:A.scrollOffset<S?"forward":"backward",scrollOffset:I,scrollUpdateWasRequested:!1}},y._resetIsScrollingDebounced)},y._onScrollVertical=function(w){var b=w.currentTarget,x=b.clientHeight,S=b.scrollHeight,k=b.scrollTop;y.setState(function(A){if(A.scrollOffset===k)return null;var $=Math.max(0,Math.min(k,S-x));return{isScrolling:!0,scrollDirection:A.scrollOffset<$?"forward":"backward",scrollOffset:$,scrollUpdateWasRequested:!1}},y._resetIsScrollingDebounced)},y._outerRefSetter=function(w){var b=y.props.outerRef;y._outerRef=w,typeof b=="function"?b(w):b!=null&&typeof b=="object"&&b.hasOwnProperty("current")&&(b.current=w)},y._resetIsScrollingDebounced=function(){y._resetIsScrollingTimeoutId!==null&&v6(y._resetIsScrollingTimeoutId),y._resetIsScrollingTimeoutId=Zht(y._resetIsScrolling,Jht)},y._resetIsScrolling=function(){y._resetIsScrollingTimeoutId=null,y.setState({isScrolling:!1},function(){y._getItemStyleCache(-1,null)})},y}p.getDerivedStateFromProps=function(y,w){return tgt(y,w),f(y),null};var m=p.prototype;return m.scrollTo=function(y){y=Math.max(0,y),this.setState(function(w){return w.scrollOffset===y?null:{scrollDirection:w.scrollOffset<y?"forward":"backward",scrollOffset:y,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},m.scrollToItem=function(y,w){w===void 0&&(w="auto");var b=this.props,x=b.itemCount,S=b.layout,k=this.state.scrollOffset;y=Math.max(0,Math.min(y,x-1));var A=0;if(this._outerRef){var $=this._outerRef;S==="vertical"?A=$.scrollWidth>$.clientWidth?y6():0:A=$.scrollHeight>$.clientHeight?y6():0}this.scrollTo(o(this.props,y,w,k,this._instanceProps,A))},m.componentDidMount=function(){var y=this.props,w=y.direction,b=y.initialScrollOffset,x=y.layout;if(typeof b=="number"&&this._outerRef!=null){var S=this._outerRef;w==="horizontal"||x==="horizontal"?S.scrollLeft=b:S.scrollTop=b}this._callPropsCallbacks()},m.componentDidUpdate=function(){var y=this.props,w=y.direction,b=y.layout,x=this.state,S=x.scrollOffset,k=x.scrollUpdateWasRequested;if(k&&this._outerRef!=null){var A=this._outerRef;if(w==="horizontal"||b==="horizontal")if(w==="rtl")switch(b6()){case"negative":A.scrollLeft=-S;break;case"positive-ascending":A.scrollLeft=S;break;default:var $=A.clientWidth,I=A.scrollWidth;A.scrollLeft=I-$-S;break}else A.scrollLeft=S;else A.scrollTop=S}this._callPropsCallbacks()},m.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&v6(this._resetIsScrollingTimeoutId)},m.render=function(){var y=this.props,w=y.children,b=y.className,x=y.direction,S=y.height,k=y.innerRef,A=y.innerElementType,$=y.innerTagName,I=y.itemCount,z=y.itemData,K=y.itemKey,D=K===void 0?Qht:K,W=y.layout,ie=y.outerElementType,ae=y.outerTagName,q=y.style,G=y.useIsScrolling,J=y.width,le=this.state.isScrolling,Q=x==="horizontal"||W==="horizontal",te=Q?this._onScrollHorizontal:this._onScrollVertical,P=this._getRangeToRender(),me=P[0],j=P[1],L=[];if(I>0)for(var oe=me;oe<=j;oe++)L.push(T.createElement(w,{data:z,key:D(oe,z),index:oe,isScrolling:G?le:void 0,style:this._getItemStyle(oe)}));var ue=r(this.props,this._instanceProps);return T.createElement(ie||ae||"div",{className:b,onScroll:te,ref:this._outerRefSetter,style:F({position:"relative",height:S,width:J,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:x},q)},T.createElement(A||$||"div",{children:L,ref:k,style:{height:Q?"100%":ue,pointerEvents:le?"none":void 0,width:Q?ue:"100%"}}))},m._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var y=this.props.itemCount;if(y>0){var w=this._getRangeToRender(),b=w[0],x=w[1],S=w[2],k=w[3];this._callOnItemsRendered(b,x,S,k)}}if(typeof this.props.onScroll=="function"){var A=this.state,$=A.scrollDirection,I=A.scrollOffset,z=A.scrollUpdateWasRequested;this._callOnScroll($,I,z)}},m._getRangeToRender=function(){var y=this.props,w=y.itemCount,b=y.overscanCount,x=this.state,S=x.isScrolling,k=x.scrollDirection,A=x.scrollOffset;if(w===0)return[0,0,0,0];var $=a(this.props,A,this._instanceProps),I=s(this.props,$,A,this._instanceProps),z=!S||k==="backward"?Math.max(1,b):1,K=!S||k==="forward"?Math.max(1,b):1;return[Math.max(0,$-z),Math.max(0,Math.min(w-1,I+K)),$,I]},p}(T.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var tgt=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},ngt=egt({getItemOffset:function(t,n){var r=t.itemSize;return n*r},getItemSize:function(t,n){var r=t.itemSize;return r},getEstimatedTotalSize:function(t){var n=t.itemCount,r=t.itemSize;return r*n},getOffsetForIndexAndAlignment:function(t,n,r,i,o,a){var s=t.direction,l=t.height,u=t.itemCount,f=t.itemSize,d=t.layout,p=t.width,m=s==="horizontal"||d==="horizontal",v=m?p:l,y=Math.max(0,u*f-v),w=Math.min(y,n*f),b=Math.max(0,n*f-v+f+a);switch(r==="smart"&&(i>=b-v&&i<=w+v?r="auto":r="center"),r){case"start":return w;case"end":return b;case"center":{var x=Math.round(b+(w-b)/2);return x<Math.ceil(v/2)?0:x>y+Math.floor(v/2)?y:x}case"auto":default:return i>=b&&i<=w?i:i<b?b:w}},getStartIndexForOffset:function(t,n){var r=t.itemCount,i=t.itemSize;return Math.max(0,Math.min(r-1,Math.floor(n/i)))},getStopIndexForStartIndex:function(t,n,r){var i=t.direction,o=t.height,a=t.itemCount,s=t.itemSize,l=t.layout,u=t.width,f=i==="horizontal"||l==="horizontal",d=n*s,p=f?u:o,m=Math.ceil((p+r-d)/s);return Math.max(0,Math.min(a-1,n+m-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}});function rgt(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,i=e.stopIndex;return!(r>n||i<t)}function igt(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,i=e.startIndex,o=e.stopIndex,a=[],s=null,l=null,u=i;u<=o;u++){var f=t(u);f?l!==null&&(a.push(s,l),s=l=null):(l=u,s===null&&(s=u))}if(l!==null){for(var d=Math.min(Math.max(l,s+r-1),n-1),p=l+1;p<=d&&!t(p);p++)l=p;a.push(s,l)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var m=a[0]-1;if(!t(m))a[0]=m;else break}return a}var ogt=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},agt=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),sgt=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},_6=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},lgt=function(e){sgt(t,e);function t(){var n,r,i,o;ogt(this,t);for(var a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];return o=(r=(i=_6(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(s))),i),i._lastRenderedStartIndex=-1,i._lastRenderedStopIndex=-1,i._memoizedUnloadedRanges=[],i._onItemsRendered=function(u){var f=u.visibleStartIndex,d=u.visibleStopIndex;i._lastRenderedStartIndex=f,i._lastRenderedStopIndex=d,i._ensureRowsLoaded(f,d)},i._setRef=function(u){i._listRef=u},r),_6(i,o)}return agt(t,[{key:"resetloadMoreItemsCache",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this._memoizedUnloadedRanges=[],r&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var r=this.props.children;return r({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(r,i){var o=this.props,a=o.isItemLoaded,s=o.itemCount,l=o.minimumBatchSize,u=l===void 0?10:l,f=o.threshold,d=f===void 0?15:f,p=igt({isItemLoaded:a,itemCount:s,minimumBatchSize:u,startIndex:Math.max(0,r-d),stopIndex:Math.min(s-1,i+d)});(this._memoizedUnloadedRanges.length!==p.length||this._memoizedUnloadedRanges.some(function(m,v){return p[v]!==m}))&&(this._memoizedUnloadedRanges=p,this._loadUnloadedRanges(p))}},{key:"_loadUnloadedRanges",value:function(r){for(var i=this,o=this.props.loadMoreItems||this.props.loadMoreRows,a=function(u){var f=r[u],d=r[u+1],p=o(f,d);p!=null&&p.then(function(){if(rgt({lastRenderedStartIndex:i._lastRenderedStartIndex,lastRenderedStopIndex:i._lastRenderedStopIndex,startIndex:f,stopIndex:d})){if(i._listRef==null)return;typeof i._listRef.resetAfterIndex=="function"?i._listRef.resetAfterIndex(f,!0):(typeof i._listRef._getItemStyleCache=="function"&&i._listRef._getItemStyleCache(-1),i._listRef.forceUpdate())}})},s=0;s<r.length;s+=2)a(s)}}]),t}(T.PureComponent),GD={},ugt=Nn;Object.defineProperty(GD,"__esModule",{value:!0});var ZZ=GD.default=void 0,cgt=ugt(Bn()),fgt=C,dgt=(0,cgt.default)((0,fgt.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline");ZZ=GD.default=dgt;function pgt({conversationId:e,onDelete:t}){const[n,r]=T.useState(!1),i=yt(Fl),o=()=>{r(!0)},a=()=>{r(!1)},s=async()=>{await CU.promise(i.deleteConversation(e),{loading:"Deleting conversation...",success:"Conversation deleted!",error:l=>l instanceof j_?C.jsx("span",{children:l.message}):C.jsx("span",{})}),t(),a()};return C.jsxs("div",{children:[C.jsx(vr,{className:"delete-conversation-button",size:"small",color:"error",onClick:o,children:C.jsx(ZZ,{})}),n&&C.jsxs(ah,{open:n,onClose:a,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",PaperProps:{sx:{backgroundImage:"none"}},children:[C.jsx(sy,{id:"alert-dialog-title",children:"Delete conversation?"}),C.jsx(sh,{children:C.jsx(hW,{id:"alert-dialog-description",children:"This will delete the conversation as well as it's messages and elements."})}),C.jsxs(Ww,{sx:{color:"text.secondary",p:2},children:[C.jsx(Cf,{variant:"outlined",color:"inherit",onClick:a,children:"Cancel"}),C.jsx(qO,{variant:"outlined",color:"primary",onClick:s,autoFocus:!0,children:"Confirm"})]})]})]})}var YD={},hgt=Nn;Object.defineProperty(YD,"__esModule",{value:!0});var JZ=YD.default=void 0,ggt=hgt(Bn()),mgt=C,vgt=(0,ggt.default)((0,mgt.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.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility");JZ=YD.default=vgt;function ygt({conversationId:e}){return C.jsx(vr,{className:"open-conversation-button",component:Uv,to:`/conversations/${e}`,size:"small",color:"primary",children:C.jsx(JZ,{})})}const bgt=30,_gt=e=>{const t={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric"};return new Date(e).toLocaleDateString(void 0,t)};function xgt(){const e=yt(rC),[t,n]=T.useState([]),[r,i]=T.useState(),o=yt(Fl),[a,s]=T.useState(void 0),[l,u]=T.useState(!0),f=T.useCallback(async x=>{try{const{pageInfo:S,data:k}=await o.getConversations({first:bgt,cursor:x},e);i(S),s(void 0),n(A=>[...A,...k])}catch(S){S instanceof Error&&s(S.message)}finally{u(!1)}},[o,e]),d=T.useCallback(async()=>{n([]),u(!0),i(void 0),f(void 0)},[f]);T.useEffect(()=>{d()},[d]);const p=T.useCallback(()=>{r!=null&&r.hasNextPage&&f(r.endCursor)},[r,f]);if(a)return C.jsx(no,{severity:"error",children:a.message});if(l)return C.jsx(Zt,{color:"text.primary",children:"Loading..."});const m=t.length;if(m===0)return C.jsx(no,{severity:"info",children:"No result"});const v={Id:{minWidth:"60px",width:"5%"},Author:{minWidth:"130px",width:"25%"},Input:{minWidth:"200px",width:"35%"},Date:{minWidth:"120px",width:"25%"},Actions:{minWidth:"80px",width:"10%"}},y=({text:x,col:S})=>C.jsx(Zt,{noWrap:!0,sx:{width:S.width,minWidth:S.minWidth,fontSize:"0.875rem"},color:"text.primary",children:x}),w=({index:x,style:S})=>{var A,$;const k=t[x];return C.jsxs(st,{className:"conversation-row",style:S,sx:{display:"flex",alignItems:"center",borderBottom:I=>`1px solid ${I.palette.divider}`},children:[C.jsx(y,{text:k.id,col:v.Id}),C.jsx(y,{text:((A=k.author)==null?void 0:A.email)||"LocalUser",col:v.Author}),C.jsx(y,{text:($=k.messages[0])==null?void 0:$.content,col:v.Input}),C.jsx(y,{text:_gt(k.createdAt),col:v.Date}),C.jsxs(Ht,{direction:"row",sx:{width:v.Actions.width,minWidth:v.Actions.minWidth},children:[C.jsx(ygt,{conversationId:k.id}),C.jsx(pgt,{conversationId:k.id,onDelete:()=>d()})]})]})},b=Object.entries(v).map(([x,S])=>C.jsx(Zt,{sx:{fontSize:"0.875rem",width:S.width,minWidth:S.minWidth},color:"primary",children:x},x));return C.jsxs(st,{sx:{height:"100%",display:"flex",flexDirection:"column"},children:[C.jsx(st,{sx:{display:"flex",alignItems:"center",height:"40px",borderBottom:x=>`1px solid ${x.palette.divider}`},children:b}),C.jsx(st,{flexGrow:1,children:C.jsx(qht,{children:({height:x,width:S})=>C.jsx(lgt,{isItemLoaded:k=>!!t[k],itemCount:r!=null&&r.hasNextPage?m+1:m,loadMoreItems:p,children:({onItemsRendered:k,ref:A})=>C.jsx(ngt,{height:x,width:S,itemSize:55,itemCount:m,onItemsRendered:k,ref:A,children:w})})})})]})}function wgt(){return C.jsxs(st,{display:"flex",flexDirection:"column",width:"100%",maxWidth:"60rem",mx:"auto",flexGrow:1,children:[C.jsx(st,{my:2}),C.jsx(Wht,{}),C.jsx(st,{my:2}),C.jsx(xgt,{})]})}function Sgt(){return C.jsx(Uy,{children:C.jsx(wgt,{})})}function Cgt(){const e=Wu();return cr(Ks),gy(),T.useState("Platform"),e&&e("/"),C.jsx(C.Fragment,{})}function Egt(){return C.jsx(Uy,{children:C.jsx(SMe,{})})}function kgt(){const[e,t]=cr(Gw),n=yt(ya),r=Wu(),i=(n==null?void 0:n.project.user_env)||[],o={},a={};i.forEach(f=>{o[f]=e[f]||"",a[f]=cx().required()});const s=ND(a),l=DD({initialValues:o,validationSchema:s,onSubmit:async f=>{localStorage.setItem("userEnv",JSON.stringify(f)),t(f),Mr.success("Saved successfully"),r("/")}});i.length===0&&r("/");const u=f=>{const d=!!l.errors[f];return C.jsx(BZ,{id:f,className:f,label:f,value:l.values[f],size:"medium",hasError:d,description:d?l.errors[f]:"",onChange:p=>l.setFieldValue(f,p.target.value)})};return C.jsxs(st,{sx:{display:"flex",flexDirection:"column",flexGrow:1},children:[C.jsx(qZ,{}),C.jsxs(st,{id:"env",display:"flex",flexDirection:"column",flexGrow:1,gap:2,sx:{maxWidth:"60rem",width:"100%",mx:"auto"},children:[C.jsx(Zt,{mt:5,fontSize:"18px",fontWeight:700,color:"text.primary",children:"Required API keys"}),C.jsx(no,{severity:"info",children:"To use this app, the following API keys are required. The keys are stored on your device's local storage."}),C.jsxs("form",{onSubmit:l.handleSubmit,children:[i.map(f=>u(f)),C.jsx(Cf,{id:"submit-env",fullWidth:!0,type:"submit",variant:"contained",sx:{mt:1},children:"Save"})]})]})]})}const Tgt=({status:e})=>e==="running"?C.jsx(st,{sx:{marginTop:"-2px",width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",color:gt[700]},children:C.jsx(lO,{color:"inherit",size:18})}):C.jsxs(R_,{width:24,height:24,sx:{marginTop:"-2px",fill:"none"},children:[e==="done"&&C.jsxs(C.Fragment,{children:[C.jsx("circle",{cx:12,cy:12,r:9,fill:pV[500]}),C.jsx("path",{stroke:wl,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m15.333 9.5-4.583 4.583L8.667 12"})]}),e==="ready"&&C.jsx("circle",{cx:12,cy:12,r:8.25,stroke:gt[700],strokeWidth:1.5}),e==="failed"&&C.jsxs(C.Fragment,{children:[C.jsx("circle",{cx:12,cy:12,r:9,fill:ks[500]}),C.jsx("path",{stroke:wl,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m14.5 9.5-5 5m0-5 5 5"})]})]}),x6=({index:e,task:t})=>{const n=hn(PH),r=nr();return C.jsx(Hm,{disableGutters:!0,className:`task task-status-${t.status}`,children:C.jsxs(dEe,{disableRipple:!t.forId,sx:{color:{ready:r.palette.mode==="dark"?gt[300]:gt[700],running:r.palette.mode==="dark"?gt[100]:gt[850],done:gt[500],failed:gt[500]}[t.status]||r.palette.text.secondary,fontWeight:t.status==="running"?"700":"500",alignItems:"flex-start",fontSize:"14px",lineHeight:1.36,cursor:t.forId?"pointer":"default"},onClick:()=>{if(t.forId){n(t.forId);const i=document.getElementById(`message-${t.forId}`);i&&i.scrollIntoView({behavior:"smooth",block:"start",inline:"start"})}},children:[C.jsx(st,{sx:{paddingRight:r.spacing(1),flex:"0 0 18px",width:"18px"},children:e}),C.jsx(Tgt,{status:t.status}),C.jsx(st,{sx:{paddingLeft:r.spacing(2)},children:t.title})]})})},w6=({status:e})=>{const t=nr();return C.jsxs(st,{sx:{display:"flex",alignItems:"center",flexDirection:"row",padding:t.spacing(2)},children:[C.jsx(st,{sx:{flexGrow:"1",fontWeight:"600",paddingLeft:t.spacing(1)},children:"🗒️ Task List"}),C.jsx(aO,{label:e||"?",sx:{fontWeight:"500",borderRadius:"4px",backgroundColor:t.palette.background.default,color:t.palette.mode==="dark"?gt[500]:gt[600]}})]})},S6=e=>({background:e.palette.background.paper,borderRadius:"4px",border:`1px solid ${e.palette.divider}`,width:"100%",display:"flex",flexDirection:"column",boxShadow:e.palette.mode==="dark"?"0px 4px 20px 0px rgba(0, 0, 0, 0.20)":"0px 4px 20px 0px rgba(0, 0, 0, 0.05)"});function C6({tasklist:e,isMobile:t}){const n=nr();let r=null;try{e!=null&&e.content&&(r=JSON.parse(e.content))}catch(o){console.error(o),r=null}if(!r)return null;const i=r.tasks;if(t){let o=i.length-1;for(let s=0;s<i.length;s++)if(i[s].status==="running"||i[s].status==="ready"){o=s;break}const a=i==null?void 0:i[o];return C.jsx(st,{component:"aside",sx:{color:n.palette.text.primary,padding:n.spacing(2),width:"100%",boxSizing:"border-box",display:{xs:"flex",md:"none"}},className:"tasklist tasklist-mobile",children:C.jsxs(st,{sx:{...S6(n)},children:[C.jsx(w6,{status:r.status}),a&&C.jsx(P_,{children:C.jsx(x6,{index:o+1,task:a})})]})})}return C.jsx(st,{component:"aside",sx:{color:n.palette.text.primary,padding:n.spacing(2),width:"380px",flexShrink:"0",display:{xs:"none",md:"flex"}},className:"tasklist tasklist-desktop",children:C.jsxs(st,{sx:{...S6(n)},children:[C.jsx(w6,{status:r==null?void 0:r.status}),C.jsx(st,{sx:{overflowY:"auto"},children:C.jsx(P_,{children:i==null?void 0:i.map((o,a)=>C.jsx(x6,{index:a+1,task:o},a))})})]})})}const Agt="chat_history",$gt=e=>({setSelf:t,onSet:n})=>{const r=localStorage.getItem(e);r!=null&&t(JSON.parse(r)),n((i,o,a)=>{a?localStorage.removeItem(e):localStorage.setItem(e,JSON.stringify(i))})},XD=Gn({key:"ChatHistory",default:{open:!1,messages:[]},effects:[$gt(Agt)]});function Rgt(){const[e,t]=cr(my),n=yt(Tf);if(!e)return null;const r=()=>{t(!1),n==null||n.socket.emit("stop")};return C.jsx(st,{margin:"auto",children:C.jsx(OO,{id:"stop-button",startIcon:C.jsx(lh,{}),variant:"contained",onClick:r,children:"Stop task"})})}var ZD={},Ogt=Nn;Object.defineProperty(ZD,"__esModule",{value:!0});var QZ=ZD.default=void 0;Pgt(T);var Igt=Ogt(Bn()),Dgt=C;function eJ(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(eJ=function(r){return r?n:t})(e)}function Pgt(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=eJ(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r}var Lgt=(0,Igt.default)((0,Dgt.jsx)("path",{d:"M9.78 18.65l.28-4.23 7.68-6.92c.34-.31-.07-.46-.52-.19L7.74 13.3 3.64 12c-.88-.25-.89-.86.2-1.3l15.97-6.16c.73-.33 1.43.18 1.15 1.3l-2.72 12.81c-.19.91-.74 1.13-1.5.71L12.6 16.3l-1.99 1.93c-.23.23-.42.42-.83.42z"}),"Telegram");QZ=ZD.default=Lgt;var JD={},Mgt=Nn;Object.defineProperty(JD,"__esModule",{value:!0});var tJ=JD.default=void 0,Fgt=Mgt(Bn()),E6=C,Ngt=(0,Fgt.default)([(0,E6.jsx)("path",{d:"M6 17.59 7.41 19 12 14.42 16.59 19 18 17.59l-6-6z"},"0"),(0,E6.jsx)("path",{d:"m6 11 1.41 1.41L12 7.83l4.59 4.58L18 11l-6-6z"},"1")],"KeyboardDoubleArrowUp");tJ=JD.default=Ngt;function Bgt(e){const t={},n=wZ(e).reverse();return n==null||n.forEach(r=>{const{createdAt:i,content:o}=r,a={day:"numeric",month:"numeric",year:"numeric"},s=new Date(i).toLocaleDateString(void 0,a);t[s]||(t[s]=[]);const l={hour:"numeric",minute:"numeric"};t[s].push({key:i,hour:new Date(i).toLocaleTimeString(void 0,l),content:o})}),t}function jgt({onClick:e}){const[t,n]=cr(XD),r=T.useRef(),[i,o]=T.useState(null);t.open&&!i&&r.current&&o(r.current);const a=p=>n(m=>({...m,open:p})),s=C.jsxs(Ht,{disabled:!0,direction:"row",p:1,justifyContent:"space-between",alignItems:"center",children:[C.jsx(Zt,{color:"text.primary",sx:{fontSize:"14px",fontWeight:700},children:"Last messages"}),C.jsx(vr,{onClick:()=>n(p=>({...p,messages:[]})),children:C.jsx(bMe,{})})]},"title"),l=(t==null?void 0:t.messages.length)===0?C.jsx("div",{id:"history-empty",disabled:!0,children:C.jsx(Zt,{color:"text.secondary",sx:{fontSize:"12px",fontWeight:700,padding:"16px 12px",textTransform:"uppercase"},children:"Such empty..."})},"empty"):null,u=t.messages?null:C.jsx("div",{id:"history-loading",disabled:!0,children:C.jsx(Zt,{color:"text.secondary",sx:{fontSize:"12px",fontWeight:700,padding:"16px 12px",textTransform:"uppercase"},children:"Loading..."})},"loading"),f=[s,l,u];if(t.messages){const p=Bgt(t.messages);Object.keys(p).forEach(m=>{f.push(C.jsx("div",{disabled:!0,children:C.jsx(Zt,{color:"text.primary",sx:{p:1,fontSize:"10px",fontWeight:700,color:gt[500]},children:m})},m));let v="";p[m].forEach(y=>{v!==y.content&&(v=y.content,f.push(C.jsx(qm,{className:"history-item",onClick:w=>{w.stopPropagation(),w.preventDefault(),a(!1),e(y.content)},disableRipple:!0,sx:{p:1,alignItems:"baseline",borderRadius:"4px"},children:C.jsx(Zt,{color:"text.primary",sx:{whiteSpace:"pre-wrap",fontSize:"14px",maxHeight:"50px",display:"-webkit-box",WebkitLineClamp:"2",WebkitBoxOrient:"vertical",flexGrow:0,overflow:"hidden",textOverflow:"ellipsis",lineHeight:"24px"},children:y.content})},y.key)))})})}const d=i?C.jsx(uy,{autoFocus:!0,anchorEl:i,open:t.open,onClose:()=>a(!1),PaperProps:{sx:{p:1,backgroundImage:"none",mt:-2,ml:-1,overflow:"visible",maxHeight:"314px",width:"334px",overflowY:"auto",border:p=>`1px solid ${p.palette.divider}`,boxShadow:p=>p.palette.mode==="light"?"0px 2px 4px 0px #0000000D":"0px 10px 10px 0px #0000000D"}},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"},children:f}):null;return C.jsxs("div",{children:[d,C.jsx(Io,{title:"Show history",children:C.jsx(vr,{color:"inherit",onClick:()=>a(!t.open),ref:r,children:C.jsx(tJ,{})})})]})}function zgt(e){const t=e.querySelector("textarea");return t?t.value.split(`
|
|
533
|
-
`).length:0}const Ugt=({onSubmit:e,onReply:t})=>{const n=T.useRef(null),r=hn(XD),[i,o]=cr(vy),a=yt(my),s=yt(fS),l=yt(Tf),[u,f]=T.useState(""),[d,p]=T.useState(!1),v=!((l==null?void 0:l.socket)&&!(l!=null&&l.error))||a||(s==null?void 0:s.spec.type)==="file";T.useEffect(()=>{n.current&&!a&&!v&&n.current.focus()},[a,v]);const y=T.useCallback(()=>{u===""||v||(s?t(u):e(u),f(""))},[u,v,f,s,e]),w=()=>{p(!0)},b=()=>{p(!1)},x=T.useCallback($=>{$.key==="Enter"&&!$.shiftKey?d||($.preventDefault(),y()):$.key==="ArrowUp"&&zgt($.currentTarget)<=1&&r(z=>({...z,open:!0}))},[y,r,d]),S=T.useCallback($=>{n.current&&f($)},[]),k=C.jsxs(C.Fragment,{children:[i.inputs.length>0&&C.jsx(vr,{disabled:v,color:"inherit",onClick:()=>o($=>({...$,open:!0})),children:C.jsx(mD,{})}),C.jsx(jgt,{onClick:S})]}),A=C.jsx(vr,{disabled:v,color:"inherit",onClick:()=>y(),children:C.jsx(QZ,{})});return C.jsx(Hw,{inputRef:n,id:"chat-input",autoFocus:!0,multiline:!0,variant:"standard",autoComplete:"false",placeholder:"Type your message here...",disabled:v,onChange:$=>f($.target.value),onKeyDown:x,onCompositionStart:w,onCompositionEnd:b,value:u,fullWidth:!0,InputProps:{disableUnderline:!0,startAdornment:C.jsx(tB,{sx:{ml:1,color:"text.secondary"},position:"start",children:k}),endAdornment:C.jsx(tB,{position:"end",sx:{mr:1,color:"text.secondary"},children:A})},sx:{backgroundColor:"background.paper",borderRadius:1,border:$=>`1px solid ${$.palette.divider}`,boxShadow:"box-shadow: 0px 2px 4px 0px #0000000D",textarea:{height:"34px",maxHeight:"30vh",overflowY:"auto !important",resize:"none",paddingBottom:"0.75rem",paddingTop:"0.75rem",color:"text.primary",lineHeight:"24px"}}})},Kgt="/assets/logo_dark-bc7401f6.svg",Wgt="/assets/logo_light-f19fc2ea.svg",Vgt=({width:e,style:t})=>{const{theme:n}=yt(Ks),r=n==="light"?Wgt:Kgt;return C.jsx("img",{src:r,style:t,width:e||40})};function Hgt(){return C.jsx(Ht,{mx:"auto",children:C.jsxs("a",{href:"https://github.com/Chainlit/chainlit",target:"_blank",style:{display:"flex",alignItems:"center",textDecoration:"none"},children:[C.jsx(Zt,{fontSize:"12px",color:"text.secondary",children:"Built with"}),C.jsx(Vgt,{width:65,style:{filter:"grayscale(1)",marginLeft:"4px"}})]})})}function qgt({onSubmit:e,onReply:t}){return C.jsxs(st,{display:"flex",flexDirection:"column",gap:1,py:2,sx:{boxSizing:"border-box",width:"100%",maxWidth:"60rem",m:"auto",justifyContent:"center"},children:[C.jsx(Rgt,{}),C.jsx(st,{children:C.jsx(Ugt,{onSubmit:e,onReply:t})}),C.jsx(Hgt,{})]})}var Ggt=zS,Ygt=jX,Xgt=BX;function Zgt(e,t){var n={};return t=Xgt(t),Ygt(e,function(r,i,o){Ggt(n,i,t(r,i,o))}),n}var Jgt=Zgt;const Qgt=bi(Jgt);function emt(){const e=yt(Tf),[t,n]=cr(vy),[r,i]=cr(WO),o=yt(LH),a=DD({initialValues:r,enableReinitialize:!0,onSubmit:async()=>{}}),s=()=>n(f=>({...f,open:!1})),l=()=>{i(a.values);const f=Qgt(a.values,d=>d!==""?d:null);e==null||e.socket.emit("chat_settings_change",f),s()},u=()=>{a.setValues(o)};return C.jsxs(ah,{open:t.open,onClose:s,id:"chat-settings-dialog",PaperProps:{sx:{backgroundImage:"none"}},children:[C.jsx(sy,{id:"alert-dialog-title",children:"Settings panel"}),C.jsx(sh,{children:C.jsx(st,{sx:{display:"flex",flexDirection:"column",minWidth:"20vw",maxHeight:"70vh",gap:"15px"},children:t.inputs.map(f=>C.jsx(jZ,{element:{...f,value:a.values[f.id],onChange:a.handleChange,setField:a.setFieldValue}},f.id))})}),C.jsxs(Ww,{sx:{p:2},children:[C.jsx(zu,{onClick:u,color:"primary",variant:"outlined",children:"Reset"}),C.jsx("div",{style:{flex:"1 0 0"}}),C.jsx(yy,{onClick:s,children:"Cancel"}),C.jsx(zu,{id:"confirm",variant:"outlined",onClick:l,autoFocus:!0,children:"Confirm"})]})]})}const nJ=()=>{const e=yt(ya);return e!=null&&e.markdown?C.jsx(st,{overflow:"auto",flexGrow:1,children:C.jsx(st,{id:"welcome-screen",sx:{maxWidth:"60rem",width:"100%",m:"auto",color:"text.primary",lineHeight:"25px",fontSize:"1rem",fontFamily:"-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji",display:"flex",flexDirection:"column"},children:e!=null&&e.markdown?C.jsx(lS,{remarkPlugins:[UO],components:{a:({children:t,...n})=>C.jsx(ly,{...n,target:"_blank",children:t}),code:({...t})=>C.jsx(KO,{...t})},children:e==null?void 0:e.markdown}):null})}):C.jsx(st,{flexGrow:1})},tmt=()=>{const{user:e,isAuthenticated:t}=Qu(),n=yt(Tf),r=yt(fS),[i,o]=cr(cS),a=yt(tS),s=yt(TO),l=yt(HD),u=yt(ya),f=hn(XD),[d,p]=T.useState(!0),m=T.useCallback(async w=>{if(!(n==null?void 0:n.socket.id))return;const x={id:M_(),author:(e==null?void 0:e.name)||"User",authorIsUser:!0,content:w,createdAt:new Date().toISOString()};f(S=>{const A=[...S.messages||[]];return A.push({content:w,createdAt:new Date().getTime()}),{...S,messages:A.length>50?A.slice(A.length-50):A}}),p(!0),o(S=>[...S,x]),n==null||n.socket.emit("ui_message",x)},[e,n,t,u]),v=T.useCallback(async w=>{if(!r)return;const b={id:M_(),author:(e==null?void 0:e.name)||"User",authorIsUser:!0,content:w,createdAt:new Date().toISOString()};r.callback(b),p(!0),o(x=>[...x,b])},[r,e]),y=s.at(-1);return C.jsxs(st,{display:"flex",width:"100%",height:"0",flexGrow:1,children:[C.jsx(zZ,{}),C.jsx(emt,{}),C.jsx(C6,{tasklist:y,isMobile:!1}),C.jsxs(IH,{children:[C.jsx(C6,{tasklist:y,isMobile:!0}),C.jsx(st,{my:1}),(n==null?void 0:n.error)&&C.jsx(no,{id:"session-error",severity:"error",children:"Could not reach the server."}),C.jsxs(rq,{children:[!!i.length&&C.jsx(tq,{actions:l,elements:a,messages:i,autoScroll:d,setAutoScroll:p}),!i.length&&C.jsx(nJ,{}),C.jsx(qgt,{onReply:v,onSubmit:m})]})]})]})};function nmt(){return C.jsx(Uy,{children:C.jsx(tmt,{})})}function rmt(){const{loginWithRedirect:e,isAuthenticated:t}=Qu(),n=Wu();return T.useEffect(()=>{t?n("/"):e({authorizationParams:{audience:"chainlit-cloud"}})},[t]),null}function imt(){return C.jsx(Uy,{children:C.jsx(st,{sx:{px:2},children:C.jsx(nJ,{})})})}const omt=pse([{path:"/",element:C.jsx(nmt,{})},{path:"/readme",element:C.jsx(imt,{})},{path:"/env",element:C.jsx(kgt,{})},{path:"/conversations/:id",element:C.jsx(Uy,{children:C.jsx(Ipt,{})})},{path:"/dataset",element:C.jsx(Sgt,{})},{path:"/element/:id",element:C.jsx(Egt,{})},{path:"/login",element:C.jsx(rmt,{})},{path:"/design",element:C.jsx(Cgt,{})},{path:"/api/auth/callback",element:C.jsx(a$e,{})},{path:"*",element:C.jsx(ose,{replace:!0,to:"/"})}]);function aR(){return aR=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},aR.apply(this,arguments)}var rJ=["shift","alt","meta","mod","ctrl"],amt={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function Eu(e){return(amt[e]||e).trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function smt(e){return rJ.includes(e)}function ET(e,t){return t===void 0&&(t=","),e.split(t)}function kT(e,t,n){t===void 0&&(t="+");var r=e.toLocaleLowerCase().split(t).map(function(a){return Eu(a)}),i={alt:r.includes("alt"),ctrl:r.includes("ctrl")||r.includes("control"),shift:r.includes("shift"),meta:r.includes("meta"),mod:r.includes("mod")},o=r.filter(function(a){return!rJ.includes(a)});return aR({},i,{keys:o,description:n})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(e){e.key!==void 0&&iJ([Eu(e.key),Eu(e.code)])}),document.addEventListener("keyup",function(e){e.key!==void 0&&oJ([Eu(e.key),Eu(e.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){ku.clear()})})();var ku=new Set;function lmt(e,t){t===void 0&&(t=",");var n=Array.isArray(e)?e:e.split(t);return n.every(function(r){return ku.has(r.trim().toLowerCase())})}function iJ(e){var t=Array.isArray(e)?e:[e];ku.has("meta")&&ku.forEach(function(n){return!smt(n)&&ku.delete(n.toLowerCase())}),t.forEach(function(n){return ku.add(n.toLowerCase())})}function oJ(e){var t=Array.isArray(e)?e:[e];e==="meta"?ku.clear():t.forEach(function(n){return ku.delete(n.toLowerCase())})}function umt(e,t,n){(typeof n=="function"&&n(e,t)||n===!0)&&e.preventDefault()}function cmt(e,t,n){return typeof n=="function"?n(e,t):n===!0||n===void 0}function fmt(e){return aJ(e,["input","textarea","select"])}function aJ(e,t){var n=e.target;t===void 0&&(t=!1);var r=n&&n.tagName;return t instanceof Array?!!(r&&t&&t.some(function(i){return i.toLowerCase()===r.toLowerCase()})):!!(r&&t&&t===!0)}function dmt(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(function(n){return t.includes(n)})||e.includes("*"):!0}var pmt=function(t,n,r){r===void 0&&(r=!1);var i=n.alt,o=n.meta,a=n.mod,s=n.shift,l=n.ctrl,u=n.keys,f=t.key,d=t.code,p=t.ctrlKey,m=t.metaKey,v=t.shiftKey,y=t.altKey,w=Eu(d),b=f.toLowerCase();if(!r){if(i===!y&&b!=="alt"||s===!v&&b!=="shift")return!1;if(a){if(!m&&!p)return!1}else if(o===!m&&b!=="meta"&&b!=="os"||l===!p&&b!=="ctrl"&&b!=="control")return!1}return u&&u.length===1&&(u.includes(b)||u.includes(w))?!0:u?lmt(u):!u},hmt=T.createContext(void 0),gmt=function(){return T.useContext(hmt)};function sJ(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(n,r){return n&&sJ(e[r],t[r])},!0):e===t}var mmt=T.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),vmt=function(){return T.useContext(mmt)};function ymt(e){var t=T.useRef(void 0);return sJ(t.current,e)||(t.current=e),t.current}var k6=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},bmt=typeof window<"u"?T.useLayoutEffect:T.useEffect;function _mt(e,t,n,r){var i=T.useRef(null),o=T.useRef(!1),a=n instanceof Array?r instanceof Array?void 0:r:n,s=e instanceof Array?e.join(a==null?void 0:a.splitKey):e,l=n instanceof Array?n:r instanceof Array?r:void 0,u=T.useCallback(t,l??[]),f=T.useRef(u);l?f.current=u:f.current=t;var d=ymt(a),p=vmt(),m=p.enabledScopes,v=gmt();return bmt(function(){if(!((d==null?void 0:d.enabled)===!1||!dmt(m,d==null?void 0:d.scopes))){var y=function(k,A){var $;if(A===void 0&&(A=!1),!(fmt(k)&&!aJ(k,d==null?void 0:d.enableOnFormTags))&&!(d!=null&&d.ignoreEventWhen!=null&&d.ignoreEventWhen(k))){if(i.current!==null&&document.activeElement!==i.current&&!i.current.contains(document.activeElement)){k6(k);return}($=k.target)!=null&&$.isContentEditable&&!(d!=null&&d.enableOnContentEditable)||ET(s,d==null?void 0:d.splitKey).forEach(function(I){var z,K=kT(I,d==null?void 0:d.combinationKey);if(pmt(k,K,d==null?void 0:d.ignoreModifiers)||(z=K.keys)!=null&&z.includes("*")){if(A&&o.current)return;if(umt(k,K,d==null?void 0:d.preventDefault),!cmt(k,K,d==null?void 0:d.enabled)){k6(k);return}f.current(k,K),A||(o.current=!0)}})}},w=function(k){k.key!==void 0&&(iJ(Eu(k.code)),((d==null?void 0:d.keydown)===void 0&&(d==null?void 0:d.keyup)!==!0||d!=null&&d.keydown)&&y(k))},b=function(k){k.key!==void 0&&(oJ(Eu(k.code)),o.current=!1,d!=null&&d.keyup&&y(k,!0))},x=i.current||(a==null?void 0:a.document)||document;return x.addEventListener("keyup",b),x.addEventListener("keydown",w),v&&ET(s,d==null?void 0:d.splitKey).forEach(function(S){return v.addHotkey(kT(S,d==null?void 0:d.combinationKey,d==null?void 0:d.description))}),function(){x.removeEventListener("keyup",b),x.removeEventListener("keydown",w),v&&ET(s,d==null?void 0:d.splitKey).forEach(function(S){return v.removeHotkey(kT(S,d==null?void 0:d.combinationKey,d==null?void 0:d.description))})}}},[s,d,m]),i}function xmt(){const e=hn(Ks);return _mt("s",()=>e(t=>({...t,open:!t.open}))),null}var QD={},wmt=Nn;Object.defineProperty(QD,"__esModule",{value:!0});var lJ=QD.default=void 0,Smt=wmt(Bn()),Cmt=C,Emt=(0,Smt.default)((0,Cmt.jsx)("path",{d:"M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49zM12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"}),"DarkModeOutlined");lJ=QD.default=Emt;var eP={},kmt=Nn;Object.defineProperty(eP,"__esModule",{value:!0});var uJ=eP.default=void 0,Tmt=kmt(Bn()),Amt=C,$mt=(0,Tmt.default)((0,Amt.jsx)("path",{d:"M12 3c-.46 0-.93.04-1.4.14-2.76.53-4.96 2.76-5.48 5.52-.48 2.61.48 5.01 2.22 6.56.43.38.66.91.66 1.47V19c0 1.1.9 2 2 2h.28c.35.6.98 1 1.72 1s1.38-.4 1.72-1H14c1.1 0 2-.9 2-2v-2.31c0-.55.22-1.09.64-1.46C18.09 13.95 19 12.08 19 10c0-3.87-3.13-7-7-7zm2 16h-4v-1h4v1zm0-2h-4v-1h4v1zm-1.5-5.59V14h-1v-2.59L9.67 9.59l.71-.71L12 10.5l1.62-1.62.71.71-1.83 1.82z"}),"EmojiObjects");uJ=eP.default=$mt;var tP={},Rmt=Nn;Object.defineProperty(tP,"__esModule",{value:!0});var cJ=tP.default=void 0,Omt=Rmt(Bn()),Imt=C,Dmt=(0,Omt.default)((0,Imt.jsx)("path",{d:"M4 20h16v2H4zM4 2h16v2H4zm9 7h3l-4-4-4 4h3v6H8l4 4 4-4h-3z"}),"Expand");cJ=tP.default=Dmt;function Pmt(){const[e,t]=cr(Ks);return C.jsx(ah,{open:e.open,onClose:()=>t(n=>({...n,open:!1})),id:"settings-dialog",PaperProps:{sx:{backgroundImage:"none"}},children:C.jsx(sh,{children:C.jsxs(P_,{sx:{width:"100%",maxWidth:360},subheader:C.jsx(yxe,{children:"Settings"}),children:[C.jsxs(Hm,{sx:{display:"flex",gap:2},children:[C.jsx(pp,{children:C.jsx(cJ,{})}),C.jsx($b,{id:"list-expand-all",primary:"Expand Messages"}),C.jsx(st,{children:C.jsx(Kb,{id:"switch-expand-all",onChange:()=>t(n=>({...n,expandAll:!n.expandAll})),checked:e.expandAll,inputProps:{"aria-labelledby":"switch-expand-all"}})})]}),C.jsxs(Hm,{sx:{display:"flex",gap:2},children:[C.jsx(pp,{children:C.jsx(uJ,{})}),C.jsx($b,{id:"hide-cot",primary:"Hide Chain of Thought"}),C.jsx(st,{children:C.jsx(Kb,{id:"switch-hide-cot",onChange:()=>t(n=>({...n,hideCot:!n.hideCot})),checked:e.hideCot,inputProps:{"aria-labelledby":"hide-cot"}})})]}),C.jsxs(Hm,{sx:{display:"flex",gap:2},children:[C.jsx(pp,{children:C.jsx(lJ,{})}),C.jsx($b,{id:"switch-theme",primary:"Dark mode"}),C.jsx(st,{children:C.jsx(Kb,{id:"switch-theme",onChange:()=>{const n=e.theme==="light"?"dark":"light";localStorage.setItem("themeVariant",n),t(r=>({...r,theme:n}))},checked:e.theme==="dark",inputProps:{"aria-labelledby":"switch-theme"}})})]})]})})})}function T6(e){return e!=null&&typeof e=="object"}function fJ(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const o=e[i],a=t[i],s=T6(o)&&T6(a);if(s&&!fJ(o,a)||!s&&o!==a)return!1}return!0}const Fs=Object.create(null);Fs.open="0";Fs.close="1";Fs.ping="2";Fs.pong="3";Fs.message="4";Fs.upgrade="5";Fs.noop="6";const Wb=Object.create(null);Object.keys(Fs).forEach(e=>{Wb[Fs[e]]=e});const Lmt={type:"error",data:"parser error"},Mmt=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Fmt=typeof ArrayBuffer=="function",Nmt=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,dJ=({type:e,data:t},n,r)=>Mmt&&t instanceof Blob?n?r(t):A6(t,r):Fmt&&(t instanceof ArrayBuffer||Nmt(t))?n?r(t):A6(new Blob([t]),r):r(Fs[e]+(t||"")),A6=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)},$6="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",km=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<$6.length;e++)km[$6.charCodeAt(e)]=e;const Bmt=e=>{let t=e.length*.75,n=e.length,r,i=0,o,a,s,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),f=new Uint8Array(u);for(r=0;r<n;r+=4)o=km[e.charCodeAt(r)],a=km[e.charCodeAt(r+1)],s=km[e.charCodeAt(r+2)],l=km[e.charCodeAt(r+3)],f[i++]=o<<2|a>>4,f[i++]=(a&15)<<4|s>>2,f[i++]=(s&3)<<6|l&63;return u},jmt=typeof ArrayBuffer=="function",pJ=(e,t)=>{if(typeof e!="string")return{type:"message",data:hJ(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:zmt(e.substring(1),t)}:Wb[n]?e.length>1?{type:Wb[n],data:e.substring(1)}:{type:Wb[n]}:Lmt},zmt=(e,t)=>{if(jmt){const n=Bmt(e);return hJ(n,t)}else return{base64:!0,data:e}},hJ=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},gJ=String.fromCharCode(30),Umt=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((o,a)=>{dJ(o,!1,s=>{r[a]=s,++i===n&&t(r.join(gJ))})})},Kmt=(e,t)=>{const n=e.split(gJ),r=[];for(let i=0;i<n.length;i++){const o=pJ(n[i],t);if(r.push(o),o.type==="error")break}return r},mJ=4;function Or(e){if(e)return Wmt(e)}function Wmt(e){for(var t in Or.prototype)e[t]=Or.prototype[t];return e}Or.prototype.on=Or.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};Or.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};Or.prototype.off=Or.prototype.removeListener=Or.prototype.removeAllListeners=Or.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks["$"+e],this};Or.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this};Or.prototype.emitReserved=Or.prototype.emit;Or.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};Or.prototype.hasListeners=function(e){return!!this.listeners(e).length};const na=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function vJ(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const Vmt=na.setTimeout,Hmt=na.clearTimeout;function iC(e,t){t.useNativeTimers?(e.setTimeoutFn=Vmt.bind(na),e.clearTimeoutFn=Hmt.bind(na)):(e.setTimeoutFn=na.setTimeout.bind(na),e.clearTimeoutFn=na.clearTimeout.bind(na))}const qmt=1.33;function Gmt(e){return typeof e=="string"?Ymt(e):Math.ceil((e.byteLength||e.size)*qmt)}function Ymt(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}class Xmt extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class yJ extends Or{constructor(t){super(),this.writable=!1,iC(this,t),this.opts=t,this.query=t.query,this.socket=t.socket}onError(t,n,r){return super.emitReserved("error",new Xmt(t,n,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const n=pJ(t,this.socket.binaryType);this.onPacket(n)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}}const bJ="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),sR=64,Zmt={};let R6=0,ab=0,O6;function I6(e){let t="";do t=bJ[e%sR]+t,e=Math.floor(e/sR);while(e>0);return t}function _J(){const e=I6(+new Date);return e!==O6?(R6=0,O6=e):e+"."+I6(R6++)}for(;ab<sR;ab++)Zmt[bJ[ab]]=ab;function xJ(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function Jmt(e){let t={},n=e.split("&");for(let r=0,i=n.length;r<i;r++){let o=n[r].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return t}let wJ=!1;try{wJ=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Qmt=wJ;function SJ(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||Qmt))return new XMLHttpRequest}catch{}if(!t)try{return new na[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function evt(){}const tvt=function(){return new SJ({xdomain:!1}).responseType!=null}();class nvt extends yJ{constructor(t){if(super(t),this.polling=!1,typeof location<"u"){const r=location.protocol==="https:";let i=location.port;i||(i=r?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||i!==t.port,this.xs=t.secure!==r}const n=t&&t.forceBase64;this.supportsBinary=tvt&&!n}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const n=()=>{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};Kmt(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Umt(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.query||{};const n=this.opts.secure?"https":"http";let r="";this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=_J()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.opts.port&&(n==="https"&&Number(this.opts.port)!==443||n==="http"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port);const i=xJ(t),o=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(o?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(i.length?"?"+i:"")}request(t={}){return Object.assign(t,{xd:this.xd,xs:this.xs},this.opts),new vp(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}let vp=class Vb extends Or{constructor(t,n){super(),iC(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.async=n.async!==!1,this.data=n.data!==void 0?n.data:null,this.create()}create(){const t=vJ(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd,t.xscheme=!!this.opts.xs;const n=this.xhr=new SJ(t);try{n.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let r in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(r)&&n.setRequestHeader(r,this.opts.extraHeaders[r])}}catch{}if(this.method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{n.readyState===4&&(n.status===200||n.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof n.status=="number"?n.status:0)},0))},n.send(this.data)}catch(r){this.setTimeoutFn(()=>{this.onError(r)},0);return}typeof document<"u"&&(this.index=Vb.requestsCount++,Vb.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=evt,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete Vb.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}};vp.requestsCount=0;vp.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",D6);else if(typeof addEventListener=="function"){const e="onpagehide"in na?"pagehide":"unload";addEventListener(e,D6,!1)}}function D6(){for(let e in vp.requests)vp.requests.hasOwnProperty(e)&&vp.requests[e].abort()}const CJ=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),sb=na.WebSocket||na.MozWebSocket,P6=!0,rvt="arraybuffer",L6=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class ivt extends yJ{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=L6?{}:vJ(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=P6&&!L6?n?new sb(t,n):new sb(t):new sb(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType||rvt,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n<t.length;n++){const r=t[n],i=n===t.length-1;dJ(r,this.supportsBinary,o=>{const a={};try{P6&&this.ws.send(o)}catch{}i&&CJ(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){let t=this.query||{};const n=this.opts.secure?"wss":"ws";let r="";this.opts.port&&(n==="wss"&&Number(this.opts.port)!==443||n==="ws"&&Number(this.opts.port)!==80)&&(r=":"+this.opts.port),this.opts.timestampRequests&&(t[this.opts.timestampParam]=_J()),this.supportsBinary||(t.b64=1);const i=xJ(t),o=this.opts.hostname.indexOf(":")!==-1;return n+"://"+(o?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(i.length?"?"+i:"")}check(){return!!sb}}const ovt={websocket:ivt,polling:nvt},avt=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,svt=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function lR(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=avt.exec(e||""),o={},a=14;for(;a--;)o[svt[a]]=i[a]||"";return n!=-1&&r!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=lvt(o,o.path),o.queryKey=uvt(o,o.query),o}function lvt(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function uvt(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}let EJ=class Nd extends Or{constructor(t,n={}){super(),this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=lR(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=lR(n.host).host),iC(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Jmt(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=mJ,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts.transportOptions[t],this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new ovt[t](r)}open(){let t;if(this.opts.rememberUpgrade&&Nd.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;Nd.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",d=>{if(!r)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Nd.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(f(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const p=new Error("probe error");p.transport=n.name,this.emitReserved("upgradeError",p)}}))};function o(){r||(r=!0,f(),n.close(),n=null)}const a=d=>{const p=new Error("probe error: "+d);p.transport=n.name,o(),this.emitReserved("upgradeError",p)};function s(){a("transport closed")}function l(){a("socket closed")}function u(d){n&&d.name!==n.name&&o()}const f=()=>{n.removeListener("open",i),n.removeListener("error",a),n.removeListener("close",s),this.off("close",l),this.off("upgrading",u)};n.once("open",i),n.once("error",a),n.once("close",s),this.once("close",l),this.once("upgrading",u),n.open()}onOpen(){if(this.readyState="open",Nd.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t<n;t++)this.probe(this.upgrades[t])}}onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.resetPingTimeout(),this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const n=new Error("server error");n.code=t.data,this.onError(n);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r<this.writeBuffer.length;r++){const i=this.writeBuffer[r].data;if(i&&(n+=Gmt(i)),r>0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:t,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){Nd.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const i=t.length;for(;r<i;r++)~this.transports.indexOf(t[r])&&n.push(t[r]);return n}};EJ.protocol=mJ;function cvt(e,t="",n){let r=e;n=n||typeof location<"u"&&location,e==null&&(e=n.protocol+"//"+n.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=n.protocol+e:e=n.host+e),/^(https?|wss?):\/\//.test(e)||(typeof n<"u"?e=n.protocol+"//"+e:e="https://"+e),r=lR(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";const o=r.host.indexOf(":")!==-1?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+o+":"+r.port+t,r.href=r.protocol+"://"+o+(n&&n.port===r.port?"":":"+r.port),r}const fvt=typeof ArrayBuffer=="function",dvt=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,kJ=Object.prototype.toString,pvt=typeof Blob=="function"||typeof Blob<"u"&&kJ.call(Blob)==="[object BlobConstructor]",hvt=typeof File=="function"||typeof File<"u"&&kJ.call(File)==="[object FileConstructor]";function nP(e){return fvt&&(e instanceof ArrayBuffer||dvt(e))||pvt&&e instanceof Blob||hvt&&e instanceof File}function Hb(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(Hb(e[n]))return!0;return!1}if(nP(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Hb(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&Hb(e[n]))return!0;return!1}function gvt(e){const t=[],n=e.data,r=e;return r.data=uR(n,t),r.attachments=t.length,{packet:r,buffers:t}}function uR(e,t){if(!e)return e;if(nP(e)){const n={_placeholder:!0,num:t.length};return t.push(e),n}else if(Array.isArray(e)){const n=new Array(e.length);for(let r=0;r<e.length;r++)n[r]=uR(e[r],t);return n}else if(typeof e=="object"&&!(e instanceof Date)){const n={};for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=uR(e[r],t));return n}return e}function mvt(e,t){return e.data=cR(e.data,t),delete e.attachments,e}function cR(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=cR(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=cR(e[n],t));return e}const vvt=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],yvt=5;var tn;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(tn||(tn={}));class bvt{constructor(t){this.replacer=t}encode(t){return(t.type===tn.EVENT||t.type===tn.ACK)&&Hb(t)?this.encodeAsBinary({type:t.type===tn.EVENT?tn.BINARY_EVENT:tn.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let n=""+t.type;return(t.type===tn.BINARY_EVENT||t.type===tn.BINARY_ACK)&&(n+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(n+=t.nsp+","),t.id!=null&&(n+=t.id),t.data!=null&&(n+=JSON.stringify(t.data,this.replacer)),n}encodeAsBinary(t){const n=gvt(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}function M6(e){return Object.prototype.toString.call(e)==="[object Object]"}class rP extends Or{constructor(t){super(),this.reviver=t}add(t){let n;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");n=this.decodeString(t);const r=n.type===tn.BINARY_EVENT;r||n.type===tn.BINARY_ACK?(n.type=r?tn.EVENT:tn.ACK,this.reconstructor=new _vt(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(nP(t)||t.base64)if(this.reconstructor)n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,super.emitReserved("decoded",n));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let n=0;const r={type:Number(t.charAt(0))};if(tn[r.type]===void 0)throw new Error("unknown packet type "+r.type);if(r.type===tn.BINARY_EVENT||r.type===tn.BINARY_ACK){const o=n+1;for(;t.charAt(++n)!=="-"&&n!=t.length;);const a=t.substring(o,n);if(a!=Number(a)||t.charAt(n)!=="-")throw new Error("Illegal attachments");r.attachments=Number(a)}if(t.charAt(n+1)==="/"){const o=n+1;for(;++n&&!(t.charAt(n)===","||n===t.length););r.nsp=t.substring(o,n)}else r.nsp="/";const i=t.charAt(n+1);if(i!==""&&Number(i)==i){const o=n+1;for(;++n;){const a=t.charAt(n);if(a==null||Number(a)!=a){--n;break}if(n===t.length)break}r.id=Number(t.substring(o,n+1))}if(t.charAt(++n)){const o=this.tryParse(t.substr(n));if(rP.isPayloadValid(r.type,o))r.data=o;else throw new Error("invalid payload")}return r}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,n){switch(t){case tn.CONNECT:return M6(n);case tn.DISCONNECT:return n===void 0;case tn.CONNECT_ERROR:return typeof n=="string"||M6(n);case tn.EVENT:case tn.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&vvt.indexOf(n[0])===-1);case tn.ACK:case tn.BINARY_ACK:return Array.isArray(n)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class _vt{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const n=mvt(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const xvt=Object.freeze(Object.defineProperty({__proto__:null,Decoder:rP,Encoder:bvt,get PacketType(){return tn},protocol:yvt},Symbol.toStringTag,{value:"Module"}));function Ua(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const wvt=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});let TJ=class extends Or{constructor(t,n,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=n,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[Ua(t,"open",this.onopen.bind(this)),Ua(t,"packet",this.onpacket.bind(this)),Ua(t,"error",this.onerror.bind(this)),Ua(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...n){if(wvt.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(n.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(n),this;const r={type:tn.EVENT,data:n};if(r.options={},r.options.compress=this.flags.compress!==!1,typeof n[n.length-1]=="function"){const a=this.ids++,s=n.pop();this._registerAckCallback(a,s),r.id=a}const i=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!i||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(t,n){var r;const i=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(i===void 0){this.acks[t]=n;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let a=0;a<this.sendBuffer.length;a++)this.sendBuffer[a].id===t&&this.sendBuffer.splice(a,1);n.call(this,new Error("operation has timed out"))},i);this.acks[t]=(...a)=>{this.io.clearTimeoutFn(o),n.apply(this,[null,...a])}}emitWithAck(t,...n){const r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((i,o)=>{n.push((a,s)=>r?a?o(a):i(s):i(a)),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...o)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:tn.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case tn.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case tn.EVENT:case tn.BINARY_EVENT:this.onevent(t);break;case tn.ACK:case tn.BINARY_ACK:this.onack(t);break;case tn.DISCONNECT:this.ondisconnect();break;case tn.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:tn.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:tn.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const n=this._anyOutgoingListeners;for(let r=0;r<n.length;r++)if(t===n[r])return n.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const n=this._anyOutgoingListeners.slice();for(const r of n)r.apply(this,t.data)}}};function Dh(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Dh.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};Dh.prototype.reset=function(){this.attempts=0};Dh.prototype.setMin=function(e){this.ms=e};Dh.prototype.setMax=function(e){this.max=e};Dh.prototype.setJitter=function(e){this.jitter=e};class fR extends Or{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,iC(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Dh({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||xvt;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new EJ(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=Ua(n,"open",function(){r.onopen(),t&&t()}),o=Ua(n,"error",a=>{r.cleanup(),r._readyState="closed",this.emitReserved("error",a),t?t(a):r.maybeReconnectOnOpen()});if(this._timeout!==!1){const a=this._timeout;a===0&&i();const s=this.setTimeoutFn(()=>{i(),n.close(),n.emit("error",new Error("timeout"))},a);this.opts.autoUnref&&s.unref(),this.subs.push(function(){clearTimeout(s)})}return this.subs.push(i),this.subs.push(o),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Ua(t,"ping",this.onping.bind(this)),Ua(t,"data",this.ondata.bind(this)),Ua(t,"error",this.onerror.bind(this)),Ua(t,"close",this.onclose.bind(this)),Ua(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){CJ(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new TJ(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;r<n.length;r++)this.engine.write(n[r],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(function(){clearTimeout(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const fm={};function qb(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=cvt(e,t.path||"/socket.io"),r=n.source,i=n.id,o=n.path,a=fm[i]&&o in fm[i].nsps,s=t.forceNew||t["force new connection"]||t.multiplex===!1||a;let l;return s?l=new fR(r,t):(fm[i]||(fm[i]=new fR(r,t)),l=fm[i]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(qb,{Manager:fR,Socket:TJ,io:qb,connect:qb});const TT=(e,t)=>e.id&&t.id?e.id===t.id:!1,Svt=T.memo(function(){const t=yt(ya),{accessToken:n,authenticating:r}=Qu(),i=yt(Gw),o=hn(my),a=yt(GW),[s,l]=cr(Tf),u=hn(cS),f=hn(DH),d=hn(fS),p=hn(tS),m=hn(kO),v=hn(TO),y=hn(HD),w=hn(vy),b=Cb(WO);return T.useEffect(()=>{if(r||!t)return;s!=null&&s.socket&&(s.socket.removeAllListeners(),s.socket.close());const x=qb(jRe,{path:"/ws/socket.io",extraHeaders:{Authorization:n||"","X-Chainlit-Session-Id":a,"user-env":JSON.stringify(i)}});l({socket:x}),x.on("connect",()=>{x.emit("connection_successful"),l(S=>({...S,error:!1}))}),x.on("connect_error",S=>{console.error("failed to connect",S),l(k=>({...k,error:!0}))}),x.on("task_start",()=>{o(!0)}),x.on("task_end",()=>{o(!1)}),x.on("reload",()=>{x.emit("clear_session"),window.location.reload()}),x.on("new_message",S=>{u(k=>{const A=k.findIndex($=>TT($,S));return A===-1?[...k,S]:[...k.slice(0,A),S,...k.slice(A+1)]})}),x.on("update_message",S=>{u(k=>{const A=k.findIndex($=>TT($,S));return A===-1?k:(S.newId&&(S.id=S.newId,delete S.newId),[...k.slice(0,A),S,...k.slice(A+1)])})}),x.on("delete_message",S=>{u(k=>{const A=k.findIndex($=>TT($,S));return A===-1?k:[...k.slice(0,A),...k.slice(A+1)]})}),x.on("stream_start",S=>{u(k=>[...k,S])}),x.on("stream_token",({id:S,token:k,isSequence:A})=>{u($=>{const I=$.findIndex(D=>D.id===S);if(I===-1)return $;const K={...$[I]};return A?K.content=k:K.content+=k,[...$.slice(0,I),K,...$.slice(I+1)]})}),x.on("ask",({msg:S,spec:k},A)=>{d({spec:k,callback:A}),u($=>[...$,S]),o(!1)}),x.on("ask_timeout",()=>{d(void 0),o(!1)}),x.on("clear_ask",()=>{d(void 0)}),x.on("chat_settings",S=>{w(k=>({...k,inputs:S})),b()}),x.on("element",S=>{S.type==="avatar"?m(k=>[...k,S]):S.type==="tasklist"?v(k=>[...k,S]):p(k=>[...k,S])}),x.on("update_element",S=>{p(k=>{const A=k.findIndex(z=>z.id===S.id);if(A===-1)return k;const I={...k[A],forIds:S.forIds};return[...k.slice(0,A),I,...k.slice(A+1)]})}),x.on("remove_element",S=>{p(k=>k.filter(A=>A.id!==S.id)),v(k=>k.filter(A=>A.id!==S.id)),m(k=>k.filter(A=>A.id!==S.id))}),x.on("action",S=>{y(k=>[...k,S])}),x.on("remove_action",S=>{y(k=>{const A=k.findIndex($=>fJ($,S));return A===-1?k:[...k.slice(0,A),...k.slice(A+1)]})}),x.on("token_usage",S=>{f(k=>k+S)})},[i,r,t]),null});function Cvt(){const e=yt(Fl),{theme:t}=yt(Ks),[n,r]=cr(qW),i=hn(vO),{isAuthenticated:o,getAccessTokenSilently:a,logout:s}=Qu(),l=qRe(t);return T.useEffect(()=>{o&&n===void 0&&a({authorizationParams:{audience:"chainlit-cloud"}}).then(u=>r(u)).catch(u=>{console.error(u),s({logoutParams:{returnTo:window.location.origin}})})},[o,a,n,r]),T.useEffect(()=>{n&&(e.setAccessToken(n),e.getRole().then(async u=>{i(u)}).catch(u=>{console.log(u),i("ANONYMOUS")}))},[n]),C.jsxs(GK,{theme:l,children:[C.jsx(uW,{styles:{body:{backgroundColor:l.palette.background.default}}}),C.jsx(Goe,{toastOptions:{className:"toast",style:{maxWidth:500,fontFamily:"Inter",background:l.palette.background.paper,border:`1px solid ${l.palette.divider}`,padding:l.spacing(1),color:l.palette.text.primary,boxShadow:l.palette.mode==="light"?"0px 2px 4px 0px #0000000D":"0px 10px 10px 0px #0000000D"}}}),C.jsxs(st,{display:"flex",height:"100vh",width:"100vw",children:[C.jsx(Svt,{}),C.jsx(xmt,{}),C.jsx(Pmt,{}),C.jsx(ise,{router:omt})]})]})}const Evt=T.memo(function({children:t}){var r;const n=yt(ya);return(r=n==null?void 0:n.project)!=null&&r.id?C.jsx(e$e,{domain:"https://auth.chainlit.io",clientId:"ADo93BBXDn8Z35lEi8arCWiR7C0ncrjx",authorizationParams:{redirect_uri:`${window.location.origin}/api/auth/callback`},useRefreshTokens:!0,cacheLocation:"localstorage",children:t}):C.jsx(C.Fragment,{children:t})});function kvt(){const[e,t]=cr(ya),n=hn(Ks);return eS()&&e===void 0&&$O.getProjectSettings().then(i=>{t(i),n(o=>({...o,expandAll:!!i.ui.default_expand_messages,hideCot:!!i.ui.hide_cot}))}),C.jsx(Evt,{children:C.jsx(Cvt,{})})}var dR={},F6=_f;dR.createRoot=F6.createRoot,dR.hydrateRoot=F6.hydrateRoot;dR.createRoot(document.getElementById("root")).render(C.jsx(ht.StrictMode,{children:C.jsx(ume,{children:C.jsx(kvt,{})})}));export{ri as c,bi as g};
|