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
|
@@ -0,0 +1,543 @@
|
|
|
1
|
+
var Hoe=Object.defineProperty;var qoe=(e,t,n)=>t in e?Hoe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ds=(e,t,n)=>(qoe(e,typeof t!="symbol"?t+"":t,n),n);function Goe(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 ni=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function e9(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 t9={exports:{}},Ex={},n9={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"),Yoe=Symbol.for("react.portal"),Xoe=Symbol.for("react.fragment"),Zoe=Symbol.for("react.strict_mode"),Joe=Symbol.for("react.profiler"),Qoe=Symbol.for("react.provider"),eae=Symbol.for("react.context"),tae=Symbol.for("react.forward_ref"),nae=Symbol.for("react.suspense"),rae=Symbol.for("react.memo"),iae=Symbol.for("react.lazy"),kM=Symbol.iterator;function oae(e){return e===null||typeof e!="object"?null:(e=kM&&e[kM]||e["@@iterator"],typeof e=="function"?e:null)}var r9={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},i9=Object.assign,o9={};function oh(e,t,n){this.props=e,this.context=t,this.refs=o9,this.updater=n||r9}oh.prototype.isReactComponent={};oh.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")};oh.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function a9(){}a9.prototype=oh.prototype;function V$(e,t,n){this.props=e,this.context=t,this.refs=o9,this.updater=n||r9}var H$=V$.prototype=new a9;H$.constructor=V$;i9(H$,oh.prototype);H$.isPureReactComponent=!0;var TM=Array.isArray,s9=Object.prototype.hasOwnProperty,q$={current:null},l9={key:!0,ref:!0,__self:!0,__source:!0};function u9(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)s9.call(t,r)&&!l9.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:q$.current}}function aae(e,t){return{$$typeof:Jv,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function G$(e){return typeof e=="object"&&e!==null&&e.$$typeof===Jv}function sae(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var RM=/\/+/g;function EE(e,t){return typeof e=="object"&&e!==null&&e.key!=null?sae(""+e.key):t.toString(36)}function Sb(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 Yoe:a=!0}}if(a)return a=e,i=i(a),e=r===""?"."+EE(a,0):r,TM(i)?(n="",e!=null&&(n=e.replace(RM,"$&/")+"/"),Sb(i,t,n,"",function(u){return u})):i!=null&&(G$(i)&&(i=aae(i,n+(!i.key||a&&a.key===i.key?"":(""+i.key).replace(RM,"$&/")+"/")+e)),t.push(i)),1;if(a=0,r=r===""?".":r+":",TM(e))for(var s=0;s<e.length;s++){o=e[s];var l=r+EE(o,s);a+=Sb(o,t,n,l,i)}else if(l=oae(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=r+EE(o,s++),a+=Sb(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 o1(e,t,n){if(e==null)return e;var r=[],i=0;return Sb(e,r,"","",function(o){return t.call(n,o,i++)}),r}function lae(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 Li={current:null},Cb={transition:null},uae={ReactCurrentDispatcher:Li,ReactCurrentBatchConfig:Cb,ReactCurrentOwner:q$};Jt.Children={map:o1,forEach:function(e,t,n){o1(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return o1(e,function(){t++}),t},toArray:function(e){return o1(e,function(t){return t})||[]},only:function(e){if(!G$(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};Jt.Component=oh;Jt.Fragment=Xoe;Jt.Profiler=Joe;Jt.PureComponent=V$;Jt.StrictMode=Zoe;Jt.Suspense=nae;Jt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=uae;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=i9({},e.props),i=e.key,o=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,a=q$.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)s9.call(t,l)&&!l9.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:eae,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Qoe,_context:e},e.Consumer=e};Jt.createElement=u9;Jt.createFactory=function(e){var t=u9.bind(null,e);return t.type=e,t};Jt.createRef=function(){return{current:null}};Jt.forwardRef=function(e){return{$$typeof:tae,render:e}};Jt.isValidElement=G$;Jt.lazy=function(e){return{$$typeof:iae,_payload:{_status:-1,_result:e},_init:lae}};Jt.memo=function(e,t){return{$$typeof:rae,type:e,compare:t===void 0?null:t}};Jt.startTransition=function(e){var t=Cb.transition;Cb.transition={};try{e()}finally{Cb.transition=t}};Jt.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Jt.useCallback=function(e,t){return Li.current.useCallback(e,t)};Jt.useContext=function(e){return Li.current.useContext(e)};Jt.useDebugValue=function(){};Jt.useDeferredValue=function(e){return Li.current.useDeferredValue(e)};Jt.useEffect=function(e,t){return Li.current.useEffect(e,t)};Jt.useId=function(){return Li.current.useId()};Jt.useImperativeHandle=function(e,t,n){return Li.current.useImperativeHandle(e,t,n)};Jt.useInsertionEffect=function(e,t){return Li.current.useInsertionEffect(e,t)};Jt.useLayoutEffect=function(e,t){return Li.current.useLayoutEffect(e,t)};Jt.useMemo=function(e,t){return Li.current.useMemo(e,t)};Jt.useReducer=function(e,t,n){return Li.current.useReducer(e,t,n)};Jt.useRef=function(e){return Li.current.useRef(e)};Jt.useState=function(e){return Li.current.useState(e)};Jt.useSyncExternalStore=function(e,t,n){return Li.current.useSyncExternalStore(e,t,n)};Jt.useTransition=function(){return Li.current.useTransition()};Jt.version="18.2.0";n9.exports=Jt;var T=n9.exports;const gt=_i(T),cf=Goe({__proto__:null,default:gt},[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 cae=T,fae=Symbol.for("react.element"),dae=Symbol.for("react.fragment"),pae=Object.prototype.hasOwnProperty,hae=cae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,gae={key:!0,ref:!0,__self:!0,__source:!0};function c9(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)pae.call(t,r)&&!gae.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:fae,type:e,key:o,ref:a,props:i,_owner:hae.current}}Ex.Fragment=dae;Ex.jsx=c9;Ex.jsxs=c9;t9.exports=Ex;var S=t9.exports;let mae={data:""},vae=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||mae,yae=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,bae=/\/\*[^]*?\*\/| +/g,AM=/\n+/g,wu=(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"?wu(a,o):o+"{"+wu(a,o[1]=="k"?"":t)+"}":typeof a=="object"?r+=wu(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+=wu.p?wu.p(o,a):o+":"+a+";")}return n+(t&&i?t+"{"+i+"}":i)+r},cl={},f9=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+f9(e[n]);return t}return e},_ae=(e,t,n,r,i)=>{let o=f9(e),a=cl[o]||(cl[o]=(l=>{let u=0,f=11;for(;u<l.length;)f=101*f+l.charCodeAt(u++)>>>0;return"go"+f})(o));if(!cl[a]){let l=o!==e?e:(u=>{let f,d,p=[{}];for(;f=yae.exec(u.replace(bae,""));)f[4]?p.shift():f[3]?(d=f[3].replace(AM," ").trim(),p.unshift(p[0][d]=p[0][d]||{})):p[0][f[1]]=f[2].replace(AM," ").trim();return p[0]})(e);cl[a]=wu(i?{["@keyframes "+a]:l}:l,n?"":"."+a)}let s=n&&cl.g?cl.g:null;return n&&(cl.g=cl[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)})(cl[a],t,r,s),a},xae=(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?"":wu(s,""):s===!1?"":s}return r+i+(a??"")},"");function kx(e){let t=this||{},n=e.call?e(t.p):e;return _ae(n.unshift?n.raw?xae(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,vae(t.target),t.g,t.o,t.k)}let d9,QT,eR;kx.bind({g:1});let Al=kx.bind({k:1});function wae(e,t,n,r){wu.p=t,d9=e,QT=n,eR=r}function Xu(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:QT&&QT()},s),n.o=/ *go\d+/.test(l),s.className=kx.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let u=e;return e[0]&&(u=s.as||e,delete s.as),eR&&u[0]&&eR(s),d9(u,s)}return t?t(i):i}}var Sae=e=>typeof e=="function",u_=(e,t)=>Sae(e)?e(t):e,Cae=(()=>{let e=0;return()=>(++e).toString()})(),p9=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),Eae=20,Eb=new Map,kae=1e3,$M=e=>{if(Eb.has(e))return;let t=setTimeout(()=>{Eb.delete(e),Ef({type:4,toastId:e})},kae);Eb.set(e,t)},Tae=e=>{let t=Eb.get(e);t&&clearTimeout(t)},tR=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,Eae)};case 1:return t.toast.id&&Tae(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)?tR(e,{type:1,toast:n}):tR(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?$M(r):e.toasts.forEach(o=>{$M(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}))}}},kb=[],Tb={toasts:[],pausedAt:void 0},Ef=e=>{Tb=tR(Tb,e),kb.forEach(t=>{t(Tb)})},Rae={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Aae=(e={})=>{let[t,n]=T.useState(Tb);T.useEffect(()=>(kb.push(n),()=>{let i=kb.indexOf(n);i>-1&&kb.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)||Rae[i.type],style:{...e.style,...(a=e[i.type])==null?void 0:a.style,...i.style}}});return{...t,toasts:r}},$ae=(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)||Cae()}),Qv=e=>(t,n)=>{let r=$ae(t,e,n);return Ef({type:2,toast:r}),r.id},gi=(e,t)=>Qv("blank")(e,t);gi.error=Qv("error");gi.success=Qv("success");gi.loading=Qv("loading");gi.custom=Qv("custom");gi.dismiss=e=>{Ef({type:3,toastId:e})};gi.remove=e=>Ef({type:4,toastId:e});gi.promise=(e,t,n)=>{let r=gi.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(i=>(gi.success(u_(t.success,i),{id:r,...n,...n==null?void 0:n.success}),i)).catch(i=>{gi.error(u_(t.error,i),{id:r,...n,...n==null?void 0:n.error})}),e};var Oae=(e,t)=>{Ef({type:1,toast:{id:e,height:t}})},Iae=()=>{Ef({type:5,time:Date.now()})},Dae=e=>{let{toasts:t,pausedAt:n}=Aae(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&&gi.dismiss(s.id);return}return setTimeout(()=>gi.dismiss(s.id),l)});return()=>{a.forEach(s=>s&&clearTimeout(s))}},[t,n]);let r=T.useCallback(()=>{n&&Ef({type:6,time:Date.now()})},[n]),i=T.useCallback((o,a)=>{let{reverseOrder:s=!1,gutter:l=8,defaultPosition:u}=a||{},f=t.filter(g=>(g.position||u)===(o.position||u)&&g.height),d=f.findIndex(g=>g.id===o.id),p=f.filter((g,v)=>v<d&&g.visible).length;return f.filter(g=>g.visible).slice(...s?[p+1]:[0,p]).reduce((g,v)=>g+(v.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:Oae,startPause:Iae,endPause:r,calculateOffset:i}}},Pae=Al`
|
|
18
|
+
from {
|
|
19
|
+
transform: scale(0) rotate(45deg);
|
|
20
|
+
opacity: 0;
|
|
21
|
+
}
|
|
22
|
+
to {
|
|
23
|
+
transform: scale(1) rotate(45deg);
|
|
24
|
+
opacity: 1;
|
|
25
|
+
}`,Lae=Al`
|
|
26
|
+
from {
|
|
27
|
+
transform: scale(0);
|
|
28
|
+
opacity: 0;
|
|
29
|
+
}
|
|
30
|
+
to {
|
|
31
|
+
transform: scale(1);
|
|
32
|
+
opacity: 1;
|
|
33
|
+
}`,Mae=Al`
|
|
34
|
+
from {
|
|
35
|
+
transform: scale(0) rotate(90deg);
|
|
36
|
+
opacity: 0;
|
|
37
|
+
}
|
|
38
|
+
to {
|
|
39
|
+
transform: scale(1) rotate(90deg);
|
|
40
|
+
opacity: 1;
|
|
41
|
+
}`,Fae=Xu("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: ${Pae} 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: ${Lae} 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: ${Mae} 0.15s ease-out forwards;
|
|
71
|
+
animation-delay: 180ms;
|
|
72
|
+
transform: rotate(90deg);
|
|
73
|
+
}
|
|
74
|
+
`,Nae=Al`
|
|
75
|
+
from {
|
|
76
|
+
transform: rotate(0deg);
|
|
77
|
+
}
|
|
78
|
+
to {
|
|
79
|
+
transform: rotate(360deg);
|
|
80
|
+
}
|
|
81
|
+
`,Bae=Xu("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: ${Nae} 1s linear infinite;
|
|
90
|
+
`,jae=Al`
|
|
91
|
+
from {
|
|
92
|
+
transform: scale(0) rotate(45deg);
|
|
93
|
+
opacity: 0;
|
|
94
|
+
}
|
|
95
|
+
to {
|
|
96
|
+
transform: scale(1) rotate(45deg);
|
|
97
|
+
opacity: 1;
|
|
98
|
+
}`,zae=Al`
|
|
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
|
+
}`,Uae=Xu("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: ${jae} 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: ${zae} 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
|
+
`,Kae=Xu("div")`
|
|
140
|
+
position: absolute;
|
|
141
|
+
`,Wae=Xu("div")`
|
|
142
|
+
position: relative;
|
|
143
|
+
display: flex;
|
|
144
|
+
justify-content: center;
|
|
145
|
+
align-items: center;
|
|
146
|
+
min-width: 20px;
|
|
147
|
+
min-height: 20px;
|
|
148
|
+
`,Vae=Al`
|
|
149
|
+
from {
|
|
150
|
+
transform: scale(0.6);
|
|
151
|
+
opacity: 0.4;
|
|
152
|
+
}
|
|
153
|
+
to {
|
|
154
|
+
transform: scale(1);
|
|
155
|
+
opacity: 1;
|
|
156
|
+
}`,Hae=Xu("div")`
|
|
157
|
+
position: relative;
|
|
158
|
+
transform: scale(0.6);
|
|
159
|
+
opacity: 0.4;
|
|
160
|
+
min-width: 20px;
|
|
161
|
+
animation: ${Vae} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
|
|
162
|
+
forwards;
|
|
163
|
+
`,qae=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?T.createElement(Hae,null,t):t:n==="blank"?null:T.createElement(Wae,null,T.createElement(Bae,{...r}),n!=="loading"&&T.createElement(Kae,null,n==="error"?T.createElement(Fae,{...r}):T.createElement(Uae,{...r})))},Gae=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
|
+
`,Yae=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
|
+
`,Xae="0%{opacity:0;} 100%{opacity:1;}",Zae="0%{opacity:1;} 100%{opacity:0;}",Jae=Xu("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
|
+
`,Qae=Xu("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
|
+
`,ese=(e,t)=>{let n=e.includes("top")?1:-1,[r,i]=p9()?[Xae,Zae]:[Gae(n),Yae(n)];return{animation:t?`${Al(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Al(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},tse=T.memo(({toast:e,position:t,style:n,children:r})=>{let i=e.height?ese(e.position||t||"top-center",e.visible):{opacity:0},o=T.createElement(qae,{toast:e}),a=T.createElement(Qae,{...e.ariaProps},u_(e.message,e));return T.createElement(Jae,{className:e.className,style:{...i,...n,...e.style}},typeof r=="function"?r({icon:o,message:a}):T.createElement(T.Fragment,null,o,a))});wae(T.createElement);var nse=({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)},rse=(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:p9()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}},ise=kx`
|
|
189
|
+
z-index: 9999;
|
|
190
|
+
> * {
|
|
191
|
+
pointer-events: auto;
|
|
192
|
+
}
|
|
193
|
+
`,a1=16,ose=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:i,containerStyle:o,containerClassName:a})=>{let{toasts:s,handlers:l}=Dae(n);return T.createElement("div",{style:{position:"fixed",zIndex:9999,top:a1,left:a1,right:a1,bottom:a1,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=rse(f,d);return T.createElement(nse,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?ise:"",style:p},u.type==="custom"?u_(u.message,u):i?i(u):T.createElement(tse,{toast:u,position:f}))}))},pv=gi;/**
|
|
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 hn(){return hn=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},hn.apply(this,arguments)}var Rr;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(Rr||(Rr={}));const OM="popstate";function ase(e){e===void 0&&(e={});function t(r,i){let{pathname:o,search:a,hash:s}=r.location;return hv("",{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:$l(i)}return lse(t,n,null,e)}function Nt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function sse(){return Math.random().toString(36).substr(2,8)}function IM(e,t){return{usr:e.state,key:e.key,idx:t}}function hv(e,t,n,r){return n===void 0&&(n=null),hn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Nl(t):t,{state:n,key:t&&t.key||r||sse()})}function $l(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 Nl(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 lse(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s=Rr.Pop,l=null,u=f();u==null&&(u=0,a.replaceState(hn({},a.state,{idx:u}),""));function f(){return(a.state||{idx:null}).idx}function d(){s=Rr.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=Rr.Push;let x=hv(y.location,w,b);n&&n(x,w),u=f()+1;let C=IM(x,u),k=y.createHref(x);try{a.pushState(C,"",k)}catch{i.location.assign(k)}o&&l&&l({action:s,location:y.location,delta:1})}function g(w,b){s=Rr.Replace;let x=hv(y.location,w,b);n&&n(x,w),u=f();let C=IM(x,u),k=y.createHref(x);a.replaceState(C,"",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:$l(w);return Nt(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(OM,d),l=w,()=>{i.removeEventListener(OM,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:g,go(w){return a.go(w)}};return y}var ei;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ei||(ei={}));function use(e){return e.index===!0}function h9(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 Nt(r.index!==!0||!r.children,"Cannot specify children on an index route"),Nt(!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),use(r)?hn({},r,{id:a}):hn({},r,{id:a,children:r.children?h9(r.children,o,n):void 0})})}function Cm(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Nl(t):t,i=v9(r.pathname||"/",n);if(i==null)return null;let o=g9(e);cse(o);let a=null;for(let s=0;a==null&&s<o.length;++s)a=bse(o[s],wse(i));return a}function g9(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("/")&&(Nt(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=El([r,l.relativePath]),f=n.concat(l);o.children&&o.children.length>0&&(Nt(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),g9(o.children,t,f,u)),!(o.path==null&&!o.index)&&t.push({path:u,score:vse(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 m9(o.path))i(o,a,l)}),t}function m9(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=m9(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 cse(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:yse(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const fse=/^:\w+$/,dse=3,pse=2,hse=1,gse=10,mse=-2,DM=e=>e==="*";function vse(e,t){let n=e.split("/"),r=n.length;return n.some(DM)&&(r+=mse),t&&(r+=pse),n.filter(i=>!DM(i)).reduce((i,o)=>i+(fse.test(o)?dse:o===""?hse:gse),r)}function yse(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 bse(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=_se({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:El([i,f.pathname]),pathnameBase:kse(El([i,f.pathnameBase])),route:d}),f.pathnameBase!=="/"&&(i=El([i,f.pathnameBase]))}return o}function _se(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=xse(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]=Sse(s[d]||"",f),u},{}),pathname:o,pathnameBase:a,pattern:e}}function xse(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),gv(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 wse(e){try{return decodeURI(e)}catch(t){return gv(!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 Sse(e,t){try{return decodeURIComponent(e)}catch(n){return gv(!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 v9(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 gv(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Cse(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Nl(e):e;return{pathname:n?n.startsWith("/")?n:Ese(n,t):t,search:Tse(r),hash:Rse(i)}}function Ese(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 kE(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 Tx(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Y$(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Nl(e):(i=hn({},e),Nt(!i.pathname||!i.pathname.includes("?"),kE("?","pathname","search",i)),Nt(!i.pathname||!i.pathname.includes("#"),kE("#","pathname","hash",i)),Nt(!i.search||!i.search.includes("#"),kE("#","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=Cse(i,s),u=a&&a!=="/"&&a.endsWith("/"),f=(o||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||f)&&(l.pathname+="/"),l}const El=e=>e.join("/").replace(/\/\/+/g,"/"),kse=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Tse=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Rse=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class PM extends Error{}class Ase{constructor(t,n){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],Nt(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 PM("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 PM?(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 Nt(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]:Ose(i)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function $se(e){return e instanceof Promise&&e._tracked===!0}function Ose(e){if(!$se(e))return e;if(e._error)throw e._error;return e._data}class X${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 y9(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const b9=["post","put","patch","delete"],Ise=new Set(b9),Dse=["get",...b9],Pse=new Set(Dse),Lse=new Set([301,302,303,307,308]),Mse=new Set([307,308]),TE={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Fse={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},LM={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},_9=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,x9=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Nse=!x9;function Bse(e){Nt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let t=h9(e.routes),n=null,r=new Set,i=null,o=null,a=null,s=e.hydrationData!=null,l=Cm(t,e.history.location,e.basename),u=null;if(l==null){let U=hu(404,{pathname:e.history.location.pathname}),{matches:H,route:fe}=zM(t);l=H,u={[fe.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:TE,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},g=Rr.Pop,v=!1,y,w=!1,b=!1,x=[],C=[],k=new Map,R=0,A=-1,O=new Map,z=new Set,V=new Map,D=new Map,W=new Map,ie=!1;function se(){return n=e.history.listen(U=>{let{action:H,location:fe,delta:Y}=U;if(ie){ie=!1;return}gv(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 X=st({currentLocation:p.location,nextLocation:fe,historyAction:H});if(X&&Y!=null){ie=!0,e.history.go(Y*-1),Ye(X,{state:"blocked",location:fe,proceed(){Ye(X,{state:"proceeding",proceed:void 0,reset:void 0,location:fe}),e.history.go(Y)},reset(){Xe(X),Q({blockers:new Map(d.state.blockers)})}});return}return P(H,fe)}),p.initialized||P(Rr.Pop,p.location),d}function K(){n&&n(),r.clear(),y&&y.abort(),p.fetchers.forEach((U,H)=>Be(H)),p.blockers.forEach((U,H)=>Xe(H))}function G(U){return r.add(U),()=>r.delete(U)}function Q(U){p=hn({},p,U),r.forEach(H=>H(p))}function le(U,H){var fe,Y;let X=p.actionData!=null&&p.navigation.formMethod!=null&&ml(p.navigation.formMethod)&&p.navigation.state==="loading"&&((fe=U.state)==null?void 0:fe._isRedirect)!==!0,oe;H.actionData?Object.keys(H.actionData).length>0?oe=H.actionData:oe=null:X?oe=p.actionData:oe=null;let xe=H.loaderData?jM(p.loaderData,H.loaderData,H.matches||[],H.errors):p.loaderData;for(let[_e]of W)Xe(_e);let Ce=v===!0||p.navigation.formMethod!=null&&ml(p.navigation.formMethod)&&((Y=U.state)==null?void 0:Y._isRedirect)!==!0;Q(hn({},H,{actionData:oe,loaderData:xe,historyAction:g,location:U,initialized:!0,navigation:TE,revalidation:"idle",restoreScrollPosition:Ne(U,H.matches||p.matches),preventScrollReset:Ce,blockers:new Map(p.blockers)})),w||g===Rr.Pop||(g===Rr.Push?e.history.push(U,U.state):g===Rr.Replace&&e.history.replace(U,U.state)),g=Rr.Pop,v=!1,w=!1,b=!1,x=[],C=[]}async function Z(U,H){if(typeof U=="number"){e.history.go(U);return}let{path:fe,submission:Y,error:X}=MM(U,H),oe=p.location,xe=hv(p.location,fe,H&&H.state);xe=hn({},xe,e.history.encodeLocation(xe));let Ce=H&&H.replace!=null?H.replace:void 0,_e=Rr.Push;Ce===!0?_e=Rr.Replace:Ce===!1||Y!=null&&ml(Y.formMethod)&&Y.formAction===p.location.pathname+p.location.search&&(_e=Rr.Replace);let nt=H&&"preventScrollReset"in H?H.preventScrollReset===!0:void 0,rt=st({currentLocation:oe,nextLocation:xe,historyAction:_e});if(rt){Ye(rt,{state:"blocked",location:xe,proceed(){Ye(rt,{state:"proceeding",proceed:void 0,reset:void 0,location:xe}),Z(U,H)},reset(){Xe(rt),Q({blockers:new Map(p.blockers)})}});return}return await P(_e,xe,{submission:Y,pendingError:X,preventScrollReset:nt,replace:H&&H.replace})}function ee(){if(Ee(),Q({revalidation:"loading"}),p.navigation.state!=="submitting"){if(p.navigation.state==="idle"){P(p.historyAction,p.location,{startUninterruptedRevalidation:!0});return}P(g||p.historyAction,p.navigation.location,{overrideNavigation:p.navigation})}}async function P(U,H,fe){y&&y.abort(),y=null,g=U,w=(fe&&fe.startUninterruptedRevalidation)===!0,Re(p.location,p.matches),v=(fe&&fe.preventScrollReset)===!0;let Y=fe&&fe.overrideNavigation,X=Cm(t,H,e.basename);if(!X){let de=hu(404,{pathname:H.pathname}),{matches:me,route:$e}=zM(t);he(),le(H,{matches:me,loaderData:{},errors:{[$e.id]:de}});return}if(Wse(p.location,H)&&!(fe&&fe.submission&&ml(fe.submission.formMethod))){le(H,{matches:X});return}y=new AbortController;let oe=Fg(e.history,H,y.signal,fe&&fe.submission),xe,Ce;if(fe&&fe.pendingError)Ce={[qd(X).route.id]:fe.pendingError};else if(fe&&fe.submission&&ml(fe.submission.formMethod)){let de=await ge(oe,H,fe.submission,X,{replace:fe.replace});if(de.shortCircuited)return;xe=de.pendingActionData,Ce=de.pendingActionError,Y=hn({state:"loading",location:H},fe.submission),oe=new Request(oe.url,{signal:oe.signal})}let{shortCircuited:_e,loaderData:nt,errors:rt}=await B(oe,H,X,Y,fe&&fe.submission,fe&&fe.replace,xe,Ce);_e||(y=null,le(H,hn({matches:X},xe?{actionData:xe}:{},{loaderData:nt,errors:rt})))}async function ge(U,H,fe,Y,X){Ee();let oe=hn({state:"submitting",location:H},fe);Q({navigation:oe});let xe,Ce=VM(Y,H);if(!Ce.route.action)xe={type:ei.error,error:hu(405,{method:U.method,pathname:H.pathname,routeId:Ce.route.id})};else if(xe=await Mg("action",U,Ce,Y,d.basename),U.signal.aborted)return{shortCircuited:!0};if(cp(xe)){let _e;return X&&X.replace!=null?_e=X.replace:_e=xe.location===p.location.pathname+p.location.search,await we(p,xe,{submission:fe,replace:_e}),{shortCircuited:!0}}if(Bm(xe)){let _e=qd(Y,Ce.route.id);return(X&&X.replace)!==!0&&(g=Rr.Push),{pendingActionData:{},pendingActionError:{[_e.route.id]:xe.error}}}if(Xc(xe))throw hu(400,{type:"defer-action"});return{pendingActionData:{[Ce.route.id]:xe.data}}}async function B(U,H,fe,Y,X,oe,xe,Ce){let _e=Y;_e||(_e=hn({state:"loading",location:H,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},X));let nt=X||(_e.formMethod&&_e.formAction&&_e.formData&&_e.formEncType?{formMethod:_e.formMethod,formAction:_e.formAction,formData:_e.formData,formEncType:_e.formEncType}:void 0),[rt,de]=FM(e.history,p,fe,nt,H,b,x,C,xe,Ce,V);if(he(ot=>!(fe&&fe.some(ht=>ht.route.id===ot))||rt&&rt.some(ht=>ht.route.id===ot)),rt.length===0&&de.length===0)return le(H,hn({matches:fe,loaderData:{},errors:Ce||null},xe?{actionData:xe}:{})),{shortCircuited:!0};if(!w){de.forEach(ht=>{let Ot=p.fetchers.get(ht.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(ht.key,rn)});let ot=xe||p.actionData;Q(hn({navigation:_e},ot?Object.keys(ot).length===0?{actionData:null}:{actionData:ot}:{},de.length>0?{fetchers:new Map(p.fetchers)}:{}))}A=++R,de.forEach(ot=>k.set(ot.key,y));let{results:me,loaderResults:$e,fetcherResults:Ve}=await Te(p.matches,fe,rt,de,U);if(U.signal.aborted)return{shortCircuited:!0};de.forEach(ot=>k.delete(ot.key));let He=UM(me);if(He)return await we(p,He,{replace:oe}),{shortCircuited:!0};let{loaderData:Ze,errors:dt}=BM(p,fe,rt,$e,Ce,de,Ve,D);D.forEach((ot,ht)=>{ot.subscribe(Ot=>{(Ot||ot.done)&&D.delete(ht)})}),je();let ct=Fe(A);return hn({loaderData:Ze,errors:dt},ct||de.length>0?{fetchers:new Map(p.fetchers)}:{})}function L(U){return p.fetchers.get(U)||Fse}function ae(U,H,fe,Y){if(Nse)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)&&Ie(U);let X=Cm(t,fe,e.basename);if(!X){Le(U,H,hu(404,{pathname:fe}));return}let{path:oe,submission:xe}=MM(fe,Y,!0),Ce=VM(X,oe);if(v=(Y&&Y.preventScrollReset)===!0,xe&&ml(xe.formMethod)){ue(U,H,oe,Ce,X,xe);return}V.set(U,{routeId:H,path:oe,match:Ce,matches:X}),ne(U,H,oe,Ce,X,xe)}async function ue(U,H,fe,Y,X,oe){if(Ee(),V.delete(U),!Y.route.action){let kn=hu(405,{method:oe.formMethod,pathname:fe,routeId:H});Le(U,H,kn);return}let xe=p.fetchers.get(U),Ce=hn({state:"submitting"},oe,{data:xe&&xe.data," _hasFetcherDoneAnything ":!0});p.fetchers.set(U,Ce),Q({fetchers:new Map(p.fetchers)});let _e=new AbortController,nt=Fg(e.history,fe,_e.signal,oe);k.set(U,_e);let rt=await Mg("action",nt,Y,X,d.basename);if(nt.signal.aborted){k.get(U)===_e&&k.delete(U);return}if(cp(rt)){k.delete(U),z.add(U);let kn=hn({state:"loading"},oe,{data:void 0," _hasFetcherDoneAnything ":!0});return p.fetchers.set(U,kn),Q({fetchers:new Map(p.fetchers)}),we(p,rt,{isFetchActionRedirect:!0})}if(Bm(rt)){Le(U,H,rt.error);return}if(Xc(rt))throw hu(400,{type:"defer-action"});let de=p.navigation.location||p.location,me=Fg(e.history,de,_e.signal),$e=p.navigation.state!=="idle"?Cm(t,p.navigation.location,e.basename):p.matches;Nt($e,"Didn't find any matches after fetcher action");let Ve=++R;O.set(U,Ve);let He=hn({state:"loading",data:rt.data},oe,{" _hasFetcherDoneAnything ":!0});p.fetchers.set(U,He);let[Ze,dt]=FM(e.history,p,$e,oe,de,b,x,C,{[Y.route.id]:rt.data},void 0,V);dt.filter(kn=>kn.key!==U).forEach(kn=>{let Fr=kn.key,_r=p.fetchers.get(Fr),kr={state:"loading",data:_r&&_r.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};p.fetchers.set(Fr,kr),k.set(Fr,_e)}),Q({fetchers:new Map(p.fetchers)});let{results:ct,loaderResults:ot,fetcherResults:ht}=await Te(p.matches,$e,Ze,dt,me);if(_e.signal.aborted)return;O.delete(U),k.delete(U),dt.forEach(kn=>k.delete(kn.key));let Ot=UM(ct);if(Ot)return we(p,Ot);let{loaderData:rn,errors:Qt}=BM(p,p.matches,Ze,ot,void 0,dt,ht,D),Xt={state:"idle",data:rt.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};p.fetchers.set(U,Xt);let br=Fe(Ve);p.navigation.state==="loading"&&Ve>A?(Nt(g,"Expected pending action"),y&&y.abort(),le(p.navigation.location,{matches:$e,loaderData:rn,errors:Qt,fetchers:new Map(p.fetchers)})):(Q(hn({errors:Qt,loaderData:jM(p.loaderData,rn,$e,Qt)},br?{fetchers:new Map(p.fetchers)}:{})),b=!1)}async function ne(U,H,fe,Y,X,oe){let xe=p.fetchers.get(U),Ce=hn({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},oe,{data:xe&&xe.data," _hasFetcherDoneAnything ":!0});p.fetchers.set(U,Ce),Q({fetchers:new Map(p.fetchers)});let _e=new AbortController,nt=Fg(e.history,fe,_e.signal);k.set(U,_e);let rt=await Mg("loader",nt,Y,X,d.basename);if(Xc(rt)&&(rt=await E9(rt,nt.signal,!0)||rt),k.get(U)===_e&&k.delete(U),nt.signal.aborted)return;if(cp(rt)){await we(p,rt);return}if(Bm(rt)){let me=qd(p.matches,H);p.fetchers.delete(U),Q({fetchers:new Map(p.fetchers),errors:{[me.route.id]:rt.error}});return}Nt(!Xc(rt),"Unhandled fetcher deferred data");let de={state:"idle",data:rt.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};p.fetchers.set(U,de),Q({fetchers:new Map(p.fetchers)})}async function we(U,H,fe){var Y;let{submission:X,replace:oe,isFetchActionRedirect:xe}=fe===void 0?{}:fe;H.revalidate&&(b=!0);let Ce=hv(U.location,H.location,hn({_isRedirect:!0},xe?{_isFetchActionRedirect:!0}:{}));if(Nt(Ce,"Expected a location on the redirect navigation"),_9.test(H.location)&&x9&&typeof((Y=window)==null?void 0:Y.location)<"u"){let $e=e.history.createURL(H.location).origin;if(window.location.origin!==$e){oe?window.location.replace(H.location):window.location.assign(H.location);return}}y=null;let _e=oe===!0?Rr.Replace:Rr.Push,{formMethod:nt,formAction:rt,formEncType:de,formData:me}=U.navigation;!X&&nt&&rt&&me&&de&&(X={formMethod:nt,formAction:rt,formEncType:de,formData:me}),Mse.has(H.status)&&X&&ml(X.formMethod)?await P(_e,Ce,{submission:hn({},X,{formAction:H.location}),preventScrollReset:v}):await P(_e,Ce,{overrideNavigation:{state:"loading",location:Ce,formMethod:X?X.formMethod:void 0,formAction:X?X.formAction:void 0,formEncType:X?X.formEncType:void 0,formData:X?X.formData:void 0},preventScrollReset:v})}async function Te(U,H,fe,Y,X){let oe=await Promise.all([...fe.map(_e=>Mg("loader",X,_e,H,d.basename)),...Y.map(_e=>Mg("loader",Fg(e.history,_e.path,X.signal),_e.match,_e.matches,d.basename))]),xe=oe.slice(0,fe.length),Ce=oe.slice(fe.length);return await Promise.all([KM(U,fe,xe,X.signal,!1,p.loaderData),KM(U,Y.map(_e=>_e.match),Ce,X.signal,!0)]),{results:oe,loaderResults:xe,fetcherResults:Ce}}function Ee(){b=!0,x.push(...he()),V.forEach((U,H)=>{k.has(H)&&(C.push(H),Ie(H))})}function Le(U,H,fe){let Y=qd(p.matches,H);Be(U),Q({errors:{[Y.route.id]:fe},fetchers:new Map(p.fetchers)})}function Be(U){k.has(U)&&Ie(U),V.delete(U),O.delete(U),z.delete(U),p.fetchers.delete(U)}function Ie(U){let H=k.get(U);Nt(H,"Expected fetch controller: "+U),H.abort(),k.delete(U)}function Pe(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 je(){let U=[];for(let H of z){let fe=p.fetchers.get(H);Nt(fe,"Expected fetcher: "+H),fe.state==="loading"&&(z.delete(H),U.push(H))}Pe(U)}function Fe(U){let H=[];for(let[fe,Y]of O)if(Y<U){let X=p.fetchers.get(fe);Nt(X,"Expected fetcher: "+fe),X.state==="loading"&&(Ie(fe),O.delete(fe),H.push(fe))}return Pe(H),H.length>0}function tt(U,H){let fe=p.blockers.get(U)||LM;return W.get(U)!==H&&W.set(U,H),fe}function Xe(U){p.blockers.delete(U),W.delete(U)}function Ye(U,H){let fe=p.blockers.get(U)||LM;Nt(fe.state==="unblocked"&&H.state==="blocked"||fe.state==="blocked"&&H.state==="blocked"||fe.state==="blocked"&&H.state==="proceeding"||fe.state==="blocked"&&H.state==="unblocked"||fe.state==="proceeding"&&H.state==="unblocked","Invalid blocker state transition: "+fe.state+" -> "+H.state),p.blockers.set(U,H),Q({blockers:new Map(p.blockers)})}function st(U){let{currentLocation:H,nextLocation:fe,historyAction:Y}=U;if(W.size===0)return;W.size>1&&gv(!1,"A router only supports one blocker at a time");let X=Array.from(W.entries()),[oe,xe]=X[X.length-1],Ce=p.blockers.get(oe);if(!(Ce&&Ce.state==="proceeding")&&xe({currentLocation:H,nextLocation:fe,historyAction:Y}))return oe}function he(U){let H=[];return D.forEach((fe,Y)=>{(!U||U(Y))&&(fe.cancel(),H.push(Y),D.delete(Y))}),H}function Ae(U,H,fe){if(i=U,a=H,o=fe||(Y=>Y.key),!s&&p.navigation===TE){s=!0;let Y=Ne(p.location,p.matches);Y!=null&&Q({restoreScrollPosition:Y})}return()=>{i=null,a=null,o=null}}function Re(U,H){if(i&&o&&a){let fe=H.map(X=>WM(X,p.loaderData)),Y=o(U,fe)||U.key;i[Y]=a()}}function Ne(U,H){if(i&&o&&a){let fe=H.map(oe=>WM(oe,p.loaderData)),Y=o(U,fe)||U.key,X=i[Y];if(typeof X=="number")return X}return null}return d={get basename(){return e.basename},get state(){return p},get routes(){return t},initialize:se,subscribe:G,enableScrollRestoration:Ae,navigate:Z,fetch:ae,revalidate:ee,createHref:U=>e.history.createHref(U),encodeLocation:U=>e.history.encodeLocation(U),getFetcher:L,deleteFetcher:Be,dispose:K,getBlocker:tt,deleteBlocker:Xe,_internalFetchControllers:k,_internalActiveDeferreds:D},d}function jse(e){return e!=null&&"formData"in e}function MM(e,t,n){n===void 0&&(n=!1);let r=typeof e=="string"?e:$l(e);if(!t||!jse(t))return{path:r};if(t.formMethod&&!Hse(t.formMethod))return{path:r,error:hu(405,{method:t.formMethod})};let i;if(t.formData&&(i={formMethod:t.formMethod||"get",formAction:C9(r),formEncType:t&&t.formEncType||"application/x-www-form-urlencoded",formData:t.formData},ml(i.formMethod)))return{path:r,submission:i};let o=Nl(r),a=S9(t.formData);return n&&o.search&&k9(o.search)&&a.append("index",""),o.search="?"+a,{path:$l(o),submission:i}}function zse(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 FM(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),g=e.createURL(i),v=o||p.toString()===g.toString()||p.search!==g.search,y=u?Object.keys(u)[0]:void 0,b=zse(n,y).filter((C,k)=>{if(C.route.loader==null)return!1;if(Use(t.loaderData,t.matches[k],C)||a.some(O=>O===C.route.id))return!0;let R=t.matches[k],A=C;return NM(C,hn({currentUrl:p,currentParams:R.params,nextUrl:g,nextParams:A.params},r,{actionResult:d,defaultShouldRevalidate:v||w9(R,A)}))}),x=[];return f&&f.forEach((C,k)=>{if(n.some(R=>R.route.id===C.routeId))s.includes(k)?x.push(hn({key:k},C)):NM(C.match,hn({currentUrl:p,currentParams:t.matches[t.matches.length-1].params,nextUrl:g,nextParams:n[n.length-1].params},r,{actionResult:d,defaultShouldRevalidate:v}))&&x.push(hn({key:k},C));else return}),[b,x]}function Use(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function w9(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function NM(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Mg(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((g,v)=>f=v),p=()=>f();t.signal.addEventListener("abort",p);try{let g=n.route[e];Nt(g,"Could not find the "+e+' to run on the "'+n.route.id+'" route'),u=await Promise.race([g({request:t,params:n.params,context:s}),d]),Nt(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(g){l=ei.error,u=g}finally{t.signal.removeEventListener("abort",p)}if(Vse(u)){let g=u.status;if(Lse.has(g)){let w=u.headers.get("Location");if(Nt(w,"Redirects returned/thrown from loaders/actions must have a Location header"),_9.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=Tx(b).map(k=>k.pathnameBase),C=Y$(w,x,new URL(t.url).pathname);if(Nt($l(C),"Unable to resolve redirect location: "+w),i){let k=C.pathname;C.pathname=k==="/"?i:El([i,k])}w=$l(C)}if(o)throw u.headers.set("Location",w),u;return{type:ei.redirect,status:g,location:w,revalidate:u.headers.get("X-Remix-Revalidate")!==null}}if(a)throw{type:l||ei.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===ei.error?{type:l,error:new X$(g,u.statusText,v),headers:u.headers}:{type:ei.data,data:v,statusCode:u.status,headers:u.headers}}return l===ei.error?{type:l,error:u}:u instanceof Ase?{type:ei.deferred,deferredData:u}:{type:ei.data,data:u}}function Fg(e,t,n,r){let i=e.createURL(C9(t)).toString(),o={signal:n};if(r&&ml(r.formMethod)){let{formMethod:a,formEncType:s,formData:l}=r;o.method=a.toUpperCase(),o.body=s==="application/x-www-form-urlencoded"?S9(l):l}return new Request(i,o)}function S9(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,r instanceof File?r.name:r);return t}function Kse(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(Nt(!cp(f),"Cannot handle redirect results in processLoaderData"),Bm(f)){let g=qd(e,p),v=f.error;r&&(v=Object.values(r)[0],r=void 0),a=a||{},a[g.route.id]==null&&(a[g.route.id]=v),o[p]=void 0,l||(l=!0,s=y9(f.error)?f.error.status:500),f.headers&&(u[p]=f.headers)}else Xc(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 BM(e,t,n,r,i,o,a,s){let{loaderData:l,errors:u}=Kse(t,n,r,i,s);for(let f=0;f<o.length;f++){let{key:d,match:p}=o[f];Nt(a!==void 0&&a[f]!==void 0,"Did not find corresponding fetcher result");let g=a[f];if(Bm(g)){let v=qd(e.matches,p.route.id);u&&u[v.route.id]||(u=hn({},u,{[v.route.id]:g.error})),e.fetchers.delete(d)}else if(cp(g))Nt(!1,"Unhandled fetcher revalidation redirect");else if(Xc(g))Nt(!1,"Unhandled fetcher deferred data");else{let v={state:"idle",data:g.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 jM(e,t,n,r){let i=hn({},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 qd(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 zM(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 hu(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 X$(e||500,a,new Error(s),!0)}function UM(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(cp(n))return n}}function C9(e){let t=typeof e=="string"?Nl(e):e;return $l(hn({},t,{hash:""}))}function Wse(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash!==t.hash}function Xc(e){return e.type===ei.deferred}function Bm(e){return e.type===ei.error}function cp(e){return(e&&e.type)===ei.redirect}function Vse(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Hse(e){return Pse.has(e)}function ml(e){return Ise.has(e)}async function KM(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&&!w9(u,l)&&(o&&o[l.route.id])!==void 0;Xc(s)&&(i||f)&&await E9(s,r,i).then(d=>{d&&(n[a]=d||n[a])})}}async function E9(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:ei.data,data:e.deferredData.unwrappedData}}catch(i){return{type:ei.error,error:i}}return{type:ei.data,data:e.deferredData.data}}}function k9(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function WM(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 VM(e,t){let n=typeof t=="string"?Nl(t).search:t.search;if(e[e.length-1].route.index&&k9(n||""))return e[e.length-1];let r=Tx(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 c_(){return c_=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},c_.apply(this,arguments)}function qse(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const Gse=typeof Object.is=="function"?Object.is:qse,{useState:Yse,useEffect:Xse,useLayoutEffect:Zse,useDebugValue:Jse}=cf;function Qse(e,t,n){const r=t(),[{inst:i},o]=Yse({inst:{value:r,getSnapshot:t}});return Zse(()=>{i.value=r,i.getSnapshot=t,RE(i)&&o({inst:i})},[e,r,t]),Xse(()=>(RE(i)&&o({inst:i}),e(()=>{RE(i)&&o({inst:i})})),[e]),Jse(r),r}function RE(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!Gse(n,r)}catch{return!0}}function ele(e,t,n){return t()}const tle=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",nle=!tle,rle=nle?ele:Qse,ile="useSyncExternalStore"in cf?(e=>e.useSyncExternalStore)(cf):rle,Z$=T.createContext(null),Rx=T.createContext(null),Ax=T.createContext(null),$x=T.createContext(null),kf=T.createContext({outlet:null,matches:[]}),T9=T.createContext(null);function ole(e,t){let{relative:n}=t===void 0?{}:t;ah()||Nt(!1);let{basename:r,navigator:i}=T.useContext(Ax),{hash:o,pathname:a,search:s}=A9(e,{relative:n}),l=a;return r!=="/"&&(l=a==="/"?r:El([r,a])),i.createHref({pathname:l,search:s,hash:o})}function ah(){return T.useContext($x)!=null}function sh(){return ah()||Nt(!1),T.useContext($x).location}function Zu(){ah()||Nt(!1);let{basename:e,navigator:t}=T.useContext(Ax),{matches:n}=T.useContext(kf),{pathname:r}=sh(),i=JSON.stringify(Tx(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=Y$(s,JSON.parse(i),r,l.relative==="path");e!=="/"&&(u.pathname=u.pathname==="/"?e:El([e,u.pathname])),(l.replace?t.replace:t.push)(u,l.state,l)},[e,t,i,r])}function R9(){let{matches:e}=T.useContext(kf),t=e[e.length-1];return t?t.params:{}}function A9(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=T.useContext(kf),{pathname:i}=sh(),o=JSON.stringify(Tx(r).map(a=>a.pathnameBase));return T.useMemo(()=>Y$(e,JSON.parse(o),i,n==="path"),[e,o,i,n])}function ale(e,t){ah()||Nt(!1);let{navigator:n}=T.useContext(Ax),r=T.useContext(Rx),{matches:i}=T.useContext(kf),o=i[i.length-1],a=o?o.params:{};o&&o.pathname;let s=o?o.pathnameBase:"/";o&&o.route;let l=sh(),u;if(t){var f;let y=typeof t=="string"?Nl(t):t;s==="/"||(f=y.pathname)!=null&&f.startsWith(s)||Nt(!1),u=y}else u=l;let d=u.pathname||"/",p=s==="/"?d:d.slice(s.length)||"/",g=Cm(e,{pathname:p}),v=cle(g&&g.map(y=>Object.assign({},y,{params:Object.assign({},a,y.params),pathname:El([s,n.encodeLocation?n.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:El([s,n.encodeLocation?n.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),i,r||void 0);return t&&v?T.createElement($x.Provider,{value:{location:c_({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Rr.Pop}},v):v}function sle(){let e=hle(),t=y9(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 lle 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(kf.Provider,{value:this.props.routeContext},T.createElement(T9.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ule(e){let{routeContext:t,match:n,children:r}=e,i=T.useContext(Z$);return i&&i.static&&i.staticContext&&n.route.errorElement&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),T.createElement(kf.Provider,{value:t},r)}function cle(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||Nt(!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(sle,null):null,f=t.concat(r.slice(0,s+1)),d=()=>T.createElement(ule,{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(lle,{location:n.location,component:u,error:l,children:d(),routeContext:{outlet:null,matches:f}}):d()},null)}var HM;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(HM||(HM={}));var f_;(function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(f_||(f_={}));function fle(e){let t=T.useContext(Rx);return t||Nt(!1),t}function dle(e){let t=T.useContext(kf);return t||Nt(!1),t}function ple(e){let t=dle(),n=t.matches[t.matches.length-1];return n.route.id||Nt(!1),n.route.id}function hle(){var e;let t=T.useContext(T9),n=fle(f_.UseRouteError),r=ple(f_.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function gle(e){let{fallbackElement:t,router:n}=e,r=ile(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(Z$.Provider,{value:{router:n,navigator:i,static:!1,basename:o}},T.createElement(Rx.Provider,{value:r},T.createElement(yle,{basename:n.basename,location:n.state.location,navigationType:n.state.historyAction,navigator:i},n.state.initialized?T.createElement(ble,null):t))),null)}function mle(e){let{to:t,replace:n,state:r,relative:i}=e;ah()||Nt(!1);let o=T.useContext(Rx),a=Zu();return T.useEffect(()=>{o&&o.navigation.state!=="idle"||a(t,{replace:n,state:r,relative:i})}),null}function vle(e){Nt(!1)}function yle(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Rr.Pop,navigator:o,static:a=!1}=e;ah()&&Nt(!1);let s=t.replace(/^\/*/,"/"),l=T.useMemo(()=>({basename:s,navigator:o,static:a}),[s,o,a]);typeof r=="string"&&(r=Nl(r));let{pathname:u="/",search:f="",hash:d="",state:p=null,key:g="default"}=r,v=T.useMemo(()=>{let y=v9(u,s);return y==null?null:{pathname:y,search:f,hash:d,state:p,key:g}},[s,u,f,d,p,g]);return v==null?null:T.createElement(Ax.Provider,{value:l},T.createElement($x.Provider,{children:n,value:{location:v,navigationType:i}}))}function ble(e){let{children:t,location:n}=e,r=T.useContext(Z$),i=r&&!t?r.router.routes:nR(t);return ale(i,n)}var qM;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(qM||(qM={}));new Promise(()=>{});function nR(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,nR(r.props.children,t));return}r.type!==vle&&Nt(!1),!r.props.index||!r.props.children||Nt(!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=nR(r.props.children,o)),n.push(a)}),n}function $9(e){return e.map(t=>{let n=c_({},t);return n.hasErrorBoundary==null&&(n.hasErrorBoundary=n.errorElement!=null),n.children&&(n.children=$9(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 d_(){return d_=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},d_.apply(this,arguments)}function _le(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 xle(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function wle(e,t){return e.button===0&&(!t||t==="_self")&&!xle(e)}const Sle=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function Cle(e,t){return Bse({basename:t==null?void 0:t.basename,history:ase({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||Ele(),routes:$9(e)}).initialize()}function Ele(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=d_({},t,{errors:kle(t.errors)})),t}function kle(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 X$(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 Tle=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ey=T.forwardRef(function(t,n){let{onClick:r,relative:i,reloadDocument:o,replace:a,state:s,target:l,to:u,preventScrollReset:f}=t,d=_le(t,Sle),p,g=!1;if(Tle&&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:g=!0}let v=ole(u,{relative:i}),y=Rle(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",d_({},d,{href:p||v,onClick:g||o?r:w,ref:n,target:l}))});var GM;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(GM||(GM={}));var YM;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(YM||(YM={}));function Rle(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:a}=t===void 0?{}:t,s=Zu(),l=sh(),u=A9(e,{relative:a});return T.useCallback(f=>{if(wle(f,n)){f.preventDefault();let d=r!==void 0?r:$l(l)===$l(u);s(e,{replace:d,state:i,preventScrollReset:o,relative:a})}},[l,s,u,r,i,n,e,o,a])}var O9={exports:{}},Po={},I9={exports:{}},D9={};/**
|
|
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(Z,ee){var P=Z.length;Z.push(ee);e:for(;0<P;){var ge=P-1>>>1,B=Z[ge];if(0<i(B,ee))Z[ge]=ee,Z[P]=B,P=ge;else break e}}function n(Z){return Z.length===0?null:Z[0]}function r(Z){if(Z.length===0)return null;var ee=Z[0],P=Z.pop();if(P!==ee){Z[0]=P;e:for(var ge=0,B=Z.length,L=B>>>1;ge<L;){var ae=2*(ge+1)-1,ue=Z[ae],ne=ae+1,we=Z[ne];if(0>i(ue,P))ne<B&&0>i(we,ue)?(Z[ge]=we,Z[ne]=P,ge=ne):(Z[ge]=ue,Z[ae]=P,ge=ae);else if(ne<B&&0>i(we,P))Z[ge]=we,Z[ne]=P,ge=ne;else break e}}return ee}function i(Z,ee){var P=Z.sortIndex-ee.sortIndex;return P!==0?P:Z.id-ee.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,g=!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 C(Z){for(var ee=n(u);ee!==null;){if(ee.callback===null)r(u);else if(ee.startTime<=Z)r(u),ee.sortIndex=ee.expirationTime,t(l,ee);else break;ee=n(u)}}function k(Z){if(y=!1,C(Z),!v)if(n(l)!==null)v=!0,Q(R);else{var ee=n(u);ee!==null&&le(k,ee.startTime-Z)}}function R(Z,ee){v=!1,y&&(y=!1,b(z),z=-1),g=!0;var P=p;try{for(C(ee),d=n(l);d!==null&&(!(d.expirationTime>ee)||Z&&!W());){var ge=d.callback;if(typeof ge=="function"){d.callback=null,p=d.priorityLevel;var B=ge(d.expirationTime<=ee);ee=e.unstable_now(),typeof B=="function"?d.callback=B:d===n(l)&&r(l),C(ee)}else r(l);d=n(l)}if(d!==null)var L=!0;else{var ae=n(u);ae!==null&&le(k,ae.startTime-ee),L=!1}return L}finally{d=null,p=P,g=!1}}var A=!1,O=null,z=-1,V=5,D=-1;function W(){return!(e.unstable_now()-D<V)}function ie(){if(O!==null){var Z=e.unstable_now();D=Z;var ee=!0;try{ee=O(!0,Z)}finally{ee?se():(A=!1,O=null)}}else A=!1}var se;if(typeof x=="function")se=function(){x(ie)};else if(typeof MessageChannel<"u"){var K=new MessageChannel,G=K.port2;K.port1.onmessage=ie,se=function(){G.postMessage(null)}}else se=function(){w(ie,0)};function Q(Z){O=Z,A||(A=!0,se())}function le(Z,ee){z=w(function(){Z(e.unstable_now())},ee)}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(Z){Z.callback=null},e.unstable_continueExecution=function(){v||g||(v=!0,Q(R))},e.unstable_forceFrameRate=function(Z){0>Z||125<Z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<Z?Math.floor(1e3/Z):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(Z){switch(p){case 1:case 2:case 3:var ee=3;break;default:ee=p}var P=p;p=ee;try{return Z()}finally{p=P}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(Z,ee){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var P=p;p=Z;try{return ee()}finally{p=P}},e.unstable_scheduleCallback=function(Z,ee,P){var ge=e.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?ge+P:ge):P=ge,Z){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=P+B,Z={id:f++,callback:ee,priorityLevel:Z,startTime:P,expirationTime:B,sortIndex:-1},P>ge?(Z.sortIndex=P,t(u,Z),n(l)===null&&Z===n(u)&&(y?(b(z),z=-1):y=!0,le(k,P-ge))):(Z.sortIndex=B,t(l,Z),v||g||(v=!0,Q(R))),Z},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(Z){var ee=p;return function(){var P=p;p=ee;try{return Z.apply(this,arguments)}finally{p=P}}}})(D9);I9.exports=D9;var Ale=I9.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 P9=T,Oo=Ale;function Qe(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 L9=new Set,mv={};function Tf(e,t){kp(e,t),kp(e+"Capture",t)}function kp(e,t){for(mv[e]=t,e=0;e<t.length;e++)L9.add(t[e])}var Ol=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rR=Object.prototype.hasOwnProperty,$le=/^[: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]*$/,XM={},ZM={};function Ole(e){return rR.call(ZM,e)?!0:rR.call(XM,e)?!1:$le.test(e)?ZM[e]=!0:(XM[e]=!0,!1)}function Ile(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 Dle(e,t,n,r){if(t===null||typeof t>"u"||Ile(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 Mi(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 oi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){oi[e]=new Mi(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];oi[t]=new Mi(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){oi[e]=new Mi(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){oi[e]=new Mi(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){oi[e]=new Mi(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){oi[e]=new Mi(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){oi[e]=new Mi(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){oi[e]=new Mi(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){oi[e]=new Mi(e,5,!1,e.toLowerCase(),null,!1,!1)});var J$=/[\-:]([a-z])/g;function Q$(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(J$,Q$);oi[t]=new Mi(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(J$,Q$);oi[t]=new Mi(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(J$,Q$);oi[t]=new Mi(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){oi[e]=new Mi(e,1,!1,e.toLowerCase(),null,!1,!1)});oi.xlinkHref=new Mi("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){oi[e]=new Mi(e,1,!1,e.toLowerCase(),null,!0,!0)});function eO(e,t,n,r){var i=oi.hasOwnProperty(t)?oi[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Dle(t,n,i,r)&&(n=null),r||i===null?Ole(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 Bl=P9.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,s1=Symbol.for("react.element"),Gd=Symbol.for("react.portal"),Yd=Symbol.for("react.fragment"),tO=Symbol.for("react.strict_mode"),iR=Symbol.for("react.profiler"),M9=Symbol.for("react.provider"),F9=Symbol.for("react.context"),nO=Symbol.for("react.forward_ref"),oR=Symbol.for("react.suspense"),aR=Symbol.for("react.suspense_list"),rO=Symbol.for("react.memo"),vu=Symbol.for("react.lazy"),N9=Symbol.for("react.offscreen"),JM=Symbol.iterator;function Ng(e){return e===null||typeof e!="object"?null:(e=JM&&e[JM]||e["@@iterator"],typeof e=="function"?e:null)}var fr=Object.assign,AE;function Em(e){if(AE===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);AE=t&&t[1]||""}return`
|
|
237
|
+
`+AE+e}var $E=!1;function OE(e,t){if(!e||$E)return"";$E=!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{$E=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Em(e):""}function Ple(e){switch(e.tag){case 5:return Em(e.type);case 16:return Em("Lazy");case 13:return Em("Suspense");case 19:return Em("SuspenseList");case 0:case 2:case 15:return e=OE(e.type,!1),e;case 11:return e=OE(e.type.render,!1),e;case 1:return e=OE(e.type,!0),e;default:return""}}function sR(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 Yd:return"Fragment";case Gd:return"Portal";case iR:return"Profiler";case tO:return"StrictMode";case oR:return"Suspense";case aR:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case F9:return(e.displayName||"Context")+".Consumer";case M9:return(e._context.displayName||"Context")+".Provider";case nO:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case rO:return t=e.displayName||null,t!==null?t:sR(e.type)||"Memo";case vu:t=e._payload,e=e._init;try{return sR(e(t))}catch{}}return null}function Lle(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 sR(t);case 8:return t===tO?"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 zu(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function B9(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Mle(e){var t=B9(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 l1(e){e._valueTracker||(e._valueTracker=Mle(e))}function j9(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=B9(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function p_(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 lR(e,t){var n=t.checked;return fr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function QM(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=zu(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 z9(e,t){t=t.checked,t!=null&&eO(e,"checked",t,!1)}function uR(e,t){z9(e,t);var n=zu(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")?cR(e,t.type,n):t.hasOwnProperty("defaultValue")&&cR(e,t.type,zu(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function eF(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 cR(e,t,n){(t!=="number"||p_(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var km=Array.isArray;function fp(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=""+zu(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 fR(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(Qe(91));return fr({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function tF(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(Qe(92));if(km(n)){if(1<n.length)throw Error(Qe(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:zu(n)}}function U9(e,t){var n=zu(t.value),r=zu(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 nF(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function K9(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 dR(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?K9(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var u1,W9=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(u1=u1||document.createElement("div"),u1.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=u1.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function vv(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var jm={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},Fle=["Webkit","ms","Moz","O"];Object.keys(jm).forEach(function(e){Fle.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),jm[t]=jm[e]})});function V9(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||jm.hasOwnProperty(e)&&jm[e]?(""+t).trim():t+"px"}function H9(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=V9(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Nle=fr({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 pR(e,t){if(t){if(Nle[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Qe(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Qe(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Qe(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Qe(62))}}function hR(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 gR=null;function iO(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mR=null,dp=null,pp=null;function rF(e){if(e=ry(e)){if(typeof mR!="function")throw Error(Qe(280));var t=e.stateNode;t&&(t=Lx(t),mR(e.stateNode,e.type,t))}}function q9(e){dp?pp?pp.push(e):pp=[e]:dp=e}function G9(){if(dp){var e=dp,t=pp;if(pp=dp=null,rF(e),t)for(e=0;e<t.length;e++)rF(t[e])}}function Y9(e,t){return e(t)}function X9(){}var IE=!1;function Z9(e,t,n){if(IE)return e(t,n);IE=!0;try{return Y9(e,t,n)}finally{IE=!1,(dp!==null||pp!==null)&&(X9(),G9())}}function yv(e,t){var n=e.stateNode;if(n===null)return null;var r=Lx(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(Qe(231,t,typeof n));return n}var vR=!1;if(Ol)try{var Bg={};Object.defineProperty(Bg,"passive",{get:function(){vR=!0}}),window.addEventListener("test",Bg,Bg),window.removeEventListener("test",Bg,Bg)}catch{vR=!1}function Ble(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 zm=!1,h_=null,g_=!1,yR=null,jle={onError:function(e){zm=!0,h_=e}};function zle(e,t,n,r,i,o,a,s,l){zm=!1,h_=null,Ble.apply(jle,arguments)}function Ule(e,t,n,r,i,o,a,s,l){if(zle.apply(this,arguments),zm){if(zm){var u=h_;zm=!1,h_=null}else throw Error(Qe(198));g_||(g_=!0,yR=u)}}function Rf(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 J9(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 iF(e){if(Rf(e)!==e)throw Error(Qe(188))}function Kle(e){var t=e.alternate;if(!t){if(t=Rf(e),t===null)throw Error(Qe(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 iF(i),e;if(o===r)return iF(i),t;o=o.sibling}throw Error(Qe(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(Qe(189))}}if(n.alternate!==r)throw Error(Qe(190))}if(n.tag!==3)throw Error(Qe(188));return n.stateNode.current===n?e:t}function Q9(e){return e=Kle(e),e!==null?e8(e):null}function e8(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=e8(e);if(t!==null)return t;e=e.sibling}return null}var t8=Oo.unstable_scheduleCallback,oF=Oo.unstable_cancelCallback,Wle=Oo.unstable_shouldYield,Vle=Oo.unstable_requestPaint,Cr=Oo.unstable_now,Hle=Oo.unstable_getCurrentPriorityLevel,oO=Oo.unstable_ImmediatePriority,n8=Oo.unstable_UserBlockingPriority,m_=Oo.unstable_NormalPriority,qle=Oo.unstable_LowPriority,r8=Oo.unstable_IdlePriority,Ox=null,Ds=null;function Gle(e){if(Ds&&typeof Ds.onCommitFiberRoot=="function")try{Ds.onCommitFiberRoot(Ox,e,void 0,(e.current.flags&128)===128)}catch{}}var Ha=Math.clz32?Math.clz32:Zle,Yle=Math.log,Xle=Math.LN2;function Zle(e){return e>>>=0,e===0?32:31-(Yle(e)/Xle|0)|0}var c1=64,f1=4194304;function Tm(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 v_(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=Tm(s):(o&=a,o!==0&&(r=Tm(o)))}else a=n&~i,a!==0?r=Tm(a):o!==0&&(r=Tm(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 Jle(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 Qle(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]=Jle(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}function bR(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function i8(){var e=c1;return c1<<=1,!(c1&4194240)&&(c1=64),e}function DE(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ty(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 eue(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 aO(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 Sn=0;function o8(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var a8,sO,s8,l8,u8,_R=!1,d1=[],Iu=null,Du=null,Pu=null,bv=new Map,_v=new Map,Su=[],tue="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 aF(e,t){switch(e){case"focusin":case"focusout":Iu=null;break;case"dragenter":case"dragleave":Du=null;break;case"mouseover":case"mouseout":Pu=null;break;case"pointerover":case"pointerout":bv.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_v.delete(t.pointerId)}}function jg(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=ry(t),t!==null&&sO(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function nue(e,t,n,r,i){switch(t){case"focusin":return Iu=jg(Iu,e,t,n,r,i),!0;case"dragenter":return Du=jg(Du,e,t,n,r,i),!0;case"mouseover":return Pu=jg(Pu,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return bv.set(o,jg(bv.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,_v.set(o,jg(_v.get(o)||null,e,t,n,r,i)),!0}return!1}function c8(e){var t=Zc(e.target);if(t!==null){var n=Rf(t);if(n!==null){if(t=n.tag,t===13){if(t=J9(n),t!==null){e.blockedOn=t,u8(e.priority,function(){s8(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 Rb(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=xR(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);gR=r,n.target.dispatchEvent(r),gR=null}else return t=ry(n),t!==null&&sO(t),e.blockedOn=n,!1;t.shift()}return!0}function sF(e,t,n){Rb(e)&&n.delete(t)}function rue(){_R=!1,Iu!==null&&Rb(Iu)&&(Iu=null),Du!==null&&Rb(Du)&&(Du=null),Pu!==null&&Rb(Pu)&&(Pu=null),bv.forEach(sF),_v.forEach(sF)}function zg(e,t){e.blockedOn===t&&(e.blockedOn=null,_R||(_R=!0,Oo.unstable_scheduleCallback(Oo.unstable_NormalPriority,rue)))}function xv(e){function t(i){return zg(i,e)}if(0<d1.length){zg(d1[0],e);for(var n=1;n<d1.length;n++){var r=d1[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Iu!==null&&zg(Iu,e),Du!==null&&zg(Du,e),Pu!==null&&zg(Pu,e),bv.forEach(t),_v.forEach(t),n=0;n<Su.length;n++)r=Su[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Su.length&&(n=Su[0],n.blockedOn===null);)c8(n),n.blockedOn===null&&Su.shift()}var hp=Bl.ReactCurrentBatchConfig,y_=!0;function iue(e,t,n,r){var i=Sn,o=hp.transition;hp.transition=null;try{Sn=1,lO(e,t,n,r)}finally{Sn=i,hp.transition=o}}function oue(e,t,n,r){var i=Sn,o=hp.transition;hp.transition=null;try{Sn=4,lO(e,t,n,r)}finally{Sn=i,hp.transition=o}}function lO(e,t,n,r){if(y_){var i=xR(e,t,n,r);if(i===null)KE(e,t,r,b_,n),aF(e,r);else if(nue(i,e,t,n,r))r.stopPropagation();else if(aF(e,r),t&4&&-1<tue.indexOf(e)){for(;i!==null;){var o=ry(i);if(o!==null&&a8(o),o=xR(e,t,n,r),o===null&&KE(e,t,r,b_,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else KE(e,t,r,null,n)}}var b_=null;function xR(e,t,n,r){if(b_=null,e=iO(r),e=Zc(e),e!==null)if(t=Rf(e),t===null)e=null;else if(n=t.tag,n===13){if(e=J9(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 b_=e,null}function f8(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(Hle()){case oO:return 1;case n8:return 4;case m_:case qle:return 16;case r8:return 536870912;default:return 16}default:return 16}}var Eu=null,uO=null,Ab=null;function d8(){if(Ab)return Ab;var e,t=uO,n=t.length,r,i="value"in Eu?Eu.value:Eu.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 Ab=i.slice(e,1<r?1-r:void 0)}function $b(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 p1(){return!0}function lF(){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)?p1:lF,this.isPropagationStopped=lF,this}return fr(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=p1)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=p1)},persist:function(){},isPersistent:p1}),t}var lh={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cO=Lo(lh),ny=fr({},lh,{view:0,detail:0}),aue=Lo(ny),PE,LE,Ug,Ix=fr({},ny,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fO,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!==Ug&&(Ug&&e.type==="mousemove"?(PE=e.screenX-Ug.screenX,LE=e.screenY-Ug.screenY):LE=PE=0,Ug=e),PE)},movementY:function(e){return"movementY"in e?e.movementY:LE}}),uF=Lo(Ix),sue=fr({},Ix,{dataTransfer:0}),lue=Lo(sue),uue=fr({},ny,{relatedTarget:0}),ME=Lo(uue),cue=fr({},lh,{animationName:0,elapsedTime:0,pseudoElement:0}),fue=Lo(cue),due=fr({},lh,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),pue=Lo(due),hue=fr({},lh,{data:0}),cF=Lo(hue),gue={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mue={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"},vue={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yue(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=vue[e])?!!t[e]:!1}function fO(){return yue}var bue=fr({},ny,{key:function(e){if(e.key){var t=gue[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=$b(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?mue[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fO,charCode:function(e){return e.type==="keypress"?$b(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?$b(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),_ue=Lo(bue),xue=fr({},Ix,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),fF=Lo(xue),wue=fr({},ny,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fO}),Sue=Lo(wue),Cue=fr({},lh,{propertyName:0,elapsedTime:0,pseudoElement:0}),Eue=Lo(Cue),kue=fr({},Ix,{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}),Tue=Lo(kue),Rue=[9,13,27,32],dO=Ol&&"CompositionEvent"in window,Um=null;Ol&&"documentMode"in document&&(Um=document.documentMode);var Aue=Ol&&"TextEvent"in window&&!Um,p8=Ol&&(!dO||Um&&8<Um&&11>=Um),dF=String.fromCharCode(32),pF=!1;function h8(e,t){switch(e){case"keyup":return Rue.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function g8(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xd=!1;function $ue(e,t){switch(e){case"compositionend":return g8(t);case"keypress":return t.which!==32?null:(pF=!0,dF);case"textInput":return e=t.data,e===dF&&pF?null:e;default:return null}}function Oue(e,t){if(Xd)return e==="compositionend"||!dO&&h8(e,t)?(e=d8(),Ab=uO=Eu=null,Xd=!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 p8&&t.locale!=="ko"?null:t.data;default:return null}}var Iue={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 hF(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Iue[e.type]:t==="textarea"}function m8(e,t,n,r){q9(r),t=__(t,"onChange"),0<t.length&&(n=new cO("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Km=null,wv=null;function Due(e){T8(e,0)}function Dx(e){var t=Qd(e);if(j9(t))return e}function Pue(e,t){if(e==="change")return t}var v8=!1;if(Ol){var FE;if(Ol){var NE="oninput"in document;if(!NE){var gF=document.createElement("div");gF.setAttribute("oninput","return;"),NE=typeof gF.oninput=="function"}FE=NE}else FE=!1;v8=FE&&(!document.documentMode||9<document.documentMode)}function mF(){Km&&(Km.detachEvent("onpropertychange",y8),wv=Km=null)}function y8(e){if(e.propertyName==="value"&&Dx(wv)){var t=[];m8(t,wv,e,iO(e)),Z9(Due,t)}}function Lue(e,t,n){e==="focusin"?(mF(),Km=t,wv=n,Km.attachEvent("onpropertychange",y8)):e==="focusout"&&mF()}function Mue(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Dx(wv)}function Fue(e,t){if(e==="click")return Dx(t)}function Nue(e,t){if(e==="input"||e==="change")return Dx(t)}function Bue(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Za=typeof Object.is=="function"?Object.is:Bue;function Sv(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(!rR.call(t,i)||!Za(e[i],t[i]))return!1}return!0}function vF(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yF(e,t){var n=vF(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=vF(n)}}function b8(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?b8(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function _8(){for(var e=window,t=p_();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=p_(e.document)}return t}function pO(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 jue(e){var t=_8(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&b8(n.ownerDocument.documentElement,n)){if(r!==null&&pO(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=yF(n,o);var a=yF(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 zue=Ol&&"documentMode"in document&&11>=document.documentMode,Zd=null,wR=null,Wm=null,SR=!1;function bF(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;SR||Zd==null||Zd!==p_(r)||(r=Zd,"selectionStart"in r&&pO(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}),Wm&&Sv(Wm,r)||(Wm=r,r=__(wR,"onSelect"),0<r.length&&(t=new cO("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Zd)))}function h1(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Jd={animationend:h1("Animation","AnimationEnd"),animationiteration:h1("Animation","AnimationIteration"),animationstart:h1("Animation","AnimationStart"),transitionend:h1("Transition","TransitionEnd")},BE={},x8={};Ol&&(x8=document.createElement("div").style,"AnimationEvent"in window||(delete Jd.animationend.animation,delete Jd.animationiteration.animation,delete Jd.animationstart.animation),"TransitionEvent"in window||delete Jd.transitionend.transition);function Px(e){if(BE[e])return BE[e];if(!Jd[e])return e;var t=Jd[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in x8)return BE[e]=t[n];return e}var w8=Px("animationend"),S8=Px("animationiteration"),C8=Px("animationstart"),E8=Px("transitionend"),k8=new Map,_F="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 Ju(e,t){k8.set(e,t),Tf(t,[e])}for(var jE=0;jE<_F.length;jE++){var zE=_F[jE],Uue=zE.toLowerCase(),Kue=zE[0].toUpperCase()+zE.slice(1);Ju(Uue,"on"+Kue)}Ju(w8,"onAnimationEnd");Ju(S8,"onAnimationIteration");Ju(C8,"onAnimationStart");Ju("dblclick","onDoubleClick");Ju("focusin","onFocus");Ju("focusout","onBlur");Ju(E8,"onTransitionEnd");kp("onMouseEnter",["mouseout","mouseover"]);kp("onMouseLeave",["mouseout","mouseover"]);kp("onPointerEnter",["pointerout","pointerover"]);kp("onPointerLeave",["pointerout","pointerover"]);Tf("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Tf("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Tf("onBeforeInput",["compositionend","keypress","textInput","paste"]);Tf("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Tf("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Tf("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rm="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(" "),Wue=new Set("cancel close invalid load scroll toggle".split(" ").concat(Rm));function xF(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Ule(r,t,void 0,e),e.currentTarget=null}function T8(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;xF(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;xF(i,s,u),o=l}}}if(g_)throw e=yR,g_=!1,yR=null,e}function Un(e,t){var n=t[RR];n===void 0&&(n=t[RR]=new Set);var r=e+"__bubble";n.has(r)||(R8(t,e,2,!1),n.add(r))}function UE(e,t,n){var r=0;t&&(r|=4),R8(n,e,r,t)}var g1="_reactListening"+Math.random().toString(36).slice(2);function Cv(e){if(!e[g1]){e[g1]=!0,L9.forEach(function(n){n!=="selectionchange"&&(Wue.has(n)||UE(n,!1,e),UE(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[g1]||(t[g1]=!0,UE("selectionchange",!1,t))}}function R8(e,t,n,r){switch(f8(t)){case 1:var i=iue;break;case 4:i=oue;break;default:i=lO}n=i.bind(null,t,n,e),i=void 0,!vR||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 KE(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=Zc(s),a===null)return;if(l=a.tag,l===5||l===6){r=o=a;continue e}s=s.parentNode}}r=r.return}Z9(function(){var u=o,f=iO(n),d=[];e:{var p=k8.get(e);if(p!==void 0){var g=cO,v=e;switch(e){case"keypress":if($b(n)===0)break e;case"keydown":case"keyup":g=_ue;break;case"focusin":v="focus",g=ME;break;case"focusout":v="blur",g=ME;break;case"beforeblur":case"afterblur":g=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":g=uF;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=lue;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=Sue;break;case w8:case S8:case C8:g=fue;break;case E8:g=Eue;break;case"scroll":g=aue;break;case"wheel":g=Tue;break;case"copy":case"cut":case"paste":g=pue;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=fF}var y=(t&4)!==0,w=!y&&e==="scroll",b=y?p!==null?p+"Capture":null:p;y=[];for(var x=u,C;x!==null;){C=x;var k=C.stateNode;if(C.tag===5&&k!==null&&(C=k,b!==null&&(k=yv(x,b),k!=null&&y.push(Ev(x,k,C)))),w)break;x=x.return}0<y.length&&(p=new g(p,v,null,n,f),d.push({event:p,listeners:y}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",p&&n!==gR&&(v=n.relatedTarget||n.fromElement)&&(Zc(v)||v[Il]))break e;if((g||p)&&(p=f.window===f?f:(p=f.ownerDocument)?p.defaultView||p.parentWindow:window,g?(v=n.relatedTarget||n.toElement,g=u,v=v?Zc(v):null,v!==null&&(w=Rf(v),v!==w||v.tag!==5&&v.tag!==6)&&(v=null)):(g=null,v=u),g!==v)){if(y=uF,k="onMouseLeave",b="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(y=fF,k="onPointerLeave",b="onPointerEnter",x="pointer"),w=g==null?p:Qd(g),C=v==null?p:Qd(v),p=new y(k,x+"leave",g,n,f),p.target=w,p.relatedTarget=C,k=null,Zc(f)===u&&(y=new y(b,x+"enter",v,n,f),y.target=C,y.relatedTarget=w,k=y),w=k,g&&v)t:{for(y=g,b=v,x=0,C=y;C;C=wd(C))x++;for(C=0,k=b;k;k=wd(k))C++;for(;0<x-C;)y=wd(y),x--;for(;0<C-x;)b=wd(b),C--;for(;x--;){if(y===b||b!==null&&y===b.alternate)break t;y=wd(y),b=wd(b)}y=null}else y=null;g!==null&&wF(d,p,g,y,!1),v!==null&&w!==null&&wF(d,w,v,y,!0)}}e:{if(p=u?Qd(u):window,g=p.nodeName&&p.nodeName.toLowerCase(),g==="select"||g==="input"&&p.type==="file")var R=Pue;else if(hF(p))if(v8)R=Nue;else{R=Mue;var A=Lue}else(g=p.nodeName)&&g.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(R=Fue);if(R&&(R=R(e,u))){m8(d,R,n,f);break e}A&&A(e,p,u),e==="focusout"&&(A=p._wrapperState)&&A.controlled&&p.type==="number"&&cR(p,"number",p.value)}switch(A=u?Qd(u):window,e){case"focusin":(hF(A)||A.contentEditable==="true")&&(Zd=A,wR=u,Wm=null);break;case"focusout":Wm=wR=Zd=null;break;case"mousedown":SR=!0;break;case"contextmenu":case"mouseup":case"dragend":SR=!1,bF(d,n,f);break;case"selectionchange":if(zue)break;case"keydown":case"keyup":bF(d,n,f)}var O;if(dO)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 Xd?h8(e,n)&&(z="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(z="onCompositionStart");z&&(p8&&n.locale!=="ko"&&(Xd||z!=="onCompositionStart"?z==="onCompositionEnd"&&Xd&&(O=d8()):(Eu=f,uO="value"in Eu?Eu.value:Eu.textContent,Xd=!0)),A=__(u,z),0<A.length&&(z=new cF(z,e,null,n,f),d.push({event:z,listeners:A}),O?z.data=O:(O=g8(n),O!==null&&(z.data=O)))),(O=Aue?$ue(e,n):Oue(e,n))&&(u=__(u,"onBeforeInput"),0<u.length&&(f=new cF("onBeforeInput","beforeinput",null,n,f),d.push({event:f,listeners:u}),f.data=O))}T8(d,t)})}function Ev(e,t,n){return{instance:e,listener:t,currentTarget:n}}function __(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=yv(e,n),o!=null&&r.unshift(Ev(e,o,i)),o=yv(e,t),o!=null&&r.push(Ev(e,o,i))),e=e.return}return r}function wd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function wF(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=yv(n,o),l!=null&&a.unshift(Ev(n,l,s))):i||(l=yv(n,o),l!=null&&a.push(Ev(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var Vue=/\r\n?/g,Hue=/\u0000|\uFFFD/g;function SF(e){return(typeof e=="string"?e:""+e).replace(Vue,`
|
|
241
|
+
`).replace(Hue,"")}function m1(e,t,n){if(t=SF(t),SF(e)!==t&&n)throw Error(Qe(425))}function x_(){}var CR=null,ER=null;function kR(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 TR=typeof setTimeout=="function"?setTimeout:void 0,que=typeof clearTimeout=="function"?clearTimeout:void 0,CF=typeof Promise=="function"?Promise:void 0,Gue=typeof queueMicrotask=="function"?queueMicrotask:typeof CF<"u"?function(e){return CF.resolve(null).then(e).catch(Yue)}:TR;function Yue(e){setTimeout(function(){throw e})}function WE(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),xv(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);xv(t)}function Lu(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 EF(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 uh=Math.random().toString(36).slice(2),ks="__reactFiber$"+uh,kv="__reactProps$"+uh,Il="__reactContainer$"+uh,RR="__reactEvents$"+uh,Xue="__reactListeners$"+uh,Zue="__reactHandles$"+uh;function Zc(e){var t=e[ks];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Il]||n[ks]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=EF(e);e!==null;){if(n=e[ks])return n;e=EF(e)}return t}e=n,n=e.parentNode}return null}function ry(e){return e=e[ks]||e[Il],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Qd(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(Qe(33))}function Lx(e){return e[kv]||null}var AR=[],ep=-1;function Qu(e){return{current:e}}function qn(e){0>ep||(e.current=AR[ep],AR[ep]=null,ep--)}function Bn(e,t){ep++,AR[ep]=e.current,e.current=t}var Uu={},vi=Qu(Uu),qi=Qu(!1),ff=Uu;function Tp(e,t){var n=e.type.contextTypes;if(!n)return Uu;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 Gi(e){return e=e.childContextTypes,e!=null}function w_(){qn(qi),qn(vi)}function kF(e,t,n){if(vi.current!==Uu)throw Error(Qe(168));Bn(vi,t),Bn(qi,n)}function A8(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(Qe(108,Lle(e)||"Unknown",i));return fr({},n,r)}function S_(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Uu,ff=vi.current,Bn(vi,e),Bn(qi,qi.current),!0}function TF(e,t,n){var r=e.stateNode;if(!r)throw Error(Qe(169));n?(e=A8(e,t,ff),r.__reactInternalMemoizedMergedChildContext=e,qn(qi),qn(vi),Bn(vi,e)):qn(qi),Bn(qi,n)}var _l=null,Mx=!1,VE=!1;function $8(e){_l===null?_l=[e]:_l.push(e)}function Jue(e){Mx=!0,$8(e)}function ec(){if(!VE&&_l!==null){VE=!0;var e=0,t=Sn;try{var n=_l;for(Sn=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}_l=null,Mx=!1}catch(i){throw _l!==null&&(_l=_l.slice(e+1)),t8(oO,ec),i}finally{Sn=t,VE=!1}}return null}var tp=[],np=0,C_=null,E_=0,Qo=[],ea=0,df=null,wl=1,Sl="";function Mc(e,t){tp[np++]=E_,tp[np++]=C_,C_=e,E_=t}function O8(e,t,n){Qo[ea++]=wl,Qo[ea++]=Sl,Qo[ea++]=df,df=e;var r=wl;e=Sl;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,wl=1<<32-Ha(t)+i|n<<i|r,Sl=o+e}else wl=1<<o|n<<i|r,Sl=e}function hO(e){e.return!==null&&(Mc(e,1),O8(e,1,0))}function gO(e){for(;e===C_;)C_=tp[--np],tp[np]=null,E_=tp[--np],tp[np]=null;for(;e===df;)df=Qo[--ea],Qo[ea]=null,Sl=Qo[--ea],Qo[ea]=null,wl=Qo[--ea],Qo[ea]=null}var To=null,Eo=null,Jn=!1,Ka=null;function I8(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 RF(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,To=e,Eo=Lu(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,To=e,Eo=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=df!==null?{id:wl,overflow:Sl}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ra(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,To=e,Eo=null,!0):!1;default:return!1}}function $R(e){return(e.mode&1)!==0&&(e.flags&128)===0}function OR(e){if(Jn){var t=Eo;if(t){var n=t;if(!RF(e,t)){if($R(e))throw Error(Qe(418));t=Lu(n.nextSibling);var r=To;t&&RF(e,t)?I8(r,n):(e.flags=e.flags&-4097|2,Jn=!1,To=e)}}else{if($R(e))throw Error(Qe(418));e.flags=e.flags&-4097|2,Jn=!1,To=e}}}function AF(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;To=e}function v1(e){if(e!==To)return!1;if(!Jn)return AF(e),Jn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!kR(e.type,e.memoizedProps)),t&&(t=Eo)){if($R(e))throw D8(),Error(Qe(418));for(;t;)I8(e,t),t=Lu(t.nextSibling)}if(AF(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Qe(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Eo=Lu(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Eo=null}}else Eo=To?Lu(e.stateNode.nextSibling):null;return!0}function D8(){for(var e=Eo;e;)e=Lu(e.nextSibling)}function Rp(){Eo=To=null,Jn=!1}function mO(e){Ka===null?Ka=[e]:Ka.push(e)}var Que=Bl.ReactCurrentBatchConfig;function Ba(e,t){if(e&&e.defaultProps){t=fr({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var k_=Qu(null),T_=null,rp=null,vO=null;function yO(){vO=rp=T_=null}function bO(e){var t=k_.current;qn(k_),e._currentValue=t}function IR(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 gp(e,t){T_=e,vO=rp=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Hi=!0),e.firstContext=null)}function ca(e){var t=e._currentValue;if(vO!==e)if(e={context:e,memoizedValue:t,next:null},rp===null){if(T_===null)throw Error(Qe(308));rp=e,T_.dependencies={lanes:0,firstContext:e}}else rp=rp.next=e;return t}var Jc=null;function _O(e){Jc===null?Jc=[e]:Jc.push(e)}function P8(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,_O(t)):(n.next=i.next,i.next=n),t.interleaved=n,Dl(e,r)}function Dl(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 yu=!1;function xO(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function L8(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 kl(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Mu(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,Dl(e,n)}return i=r.interleaved,i===null?(t.next=t,_O(r)):(t.next=i.next,i.next=t),r.interleaved=t,Dl(e,n)}function Ob(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,aO(e,n)}}function $F(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 R_(e,t,n,r){var i=e.updateQueue;yu=!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,g=s.eventTime;if((r&p)===p){f!==null&&(f=f.next={eventTime:g,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,y=s;switch(p=t,g=n,y.tag){case 1:if(v=y.payload,typeof v=="function"){d=v.call(g,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(g,d,p):v,p==null)break e;d=fr({},d,p);break e;case 2:yu=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[s]:p.push(s))}else g={eventTime:g,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},f===null?(u=f=g,l=d):f=f.next=g,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);hf|=a,e.lanes=a,e.memoizedState=d}}function OF(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(Qe(191,i));i.call(r)}}}var M8=new P9.Component().refs;function DR(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:fr({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Fx={isMounted:function(e){return(e=e._reactInternals)?Rf(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Di(),i=Nu(e),o=kl(r,i);o.payload=t,n!=null&&(o.callback=n),t=Mu(e,o,i),t!==null&&(qa(t,e,i,r),Ob(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Di(),i=Nu(e),o=kl(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Mu(e,o,i),t!==null&&(qa(t,e,i,r),Ob(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Di(),r=Nu(e),i=kl(n,r);i.tag=2,t!=null&&(i.callback=t),t=Mu(e,i,r),t!==null&&(qa(t,e,r,n),Ob(t,e,r))}};function IF(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?!Sv(n,r)||!Sv(i,o):!0}function F8(e,t,n){var r=!1,i=Uu,o=t.contextType;return typeof o=="object"&&o!==null?o=ca(o):(i=Gi(t)?ff:vi.current,r=t.contextTypes,o=(r=r!=null)?Tp(e,i):Uu),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Fx,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function DF(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&&Fx.enqueueReplaceState(t,t.state,null)}function PR(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=M8,xO(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=ca(o):(o=Gi(t)?ff:vi.current,i.context=Tp(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(DR(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&&Fx.enqueueReplaceState(i,i.state,null),R_(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Kg(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(Qe(309));var r=n.stateNode}if(!r)throw Error(Qe(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===M8&&(s=i.refs={}),a===null?delete s[o]:s[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(Qe(284));if(!n._owner)throw Error(Qe(290,e))}return e}function y1(e,t){throw e=Object.prototype.toString.call(t),Error(Qe(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function PF(e){var t=e._init;return t(e._payload)}function N8(e){function t(b,x){if(e){var C=b.deletions;C===null?(b.deletions=[x],b.flags|=16):C.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=Bu(b,x),b.index=0,b.sibling=null,b}function o(b,x,C){return b.index=C,e?(C=b.alternate,C!==null?(C=C.index,C<x?(b.flags|=2,x):C):(b.flags|=2,x)):(b.flags|=1048576,x)}function a(b){return e&&b.alternate===null&&(b.flags|=2),b}function s(b,x,C,k){return x===null||x.tag!==6?(x=JE(C,b.mode,k),x.return=b,x):(x=i(x,C),x.return=b,x)}function l(b,x,C,k){var R=C.type;return R===Yd?f(b,x,C.props.children,k,C.key):x!==null&&(x.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===vu&&PF(R)===x.type)?(k=i(x,C.props),k.ref=Kg(b,x,C),k.return=b,k):(k=Fb(C.type,C.key,C.props,null,b.mode,k),k.ref=Kg(b,x,C),k.return=b,k)}function u(b,x,C,k){return x===null||x.tag!==4||x.stateNode.containerInfo!==C.containerInfo||x.stateNode.implementation!==C.implementation?(x=QE(C,b.mode,k),x.return=b,x):(x=i(x,C.children||[]),x.return=b,x)}function f(b,x,C,k,R){return x===null||x.tag!==7?(x=of(C,b.mode,k,R),x.return=b,x):(x=i(x,C),x.return=b,x)}function d(b,x,C){if(typeof x=="string"&&x!==""||typeof x=="number")return x=JE(""+x,b.mode,C),x.return=b,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case s1:return C=Fb(x.type,x.key,x.props,null,b.mode,C),C.ref=Kg(b,null,x),C.return=b,C;case Gd:return x=QE(x,b.mode,C),x.return=b,x;case vu:var k=x._init;return d(b,k(x._payload),C)}if(km(x)||Ng(x))return x=of(x,b.mode,C,null),x.return=b,x;y1(b,x)}return null}function p(b,x,C,k){var R=x!==null?x.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return R!==null?null:s(b,x,""+C,k);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case s1:return C.key===R?l(b,x,C,k):null;case Gd:return C.key===R?u(b,x,C,k):null;case vu:return R=C._init,p(b,x,R(C._payload),k)}if(km(C)||Ng(C))return R!==null?null:f(b,x,C,k,null);y1(b,C)}return null}function g(b,x,C,k,R){if(typeof k=="string"&&k!==""||typeof k=="number")return b=b.get(C)||null,s(x,b,""+k,R);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case s1:return b=b.get(k.key===null?C:k.key)||null,l(x,b,k,R);case Gd:return b=b.get(k.key===null?C:k.key)||null,u(x,b,k,R);case vu:var A=k._init;return g(b,x,C,A(k._payload),R)}if(km(k)||Ng(k))return b=b.get(C)||null,f(x,b,k,R,null);y1(x,k)}return null}function v(b,x,C,k){for(var R=null,A=null,O=x,z=x=0,V=null;O!==null&&z<C.length;z++){O.index>z?(V=O,O=null):V=O.sibling;var D=p(b,O,C[z],k);if(D===null){O===null&&(O=V);break}e&&O&&D.alternate===null&&t(b,O),x=o(D,x,z),A===null?R=D:A.sibling=D,A=D,O=V}if(z===C.length)return n(b,O),Jn&&Mc(b,z),R;if(O===null){for(;z<C.length;z++)O=d(b,C[z],k),O!==null&&(x=o(O,x,z),A===null?R=O:A.sibling=O,A=O);return Jn&&Mc(b,z),R}for(O=r(b,O);z<C.length;z++)V=g(O,b,z,C[z],k),V!==null&&(e&&V.alternate!==null&&O.delete(V.key===null?z:V.key),x=o(V,x,z),A===null?R=V:A.sibling=V,A=V);return e&&O.forEach(function(W){return t(b,W)}),Jn&&Mc(b,z),R}function y(b,x,C,k){var R=Ng(C);if(typeof R!="function")throw Error(Qe(150));if(C=R.call(C),C==null)throw Error(Qe(151));for(var A=R=null,O=x,z=x=0,V=null,D=C.next();O!==null&&!D.done;z++,D=C.next()){O.index>z?(V=O,O=null):V=O.sibling;var W=p(b,O,D.value,k);if(W===null){O===null&&(O=V);break}e&&O&&W.alternate===null&&t(b,O),x=o(W,x,z),A===null?R=W:A.sibling=W,A=W,O=V}if(D.done)return n(b,O),Jn&&Mc(b,z),R;if(O===null){for(;!D.done;z++,D=C.next())D=d(b,D.value,k),D!==null&&(x=o(D,x,z),A===null?R=D:A.sibling=D,A=D);return Jn&&Mc(b,z),R}for(O=r(b,O);!D.done;z++,D=C.next())D=g(O,b,z,D.value,k),D!==null&&(e&&D.alternate!==null&&O.delete(D.key===null?z:D.key),x=o(D,x,z),A===null?R=D:A.sibling=D,A=D);return e&&O.forEach(function(ie){return t(b,ie)}),Jn&&Mc(b,z),R}function w(b,x,C,k){if(typeof C=="object"&&C!==null&&C.type===Yd&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case s1:e:{for(var R=C.key,A=x;A!==null;){if(A.key===R){if(R=C.type,R===Yd){if(A.tag===7){n(b,A.sibling),x=i(A,C.props.children),x.return=b,b=x;break e}}else if(A.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===vu&&PF(R)===A.type){n(b,A.sibling),x=i(A,C.props),x.ref=Kg(b,A,C),x.return=b,b=x;break e}n(b,A);break}else t(b,A);A=A.sibling}C.type===Yd?(x=of(C.props.children,b.mode,k,C.key),x.return=b,b=x):(k=Fb(C.type,C.key,C.props,null,b.mode,k),k.ref=Kg(b,x,C),k.return=b,b=k)}return a(b);case Gd:e:{for(A=C.key;x!==null;){if(x.key===A)if(x.tag===4&&x.stateNode.containerInfo===C.containerInfo&&x.stateNode.implementation===C.implementation){n(b,x.sibling),x=i(x,C.children||[]),x.return=b,b=x;break e}else{n(b,x);break}else t(b,x);x=x.sibling}x=QE(C,b.mode,k),x.return=b,b=x}return a(b);case vu:return A=C._init,w(b,x,A(C._payload),k)}if(km(C))return v(b,x,C,k);if(Ng(C))return y(b,x,C,k);y1(b,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,x!==null&&x.tag===6?(n(b,x.sibling),x=i(x,C),x.return=b,b=x):(n(b,x),x=JE(C,b.mode,k),x.return=b,b=x),a(b)):n(b,x)}return w}var Ap=N8(!0),B8=N8(!1),iy={},Ps=Qu(iy),Tv=Qu(iy),Rv=Qu(iy);function Qc(e){if(e===iy)throw Error(Qe(174));return e}function wO(e,t){switch(Bn(Rv,t),Bn(Tv,e),Bn(Ps,iy),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:dR(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=dR(t,e)}qn(Ps),Bn(Ps,t)}function $p(){qn(Ps),qn(Tv),qn(Rv)}function j8(e){Qc(Rv.current);var t=Qc(Ps.current),n=dR(t,e.type);t!==n&&(Bn(Tv,e),Bn(Ps,n))}function SO(e){Tv.current===e&&(qn(Ps),qn(Tv))}var ur=Qu(0);function A_(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 HE=[];function CO(){for(var e=0;e<HE.length;e++)HE[e]._workInProgressVersionPrimary=null;HE.length=0}var Ib=Bl.ReactCurrentDispatcher,qE=Bl.ReactCurrentBatchConfig,pf=0,cr=null,Lr=null,Ur=null,$_=!1,Vm=!1,Av=0,ece=0;function ui(){throw Error(Qe(321))}function EO(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 kO(e,t,n,r,i,o){if(pf=o,cr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ib.current=e===null||e.memoizedState===null?ice:oce,e=n(r,i),Vm){o=0;do{if(Vm=!1,Av=0,25<=o)throw Error(Qe(301));o+=1,Ur=Lr=null,t.updateQueue=null,Ib.current=ace,e=n(r,i)}while(Vm)}if(Ib.current=O_,t=Lr!==null&&Lr.next!==null,pf=0,Ur=Lr=cr=null,$_=!1,t)throw Error(Qe(300));return e}function TO(){var e=Av!==0;return Av=0,e}function _s(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ur===null?cr.memoizedState=Ur=e:Ur=Ur.next=e,Ur}function fa(){if(Lr===null){var e=cr.alternate;e=e!==null?e.memoizedState:null}else e=Lr.next;var t=Ur===null?cr.memoizedState:Ur.next;if(t!==null)Ur=t,Lr=e;else{if(e===null)throw Error(Qe(310));Lr=e,e={memoizedState:Lr.memoizedState,baseState:Lr.baseState,baseQueue:Lr.baseQueue,queue:Lr.queue,next:null},Ur===null?cr.memoizedState=Ur=e:Ur=Ur.next=e}return Ur}function $v(e,t){return typeof t=="function"?t(e):t}function GE(e){var t=fa(),n=t.queue;if(n===null)throw Error(Qe(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((pf&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,cr.lanes|=f,hf|=f}u=u.next}while(u!==null&&u!==o);l===null?a=r:l.next=s,Za(r,t.memoizedState)||(Hi=!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,cr.lanes|=o,hf|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function YE(e){var t=fa(),n=t.queue;if(n===null)throw Error(Qe(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)||(Hi=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function z8(){}function U8(e,t){var n=cr,r=fa(),i=t(),o=!Za(r.memoizedState,i);if(o&&(r.memoizedState=i,Hi=!0),r=r.queue,RO(V8.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Ur!==null&&Ur.memoizedState.tag&1){if(n.flags|=2048,Ov(9,W8.bind(null,n,r,i,t),void 0,null),Kr===null)throw Error(Qe(349));pf&30||K8(n,t,i)}return i}function K8(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=cr.updateQueue,t===null?(t={lastEffect:null,stores:null},cr.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function W8(e,t,n,r){t.value=n,t.getSnapshot=r,H8(t)&&q8(e)}function V8(e,t,n){return n(function(){H8(t)&&q8(e)})}function H8(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Za(e,n)}catch{return!0}}function q8(e){var t=Dl(e,1);t!==null&&qa(t,e,1,-1)}function LF(e){var t=_s();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$v,lastRenderedState:e},t.queue=e,e=e.dispatch=rce.bind(null,cr,e),[t.memoizedState,e]}function Ov(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=cr.updateQueue,t===null?(t={lastEffect:null,stores:null},cr.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 G8(){return fa().memoizedState}function Db(e,t,n,r){var i=_s();cr.flags|=e,i.memoizedState=Ov(1|t,n,void 0,r===void 0?null:r)}function Nx(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&&EO(r,a.deps)){i.memoizedState=Ov(t,n,o,r);return}}cr.flags|=e,i.memoizedState=Ov(1|t,n,o,r)}function MF(e,t){return Db(8390656,8,e,t)}function RO(e,t){return Nx(2048,8,e,t)}function Y8(e,t){return Nx(4,2,e,t)}function X8(e,t){return Nx(4,4,e,t)}function Z8(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 J8(e,t,n){return n=n!=null?n.concat([e]):null,Nx(4,4,Z8.bind(null,t,e),n)}function AO(){}function Q8(e,t){var n=fa();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&EO(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function e7(e,t){var n=fa();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&EO(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function t7(e,t,n){return pf&21?(Za(n,t)||(n=i8(),cr.lanes|=n,hf|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Hi=!0),e.memoizedState=n)}function tce(e,t){var n=Sn;Sn=n!==0&&4>n?n:4,e(!0);var r=qE.transition;qE.transition={};try{e(!1),t()}finally{Sn=n,qE.transition=r}}function n7(){return fa().memoizedState}function nce(e,t,n){var r=Nu(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},r7(e))i7(t,n);else if(n=P8(e,t,n,r),n!==null){var i=Di();qa(n,e,r,i),o7(n,t,r)}}function rce(e,t,n){var r=Nu(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(r7(e))i7(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,_O(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=P8(e,t,i,r),n!==null&&(i=Di(),qa(n,e,r,i),o7(n,t,r))}}function r7(e){var t=e.alternate;return e===cr||t!==null&&t===cr}function i7(e,t){Vm=$_=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function o7(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,aO(e,n)}}var O_={readContext:ca,useCallback:ui,useContext:ui,useEffect:ui,useImperativeHandle:ui,useInsertionEffect:ui,useLayoutEffect:ui,useMemo:ui,useReducer:ui,useRef:ui,useState:ui,useDebugValue:ui,useDeferredValue:ui,useTransition:ui,useMutableSource:ui,useSyncExternalStore:ui,useId:ui,unstable_isNewReconciler:!1},ice={readContext:ca,useCallback:function(e,t){return _s().memoizedState=[e,t===void 0?null:t],e},useContext:ca,useEffect:MF,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Db(4194308,4,Z8.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Db(4194308,4,e,t)},useInsertionEffect:function(e,t){return Db(4,2,e,t)},useMemo:function(e,t){var n=_s();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_s();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=nce.bind(null,cr,e),[r.memoizedState,e]},useRef:function(e){var t=_s();return e={current:e},t.memoizedState=e},useState:LF,useDebugValue:AO,useDeferredValue:function(e){return _s().memoizedState=e},useTransition:function(){var e=LF(!1),t=e[0];return e=tce.bind(null,e[1]),_s().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=cr,i=_s();if(Jn){if(n===void 0)throw Error(Qe(407));n=n()}else{if(n=t(),Kr===null)throw Error(Qe(349));pf&30||K8(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,MF(V8.bind(null,r,o,e),[e]),r.flags|=2048,Ov(9,W8.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=_s(),t=Kr.identifierPrefix;if(Jn){var n=Sl,r=wl;n=(r&~(1<<32-Ha(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Av++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=ece++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},oce={readContext:ca,useCallback:Q8,useContext:ca,useEffect:RO,useImperativeHandle:J8,useInsertionEffect:Y8,useLayoutEffect:X8,useMemo:e7,useReducer:GE,useRef:G8,useState:function(){return GE($v)},useDebugValue:AO,useDeferredValue:function(e){var t=fa();return t7(t,Lr.memoizedState,e)},useTransition:function(){var e=GE($v)[0],t=fa().memoizedState;return[e,t]},useMutableSource:z8,useSyncExternalStore:U8,useId:n7,unstable_isNewReconciler:!1},ace={readContext:ca,useCallback:Q8,useContext:ca,useEffect:RO,useImperativeHandle:J8,useInsertionEffect:Y8,useLayoutEffect:X8,useMemo:e7,useReducer:YE,useRef:G8,useState:function(){return YE($v)},useDebugValue:AO,useDeferredValue:function(e){var t=fa();return Lr===null?t.memoizedState=e:t7(t,Lr.memoizedState,e)},useTransition:function(){var e=YE($v)[0],t=fa().memoizedState;return[e,t]},useMutableSource:z8,useSyncExternalStore:U8,useId:n7,unstable_isNewReconciler:!1};function Op(e,t){try{var n="",r=t;do n+=Ple(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 XE(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function LR(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var sce=typeof WeakMap=="function"?WeakMap:Map;function a7(e,t,n){n=kl(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){D_||(D_=!0,VR=r),LR(e,t)},n}function s7(e,t,n){n=kl(-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(){LR(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){LR(e,t),typeof r!="function"&&(Fu===null?Fu=new Set([this]):Fu.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function FF(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new sce;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=xce.bind(null,e,t,n),t.then(e,e))}function NF(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 BF(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=kl(-1,1),t.tag=2,Mu(n,t,1))),n.lanes|=1),e)}var lce=Bl.ReactCurrentOwner,Hi=!1;function Ai(e,t,n,r){t.child=e===null?B8(t,null,n,r):Ap(t,e.child,n,r)}function jF(e,t,n,r,i){n=n.render;var o=t.ref;return gp(t,i),r=kO(e,t,n,r,o,i),n=TO(),e!==null&&!Hi?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pl(e,t,i)):(Jn&&n&&hO(t),t.flags|=1,Ai(e,t,r,i),t.child)}function zF(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!FO(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,l7(e,t,o,r,i)):(e=Fb(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:Sv,n(a,r)&&e.ref===t.ref)return Pl(e,t,i)}return t.flags|=1,e=Bu(o,r),e.ref=t.ref,e.return=t,t.child=e}function l7(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Sv(o,r)&&e.ref===t.ref)if(Hi=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Hi=!0);else return t.lanes=e.lanes,Pl(e,t,i)}return MR(e,t,n,r,i)}function u7(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},Bn(op,_o),_o|=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,Bn(op,_o),_o|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Bn(op,_o),_o|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Bn(op,_o),_o|=r;return Ai(e,t,i,n),t.child}function c7(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function MR(e,t,n,r,i){var o=Gi(n)?ff:vi.current;return o=Tp(t,o),gp(t,i),n=kO(e,t,n,r,o,i),r=TO(),e!==null&&!Hi?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Pl(e,t,i)):(Jn&&r&&hO(t),t.flags|=1,Ai(e,t,n,i),t.child)}function UF(e,t,n,r,i){if(Gi(n)){var o=!0;S_(t)}else o=!1;if(gp(t,i),t.stateNode===null)Pb(e,t),F8(t,n,r),PR(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=Gi(n)?ff:vi.current,u=Tp(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)&&DF(t,a,r,u),yu=!1;var p=t.memoizedState;a.state=p,R_(t,r,a,i),l=t.memoizedState,s!==r||p!==l||qi.current||yu?(typeof f=="function"&&(DR(t,n,f,r),l=t.memoizedState),(s=yu||IF(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,L8(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=Gi(n)?ff:vi.current,l=Tp(t,l));var g=n.getDerivedStateFromProps;(f=typeof g=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||p!==l)&&DF(t,a,r,l),yu=!1,p=t.memoizedState,a.state=p,R_(t,r,a,i);var v=t.memoizedState;s!==d||p!==v||qi.current||yu?(typeof g=="function"&&(DR(t,n,g,r),v=t.memoizedState),(u=yu||IF(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 FR(e,t,n,r,o,i)}function FR(e,t,n,r,i,o){c7(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&TF(t,n,!1),Pl(e,t,o);r=t.stateNode,lce.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=Ap(t,e.child,null,o),t.child=Ap(t,null,s,o)):Ai(e,t,s,o),t.memoizedState=r.state,i&&TF(t,n,!0),t.child}function f7(e){var t=e.stateNode;t.pendingContext?kF(e,t.pendingContext,t.pendingContext!==t.context):t.context&&kF(e,t.context,!1),wO(e,t.containerInfo)}function KF(e,t,n,r,i){return Rp(),mO(i),t.flags|=256,Ai(e,t,n,r),t.child}var NR={dehydrated:null,treeContext:null,retryLane:0};function BR(e){return{baseLanes:e,cachePool:null,transitions:null}}function d7(e,t,n){var r=t.pendingProps,i=ur.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),Bn(ur,i&1),e===null)return OR(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=zx(a,r,0,null),e=of(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=BR(n),t.memoizedState=NR,e):$O(t,a));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return uce(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=Bu(i,l),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=Bu(s,o):(o=of(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?BR(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=NR,r}return o=e.child,e=o.sibling,r=Bu(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 $O(e,t){return t=zx({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function b1(e,t,n,r){return r!==null&&mO(r),Ap(t,e.child,null,n),e=$O(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function uce(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=XE(Error(Qe(422))),b1(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=zx({mode:"visible",children:r.children},i,0,null),o=of(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Ap(t,e.child,null,a),t.child.memoizedState=BR(a),t.memoizedState=NR,o);if(!(t.mode&1))return b1(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(Qe(419)),r=XE(o,r,void 0),b1(e,t,a,r)}if(s=(a&e.childLanes)!==0,Hi||s){if(r=Kr,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,Dl(e,i),qa(r,e,i,-1))}return MO(),r=XE(Error(Qe(421))),b1(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=wce.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Eo=Lu(i.nextSibling),To=t,Jn=!0,Ka=null,e!==null&&(Qo[ea++]=wl,Qo[ea++]=Sl,Qo[ea++]=df,wl=e.id,Sl=e.overflow,df=t),t=$O(t,r.children),t.flags|=4096,t)}function WF(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),IR(e.return,t,n)}function ZE(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 p7(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ai(e,t,r.children,n),r=ur.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&&WF(e,n,t);else if(e.tag===19)WF(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(Bn(ur,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&&A_(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ZE(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&&A_(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ZE(t,!0,n,null,o);break;case"together":ZE(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Pb(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Pl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),hf|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Qe(153));if(t.child!==null){for(e=t.child,n=Bu(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Bu(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function cce(e,t,n){switch(t.tag){case 3:f7(t),Rp();break;case 5:j8(t);break;case 1:Gi(t.type)&&S_(t);break;case 4:wO(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Bn(k_,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Bn(ur,ur.current&1),t.flags|=128,null):n&t.child.childLanes?d7(e,t,n):(Bn(ur,ur.current&1),e=Pl(e,t,n),e!==null?e.sibling:null);Bn(ur,ur.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return p7(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Bn(ur,ur.current),r)break;return null;case 22:case 23:return t.lanes=0,u7(e,t,n)}return Pl(e,t,n)}var h7,jR,g7,m7;h7=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}};jR=function(){};g7=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Qc(Ps.current);var o=null;switch(n){case"input":i=lR(e,i),r=lR(e,r),o=[];break;case"select":i=fr({},i,{value:void 0}),r=fr({},r,{value:void 0}),o=[];break;case"textarea":i=fR(e,i),r=fR(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=x_)}pR(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"&&(mv.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"&&(mv.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&Un("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)}};m7=function(e,t,n,r){n!==r&&(t.flags|=4)};function Wg(e,t){if(!Jn)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 ci(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 fce(e,t,n){var r=t.pendingProps;switch(gO(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ci(t),null;case 1:return Gi(t.type)&&w_(),ci(t),null;case 3:return r=t.stateNode,$p(),qn(qi),qn(vi),CO(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(v1(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ka!==null&&(GR(Ka),Ka=null))),jR(e,t),ci(t),null;case 5:SO(t);var i=Qc(Rv.current);if(n=t.type,e!==null&&t.stateNode!=null)g7(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Qe(166));return ci(t),null}if(e=Qc(Ps.current),v1(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[ks]=t,r[kv]=o,e=(t.mode&1)!==0,n){case"dialog":Un("cancel",r),Un("close",r);break;case"iframe":case"object":case"embed":Un("load",r);break;case"video":case"audio":for(i=0;i<Rm.length;i++)Un(Rm[i],r);break;case"source":Un("error",r);break;case"img":case"image":case"link":Un("error",r),Un("load",r);break;case"details":Un("toggle",r);break;case"input":QM(r,o),Un("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Un("invalid",r);break;case"textarea":tF(r,o),Un("invalid",r)}pR(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&&m1(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&m1(r.textContent,s,e),i=["children",""+s]):mv.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&Un("scroll",r)}switch(n){case"input":l1(r),eF(r,o,!0);break;case"textarea":l1(r),nF(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=x_)}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=K9(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[ks]=t,e[kv]=r,h7(e,t,!1,!1),t.stateNode=e;e:{switch(a=hR(n,r),n){case"dialog":Un("cancel",e),Un("close",e),i=r;break;case"iframe":case"object":case"embed":Un("load",e),i=r;break;case"video":case"audio":for(i=0;i<Rm.length;i++)Un(Rm[i],e);i=r;break;case"source":Un("error",e),i=r;break;case"img":case"image":case"link":Un("error",e),Un("load",e),i=r;break;case"details":Un("toggle",e),i=r;break;case"input":QM(e,r),i=lR(e,r),Un("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=fr({},r,{value:void 0}),Un("invalid",e);break;case"textarea":tF(e,r),i=fR(e,r),Un("invalid",e);break;default:i=r}pR(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?H9(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&W9(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&vv(e,l):typeof l=="number"&&vv(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(mv.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Un("scroll",e):l!=null&&eO(e,o,l,a))}switch(n){case"input":l1(e),eF(e,r,!1);break;case"textarea":l1(e),nF(e);break;case"option":r.value!=null&&e.setAttribute("value",""+zu(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?fp(e,!!r.multiple,o,!1):r.defaultValue!=null&&fp(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=x_)}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 ci(t),null;case 6:if(e&&t.stateNode!=null)m7(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Qe(166));if(n=Qc(Rv.current),Qc(Ps.current),v1(t)){if(r=t.stateNode,n=t.memoizedProps,r[ks]=t,(o=r.nodeValue!==n)&&(e=To,e!==null))switch(e.tag){case 3:m1(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&m1(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ks]=t,t.stateNode=r}return ci(t),null;case 13:if(qn(ur),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Jn&&Eo!==null&&t.mode&1&&!(t.flags&128))D8(),Rp(),t.flags|=98560,o=!1;else if(o=v1(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(Qe(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(Qe(317));o[ks]=t}else Rp(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ci(t),o=!1}else Ka!==null&&(GR(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||ur.current&1?Mr===0&&(Mr=3):MO())),t.updateQueue!==null&&(t.flags|=4),ci(t),null);case 4:return $p(),jR(e,t),e===null&&Cv(t.stateNode.containerInfo),ci(t),null;case 10:return bO(t.type._context),ci(t),null;case 17:return Gi(t.type)&&w_(),ci(t),null;case 19:if(qn(ur),o=t.memoizedState,o===null)return ci(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)Wg(o,!1);else{if(Mr!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=A_(e),a!==null){for(t.flags|=128,Wg(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 Bn(ur,ur.current&1|2),t.child}e=e.sibling}o.tail!==null&&Cr()>Ip&&(t.flags|=128,r=!0,Wg(o,!1),t.lanes=4194304)}else{if(!r)if(e=A_(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Wg(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Jn)return ci(t),null}else 2*Cr()-o.renderingStartTime>Ip&&n!==1073741824&&(t.flags|=128,r=!0,Wg(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=ur.current,Bn(ur,r?n&1|2:n&1),t):(ci(t),null);case 22:case 23:return LO(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?_o&1073741824&&(ci(t),t.subtreeFlags&6&&(t.flags|=8192)):ci(t),null;case 24:return null;case 25:return null}throw Error(Qe(156,t.tag))}function dce(e,t){switch(gO(t),t.tag){case 1:return Gi(t.type)&&w_(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $p(),qn(qi),qn(vi),CO(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return SO(t),null;case 13:if(qn(ur),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Qe(340));Rp()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return qn(ur),null;case 4:return $p(),null;case 10:return bO(t.type._context),null;case 22:case 23:return LO(),null;case 24:return null;default:return null}}var _1=!1,hi=!1,pce=typeof WeakSet=="function"?WeakSet:Set,pt=null;function ip(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){vr(e,t,r)}else n.current=null}function zR(e,t,n){try{n()}catch(r){vr(e,t,r)}}var VF=!1;function hce(e,t){if(CR=y_,e=_8(),pO(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 g;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),(g=d.firstChild)!==null;)p=d,d=g;for(;;){if(d===e)break t;if(p===n&&++u===i&&(s=a),p===o&&++f===r&&(l=a),(g=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=g}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ER={focusedElem:e,selectionRange:n},y_=!1,pt=t;pt!==null;)if(t=pt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,pt=e;else for(;pt!==null;){t=pt;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 C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Qe(163))}}catch(k){vr(t,t.return,k)}if(e=t.sibling,e!==null){e.return=t.return,pt=e;break}pt=t.return}return v=VF,VF=!1,v}function Hm(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&&zR(t,n,o)}i=i.next}while(i!==r)}}function Bx(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 UR(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 v7(e){var t=e.alternate;t!==null&&(e.alternate=null,v7(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ks],delete t[kv],delete t[RR],delete t[Xue],delete t[Zue])),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 y7(e){return e.tag===5||e.tag===3||e.tag===4}function HF(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||y7(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 KR(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=x_));else if(r!==4&&(e=e.child,e!==null))for(KR(e,t,n),e=e.sibling;e!==null;)KR(e,t,n),e=e.sibling}function WR(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(WR(e,t,n),e=e.sibling;e!==null;)WR(e,t,n),e=e.sibling}var Jr=null,za=!1;function su(e,t,n){for(n=n.child;n!==null;)b7(e,t,n),n=n.sibling}function b7(e,t,n){if(Ds&&typeof Ds.onCommitFiberUnmount=="function")try{Ds.onCommitFiberUnmount(Ox,n)}catch{}switch(n.tag){case 5:hi||ip(n,t);case 6:var r=Jr,i=za;Jr=null,su(e,t,n),Jr=r,za=i,Jr!==null&&(za?(e=Jr,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Jr.removeChild(n.stateNode));break;case 18:Jr!==null&&(za?(e=Jr,n=n.stateNode,e.nodeType===8?WE(e.parentNode,n):e.nodeType===1&&WE(e,n),xv(e)):WE(Jr,n.stateNode));break;case 4:r=Jr,i=za,Jr=n.stateNode.containerInfo,za=!0,su(e,t,n),Jr=r,za=i;break;case 0:case 11:case 14:case 15:if(!hi&&(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)&&zR(n,t,a),i=i.next}while(i!==r)}su(e,t,n);break;case 1:if(!hi&&(ip(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){vr(n,t,s)}su(e,t,n);break;case 21:su(e,t,n);break;case 22:n.mode&1?(hi=(r=hi)||n.memoizedState!==null,su(e,t,n),hi=r):su(e,t,n);break;default:su(e,t,n)}}function qF(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new pce),t.forEach(function(r){var i=Sce.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:Jr=s.stateNode,za=!1;break e;case 3:Jr=s.stateNode.containerInfo,za=!0;break e;case 4:Jr=s.stateNode.containerInfo,za=!0;break e}s=s.return}if(Jr===null)throw Error(Qe(160));b7(o,a,i),Jr=null,za=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){vr(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)_7(t,e),t=t.sibling}function _7(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Pa(t,e),ps(e),r&4){try{Hm(3,e,e.return),Bx(3,e)}catch(y){vr(e,e.return,y)}try{Hm(5,e,e.return)}catch(y){vr(e,e.return,y)}}break;case 1:Pa(t,e),ps(e),r&512&&n!==null&&ip(n,n.return);break;case 5:if(Pa(t,e),ps(e),r&512&&n!==null&&ip(n,n.return),e.flags&32){var i=e.stateNode;try{vv(i,"")}catch(y){vr(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&&z9(i,o),hR(s,a);var u=hR(s,o);for(a=0;a<l.length;a+=2){var f=l[a],d=l[a+1];f==="style"?H9(i,d):f==="dangerouslySetInnerHTML"?W9(i,d):f==="children"?vv(i,d):eO(i,f,d,u)}switch(s){case"input":uR(i,o);break;case"textarea":U9(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var g=o.value;g!=null?fp(i,!!o.multiple,g,!1):p!==!!o.multiple&&(o.defaultValue!=null?fp(i,!!o.multiple,o.defaultValue,!0):fp(i,!!o.multiple,o.multiple?[]:"",!1))}i[kv]=o}catch(y){vr(e,e.return,y)}}break;case 6:if(Pa(t,e),ps(e),r&4){if(e.stateNode===null)throw Error(Qe(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(y){vr(e,e.return,y)}}break;case 3:if(Pa(t,e),ps(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{xv(t.containerInfo)}catch(y){vr(e,e.return,y)}break;case 4:Pa(t,e),ps(e);break;case 13:Pa(t,e),ps(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(DO=Cr())),r&4&&qF(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(hi=(u=hi)||f,Pa(t,e),hi=u):Pa(t,e),ps(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(pt=e,f=e.child;f!==null;){for(d=pt=f;pt!==null;){switch(p=pt,g=p.child,p.tag){case 0:case 11:case 14:case 15:Hm(4,p,p.return);break;case 1:ip(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){vr(r,n,y)}}break;case 5:ip(p,p.return);break;case 22:if(p.memoizedState!==null){YF(d);continue}}g!==null?(g.return=p,pt=g):YF(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=V9("display",a))}catch(y){vr(e,e.return,y)}}}else if(d.tag===6){if(f===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(y){vr(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),ps(e),r&4&&qF(e);break;case 21:break;default:Pa(t,e),ps(e)}}function ps(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(y7(n)){var r=n;break e}n=n.return}throw Error(Qe(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(vv(i,""),r.flags&=-33);var o=HF(e);WR(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,s=HF(e);KR(e,s,a);break;default:throw Error(Qe(161))}}catch(l){vr(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function gce(e,t,n){pt=e,x7(e)}function x7(e,t,n){for(var r=(e.mode&1)!==0;pt!==null;){var i=pt,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||_1;if(!a){var s=i.alternate,l=s!==null&&s.memoizedState!==null||hi;s=_1;var u=hi;if(_1=a,(hi=l)&&!u)for(pt=i;pt!==null;)a=pt,l=a.child,a.tag===22&&a.memoizedState!==null?XF(i):l!==null?(l.return=a,pt=l):XF(i);for(;o!==null;)pt=o,x7(o),o=o.sibling;pt=i,_1=s,hi=u}GF(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,pt=o):GF(e)}}function GF(e){for(;pt!==null;){var t=pt;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:hi||Bx(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!hi)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&&OF(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}OF(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&&xv(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Qe(163))}hi||t.flags&512&&UR(t)}catch(p){vr(t,t.return,p)}}if(t===e){pt=null;break}if(n=t.sibling,n!==null){n.return=t.return,pt=n;break}pt=t.return}}function YF(e){for(;pt!==null;){var t=pt;if(t===e){pt=null;break}var n=t.sibling;if(n!==null){n.return=t.return,pt=n;break}pt=t.return}}function XF(e){for(;pt!==null;){var t=pt;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Bx(4,t)}catch(l){vr(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){vr(t,i,l)}}var o=t.return;try{UR(t)}catch(l){vr(t,o,l)}break;case 5:var a=t.return;try{UR(t)}catch(l){vr(t,a,l)}}}catch(l){vr(t,t.return,l)}if(t===e){pt=null;break}var s=t.sibling;if(s!==null){s.return=t.return,pt=s;break}pt=t.return}}var mce=Math.ceil,I_=Bl.ReactCurrentDispatcher,OO=Bl.ReactCurrentOwner,aa=Bl.ReactCurrentBatchConfig,an=0,Kr=null,$r=null,ri=0,_o=0,op=Qu(0),Mr=0,Iv=null,hf=0,jx=0,IO=0,qm=null,Wi=null,DO=0,Ip=1/0,vl=null,D_=!1,VR=null,Fu=null,x1=!1,ku=null,P_=0,Gm=0,HR=null,Lb=-1,Mb=0;function Di(){return an&6?Cr():Lb!==-1?Lb:Lb=Cr()}function Nu(e){return e.mode&1?an&2&&ri!==0?ri&-ri:Que.transition!==null?(Mb===0&&(Mb=i8()),Mb):(e=Sn,e!==0||(e=window.event,e=e===void 0?16:f8(e.type)),e):1}function qa(e,t,n,r){if(50<Gm)throw Gm=0,HR=null,Error(Qe(185));ty(e,n,r),(!(an&2)||e!==Kr)&&(e===Kr&&(!(an&2)&&(jx|=n),Mr===4&&Cu(e,ri)),Yi(e,r),n===1&&an===0&&!(t.mode&1)&&(Ip=Cr()+500,Mx&&ec()))}function Yi(e,t){var n=e.callbackNode;Qle(e,t);var r=v_(e,e===Kr?ri:0);if(r===0)n!==null&&oF(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&oF(n),t===1)e.tag===0?Jue(ZF.bind(null,e)):$8(ZF.bind(null,e)),Gue(function(){!(an&6)&&ec()}),n=null;else{switch(o8(r)){case 1:n=oO;break;case 4:n=n8;break;case 16:n=m_;break;case 536870912:n=r8;break;default:n=m_}n=A7(n,w7.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function w7(e,t){if(Lb=-1,Mb=0,an&6)throw Error(Qe(327));var n=e.callbackNode;if(mp()&&e.callbackNode!==n)return null;var r=v_(e,e===Kr?ri:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=L_(e,r);else{t=r;var i=an;an|=2;var o=C7();(Kr!==e||ri!==t)&&(vl=null,Ip=Cr()+500,rf(e,t));do try{bce();break}catch(s){S7(e,s)}while(1);yO(),I_.current=o,an=i,$r!==null?t=0:(Kr=null,ri=0,t=Mr)}if(t!==0){if(t===2&&(i=bR(e),i!==0&&(r=i,t=qR(e,i))),t===1)throw n=Iv,rf(e,0),Cu(e,r),Yi(e,Cr()),n;if(t===6)Cu(e,r);else{if(i=e.current.alternate,!(r&30)&&!vce(i)&&(t=L_(e,r),t===2&&(o=bR(e),o!==0&&(r=o,t=qR(e,o))),t===1))throw n=Iv,rf(e,0),Cu(e,r),Yi(e,Cr()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(Qe(345));case 2:Fc(e,Wi,vl);break;case 3:if(Cu(e,r),(r&130023424)===r&&(t=DO+500-Cr(),10<t)){if(v_(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Di(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=TR(Fc.bind(null,e,Wi,vl),t);break}Fc(e,Wi,vl);break;case 4:if(Cu(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*mce(r/1960))-r,10<r){e.timeoutHandle=TR(Fc.bind(null,e,Wi,vl),r);break}Fc(e,Wi,vl);break;case 5:Fc(e,Wi,vl);break;default:throw Error(Qe(329))}}}return Yi(e,Cr()),e.callbackNode===n?w7.bind(null,e):null}function qR(e,t){var n=qm;return e.current.memoizedState.isDehydrated&&(rf(e,t).flags|=256),e=L_(e,t),e!==2&&(t=Wi,Wi=n,t!==null&&GR(t)),e}function GR(e){Wi===null?Wi=e:Wi.push.apply(Wi,e)}function vce(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 Cu(e,t){for(t&=~IO,t&=~jx,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 ZF(e){if(an&6)throw Error(Qe(327));mp();var t=v_(e,0);if(!(t&1))return Yi(e,Cr()),null;var n=L_(e,t);if(e.tag!==0&&n===2){var r=bR(e);r!==0&&(t=r,n=qR(e,r))}if(n===1)throw n=Iv,rf(e,0),Cu(e,t),Yi(e,Cr()),n;if(n===6)throw Error(Qe(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Fc(e,Wi,vl),Yi(e,Cr()),null}function PO(e,t){var n=an;an|=1;try{return e(t)}finally{an=n,an===0&&(Ip=Cr()+500,Mx&&ec())}}function gf(e){ku!==null&&ku.tag===0&&!(an&6)&&mp();var t=an;an|=1;var n=aa.transition,r=Sn;try{if(aa.transition=null,Sn=1,e)return e()}finally{Sn=r,aa.transition=n,an=t,!(an&6)&&ec()}}function LO(){_o=op.current,qn(op)}function rf(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,que(n)),$r!==null)for(n=$r.return;n!==null;){var r=n;switch(gO(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&w_();break;case 3:$p(),qn(qi),qn(vi),CO();break;case 5:SO(r);break;case 4:$p();break;case 13:qn(ur);break;case 19:qn(ur);break;case 10:bO(r.type._context);break;case 22:case 23:LO()}n=n.return}if(Kr=e,$r=e=Bu(e.current,null),ri=_o=t,Mr=0,Iv=null,IO=jx=hf=0,Wi=qm=null,Jc!==null){for(t=0;t<Jc.length;t++)if(n=Jc[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}Jc=null}return e}function S7(e,t){do{var n=$r;try{if(yO(),Ib.current=O_,$_){for(var r=cr.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}$_=!1}if(pf=0,Ur=Lr=cr=null,Vm=!1,Av=0,OO.current=null,n===null||n.return===null){Mr=1,Iv=t,$r=null;break}e:{var o=e,a=n.return,s=n,l=t;if(t=ri,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 g=NF(a);if(g!==null){g.flags&=-257,BF(g,a,s,o,t),g.mode&1&&FF(o,u,t),t=g,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)){FF(o,u,t),MO();break e}l=Error(Qe(426))}}else if(Jn&&s.mode&1){var w=NF(a);if(w!==null){!(w.flags&65536)&&(w.flags|=256),BF(w,a,s,o,t),mO(Op(l,s));break e}}o=l=Op(l,s),Mr!==4&&(Mr=2),qm===null?qm=[o]:qm.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var b=a7(o,l,t);$F(o,b);break e;case 1:s=l;var x=o.type,C=o.stateNode;if(!(o.flags&128)&&(typeof x.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(Fu===null||!Fu.has(C)))){o.flags|=65536,t&=-t,o.lanes|=t;var k=s7(o,s,t);$F(o,k);break e}}o=o.return}while(o!==null)}k7(n)}catch(R){t=R,$r===n&&n!==null&&($r=n=n.return);continue}break}while(1)}function C7(){var e=I_.current;return I_.current=O_,e===null?O_:e}function MO(){(Mr===0||Mr===3||Mr===2)&&(Mr=4),Kr===null||!(hf&268435455)&&!(jx&268435455)||Cu(Kr,ri)}function L_(e,t){var n=an;an|=2;var r=C7();(Kr!==e||ri!==t)&&(vl=null,rf(e,t));do try{yce();break}catch(i){S7(e,i)}while(1);if(yO(),an=n,I_.current=r,$r!==null)throw Error(Qe(261));return Kr=null,ri=0,Mr}function yce(){for(;$r!==null;)E7($r)}function bce(){for(;$r!==null&&!Wle();)E7($r)}function E7(e){var t=R7(e.alternate,e,_o);e.memoizedProps=e.pendingProps,t===null?k7(e):$r=t,OO.current=null}function k7(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=dce(n,t),n!==null){n.flags&=32767,$r=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Mr=6,$r=null;return}}else if(n=fce(n,t,_o),n!==null){$r=n;return}if(t=t.sibling,t!==null){$r=t;return}$r=t=e}while(t!==null);Mr===0&&(Mr=5)}function Fc(e,t,n){var r=Sn,i=aa.transition;try{aa.transition=null,Sn=1,_ce(e,t,n,r)}finally{aa.transition=i,Sn=r}return null}function _ce(e,t,n,r){do mp();while(ku!==null);if(an&6)throw Error(Qe(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(Qe(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(eue(e,o),e===Kr&&($r=Kr=null,ri=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||x1||(x1=!0,A7(m_,function(){return mp(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=aa.transition,aa.transition=null;var a=Sn;Sn=1;var s=an;an|=4,OO.current=null,hce(e,n),_7(n,e),jue(ER),y_=!!CR,ER=CR=null,e.current=n,gce(n),Vle(),an=s,Sn=a,aa.transition=o}else e.current=n;if(x1&&(x1=!1,ku=e,P_=i),o=e.pendingLanes,o===0&&(Fu=null),Gle(n.stateNode),Yi(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(D_)throw D_=!1,e=VR,VR=null,e;return P_&1&&e.tag!==0&&mp(),o=e.pendingLanes,o&1?e===HR?Gm++:(Gm=0,HR=e):Gm=0,ec(),null}function mp(){if(ku!==null){var e=o8(P_),t=aa.transition,n=Sn;try{if(aa.transition=null,Sn=16>e?16:e,ku===null)var r=!1;else{if(e=ku,ku=null,P_=0,an&6)throw Error(Qe(331));var i=an;for(an|=4,pt=e.current;pt!==null;){var o=pt,a=o.child;if(pt.flags&16){var s=o.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(pt=u;pt!==null;){var f=pt;switch(f.tag){case 0:case 11:case 15:Hm(8,f,o)}var d=f.child;if(d!==null)d.return=f,pt=d;else for(;pt!==null;){f=pt;var p=f.sibling,g=f.return;if(v7(f),f===u){pt=null;break}if(p!==null){p.return=g,pt=p;break}pt=g}}}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)}}pt=o}}if(o.subtreeFlags&2064&&a!==null)a.return=o,pt=a;else e:for(;pt!==null;){if(o=pt,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Hm(9,o,o.return)}var b=o.sibling;if(b!==null){b.return=o.return,pt=b;break e}pt=o.return}}var x=e.current;for(pt=x;pt!==null;){a=pt;var C=a.child;if(a.subtreeFlags&2064&&C!==null)C.return=a,pt=C;else e:for(a=x;pt!==null;){if(s=pt,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Bx(9,s)}}catch(R){vr(s,s.return,R)}if(s===a){pt=null;break e}var k=s.sibling;if(k!==null){k.return=s.return,pt=k;break e}pt=s.return}}if(an=i,ec(),Ds&&typeof Ds.onPostCommitFiberRoot=="function")try{Ds.onPostCommitFiberRoot(Ox,e)}catch{}r=!0}return r}finally{Sn=n,aa.transition=t}}return!1}function JF(e,t,n){t=Op(n,t),t=a7(e,t,1),e=Mu(e,t,1),t=Di(),e!==null&&(ty(e,1,t),Yi(e,t))}function vr(e,t,n){if(e.tag===3)JF(e,e,n);else for(;t!==null;){if(t.tag===3){JF(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Fu===null||!Fu.has(r))){e=Op(n,e),e=s7(t,e,1),t=Mu(t,e,1),e=Di(),t!==null&&(ty(t,1,e),Yi(t,e));break}}t=t.return}}function xce(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Di(),e.pingedLanes|=e.suspendedLanes&n,Kr===e&&(ri&n)===n&&(Mr===4||Mr===3&&(ri&130023424)===ri&&500>Cr()-DO?rf(e,0):IO|=n),Yi(e,t)}function T7(e,t){t===0&&(e.mode&1?(t=f1,f1<<=1,!(f1&130023424)&&(f1=4194304)):t=1);var n=Di();e=Dl(e,t),e!==null&&(ty(e,t,n),Yi(e,n))}function wce(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),T7(e,n)}function Sce(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(Qe(314))}r!==null&&r.delete(t),T7(e,n)}var R7;R7=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||qi.current)Hi=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Hi=!1,cce(e,t,n);Hi=!!(e.flags&131072)}else Hi=!1,Jn&&t.flags&1048576&&O8(t,E_,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Pb(e,t),e=t.pendingProps;var i=Tp(t,vi.current);gp(t,n),i=kO(null,t,r,e,i,n);var o=TO();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,Gi(r)?(o=!0,S_(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,xO(t),i.updater=Fx,t.stateNode=i,i._reactInternals=t,PR(t,r,e,n),t=FR(null,t,r,!0,o,n)):(t.tag=0,Jn&&o&&hO(t),Ai(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Pb(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Ece(r),e=Ba(r,e),i){case 0:t=MR(null,t,r,e,n);break e;case 1:t=UF(null,t,r,e,n);break e;case 11:t=jF(null,t,r,e,n);break e;case 14:t=zF(null,t,r,Ba(r.type,e),n);break e}throw Error(Qe(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ba(r,i),MR(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(f7(t),e===null)throw Error(Qe(387));r=t.pendingProps,o=t.memoizedState,i=o.element,L8(e,t),R_(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=Op(Error(Qe(423)),t),t=KF(e,t,r,n,i);break e}else if(r!==i){i=Op(Error(Qe(424)),t),t=KF(e,t,r,n,i);break e}else for(Eo=Lu(t.stateNode.containerInfo.firstChild),To=t,Jn=!0,Ka=null,n=B8(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Rp(),r===i){t=Pl(e,t,n);break e}Ai(e,t,r,n)}t=t.child}return t;case 5:return j8(t),e===null&&OR(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,kR(r,i)?a=null:o!==null&&kR(r,o)&&(t.flags|=32),c7(e,t),Ai(e,t,a,n),t.child;case 6:return e===null&&OR(t),null;case 13:return d7(e,t,n);case 4:return wO(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ap(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),jF(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,Bn(k_,r._currentValue),r._currentValue=a,o!==null)if(Za(o.value,a)){if(o.children===i.children&&!qi.current){t=Pl(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=kl(-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),IR(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(Qe(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),IR(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,gp(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),zF(e,t,r,i,n);case 15:return l7(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ba(r,i),Pb(e,t),t.tag=1,Gi(r)?(e=!0,S_(t)):e=!1,gp(t,n),F8(t,r,i),PR(t,r,i,n),FR(null,t,r,!0,e,n);case 19:return p7(e,t,n);case 22:return u7(e,t,n)}throw Error(Qe(156,t.tag))};function A7(e,t){return t8(e,t)}function Cce(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 Cce(e,t,n,r)}function FO(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ece(e){if(typeof e=="function")return FO(e)?1:0;if(e!=null){if(e=e.$$typeof,e===nO)return 11;if(e===rO)return 14}return 2}function Bu(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 Fb(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")FO(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Yd:return of(n.children,i,o,t);case tO:a=8,i|=8;break;case iR:return e=ra(12,n,t,i|2),e.elementType=iR,e.lanes=o,e;case oR:return e=ra(13,n,t,i),e.elementType=oR,e.lanes=o,e;case aR:return e=ra(19,n,t,i),e.elementType=aR,e.lanes=o,e;case N9:return zx(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M9:a=10;break e;case F9:a=9;break e;case nO:a=11;break e;case rO:a=14;break e;case vu:a=16,r=null;break e}throw Error(Qe(130,e==null?e:typeof e,""))}return t=ra(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function of(e,t,n,r){return e=ra(7,e,r,t),e.lanes=n,e}function zx(e,t,n,r){return e=ra(22,e,r,t),e.elementType=N9,e.lanes=n,e.stateNode={isHidden:!1},e}function JE(e,t,n){return e=ra(6,e,null,t),e.lanes=n,e}function QE(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 kce(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=DE(0),this.expirationTimes=DE(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=DE(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function NO(e,t,n,r,i,o,a,s,l){return e=new kce(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},xO(o),e}function Tce(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Gd,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function $7(e){if(!e)return Uu;e=e._reactInternals;e:{if(Rf(e)!==e||e.tag!==1)throw Error(Qe(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Gi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Qe(171))}if(e.tag===1){var n=e.type;if(Gi(n))return A8(e,n,t)}return t}function O7(e,t,n,r,i,o,a,s,l){return e=NO(n,r,!0,e,i,o,a,s,l),e.context=$7(null),n=e.current,r=Di(),i=Nu(n),o=kl(r,i),o.callback=t??null,Mu(n,o,i),e.current.lanes=i,ty(e,i,r),Yi(e,r),e}function Ux(e,t,n,r){var i=t.current,o=Di(),a=Nu(i);return n=$7(n),t.context===null?t.context=n:t.pendingContext=n,t=kl(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Mu(i,t,a),e!==null&&(qa(e,i,a,o),Ob(e,i,a)),a}function M_(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 QF(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function BO(e,t){QF(e,t),(e=e.alternate)&&QF(e,t)}function Rce(){return null}var I7=typeof reportError=="function"?reportError:function(e){console.error(e)};function jO(e){this._internalRoot=e}Kx.prototype.render=jO.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Qe(409));Ux(e,t,null,null)};Kx.prototype.unmount=jO.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;gf(function(){Ux(null,e,null,null)}),t[Il]=null}};function Kx(e){this._internalRoot=e}Kx.prototype.unstable_scheduleHydration=function(e){if(e){var t=l8();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Su.length&&t!==0&&t<Su[n].priority;n++);Su.splice(n,0,e),n===0&&c8(e)}};function zO(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Wx(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function eN(){}function Ace(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=M_(a);o.call(u)}}var a=O7(t,r,e,0,null,!1,!1,"",eN);return e._reactRootContainer=a,e[Il]=a.current,Cv(e.nodeType===8?e.parentNode:e),gf(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var u=M_(l);s.call(u)}}var l=NO(e,0,!1,null,null,!1,!1,"",eN);return e._reactRootContainer=l,e[Il]=l.current,Cv(e.nodeType===8?e.parentNode:e),gf(function(){Ux(t,l,n,r)}),l}function Vx(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=M_(a);s.call(l)}}Ux(t,a,e,i)}else a=Ace(n,t,e,i,r);return M_(a)}a8=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Tm(t.pendingLanes);n!==0&&(aO(t,n|1),Yi(t,Cr()),!(an&6)&&(Ip=Cr()+500,ec()))}break;case 13:gf(function(){var r=Dl(e,1);if(r!==null){var i=Di();qa(r,e,1,i)}}),BO(e,1)}};sO=function(e){if(e.tag===13){var t=Dl(e,134217728);if(t!==null){var n=Di();qa(t,e,134217728,n)}BO(e,134217728)}};s8=function(e){if(e.tag===13){var t=Nu(e),n=Dl(e,t);if(n!==null){var r=Di();qa(n,e,t,r)}BO(e,t)}};l8=function(){return Sn};u8=function(e,t){var n=Sn;try{return Sn=e,t()}finally{Sn=n}};mR=function(e,t,n){switch(t){case"input":if(uR(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=Lx(r);if(!i)throw Error(Qe(90));j9(r),uR(r,i)}}}break;case"textarea":U9(e,n);break;case"select":t=n.value,t!=null&&fp(e,!!n.multiple,t,!1)}};Y9=PO;X9=gf;var $ce={usingClientEntryPoint:!1,Events:[ry,Qd,Lx,q9,G9,PO]},Vg={findFiberByHostInstance:Zc,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Oce={bundleType:Vg.bundleType,version:Vg.version,rendererPackageName:Vg.rendererPackageName,rendererConfig:Vg.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Bl.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Q9(e),e===null?null:e.stateNode},findFiberByHostInstance:Vg.findFiberByHostInstance||Rce,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 w1=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!w1.isDisabled&&w1.supportsFiber)try{Ox=w1.inject(Oce),Ds=w1}catch{}}Po.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$ce;Po.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!zO(t))throw Error(Qe(200));return Tce(e,t,null,n)};Po.createRoot=function(e,t){if(!zO(e))throw Error(Qe(299));var n=!1,r="",i=I7;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=NO(e,1,!1,null,null,n,!1,r,i),e[Il]=t.current,Cv(e.nodeType===8?e.parentNode:e),new jO(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(Qe(188)):(e=Object.keys(e).join(","),Error(Qe(268,e)));return e=Q9(t),e=e===null?null:e.stateNode,e};Po.flushSync=function(e){return gf(e)};Po.hydrate=function(e,t,n){if(!Wx(t))throw Error(Qe(200));return Vx(null,e,t,!0,n)};Po.hydrateRoot=function(e,t,n){if(!zO(e))throw Error(Qe(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=I7;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=O7(t,null,e,1,n??null,i,!1,o,a),e[Il]=t.current,Cv(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 Kx(t)};Po.render=function(e,t,n){if(!Wx(t))throw Error(Qe(200));return Vx(null,e,t,!1,n)};Po.unmountComponentAtNode=function(e){if(!Wx(e))throw Error(Qe(40));return e._reactRootContainer?(gf(function(){Vx(null,null,e,!1,function(){e._reactRootContainer=null,e[Il]=null})}),!0):!1};Po.unstable_batchedUpdates=PO;Po.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Wx(n))throw Error(Qe(200));if(e==null||e._reactInternals===void 0)throw Error(Qe(38));return Vx(e,t,n,!1,r)};Po.version="18.2.0-next-9e3b772b8-20220608";function D7(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(D7)}catch(e){console.error(e)}}D7(),O9.exports=Po;var Af=O9.exports;const Am=_i(Af);function Ice(e){const t=new Error(e);if(t.stack===void 0)try{throw t}catch{}return t}var Dce=Ice,zt=Dce;function Pce(e){return!!e&&typeof e.then=="function"}var er=Pce;function Lce(e,t){if(e!=null)return e;throw zt(t??"Got unexpected null or undefined")}var tr=Lce;function Pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Hx{getValue(){throw zt("BaseLoadable")}toPromise(){throw zt("BaseLoadable")}valueMaybe(){throw zt("BaseLoadable")}valueOrThrow(){throw zt(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw zt("BaseLoadable")}promiseOrThrow(){throw zt(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw zt("BaseLoadable")}errorOrThrow(){throw zt(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw zt("BaseLoadable")}}class Mce extends Hx{constructor(t){super(),Pt(this,"state","hasValue"),Pt(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 er(n)?mf(n):Dp(n)?n:oy(n)}catch(n){return er(n)?mf(n.next(()=>this.map(t))):qx(n)}}}class Fce extends Hx{constructor(t){super(),Pt(this,"state","hasError"),Pt(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 P7 extends Hx{constructor(t){super(),Pt(this,"state","loading"),Pt(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 mf(this.contents.then(n=>{const r=t(n);if(Dp(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(er(n))return n.then(()=>this.map(t).contents);throw n}))}}function oy(e){return Object.freeze(new Mce(e))}function qx(e){return Object.freeze(new Fce(e))}function mf(e){return Object.freeze(new P7(e))}function L7(){return Object.freeze(new P7(new Promise(()=>{})))}function Nce(e){return e.every(t=>t.state==="hasValue")?oy(e.map(t=>t.contents)):e.some(t=>t.state==="hasError")?qx(tr(e.find(t=>t.state==="hasError"),"Invalid loadable passed to loadableAll").contents):mf(Promise.all(e.map(t=>t.contents)))}function M7(e){const n=(Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(i=>e[i])).map(i=>Dp(i)?i:er(i)?mf(i):oy(i)),r=Nce(n);return Array.isArray(e)?r:r.map(i=>Object.getOwnPropertyNames(e).reduce((o,a,s)=>({...o,[a]:i[s]}),{}))}function Dp(e){return e instanceof Hx}const Bce={of:e=>er(e)?mf(e):Dp(e)?e:oy(e),error:e=>qx(e),loading:()=>L7(),all:M7,isLoadable:Dp};var $f={loadableWithValue:oy,loadableWithError:qx,loadableWithPromise:mf,loadableLoading:L7,loadableAll:M7,isLoadable:Dp,RecoilLoadable:Bce},jce=$f.loadableWithValue,zce=$f.loadableWithError,Uce=$f.loadableWithPromise,Kce=$f.loadableLoading,Wce=$f.loadableAll,Vce=$f.isLoadable,Hce=$f.RecoilLoadable,ay=Object.freeze({__proto__:null,loadableWithValue:jce,loadableWithError:zce,loadableWithPromise:Uce,loadableLoading:Kce,loadableAll:Wce,isLoadable:Vce,RecoilLoadable:Hce});const Gx=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 Yx(e){var t;return(t=Gx.get(e))!==null&&t!==void 0?t:!1}Yx.setPass=e=>{Gx.set(e,!0)};Yx.setFail=e=>{Gx.set(e,!1)};Yx.clear=()=>{Gx.clear()};var Dn=Yx;function qce(e,t,{error:n}={}){return null}var Gce=qce,UO=Gce,ek,tk,nk;const Yce=(ek=gt.createMutableSource)!==null&&ek!==void 0?ek:gt.unstable_createMutableSource,F7=(tk=gt.useMutableSource)!==null&&tk!==void 0?tk:gt.unstable_useMutableSource,N7=(nk=gt.useSyncExternalStore)!==null&&nk!==void 0?nk:gt.unstable_useSyncExternalStore;function Xce(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:n}=gt.__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 Zce(){return Dn("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:Dn("recoil_sync_external_store")&&N7!=null?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:Dn("recoil_mutable_source")&&F7!=null&&typeof window<"u"&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?Dn("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:Dn("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}}function Jce(){return!1}var sy={createMutableSource:Yce,useMutableSource:F7,useSyncExternalStore:N7,currentRendererSupportsUseSyncExternalStore:Xce,reactMode:Zce,isFastRefreshEnabled:Jce};const B7={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0};function Qce(){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 zt(`({}).RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED value must be 'true', 'false', or empty: ${r}`);B7.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=r==="true"}Qce();var j7=B7;class KO{constructor(t){Pt(this,"key",void 0),this.key=t}toJSON(){return{key:this.key}}}class z7 extends KO{}class U7 extends KO{}function efe(e){return e instanceof z7||e instanceof U7}var Xx={AbstractRecoilValue:KO,RecoilState:z7,RecoilValueReadOnly:U7,isRecoilValue:efe},tfe=Xx.AbstractRecoilValue,nfe=Xx.RecoilState,rfe=Xx.RecoilValueReadOnly,ife=Xx.isRecoilValue,Pp=Object.freeze({__proto__:null,AbstractRecoilValue:tfe,RecoilState:nfe,RecoilValueReadOnly:rfe,isRecoilValue:ife});function ofe(e,t){return function*(){let n=0;for(const r of e)yield t(r,n++)}()}var Zx=ofe;class K7{}const afe=new K7,vf=new Map,WO=new Map;function sfe(e){return Zx(e,t=>tr(WO.get(t)))}function lfe(e){if(vf.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 ufe(e){j7.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&lfe(e.key),vf.set(e.key,e);const t=e.set==null?new Pp.RecoilValueReadOnly(e.key):new Pp.RecoilState(e.key);return WO.set(e.key,t),t}class W7 extends Error{}function cfe(e){const t=vf.get(e);if(t==null)throw new W7(`Missing definition for RecoilValue: "${e}""`);return t}function ffe(e){return vf.get(e)}const F_=new Map;function dfe(e){var t;if(!Dn("recoil_memory_managament_2020"))return;const n=vf.get(e);if(n!=null&&(t=n.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(n)){var r;vf.delete(e),(r=V7(e))===null||r===void 0||r(),F_.delete(e)}}function pfe(e,t){Dn("recoil_memory_managament_2020")&&(t===void 0?F_.delete(e):F_.set(e,t))}function V7(e){return F_.get(e)}var ao={nodes:vf,recoilValues:WO,registerNode:ufe,getNode:cfe,getNodeMaybe:ffe,deleteNodeConfigIfPossible:dfe,setConfigDeletionHandler:pfe,getConfigDeletionHandler:V7,recoilValuesForKeys:sfe,NodeMissingError:W7,DefaultValue:K7,DEFAULT_VALUE:afe};function hfe(e,t){t()}var gfe={enqueueExecution:hfe};function mfe(e,t){return t={exports:{}},e(t,t.exports),t.exports}var vfe=mfe(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(de){return typeof de}:function(de){return de&&typeof Symbol=="function"&&de.constructor===Symbol&&de!==Symbol.prototype?"symbol":typeof de},n={},r=5,i=Math.pow(2,r),o=i-1,a=i/2,s=i/4,l={},u=function(me){return function(){return me}},f=n.hash=function(de){var me=typeof de>"u"?"undefined":t(de);if(me==="number")return de;me!=="string"&&(de+="");for(var $e=0,Ve=0,He=de.length;Ve<He;++Ve){var Ze=de.charCodeAt(Ve);$e=($e<<5)-$e+Ze|0}return $e},d=function(me){return me-=me>>1&1431655765,me=(me&858993459)+(me>>2&858993459),me=me+(me>>4)&252645135,me+=me>>8,me+=me>>16,me&127},p=function(me,$e){return $e>>>me&o},g=function(me){return 1<<me},v=function(me,$e){return d(me&$e-1)},y=function(me,$e,Ve,He){var Ze=He;if(!me){var dt=He.length;Ze=new Array(dt);for(var ct=0;ct<dt;++ct)Ze[ct]=He[ct]}return Ze[$e]=Ve,Ze},w=function(me,$e,Ve){var He=Ve.length-1,Ze=0,dt=0,ct=Ve;if(me)Ze=dt=$e;else for(ct=new Array(He);Ze<$e;)ct[dt++]=Ve[Ze++];for(++Ze;Ze<=He;)ct[dt++]=Ve[Ze++];return me&&(ct.length=He),ct},b=function(me,$e,Ve,He){var Ze=He.length;if(me){for(var dt=Ze;dt>=$e;)He[dt--]=He[dt];return He[$e]=Ve,He}for(var ct=0,ot=0,ht=new Array(Ze+1);ct<$e;)ht[ot++]=He[ct++];for(ht[$e]=Ve;ct<Ze;)ht[++ot]=He[ct++];return ht},x=1,C=2,k=3,R=4,A={__hamt_isEmpty:!0},O=function(me){return me===A||me&&me.__hamt_isEmpty},z=function(me,$e,Ve,He){return{type:x,edit:me,hash:$e,key:Ve,value:He,_modify:Z}},V=function(me,$e,Ve){return{type:C,edit:me,hash:$e,children:Ve,_modify:ee}},D=function(me,$e,Ve){return{type:k,edit:me,mask:$e,children:Ve,_modify:P}},W=function(me,$e,Ve){return{type:R,edit:me,size:$e,children:Ve,_modify:ge}},ie=function(me){return me===A||me.type===x||me.type===C},se=function(me,$e,Ve,He,Ze){for(var dt=[],ct=He,ot=0,ht=0;ct;++ht)ct&1&&(dt[ht]=Ze[ot++]),ct>>>=1;return dt[$e]=Ve,W(me,ot+1,dt)},K=function(me,$e,Ve,He){for(var Ze=new Array($e-1),dt=0,ct=0,ot=0,ht=He.length;ot<ht;++ot)if(ot!==Ve){var Ot=He[ot];Ot&&!O(Ot)&&(Ze[dt++]=Ot,ct|=1<<ot)}return D(me,ct,Ze)},G=function de(me,$e,Ve,He,Ze,dt){if(Ve===Ze)return V(me,Ve,[dt,He]);var ct=p($e,Ve),ot=p($e,Ze);return D(me,g(ct)|g(ot),ct===ot?[de(me,$e+r,Ve,He,Ze,dt)]:ct<ot?[He,dt]:[dt,He])},Q=function(me,$e,Ve,He,Ze,dt,ct,ot){for(var ht=Ze.length,Ot=0;Ot<ht;++Ot){var rn=Ze[Ot];if(Ve(ct,rn.key)){var Qt=rn.value,Xt=dt(Qt);return Xt===Qt?Ze:Xt===l?(--ot.value,w(me,Ot,Ze)):y(me,Ot,z($e,He,ct,Xt),Ze)}}var br=dt();return br===l?Ze:(++ot.value,y(me,ht,z($e,He,ct,br),Ze))},le=function(me,$e){return me===$e.edit},Z=function(me,$e,Ve,He,Ze,dt,ct){if($e(dt,this.key)){var ot=He(this.value);return ot===this.value?this:ot===l?(--ct.value,A):le(me,this)?(this.value=ot,this):z(me,Ze,dt,ot)}var ht=He();return ht===l?this:(++ct.value,G(me,Ve,this.hash,this,Ze,z(me,Ze,dt,ht)))},ee=function(me,$e,Ve,He,Ze,dt,ct){if(Ze===this.hash){var ot=le(me,this),ht=Q(ot,me,$e,this.hash,this.children,He,dt,ct);return ht===this.children?this:ht.length>1?V(me,this.hash,ht):ht[0]}var Ot=He();return Ot===l?this:(++ct.value,G(me,Ve,this.hash,this,Ze,z(me,Ze,dt,Ot)))},P=function(me,$e,Ve,He,Ze,dt,ct){var ot=this.mask,ht=this.children,Ot=p(Ve,Ze),rn=g(Ot),Qt=v(ot,rn),Xt=ot&rn,br=Xt?ht[Qt]:A,kn=br._modify(me,$e,Ve+r,He,Ze,dt,ct);if(br===kn)return this;var Fr=le(me,this),_r=ot,kr=void 0;if(Xt&&O(kn)){if(_r&=~rn,!_r)return A;if(ht.length<=2&&ie(ht[Qt^1]))return ht[Qt^1];kr=w(Fr,Qt,ht)}else if(!Xt&&!O(kn)){if(ht.length>=a)return se(me,Ot,kn,ot,ht);_r|=rn,kr=b(Fr,Qt,kn,ht)}else kr=y(Fr,Qt,kn,ht);return Fr?(this.mask=_r,this.children=kr,this):D(me,_r,kr)},ge=function(me,$e,Ve,He,Ze,dt,ct){var ot=this.size,ht=this.children,Ot=p(Ve,Ze),rn=ht[Ot],Qt=(rn||A)._modify(me,$e,Ve+r,He,Ze,dt,ct);if(rn===Qt)return this;var Xt=le(me,this),br=void 0;if(O(rn)&&!O(Qt))++ot,br=y(Xt,Ot,Qt,ht);else if(!O(rn)&&O(Qt)){if(--ot,ot<=s)return K(me,ot,Ot,ht);br=y(Xt,Ot,A,ht)}else br=y(Xt,Ot,Qt,ht);return Xt?(this.size=ot,this.children=br,this):W(me,ot,br)};A._modify=function(de,me,$e,Ve,He,Ze,dt){var ct=Ve();return ct===l?A:(++dt.value,z(de,He,Ze,ct))};function B(de,me,$e,Ve,He){this._editable=de,this._edit=me,this._config=$e,this._root=Ve,this._size=He}B.prototype.setTree=function(de,me){return this._editable?(this._root=de,this._size=me,this):de===this._root?this:new B(this._editable,this._edit,this._config,de,me)};var L=n.tryGetHash=function(de,me,$e,Ve){for(var He=Ve._root,Ze=0,dt=Ve._config.keyEq;;)switch(He.type){case x:return dt($e,He.key)?He.value:de;case C:{if(me===He.hash)for(var ct=He.children,ot=0,ht=ct.length;ot<ht;++ot){var Ot=ct[ot];if(dt($e,Ot.key))return Ot.value}return de}case k:{var rn=p(Ze,me),Qt=g(rn);if(He.mask&Qt){He=He.children[v(He.mask,Qt)],Ze+=r;break}return de}case R:{if(He=He.children[p(Ze,me)],He){Ze+=r;break}return de}default:return de}};B.prototype.tryGetHash=function(de,me,$e){return L(de,me,$e,this)};var ae=n.tryGet=function(de,me,$e){return L(de,$e._config.hash(me),me,$e)};B.prototype.tryGet=function(de,me){return ae(de,me,this)};var ue=n.getHash=function(de,me,$e){return L(void 0,de,me,$e)};B.prototype.getHash=function(de,me){return ue(de,me,this)},n.get=function(de,me){return L(void 0,me._config.hash(de),de,me)},B.prototype.get=function(de,me){return ae(me,de,this)};var ne=n.has=function(de,me,$e){return L(l,de,me,$e)!==l};B.prototype.hasHash=function(de,me){return ne(de,me,this)};var we=n.has=function(de,me){return ne(me._config.hash(de),de,me)};B.prototype.has=function(de){return we(de,this)};var Te=function(me,$e){return me===$e};n.make=function(de){return new B(0,0,{keyEq:de&&de.keyEq||Te,hash:de&&de.hash||f},A,0)},n.empty=n.make();var Ee=n.isEmpty=function(de){return de&&!!O(de._root)};B.prototype.isEmpty=function(){return Ee(this)};var Le=n.modifyHash=function(de,me,$e,Ve){var He={value:Ve._size},Ze=Ve._root._modify(Ve._editable?Ve._edit:NaN,Ve._config.keyEq,0,de,me,$e,He);return Ve.setTree(Ze,He.value)};B.prototype.modifyHash=function(de,me,$e){return Le($e,de,me,this)};var Be=n.modify=function(de,me,$e){return Le(de,$e._config.hash(me),me,$e)};B.prototype.modify=function(de,me){return Be(me,de,this)};var Ie=n.setHash=function(de,me,$e,Ve){return Le(u($e),de,me,Ve)};B.prototype.setHash=function(de,me,$e){return Ie(de,me,$e,this)};var Pe=n.set=function(de,me,$e){return Ie($e._config.hash(de),de,me,$e)};B.prototype.set=function(de,me){return Pe(de,me,this)};var je=u(l),Fe=n.removeHash=function(de,me,$e){return Le(je,de,me,$e)};B.prototype.removeHash=B.prototype.deleteHash=function(de,me){return Fe(de,me,this)};var tt=n.remove=function(de,me){return Fe(me._config.hash(de),de,me)};B.prototype.remove=B.prototype.delete=function(de){return tt(de,this)};var Xe=n.beginMutation=function(de){return new B(de._editable+1,de._edit+1,de._config,de._root,de._size)};B.prototype.beginMutation=function(){return Xe(this)};var Ye=n.endMutation=function(de){return de._editable=de._editable&&de._editable-1,de};B.prototype.endMutation=function(){return Ye(this)};var st=n.mutate=function(de,me){var $e=Xe(me);return de($e),Ye($e)};B.prototype.mutate=function(de){return st(de,this)};var he=function(me){return me&&Ae(me[0],me[1],me[2],me[3],me[4])},Ae=function(me,$e,Ve,He,Ze){for(;Ve<me;){var dt=$e[Ve++];if(dt&&!O(dt))return Re(dt,He,[me,$e,Ve,He,Ze])}return he(Ze)},Re=function(me,$e,Ve){switch(me.type){case x:return{value:$e(me),rest:Ve};case C:case R:case k:var He=me.children;return Ae(He.length,He,0,$e,Ve);default:return he(Ve)}},Ne={done:!0};function U(de){this.v=de}U.prototype.next=function(){if(!this.v)return Ne;var de=this.v;return this.v=he(de.rest),de},U.prototype[Symbol.iterator]=function(){return this};var H=function(me,$e){return new U(Re(me._root,$e))},fe=function(me){return[me.key,me.value]},Y=n.entries=function(de){return H(de,fe)};B.prototype.entries=B.prototype[Symbol.iterator]=function(){return Y(this)};var X=function(me){return me.key},oe=n.keys=function(de){return H(de,X)};B.prototype.keys=function(){return oe(this)};var xe=function(me){return me.value},Ce=n.values=B.prototype.values=function(de){return H(de,xe)};B.prototype.values=function(){return Ce(this)};var _e=n.fold=function(de,me,$e){var Ve=$e._root;if(Ve.type===x)return de(me,Ve.value,Ve.key);for(var He=[Ve.children],Ze=void 0;Ze=He.pop();)for(var dt=0,ct=Ze.length;dt<ct;){var ot=Ze[dt++];ot&&ot.type&&(ot.type===x?me=de(me,ot.value,ot.key):He.push(ot.children))}return me};B.prototype.fold=function(de,me){return _e(de,me,this)};var nt=n.forEach=function(de,me){return _e(function($e,Ve,He){return de(Ve,He,me)},null,me)};B.prototype.forEach=function(de){return nt(de,this)};var rt=n.count=function(de){return de._size};B.prototype.count=function(){return rt(this)},Object.defineProperty(B.prototype,"size",{get:B.prototype.count}),e.exports?e.exports=n:(void 0).hamt=n});class yfe{constructor(t){Pt(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 HO(this)}toMap(){return new Map(this._map)}}class VO{constructor(t){if(Pt(this,"_hamt",vfe.empty.beginMutation()),t instanceof VO){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 HO(this)}toMap(){return new Map(this._hamt)}}function HO(e){return Dn("recoil_hamt_2020")?new VO(e):new yfe(e)}var bfe={persistentMap:HO},_fe=bfe.persistentMap,xfe=Object.freeze({__proto__:null,persistentMap:_fe});function wfe(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 Ym=wfe;function Sfe(e,t){const n=new Map;return e.forEach((r,i)=>{n.set(i,t(r,i))}),n}var N_=Sfe;function Cfe(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function Efe(e){return{nodeDeps:N_(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:N_(e.nodeToNodeSubscriptions,t=>new Set(t))}}function rk(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:Ym(t,a);for(const l of s)o.has(l)||o.set(l,new Set),tr(o.get(l)).add(e);if(a){const l=Ym(a,t);for(const u of l){if(!o.has(u))return;const f=tr(o.get(u));f.delete(e),f.size===0&&o.delete(u)}}}function kfe(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(rk(e,t,u),r===((a=l.previousTree)===null||a===void 0?void 0:a.version)){const d=n.getGraph(l.currentTree.version);rk(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);rk(e,t,p,u)}}}var ly={cloneGraph:Efe,graph:Cfe,saveDepsToStore:kfe};let Tfe=0;const Rfe=()=>Tfe++;let Afe=0;const $fe=()=>Afe++;let Ofe=0;const Ife=()=>Ofe++;var Jx={getNextTreeStateVersion:Rfe,getNextStoreID:$fe,getNextComponentID:Ife};const{persistentMap:tN}=xfe,{graph:Dfe}=ly,{getNextTreeStateVersion:H7}=Jx;function q7(){const e=H7();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:tN(),nonvalidatedAtoms:tN()}}function Pfe(){const e=q7();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,Dfe()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var G7={makeEmptyTreeState:q7,makeEmptyStoreState:Pfe,getNextTreeStateVersion:H7};class Y7{}function Lfe(){return new Y7}var Qx={RetentionZone:Y7,retentionZone:Lfe};function Mfe(e,t){const n=new Set(e);return n.add(t),n}function Ffe(e,t){const n=new Set(e);return n.delete(t),n}function Nfe(e,t,n){const r=new Map(e);return r.set(t,n),r}function Bfe(e,t,n){const r=new Map(e);return r.set(t,n(r.get(t))),r}function jfe(e,t){const n=new Map(e);return n.delete(t),n}function zfe(e,t){const n=new Map(e);return t.forEach(r=>n.delete(r)),n}var X7={setByAddingToSet:Mfe,setByDeletingFromSet:Ffe,mapBySettingInMap:Nfe,mapByUpdatingInMap:Bfe,mapByDeletingFromMap:jfe,mapByDeletingMultipleFromMap:zfe};function*Ufe(e,t){let n=0;for(const r of e)t(r,n++)&&(yield r)}var qO=Ufe;function Kfe(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 Z7=Kfe;const{getNode:uy,getNodeMaybe:Wfe,recoilValuesForKeys:nN}=ao,{RetentionZone:rN}=Qx,{setByAddingToSet:Vfe}=X7,Hfe=Object.freeze(new Set);class qfe extends Error{}function Gfe(e,t,n){if(!Dn("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 rN)i(n);else if(Array.isArray(n))for(const o of n)i(o);return()=>{if(!Dn("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 rN)a(n);else if(Array.isArray(n))for(const s of n)a(s)}}function GO(e,t,n,r){const i=e.getState();if(i.nodeCleanupFunctions.has(n))return;const o=uy(n),a=Gfe(e,n,o.retainedBy),s=o.init(e,t,r);i.nodeCleanupFunctions.set(n,()=>{s(),a()})}function Yfe(e,t,n){GO(e,e.getState().currentTree,t,n)}function Xfe(e,t){var n;const r=e.getState();(n=r.nodeCleanupFunctions.get(t))===null||n===void 0||n(),r.nodeCleanupFunctions.delete(t)}function Zfe(e,t,n){return GO(e,t,n,"get"),uy(n).get(e,t)}function J7(e,t,n){return uy(n).peek(e,t)}function Jfe(e,t,n){var r;const i=Wfe(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:Vfe(e.dirtyAtoms,t)}}function Qfe(e,t,n,r){const i=uy(n);if(i.set==null)throw new qfe(`Attempt to set read-only RecoilValue: ${n}`);const o=i.set;return GO(e,t,n,"set"),o(e,t,r)}function ede(e,t,n){const r=e.getState(),i=e.getGraph(t.version),o=uy(n).nodeType;return Z7({type:o},{loadable:()=>J7(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 nN((a=i.nodeDeps.get(n))!==null&&a!==void 0?a:[])},subscribers:()=>{var a,s;return{nodes:nN(qO(Q7(e,t,new Set([n])),l=>l!==n)),components:Zx((a=(s=r.nodeToComponentSubscriptions.get(n))===null||s===void 0?void 0:s.values())!==null&&a!==void 0?a:[],([l])=>({name:l}))}}})}function Q7(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:Hfe;for(const u of l)r.has(u)||i.push(u)}return r}var tc={getNodeLoadable:Zfe,peekNodeLoadable:J7,setNodeValue:Qfe,initializeNode:Yfe,cleanUpNode:Xfe,setUnvalidatedAtomValue_DEPRECATED:Jfe,peekNodeInfo:ede,getDownstreamNodes:Q7};let eK=null;function tde(e){eK=e}function nde(){var e;(e=eK)===null||e===void 0||e()}var tK={setInvalidateMemoizedSnapshot:tde,invalidateMemoizedSnapshot:nde};const{getDownstreamNodes:rde,getNodeLoadable:nK,setNodeValue:ide}=tc,{getNextComponentID:ode}=Jx,{getNode:ade,getNodeMaybe:rK}=ao,{DefaultValue:YO}=ao,{reactMode:sde}=sy,{AbstractRecoilValue:lde,RecoilState:ude,RecoilValueReadOnly:cde,isRecoilValue:fde}=Pp,{invalidateMemoizedSnapshot:dde}=tK;function pde(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=nK(e,n,t);return a.state==="loading"&&a.contents.catch(()=>{}),a}function hde(e,t){const n=e.clone();return t.forEach((r,i)=>{r.state==="hasValue"&&r.contents instanceof YO?n.delete(i):n.set(i,r)}),n}function gde(e,t,{key:n},r){if(typeof r=="function"){const i=nK(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 zt(o)}else if(i.state==="hasError")throw i.contents;return r(i.contents)}else return r}function mde(e,t,n){if(n.type==="set"){const{recoilValue:i,valueOrUpdater:o}=n,a=gde(e,t,i,o),s=ide(e,t,i.key,a);for(const[l,u]of s.entries())YR(t,l,u)}else if(n.type==="setLoadable"){const{recoilValue:{key:i},loadable:o}=n;YR(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=rK(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 UO(`Unknown action ${n.type}`)}function YR(e,t,n){n.state==="hasValue"&&n.contents instanceof YO?e.atomValues.delete(t):e.atomValues.set(t,n),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function iK(e,t){e.replaceState(n=>{const r=oK(n);for(const i of t)mde(e,r,i);return aK(e,r),dde(),r})}function ew(e,t){if(Xm.length){const n=Xm[Xm.length-1];let r=n.get(e);r||n.set(e,r=[]),r.push(t)}else iK(e,[t])}const Xm=[];function vde(){const e=new Map;return Xm.push(e),()=>{for(const[t,n]of e)iK(t,n);Xm.pop()}}function oK(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function aK(e,t){const n=rde(e,t,t.dirtyAtoms);for(const o of n){var r,i;(r=rK(o))===null||r===void 0||(i=r.invalidate)===null||i===void 0||i.call(r,t)}}function sK(e,t,n){ew(e,{type:"set",recoilValue:t,valueOrUpdater:n})}function yde(e,t,n){if(n instanceof YO)return sK(e,t,n);ew(e,{type:"setLoadable",recoilValue:t,loadable:n})}function bde(e,t){ew(e,{type:"markModified",recoilValue:t})}function _de(e,t,n){ew(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:n})}function xde(e,{key:t},n,r=null){const i=ode(),o=e.getState();o.nodeToComponentSubscriptions.has(t)||o.nodeToComponentSubscriptions.set(t,new Map),tr(o.nodeToComponentSubscriptions.get(t)).set(i,[r??"<not captured>",n]);const a=sde();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 wde(e,t){var n;const{currentTree:r}=e.getState(),i=ade(t.key);(n=i.clearCache)===null||n===void 0||n.call(i,e,r)}var zs={RecoilValueReadOnly:cde,AbstractRecoilValue:lde,RecoilState:ude,getRecoilValueAsLoadable:pde,setRecoilValue:sK,setRecoilValueLoadable:yde,markRecoilValueModified:bde,setUnvalidatedRecoilValue:_de,subscribeToRecoilValue:xde,isRecoilValue:fde,applyAtomValueWrites:hde,batchStart:vde,writeLoadableToTreeState:YR,invalidateDownstreams:aK,copyTreeState:oK,refreshRecoilValue:wde};function Sde(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 Cde=Sde;const{cleanUpNode:Ede}=tc,{deleteNodeConfigIfPossible:kde,getNode:lK}=ao,{RetentionZone:uK}=Qx,Tde=12e4,cK=new Set;function fK(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 uK)for(const s of Ode(n,a))i.add(s);else i.add(a);const o=Rde(e,i);for(const a of o)$de(e,r,a)}function Rde(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=Ade(e,r,l,o,a);for(const v of f){var d;if(lK(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(dK(v).some(w=>n.retention.referenceCounts.get(w))){a.add(v);continue}const y=i.nodeToNodeSubscriptions.get(v);if(y&&Cde(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(g=i.nodeDeps.get(v))!==null&&g!==void 0?g:cK){var g;o.has(y)||p.add(y)}p.size&&s(p)}}function Ade(e,t,n,r,i){const o=e.getGraph(t.version),a=[],s=new Set;for(;n.size>0;)l(tr(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 $de(e,t,n){if(!Dn("recoil_memory_managament_2020"))return;Ede(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=dK(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)}kde(n)}function Ode(e,t){var n;return(n=e.retention.nodesRetainedByZone.get(t))!==null&&n!==void 0?n:cK}function dK(e){const t=lK(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof uK?[t]:t}function Ide(e,t){const n=e.getState();n.nextTree?n.retention.retainablesToCheckForRelease.add(t):fK(e,new Set([t]))}function Dde(e,t,n){var r;if(!Dn("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?pK(e,t):i.set(t,o)}function pK(e,t){if(!Dn("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),Ide(e,t)}function Pde(e){if(!Dn("recoil_memory_managament_2020"))return;const t=e.getState();fK(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function Lde(e){return e===void 0?"recoilRoot":e}var Of={SUSPENSE_TIMEOUT_MS:Tde,updateRetainCount:Dde,updateRetainCountToZero:pK,releaseScheduledRetainablesNow:Pde,retainedByOptionWithDefault:Lde};const{unstable_batchedUpdates:Mde}=Am;var Fde={unstable_batchedUpdates:Mde};const{unstable_batchedUpdates:Nde}=Fde;var Bde={unstable_batchedUpdates:Nde};const{batchStart:jde}=zs,{unstable_batchedUpdates:zde}=Bde;let XO=zde;const Ude=e=>{XO=e},Kde=()=>XO,Wde=e=>{XO(()=>{let t=()=>{};try{t=jde(),e()}finally{t()}})};var tw={getBatcher:Kde,setBatcher:Ude,batchUpdates:Wde};function*Vde(e){for(const t of e)for(const n of t)yield n}var hK=Vde;const gK=typeof Window>"u"||typeof window>"u",Hde=e=>!gK&&(e===window||e instanceof Window),qde=typeof navigator<"u"&&navigator.product==="ReactNative";var ZO={isSSR:gK,isReactNative:qde,isWindow:Hde};function Gde(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 Yde(e,t){let n,r;return(...o)=>{const a=t(...o);return n===a||(n=a,r=e(...o)),r}}function Xde(e,t){let n,r;return[(...a)=>{const s=t(...a);return n===s||(n=s,r=e(...a)),r},()=>{n=null}]}var Zde={memoizeWithArgsHash:Gde,memoizeOneWithArgsHash:Yde,memoizeOneWithArgsHashAndInvalidation:Xde};const{batchUpdates:XR}=tw,{initializeNode:Jde,peekNodeInfo:Qde}=tc,{graph:epe}=ly,{getNextStoreID:tpe}=Jx,{DEFAULT_VALUE:npe,recoilValues:iN,recoilValuesForKeys:oN}=ao,{AbstractRecoilValue:rpe,getRecoilValueAsLoadable:ipe,setRecoilValue:aN,setUnvalidatedRecoilValue:ope}=zs,{updateRetainCount:Nb}=Of,{setInvalidateMemoizedSnapshot:ape}=tK,{getNextTreeStateVersion:spe,makeEmptyStoreState:lpe}=G7,{isSSR:upe}=ZO,{memoizeOneWithArgsHashAndInvalidation:cpe}=Zde;class nw{constructor(t,n){Pt(this,"_store",void 0),Pt(this,"_refCount",1),Pt(this,"getLoadable",r=>(this.checkRefCount_INTERNAL(),ipe(this._store,r))),Pt(this,"getPromise",r=>(this.checkRefCount_INTERNAL(),this.getLoadable(r).toPromise())),Pt(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 oN(a.dirtyAtoms)}const i=this._store.getState().knownAtoms,o=this._store.getState().knownSelectors;return(r==null?void 0:r.isInitialized)==null?iN.values():r.isInitialized===!0?oN(hK([i,o])):qO(iN.values(),({key:a})=>!i.has(a)&&!o.has(a))}),Pt(this,"getInfo_UNSTABLE",({key:r})=>(this.checkRefCount_INTERNAL(),Qde(this._store,this._store.getState().currentTree,r))),Pt(this,"map",r=>{this.checkRefCount_INTERNAL();const i=new ZR(this,XR);return r(i),i}),Pt(this,"asyncMap",async r=>{this.checkRefCount_INTERNAL();const i=new ZR(this,XR);return i.retain(),await r(i),i.autoRelease_INTERNAL(),i}),this._store={storeID:tpe(),parentStoreID:n,getState:()=>t,replaceState:r=>{t.currentTree=r(t.currentTree)},getGraph:r=>{const i=t.graphsByVersion;if(i.has(r))return tr(i.get(r));const o=epe();return i.set(r,o),o},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw zt("Cannot subscribe to Snapshots")}};for(const r of this._store.getState().knownAtoms)Jde(this._store,r,"get"),Nb(this._store,r,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){upe||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(),!Dn("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){Dn("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 mK(e,t,n=!1){const r=e.getState(),i=n?spe():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(Zx(r.nodeCleanupFunctions.entries(),([o])=>[o,()=>{}]))}}function fpe(e){const t=new nw(lpe());return e!=null?t.map(e):t}const[sN,vK]=cpe((e,t)=>{var n;const r=e.getState(),i=t==="latest"?(n=r.nextTree)!==null&&n!==void 0?n:r.currentTree:tr(r.previousTree);return new nw(mK(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)});ape(vK);function dpe(e,t="latest"){const n=sN(e,t);return n.isRetained()?n:(vK(),sN(e,t))}class ZR extends nw{constructor(t,n){super(mK(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),Pt(this,"_batch",void 0),Pt(this,"set",(r,i)=>{this.checkRefCount_INTERNAL();const o=this.getStore_INTERNAL();this._batch(()=>{Nb(o,r.key,1),aN(this.getStore_INTERNAL(),r,i)})}),Pt(this,"reset",r=>{this.checkRefCount_INTERNAL();const i=this.getStore_INTERNAL();this._batch(()=>{Nb(i,r.key,1),aN(this.getStore_INTERNAL(),r,npe)})}),Pt(this,"setUnvalidatedAtomValues_DEPRECATED",r=>{this.checkRefCount_INTERNAL();const i=this.getStore_INTERNAL();XR(()=>{for(const[o,a]of r.entries())Nb(i,o,1),ope(i,new rpe(o),a)})}),this._batch=n}}var rw={Snapshot:nw,MutableSnapshot:ZR,freshSnapshot:fpe,cloneSnapshot:dpe},ppe=rw.Snapshot,hpe=rw.MutableSnapshot,gpe=rw.freshSnapshot,mpe=rw.cloneSnapshot,iw=Object.freeze({__proto__:null,Snapshot:ppe,MutableSnapshot:hpe,freshSnapshot:gpe,cloneSnapshot:mpe});function vpe(...e){const t=new Set;for(const n of e)for(const r of n)t.add(r);return t}var ype=vpe;const{useRef:bpe}=gt;function _pe(e){const t=bpe(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var lN=_pe;const{getNextTreeStateVersion:xpe,makeEmptyStoreState:yK}=G7,{cleanUpNode:wpe,getDownstreamNodes:Spe,initializeNode:Cpe,setNodeValue:Epe,setUnvalidatedAtomValue_DEPRECATED:kpe}=tc,{graph:Tpe}=ly,{cloneGraph:Rpe}=ly,{getNextStoreID:bK}=Jx,{createMutableSource:ik,reactMode:_K}=sy,{applyAtomValueWrites:Ape}=zs,{releaseScheduledRetainablesNow:xK}=Of,{freshSnapshot:$pe}=iw,{useCallback:Ope,useContext:wK,useEffect:JR,useMemo:Ipe,useRef:Dpe,useState:Ppe}=gt;function Hg(){throw zt("This component must be used inside a <RecoilRoot> component.")}const SK=Object.freeze({storeID:bK(),getState:Hg,replaceState:Hg,getGraph:Hg,subscribeToTransactions:Hg,addTransactionMetadata:Hg});let QR=!1;function uN(e){if(QR)throw zt("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){Dn("recoil_memory_managament_2020")&&Dn("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&xK(e);const n=t.currentTree.version,r=xpe();t.nextTree={...t.currentTree,version:r,stateID:r,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(r,Rpe(tr(t.graphsByVersion.get(n))))}}const CK=gt.createContext({current:SK}),ow=()=>wK(CK),EK=gt.createContext(null);function Lpe(){return wK(EK)}function JO(e,t,n){const r=Spe(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 kK(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);(!_K().early||t.suspendedComponentResolvers.size>0)&&(JO(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 Mpe(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,kK(e),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):UO("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,Dn("recoil_memory_managament_2020")&&n==null&&xK(e)}finally{t.commitDepth--}}function Fpe({setNotifyBatcherOfChange:e}){const t=ow(),[,n]=Ppe([]);return e(()=>n({})),JR(()=>(e(()=>n({})),()=>{e(()=>{})}),[e]),JR(()=>{gfe.enqueueExecution("Batcher",()=>{Mpe(t.current)})}),null}function Npe(e,t){const n=yK();return t({set:(r,i)=>{const o=n.currentTree,a=Epe(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:ype(o.dirtyAtoms,s),atomValues:Ape(o.atomValues,a),nonvalidatedAtoms:l}},setUnvalidatedAtomValues:r=>{r.forEach((i,o)=>{n.currentTree=kpe(n.currentTree,o,i)})}}),n}function Bpe(e){const t=$pe(e),n=t.getStore_INTERNAL().getState();return t.retain(),n.nodeCleanupFunctions.forEach(r=>r()),n.nodeCleanupFunctions.clear(),n}let cN=0;function jpe({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:n,children:r}){let i;const o=g=>{const v=i.current.graphsByVersion;if(v.has(g))return tr(v.get(g));const y=Tpe();return v.set(g,y),y},a=(g,v)=>{if(v==null){const{transactionSubscriptions:y}=d.current.getState(),w=cN++;return y.set(w,g),{release:()=>{y.delete(w)}}}else{const{nodeTransactionSubscriptions:y}=d.current.getState();y.has(v)||y.set(v,new Map);const w=cN++;return tr(y.get(v)).set(w,g),{release:()=>{const b=y.get(v);b&&(b.delete(w),b.size===0&&y.delete(v))}}}},s=g=>{uN(d.current);for(const v of Object.keys(g))tr(d.current.getState().nextTree).transactionMetadata[v]=g[v]},l=g=>{uN(d.current);const v=tr(i.current.nextTree);let y;try{QR=!0,y=g(v)}finally{QR=!1}y!==v&&(i.current.nextTree=y,_K().early&&JO(d.current,i.current,y),tr(u.current)())},u=Dpe(null),f=Ope(g=>{u.current=g},[u]),d=lN(()=>n??{storeID:bK(),getState:()=>i.current,replaceState:l,getGraph:o,subscribeToTransactions:a,addTransactionMetadata:s});n!=null&&(d.current=n),i=lN(()=>e!=null?Npe(d.current,e):t!=null?Bpe(t):yK());const p=Ipe(()=>ik==null?void 0:ik(i,()=>i.current.currentTree.version),[i]);return JR(()=>{const g=d.current;for(const v of new Set(g.getState().knownAtoms))Cpe(g,v,"get");return()=>{for(const v of g.getState().knownAtoms)wpe(g,v)}},[d]),gt.createElement(CK.Provider,{value:d},gt.createElement(EK.Provider,{value:p},gt.createElement(Fpe,{setNotifyBatcherOfChange:f}),r))}function zpe(e){const{override:t,...n}=e,r=ow();return t===!1&&r.current!==SK?e.children:gt.createElement(jpe,n)}function Upe(){return ow().current.storeID}var jl={RecoilRoot:zpe,useStoreRef:ow,useRecoilMutableSource:Lpe,useRecoilStoreID:Upe,notifyComponents_FOR_TESTING:JO,sendEndOfBatchNotifications_FOR_TESTING:kK};function Kpe(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 Wpe=Kpe;const{useEffect:Vpe,useRef:Hpe}=gt;function qpe(e){const t=Hpe();return Vpe(()=>{t.current=e}),t.current}var TK=qpe;const{useStoreRef:Gpe}=jl,{SUSPENSE_TIMEOUT_MS:Ype}=Of,{updateRetainCount:qg}=Of,{RetentionZone:Xpe}=Qx,{useEffect:Zpe,useRef:Jpe}=gt,{isSSR:fN}=ZO;function Qpe(e){if(Dn("recoil_memory_managament_2020"))return ehe(e)}function ehe(e){const n=(Array.isArray(e)?e:[e]).map(a=>a instanceof Xpe?a:a.key),r=Gpe();Zpe(()=>{if(!Dn("recoil_memory_managament_2020"))return;const a=r.current;if(i.current&&!fN)window.clearTimeout(i.current),i.current=null;else for(const s of n)qg(a,s,1);return()=>{for(const s of n)qg(a,s,-1)}},[r,...n]);const i=Jpe(),o=TK(n);if(!fN&&(o===void 0||!Wpe(o,n))){const a=r.current;for(const s of n)qg(a,s,1);if(o)for(const s of o)qg(a,s,-1);i.current&&window.clearTimeout(i.current),i.current=window.setTimeout(()=>{i.current=null;for(const s of n)qg(a,s,-1)},Ype)}}var QO=Qpe;function the(){return"<component name not available>"}var cy=the;const{batchUpdates:nhe}=tw,{DEFAULT_VALUE:RK}=ao,{currentRendererSupportsUseSyncExternalStore:rhe,reactMode:ch,useMutableSource:ihe,useSyncExternalStore:ohe}=sy,{useRecoilMutableSource:ahe,useStoreRef:Us}=jl,{AbstractRecoilValue:eA,getRecoilValueAsLoadable:fy,setRecoilValue:B_,setUnvalidatedRecoilValue:she,subscribeToRecoilValue:Lp}=zs,{useCallback:Xi,useEffect:Mp,useMemo:AK,useRef:Zm,useState:e2}=gt,{setByAddingToSet:lhe}=X7;function t2(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:zt(`Invalid value of loadable atom "${t.key}"`)}function uhe(){const e=cy(),t=Us(),[,n]=e2([]),r=Zm(new Set);r.current=new Set;const i=Zm(new Set),o=Zm(new Map),a=Xi(l=>{const u=o.current.get(l);u&&(u.release(),o.current.delete(l))},[o]),s=Xi((l,u)=>{o.current.has(u)&&n([])},[]);return Mp(()=>{const l=t.current;Ym(r.current,i.current).forEach(u=>{if(o.current.has(u))return;const f=Lp(l,new eA(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)}),Ym(i.current,r.current).forEach(u=>{a(u)}),i.current=r.current}),Mp(()=>{const l=o.current;return Ym(r.current,new Set(l.keys())).forEach(u=>{const f=Lp(t.current,new eA(u),d=>s(d,u),e);l.set(u,f)}),()=>l.forEach((u,f)=>a(f))},[e,t,a,s]),AK(()=>{function l(v){return y=>{B_(t.current,v,y)}}function u(v){return()=>B_(t.current,v,RK)}function f(v){var y;r.current.has(v.key)||(r.current=lhe(r.current,v.key));const w=t.current.getState();return fy(t.current,v,ch().early&&(y=w.nextTree)!==null&&y!==void 0?y:w.currentTree)}function d(v){const y=f(v);return t2(y,v,t)}function p(v){return[d(v),l(v)]}function g(v){return[f(v),l(v)]}return{getRecoilValue:d,getRecoilValueLoadable:f,getRecoilState:p,getRecoilStateLoadable:g,getSetRecoilState:l,getResetRecoilState:u}},[r,t])}const che={current:0};function fhe(e){const t=Us(),n=cy(),r=Xi(()=>{var s;const l=t.current,u=l.getState(),f=ch().early&&(s=u.nextTree)!==null&&s!==void 0?s:u.currentTree;return{loadable:fy(l,e,f),key:e.key}},[t,e]),i=Xi(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=AK(()=>i(r),[r,i]),a=Xi(s=>{const l=t.current;return Lp(l,e,s,n).release},[t,e,n]);return ohe(a,o,o).loadable}function dhe(e){const t=Us(),n=Xi(()=>{var u;const f=t.current,d=f.getState(),p=ch().early&&(u=d.nextTree)!==null&&u!==void 0?u:d.currentTree;return fy(f,e,p)},[t,e]),r=Xi(()=>n(),[n]),i=cy(),o=Xi((u,f)=>{const d=t.current;return Lp(d,e,()=>{if(!Dn("recoil_suppress_rerender_in_callback"))return f();const g=n();l.current.is(g)||f(),l.current=g},i).release},[t,e,i,n]),a=ahe();if(a==null)throw zt("Recoil hooks must be used in components contained within a <RecoilRoot> component.");const s=ihe(a,r,o),l=Zm(s);return Mp(()=>{l.current=s}),s}function tA(e){const t=Us(),n=cy(),r=Xi(()=>{var l;const u=t.current,f=u.getState(),d=ch().early&&(l=f.nextTree)!==null&&l!==void 0?l:f.currentTree;return fy(u,e,d)},[t,e]),i=Xi(()=>({loadable:r(),key:e.key}),[r,e.key]),o=Xi(l=>{const u=i();return l.loadable.is(u.loadable)&&l.key===u.key?l:u},[i]);Mp(()=>{const l=Lp(t.current,e,u=>{s(o)},n);return s(o),l.release},[n,e,t,o]);const[a,s]=e2(i);return a.key!==e.key?i().loadable:a.loadable}function phe(e){const t=Us(),[,n]=e2([]),r=cy(),i=Xi(()=>{var s;const l=t.current,u=l.getState(),f=ch().early&&(s=u.nextTree)!==null&&s!==void 0?s:u.currentTree;return fy(l,e,f)},[t,e]),o=i(),a=Zm(o);return Mp(()=>{a.current=o}),Mp(()=>{const s=t.current,l=s.getState(),u=Lp(s,e,d=>{var p;if(!Dn("recoil_suppress_rerender_in_callback"))return n([]);const g=i();(p=a.current)!==null&&p!==void 0&&p.is(g)||n(g),a.current=g},r);if(l.nextTree)s.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{a.current=null,n([])});else{var f;if(!Dn("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 n2(e){return Dn("recoil_memory_managament_2020")&&QO(e),{TRANSITION_SUPPORT:tA,SYNC_EXTERNAL_STORE:rhe()?fhe:tA,MUTABLE_SOURCE:dhe,LEGACY:phe}[ch().mode](e)}function $K(e){const t=Us(),n=n2(e);return t2(n,e,t)}function aw(e){const t=Us();return Xi(n=>{B_(t.current,e,n)},[t,e])}function hhe(e){const t=Us();return Xi(()=>{B_(t.current,e,RK)},[t,e])}function ghe(e){return[$K(e),aw(e)]}function mhe(e){return[n2(e),aw(e)]}function vhe(){const e=Us();return(t,n={})=>{nhe(()=>{e.current.addTransactionMetadata(n),t.forEach((r,i)=>she(e.current,new eA(i),r))})}}function OK(e){return Dn("recoil_memory_managament_2020")&&QO(e),tA(e)}function IK(e){const t=Us(),n=OK(e);return t2(n,e,t)}function yhe(e){return[IK(e),aw(e)]}var bhe={recoilComponentGetRecoilValueCount_FOR_TESTING:che,useRecoilInterface:uhe,useRecoilState:ghe,useRecoilStateLoadable:mhe,useRecoilValue:$K,useRecoilValueLoadable:n2,useResetRecoilState:hhe,useSetRecoilState:aw,useSetUnvalidatedAtomValues:vhe,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:OK,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:IK,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:yhe};function _he(e,t){const n=new Map;for(const[r,i]of e)t(i,r)&&n.set(r,i);return n}var xhe=_he;function whe(e,t){const n=new Set;for(const r of e)t(r)&&n.add(r);return n}var She=whe;function Che(...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 Ehe=Che;const{batchUpdates:khe}=tw,{DEFAULT_VALUE:The,getNode:DK,nodes:Rhe}=ao,{useStoreRef:r2}=jl,{AbstractRecoilValue:Ahe,setRecoilValueLoadable:$he}=zs,{SUSPENSE_TIMEOUT_MS:Ohe}=Of,{cloneSnapshot:j_}=iw,{useCallback:sw,useEffect:PK,useRef:dN,useState:Ihe}=gt,{isSSR:pN}=ZO;function lw(e){const t=r2();PK(()=>t.current.subscribeToTransactions(e).release,[e,t])}function hN(e){const t=e.atomValues.toMap(),n=N_(xhe(t,(r,i)=>{const a=DK(i).persistence_UNSTABLE;return a!=null&&a.type!=="none"&&r.state==="hasValue"}),r=>r.contents);return Ehe(e.nonvalidatedAtoms.toMap(),n)}function Dhe(e){lw(sw(t=>{let n=t.getState().previousTree;const r=t.getState().currentTree;n||(n=t.getState().currentTree);const i=hN(r),o=hN(n),a=N_(Rhe,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=She(r.dirtyAtoms,l=>i.has(l)||o.has(l));e({atomValues:i,previousAtomValues:o,atomInfo:a,modifiedAtoms:s,transactionMetadata:{...r.transactionMetadata}})},[e]))}function Phe(e){lw(sw(t=>{const n=j_(t,"latest"),r=j_(t,"previous");e({snapshot:n,previousSnapshot:r})},[e]))}function Lhe(){const e=r2(),[t,n]=Ihe(()=>j_(e.current)),r=TK(t),i=dN(),o=dN();if(lw(sw(s=>n(j_(s)),[])),PK(()=>{const s=t.retain();if(i.current&&!pN){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&&!pN){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},Ohe)}return t}function LK(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;khe(()=>{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)&&DK(f).shouldRestoreFromSnapshots&&a.add(f)}a.forEach(u=>{$he(e,new Ahe(u),o.atomValues.has(u)?tr(o.atomValues.get(u)):The)}),e.replaceState(u=>({...u,stateID:t.getID()}))})}function Mhe(){const e=r2();return sw(t=>LK(e.current,t),[e])}var MK={useRecoilSnapshot:Lhe,gotoSnapshot:LK,useGotoRecoilSnapshot:Mhe,useRecoilTransactionObserver:Phe,useTransactionObservation_DEPRECATED:Dhe,useTransactionSubscription_DEPRECATED:lw};const{peekNodeInfo:Fhe}=tc,{useStoreRef:Nhe}=jl;function Bhe(){const e=Nhe();return({key:t})=>Fhe(e.current,e.current.getState().currentTree,t)}var jhe=Bhe;const{reactMode:zhe}=sy,{RecoilRoot:Uhe,useStoreRef:Khe}=jl,{useMemo:Whe}=gt;function Vhe(){zhe().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=Khe().current;return Whe(()=>{function t({children:n}){return gt.createElement(Uhe,{store_INTERNAL:e},n)}return t},[e])}var Hhe=Vhe;const{loadableWithValue:qhe}=ay,{initializeNode:Ghe}=tc,{DEFAULT_VALUE:Yhe,getNode:Xhe}=ao,{copyTreeState:Zhe,getRecoilValueAsLoadable:Jhe,invalidateDownstreams:Qhe,writeLoadableToTreeState:ege}=zs;function gN(e){return Xhe(e.key).nodeType==="atom"}class tge{constructor(t,n){Pt(this,"_store",void 0),Pt(this,"_treeState",void 0),Pt(this,"_changes",void 0),Pt(this,"get",r=>{if(this._changes.has(r.key))return this._changes.get(r.key);if(!gN(r))throw zt("Reading selectors within atomicUpdate is not supported");const i=Jhe(this._store,r,this._treeState);if(i.state==="hasValue")return i.contents;throw i.state==="hasError"?i.contents:zt(`Expected Recoil atom ${r.key} to have a value, but it is in a loading state.`)}),Pt(this,"set",(r,i)=>{if(!gN(r))throw zt("Setting selectors within atomicUpdate is not supported");if(typeof i=="function"){const o=this.get(r);this._changes.set(r.key,i(o))}else Ghe(this._store,r.key,"set"),this._changes.set(r.key,i)}),Pt(this,"reset",r=>{this.set(r,Yhe)}),this._store=t,this._treeState=n,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=Zhe(this._treeState);for(const[n,r]of this._changes)ege(t,n,qhe(r));return Qhe(this._store,t),t}}function nge(e){return t=>{e.replaceState(n=>{const r=new tge(e,n);return t(r),r.newTreeState_INTERNAL()})}}var rge={atomicUpdater:nge},ige=rge.atomicUpdater,FK=Object.freeze({__proto__:null,atomicUpdater:ige});function oge(e,t){if(!e)throw new Error(t)}var age=oge,$m=age;const{atomicUpdater:sge}=FK,{batchUpdates:lge}=tw,{DEFAULT_VALUE:uge}=ao,{useStoreRef:cge}=jl,{refreshRecoilValue:fge,setRecoilValue:mN}=zs,{cloneSnapshot:dge}=iw,{gotoSnapshot:pge}=MK,{useCallback:hge}=gt;class NK{}const gge=new NK;function BK(e,t,n,r){let i=gge,o;if(lge(()=>{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 zt(s);const l=Z7({...r??{},set:(f,d)=>mN(e,f,d),reset:f=>mN(e,f,uge),refresh:f=>fge(e,f),gotoSnapshot:f=>pge(e,f),transact_UNSTABLE:f=>sge(e)(f)},{snapshot:()=>{const f=dge(e);return o=f.retain(),f}}),u=t(l);if(typeof u!="function")throw zt(s);i=u(...n)}),i instanceof NK&&$m(!1),er(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 mge(e,t){const n=cge();return hge((...r)=>BK(n.current,e,r),t!=null?[...t,n]:void 0)}var jK={recoilCallback:BK,useRecoilCallback:mge};const{useStoreRef:vge}=jl,{refreshRecoilValue:yge}=zs,{useCallback:bge}=gt;function _ge(e){const t=vge();return bge(()=>{const n=t.current;yge(n,e)},[e,t])}var xge=_ge;const{atomicUpdater:wge}=FK,{useStoreRef:Sge}=jl,{useMemo:Cge}=gt;function Ege(e,t){const n=Sge();return Cge(()=>(...r)=>{wge(n.current)(o=>{e(o)(...r)})},t!=null?[...t,n]:void 0)}var kge=Ege;class Tge{constructor(t){Pt(this,"value",void 0),this.value=t}}var Rge={WrappedValue:Tge},Age=Rge.WrappedValue,zK=Object.freeze({__proto__:null,WrappedValue:Age});const{isFastRefreshEnabled:$ge}=sy;class vN extends Error{}class Oge{constructor(t){var n,r,i;Pt(this,"_name",void 0),Pt(this,"_numLeafs",void 0),Pt(this,"_root",void 0),Pt(this,"_onHit",void 0),Pt(this,"_onSet",void 0),Pt(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,g;const x=this._root;if((x==null?void 0:x.type)==="leaf")throw this.invalidCacheError();const C=u;if(u=C?C.branches.get(f):x,u=(d=u)!==null&&d!==void 0?d:{type:"branch",nodeKey:w,parent:C,branches:new Map,branchKey:f},u.type!=="branch"||u.nodeKey!==w)throw this.invalidCacheError();C==null||C.branches.set(f,u),r==null||(p=r.onNodeVisit)===null||p===void 0||p.call(r,u),f=this._mapNodeValue(b),this._root=(g=this._root)!==null&&g!==void 0?g: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 vN)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=$ge()?"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 UO(t+(this._name!=null?` - ${this._name}`:"")),new vN}}var Ige={TreeCache:Oge},Dge=Ige.TreeCache,UK=Object.freeze({__proto__:null,TreeCache:Dge});class Pge{constructor(t){var n;Pt(this,"_maxSize",void 0),Pt(this,"_size",void 0),Pt(this,"_head",void 0),Pt(this,"_tail",void 0),Pt(this,"_map",void 0),Pt(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=tr(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 Lge={LRUCache:Pge},Mge=Lge.LRUCache,KK=Object.freeze({__proto__:null,LRUCache:Mge});const{LRUCache:Fge}=KK,{TreeCache:Nge}=UK;function Bge({name:e,maxSize:t,mapNodeValue:n=r=>r}){const r=new Fge({maxSize:t}),i=new Nge({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 yN=Bge;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 zt("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(er(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 jge(e,t={allowFunctions:!1}){return La(e,t)}var uw=jge;const{TreeCache:zge}=UK,S1={equality:"reference",eviction:"keep-all",maxSize:1/0};function Uge({equality:e=S1.equality,eviction:t=S1.eviction,maxSize:n=S1.maxSize}=S1,r){const i=Kge(e);return Wge(t,n,i,r)}function Kge(e){switch(e){case"reference":return t=>t;case"value":return t=>uw(t)}throw zt(`Unrecognized equality policy ${e}`)}function Wge(e,t,n,r){switch(e){case"keep-all":return new zge({name:r,mapNodeValue:n});case"lru":return yN({name:r,maxSize:tr(t),mapNodeValue:n});case"most-recent":return yN({name:r,maxSize:1,mapNodeValue:n})}throw zt(`Unrecognized eviction policy ${e}`)}var Vge=Uge;function Hge(e){return()=>null}var qge={startPerfBlock:Hge};const{isLoadable:Gge,loadableWithError:C1,loadableWithPromise:Yge,loadableWithValue:ok}=ay,{WrappedValue:WK}=zK,{getNodeLoadable:E1,peekNodeLoadable:Xge,setNodeValue:Zge}=tc,{saveDepsToStore:Jge}=ly,{DEFAULT_VALUE:Qge,getConfigDeletionHandler:eme,getNode:tme,registerNode:bN}=ao,{isRecoilValue:nme}=Pp,{markRecoilValueModified:_N}=zs,{retainedByOptionWithDefault:rme}=Of,{recoilCallback:ime}=jK,{startPerfBlock:ome}=qge;class VK{}const Gg=new VK,Yg=[],k1=new Map,ame=(()=>{let e=0;return()=>e++})();function HK(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=Vge(i??{equality:"reference",eviction:"keep-all"},n),l=rme(e.retainedBy_UNSTABLE),u=new Map;let f=0;function d(){return!Dn("recoil_memory_managament_2020")||f>0}function p(B){return B.getState().knownSelectors.add(n),f++,()=>{f--}}function g(){return eme(n)!==void 0&&!d()}function v(B,L,ae,ue,ne){Q(L,ue,ne),y(B,ae)}function y(B,L){K(B,L)&&se(B),b(L,!0)}function w(B,L){K(B,L)&&(tr(D(B)).stateVersions.clear(),b(L,!1))}function b(B,L){const ae=k1.get(B);if(ae!=null){for(const ue of ae)_N(ue,tr(t));L&&k1.delete(B)}}function x(B,L){let ae=k1.get(L);ae==null&&k1.set(L,ae=new Set),ae.add(B)}function C(B,L,ae,ue,ne,we){return L.then(Te=>{if(!d())throw se(B),Gg;const Ee=ok(Te);return v(B,ae,ne,Ee,ue),Te}).catch(Te=>{if(!d())throw se(B),Gg;if(er(Te))return k(B,Te,ae,ue,ne,we);const Ee=C1(Te);throw v(B,ae,ne,Ee,ue),Te})}function k(B,L,ae,ue,ne,we){return L.then(Te=>{if(!d())throw se(B),Gg;we.loadingDepKey!=null&&we.loadingDepPromise===L?ae.atomValues.set(we.loadingDepKey,ok(Te)):B.getState().knownSelectors.forEach(Ie=>{ae.atomValues.delete(Ie)});const Ee=O(B,ae);if(Ee&&Ee.state!=="loading"){if((K(B,ne)||D(B)==null)&&y(B,ne),Ee.state==="hasValue")return Ee.contents;throw Ee.contents}if(!K(B,ne)){const Ie=V(B,ae);if(Ie!=null)return Ie.loadingLoadable.contents}const[Le,Be]=A(B,ae,ne);if(Le.state!=="loading"&&v(B,ae,ne,Le,Be),Le.state==="hasError")throw Le.contents;return Le.contents}).catch(Te=>{if(Te instanceof VK)throw Gg;if(!d())throw se(B),Gg;const Ee=C1(Te);throw v(B,ae,ne,Ee,ue),Te})}function R(B,L,ae,ue){var ne,we,Te,Ee;if(K(B,ue)||L.version===((ne=B.getState())===null||ne===void 0||(we=ne.currentTree)===null||we===void 0?void 0:we.version)||L.version===((Te=B.getState())===null||Te===void 0||(Ee=Te.nextTree)===null||Ee===void 0?void 0:Ee.version)){var Le,Be,Ie;Jge(n,ae,B,(Le=(Be=B.getState())===null||Be===void 0||(Ie=Be.nextTree)===null||Ie===void 0?void 0:Ie.version)!==null&&Le!==void 0?Le:B.getState().currentTree.version)}for(const Pe of ae)a.add(Pe)}function A(B,L,ae){const ue=ome(n);let ne=!0,we=!0;const Te=()=>{ue(),we=!1};let Ee,Le=!1,Be;const Ie={loadingDepKey:null,loadingDepPromise:null},Pe=new Map;function je({key:tt}){const Xe=E1(B,L,tt);switch(Pe.set(tt,Xe),ne||(R(B,L,new Set(Pe.keys()),ae),w(B,ae)),Xe.state){case"hasValue":return Xe.contents;case"hasError":throw Xe.contents;case"loading":throw Ie.loadingDepKey=tt,Ie.loadingDepPromise=Xe.contents,Xe.contents}throw zt("Invalid Loadable state")}const Fe=tt=>(...Xe)=>{if(we)throw zt("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&&$m(!1),ime(B,tt,Xe,{node:t})};try{Ee=r({get:je,getCallback:Fe}),Ee=nme(Ee)?je(Ee):Ee,Gge(Ee)&&(Ee.state==="hasError"&&(Le=!0),Ee=Ee.contents),er(Ee)?Ee=C(B,Ee,L,Pe,ae,Ie).finally(Te):Te(),Ee=Ee instanceof WK?Ee.value:Ee}catch(tt){Ee=tt,er(Ee)?Ee=k(B,Ee,L,Pe,ae,Ie).finally(Te):(Le=!0,Te())}return Le?Be=C1(Ee):er(Ee)?Be=Yge(Ee):Be=ok(Ee),ne=!1,ie(B,ae,Pe),R(B,L,new Set(Pe.keys()),ae),[Be,Pe]}function O(B,L){let ae=L.atomValues.get(n);if(ae!=null)return ae;const ue=new Set;try{ae=s.get(we=>(typeof we!="string"&&$m(!1),E1(B,L,we).contents),{onNodeVisit:we=>{we.type==="branch"&&we.nodeKey!==n&&ue.add(we.nodeKey)}})}catch(we){throw zt(`Problem with cache lookup for selector "${n}": ${we.message}`)}if(ae){var ne;L.atomValues.set(n,ae),R(B,L,ue,(ne=D(B))===null||ne===void 0?void 0:ne.executionID)}return ae}function z(B,L){const ae=O(B,L);if(ae!=null)return se(B),ae;const ue=V(B,L);if(ue!=null){var ne;return((ne=ue.loadingLoadable)===null||ne===void 0?void 0:ne.state)==="loading"&&x(B,ue.executionID),ue.loadingLoadable}const we=ame(),[Te,Ee]=A(B,L,we);return Te.state==="loading"?(W(B,we,Te,Ee,L),x(B,we)):(se(B),Q(L,Te,Ee)),Te}function V(B,L){const ae=hK([u.has(B)?[tr(u.get(B))]:[],Zx(qO(u,([ne])=>ne!==B),([,ne])=>ne)]);function ue(ne){for(const[we,Te]of ne)if(!E1(B,L,we).is(Te))return!0;return!1}for(const ne of ae){if(ne.stateVersions.get(L.version)||!ue(ne.depValuesDiscoveredSoFarDuringAsyncWork))return ne.stateVersions.set(L.version,!0),ne;ne.stateVersions.set(L.version,!1)}}function D(B){return u.get(B)}function W(B,L,ae,ue,ne){u.set(B,{depValuesDiscoveredSoFarDuringAsyncWork:ue,executionID:L,loadingLoadable:ae,stateVersions:new Map([[ne.version,!0]])})}function ie(B,L,ae){if(K(B,L)){const ue=D(B);ue!=null&&(ue.depValuesDiscoveredSoFarDuringAsyncWork=ae)}}function se(B){u.delete(B)}function K(B,L){var ae;return L===((ae=D(B))===null||ae===void 0?void 0:ae.executionID)}function G(B){return Array.from(B.entries()).map(([L,ae])=>[L,ae.contents])}function Q(B,L,ae){B.atomValues.set(n,L);try{s.set(G(ae),L)}catch(ue){throw zt(`Problem with setting cache for selector "${n}": ${ue.message}`)}}function le(B){if(Yg.includes(n)){const L=`Recoil selector has circular dependencies: ${Yg.slice(Yg.indexOf(n)).join(" → ")}`;return C1(zt(L))}Yg.push(n);try{return B()}finally{Yg.pop()}}function Z(B,L){const ae=L.atomValues.get(n);return ae??s.get(ue=>{var ne;return typeof ue!="string"&&$m(!1),(ne=Xge(B,L,ue))===null||ne===void 0?void 0:ne.contents})}function ee(B,L){return le(()=>z(B,L))}function P(B){B.atomValues.delete(n)}function ge(B,L){t==null&&$m(!1);for(const ue of a){var ae;const ne=tme(ue);(ae=ne.clearCache)===null||ae===void 0||ae.call(ne,B,L)}a.clear(),P(L),s.clear(),_N(B,t)}return o!=null?t=bN({key:n,nodeType:"selector",peek:Z,get:ee,set:(L,ae,ue)=>{let ne=!1;const we=new Map;function Te({key:Ie}){if(ne)throw zt("Recoil: Async selector sets are not currently supported.");const Pe=E1(L,ae,Ie);if(Pe.state==="hasValue")return Pe.contents;if(Pe.state==="loading"){const je=`Getting value of asynchronous atom or selector "${Ie}" in a pending state while setting selector "${n}" is not yet supported.`;throw zt(je)}else throw Pe.contents}function Ee(Ie,Pe){if(ne)throw zt("Recoil: Async selector sets are not currently supported.");const je=typeof Pe=="function"?Pe(Te(Ie)):Pe;Zge(L,ae,Ie.key,je).forEach((tt,Xe)=>we.set(Xe,tt))}function Le(Ie){Ee(Ie,Qge)}const Be=o({set:Ee,get:Te,reset:Le},ue);if(Be!==void 0)throw er(Be)?zt("Recoil: Async selector sets are not currently supported."):zt("Recoil: selector set should be a void function.");return ne=!0,we},init:p,invalidate:P,clearCache:ge,shouldDeleteConfigOnRelease:g,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:l}):t=bN({key:n,nodeType:"selector",peek:Z,get:ee,init:p,invalidate:P,clearCache:ge,shouldDeleteConfigOnRelease:g,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:l})}HK.value=e=>new WK(e);var Fp=HK;const{isLoadable:sme,loadableWithError:ak,loadableWithPromise:sk,loadableWithValue:Sd}=ay,{WrappedValue:qK}=zK,{peekNodeInfo:lme}=tc,{DEFAULT_VALUE:Wc,DefaultValue:bu,getConfigDeletionHandler:GK,registerNode:ume,setConfigDeletionHandler:cme}=ao,{isRecoilValue:fme}=Pp,{getRecoilValueAsLoadable:dme,markRecoilValueModified:pme,setRecoilValue:xN,setRecoilValueLoadable:hme}=zs,{retainedByOptionWithDefault:gme}=Of,Xg=e=>e instanceof qK?e.value:e;function mme(e){const{key:t,persistence_UNSTABLE:n}=e,r=gme(e.retainedBy_UNSTABLE);let i=0;function o(x){return sk(x.then(C=>(a=Sd(C),C)).catch(C=>{throw a=ak(C),C}))}let a=er(e.default)?o(e.default):sme(e.default)?e.default.state==="loading"?o(e.default.contents):e.default:Sd(Xg(e.default));a.contents;let s;const l=new Map;function u(x){return x}function f(x,C){const k=C.then(R=>{var A,O;return((O=((A=x.getState().nextTree)!==null&&A!==void 0?A:x.getState().currentTree).atomValues.get(t))===null||O===void 0?void 0:O.contents)===k&&xN(x,b,R),R}).catch(R=>{var A,O;throw((O=((A=x.getState().nextTree)!==null&&A!==void 0?A:x.getState().currentTree).atomValues.get(t))===null||O===void 0?void 0:O.contents)===k&&hme(x,b,ak(R)),R});return k}function d(x,C,k){var R;i++;const A=()=>{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)||pme(x,b)};a.contents.finally(D)}const O=(R=e.effects)!==null&&R!==void 0?R:e.effects_UNSTABLE;if(O!=null){let K=function(P){if(W&&P.key===t){const ge=D;return ge instanceof bu?p(x,C):er(ge)?sk(ge.then(B=>B instanceof bu?a.toPromise():B)):Sd(ge)}return dme(x,P)},G=function(P){return K(P).toPromise()},Q=function(P){var ge;const B=lme(x,(ge=x.getState().nextTree)!==null&&ge!==void 0?ge:x.getState().currentTree,P.key);return W&&P.key===t&&!(D instanceof bu)?{...B,isSet:!0,loadable:K(P)}:B},D=Wc,W=!0,ie=!1,se=null;const le=P=>ge=>{if(W){const B=K(b),L=B.state==="hasValue"?B.contents:Wc;D=typeof ge=="function"?ge(L):ge,er(D)&&(D=D.then(ae=>(se={effect:P,value:ae},ae)))}else{if(er(ge))throw zt("Setting atoms to async values is not implemented.");typeof ge!="function"&&(se={effect:P,value:Xg(ge)}),xN(x,b,typeof ge=="function"?B=>{const L=Xg(ge(B));return se={effect:P,value:L},L}:Xg(ge))}},Z=P=>()=>le(P)(Wc),ee=P=>ge=>{var B;const{release:L}=x.subscribeToTransactions(ae=>{var ue;let{currentTree:ne,previousTree:we}=ae.getState();we||(we=ne);const Te=(ue=ne.atomValues.get(t))!==null&&ue!==void 0?ue:a;if(Te.state==="hasValue"){var Ee,Le,Be,Ie;const Pe=Te.contents,je=(Ee=we.atomValues.get(t))!==null&&Ee!==void 0?Ee:a,Fe=je.state==="hasValue"?je.contents:Wc;((Le=se)===null||Le===void 0?void 0:Le.effect)!==P||((Be=se)===null||Be===void 0?void 0:Be.value)!==Pe?ge(Pe,Fe,!ne.atomValues.has(t)):((Ie=se)===null||Ie===void 0?void 0:Ie.effect)===P&&(se=null)}},t);l.set(x,[...(B=l.get(x))!==null&&B!==void 0?B:[],L])};for(const P of O)try{const ge=P({node:b,storeID:x.storeID,parentStoreID_UNSTABLE:x.parentStoreID,trigger:k,setSelf:le(P),resetSelf:Z(P),onSet:ee(P),getPromise:G,getLoadable:K,getInfo_UNSTABLE:Q});if(ge!=null){var z;l.set(x,[...(z=l.get(x))!==null&&z!==void 0?z:[],ge])}}catch(ge){D=ge,ie=!0}if(W=!1,!(D instanceof bu)){var V;const P=ie?ak(D):er(D)?sk(f(x,D)):Sd(Xg(D));P.contents,C.atomValues.set(t,P),(V=x.getState().nextTree)===null||V===void 0||V.atomValues.set(t,P)}}return A}function p(x,C){var k,R;return(k=(R=C.atomValues.get(t))!==null&&R!==void 0?R:s)!==null&&k!==void 0?k:a}function g(x,C){if(C.atomValues.has(t))return tr(C.atomValues.get(t));if(C.nonvalidatedAtoms.has(t)){if(s!=null)return s;if(n==null)return a;const k=C.nonvalidatedAtoms.get(t),R=n.validator(k,Wc);return s=R instanceof bu?a:Sd(R),s}else return a}function v(){s=void 0}function y(x,C,k){if(C.atomValues.has(t)){const R=tr(C.atomValues.get(t));if(R.state==="hasValue"&&k===R.contents)return new Map}else if(!C.nonvalidatedAtoms.has(t)&&k instanceof bu)return new Map;return s=void 0,new Map().set(t,Sd(k))}function w(){return GK(t)!==void 0&&i<=0}const b=ume({key:t,nodeType:"atom",peek:p,get:g,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 i2(e){const{...t}=e,n="default"in e?e.default:new Promise(()=>{});return fme(n)?vme({...t,default:n}):mme({...t,default:n})}function vme(e){const t=i2({...e,default:Wc,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:r=>r instanceof bu?r:tr(e.persistence_UNSTABLE).validator(r,Wc)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),n=Fp({key:`${e.key}__withFallback`,get:({get:r})=>{const i=r(t);return i instanceof bu?e.default:i},set:({set:r},i)=>r(t,i),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return cme(n.key,GK(e.key)),n}i2.value=e=>new qK(e);var YK=i2;let yme=class{constructor(t){var n;Pt(this,"_map",void 0),Pt(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 bme={MapCache:yme},_me=bme.MapCache,xme=Object.freeze({__proto__:null,MapCache:_me});const{LRUCache:wN}=KK,{MapCache:wme}=xme,T1={equality:"reference",eviction:"none",maxSize:1/0};function Sme({equality:e=T1.equality,eviction:t=T1.eviction,maxSize:n=T1.maxSize}=T1){const r=Cme(e);return Eme(t,n,r)}function Cme(e){switch(e){case"reference":return t=>t;case"value":return t=>uw(t)}throw zt(`Unrecognized equality policy ${e}`)}function Eme(e,t,n){switch(e){case"keep-all":return new wme({mapKey:n});case"lru":return new wN({mapKey:n,maxSize:tr(t)});case"most-recent":return new wN({mapKey:n,maxSize:1})}throw zt(`Unrecognized eviction policy ${e}`)}var XK=Sme;const{setConfigDeletionHandler:kme}=ao;function Tme(e){var t,n;const r=XK({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=YK({...u,key:`${e.key}__${(o=uw(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),kme(d.key,()=>{r.delete(i)}),d}}var Rme=Tme;const{setConfigDeletionHandler:Ame}=ao;let $me=0;function Ome(e){var t,n;const r=XK({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 zt(`Problem with cache lookup for selector ${e.key}: ${p.message}`)}if(a!=null)return a;const s=`${e.key}__selectorFamily/${(o=uw(i,{allowFunctions:!0}))!==null&&o!==void 0?o:"void"}/${$me++}`,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=Fp({key:s,get:l,set:(v,y)=>p(i)(v,y),cachePolicy_UNSTABLE:u,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:f})}else d=Fp({key:s,get:l,cachePolicy_UNSTABLE:u,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:f});return r.set(i,d),Ame(d.key,()=>{r.delete(i)}),d}}var nc=Ome;const Ime=nc({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function Dme(e){return Ime(e)}var Pme=Dme;const Lme=nc({key:"__error",get:e=>()=>{throw zt(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function Mme(e){return Lme(e)}var Fme=Mme;function Nme(e){return e}var Bme=Nme;const{loadableWithError:ZK,loadableWithPromise:JK,loadableWithValue:QK}=ay;function cw(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 jme(e){return e!=null&&!er(e)}function fw(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function nA(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((n,r,i)=>({...n,[r]:t[i]}),{})}function vp(e,t,n){const r=n.map((i,o)=>i==null?QK(t[o]):er(i)?JK(i):ZK(i));return nA(e,r)}function zme(e,t){return t.map((n,r)=>n===void 0?e[r]:n)}const Ume=nc({key:"__waitForNone",get:e=>({get:t})=>{const n=fw(e),[r,i]=cw(t,n);return vp(e,r,i)},dangerouslyAllowMutability:!0}),Kme=nc({key:"__waitForAny",get:e=>({get:t})=>{const n=fw(e),[r,i]=cw(t,n);return i.some(o=>!er(o))?vp(e,r,i):new Promise(o=>{for(const[a,s]of i.entries())er(s)&&s.then(l=>{r[a]=l,i[a]=void 0,o(vp(e,r,i))}).catch(l=>{i[a]=l,o(vp(e,r,i))})})},dangerouslyAllowMutability:!0}),Wme=nc({key:"__waitForAll",get:e=>({get:t})=>{const n=fw(e),[r,i]=cw(t,n);if(i.every(a=>a==null))return nA(e,r);const o=i.find(jme);if(o!=null)throw o;return Promise.all(i).then(a=>nA(e,zme(r,a)))},dangerouslyAllowMutability:!0}),Vme=nc({key:"__waitForAllSettled",get:e=>({get:t})=>{const n=fw(e),[r,i]=cw(t,n);return i.every(o=>!er(o))?vp(e,r,i):Promise.all(i.map((o,a)=>er(o)?o.then(s=>{r[a]=s,i[a]=void 0}).catch(s=>{r[a]=void 0,i[a]=s}):null)).then(()=>vp(e,r,i))},dangerouslyAllowMutability:!0}),Hme=nc({key:"__noWait",get:e=>({get:t})=>{try{return Fp.value(QK(t(e)))}catch(n){return Fp.value(er(n)?JK(n):ZK(n))}},dangerouslyAllowMutability:!0});var qme={waitForNone:Ume,waitForAny:Kme,waitForAll:Wme,waitForAllSettled:Vme,noWait:Hme};const{RecoilLoadable:Gme}=ay,{DefaultValue:Yme}=ao,{RecoilRoot:Xme,useRecoilStoreID:Zme}=jl,{isRecoilValue:Jme}=Pp,{retentionZone:Qme}=Qx,{freshSnapshot:eve}=iw,{useRecoilState:tve,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:nve,useRecoilStateLoadable:rve,useRecoilValue:ive,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:ove,useRecoilValueLoadable:ave,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:sve,useResetRecoilState:lve,useSetRecoilState:uve}=bhe,{useGotoRecoilSnapshot:cve,useRecoilSnapshot:fve,useRecoilTransactionObserver:dve}=MK,{useRecoilCallback:pve}=jK,{noWait:hve,waitForAll:gve,waitForAllSettled:mve,waitForAny:vve,waitForNone:yve}=qme;var rc={DefaultValue:Yme,isRecoilValue:Jme,RecoilLoadable:Gme,RecoilEnv:j7,RecoilRoot:Xme,useRecoilStoreID:Zme,useRecoilBridgeAcrossReactRoots_UNSTABLE:Hhe,atom:YK,selector:Fp,atomFamily:Rme,selectorFamily:nc,constSelector:Pme,errorSelector:Fme,readOnlySelector:Bme,noWait:hve,waitForNone:yve,waitForAny:vve,waitForAll:gve,waitForAllSettled:mve,useRecoilValue:ive,useRecoilValueLoadable:ave,useRecoilState:tve,useRecoilStateLoadable:rve,useSetRecoilState:uve,useResetRecoilState:lve,useGetRecoilValueInfo_UNSTABLE:jhe,useRecoilRefresher_UNSTABLE:xge,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:sve,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:ove,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:nve,useRecoilCallback:pve,useRecoilTransaction_UNSTABLE:kge,useGotoRecoilSnapshot:cve,useRecoilSnapshot:fve,useRecoilTransactionObserver_UNSTABLE:dve,snapshot_UNSTABLE:eve,useRetain:QO,retentionZone:Qme},bve=rc.DefaultValue,_ve=rc.RecoilRoot,Yn=rc.atom,eW=rc.selector,Ct=rc.useRecoilValue,ir=rc.useRecoilState,gn=rc.useSetRecoilState,Bb=rc.useResetRecoilState;const xve={black:"#000",white:"#fff"},Dv=xve,wve={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"},Cd=wve,Sve={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"},Ed=Sve,Cve={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"},kd=Cve,Eve={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"},Td=Eve,kve={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"},Rd=kve,Tve={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"},Zg=Tve,Rve={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"},dw=Rve;function M(){return M=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},M.apply(this,arguments)}function Vc(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function tW(e){if(!Vc(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=tW(e[n])}),t}function Zi(e,t,n={clone:!0}){const r=n.clone?M({},e):e;return Vc(e)&&Vc(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Vc(t[i])&&i in e&&Vc(e[i])?r[i]=Zi(e[i],t[i],n):n.clone?r[i]=Vc(t[i])?tW(t[i]):t[i]:r[i]=t[i])}),r}var nW={exports:{}},Ave="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",$ve=Ave,Ove=$ve;function rW(){}function iW(){}iW.resetWarningCache=rW;var Ive=function(){function e(r,i,o,a,s,l){if(l!==Ove){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:iW,resetWarningCache:rW};return n.PropTypes=n,n};nW.exports=Ive();var dy=nW.exports;const ft=_i(dy);function Ku(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 oW={exports:{}},Cn={};/**
|
|
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 o2=Symbol.for("react.element"),a2=Symbol.for("react.portal"),pw=Symbol.for("react.fragment"),hw=Symbol.for("react.strict_mode"),gw=Symbol.for("react.profiler"),mw=Symbol.for("react.provider"),vw=Symbol.for("react.context"),Dve=Symbol.for("react.server_context"),yw=Symbol.for("react.forward_ref"),bw=Symbol.for("react.suspense"),_w=Symbol.for("react.suspense_list"),xw=Symbol.for("react.memo"),ww=Symbol.for("react.lazy"),Pve=Symbol.for("react.offscreen"),aW;aW=Symbol.for("react.module.reference");function va(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case o2:switch(e=e.type,e){case pw:case gw:case hw:case bw:case _w:return e;default:switch(e=e&&e.$$typeof,e){case Dve:case vw:case yw:case ww:case xw:case mw:return e;default:return t}}case a2:return t}}}Cn.ContextConsumer=vw;Cn.ContextProvider=mw;Cn.Element=o2;Cn.ForwardRef=yw;Cn.Fragment=pw;Cn.Lazy=ww;Cn.Memo=xw;Cn.Portal=a2;Cn.Profiler=gw;Cn.StrictMode=hw;Cn.Suspense=bw;Cn.SuspenseList=_w;Cn.isAsyncMode=function(){return!1};Cn.isConcurrentMode=function(){return!1};Cn.isContextConsumer=function(e){return va(e)===vw};Cn.isContextProvider=function(e){return va(e)===mw};Cn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===o2};Cn.isForwardRef=function(e){return va(e)===yw};Cn.isFragment=function(e){return va(e)===pw};Cn.isLazy=function(e){return va(e)===ww};Cn.isMemo=function(e){return va(e)===xw};Cn.isPortal=function(e){return va(e)===a2};Cn.isProfiler=function(e){return va(e)===gw};Cn.isStrictMode=function(e){return va(e)===hw};Cn.isSuspense=function(e){return va(e)===bw};Cn.isSuspenseList=function(e){return va(e)===_w};Cn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===pw||e===gw||e===hw||e===bw||e===_w||e===Pve||typeof e=="object"&&e!==null&&(e.$$typeof===ww||e.$$typeof===xw||e.$$typeof===mw||e.$$typeof===vw||e.$$typeof===yw||e.$$typeof===aW||e.getModuleId!==void 0)};Cn.typeOf=va;oW.exports=Cn;var Lve=oW.exports;const Mve=_i(Lve);function ze(e){if(typeof e!="string")throw new Error(Ku(7));return e.charAt(0).toUpperCase()+e.slice(1)}function rA(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function yf(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 Fve(e,t){return()=>null}function yp(e,t){return T.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function nr(e){return e&&e.ownerDocument||document}function da(e){return nr(e).defaultView||window}function Nve(e,t){return()=>null}function z_(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Bve=typeof window<"u"?T.useLayoutEffect:T.useEffect,to=Bve;let SN=0;function jve(e){const[t,n]=T.useState(e),r=e||t;return T.useEffect(()=>{t==null&&(SN+=1,n(`mui-${SN}`))},[t]),r}const CN=cf["useId".toString()];function py(e){if(CN!==void 0){const t=CN();return e??t}return jve(e)}function zve(e,t,n,r,i){return null}function Np({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 Oi(e){const t=T.useRef(e);return to(()=>{t.current=e}),T.useCallback((...n)=>(0,t.current)(...n),[])}function An(...e){return T.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{z_(n,t)})},e)}let Sw=!0,iA=!1,EN;const Uve={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 Kve(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Uve[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Wve(e){e.metaKey||e.altKey||e.ctrlKey||(Sw=!0)}function lk(){Sw=!1}function Vve(){this.visibilityState==="hidden"&&iA&&(Sw=!0)}function Hve(e){e.addEventListener("keydown",Wve,!0),e.addEventListener("mousedown",lk,!0),e.addEventListener("pointerdown",lk,!0),e.addEventListener("touchstart",lk,!0),e.addEventListener("visibilitychange",Vve,!0)}function qve(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Sw||Kve(t)}function hy(){const e=T.useCallback(i=>{i!=null&&Hve(i.ownerDocument)},[]),t=T.useRef(!1);function n(){return t.current?(iA=!0,window.clearTimeout(EN),EN=window.setTimeout(()=>{iA=!1},100),t.current=!1,!0):!1}function r(i){return qve(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function sW(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Ad;function lW(){if(Ad)return Ad;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),Ad="reverse",e.scrollLeft>0?Ad="default":(e.scrollLeft=1,e.scrollLeft===0&&(Ad="negative")),document.body.removeChild(e),Ad}function kN(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(lW()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Gve={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Yve=Gve;function s2(e,t){const n=M({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=M({},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]=M({},o),Object.keys(i).forEach(a=>{n[r][a]=s2(i[a],o[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function yt(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 TN=e=>e,Xve=()=>{let e=TN;return{configure(t){e=t},generate(t){return e(t)},reset(){e=TN}}},Zve=Xve(),l2=Zve,Jve={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function mt(e,t,n="Mui"){const r=Jve[t];return r?`${n}-${r}`:`${l2.generate(e)}-${t}`}function vt(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=mt(e,i,n)}),r}function Je(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 uW(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Qve=/^((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)-.*))$/,eye=uW(function(e){return Qve.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function tye(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 nye(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 rye=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(nye(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=tye(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}(),di="-ms-",U_="-moz-",dn="-webkit-",cW="comm",u2="rule",c2="decl",iye="@import",fW="@keyframes",oye="@layer",aye=Math.abs,Cw=String.fromCharCode,sye=Object.assign;function lye(e,t){return ti(e,0)^45?(((t<<2^ti(e,0))<<2^ti(e,1))<<2^ti(e,2))<<2^ti(e,3):0}function dW(e){return e.trim()}function uye(e,t){return(e=t.exec(e))?e[0]:e}function pn(e,t,n){return e.replace(t,n)}function oA(e,t){return e.indexOf(t)}function ti(e,t){return e.charCodeAt(t)|0}function Pv(e,t,n){return e.slice(t,n)}function ws(e){return e.length}function f2(e){return e.length}function R1(e,t){return t.push(e),e}function cye(e,t){return e.map(t).join("")}var Ew=1,Bp=1,pW=0,no=0,Ar=0,fh="";function kw(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Ew,column:Bp,length:a,return:""}}function Jg(e,t){return sye(kw("",null,null,"",null,null,0),e,{length:-e.length},t)}function fye(){return Ar}function dye(){return Ar=no>0?ti(fh,--no):0,Bp--,Ar===10&&(Bp=1,Ew--),Ar}function Ro(){return Ar=no<pW?ti(fh,no++):0,Bp++,Ar===10&&(Bp=1,Ew++),Ar}function Ls(){return ti(fh,no)}function jb(){return no}function gy(e,t){return Pv(fh,e,t)}function Lv(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 hW(e){return Ew=Bp=1,pW=ws(fh=e),no=0,[]}function gW(e){return fh="",e}function zb(e){return dW(gy(no-1,aA(e===91?e+2:e===40?e+1:e)))}function pye(e){for(;(Ar=Ls())&&Ar<33;)Ro();return Lv(e)>2||Lv(Ar)>3?"":" "}function hye(e,t){for(;--t&&Ro()&&!(Ar<48||Ar>102||Ar>57&&Ar<65||Ar>70&&Ar<97););return gy(e,jb()+(t<6&&Ls()==32&&Ro()==32))}function aA(e){for(;Ro();)switch(Ar){case e:return no;case 34:case 39:e!==34&&e!==39&&aA(Ar);break;case 40:e===41&&aA(e);break;case 92:Ro();break}return no}function gye(e,t){for(;Ro()&&e+Ar!==47+10;)if(e+Ar===42+42&&Ls()===47)break;return"/*"+gy(t,no-1)+"*"+Cw(e===47?e:Ro())}function mye(e){for(;!Lv(Ls());)Ro();return gy(e,no)}function vye(e){return gW(Ub("",null,null,null,[""],e=hW(e),0,[0],e))}function Ub(e,t,n,r,i,o,a,s,l){for(var u=0,f=0,d=a,p=0,g=0,v=0,y=1,w=1,b=1,x=0,C="",k=i,R=o,A=r,O=C;w;)switch(v=x,x=Ro()){case 40:if(v!=108&&ti(O,d-1)==58){oA(O+=pn(zb(x),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:O+=zb(x);break;case 9:case 10:case 13:case 32:O+=pye(v);break;case 92:O+=hye(jb()-1,7);continue;case 47:switch(Ls()){case 42:case 47:R1(yye(gye(Ro(),jb()),t,n),l);break;default:O+="/"}break;case 123*y:s[u++]=ws(O)*b;case 125*y:case 59:case 0:switch(x){case 0:case 125:w=0;case 59+f:b==-1&&(O=pn(O,/\f/g,"")),g>0&&ws(O)-d&&R1(g>32?AN(O+";",r,n,d-1):AN(pn(O," ","")+";",r,n,d-2),l);break;case 59:O+=";";default:if(R1(A=RN(O,t,n,u,f,i,s,C,k=[],R=[],d),o),x===123)if(f===0)Ub(O,t,A,A,k,o,d,s,R);else switch(p===99&&ti(O,3)===110?100:p){case 100:case 108:case 109:case 115:Ub(e,A,A,r&&R1(RN(e,A,A,0,0,i,s,C,i,k=[],d),R),i,R,d,s,r?k:R);break;default:Ub(O,A,A,A,[""],R,0,s,R)}}u=f=g=0,y=b=1,C=O="",d=a;break;case 58:d=1+ws(O),g=v;default:if(y<1){if(x==123)--y;else if(x==125&&y++==0&&dye()==125)continue}switch(O+=Cw(x),x*y){case 38:b=f>0?1:(O+="\f",-1);break;case 44:s[u++]=(ws(O)-1)*b,b=1;break;case 64:Ls()===45&&(O+=zb(Ro())),p=Ls(),f=d=ws(C=O+=mye(jb())),x++;break;case 45:v===45&&ws(O)==2&&(y=0)}}return o}function RN(e,t,n,r,i,o,a,s,l,u,f){for(var d=i-1,p=i===0?o:[""],g=f2(p),v=0,y=0,w=0;v<r;++v)for(var b=0,x=Pv(e,d+1,d=aye(y=a[v])),C=e;b<g;++b)(C=dW(y>0?p[b]+" "+x:pn(x,/&\f/g,p[b])))&&(l[w++]=C);return kw(e,t,n,i===0?u2:s,l,u,f)}function yye(e,t,n){return kw(e,t,n,cW,Cw(fye()),Pv(e,2,-2),0)}function AN(e,t,n,r){return kw(e,t,n,c2,Pv(e,0,r),Pv(e,r+1,-1),r)}function bp(e,t){for(var n="",r=f2(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function bye(e,t,n,r){switch(e.type){case oye:if(e.children.length)break;case iye:case c2:return e.return=e.return||e.value;case cW:return"";case fW:return e.return=e.value+"{"+bp(e.children,r)+"}";case u2:e.value=e.props.join(",")}return ws(n=bp(e.children,r))?e.return=e.value+"{"+n+"}":""}function _ye(e){var t=f2(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 xye(e){return function(t){t.root||(t=t.return)&&e(t)}}var wye=function(t,n,r){for(var i=0,o=0;i=o,o=Ls(),i===38&&o===12&&(n[r]=1),!Lv(o);)Ro();return gy(t,no)},Sye=function(t,n){var r=-1,i=44;do switch(Lv(i)){case 0:i===38&&Ls()===12&&(n[r]=1),t[r]+=wye(no-1,n,r);break;case 2:t[r]+=zb(i);break;case 4:if(i===44){t[++r]=Ls()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Cw(i)}while(i=Ro());return t},Cye=function(t,n){return gW(Sye(hW(t),n))},$N=new WeakMap,Eye=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&&!$N.get(r))&&!i){$N.set(t,!0);for(var o=[],a=Cye(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]}}},kye=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function mW(e,t){switch(lye(e,t)){case 5103:return dn+"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 dn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return dn+e+U_+e+di+e+e;case 6828:case 4268:return dn+e+di+e+e;case 6165:return dn+e+di+"flex-"+e+e;case 5187:return dn+e+pn(e,/(\w+).+(:[^]+)/,dn+"box-$1$2"+di+"flex-$1$2")+e;case 5443:return dn+e+di+"flex-item-"+pn(e,/flex-|-self/,"")+e;case 4675:return dn+e+di+"flex-line-pack"+pn(e,/align-content|flex-|-self/,"")+e;case 5548:return dn+e+di+pn(e,"shrink","negative")+e;case 5292:return dn+e+di+pn(e,"basis","preferred-size")+e;case 6060:return dn+"box-"+pn(e,"-grow","")+dn+e+di+pn(e,"grow","positive")+e;case 4554:return dn+pn(e,/([^-])(transform)/g,"$1"+dn+"$2")+e;case 6187:return pn(pn(pn(e,/(zoom-|grab)/,dn+"$1"),/(image-set)/,dn+"$1"),e,"")+e;case 5495:case 3959:return pn(e,/(image-set\([^]*)/,dn+"$1$`$1");case 4968:return pn(pn(e,/(.+:)(flex-)?(.*)/,dn+"box-pack:$3"+di+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+dn+e+e;case 4095:case 3583:case 4068:case 2532:return pn(e,/(.+)-inline(.+)/,dn+"$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(ws(e)-1-t>6)switch(ti(e,t+1)){case 109:if(ti(e,t+4)!==45)break;case 102:return pn(e,/(.+:)(.+)-([^]+)/,"$1"+dn+"$2-$3$1"+U_+(ti(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~oA(e,"stretch")?mW(pn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ti(e,t+1)!==115)break;case 6444:switch(ti(e,ws(e)-3-(~oA(e,"!important")&&10))){case 107:return pn(e,":",":"+dn)+e;case 101:return pn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+dn+(ti(e,14)===45?"inline-":"")+"box$3$1"+dn+"$2$3$1"+di+"$2box$3")+e}break;case 5936:switch(ti(e,t+11)){case 114:return dn+e+di+pn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return dn+e+di+pn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return dn+e+di+pn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return dn+e+di+e+e}return e}var Tye=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case c2:t.return=mW(t.value,t.length);break;case fW:return bp([Jg(t,{value:pn(t.value,"@","@"+dn)})],i);case u2:if(t.length)return cye(t.props,function(o){switch(uye(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bp([Jg(t,{props:[pn(o,/:(read-\w+)/,":"+U_+"$1")]})],i);case"::placeholder":return bp([Jg(t,{props:[pn(o,/:(plac\w+)/,":"+dn+"input-$1")]}),Jg(t,{props:[pn(o,/:(plac\w+)/,":"+U_+"$1")]}),Jg(t,{props:[pn(o,/:(plac\w+)/,di+"input-$1")]})],i)}return""})}},Rye=[Tye],Aye=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||Rye,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=[Eye,kye];{var f,d=[bye,xye(function(y){f.insert(y)})],p=_ye(u.concat(i,d)),g=function(w){return bp(vye(w),p)};l=function(w,b,x,C){f=x,g(w?w+"{"+b.styles+"}":b.styles),C&&(v.inserted[b.name]=!0)}}var v={key:n,sheet:new rye({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},vW={exports:{}},En={};/** @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 Wr=typeof Symbol=="function"&&Symbol.for,d2=Wr?Symbol.for("react.element"):60103,p2=Wr?Symbol.for("react.portal"):60106,Tw=Wr?Symbol.for("react.fragment"):60107,Rw=Wr?Symbol.for("react.strict_mode"):60108,Aw=Wr?Symbol.for("react.profiler"):60114,$w=Wr?Symbol.for("react.provider"):60109,Ow=Wr?Symbol.for("react.context"):60110,h2=Wr?Symbol.for("react.async_mode"):60111,Iw=Wr?Symbol.for("react.concurrent_mode"):60111,Dw=Wr?Symbol.for("react.forward_ref"):60112,Pw=Wr?Symbol.for("react.suspense"):60113,$ye=Wr?Symbol.for("react.suspense_list"):60120,Lw=Wr?Symbol.for("react.memo"):60115,Mw=Wr?Symbol.for("react.lazy"):60116,Oye=Wr?Symbol.for("react.block"):60121,Iye=Wr?Symbol.for("react.fundamental"):60117,Dye=Wr?Symbol.for("react.responder"):60118,Pye=Wr?Symbol.for("react.scope"):60119;function Mo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case d2:switch(e=e.type,e){case h2:case Iw:case Tw:case Aw:case Rw:case Pw:return e;default:switch(e=e&&e.$$typeof,e){case Ow:case Dw:case Mw:case Lw:case $w:return e;default:return t}}case p2:return t}}}function yW(e){return Mo(e)===Iw}En.AsyncMode=h2;En.ConcurrentMode=Iw;En.ContextConsumer=Ow;En.ContextProvider=$w;En.Element=d2;En.ForwardRef=Dw;En.Fragment=Tw;En.Lazy=Mw;En.Memo=Lw;En.Portal=p2;En.Profiler=Aw;En.StrictMode=Rw;En.Suspense=Pw;En.isAsyncMode=function(e){return yW(e)||Mo(e)===h2};En.isConcurrentMode=yW;En.isContextConsumer=function(e){return Mo(e)===Ow};En.isContextProvider=function(e){return Mo(e)===$w};En.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===d2};En.isForwardRef=function(e){return Mo(e)===Dw};En.isFragment=function(e){return Mo(e)===Tw};En.isLazy=function(e){return Mo(e)===Mw};En.isMemo=function(e){return Mo(e)===Lw};En.isPortal=function(e){return Mo(e)===p2};En.isProfiler=function(e){return Mo(e)===Aw};En.isStrictMode=function(e){return Mo(e)===Rw};En.isSuspense=function(e){return Mo(e)===Pw};En.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Tw||e===Iw||e===Aw||e===Rw||e===Pw||e===$ye||typeof e=="object"&&e!==null&&(e.$$typeof===Mw||e.$$typeof===Lw||e.$$typeof===$w||e.$$typeof===Ow||e.$$typeof===Dw||e.$$typeof===Iye||e.$$typeof===Dye||e.$$typeof===Pye||e.$$typeof===Oye)};En.typeOf=Mo;vW.exports=En;var Lye=vW.exports,bW=Lye,Mye={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Fye={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},_W={};_W[bW.ForwardRef]=Mye;_W[bW.Memo]=Fye;var Nye=!0;function Bye(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var xW=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Nye===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},wW=function(t,n,r){xW(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 jye(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 zye={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},Uye=/[A-Z]|^ms/g,Kye=/_EMO_([^_]+?)_([^]*?)_EMO_/g,SW=function(t){return t.charCodeAt(1)===45},ON=function(t){return t!=null&&typeof t!="boolean"},uk=uW(function(e){return SW(e)?e:e.replace(Uye,"-$&").toLowerCase()}),IN=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Kye,function(r,i,o){return Ss={name:i,styles:o,next:Ss},i})}return zye[t]!==1&&!SW(t)&&typeof n=="number"&&n!==0?n+"px":n};function Mv(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 Ss={name:n.name,styles:n.styles,next:Ss},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Ss={name:r.name,styles:r.styles,next:Ss},r=r.next;var i=n.styles+";";return i}return Wye(e,t,n)}case"function":{if(e!==void 0){var o=Ss,a=n(e);return Ss=o,Mv(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function Wye(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Mv(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]+"}":ON(a)&&(r+=uk(o)+":"+IN(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++)ON(a[s])&&(r+=uk(o)+":"+IN(o,a[s])+";");else{var l=Mv(e,t,a);switch(o){case"animation":case"animationName":{r+=uk(o)+":"+l+";";break}default:r+=o+"{"+l+"}"}}}return r}var DN=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Ss,g2=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="";Ss=void 0;var a=t[0];a==null||a.raw===void 0?(i=!1,o+=Mv(r,n,a)):o+=a[0];for(var s=1;s<t.length;s++)o+=Mv(r,n,t[s]),i&&(o+=a[s]);DN.lastIndex=0;for(var l="",u;(u=DN.exec(o))!==null;)l+="-"+u[1];var f=jye(o)+l;return{name:f,styles:o,next:Ss}},Vye=function(t){return t()},CW=cf["useInsertionEffect"]?cf["useInsertionEffect"]:!1,Hye=CW||Vye,PN=CW||T.useLayoutEffect,EW=T.createContext(typeof HTMLElement<"u"?Aye({key:"css"}):null);EW.Provider;var kW=function(t){return T.forwardRef(function(n,r){var i=T.useContext(EW);return t(n,i,r)})},Fw=T.createContext({}),qye=kW(function(e,t){var n=e.styles,r=g2([n],void 0,T.useContext(Fw)),i=T.useRef();return PN(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]),PN(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(r.next!==void 0&&wW(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 m2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return g2(t)}var dh=function(){var t=m2.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_"}}},Gye=eye,Yye=function(t){return t!=="theme"},LN=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Gye:Yye},MN=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},Xye=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return xW(n,r,i),Hye(function(){return wW(n,r,i)}),null},Zye=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=MN(t,n,r),l=s||LN(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,g=1;g<p;g++)d.push(f[g],f[0][g])}var v=kW(function(y,w,b){var x=u&&y.as||i,C="",k=[],R=y;if(y.theme==null){R={};for(var A in y)R[A]=y[A];R.theme=T.useContext(Fw)}typeof y.className=="string"?C=Bye(w.registered,k,y.className):y.className!=null&&(C=y.className+" ");var O=g2(d.concat(k),w.registered,R);C+=w.key+"-"+O.name,a!==void 0&&(C+=" "+a);var z=u&&s===void 0?LN(x):l,V={};for(var D in y)u&&D==="as"||z(D)&&(V[D]=y[D]);return V.className=C,V.ref=b,T.createElement(T.Fragment,null,T.createElement(Xye,{cache:w,serialized:O,isStringTag:typeof x=="string"}),T.createElement(x,V))});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,M({},n,w,{shouldForwardProp:MN(v,w,!0)})).apply(void 0,d)},v}};const Jye=Zye;var Qye=["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"],sA=Jye.bind();Qye.forEach(function(e){sA[e]=sA(e)});const e0e=sA;function t0e(e){return e==null||Object.keys(e).length===0}function n0e(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?i=>t(t0e(i)?n:i):t;return S.jsx(qye,{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 TW(e,t){return e0e(e,t)}const r0e=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},i0e=["values","unit","step"],o0e=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)=>M({},n,{[r.key]:r.val}),{})};function a0e(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Je(e,i0e),o=o0e(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,g){const v=a.indexOf(g);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]]:g)-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 g=a.indexOf(p);return g===0?s(a[1]):g===a.length-1?l(a[g]):u(p,a[a.indexOf(p)+1]).replace("@media","@media not all and")}return M({keys:a,values:o,up:s,down:l,between:u,only:f,not:d,unit:n},i)}const s0e={borderRadius:4},l0e=s0e;function Jm(e,t){return t?Zi(e,t,{clone:!1}):e}const v2={xs:0,sm:600,md:900,lg:1200,xl:1536},FN={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${v2[e]}px)`};function Ja(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||FN;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||FN;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||v2).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 RW(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function AW(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function u0e(e,...t){const n=RW(e),r=[n,...t].reduce((i,o)=>Zi(i,o),{});return AW(Object.keys(n),r)}function c0e(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 ck({values:e,breakpoints:t,base:n}){const r=n||c0e(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 jp(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 K_(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=jp(e,n)||r,t&&(i=t(i,r,e)),i}function xn(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=jp(l,r)||{};return Ja(a,s,d=>{let p=K_(u,i,d);return d===p&&typeof d=="string"&&(p=K_(u,i,`${t}${d==="default"?"":ze(d)}`,d)),n===!1?p:{[n]:p}})};return o.propTypes={},o.filterProps=[t],o}function f0e(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const d0e={m:"margin",p:"padding"},p0e={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},NN={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},h0e=f0e(e=>{if(e.length>2)if(NN[e])e=NN[e];else return[e];const[t,n]=e.split(""),r=d0e[t],i=p0e[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),y2=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],b2=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...y2,...b2];function my(e,t,n,r){var i;const o=(i=jp(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 _2(e){return my(e,"spacing",8)}function ph(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 g0e(e,t){return n=>e.reduce((r,i)=>(r[i]=ph(t,n),r),{})}function m0e(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=h0e(n),o=g0e(i,r),a=e[n];return Ja(e,a,o)}function $W(e,t){const n=_2(e.theme);return Object.keys(e).map(r=>m0e(e,t,r,n)).reduce(Jm,{})}function gr(e){return $W(e,y2)}gr.propTypes={};gr.filterProps=y2;function mr(e){return $W(e,b2)}mr.propTypes={};mr.filterProps=b2;function v0e(e=8){if(e.mui)return e;const t=_2({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 Nw(...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 Ts(e){return typeof e!="number"?e:`${e}px solid`}const y0e=xn({prop:"border",themeKey:"borders",transform:Ts}),b0e=xn({prop:"borderTop",themeKey:"borders",transform:Ts}),_0e=xn({prop:"borderRight",themeKey:"borders",transform:Ts}),x0e=xn({prop:"borderBottom",themeKey:"borders",transform:Ts}),w0e=xn({prop:"borderLeft",themeKey:"borders",transform:Ts}),S0e=xn({prop:"borderColor",themeKey:"palette"}),C0e=xn({prop:"borderTopColor",themeKey:"palette"}),E0e=xn({prop:"borderRightColor",themeKey:"palette"}),k0e=xn({prop:"borderBottomColor",themeKey:"palette"}),T0e=xn({prop:"borderLeftColor",themeKey:"palette"}),Bw=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=my(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:ph(t,r)});return Ja(e,e.borderRadius,n)}return null};Bw.propTypes={};Bw.filterProps=["borderRadius"];Nw(y0e,b0e,_0e,x0e,w0e,S0e,C0e,E0e,k0e,T0e,Bw);const jw=e=>{if(e.gap!==void 0&&e.gap!==null){const t=my(e.theme,"spacing",8),n=r=>({gap:ph(t,r)});return Ja(e,e.gap,n)}return null};jw.propTypes={};jw.filterProps=["gap"];const zw=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=my(e.theme,"spacing",8),n=r=>({columnGap:ph(t,r)});return Ja(e,e.columnGap,n)}return null};zw.propTypes={};zw.filterProps=["columnGap"];const Uw=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=my(e.theme,"spacing",8),n=r=>({rowGap:ph(t,r)});return Ja(e,e.rowGap,n)}return null};Uw.propTypes={};Uw.filterProps=["rowGap"];const R0e=xn({prop:"gridColumn"}),A0e=xn({prop:"gridRow"}),$0e=xn({prop:"gridAutoFlow"}),O0e=xn({prop:"gridAutoColumns"}),I0e=xn({prop:"gridAutoRows"}),D0e=xn({prop:"gridTemplateColumns"}),P0e=xn({prop:"gridTemplateRows"}),L0e=xn({prop:"gridTemplateAreas"}),M0e=xn({prop:"gridArea"});Nw(jw,zw,Uw,R0e,A0e,$0e,O0e,I0e,D0e,P0e,L0e,M0e);function _p(e,t){return t==="grey"?t:e}const F0e=xn({prop:"color",themeKey:"palette",transform:_p}),N0e=xn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:_p}),B0e=xn({prop:"backgroundColor",themeKey:"palette",transform:_p});Nw(F0e,N0e,B0e);function So(e){return e<=1&&e!==0?`${e*100}%`:e}const j0e=xn({prop:"width",transform:So}),x2=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])||v2[n]||So(n)}};return Ja(e,e.maxWidth,t)}return null};x2.filterProps=["maxWidth"];const z0e=xn({prop:"minWidth",transform:So}),U0e=xn({prop:"height",transform:So}),K0e=xn({prop:"maxHeight",transform:So}),W0e=xn({prop:"minHeight",transform:So});xn({prop:"size",cssProperty:"width",transform:So});xn({prop:"size",cssProperty:"height",transform:So});const V0e=xn({prop:"boxSizing"});Nw(j0e,x2,z0e,U0e,K0e,W0e,V0e);const H0e={border:{themeKey:"borders",transform:Ts},borderTop:{themeKey:"borders",transform:Ts},borderRight:{themeKey:"borders",transform:Ts},borderBottom:{themeKey:"borders",transform:Ts},borderLeft:{themeKey:"borders",transform:Ts},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Bw},color:{themeKey:"palette",transform:_p},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:_p},backgroundColor:{themeKey:"palette",transform:_p},p:{style:mr},pt:{style:mr},pr:{style:mr},pb:{style:mr},pl:{style:mr},px:{style:mr},py:{style:mr},padding:{style:mr},paddingTop:{style:mr},paddingRight:{style:mr},paddingBottom:{style:mr},paddingLeft:{style:mr},paddingX:{style:mr},paddingY:{style:mr},paddingInline:{style:mr},paddingInlineStart:{style:mr},paddingInlineEnd:{style:mr},paddingBlock:{style:mr},paddingBlockStart:{style:mr},paddingBlockEnd:{style:mr},m:{style:gr},mt:{style:gr},mr:{style:gr},mb:{style:gr},ml:{style:gr},mx:{style:gr},my:{style:gr},margin:{style:gr},marginTop:{style:gr},marginRight:{style:gr},marginBottom:{style:gr},marginLeft:{style:gr},marginX:{style:gr},marginY:{style:gr},marginInline:{style:gr},marginInlineStart:{style:gr},marginInlineEnd:{style:gr},marginBlock:{style:gr},marginBlockStart:{style:gr},marginBlockEnd:{style:gr},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:jw},rowGap:{style:Uw},columnGap:{style:zw},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:So},maxWidth:{style:x2},minWidth:{transform:So},height:{transform:So},maxHeight:{transform:So},minHeight:{transform:So},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Kw=H0e;function q0e(...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 G0e(e,t){return typeof e=="function"?e(t):e}function Y0e(){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=jp(i,u)||{};return d?d(a):Ja(a,r,v=>{let y=K_(p,f,v);return v===y&&typeof v=="string"&&(y=K_(p,f,`${n}${v==="default"?"":ze(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:Kw;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=RW(o.breakpoints),d=Object.keys(f);let p=f;return Object.keys(u).forEach(g=>{const v=G0e(u[g],o);if(v!=null)if(typeof v=="object")if(a[g])p=Jm(p,e(g,v,o,a));else{const y=Ja({theme:o},v,w=>({[g]:w}));q0e(y,v)?p[g]=t({sx:v,theme:o}):p=Jm(p,y)}else p=Jm(p,e(g,v,o,a))}),AW(d,p)}return Array.isArray(i)?i.map(s):s(i)}return t}const OW=Y0e();OW.filterProps=["sx"];const Ww=OW,X0e=["breakpoints","palette","spacing","shape"];function w2(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=Je(e,X0e),s=a0e(n),l=v0e(i);let u=Zi({breakpoints:s,direction:"ltr",components:{},palette:M({mode:"light"},r),spacing:l,shape:M({},l0e,o)},a);return u=t.reduce((f,d)=>Zi(f,d),u),u.unstable_sxConfig=M({},Kw,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return Ww({sx:d,theme:this})},u}function Z0e(e){return Object.keys(e).length===0}function Vw(e=null){const t=T.useContext(Fw);return!t||Z0e(t)?e:t}const J0e=w2();function Hw(e=J0e){return Vw(e)}function Q0e({styles:e,themeId:t,defaultTheme:n={}}){const r=Hw(n),i=typeof e=="function"?e(t&&r[t]||r):e;return S.jsx(n0e,{styles:i})}const e1e=["sx"],t1e=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Kw;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function S2(e){const{sx:t}=e,n=Je(e,e1e),{systemProps:r,otherProps:i}=t1e(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...a)=>{const s=t(...a);return Vc(s)?M({},r,s):r}:o=M({},r,t),M({},i,{sx:o})}function IW(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=IW(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function n1e(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=IW(e))&&(r&&(r+=" "),r+=t);return r}const r1e=["className","component"];function i1e(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,o=TW("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(Ww);return T.forwardRef(function(l,u){const f=Hw(n),d=S2(l),{className:p,component:g="div"}=d,v=Je(d,r1e);return S.jsx(o,M({as:g,ref:u,className:n1e(p,i?i(r):r),theme:t&&f[t]||f},v))})}const o1e=["variant"];function BN(e){return e.length===0}function DW(e){const{variant:t}=e,n=Je(e,o1e);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=BN(r)?e[i]:ze(e[i]):r+=`${BN(r)?i:ze(i)}${ze(e[i].toString())}`}),r}const a1e=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function s1e(e){return Object.keys(e).length===0}function l1e(e){return typeof e=="string"&&e.charCodeAt(0)>96}const u1e=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,c1e=(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=DW(i.props);r[o]=i.style}),r},f1e=(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[DW(l.props)])}),a};function Qm(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const d1e=w2(),p1e=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Qg({defaultTheme:e,theme:t,themeId:n}){return s1e(t)?e:t[n]||t}function h1e(e){return e?(t,n)=>n[e]:null}function g1e(e={}){const{themeId:t,defaultTheme:n=d1e,rootShouldForwardProp:r=Qm,slotShouldForwardProp:i=Qm}=e,o=a=>Ww(M({},a,{theme:Qg(M({},a,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{r0e(a,k=>k.filter(R=>!(R!=null&&R.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:f,skipSx:d,overridesResolver:p=h1e(p1e(u))}=s,g=Je(s,a1e),v=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,y=d||!1;let w,b=Qm;u==="Root"||u==="root"?b=r:u?b=i:l1e(a)&&(b=void 0);const x=TW(a,M({shouldForwardProp:b,label:w},g)),C=(k,...R)=>{const A=R?R.map(D=>typeof D=="function"&&D.__emotion_real!==D?W=>D(M({},W,{theme:Qg(M({},W,{defaultTheme:n,themeId:t}))})):D):[];let O=k;l&&p&&A.push(D=>{const W=Qg(M({},D,{defaultTheme:n,themeId:t})),ie=u1e(l,W);if(ie){const se={};return Object.entries(ie).forEach(([K,G])=>{se[K]=typeof G=="function"?G(M({},D,{theme:W})):G}),p(D,se)}return null}),l&&!v&&A.push(D=>{const W=Qg(M({},D,{defaultTheme:n,themeId:t}));return f1e(D,c1e(l,W),W,l)}),y||A.push(o);const z=A.length-R.length;if(Array.isArray(k)&&z>0){const D=new Array(z).fill("");O=[...k,...D],O.raw=[...k.raw,...D]}else typeof k=="function"&&k.__emotion_real!==k&&(O=D=>k(M({},D,{theme:Qg(M({},D,{defaultTheme:n,themeId:t}))})));const V=x(O,...A);return a.muiName&&(V.muiName=a.muiName),V};return x.withConfig&&(C.withConfig=x.withConfig),C}}function PW(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:s2(t.components[n].defaultProps,r)}function m1e({props:e,name:t,defaultTheme:n,themeId:r}){let i=Hw(n);return r&&(i=i[r]||i),PW({theme:i,name:t,props:e})}function C2(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function v1e(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 bf(e){if(e.type)return e;if(e.charAt(0)==="#")return bf(v1e(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Ku(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(Ku(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function qw(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 y1e(e){e=bf(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])),qw({type:s,values:l})}function jN(e){e=bf(e);let t=e.type==="hsl"||e.type==="hsla"?bf(y1e(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 b1e(e,t){const n=jN(e),r=jN(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Dt(e,t){return e=bf(e),t=C2(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,qw(e)}function zp(e,t){if(e=bf(e),t=C2(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 qw(e)}function Up(e,t){if(e=bf(e),t=C2(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 qw(e)}const _1e=T.createContext(null),LW=_1e;function MW(){return T.useContext(LW)}const x1e=typeof Symbol=="function"&&Symbol.for,w1e=x1e?Symbol.for("mui.nested"):"__THEME_NESTED__";function S1e(e,t){return typeof t=="function"?t(e):M({},e,t)}function C1e(e){const{children:t,theme:n}=e,r=MW(),i=T.useMemo(()=>{const o=r===null?n:S1e(r,n);return o!=null&&(o[w1e]=r!==null),o},[n,r]);return S.jsx(LW.Provider,{value:i,children:t})}const zN={};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?M({},t,{[e]:o}):o;return r?()=>a:a}return e?M({},t,{[e]:n}):M({},t,n)},[e,t,n,r])}function FW(e){const{children:t,theme:n,themeId:r}=e,i=Vw(zN),o=MW()||zN,a=UN(r,i,n),s=UN(r,o,n,!0);return S.jsx(C1e,{theme:s,children:S.jsx(Fw.Provider,{value:a,children:t})})}function E1e(e,t){return M({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const k1e=["mode","contrastThreshold","tonalOffset"],KN={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:Dv.white,default:Dv.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}},fk={text:{primary:Dv.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:Dv.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 WN(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=Up(e.main,i):t==="dark"&&(e.dark=zp(e.main,o)))}function T1e(e="light"){return e==="dark"?{main:kd[200],light:kd[50],dark:kd[400]}:{main:kd[700],light:kd[400],dark:kd[800]}}function R1e(e="light"){return e==="dark"?{main:Ed[200],light:Ed[50],dark:Ed[400]}:{main:Ed[500],light:Ed[300],dark:Ed[700]}}function A1e(e="light"){return e==="dark"?{main:Cd[500],light:Cd[300],dark:Cd[700]}:{main:Cd[700],light:Cd[400],dark:Cd[800]}}function $1e(e="light"){return e==="dark"?{main:Td[400],light:Td[300],dark:Td[700]}:{main:Td[700],light:Td[500],dark:Td[900]}}function O1e(e="light"){return e==="dark"?{main:Rd[400],light:Rd[300],dark:Rd[700]}:{main:Rd[800],light:Rd[500],dark:Rd[900]}}function I1e(e="light"){return e==="dark"?{main:Zg[400],light:Zg[300],dark:Zg[700]}:{main:"#ed6c02",light:Zg[500],dark:Zg[900]}}function D1e(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Je(e,k1e),o=e.primary||T1e(t),a=e.secondary||R1e(t),s=e.error||A1e(t),l=e.info||$1e(t),u=e.success||O1e(t),f=e.warning||I1e(t);function d(y){return b1e(y,fk.text.primary)>=n?fk.text.primary:KN.text.primary}const p=({color:y,name:w,mainShade:b=500,lightShade:x=300,darkShade:C=700})=>{if(y=M({},y),!y.main&&y[b]&&(y.main=y[b]),!y.hasOwnProperty("main"))throw new Error(Ku(11,w?` (${w})`:"",b));if(typeof y.main!="string")throw new Error(Ku(12,w?` (${w})`:"",JSON.stringify(y.main)));return WN(y,"light",x,r),WN(y,"dark",C,r),y.contrastText||(y.contrastText=d(y.main)),y},g={dark:fk,light:KN};return Zi(M({common:M({},Dv),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:dw,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},g[t]),i)}const P1e=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function L1e(e){return Math.round(e*1e5)/1e5}const VN={textTransform:"uppercase"},HN='"Roboto", "Helvetica", "Arial", sans-serif';function M1e(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=HN,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:f,pxToRem:d}=n,p=Je(n,P1e),g=i/14,v=d||(b=>`${b/u*g}rem`),y=(b,x,C,k,R)=>M({fontFamily:r,fontWeight:b,fontSize:v(x),lineHeight:C},r===HN?{letterSpacing:`${L1e(k/x)}em`}:{},R,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,VN),caption:y(a,12,1.66,.4),overline:y(a,12,2.66,1,VN)};return Zi(M({htmlFontSize:u,pxToRem:v,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},w),p,{clone:!1})}const F1e=.2,N1e=.14,B1e=.12;function Zn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${F1e})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${N1e})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${B1e})`].join(",")}const j1e=["none",Zn(0,2,1,-1,0,1,1,0,0,1,3,0),Zn(0,3,1,-2,0,2,2,0,0,1,5,0),Zn(0,3,3,-2,0,3,4,0,0,1,8,0),Zn(0,2,4,-1,0,4,5,0,0,1,10,0),Zn(0,3,5,-1,0,5,8,0,0,1,14,0),Zn(0,3,5,-1,0,6,10,0,0,1,18,0),Zn(0,4,5,-2,0,7,10,1,0,2,16,1),Zn(0,5,5,-3,0,8,10,1,0,3,14,2),Zn(0,5,6,-3,0,9,12,1,0,3,16,2),Zn(0,6,6,-3,0,10,14,1,0,4,18,3),Zn(0,6,7,-4,0,11,15,1,0,4,20,3),Zn(0,7,8,-4,0,12,17,2,0,5,22,4),Zn(0,7,8,-4,0,13,19,2,0,5,24,4),Zn(0,7,9,-4,0,14,21,2,0,5,26,4),Zn(0,8,9,-5,0,15,22,2,0,6,28,5),Zn(0,8,10,-5,0,16,24,2,0,6,30,5),Zn(0,8,11,-5,0,17,26,2,0,6,32,5),Zn(0,9,11,-5,0,18,28,2,0,7,34,6),Zn(0,9,12,-6,0,19,29,2,0,7,36,6),Zn(0,10,13,-6,0,20,31,3,0,8,38,7),Zn(0,10,13,-6,0,21,33,3,0,8,40,7),Zn(0,10,14,-6,0,22,35,3,0,8,42,7),Zn(0,11,14,-7,0,23,36,3,0,9,44,8),Zn(0,11,15,-7,0,24,38,3,0,9,46,8)],z1e=j1e,U1e=["duration","easing","delay"],K1e={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)"},NW={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function qN(e){return`${Math.round(e)}ms`}function W1e(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function V1e(e){const t=M({},K1e,e.easing),n=M({},NW,e.duration);return M({getAutoHeightDuration:W1e,create:(i=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=o;return Je(o,U1e),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof a=="string"?a:qN(a)} ${s} ${typeof l=="string"?l:qN(l)}`).join(",")}},e,{easing:t,duration:n})}const H1e={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},q1e=H1e,G1e=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function hh(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=Je(e,G1e);if(e.vars)throw new Error(Ku(18));const s=D1e(r),l=w2(e);let u=Zi(l,{mixins:E1e(l.breakpoints,n),palette:s,shadows:z1e.slice(),typography:M1e(s,o),transitions:V1e(i),zIndex:M({},q1e)});return u=Zi(u,a),u=t.reduce((f,d)=>Zi(f,d),u),u.unstable_sxConfig=M({},Kw,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return Ww({sx:d,theme:this})},u}const Y1e=hh(),Gw=Y1e;function Xn(){return Hw(Gw)}function bt({props:e,name:t}){return m1e({props:e,name:t,defaultTheme:Gw})}const Fo=e=>Qm(e)&&e!=="classes",E2=Qm,X1e=g1e({defaultTheme:Gw,rootShouldForwardProp:Fo}),Me=X1e,Z1e=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},GN=Z1e;function BW(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=BW(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ge(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=BW(e))&&(r&&(r+=" "),r+=t);return r}const J1e=Object.freeze(Object.defineProperty({__proto__:null,clsx:Ge,default:Ge},Symbol.toStringTag,{value:"Module"}));function Ms(e){return typeof e=="string"}function Om(e,t,n){return e===void 0||Ms(e)?t:M({},t,{ownerState:M({},t.ownerState,n)})}function Q1e(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 lA(e,t){return typeof e=="function"?e(t):e}function YN(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 ebe(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const g=Ge(i==null?void 0:i.className,r==null?void 0:r.className,o,n==null?void 0:n.className),v=M({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),y=M({},n,i,r);return g.length>0&&(y.className=g),Object.keys(v).length>0&&(y.style=v),{props:y,internalRef:void 0}}const a=Q1e(M({},i,r)),s=YN(r),l=YN(i),u=t(a),f=Ge(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=M({},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=M({},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 tbe=["elementType","externalSlotProps","ownerState"];function ja(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i}=e,o=Je(e,tbe),a=lA(r,i),{props:s,internalRef:l}=ebe(M({},o,{externalSlotProps:a})),u=An(l,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return Om(n,M({},s,{ref:u}),i)}function XN(e){return e.substring(2).toLowerCase()}function nbe(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function rbe(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=An(t.ref,s),d=Oi(v=>{const y=u.current;u.current=!1;const w=nr(s.current);if(!l.current||!s.current||"clientX"in v&&nbe(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)},g={ref:f};return o!==!1&&(g[o]=p(o)),T.useEffect(()=>{if(o!==!1){const v=XN(o),y=nr(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&&(g[r]=p(r)),T.useEffect(()=>{if(r!==!1){const v=XN(r),y=nr(s.current);return y.addEventListener(v,d),()=>{y.removeEventListener(v,d)}}},[d,r]),S.jsx(T.Fragment,{children:T.cloneElement(t,g)})}const ibe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function obe(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 abe(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 sbe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||abe(e))}function lbe(e){const t=[],n=[];return Array.from(e.querySelectorAll(ibe)).forEach((r,i)=>{const o=obe(r);o===-1||!sbe(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 ube(){return!0}function cbe(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=lbe,isEnabled:a=ube,open:s}=e,l=T.useRef(!1),u=T.useRef(null),f=T.useRef(null),d=T.useRef(null),p=T.useRef(null),g=T.useRef(!1),v=T.useRef(null),y=An(t.ref,v),w=T.useRef(null);T.useEffect(()=>{!s||!v.current||(g.current=!n)},[n,s]),T.useEffect(()=>{if(!s||!v.current)return;const C=nr(v.current);return v.current.contains(C.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),g.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 C=nr(v.current),k=O=>{const{current:z}=v;if(z!==null){if(!C.hasFocus()||r||!a()||l.current){l.current=!1;return}if(!z.contains(C.activeElement)){if(O&&p.current!==O.target||C.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!g.current)return;let W=[];if((C.activeElement===u.current||C.activeElement===f.current)&&(W=o(v.current)),W.length>0){var V,D;const ie=!!((V=w.current)!=null&&V.shiftKey&&((D=w.current)==null?void 0:D.key)==="Tab"),se=W[0],K=W[W.length-1];typeof se!="string"&&typeof K!="string"&&(ie?K.focus():se.focus())}else z.focus()}}},R=O=>{w.current=O,!(r||!a()||O.key!=="Tab")&&C.activeElement===v.current&&O.shiftKey&&(l.current=!0,f.current&&f.current.focus())};C.addEventListener("focusin",k),C.addEventListener("keydown",R,!0);const A=setInterval(()=>{C.activeElement&&C.activeElement.tagName==="BODY"&&k(null)},50);return()=>{clearInterval(A),C.removeEventListener("focusin",k),C.removeEventListener("keydown",R,!0)}},[n,r,i,a,s,o]);const b=C=>{d.current===null&&(d.current=C.relatedTarget),g.current=!0,p.current=C.target;const k=t.props.onFocus;k&&k(C)},x=C=>{d.current===null&&(d.current=C.relatedTarget),g.current=!0};return S.jsxs(T.Fragment,{children:[S.jsx("div",{tabIndex:s?0:-1,onFocus:x,ref:u,"data-testid":"sentinelStart"}),T.cloneElement(t,{ref:y,onFocus:b}),S.jsx("div",{tabIndex:s?0:-1,onFocus:x,ref:f,"data-testid":"sentinelEnd"})]})}var Ji="top",pa="bottom",ha="right",Qi="left",k2="auto",vy=[Ji,pa,ha,Qi],Kp="start",Fv="end",fbe="clippingParents",jW="viewport",em="popper",dbe="reference",ZN=vy.reduce(function(e,t){return e.concat([t+"-"+Kp,t+"-"+Fv])},[]),zW=[].concat(vy,[k2]).reduce(function(e,t){return e.concat([t,t+"-"+Kp,t+"-"+Fv])},[]),pbe="beforeRead",hbe="read",gbe="afterRead",mbe="beforeMain",vbe="main",ybe="afterMain",bbe="beforeWrite",_be="write",xbe="afterWrite",wbe=[pbe,hbe,gbe,mbe,vbe,ybe,bbe,_be,xbe];function Ns(e){return e?(e.nodeName||"").toLowerCase():null}function Io(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function _f(e){var t=Io(e).Element;return e instanceof t||e instanceof Element}function sa(e){var t=Io(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function T2(e){if(typeof ShadowRoot>"u")return!1;var t=Io(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Sbe(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)||!Ns(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 Cbe(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)||!Ns(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const Ebe={name:"applyStyles",enabled:!0,phase:"write",fn:Sbe,effect:Cbe,requires:["computeStyles"]};function Fs(e){return e.split("-")[0]}var af=Math.max,W_=Math.min,Wp=Math.round;function uA(){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 UW(){return!/^((?!chrome|android).)*safari/i.test(uA())}function Vp(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&&Wp(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Wp(r.height)/e.offsetHeight||1);var a=_f(e)?Io(e):window,s=a.visualViewport,l=!UW()&&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 R2(e){var t=Vp(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function KW(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&T2(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ll(e){return Io(e).getComputedStyle(e)}function kbe(e){return["table","td","th"].indexOf(Ns(e))>=0}function ic(e){return((_f(e)?e.ownerDocument:e.document)||window.document).documentElement}function Yw(e){return Ns(e)==="html"?e:e.assignedSlot||e.parentNode||(T2(e)?e.host:null)||ic(e)}function JN(e){return!sa(e)||Ll(e).position==="fixed"?null:e.offsetParent}function Tbe(e){var t=/firefox/i.test(uA()),n=/Trident/i.test(uA());if(n&&sa(e)){var r=Ll(e);if(r.position==="fixed")return null}var i=Yw(e);for(T2(i)&&(i=i.host);sa(i)&&["html","body"].indexOf(Ns(i))<0;){var o=Ll(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 yy(e){for(var t=Io(e),n=JN(e);n&&kbe(n)&&Ll(n).position==="static";)n=JN(n);return n&&(Ns(n)==="html"||Ns(n)==="body"&&Ll(n).position==="static")?t:n||Tbe(e)||t}function A2(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ev(e,t,n){return af(e,W_(t,n))}function Rbe(e,t,n){var r=ev(e,t,n);return r>n?n:r}function WW(){return{top:0,right:0,bottom:0,left:0}}function VW(e){return Object.assign({},WW(),e)}function HW(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Abe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,VW(typeof t!="number"?t:HW(t,vy))};function $be(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Fs(n.placement),l=A2(s),u=[Qi,ha].indexOf(s)>=0,f=u?"height":"width";if(!(!o||!a)){var d=Abe(i.padding,n),p=R2(o),g=l==="y"?Ji:Qi,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=yy(o),x=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,C=y/2-w/2,k=d[g],R=x-p[f]-d[v],A=x/2-p[f]/2+C,O=ev(k,A,R),z=l;n.modifiersData[r]=(t={},t[z]=O,t.centerOffset=O-A,t)}}function Obe(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)||KW(t.elements.popper,i)&&(t.elements.arrow=i))}const Ibe={name:"arrow",enabled:!0,phase:"main",fn:$be,effect:Obe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Hp(e){return e.split("-")[1]}var Dbe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Pbe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Wp(n*i)/i||0,y:Wp(r*i)/i||0}}function QN(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,g=p===void 0?0:p,v=a.y,y=v===void 0?0:v,w=typeof f=="function"?f({x:g,y}):{x:g,y};g=w.x,y=w.y;var b=a.hasOwnProperty("x"),x=a.hasOwnProperty("y"),C=Qi,k=Ji,R=window;if(u){var A=yy(n),O="clientHeight",z="clientWidth";if(A===Io(n)&&(A=ic(n),Ll(A).position!=="static"&&s==="absolute"&&(O="scrollHeight",z="scrollWidth")),A=A,i===Ji||(i===Qi||i===ha)&&o===Fv){k=pa;var V=d&&A===R&&R.visualViewport?R.visualViewport.height:A[O];y-=V-r.height,y*=l?1:-1}if(i===Qi||(i===Ji||i===pa)&&o===Fv){C=ha;var D=d&&A===R&&R.visualViewport?R.visualViewport.width:A[z];g-=D-r.width,g*=l?1:-1}}var W=Object.assign({position:s},u&&Dbe),ie=f===!0?Pbe({x:g,y},Io(n)):{x:g,y};if(g=ie.x,y=ie.y,l){var se;return Object.assign({},W,(se={},se[k]=x?"0":"",se[C]=b?"0":"",se.transform=(R.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",se))}return Object.assign({},W,(t={},t[k]=x?y+"px":"",t[C]=b?g+"px":"",t.transform="",t))}function Lbe(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:Fs(t.placement),variation:Hp(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,QN(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,QN(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 Mbe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Lbe,data:{}};var A1={passive:!0};function Fbe(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=Io(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(f){f.addEventListener("scroll",n.update,A1)}),s&&l.addEventListener("resize",n.update,A1),function(){o&&u.forEach(function(f){f.removeEventListener("scroll",n.update,A1)}),s&&l.removeEventListener("resize",n.update,A1)}}const Nbe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Fbe,data:{}};var Bbe={left:"right",right:"left",bottom:"top",top:"bottom"};function Kb(e){return e.replace(/left|right|bottom|top/g,function(t){return Bbe[t]})}var jbe={start:"end",end:"start"};function eB(e){return e.replace(/start|end/g,function(t){return jbe[t]})}function $2(e){var t=Io(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function O2(e){return Vp(ic(e)).left+$2(e).scrollLeft}function zbe(e,t){var n=Io(e),r=ic(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var u=UW();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+O2(e),y:l}}function Ube(e){var t,n=ic(e),r=$2(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=af(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=af(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+O2(e),l=-r.scrollTop;return Ll(i||n).direction==="rtl"&&(s+=af(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function I2(e){var t=Ll(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function qW(e){return["html","body","#document"].indexOf(Ns(e))>=0?e.ownerDocument.body:sa(e)&&I2(e)?e:qW(Yw(e))}function tv(e,t){var n;t===void 0&&(t=[]);var r=qW(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Io(r),a=i?[o].concat(o.visualViewport||[],I2(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(tv(Yw(a)))}function cA(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Kbe(e,t){var n=Vp(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 tB(e,t,n){return t===jW?cA(zbe(e,n)):_f(t)?Kbe(t,n):cA(Ube(ic(e)))}function Wbe(e){var t=tv(Yw(e)),n=["absolute","fixed"].indexOf(Ll(e).position)>=0,r=n&&sa(e)?yy(e):e;return _f(r)?t.filter(function(i){return _f(i)&&KW(i,r)&&Ns(i)!=="body"}):[]}function Vbe(e,t,n,r){var i=t==="clippingParents"?Wbe(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce(function(l,u){var f=tB(e,u,r);return l.top=af(f.top,l.top),l.right=W_(f.right,l.right),l.bottom=W_(f.bottom,l.bottom),l.left=af(f.left,l.left),l},tB(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 GW(e){var t=e.reference,n=e.element,r=e.placement,i=r?Fs(r):null,o=r?Hp(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(i){case Ji: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 Qi:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?A2(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(o){case Kp:l[u]=l[u]-(t[f]/2-n[f]/2);break;case Fv:l[u]=l[u]+(t[f]/2-n[f]/2);break}}return l}function Nv(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?fbe:s,u=n.rootBoundary,f=u===void 0?jW:u,d=n.elementContext,p=d===void 0?em:d,g=n.altBoundary,v=g===void 0?!1:g,y=n.padding,w=y===void 0?0:y,b=VW(typeof w!="number"?w:HW(w,vy)),x=p===em?dbe:em,C=e.rects.popper,k=e.elements[v?x:p],R=Vbe(_f(k)?k:k.contextElement||ic(e.elements.popper),l,f,a),A=Vp(e.elements.reference),O=GW({reference:A,element:C,strategy:"absolute",placement:i}),z=cA(Object.assign({},C,O)),V=p===em?z:A,D={top:R.top-V.top+b.top,bottom:V.bottom-R.bottom+b.bottom,left:R.left-V.left+b.left,right:V.right-R.right+b.right},W=e.modifiersData.offset;if(p===em&&W){var ie=W[i];Object.keys(D).forEach(function(se){var K=[ha,pa].indexOf(se)>=0?1:-1,G=[Ji,pa].indexOf(se)>=0?"y":"x";D[se]+=ie[G]*K})}return D}function Hbe(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?zW:l,f=Hp(r),d=f?s?ZN:ZN.filter(function(v){return Hp(v)===f}):vy,p=d.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=d);var g=p.reduce(function(v,y){return v[y]=Nv(e,{placement:y,boundary:i,rootBoundary:o,padding:a})[Fs(y)],v},{});return Object.keys(g).sort(function(v,y){return g[v]-g[y]})}function qbe(e){if(Fs(e)===k2)return[];var t=Kb(e);return[eB(e),t,eB(t)]}function Gbe(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,g=n.flipVariations,v=g===void 0?!0:g,y=n.allowedAutoPlacements,w=t.options.placement,b=Fs(w),x=b===w,C=l||(x||!v?[Kb(w)]:qbe(w)),k=[w].concat(C).reduce(function(ae,ue){return ae.concat(Fs(ue)===k2?Hbe(t,{placement:ue,boundary:f,rootBoundary:d,padding:u,flipVariations:v,allowedAutoPlacements:y}):ue)},[]),R=t.rects.reference,A=t.rects.popper,O=new Map,z=!0,V=k[0],D=0;D<k.length;D++){var W=k[D],ie=Fs(W),se=Hp(W)===Kp,K=[Ji,pa].indexOf(ie)>=0,G=K?"width":"height",Q=Nv(t,{placement:W,boundary:f,rootBoundary:d,altBoundary:p,padding:u}),le=K?se?ha:Qi:se?pa:Ji;R[G]>A[G]&&(le=Kb(le));var Z=Kb(le),ee=[];if(o&&ee.push(Q[ie]<=0),s&&ee.push(Q[le]<=0,Q[Z]<=0),ee.every(function(ae){return ae})){V=W,z=!1;break}O.set(W,ee)}if(z)for(var P=v?3:1,ge=function(ue){var ne=k.find(function(we){var Te=O.get(we);if(Te)return Te.slice(0,ue).every(function(Ee){return Ee})});if(ne)return V=ne,"break"},B=P;B>0;B--){var L=ge(B);if(L==="break")break}t.placement!==V&&(t.modifiersData[r]._skip=!0,t.placement=V,t.reset=!0)}}const Ybe={name:"flip",enabled:!0,phase:"main",fn:Gbe,requiresIfExists:["offset"],data:{_skip:!1}};function nB(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 rB(e){return[Ji,ha,pa,Qi].some(function(t){return e[t]>=0})}function Xbe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Nv(t,{elementContext:"reference"}),s=Nv(t,{altBoundary:!0}),l=nB(a,r),u=nB(s,i,o),f=rB(l),d=rB(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 Zbe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Xbe};function Jbe(e,t,n){var r=Fs(e),i=[Qi,Ji].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,[Qi,ha].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function Qbe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,a=zW.reduce(function(f,d){return f[d]=Jbe(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 e_e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Qbe};function t_e(e){var t=e.state,n=e.name;t.modifiersData[n]=GW({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const n_e={name:"popperOffsets",enabled:!0,phase:"read",fn:t_e,data:{}};function r_e(e){return e==="x"?"y":"x"}function i_e(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,g=p===void 0?!0:p,v=n.tetherOffset,y=v===void 0?0:v,w=Nv(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:f}),b=Fs(t.placement),x=Hp(t.placement),C=!x,k=A2(b),R=r_e(k),A=t.modifiersData.popperOffsets,O=t.rects.reference,z=t.rects.popper,V=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,D=typeof V=="number"?{mainAxis:V,altAxis:V}:Object.assign({mainAxis:0,altAxis:0},V),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,ie={x:0,y:0};if(A){if(o){var se,K=k==="y"?Ji:Qi,G=k==="y"?pa:ha,Q=k==="y"?"height":"width",le=A[k],Z=le+w[K],ee=le-w[G],P=g?-z[Q]/2:0,ge=x===Kp?O[Q]:z[Q],B=x===Kp?-z[Q]:-O[Q],L=t.elements.arrow,ae=g&&L?R2(L):{width:0,height:0},ue=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:WW(),ne=ue[K],we=ue[G],Te=ev(0,O[Q],ae[Q]),Ee=C?O[Q]/2-P-Te-ne-D.mainAxis:ge-Te-ne-D.mainAxis,Le=C?-O[Q]/2+P+Te+we+D.mainAxis:B+Te+we+D.mainAxis,Be=t.elements.arrow&&yy(t.elements.arrow),Ie=Be?k==="y"?Be.clientTop||0:Be.clientLeft||0:0,Pe=(se=W==null?void 0:W[k])!=null?se:0,je=le+Ee-Pe-Ie,Fe=le+Le-Pe,tt=ev(g?W_(Z,je):Z,le,g?af(ee,Fe):ee);A[k]=tt,ie[k]=tt-le}if(s){var Xe,Ye=k==="x"?Ji:Qi,st=k==="x"?pa:ha,he=A[R],Ae=R==="y"?"height":"width",Re=he+w[Ye],Ne=he-w[st],U=[Ji,Qi].indexOf(b)!==-1,H=(Xe=W==null?void 0:W[R])!=null?Xe:0,fe=U?Re:he-O[Ae]-z[Ae]-H+D.altAxis,Y=U?he+O[Ae]+z[Ae]-H-D.altAxis:Ne,X=g&&U?Rbe(fe,he,Y):ev(g?fe:Re,he,g?Y:Ne);A[R]=X,ie[R]=X-he}t.modifiersData[r]=ie}}const o_e={name:"preventOverflow",enabled:!0,phase:"main",fn:i_e,requiresIfExists:["offset"]};function a_e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function s_e(e){return e===Io(e)||!sa(e)?$2(e):a_e(e)}function l_e(e){var t=e.getBoundingClientRect(),n=Wp(t.width)/e.offsetWidth||1,r=Wp(t.height)/e.offsetHeight||1;return n!==1||r!==1}function u_e(e,t,n){n===void 0&&(n=!1);var r=sa(t),i=sa(t)&&l_e(t),o=ic(t),a=Vp(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ns(t)!=="body"||I2(o))&&(s=s_e(t)),sa(t)?(l=Vp(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=O2(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function c_e(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 f_e(e){var t=c_e(e);return wbe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function d_e(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function p_e(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 iB={placement:"bottom",modifiers:[],strategy:"absolute"};function oB(){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 h_e(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,o=i===void 0?iB:i;return function(s,l,u){u===void 0&&(u=o);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},iB,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],p=!1,g={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:_f(s)?tv(s):s.contextElement?tv(s.contextElement):[],popper:tv(l)};var C=f_e(p_e([].concat(r,f.options.modifiers)));return f.orderedModifiers=C.filter(function(k){return k.enabled}),v(),g.update()},forceUpdate:function(){if(!p){var b=f.elements,x=b.reference,C=b.popper;if(oB(x,C)){f.rects={reference:u_e(x,yy(C),f.options.strategy==="fixed"),popper:R2(C)},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 R=f.orderedModifiers[k],A=R.fn,O=R.options,z=O===void 0?{}:O,V=R.name;typeof A=="function"&&(f=A({state:f,options:z,name:V,instance:g})||f)}}}},update:d_e(function(){return new Promise(function(w){g.forceUpdate(),w(f)})}),destroy:function(){y(),p=!0}};if(!oB(s,l))return g;g.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,C=x===void 0?{}:x,k=w.effect;if(typeof k=="function"){var R=k({state:f,name:b,instance:g,options:C}),A=function(){};d.push(R||A)}})}function y(){d.forEach(function(w){return w()}),d=[]}return g}}var g_e=[Nbe,n_e,Mbe,Ebe,e_e,Ybe,o_e,Ibe,Zbe],m_e=h_e({defaultModifiers:g_e});function v_e(e){return typeof e=="function"?e():e}const y_e=T.forwardRef(function(t,n){const{children:r,container:i,disablePortal:o=!1}=t,[a,s]=T.useState(null),l=An(T.isValidElement(r)?r.ref:null,n);if(to(()=>{o||s(v_e(i)||document.body)},[i,o]),to(()=>{if(a&&!o)return z_(n,a),()=>{z_(n,null)}},[n,a,o]),o){if(T.isValidElement(r)){const u={ref:l};return T.cloneElement(r,u)}return S.jsx(T.Fragment,{children:r})}return S.jsx(T.Fragment,{children:a&&Af.createPortal(r,a)})}),YW=y_e;function b_e(e){return mt("MuiPopperUnstyled",e)}vt("MuiPopperUnstyled",["root"]);const __e=["anchorEl","children","component","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","slotProps","slots","TransitionProps"],x_e=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function w_e(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 fA(e){return typeof e=="function"?e():e}function S_e(e){return e.nodeType!==void 0}const C_e=()=>yt({root:["root"]},b_e,{}),E_e={},k_e=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:g,popperRef:v,slotProps:y={},slots:w={},TransitionProps:b}=t,x=Je(t,__e),C=T.useRef(null),k=An(C,n),R=T.useRef(null),A=An(R,v),O=T.useRef(A);to(()=>{O.current=A},[A]),T.useImperativeHandle(v,()=>R.current,[]);const z=w_e(p,s),[V,D]=T.useState(z),[W,ie]=T.useState(fA(i));T.useEffect(()=>{R.current&&R.current.forceUpdate()}),T.useEffect(()=>{i&&ie(fA(i))},[i]),to(()=>{if(!W||!f)return;const le=P=>{D(P.placement)};let Z=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:P})=>{le(P)}}];u!=null&&(Z=Z.concat(u)),g&&g.modifiers!=null&&(Z=Z.concat(g.modifiers));const ee=m_e(W,C.current,M({placement:z},g,{modifiers:Z}));return O.current(ee),()=>{ee.destroy(),O.current(null)}},[W,l,u,f,g,z]);const se={placement:V};b!==null&&(se.TransitionProps=b);const K=C_e(),G=(r=a??w.root)!=null?r:"div",Q=ja({elementType:G,externalSlotProps:y.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:k},ownerState:M({},t,d),className:K.root});return S.jsx(G,M({},Q,{children:typeof o=="function"?o(se):o}))}),T_e=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=E_e,popperRef:g,style:v,transition:y=!1,slotProps:w={},slots:b={}}=t,x=Je(t,x_e),[C,k]=T.useState(!0),R=()=>{k(!1)},A=()=>{k(!0)};if(!l&&!f&&(!y||C))return null;let O;if(o)O=o;else if(r){const D=fA(r);O=D&&S_e(D)?nr(D).body:nr(null).body}const z=!f&&l&&(!y||C)?"none":void 0,V=y?{in:f,onEnter:R,onExited:A}:void 0;return S.jsx(YW,{disablePortal:s,container:O,children:S.jsx(k_e,M({anchorEl:r,direction:a,disablePortal:s,modifiers:u,ref:n,open:y?!C:f,placement:d,popperOptions:p,popperRef:g,slotProps:w,slots:b},x,{style:M({position:"fixed",top:0,left:0,display:z},v),TransitionProps:V,children:i}))})}),R_e=T_e;function A_e(e){const t=nr(e);return t.body===e?da(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function nv(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function aB(e){return parseInt(da(e).getComputedStyle(e).paddingRight,10)||0}function $_e(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 sB(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,a=>{const s=o.indexOf(a)===-1,l=!$_e(a);s&&l&&nv(a,i)})}function dk(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function O_e(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(A_e(r)){const a=sW(nr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${aB(r)+a}px`;const s=nr(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${aB(l)+a}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=nr(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 I_e(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class D_e{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&&nv(t.modalRef,!1);const i=I_e(n);sB(n,t.mount,t.modalRef,i,!0);const o=dk(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=dk(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=O_e(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=dk(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&&nv(t.modalRef,n),sB(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&&nv(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function P_e(e){return mt("MuiModal",e)}vt("MuiModal",["root","hidden"]);const L_e=["children","classes","closeAfterTransition","component","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],M_e=e=>{const{open:t,exited:n,classes:r}=e;return yt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},P_e,r)};function F_e(e){return typeof e=="function"?e():e}function N_e(e){return e?e.props.hasOwnProperty("in"):!1}const B_e=new D_e,j_e=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:g=!1,disableRestoreFocus:v=!1,disableScrollLock:y=!1,hideBackdrop:w=!1,keepMounted:b=!1,manager:x=B_e,onBackdropClick:C,onClose:k,onKeyDown:R,open:A,onTransitionEnter:O,onTransitionExited:z,slotProps:V={},slots:D={}}=t,W=Je(t,L_e),[ie,se]=T.useState(!A),K=T.useRef({}),G=T.useRef(null),Q=T.useRef(null),le=An(Q,n),Z=N_e(o),ee=(r=t["aria-hidden"])!=null?r:!0,P=()=>nr(G.current),ge=()=>(K.current.modalRef=Q.current,K.current.mountNode=G.current,K.current),B=()=>{x.mount(ge(),{disableScrollLock:y}),Q.current&&(Q.current.scrollTop=0)},L=Oi(()=>{const Ye=F_e(u)||P().body;x.add(ge(),Ye),Q.current&&B()}),ae=T.useCallback(()=>x.isTopModal(ge()),[x]),ue=Oi(Ye=>{G.current=Ye,!(!Ye||!Q.current)&&(A&&ae()?B():nv(Q.current,ee))}),ne=T.useCallback(()=>{x.remove(ge(),ee)},[x,ee]);T.useEffect(()=>()=>{ne()},[ne]),T.useEffect(()=>{A?L():(!Z||!s)&&ne()},[A,ne,Z,s,L]);const we=M({},t,{classes:a,closeAfterTransition:s,disableAutoFocus:f,disableEnforceFocus:d,disableEscapeKeyDown:p,disablePortal:g,disableRestoreFocus:v,disableScrollLock:y,exited:ie,hideBackdrop:w,keepMounted:b}),Te=M_e(we),Ee=()=>{se(!1),O&&O()},Le=()=>{se(!0),z&&z(),s&&ne()},Be=Ye=>{Ye.target===Ye.currentTarget&&(C&&C(Ye),k&&k(Ye,"backdropClick"))},Ie=Ye=>{R&&R(Ye),!(Ye.key!=="Escape"||!ae())&&(p||(Ye.stopPropagation(),k&&k(Ye,"escapeKeyDown")))},Pe={};o.props.tabIndex===void 0&&(Pe.tabIndex="-1"),Z&&(Pe.onEnter=rA(Ee,o.props.onEnter),Pe.onExited=rA(Le,o.props.onExited));const je=(i=l??D.root)!=null?i:"div",Fe=ja({elementType:je,externalSlotProps:V.root,externalForwardedProps:W,additionalProps:{ref:le,role:"presentation",onKeyDown:Ie},className:Te.root,ownerState:we}),tt=D.backdrop,Xe=ja({elementType:tt,externalSlotProps:V.backdrop,additionalProps:{"aria-hidden":!0,onClick:Be,open:A},className:Te.backdrop,ownerState:we});return!b&&!A&&(!Z||ie)?null:S.jsx(YW,{ref:ue,container:u,disablePortal:g,children:S.jsxs(je,M({},Fe,{children:[!w&&tt?S.jsx(tt,M({},Xe)):null,S.jsx(cbe,{disableEnforceFocus:d,disableAutoFocus:f,disableRestoreFocus:v,isEnabled:ae,open:A,children:T.cloneElement(o,Pe)})]}))})}),z_e=j_e,U_e=2;function XW(e,t){return e-t}function tm(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function lB(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 $1(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 uB(e,t,n){return(e-t)*100/(n-t)}function K_e(e,t,n){return(n-t)*e+t}function W_e(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 V_e(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(W_e(t)))}function cB({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(XW)}function O1({sliderRef:e,activeIndex:t,setActive:n}){var r,i;const o=nr(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 H_e={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}%`})}},q_e=e=>e;let I1;function pk(){return I1===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?I1=CSS.supports("touch-action","none"):I1=!0),I1}function G_e(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:g,scale:v=q_e,step:y=1,tabIndex:w,value:b}=e,x=T.useRef(),[C,k]=T.useState(-1),[R,A]=T.useState(-1),[O,z]=T.useState(!1),V=T.useRef(0),[D,W]=Np({controlled:b,default:n??l,name:"Slider"}),ie=f&&((U,H,fe)=>{const Y=U.nativeEvent||U,X=new Y.constructor(Y.type,Y);Object.defineProperty(X,"target",{writable:!0,value:{value:H,name:u}}),f(X,H,fe)}),se=Array.isArray(D);let K=se?D.slice().sort(XW):[D];K=K.map(U=>tm(U,l,s));const G=a===!0&&y!==null?[...Array(Math.floor((s-l)/y)+1)].map((U,H)=>({value:l+y*H})):a||[],Q=G.map(U=>U.value),{isFocusVisibleRef:le,onBlur:Z,onFocus:ee,ref:P}=hy(),[ge,B]=T.useState(-1),L=T.useRef(),ae=An(P,L),ue=An(g,ae),ne=U=>H=>{var fe;const Y=Number(H.currentTarget.getAttribute("data-index"));ee(H),le.current===!0&&B(Y),A(Y),U==null||(fe=U.onFocus)==null||fe.call(U,H)},we=U=>H=>{var fe;Z(H),le.current===!1&&B(-1),A(-1),U==null||(fe=U.onBlur)==null||fe.call(U,H)};to(()=>{if(r&&L.current.contains(document.activeElement)){var U;(U=document.activeElement)==null||U.blur()}},[r]),r&&C!==-1&&k(-1),r&&ge!==-1&&B(-1);const Te=U=>H=>{var fe;(fe=U.onChange)==null||fe.call(U,H);const Y=Number(H.currentTarget.getAttribute("data-index")),X=K[Y],oe=Q.indexOf(X);let xe=H.target.valueAsNumber;if(G&&y==null&&(xe=xe<X?Q[oe-1]:Q[oe+1]),xe=tm(xe,l,s),G&&y==null){const Ce=Q.indexOf(K[Y]);xe=xe<K[Y]?Q[Ce-1]:Q[Ce+1]}if(se){i&&(xe=tm(xe,K[Y-1]||-1/0,K[Y+1]||1/0));const Ce=xe;xe=cB({values:K,newValue:xe,index:Y});let _e=Y;i||(_e=xe.indexOf(Ce)),O1({sliderRef:L,activeIndex:_e})}W(xe),B(Y),ie&&ie(H,xe,Y),d&&d(H,xe)},Ee=T.useRef();let Le=p;o&&p==="horizontal"&&(Le+="-reverse");const Be=({finger:U,move:H=!1})=>{const{current:fe}=L,{width:Y,height:X,bottom:oe,left:xe}=fe.getBoundingClientRect();let Ce;Le.indexOf("vertical")===0?Ce=(oe-U.y)/X:Ce=(U.x-xe)/Y,Le.indexOf("-reverse")!==-1&&(Ce=1-Ce);let _e;if(_e=K_e(Ce,l,s),y)_e=V_e(_e,y,l);else{const rt=lB(Q,_e);_e=Q[rt]}_e=tm(_e,l,s);let nt=0;if(se){H?nt=Ee.current:nt=lB(K,_e),i&&(_e=tm(_e,K[nt-1]||-1/0,K[nt+1]||1/0));const rt=_e;_e=cB({values:K,newValue:_e,index:nt}),i&&H||(nt=_e.indexOf(rt),Ee.current=nt)}return{newValue:_e,activeIndex:nt}},Ie=Oi(U=>{const H=$1(U,x);if(!H)return;if(V.current+=1,U.type==="mousemove"&&U.buttons===0){Pe(U);return}const{newValue:fe,activeIndex:Y}=Be({finger:H,move:!0});O1({sliderRef:L,activeIndex:Y,setActive:k}),W(fe),!O&&V.current>U_e&&z(!0),ie&&fe!==D&&ie(U,fe,Y)}),Pe=Oi(U=>{const H=$1(U,x);if(z(!1),!H)return;const{newValue:fe}=Be({finger:H,move:!0});k(-1),U.type==="touchend"&&A(-1),d&&d(U,fe),x.current=void 0,Fe()}),je=Oi(U=>{if(r)return;pk()||U.preventDefault();const H=U.changedTouches[0];H!=null&&(x.current=H.identifier);const fe=$1(U,x);if(fe!==!1){const{newValue:X,activeIndex:oe}=Be({finger:fe});O1({sliderRef:L,activeIndex:oe,setActive:k}),W(X),ie&&ie(U,X,oe)}V.current=0;const Y=nr(L.current);Y.addEventListener("touchmove",Ie),Y.addEventListener("touchend",Pe)}),Fe=T.useCallback(()=>{const U=nr(L.current);U.removeEventListener("mousemove",Ie),U.removeEventListener("mouseup",Pe),U.removeEventListener("touchmove",Ie),U.removeEventListener("touchend",Pe)},[Pe,Ie]);T.useEffect(()=>{const{current:U}=L;return U.addEventListener("touchstart",je,{passive:pk()}),()=>{U.removeEventListener("touchstart",je,{passive:pk()}),Fe()}},[Fe,je]),T.useEffect(()=>{r&&Fe()},[r,Fe]);const tt=U=>H=>{var fe;if((fe=U.onMouseDown)==null||fe.call(U,H),r||H.defaultPrevented||H.button!==0)return;H.preventDefault();const Y=$1(H,x);if(Y!==!1){const{newValue:oe,activeIndex:xe}=Be({finger:Y});O1({sliderRef:L,activeIndex:xe,setActive:k}),W(oe),ie&&ie(H,oe,xe)}V.current=0;const X=nr(L.current);X.addEventListener("mousemove",Ie),X.addEventListener("mouseup",Pe)},Xe=uB(se?K[0]:l,l,s),Ye=uB(K[K.length-1],l,s)-Xe,st=(U={})=>{const H={onMouseDown:tt(U||{})},fe=M({},U,H);return M({ref:ue},fe)},he=U=>H=>{var fe;(fe=U.onMouseOver)==null||fe.call(U,H);const Y=Number(H.currentTarget.getAttribute("data-index"));A(Y)},Ae=U=>H=>{var fe;(fe=U.onMouseLeave)==null||fe.call(U,H),A(-1)};return{active:C,axis:Le,axisProps:H_e,dragging:O,focusedThumbIndex:ge,getHiddenInputProps:(U={})=>{var H;const fe={onChange:Te(U||{}),onFocus:ne(U||{}),onBlur:we(U||{})},Y=M({},U,fe);return M({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:M({},Yve,{direction:o?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:st,getThumbProps:(U={})=>{const H={onMouseOver:he(U||{}),onMouseLeave:Ae(U||{})};return M({},U,H)},marks:G,open:R,range:se,trackLeap:Ye,trackOffset:Xe,values:K}}const Y_e=["onChange","maxRows","minRows","style","value"];function D1(e,t){return parseInt(e[t],10)||0}const X_e={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function fB(e){return e==null||Object.keys(e).length===0}const Z_e=T.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:o=1,style:a,value:s}=t,l=Je(t,Y_e),{current:u}=T.useRef(s!=null),f=T.useRef(null),d=An(n,f),p=T.useRef(null),g=T.useRef(0),[v,y]=T.useState({}),w=T.useCallback(()=>{const R=f.current,O=da(R).getComputedStyle(R);if(O.width==="0px")return{};const z=p.current;z.style.width=O.width,z.value=R.value||t.placeholder||"x",z.value.slice(-1)===`
|
|
267
|
+
`&&(z.value+=" ");const V=O["box-sizing"],D=D1(O,"padding-bottom")+D1(O,"padding-top"),W=D1(O,"border-bottom-width")+D1(O,"border-top-width"),ie=z.scrollHeight;z.value="x";const se=z.scrollHeight;let K=ie;o&&(K=Math.max(Number(o)*se,K)),i&&(K=Math.min(Number(i)*se,K)),K=Math.max(K,se);const G=K+(V==="border-box"?D+W:0),Q=Math.abs(K-ie)<=1;return{outerHeightStyle:G,overflow:Q}},[i,o,t.placeholder]),b=(R,A)=>{const{outerHeightStyle:O,overflow:z}=A;return g.current<20&&(O>0&&Math.abs((R.outerHeightStyle||0)-O)>1||R.overflow!==z)?(g.current+=1,{overflow:z,outerHeightStyle:O}):R},x=T.useCallback(()=>{const R=w();fB(R)||y(A=>b(A,R))},[w]),C=()=>{const R=w();fB(R)||Af.flushSync(()=>{y(A=>b(A,R))})};T.useEffect(()=>{const R=yf(()=>{g.current=0,f.current&&C()}),A=da(f.current);A.addEventListener("resize",R);let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(R),O.observe(f.current)),()=>{R.clear(),A.removeEventListener("resize",R),O&&O.disconnect()}}),to(()=>{x()}),T.useEffect(()=>{g.current=0},[s]);const k=R=>{g.current=0,u||x(),r&&r(R)};return S.jsxs(T.Fragment,{children:[S.jsx("textarea",M({value:s,onChange:k,ref:d,rows:o,style:M({height:v.outerHeightStyle,overflow:v.overflow?"hidden":null},a)},l)),S.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:M({},X_e.shadow,a,{padding:0})})]})}),J_e=Z_e;function Q_e(e){return mt("MuiSvgIcon",e)}vt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const exe=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],txe=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${ze(t)}`,`fontSize${ze(n)}`]};return yt(i,Q_e,r)},nxe=Me("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ze(n.color)}`],t[`fontSize${ze(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,u,f,d,p,g,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=(g=(e.vars||e).palette)==null||(v=g[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]}}),ZW=T.forwardRef(function(t,n){const r=bt({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,g=Je(r,exe),v=M({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:p}),y={};f||(y.viewBox=p);const w=txe(v);return S.jsxs(nxe,M({as:s,className:Ge(w.root,o),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},y,g,{ownerState:v,children:[i,d?S.jsx("title",{children:d}):null]}))});ZW.muiName="SvgIcon";const V_=ZW;function es(e,t){function n(r,i){return S.jsx(V_,M({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=V_.muiName,T.memo(T.forwardRef(n))}const rxe={configure:e=>{l2.configure(e)}},ixe=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ze,createChainedFunction:rA,createSvgIcon:es,debounce:yf,deprecatedPropType:Fve,isMuiElement:yp,ownerDocument:nr,ownerWindow:da,requirePropFactory:Nve,setRef:z_,unstable_ClassNameGenerator:rxe,unstable_useEnhancedEffect:to,unstable_useId:py,unsupportedProp:zve,useControlled:Np,useEventCallback:Oi,useForkRef:An,useIsFocusVisible:hy},Symbol.toStringTag,{value:"Module"}));function H_(e,t){return H_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},H_(e,t)}function D2(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,H_(e,t)}const dB={disabled:!1},q_=gt.createContext(null);var oxe=function(t){return t.scrollTop},Im="unmounted",Nc="exited",Bc="entering",jd="entered",dA="exiting",zl=function(e){D2(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=Nc,o.appearStatus=Bc):l=jd:r.unmountOnExit||r.mountOnEnter?l=Im:l=Nc,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===Im?{status:Nc}: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!==Bc&&a!==jd&&(o=Bc):(a===Bc||a===jd)&&(o=dA)}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===Bc){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Am.findDOMNode(this);a&&oxe(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Nc&&this.setState({status:Im})},n.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[Am.findDOMNode(this),s],u=l[0],f=l[1],d=this.getTimeouts(),p=s?d.appear:d.enter;if(!i&&!a||dB.disabled){this.safeSetState({status:jd},function(){o.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:Bc},function(){o.props.onEntering(u,f),o.onTransitionEnd(p,function(){o.safeSetState({status:jd},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:Am.findDOMNode(this);if(!o||dB.disabled){this.safeSetState({status:Nc},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:dA},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:Nc},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:Am.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===Im)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=Je(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return gt.createElement(q_.Provider,{value:null},typeof a=="function"?a(i,s):gt.cloneElement(gt.Children.only(a),s))},t}(gt.Component);zl.contextType=q_;zl.propTypes={};function $d(){}zl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:$d,onEntering:$d,onEntered:$d,onExit:$d,onExiting:$d,onExited:$d};zl.UNMOUNTED=Im;zl.EXITED=Nc;zl.ENTERING=Bc;zl.ENTERED=jd;zl.EXITING=dA;const Xw=zl;function G_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P2(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 axe(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 ef(e,t,n){return n[t]!=null?n[t]:e.props[t]}function sxe(e,t){return P2(e.children,function(n){return T.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:ef(n,"appear",e),enter:ef(n,"enter",e),exit:ef(n,"exit",e)})})}function lxe(e,t,n){var r=P2(e.children),i=axe(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:ef(a,"exit",e),enter:ef(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:ef(a,"exit",e),enter:ef(a,"enter",e)}))}}),i}var uxe=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},cxe={component:"div",childFactory:function(t){return t}},L2=function(e){D2(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var a=o.handleExited.bind(G_(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?sxe(i,s):lxe(i,a,s),firstRender:!1}},n.handleExited=function(i,o){var a=P2(this.props.children);i.key in a||(i.props.onExited&&i.props.onExited(o),this.mounted&&this.setState(function(s){var l=M({},s.children);return delete l[i.key],{children:l}}))},n.render=function(){var i=this.props,o=i.component,a=i.childFactory,s=Je(i,["component","childFactory"]),l=this.state.contextValue,u=uxe(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,o===null?gt.createElement(q_.Provider,{value:l},u):gt.createElement(q_.Provider,{value:l},gt.createElement(o,s,u))},t}(gt.Component);L2.propTypes={};L2.defaultProps=cxe;const fxe=L2,M2=e=>e.scrollTop;function Wu(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 dxe(e){return mt("MuiCollapse",e)}vt("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const pxe=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],hxe=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return yt(r,dxe,n)},gxe=Me("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>M({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&M({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),mxe=Me("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>M({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),vxe=Me("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>M({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),JW=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:a,collapsedSize:s="0px",component:l,easing:u,in:f,onEnter:d,onEntered:p,onEntering:g,onExit:v,onExited:y,onExiting:w,orientation:b="vertical",style:x,timeout:C=NW.standard,TransitionComponent:k=Xw}=r,R=Je(r,pxe),A=M({},r,{orientation:b,collapsedSize:s}),O=hxe(A),z=Xn(),V=T.useRef(),D=T.useRef(null),W=T.useRef(),ie=typeof s=="number"?`${s}px`:s,se=b==="horizontal",K=se?"width":"height";T.useEffect(()=>()=>{clearTimeout(V.current)},[]);const G=T.useRef(null),Q=An(n,G),le=ne=>we=>{if(ne){const Te=G.current;we===void 0?ne(Te):ne(Te,we)}},Z=()=>D.current?D.current[se?"clientWidth":"clientHeight"]:0,ee=le((ne,we)=>{D.current&&se&&(D.current.style.position="absolute"),ne.style[K]=ie,d&&d(ne,we)}),P=le((ne,we)=>{const Te=Z();D.current&&se&&(D.current.style.position="");const{duration:Ee,easing:Le}=Wu({style:x,timeout:C,easing:u},{mode:"enter"});if(C==="auto"){const Be=z.transitions.getAutoHeightDuration(Te);ne.style.transitionDuration=`${Be}ms`,W.current=Be}else ne.style.transitionDuration=typeof Ee=="string"?Ee:`${Ee}ms`;ne.style[K]=`${Te}px`,ne.style.transitionTimingFunction=Le,g&&g(ne,we)}),ge=le((ne,we)=>{ne.style[K]="auto",p&&p(ne,we)}),B=le(ne=>{ne.style[K]=`${Z()}px`,v&&v(ne)}),L=le(y),ae=le(ne=>{const we=Z(),{duration:Te,easing:Ee}=Wu({style:x,timeout:C,easing:u},{mode:"exit"});if(C==="auto"){const Le=z.transitions.getAutoHeightDuration(we);ne.style.transitionDuration=`${Le}ms`,W.current=Le}else ne.style.transitionDuration=typeof Te=="string"?Te:`${Te}ms`;ne.style[K]=ie,ne.style.transitionTimingFunction=Ee,w&&w(ne)}),ue=ne=>{C==="auto"&&(V.current=setTimeout(ne,W.current||0)),i&&i(G.current,ne)};return S.jsx(k,M({in:f,onEnter:ee,onEntered:ge,onEntering:P,onExit:B,onExited:L,onExiting:ae,addEndListener:ue,nodeRef:G,timeout:C==="auto"?null:C},R,{children:(ne,we)=>S.jsx(gxe,M({as:l,className:Ge(O.root,a,{entered:O.entered,exited:!f&&ie==="0px"&&O.hidden}[ne]),style:M({[se?"minWidth":"minHeight"]:ie},x),ownerState:M({},A,{state:ne}),ref:Q},we,{children:S.jsx(mxe,{ownerState:M({},A,{state:ne}),className:O.wrapper,ref:D,children:S.jsx(vxe,{ownerState:M({},A,{state:ne}),className:O.wrapperInner,children:o})})}))}))});JW.muiSupportAuto=!0;const yxe=JW;function bxe(e){return mt("MuiPaper",e)}vt("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 _xe=["className","component","elevation","square","variant"],xxe=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return yt(o,bxe,i)},wxe=Me("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 M({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"&&M({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Dt("#fff",GN(t.elevation))}, ${Dt("#fff",GN(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Sxe=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,u=Je(r,_xe),f=M({},r,{component:o,elevation:a,square:s,variant:l}),d=xxe(f);return S.jsx(wxe,M({as:o,ownerState:f,className:Ge(d.root,i),ref:n},u))}),oc=Sxe;function Cxe(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=Ge(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},v=Ge(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]),S.jsx("span",{className:p,style:g,children:S.jsx("span",{className:v})})}const Exe=vt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Jo=Exe,kxe=["center","classes","className"];let Zw=e=>e,pB,hB,gB,mB;const pA=550,Txe=80,Rxe=dh(pB||(pB=Zw`
|
|
268
|
+
0% {
|
|
269
|
+
transform: scale(0);
|
|
270
|
+
opacity: 0.1;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
100% {
|
|
274
|
+
transform: scale(1);
|
|
275
|
+
opacity: 0.3;
|
|
276
|
+
}
|
|
277
|
+
`)),Axe=dh(hB||(hB=Zw`
|
|
278
|
+
0% {
|
|
279
|
+
opacity: 1;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
100% {
|
|
283
|
+
opacity: 0;
|
|
284
|
+
}
|
|
285
|
+
`)),$xe=dh(gB||(gB=Zw`
|
|
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
|
+
`)),Oxe=Me("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Ixe=Me(Cxe,{name:"MuiTouchRipple",slot:"Ripple"})(mB||(mB=Zw`
|
|
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,Rxe,pA,({theme:e})=>e.transitions.easing.easeInOut,Jo.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Jo.child,Jo.childLeaving,Axe,pA,({theme:e})=>e.transitions.easing.easeInOut,Jo.childPulsate,$xe,({theme:e})=>e.transitions.easing.easeInOut),Dxe=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a}=r,s=Je(r,kxe),[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),g=T.useRef(null),v=T.useRef(null),y=T.useRef(null);T.useEffect(()=>()=>{clearTimeout(g.current)},[]);const w=T.useCallback(k=>{const{pulsate:R,rippleX:A,rippleY:O,rippleSize:z,cb:V}=k;u(D=>[...D,S.jsx(Ixe,{classes:{ripple:Ge(o.ripple,Jo.ripple),rippleVisible:Ge(o.rippleVisible,Jo.rippleVisible),ripplePulsate:Ge(o.ripplePulsate,Jo.ripplePulsate),child:Ge(o.child,Jo.child),childLeaving:Ge(o.childLeaving,Jo.childLeaving),childPulsate:Ge(o.childPulsate,Jo.childPulsate)},timeout:pA,pulsate:R,rippleX:A,rippleY:O,rippleSize:z},f.current)]),f.current+=1,d.current=V},[o]),b=T.useCallback((k={},R={},A=()=>{})=>{const{pulsate:O=!1,center:z=i||R.pulsate,fakeElement:V=!1}=R;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=V?null:y.current,W=D?D.getBoundingClientRect():{width:0,height:0,left:0,top:0};let ie,se,K;if(z||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)ie=Math.round(W.width/2),se=Math.round(W.height/2);else{const{clientX:G,clientY:Q}=k.touches&&k.touches.length>0?k.touches[0]:k;ie=Math.round(G-W.left),se=Math.round(Q-W.top)}if(z)K=Math.sqrt((2*W.width**2+W.height**2)/3),K%2===0&&(K+=1);else{const G=Math.max(Math.abs((D?D.clientWidth:0)-ie),ie)*2+2,Q=Math.max(Math.abs((D?D.clientHeight:0)-se),se)*2+2;K=Math.sqrt(G**2+Q**2)}k!=null&&k.touches?v.current===null&&(v.current=()=>{w({pulsate:O,rippleX:ie,rippleY:se,rippleSize:K,cb:A})},g.current=setTimeout(()=>{v.current&&(v.current(),v.current=null)},Txe)):w({pulsate:O,rippleX:ie,rippleY:se,rippleSize:K,cb:A})},[i,w]),x=T.useCallback(()=>{b({},{pulsate:!0})},[b]),C=T.useCallback((k,R)=>{if(clearTimeout(g.current),(k==null?void 0:k.type)==="touchend"&&v.current){v.current(),v.current=null,g.current=setTimeout(()=>{C(k,R)});return}v.current=null,u(A=>A.length>0?A.slice(1):A),d.current=R},[]);return T.useImperativeHandle(n,()=>({pulsate:x,start:b,stop:C}),[x,b,C]),S.jsx(Oxe,M({className:Ge(Jo.root,o.root,a),ref:y},s,{children:S.jsx(fxe,{component:null,exit:!0,children:l})}))}),Pxe=Dxe;function Lxe(e){return mt("MuiButtonBase",e)}const Mxe=vt("MuiButtonBase",["root","disabled","focusVisible"]),Fxe=Mxe,Nxe=["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"],Bxe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=yt({root:["root",t&&"disabled",n&&"focusVisible"]},Lxe,i);return n&&r&&(a.root+=` ${r}`),a},jxe=Me("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"},[`&.${Fxe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),zxe=T.forwardRef(function(t,n){const r=bt({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:g="a",onBlur:v,onClick:y,onContextMenu:w,onDragLeave:b,onFocus:x,onFocusVisible:C,onKeyDown:k,onKeyUp:R,onMouseDown:A,onMouseLeave:O,onMouseUp:z,onTouchEnd:V,onTouchMove:D,onTouchStart:W,tabIndex:ie=0,TouchRippleProps:se,touchRippleRef:K,type:G}=r,Q=Je(r,Nxe),le=T.useRef(null),Z=T.useRef(null),ee=An(Z,K),{isFocusVisibleRef:P,onFocus:ge,onBlur:B,ref:L}=hy(),[ae,ue]=T.useState(!1);u&&ae&&ue(!1),T.useImperativeHandle(i,()=>({focusVisible:()=>{ue(!0),le.current.focus()}}),[]);const[ne,we]=T.useState(!1);T.useEffect(()=>{we(!0)},[]);const Te=ne&&!f&&!u;T.useEffect(()=>{ae&&p&&!f&&ne&&Z.current.pulsate()},[f,p,ae,ne]);function Ee(oe,xe,Ce=d){return Oi(_e=>(xe&&xe(_e),!Ce&&Z.current&&Z.current[oe](_e),!0))}const Le=Ee("start",A),Be=Ee("stop",w),Ie=Ee("stop",b),Pe=Ee("stop",z),je=Ee("stop",oe=>{ae&&oe.preventDefault(),O&&O(oe)}),Fe=Ee("start",W),tt=Ee("stop",V),Xe=Ee("stop",D),Ye=Ee("stop",oe=>{B(oe),P.current===!1&&ue(!1),v&&v(oe)},!1),st=Oi(oe=>{le.current||(le.current=oe.currentTarget),ge(oe),P.current===!0&&(ue(!0),C&&C(oe)),x&&x(oe)}),he=()=>{const oe=le.current;return l&&l!=="button"&&!(oe.tagName==="A"&&oe.href)},Ae=T.useRef(!1),Re=Oi(oe=>{p&&!Ae.current&&ae&&Z.current&&oe.key===" "&&(Ae.current=!0,Z.current.stop(oe,()=>{Z.current.start(oe)})),oe.target===oe.currentTarget&&he()&&oe.key===" "&&oe.preventDefault(),k&&k(oe),oe.target===oe.currentTarget&&he()&&oe.key==="Enter"&&!u&&(oe.preventDefault(),y&&y(oe))}),Ne=Oi(oe=>{p&&oe.key===" "&&Z.current&&ae&&!oe.defaultPrevented&&(Ae.current=!1,Z.current.stop(oe,()=>{Z.current.pulsate(oe)})),R&&R(oe),y&&oe.target===oe.currentTarget&&he()&&oe.key===" "&&!oe.defaultPrevented&&y(oe)});let U=l;U==="button"&&(Q.href||Q.to)&&(U=g);const H={};U==="button"?(H.type=G===void 0?"button":G,H.disabled=u):(!Q.href&&!Q.to&&(H.role="button"),u&&(H["aria-disabled"]=u));const fe=An(n,L,le),Y=M({},r,{centerRipple:o,component:l,disabled:u,disableRipple:f,disableTouchRipple:d,focusRipple:p,tabIndex:ie,focusVisible:ae}),X=Bxe(Y);return S.jsxs(jxe,M({as:U,className:Ge(X.root,s),ownerState:Y,onBlur:Ye,onClick:y,onContextMenu:Be,onFocus:st,onKeyDown:Re,onKeyUp:Ne,onMouseDown:Le,onMouseLeave:je,onMouseUp:Pe,onDragLeave:Ie,onTouchEnd:tt,onTouchMove:Xe,onTouchStart:Fe,ref:fe,tabIndex:u?-1:ie,type:G},H,Q,{children:[a,Te?S.jsx(Pxe,M({ref:ee,center:o},se)):null]}))}),Bs=zxe;function Uxe(e){return mt("MuiAlert",e)}const Kxe=vt("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),vB=Kxe;function Wxe(e){return mt("MuiIconButton",e)}const Vxe=vt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Hxe=Vxe,qxe=["edge","children","className","color","disabled","disableFocusRipple","size"],Gxe=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${ze(r)}`,i&&`edge${ze(i)}`,`size${ze(o)}`]};return yt(a,Wxe,t)},Yxe=Me(Bs,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ze(n.color)}`],n.edge&&t[`edge${ze(n.edge)}`],t[`size${ze(n.size)}`]]}})(({theme:e,ownerState:t})=>M({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})`:Dt(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 M({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&M({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":M({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Dt(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)},{[`&.${Hxe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Xxe=T.forwardRef(function(t,n){const r=bt({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=Je(r,qxe),p=M({},r,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:f}),g=Gxe(p);return S.jsx(Yxe,M({className:Ge(g.root,a),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,ownerState:p},d,{children:o}))}),or=Xxe,Zxe=es(S.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"),Jxe=es(S.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Qxe=es(S.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"),ewe=es(S.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"),twe=es(S.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"),nwe=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],rwe=e=>{const{variant:t,color:n,severity:r,classes:i}=e,o={root:["root",`${t}${ze(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return yt(o,Uxe,i)},iwe=Me(oc,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ze(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?zp:Up,r=e.palette.mode==="light"?Up:zp,i=t.color||t.severity;return M({},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),[`& .${vB.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}`,[`& .${vB.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}},i&&t.variant==="filled"&&M({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)}))}),owe=Me("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),awe=Me("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),yB=Me("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),bB={success:S.jsx(Zxe,{fontSize:"inherit"}),warning:S.jsx(Jxe,{fontSize:"inherit"}),error:S.jsx(Qxe,{fontSize:"inherit"}),info:S.jsx(ewe,{fontSize:"inherit"})},swe=T.forwardRef(function(t,n){var r,i,o,a,s,l;const u=bt({props:t,name:"MuiAlert"}),{action:f,children:d,className:p,closeText:g="Close",color:v,components:y={},componentsProps:w={},icon:b,iconMapping:x=bB,onClose:C,role:k="alert",severity:R="success",slotProps:A={},slots:O={},variant:z="standard"}=u,V=Je(u,nwe),D=M({},u,{color:v,severity:R,variant:z}),W=rwe(D),ie=(r=(i=O.closeButton)!=null?i:y.CloseButton)!=null?r:or,se=(o=(a=O.closeIcon)!=null?a:y.CloseIcon)!=null?o:twe,K=(s=A.closeButton)!=null?s:w.closeButton,G=(l=A.closeIcon)!=null?l:w.closeIcon;return S.jsxs(iwe,M({role:k,elevation:0,ownerState:D,className:Ge(W.root,p),ref:n},V,{children:[b!==!1?S.jsx(owe,{ownerState:D,className:W.icon,children:b||x[R]||bB[R]}):null,S.jsx(awe,{ownerState:D,className:W.message,children:d}),f!=null?S.jsx(yB,{ownerState:D,className:W.action,children:f}):null,f==null&&C?S.jsx(yB,{ownerState:D,className:W.action,children:S.jsx(ie,M({size:"small","aria-label":g,title:g,color:"inherit",onClick:C},K,{children:S.jsx(se,M({fontSize:"small"},G))}))}):null]}))}),ro=swe;function lwe(e){return mt("MuiTypography",e)}vt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const uwe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],cwe=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,e.align!=="inherit"&&`align${ze(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return yt(s,lwe,a)},fwe=Me("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${ze(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>M({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})),_B={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},dwe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},pwe=e=>dwe[e]||e,hwe=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiTypography"}),i=pwe(r.color),o=S2(M({},r,{color:i})),{align:a="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:f=!1,paragraph:d=!1,variant:p="body1",variantMapping:g=_B}=o,v=Je(o,uwe),y=M({},o,{align:a,color:i,className:s,component:l,gutterBottom:u,noWrap:f,paragraph:d,variant:p,variantMapping:g}),w=l||(d?"p":g[p]||_B[p])||"span",b=cwe(y);return S.jsx(fwe,M({as:w,ref:n,ownerState:y,className:Ge(b.root,s)},v))}),Yt=hwe;function gwe(e){return mt("MuiAlertTitle",e)}vt("MuiAlertTitle",["root"]);const mwe=["className"],vwe=e=>{const{classes:t}=e;return yt({root:["root"]},gwe,t)},ywe=Me(Yt,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2})),bwe=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiAlertTitle"}),{className:i}=r,o=Je(r,mwe),a=r,s=vwe(a);return S.jsx(ywe,M({gutterBottom:!0,component:"div",ownerState:a,ref:n,className:Ge(s.root,i)},o))}),_we=bwe;function xwe(e){return mt("MuiAppBar",e)}vt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const wwe=["className","color","enableColorOnDark","position"],Swe=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${ze(t)}`,`position${ze(n)}`]};return yt(i,xwe,r)},P1=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Cwe=Me(oc,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ze(n.position)}`],t[`color${ze(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return M({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&&M({},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"&&M({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&M({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:P1(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:P1(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:P1(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:P1(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"}))}),Ewe=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:a=!1,position:s="fixed"}=r,l=Je(r,wwe),u=M({},r,{color:o,position:s,enableColorOnDark:a}),f=Swe(u);return S.jsx(Cwe,M({square:!0,component:"header",ownerState:u,elevation:4,className:Ge(f.root,i,s==="fixed"&&"mui-fixed"),ref:n},l))}),kwe=Ewe,Twe=["components","componentsProps","slots","slotProps"],Rwe=Me(R_e,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Awe=T.forwardRef(function(t,n){var r;const i=Vw(),o=bt({props:t,name:"MuiPopper"}),{components:a,componentsProps:s,slots:l,slotProps:u}=o,f=Je(o,Twe),d=(r=l==null?void 0:l.root)!=null?r:a==null?void 0:a.Root;return S.jsx(Rwe,M({direction:i==null?void 0:i.direction,slots:{root:d},slotProps:u??s},f,{ref:n}))}),QW=Awe;function $we(e){return mt("MuiListSubheader",e)}vt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Owe=["className","color","component","disableGutters","disableSticky","inset"],Iwe=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e,a={root:["root",n!=="default"&&`color${ze(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return yt(a,$we,t)},Dwe=Me("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ze(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>M({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})),Pwe=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiListSubheader"}),{className:i,color:o="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:u=!1}=r,f=Je(r,Owe),d=M({},r,{color:o,component:a,disableGutters:s,disableSticky:l,inset:u}),p=Iwe(d);return S.jsx(Dwe,M({as:a,className:Ge(p.root,i),ref:n,ownerState:d},f))}),Lwe=Pwe,Mwe=es(S.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 Fwe(e){return mt("MuiChip",e)}const Nwe=vt("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=Nwe,Bwe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],jwe=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${ze(r)}`,`color${ze(i)}`,s&&"clickable",s&&`clickableColor${ze(i)}`,a&&"deletable",a&&`deletableColor${ze(i)}`,`${l}${ze(i)}`],label:["label",`label${ze(r)}`],avatar:["avatar",`avatar${ze(r)}`,`avatarColor${ze(i)}`],icon:["icon",`icon${ze(r)}`,`iconColor${ze(o)}`],deleteIcon:["deleteIcon",`deleteIcon${ze(r)}`,`deleteIconColor${ze(i)}`,`deleteIcon${ze(l)}Color${ze(i)}`]};return yt(u,Fwe,t)},zwe=Me("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${ze(s)}`]},{[`& .${ln.avatar}`]:t[`avatarColor${ze(r)}`]},{[`& .${ln.icon}`]:t.icon},{[`& .${ln.icon}`]:t[`icon${ze(s)}`]},{[`& .${ln.icon}`]:t[`iconColor${ze(i)}`]},{[`& .${ln.deleteIcon}`]:t.deleteIcon},{[`& .${ln.deleteIcon}`]:t[`deleteIcon${ze(s)}`]},{[`& .${ln.deleteIcon}`]:t[`deleteIconColor${ze(r)}`]},{[`& .${ln.deleteIcon}`]:t[`deleteIcon${ze(l)}Color${ze(r)}`]},t.root,t[`size${ze(s)}`],t[`color${ze(r)}`],o&&t.clickable,o&&r!=="default"&&t[`clickableColor${ze(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${ze(r)}`],t[l],t[`${l}${ze(r)}`]]}})(({theme:e,ownerState:t})=>{const n=Dt(e.palette.text.primary,.26),r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return M({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}`]:M({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&M({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},t.color!=="default"&&{color:"inherit"})),[`& .${ln.deleteIcon}`]:M({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)`:Dt(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)`:Dt(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}))`:Dt(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})=>M({},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}))`:Dt(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}))`:Dt(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})=>M({},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)`:Dt(e.palette[t.color].main,.7)}`,[`&.${ln.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Dt(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})`:Dt(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${ln.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Dt(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Uwe=Me("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ze(r)}`]]}})(({ownerState:e})=>M({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.size==="small"&&{paddingLeft:8,paddingRight:8}));function xB(e){return e.key==="Backspace"||e.key==="Delete"}const Kwe=T.forwardRef(function(t,n){const r=bt({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:g,onDelete:v,onKeyDown:y,onKeyUp:w,size:b="medium",variant:x="filled",tabIndex:C,skipFocusWhenDisabled:k=!1}=r,R=Je(r,Bwe),A=T.useRef(null),O=An(A,n),z=ee=>{ee.stopPropagation(),v&&v(ee)},V=ee=>{ee.currentTarget===ee.target&&xB(ee)&&ee.preventDefault(),y&&y(ee)},D=ee=>{ee.currentTarget===ee.target&&(v&&xB(ee)?v(ee):ee.key==="Escape"&&A.current&&A.current.blur()),w&&w(ee)},W=a!==!1&&g?!0:a,ie=W||v?Bs:l||"div",se=M({},r,{component:ie,disabled:f,size:b,color:s,iconColor:T.isValidElement(d)&&d.props.color||s,onDelete:!!v,clickable:W,variant:x}),K=jwe(se),G=ie===Bs?M({component:l||"div",focusVisibleClassName:K.focusVisible},v&&{disableRipple:!0}):{};let Q=null;v&&(Q=u&&T.isValidElement(u)?T.cloneElement(u,{className:Ge(u.props.className,K.deleteIcon),onClick:z}):S.jsx(Mwe,{className:Ge(K.deleteIcon),onClick:z}));let le=null;i&&T.isValidElement(i)&&(le=T.cloneElement(i,{className:Ge(K.avatar,i.props.className)}));let Z=null;return d&&T.isValidElement(d)&&(Z=T.cloneElement(d,{className:Ge(K.icon,d.props.className)})),S.jsxs(zwe,M({as:ie,className:Ge(K.root,o),disabled:W&&f?!0:void 0,onClick:g,onKeyDown:V,onKeyUp:D,ref:O,tabIndex:k&&f?-1:C,ownerState:se},G,R,{children:[le||Z,S.jsx(Uwe,{className:Ge(K.label),ownerState:se,children:p}),Q]}))}),F2=Kwe;function gh({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 Wwe=T.createContext(void 0),Jw=Wwe;function ac(){return T.useContext(Jw)}function eV(e){return S.jsx(Q0e,M({},e,{defaultTheme:Gw}))}function wB(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function N2(e,t=!1){return e&&(wB(e.value)&&e.value!==""||t&&wB(e.defaultValue)&&e.defaultValue!=="")}function Vwe(e){return e.startAdornment}function Hwe(e){return mt("MuiInputBase",e)}const qwe=vt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),qp=qwe,Gwe=["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"],Qw=(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${ze(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},eS=(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]},Ywe=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:g,type:v}=e,y={root:["root",`color${ze(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p==="small"&&"sizeSmall",f&&"multiline",g&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",f&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",g&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return yt(y,Hwe,t)},tS=Me("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Qw})(({theme:e,ownerState:t})=>M({},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",[`&.${qp.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&M({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),nS=Me("input",{name:"MuiInputBase",slot:"Input",overridesResolver:eS})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=M({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 M({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] + .${qp.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},[`&.${qp.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"})}),Xwe=S.jsx(eV,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Zwe=T.forwardRef(function(t,n){var r;const i=bt({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,components:u={},componentsProps:f={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:g,endAdornment:v,fullWidth:y=!1,id:w,inputComponent:b="input",inputProps:x={},inputRef:C,maxRows:k,minRows:R,multiline:A=!1,name:O,onBlur:z,onChange:V,onClick:D,onFocus:W,onKeyDown:ie,onKeyUp:se,placeholder:K,readOnly:G,renderSuffix:Q,rows:le,slotProps:Z={},slots:ee={},startAdornment:P,type:ge="text",value:B}=i,L=Je(i,Gwe),ae=x.value!=null?x.value:B,{current:ue}=T.useRef(ae!=null),ne=T.useRef(),we=T.useCallback(X=>{},[]),Te=An(ne,C,x.ref,we),[Ee,Le]=T.useState(!1),Be=ac(),Ie=gh({props:i,muiFormControl:Be,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ie.focused=Be?Be.focused:Ee,T.useEffect(()=>{!Be&&p&&Ee&&(Le(!1),z&&z())},[Be,p,Ee,z]);const Pe=Be&&Be.onFilled,je=Be&&Be.onEmpty,Fe=T.useCallback(X=>{N2(X)?Pe&&Pe():je&&je()},[Pe,je]);to(()=>{ue&&Fe({value:ae})},[ae,Fe,ue]);const tt=X=>{if(Ie.disabled){X.stopPropagation();return}W&&W(X),x.onFocus&&x.onFocus(X),Be&&Be.onFocus?Be.onFocus(X):Le(!0)},Xe=X=>{z&&z(X),x.onBlur&&x.onBlur(X),Be&&Be.onBlur?Be.onBlur(X):Le(!1)},Ye=(X,...oe)=>{if(!ue){const xe=X.target||ne.current;if(xe==null)throw new Error(Ku(1));Fe({value:xe.value})}x.onChange&&x.onChange(X,...oe),V&&V(X,...oe)};T.useEffect(()=>{Fe(ne.current)},[]);const st=X=>{ne.current&&X.currentTarget===X.target&&ne.current.focus(),D&&D(X)};let he=b,Ae=x;A&&he==="input"&&(le?Ae=M({type:void 0,minRows:le,maxRows:le},Ae):Ae=M({type:void 0,maxRows:k,minRows:R},Ae),he=J_e);const Re=X=>{Fe(X.animationName==="mui-auto-fill-cancel"?ne.current:{value:"x"})};T.useEffect(()=>{Be&&Be.setAdornedStart(!!P)},[Be,P]);const Ne=M({},i,{color:Ie.color||"primary",disabled:Ie.disabled,endAdornment:v,error:Ie.error,focused:Ie.focused,formControl:Be,fullWidth:y,hiddenLabel:Ie.hiddenLabel,multiline:A,size:Ie.size,startAdornment:P,type:ge}),U=Ywe(Ne),H=ee.root||u.Root||tS,fe=Z.root||f.root||{},Y=ee.input||u.Input||nS;return Ae=M({},Ae,(r=Z.input)!=null?r:f.input),S.jsxs(T.Fragment,{children:[!g&&Xwe,S.jsxs(H,M({},fe,!Ms(H)&&{ownerState:M({},Ne,fe.ownerState)},{ref:n,onClick:st},L,{className:Ge(U.root,fe.className,l),children:[P,S.jsx(Jw.Provider,{value:null,children:S.jsx(Y,M({ownerState:Ne,"aria-invalid":Ie.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:d,disabled:Ie.disabled,id:w,onAnimationStart:Re,name:O,placeholder:K,readOnly:G,required:Ie.required,rows:le,value:ae,onKeyDown:ie,onKeyUp:se,type:ge},Ae,!Ms(Y)&&{as:he,ownerState:M({},Ne,Ae.ownerState)},{ref:Te,className:Ge(U.input,Ae.className),onBlur:Xe,onChange:Ye,onFocus:tt}))}),v,Q?Q(M({},Ie,{startAdornment:P})):null]}))]})}),rS=Zwe;function Jwe(e){return mt("MuiInput",e)}const Qwe=M({},qp,vt("MuiInput",["root","underline","input"])),nm=Qwe;function eSe(e){return mt("MuiOutlinedInput",e)}const tSe=M({},qp,vt("MuiOutlinedInput",["root","notchedOutline","input"])),lu=tSe;function nSe(e){return mt("MuiFilledInput",e)}const rSe=M({},qp,vt("MuiFilledInput",["root","underline","input"])),Ac=rSe,iSe=es(S.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),oSe=es(S.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 aSe(e){return mt("MuiAvatar",e)}vt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const sSe=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],lSe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return yt({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},aSe,t)},uSe=Me("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})=>M({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&&M({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]}))),cSe=Me("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),fSe=Me(oSe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function dSe({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 pSe=T.forwardRef(function(t,n){const r=bt({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,g=Je(r,sSe);let v=null;const y=dSe(M({},l,{src:f,srcSet:d})),w=f||d,b=w&&y!=="error",x=M({},r,{colorDefault:!b,component:s,variant:p}),C=lSe(x);return b?v=S.jsx(cSe,M({alt:i,src:f,srcSet:d,sizes:u,ownerState:x,className:C.img},l)):o!=null?v=o:w&&i?v=i[0]:v=S.jsx(fSe,{ownerState:x,className:C.fallback}),S.jsx(uSe,M({as:s,ownerState:x,className:Ge(C.root,a),ref:n},g,{children:v}))}),hA=pSe,hSe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],gSe={entering:{opacity:1},entered:{opacity:1}},mSe=T.forwardRef(function(t,n){const r=Xn(),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:g,onExited:v,onExiting:y,style:w,timeout:b=i,TransitionComponent:x=Xw}=t,C=Je(t,hSe),k=T.useRef(null),R=An(k,s.ref,n),A=K=>G=>{if(K){const Q=k.current;G===void 0?K(Q):K(Q,G)}},O=A(p),z=A((K,G)=>{M2(K);const Q=Wu({style:w,timeout:b,easing:l},{mode:"enter"});K.style.webkitTransition=r.transitions.create("opacity",Q),K.style.transition=r.transitions.create("opacity",Q),f&&f(K,G)}),V=A(d),D=A(y),W=A(K=>{const G=Wu({style:w,timeout:b,easing:l},{mode:"exit"});K.style.webkitTransition=r.transitions.create("opacity",G),K.style.transition=r.transitions.create("opacity",G),g&&g(K)}),ie=A(v),se=K=>{o&&o(k.current,K)};return S.jsx(x,M({appear:a,in:u,nodeRef:k,onEnter:z,onEntered:V,onEntering:O,onExit:W,onExited:ie,onExiting:D,addEndListener:se,timeout:b},C,{children:(K,G)=>T.cloneElement(s,M({style:M({opacity:0,visibility:K==="exited"&&!u?"hidden":void 0},gSe[K],w,s.props.style),ref:R},G))}))}),tV=mSe;function vSe(e){return mt("MuiBackdrop",e)}vt("MuiBackdrop",["root","invisible"]);const ySe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],bSe=e=>{const{classes:t,invisible:n}=e;return yt({root:["root",n&&"invisible"]},vSe,t)},_Se=Me("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>M({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"})),xSe=T.forwardRef(function(t,n){var r,i,o;const a=bt({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:f={},componentsProps:d={},invisible:p=!1,open:g,slotProps:v={},slots:y={},TransitionComponent:w=tV,transitionDuration:b}=a,x=Je(a,ySe),C=M({},a,{component:u,invisible:p}),k=bSe(C),R=(r=v.root)!=null?r:d.root;return S.jsx(w,M({in:g,timeout:b},x,{children:S.jsx(_Se,M({"aria-hidden":!0},R,{as:(i=(o=y.root)!=null?o:f.Root)!=null?i:u,className:Ge(k.root,l,R==null?void 0:R.className),ownerState:M({},C,R==null?void 0:R.ownerState),classes:k,ref:n,children:s}))}))}),nV=xSe,wSe=hh(),SSe=i1e({defaultTheme:wSe,defaultClassName:"MuiBox-root",generateClassName:l2.generate}),at=SSe;function CSe(e){return mt("MuiButton",e)}const ESe=vt("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"]),L1=ESe,kSe=T.createContext({}),TSe=kSe,RSe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],ASe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:a}=e,s={root:["root",o,`${o}${ze(t)}`,`size${ze(i)}`,`${o}Size${ze(i)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${ze(i)}`],endIcon:["endIcon",`iconSize${ze(i)}`]},l=yt(s,CSe,a);return M({},a,l)},rV=e=>M({},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}}),$Se=Me(Bs,{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}${ze(n.color)}`],t[`size${ze(n.size)}`],t[`${n.variant}Size${ze(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;return M({},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":M({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Dt(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})`:Dt(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})`:Dt(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":M({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${L1.focusVisible}`]:M({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${L1.disabled}`]:M({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 ${Dt(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"},[`&.${L1.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${L1.disabled}`]:{boxShadow:"none"}}),OSe=Me("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ze(n.size)}`]]}})(({ownerState:e})=>M({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},rV(e))),ISe=Me("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ze(n.size)}`]]}})(({ownerState:e})=>M({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},rV(e))),DSe=T.forwardRef(function(t,n){const r=T.useContext(TSe),i=s2(r,t),o=bt({props:i,name:"MuiButton"}),{children:a,color:s="primary",component:l="button",className:u,disabled:f=!1,disableElevation:d=!1,disableFocusRipple:p=!1,endIcon:g,focusVisibleClassName:v,fullWidth:y=!1,size:w="medium",startIcon:b,type:x,variant:C="text"}=o,k=Je(o,RSe),R=M({},o,{color:s,component:l,disabled:f,disableElevation:d,disableFocusRipple:p,fullWidth:y,size:w,type:x,variant:C}),A=ASe(R),O=b&&S.jsx(OSe,{className:A.startIcon,ownerState:R,children:b}),z=g&&S.jsx(ISe,{className:A.endIcon,ownerState:R,children:g});return S.jsxs($Se,M({ownerState:R,className:Ge(r.className,A.root,u),component:l,disabled:f,focusRipple:!p,focusVisibleClassName:Ge(A.focusVisible,v),ref:n,type:x},k,{classes:A,children:[O,a,z]}))}),If=DSe;function PSe(e){return mt("PrivateSwitchBase",e)}vt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const LSe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],MSe=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${ze(i)}`],input:["input"]};return yt(o,PSe,t)},FSe=Me(Bs)(({ownerState:e})=>M({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),NSe=Me("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),BSe=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:g,inputRef:v,name:y,onBlur:w,onChange:b,onFocus:x,readOnly:C,required:k=!1,tabIndex:R,type:A,value:O}=t,z=Je(t,LSe),[V,D]=Np({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),W=ac(),ie=ee=>{x&&x(ee),W&&W.onFocus&&W.onFocus(ee)},se=ee=>{w&&w(ee),W&&W.onBlur&&W.onBlur(ee)},K=ee=>{if(ee.nativeEvent.defaultPrevented)return;const P=ee.target.checked;D(P),b&&b(ee,P)};let G=l;W&&typeof G>"u"&&(G=W.disabled);const Q=A==="checkbox"||A==="radio",le=M({},t,{checked:V,disabled:G,disableFocusRipple:u,edge:f}),Z=MSe(le);return S.jsxs(FSe,M({component:"span",className:Ge(Z.root,a),centerRipple:!0,focusRipple:!u,disabled:G,tabIndex:null,role:void 0,onFocus:ie,onBlur:se,ownerState:le,ref:n},z,{children:[S.jsx(NSe,M({autoFocus:r,checked:i,defaultChecked:s,className:Z.input,disabled:G,id:Q?p:void 0,name:y,onChange:K,readOnly:C,ref:v,required:k,ownerState:le,tabIndex:R,type:A},A==="checkbox"&&O===void 0?{}:{value:O},g)),V?o:d]}))}),jSe=BSe;function zSe(e){return mt("MuiCircularProgress",e)}vt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const USe=["className","color","disableShrink","size","style","thickness","value","variant"];let iS=e=>e,SB,CB,EB,kB;const uu=44,KSe=dh(SB||(SB=iS`
|
|
341
|
+
0% {
|
|
342
|
+
transform: rotate(0deg);
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
100% {
|
|
346
|
+
transform: rotate(360deg);
|
|
347
|
+
}
|
|
348
|
+
`)),WSe=dh(CB||(CB=iS`
|
|
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
|
+
`)),VSe=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${ze(r)}`],svg:["svg"],circle:["circle",`circle${ze(n)}`,i&&"circleDisableShrink"]};return yt(o,zSe,t)},HSe=Me("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ze(n.color)}`]]}})(({ownerState:e,theme:t})=>M({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"&&m2(EB||(EB=iS`
|
|
364
|
+
animation: ${0} 1.4s linear infinite;
|
|
365
|
+
`),KSe)),qSe=Me("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),GSe=Me("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ze(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>M({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&&m2(kB||(kB=iS`
|
|
366
|
+
animation: ${0} 1.4s ease-in-out infinite;
|
|
367
|
+
`),WSe)),YSe=T.forwardRef(function(t,n){const r=bt({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=Je(r,USe),g=M({},r,{color:o,disableShrink:a,size:s,thickness:u,value:f,variant:d}),v=VSe(g),y={},w={},b={};if(d==="determinate"){const x=2*Math.PI*((uu-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 S.jsx(HSe,M({className:Ge(v.root,i),style:M({width:s,height:s},w,l),ownerState:g,ref:n,role:"progressbar"},b,p,{children:S.jsx(qSe,{className:v.svg,ownerState:g,viewBox:`${uu/2} ${uu/2} ${uu} ${uu}`,children:S.jsx(GSe,{className:v.circle,style:y,ownerState:g,cx:uu,cy:uu,r:(uu-u)/2,fill:"none",strokeWidth:u})})}))}),B2=YSe,XSe=["BackdropComponent","BackdropProps","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],ZSe=e=>e.classes,JSe=Me("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})=>M({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),QSe=Me(nV,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),eCe=T.forwardRef(function(t,n){var r,i,o,a,s,l;const u=bt({name:"MuiModal",props:t}),{BackdropComponent:f=QSe,BackdropProps:d,closeAfterTransition:p=!1,children:g,component:v,components:y={},componentsProps:w={},disableAutoFocus:b=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:C=!1,disablePortal:k=!1,disableRestoreFocus:R=!1,disableScrollLock:A=!1,hideBackdrop:O=!1,keepMounted:z=!1,slotProps:V,slots:D,theme:W}=u,ie=Je(u,XSe),[se,K]=T.useState(!0),G={closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:C,disablePortal:k,disableRestoreFocus:R,disableScrollLock:A,hideBackdrop:O,keepMounted:z},Q=M({},u,G,{exited:se}),le=ZSe(Q),Z=(r=(i=D==null?void 0:D.root)!=null?i:y.Root)!=null?r:JSe,ee=(o=(a=D==null?void 0:D.backdrop)!=null?a:y.Backdrop)!=null?o:f,P=(s=V==null?void 0:V.root)!=null?s:w.root,ge=(l=V==null?void 0:V.backdrop)!=null?l:w.backdrop;return S.jsx(z_e,M({slots:{root:Z,backdrop:ee},slotProps:{root:()=>M({},lA(P,Q),!Ms(Z)&&{as:v,theme:W}),backdrop:()=>M({},d,lA(ge,Q))},onTransitionEnter:()=>K(!1),onTransitionExited:()=>K(!0),ref:n},ie,{classes:le},G,{children:g}))}),j2=eCe;function tCe(e){return mt("MuiDialog",e)}const nCe=vt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),hk=nCe,rCe=T.createContext({}),iV=rCe,iCe=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],oCe=Me(nV,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),aCe=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,a={root:["root"],container:["container",`scroll${ze(n)}`],paper:["paper",`paperScroll${ze(n)}`,`paperWidth${ze(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return yt(a,tCe,t)},sCe=Me(j2,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),lCe=Me("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ze(n.scroll)}`]]}})(({ownerState:e})=>M({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"}})),uCe=Me(oc,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ze(n.scroll)}`],t[`paperWidth${ze(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>M({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}`,[`&.${hk.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}`,[`&.${hk.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,[`&.${hk.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),cCe=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiDialog"}),i=Xn(),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:g=!1,fullWidth:v=!1,maxWidth:y="sm",onBackdropClick:w,onClose:b,open:x,PaperComponent:C=oc,PaperProps:k={},scroll:R="paper",TransitionComponent:A=tV,transitionDuration:O=o,TransitionProps:z}=r,V=Je(r,iCe),D=M({},r,{disableEscapeKeyDown:p,fullScreen:g,fullWidth:v,maxWidth:y,scroll:R}),W=aCe(D),ie=T.useRef(),se=le=>{ie.current=le.target===le.currentTarget},K=le=>{ie.current&&(ie.current=null,w&&w(le),b&&b(le,"backdropClick"))},G=py(s),Q=T.useMemo(()=>({titleId:G}),[G]);return S.jsx(sCe,M({className:Ge(W.root,d),closeAfterTransition:!0,components:{Backdrop:oCe},componentsProps:{backdrop:M({transitionDuration:O,as:l},u)},disableEscapeKeyDown:p,onClose:b,open:x,ref:n,onClick:K,ownerState:D},V,{children:S.jsx(A,M({appear:!0,in:x,timeout:O,role:"presentation"},z,{children:S.jsx(lCe,{className:Ge(W.container),onMouseDown:se,ownerState:D,children:S.jsx(uCe,M({as:C,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":G},k,{className:Ge(W.paper,k.className),ownerState:D,children:S.jsx(iV.Provider,{value:Q,children:f})}))})}))}))}),mh=cCe;function fCe(e){return mt("MuiDialogActions",e)}vt("MuiDialogActions",["root","spacing"]);const dCe=["className","disableSpacing"],pCe=e=>{const{classes:t,disableSpacing:n}=e;return yt({root:["root",!n&&"spacing"]},fCe,t)},hCe=Me("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>M({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})),gCe=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1}=r,a=Je(r,dCe),s=M({},r,{disableSpacing:o}),l=pCe(s);return S.jsx(hCe,M({className:Ge(l.root,i),ownerState:s,ref:n},a))}),oS=gCe;function mCe(e){return mt("MuiDialogContent",e)}vt("MuiDialogContent",["root","dividers"]);function vCe(e){return mt("MuiDialogTitle",e)}const yCe=vt("MuiDialogTitle",["root"]),bCe=yCe,_Ce=["className","dividers"],xCe=e=>{const{classes:t,dividers:n}=e;return yt({root:["root",n&&"dividers"]},mCe,t)},wCe=Me("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>M({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}`}:{[`.${bCe.root} + &`]:{paddingTop:0}})),SCe=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiDialogContent"}),{className:i,dividers:o=!1}=r,a=Je(r,_Ce),s=M({},r,{dividers:o}),l=xCe(s);return S.jsx(wCe,M({className:Ge(l.root,i),ownerState:s,ref:n},a))}),vh=SCe;function CCe(e){return mt("MuiDialogContentText",e)}vt("MuiDialogContentText",["root"]);const ECe=["children","className"],kCe=e=>{const{classes:t}=e,r=yt({root:["root"]},CCe,t);return M({},t,r)},TCe=Me(Yt,{shouldForwardProp:e=>Fo(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),RCe=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiDialogContentText"}),{className:i}=r,o=Je(r,ECe),a=kCe(o);return S.jsx(TCe,M({component:"p",variant:"body1",color:"text.secondary",ref:n,ownerState:o,className:Ge(a.root,i)},r,{classes:a}))}),oV=RCe,ACe=["className","id"],$Ce=e=>{const{classes:t}=e;return yt({root:["root"]},vCe,t)},OCe=Me(Yt,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),ICe=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiDialogTitle"}),{className:i,id:o}=r,a=Je(r,ACe),s=r,l=$Ce(s),{titleId:u=o}=T.useContext(iV);return S.jsx(OCe,M({component:"h2",className:Ge(l.root,i),ownerState:s,ref:n,variant:"h6",id:u},a))}),by=ICe;function DCe(e){return mt("MuiDivider",e)}const PCe=vt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),TB=PCe,LCe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],MCe=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return yt({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"]},DCe,r)},FCe=Me("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})=>M({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)`:Dt(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})=>M({},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})=>M({},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})=>M({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),NCe=Me("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>M({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)`})),BCe=T.forwardRef(function(t,n){const r=bt({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:g="fullWidth"}=r,v=Je(r,LCe),y=M({},r,{absolute:i,component:s,flexItem:l,light:u,orientation:f,role:d,textAlign:p,variant:g}),w=MCe(y);return S.jsx(FCe,M({as:s,className:Ge(w.root,a),role:d,ref:n,ownerState:y},v,{children:o?S.jsx(NCe,{className:w.wrapper,ownerState:y,children:o}):null}))}),jCe=BCe,zCe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function UCe(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 KCe(e){return typeof e=="function"?e():e}function M1(e,t,n){const r=KCe(n),i=UCe(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const WCe=T.forwardRef(function(t,n){const r=Xn(),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:g,onEntered:v,onEntering:y,onExit:w,onExited:b,onExiting:x,style:C,timeout:k=o,TransitionComponent:R=Xw}=t,A=Je(t,zCe),O=T.useRef(null),z=An(l.ref,O,n),V=Z=>ee=>{Z&&(ee===void 0?Z(O.current):Z(O.current,ee))},D=V((Z,ee)=>{M1(f,Z,u),M2(Z),g&&g(Z,ee)}),W=V((Z,ee)=>{const P=Wu({timeout:k,style:C,easing:d},{mode:"enter"});Z.style.webkitTransition=r.transitions.create("-webkit-transform",M({},P)),Z.style.transition=r.transitions.create("transform",M({},P)),Z.style.webkitTransform="none",Z.style.transform="none",y&&y(Z,ee)}),ie=V(v),se=V(x),K=V(Z=>{const ee=Wu({timeout:k,style:C,easing:d},{mode:"exit"});Z.style.webkitTransition=r.transitions.create("-webkit-transform",ee),Z.style.transition=r.transitions.create("transform",ee),M1(f,Z,u),w&&w(Z)}),G=V(Z=>{Z.style.webkitTransition="",Z.style.transition="",b&&b(Z)}),Q=Z=>{a&&a(O.current,Z)},le=T.useCallback(()=>{O.current&&M1(f,O.current,u)},[f,u]);return T.useEffect(()=>{if(p||f==="down"||f==="right")return;const Z=yf(()=>{O.current&&M1(f,O.current,u)}),ee=da(O.current);return ee.addEventListener("resize",Z),()=>{Z.clear(),ee.removeEventListener("resize",Z)}},[f,p,u]),T.useEffect(()=>{p||le()},[p,le]),S.jsx(R,M({nodeRef:O,onEnter:D,onEntered:ie,onEntering:W,onExit:K,onExited:G,onExiting:se,addEndListener:Q,appear:s,in:p,timeout:k},A,{children:(Z,ee)=>T.cloneElement(l,M({ref:z,style:M({visibility:Z==="exited"&&!p?"hidden":void 0},C,l.props.style)},ee))}))}),VCe=WCe;function HCe(e){return mt("MuiDrawer",e)}vt("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const qCe=["BackdropProps"],GCe=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],aV=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},YCe=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ze(n)}`,r!=="temporary"&&`paperAnchorDocked${ze(n)}`]};return yt(i,HCe,t)},XCe=Me(j2,{name:"MuiDrawer",slot:"Root",overridesResolver:aV})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),RB=Me("div",{shouldForwardProp:Fo,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:aV})({flex:"0 0 auto"}),ZCe=Me(oc,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${ze(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${ze(n.anchor)}`]]}})(({theme:e,ownerState:t})=>M({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}`})),sV={left:"right",right:"left",top:"down",bottom:"up"};function JCe(e){return["left","right"].indexOf(e)!==-1}function QCe(e,t){return e.direction==="rtl"&&JCe(t)?sV[t]:t}const eEe=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiDrawer"}),i=Xn(),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:g,open:v=!1,PaperProps:y={},SlideProps:w,TransitionComponent:b=VCe,transitionDuration:x=o,variant:C="temporary"}=r,k=Je(r.ModalProps,qCe),R=Je(r,GCe),A=T.useRef(!1);T.useEffect(()=>{A.current=!0},[]);const O=QCe(i,a),V=M({},r,{anchor:a,elevation:f,open:v,variant:C},R),D=YCe(V),W=S.jsx(ZCe,M({elevation:C==="temporary"?f:0,square:!0},y,{className:Ge(D.paper,y.className),ownerState:V,children:l}));if(C==="permanent")return S.jsx(RB,M({className:Ge(D.root,D.docked,u),ownerState:V,ref:n},R,{children:W}));const ie=S.jsx(b,M({in:v,direction:sV[O],timeout:x,appear:A.current},w,{children:W}));return C==="persistent"?S.jsx(RB,M({className:Ge(D.root,D.docked,u),ownerState:V,ref:n},R,{children:ie})):S.jsx(XCe,M({BackdropProps:M({},s,p,{transitionDuration:x}),className:Ge(D.root,D.modal,u),open:v,ownerState:V,onClose:g,hideBackdrop:d,ref:n},R,k,{children:ie}))}),lV=eEe,tEe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],nEe=e=>{const{classes:t,disableUnderline:n}=e,i=yt({root:["root",!n&&"underline"],input:["input"]},nSe,t);return M({},t,i)},rEe=Me(tS,{shouldForwardProp:e=>Fo(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Qw(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 M({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}},[`&.${Ac.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Ac.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"},[`&.${Ac.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ac.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(.${Ac.disabled}, .${Ac.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ac.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&M({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),iEe=Me(nS,{name:"MuiFilledInput",slot:"Input",overridesResolver:eS})(({theme:e,ownerState:t})=>M({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})),uV=T.forwardRef(function(t,n){var r,i,o,a;const s=bt({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:f=!1,inputComponent:d="input",multiline:p=!1,slotProps:g,slots:v={},type:y="text"}=s,w=Je(s,tEe),b=M({},s,{fullWidth:f,inputComponent:d,multiline:p,type:y}),x=nEe(s),C={root:{ownerState:b},input:{ownerState:b}},k=g??u?Zi(g??u,C):C,R=(r=(i=v.root)!=null?i:l.Root)!=null?r:rEe,A=(o=(a=v.input)!=null?a:l.Input)!=null?o:iEe;return S.jsx(rS,M({slots:{root:R,input:A},componentsProps:k,fullWidth:f,inputComponent:d,multiline:p,ref:n,type:y},w,{classes:x}))});uV.muiName="Input";const cV=uV;function oEe(e){return mt("MuiFormControl",e)}vt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const aEe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],sEe=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${ze(n)}`,r&&"fullWidth"]};return yt(i,oEe,t)},lEe=Me("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>M({},t.root,t[`margin${ze(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>M({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%"})),uEe=T.forwardRef(function(t,n){const r=bt({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:g="none",required:v=!1,size:y="medium",variant:w="outlined"}=r,b=Je(r,aEe),x=M({},r,{color:a,component:s,disabled:l,error:u,fullWidth:d,hiddenLabel:p,margin:g,required:v,size:y,variant:w}),C=sEe(x),[k,R]=T.useState(()=>{let se=!1;return i&&T.Children.forEach(i,K=>{if(!yp(K,["Input","Select"]))return;const G=yp(K,["Select"])?K.props.input:K;G&&Vwe(G.props)&&(se=!0)}),se}),[A,O]=T.useState(()=>{let se=!1;return i&&T.Children.forEach(i,K=>{yp(K,["Input","Select"])&&N2(K.props,!0)&&(se=!0)}),se}),[z,V]=T.useState(!1);l&&z&&V(!1);const D=f!==void 0&&!l?f:z;let W;const ie=T.useMemo(()=>({adornedStart:k,setAdornedStart:R,color:a,disabled:l,error:u,filled:A,focused:D,fullWidth:d,hiddenLabel:p,size:y,onBlur:()=>{V(!1)},onEmpty:()=>{O(!1)},onFilled:()=>{O(!0)},onFocus:()=>{V(!0)},registerEffect:W,required:v,variant:w}),[k,a,l,u,A,D,d,p,W,v,y,w]);return S.jsx(Jw.Provider,{value:ie,children:S.jsx(lEe,M({as:s,ownerState:x,className:Ge(C.root,o),ref:n},b,{children:i}))})}),fV=uEe;function cEe(e){return mt("MuiFormHelperText",e)}const fEe=vt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),AB=fEe;var $B;const dEe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],pEe=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${ze(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return yt(u,cEe,t)},hEe=Me("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ze(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>M({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${AB.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${AB.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),gEe=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:a="p"}=r,s=Je(r,dEe),l=ac(),u=gh({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),f=M({},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=pEe(f);return S.jsx(hEe,M({as:a,ownerState:f,className:Ge(d.root,o),ref:n},s,{children:i===" "?$B||($B=S.jsx("span",{className:"notranslate",children:""})):i}))}),dV=gEe;function mEe(e){return mt("MuiFormLabel",e)}const vEe=vt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),rv=vEe,yEe=["children","className","color","component","disabled","error","filled","focused","required"],bEe=e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:a,required:s}=e,l={root:["root",`color${ze(n)}`,i&&"disabled",o&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return yt(l,mEe,t)},_Ee=Me("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>M({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>M({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${rv.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${rv.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${rv.error}`]:{color:(e.vars||e).palette.error.main}})),xEe=Me("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${rv.error}`]:{color:(e.vars||e).palette.error.main}})),wEe=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiFormLabel"}),{children:i,className:o,component:a="label"}=r,s=Je(r,yEe),l=ac(),u=gh({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),f=M({},r,{color:u.color||"primary",component:a,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),d=bEe(f);return S.jsxs(_Ee,M({as:a,ownerState:f,className:Ge(d.root,o),ref:n},s,{children:[i,u.required&&S.jsxs(xEe,{ownerState:f,"aria-hidden":!0,className:d.asterisk,children:[" ","*"]})]}))}),SEe=wEe,CEe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function gA(e){return`scale(${e}, ${e**2})`}const EEe={entering:{opacity:1,transform:gA(1)},entered:{opacity:1,transform:"none"}},gk=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),pV=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:g,style:v,timeout:y="auto",TransitionComponent:w=Xw}=t,b=Je(t,CEe),x=T.useRef(),C=T.useRef(),k=Xn(),R=T.useRef(null),A=An(R,o.ref,n),O=G=>Q=>{if(G){const le=R.current;Q===void 0?G(le):G(le,Q)}},z=O(f),V=O((G,Q)=>{M2(G);const{duration:le,delay:Z,easing:ee}=Wu({style:v,timeout:y,easing:a},{mode:"enter"});let P;y==="auto"?(P=k.transitions.getAutoHeightDuration(G.clientHeight),C.current=P):P=le,G.style.transition=[k.transitions.create("opacity",{duration:P,delay:Z}),k.transitions.create("transform",{duration:gk?P:P*.666,delay:Z,easing:ee})].join(","),l&&l(G,Q)}),D=O(u),W=O(g),ie=O(G=>{const{duration:Q,delay:le,easing:Z}=Wu({style:v,timeout:y,easing:a},{mode:"exit"});let ee;y==="auto"?(ee=k.transitions.getAutoHeightDuration(G.clientHeight),C.current=ee):ee=Q,G.style.transition=[k.transitions.create("opacity",{duration:ee,delay:le}),k.transitions.create("transform",{duration:gk?ee:ee*.666,delay:gk?le:le||ee*.333,easing:Z})].join(","),G.style.opacity=0,G.style.transform=gA(.75),d&&d(G)}),se=O(p),K=G=>{y==="auto"&&(x.current=setTimeout(G,C.current||0)),r&&r(R.current,G)};return T.useEffect(()=>()=>{clearTimeout(x.current)},[]),S.jsx(w,M({appear:i,in:s,nodeRef:R,onEnter:V,onEntered:D,onEntering:z,onExit:ie,onExited:se,onExiting:W,addEndListener:K,timeout:y==="auto"?null:y},b,{children:(G,Q)=>T.cloneElement(o,M({style:M({opacity:0,transform:gA(.75),visibility:G==="exited"&&!s?"hidden":void 0},EEe[G],v,o.props.style),ref:A},Q))}))});pV.muiSupportAuto=!0;const mA=pV;function kEe(e,t,n,r,i){const[o,a]=T.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return to(()=>{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 hV=cf["useSyncExternalStore"];function TEe(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 hV(l,s,a)}function aS(e,t={}){const n=Vw(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=r?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:s=!1}=PW({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(hV!==void 0?TEe:kEe)(l,i,o,a,s)}function REe(e){return mt("MuiImageList",e)}vt("MuiImageList",["root","masonry","quilted","standard","woven"]);const AEe=T.createContext({}),gV=AEe,$Ee=["children","className","cols","component","rowHeight","gap","style","variant"],OEe=e=>{const{classes:t,variant:n}=e;return yt({root:["root",n]},REe,t)},IEe=Me("ul",{name:"MuiImageList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})(({ownerState:e})=>M({display:"grid",overflowY:"auto",listStyle:"none",padding:0,WebkitOverflowScrolling:"touch"},e.variant==="masonry"&&{display:"block"})),DEe=T.forwardRef(function(t,n){const r=bt({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=Je(r,$Ee),g=T.useMemo(()=>({rowHeight:l,gap:u,variant:d}),[l,u,d]);T.useEffect(()=>{},[]);const v=M(d==="masonry"?{columnCount:a,columnGap:u}:{gridTemplateColumns:`repeat(${a}, 1fr)`,gap:u},f),y=M({},r,{component:s,gap:u,rowHeight:l,variant:d}),w=OEe(y);return S.jsx(IEe,M({as:s,className:Ge(w.root,w[d],o),ref:n,style:v,ownerState:y},p,{children:S.jsx(gV.Provider,{value:g,children:i})}))}),PEe=DEe;function LEe(e){return mt("MuiImageListItem",e)}const MEe=vt("MuiImageListItem",["root","img","standard","woven","masonry","quilted"]),OB=MEe,FEe=["children","className","cols","component","rows","style"],NEe=e=>{const{classes:t,variant:n}=e;return yt({root:["root",n],img:["img"]},LEe,t)},BEe=Me("li",{name:"MuiImageListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${OB.img}`]:t.img},t.root,t[n.variant]]}})(({ownerState:e})=>M({display:"block",position:"relative"},e.variant==="standard"&&{display:"flex",flexDirection:"column"},e.variant==="woven"&&{height:"100%",alignSelf:"center","&:nth-of-type(even)":{height:"70%"}},{[`& .${OB.img}`]:M({objectFit:"cover",width:"100%",height:"100%",display:"block"},e.variant==="standard"&&{height:"auto",flexGrow:1})})),jEe=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiImageListItem"}),{children:i,className:o,cols:a=1,component:s="li",rows:l=1,style:u}=r,f=Je(r,FEe),{rowHeight:d="auto",gap:p,variant:g}=T.useContext(gV);let v="auto";g==="woven"?v=void 0:d!=="auto"&&(v=d*l+p*(l-1));const y=M({},r,{cols:a,component:s,gap:p,rowHeight:d,rows:l,variant:g}),w=NEe(y);return S.jsx(BEe,M({as:s,className:Ge(w.root,w[g],o),ref:n,style:M({height:v,gridColumnEnd:g!=="masonry"?`span ${a}`:void 0,gridRowEnd:g!=="masonry"?`span ${l}`:void 0,marginBottom:g==="masonry"?p:void 0},u),ownerState:y},f,{children:T.Children.map(i,b=>T.isValidElement(b)?b.type==="img"||yp(b,["Image"])?T.cloneElement(b,{className:Ge(w.img,b.props.className)}):b:null)}))}),zEe=jEe,UEe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],KEe=e=>{const{classes:t,disableUnderline:n}=e,i=yt({root:["root",!n&&"underline"],input:["input"]},Jwe,t);return M({},t,i)},WEe=Me(tS,{shouldForwardProp:e=>Fo(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Qw(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})`),M({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"},[`&.${nm.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${nm.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(.${nm.disabled}, .${nm.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${nm.disabled}:before`]:{borderBottomStyle:"dotted"}})}),VEe=Me(nS,{name:"MuiInput",slot:"Input",overridesResolver:eS})({}),mV=T.forwardRef(function(t,n){var r,i,o,a;const s=bt({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:f,fullWidth:d=!1,inputComponent:p="input",multiline:g=!1,slotProps:v,slots:y={},type:w="text"}=s,b=Je(s,UEe),x=KEe(s),k={root:{ownerState:{disableUnderline:l}}},R=v??f?Zi(v??f,k):k,A=(r=(i=y.root)!=null?i:u.Root)!=null?r:WEe,O=(o=(a=y.input)!=null?a:u.Input)!=null?o:VEe;return S.jsx(rS,M({slots:{root:A,input:O},slotProps:R,fullWidth:d,inputComponent:p,multiline:g,ref:n,type:w},b,{classes:x}))});mV.muiName="Input";const vV=mV;function HEe(e){return mt("MuiInputAdornment",e)}const qEe=vt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),IB=qEe;var DB;const GEe=["children","className","component","disablePointerEvents","disableTypography","position","variant"],YEe=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ze(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},XEe=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:a}=e,s={root:["root",n&&"disablePointerEvents",i&&`position${ze(i)}`,a,r&&"hiddenLabel",o&&`size${ze(o)}`]};return yt(s,HEe,t)},ZEe=Me("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:YEe})(({theme:e,ownerState:t})=>M({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${IB.positionStart}&:not(.${IB.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),JEe=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiInputAdornment"}),{children:i,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:f}=r,d=Je(r,GEe),p=ac()||{};let g=f;f&&p.variant,p&&!g&&(g=p.variant);const v=M({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:u,variant:g}),y=XEe(v);return S.jsx(Jw.Provider,{value:null,children:S.jsx(ZEe,M({as:a,ownerState:v,className:Ge(y.root,o),ref:n},d,{children:typeof i=="string"&&!l?S.jsx(Yt,{color:"text.secondary",children:i}):S.jsxs(T.Fragment,{children:[u==="start"?DB||(DB=S.jsx("span",{className:"notranslate",children:""})):null,i]})}))})}),PB=JEe;function QEe(e){return mt("MuiInputLabel",e)}vt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const eke=["disableAnimation","margin","shrink","variant","className"],tke=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:a,required:s}=e,u=yt({root:["root",n&&"formControl",!o&&"animated",i&&"shrink",r==="small"&&"sizeSmall",a],asterisk:[s&&"asterisk"]},QEe,t);return M({},t,u)},nke=Me(SEe,{shouldForwardProp:e=>Fo(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${rv.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})=>M({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"&&M({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&&M({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"&&M({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)"}))),rke=T.forwardRef(function(t,n){const r=bt({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:o,className:a}=r,s=Je(r,eke),l=ac();let u=o;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const f=gh({props:r,muiFormControl:l,states:["size","variant","required"]}),d=M({},r,{disableAnimation:i,formControl:l,shrink:u,size:f.size,variant:f.variant,required:f.required}),p=tke(d);return S.jsx(nke,M({"data-shrink":u,ownerState:d,ref:n,className:Ge(p.root,a)},s,{classes:p}))}),yV=rke;function ike(e){return mt("MuiLink",e)}const oke=vt("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),ake=oke,bV={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ske=e=>bV[e]||e,lke=({theme:e,ownerState:t})=>{const n=ske(t.color),r=jp(e,`palette.${n}`,!1)||t.color,i=jp(e,`palette.${n}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:Dt(r,.4)},uke=lke,cke=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],fke=e=>{const{classes:t,component:n,focusVisible:r,underline:i}=e,o={root:["root",`underline${ze(i)}`,n==="button"&&"button",r&&"focusVisible"]};return yt(o,ike,t)},dke=Me(Yt,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${ze(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>M({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&M({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:uke({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"},[`&.${ake.focusVisible}`]:{outline:"auto"}})),pke=T.forwardRef(function(t,n){const r=bt({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,g=Je(r,cke),{isFocusVisibleRef:v,onBlur:y,onFocus:w,ref:b}=hy(),[x,C]=T.useState(!1),k=An(n,b),R=V=>{y(V),v.current===!1&&C(!1),s&&s(V)},A=V=>{w(V),v.current===!0&&C(!0),l&&l(V)},O=M({},r,{color:o,component:a,focusVisible:x,underline:f,variant:d}),z=fke(O);return S.jsx(dke,M({color:o,className:Ge(z.root,i),classes:u,component:a,onBlur:R,onFocus:A,ref:k,ownerState:O,variant:d,sx:[...Object.keys(bV).includes(o)?[]:[{color:o}],...Array.isArray(p)?p:[p]]},g))}),_y=pke,hke=T.createContext({}),Ga=hke;function gke(e){return mt("MuiList",e)}vt("MuiList",["root","padding","dense","subheader"]);const mke=["children","className","component","dense","disablePadding","subheader"],vke=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return yt({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},gke,t)},yke=Me("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})=>M({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),bke=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiList"}),{children:i,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,f=Je(r,mke),d=T.useMemo(()=>({dense:s}),[s]),p=M({},r,{component:a,dense:s,disablePadding:l}),g=vke(p);return S.jsx(Ga.Provider,{value:d,children:S.jsxs(yke,M({as:a,className:Ge(g.root,o),ref:n,ownerState:p},f,{children:[u,i]}))})}),Y_=bke;function _ke(e){return mt("MuiListItem",e)}const xke=vt("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),zd=xke;function wke(e){return mt("MuiListItemButton",e)}const Ske=vt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Ud=Ske,Cke=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Eke=(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]},kke=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:a,selected:s}=e,u=yt({root:["root",r&&"dense",!o&&"gutters",a&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",s&&"selected"]},wke,n);return M({},n,u)},Tke=Me(Bs,{shouldForwardProp:e=>Fo(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:Eke})(({theme:e,ownerState:t})=>M({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"}},[`&.${Ud.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ud.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Dt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ud.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Dt(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})`:Dt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ud.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ud.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})),Rke=T.forwardRef(function(t,n){const r=bt({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:g}=r,v=Je(r,Cke),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);to(()=>{o&&b.current&&b.current.focus()},[o]);const x=M({},r,{alignItems:i,dense:w.dense,disableGutters:u,divider:f,selected:p}),C=kke(x),k=An(b,n);return S.jsx(Ga.Provider,{value:w,children:S.jsx(Tke,M({ref:k,href:v.href||v.to,component:(v.href||v.to)&&a==="div"?"a":a,focusVisibleClassName:Ge(C.focusVisible,d),ownerState:x,className:Ge(C.root,g)},v,{classes:C,children:s}))})}),Ake=Rke;function $ke(e){return mt("MuiListItemSecondaryAction",e)}vt("MuiListItemSecondaryAction",["root","disableGutters"]);const Oke=["className"],Ike=e=>{const{disableGutters:t,classes:n}=e;return yt({root:["root",t&&"disableGutters"]},$ke,n)},Dke=Me("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>M({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),_V=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,o=Je(r,Oke),a=T.useContext(Ga),s=M({},r,{disableGutters:a.disableGutters}),l=Ike(s);return S.jsx(Dke,M({className:Ge(l.root,i),ownerState:s,ref:n},o))});_V.muiName="ListItemSecondaryAction";const Pke=_V,Lke=["className"],Mke=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Fke=(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]},Nke=e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:u,selected:f}=e;return yt({root:["root",i&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",o&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",f&&"selected"],container:["container"]},_ke,r)},Bke=Me("div",{name:"MuiListItem",slot:"Root",overridesResolver:Fke})(({theme:e,ownerState:t})=>M({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&M({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Ud.root}`]:{paddingRight:48}},{[`&.${zd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${zd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${zd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Dt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${zd.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"}},[`&.${zd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Dt(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})`:Dt(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),jke=Me("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),zke=T.forwardRef(function(t,n){const r=bt({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:g}={},dense:v=!1,disabled:y=!1,disableGutters:w=!1,disablePadding:b=!1,divider:x=!1,focusVisibleClassName:C,secondaryAction:k,selected:R=!1,slotProps:A={},slots:O={}}=r,z=Je(r.ContainerProps,Lke),V=Je(r,Mke),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);to(()=>{o&&ie.current&&ie.current.focus()},[o]);const se=T.Children.toArray(s),K=se.length&&yp(se[se.length-1],["ListItemSecondaryAction"]),G=M({},r,{alignItems:i,autoFocus:o,button:a,dense:W.dense,disabled:y,disableGutters:w,disablePadding:b,divider:x,hasSecondaryAction:K,selected:R}),Q=Nke(G),le=An(ie,n),Z=O.root||f.Root||Bke,ee=A.root||d.root||{},P=M({className:Ge(Q.root,ee.className,l),disabled:y},V);let ge=u||"li";return a&&(P.component=u||"div",P.focusVisibleClassName=Ge(zd.focusVisible,C),ge=Bs),K?(ge=!P.component&&!u?"div":ge,p==="li"&&(ge==="li"?ge="div":P.component==="li"&&(P.component="div")),S.jsx(Ga.Provider,{value:W,children:S.jsxs(jke,M({as:p,className:Ge(Q.container,g),ref:le,ownerState:G},z,{children:[S.jsx(Z,M({},ee,!Ms(Z)&&{as:ge,ownerState:M({},G,ee.ownerState)},P,{children:se})),se.pop()]}))})):S.jsx(Ga.Provider,{value:W,children:S.jsxs(Z,M({},ee,{as:ge,ref:le},!Ms(Z)&&{ownerState:M({},G,ee.ownerState)},P,{children:[se,k&&S.jsx(Pke,{children:k})]}))})}),iv=zke;function Uke(e){return mt("MuiListItemIcon",e)}const Kke=vt("MuiListItemIcon",["root","alignItemsFlexStart"]),LB=Kke,Wke=["className"],Vke=e=>{const{alignItems:t,classes:n}=e;return yt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Uke,n)},Hke=Me("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})=>M({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),qke=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiListItemIcon"}),{className:i}=r,o=Je(r,Wke),a=T.useContext(Ga),s=M({},r,{alignItems:a.alignItems}),l=Vke(s);return S.jsx(Hke,M({className:Ge(l.root,i),ownerState:s,ref:n},o))}),xp=qke;function Gke(e){return mt("MuiListItemText",e)}const Yke=vt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),X_=Yke,Xke=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],Zke=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return yt({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},Gke,t)},Jke=Me("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${X_.primary}`]:t.primary},{[`& .${X_.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>M({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Qke=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:a=!1,inset:s=!1,primary:l,primaryTypographyProps:u,secondary:f,secondaryTypographyProps:d}=r,p=Je(r,Xke),{dense:g}=T.useContext(Ga);let v=l??i,y=f;const w=M({},r,{disableTypography:a,inset:s,primary:!!v,secondary:!!y,dense:g}),b=Zke(w);return v!=null&&v.type!==Yt&&!a&&(v=S.jsx(Yt,M({variant:g?"body2":"body1",className:b.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:v}))),y!=null&&y.type!==Yt&&!a&&(y=S.jsx(Yt,M({variant:"body2",className:b.secondary,color:"text.secondary",display:"block"},d,{children:y}))),S.jsxs(Jke,M({className:Ge(b.root,o),ownerState:w,ref:n},p,{children:[v,y]}))}),Wb=Qke,eTe=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function mk(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function MB(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function xV(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 rm(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")||!xV(s,o)||l)s=i(e,s,n);else return s.focus(),!0}return!1}const tTe=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=Je(t,eTe),g=T.useRef(null),v=T.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});to(()=>{i&&g.current.focus()},[i]),T.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(C,k)=>{const R=!g.current.style.width;if(C.clientHeight<g.current.clientHeight&&R){const A=`${sW(nr(C))}px`;g.current.style[k.direction==="rtl"?"paddingLeft":"paddingRight"]=A,g.current.style.width=`calc(100% + ${A})`}return g.current}}),[]);const y=C=>{const k=g.current,R=C.key,A=nr(k).activeElement;if(R==="ArrowDown")C.preventDefault(),rm(k,A,u,l,mk);else if(R==="ArrowUp")C.preventDefault(),rm(k,A,u,l,MB);else if(R==="Home")C.preventDefault(),rm(k,null,u,l,mk);else if(R==="End")C.preventDefault(),rm(k,null,u,l,MB);else if(R.length===1){const O=v.current,z=R.toLowerCase(),V=performance.now();O.keys.length>0&&(V-O.lastTime>500?(O.keys=[],O.repeating=!0,O.previousKeyMatched=!0):O.repeating&&z!==O.keys[0]&&(O.repeating=!1)),O.lastTime=V,O.keys.push(z);const D=A&&!O.repeating&&xV(A,O);O.previousKeyMatched&&(D||rm(k,A,!1,l,mk,O))?C.preventDefault():O.previousKeyMatched=!1}f&&f(C)},w=An(g,n);let b=-1;T.Children.forEach(a,(C,k)=>{T.isValidElement(C)&&(C.props.disabled||(d==="selectedMenu"&&C.props.selected||b===-1)&&(b=k))});const x=T.Children.map(a,(C,k)=>{if(k===b){const R={};return o&&(R.autoFocus=!0),C.props.tabIndex===void 0&&d==="selectedMenu"&&(R.tabIndex=0),T.cloneElement(C,R)}return C});return S.jsx(Y_,M({role:"menu",ref:w,className:s,onKeyDown:y,tabIndex:i?0:-1},p,{children:x}))}),nTe=tTe;function rTe(e){return mt("MuiPopover",e)}vt("MuiPopover",["root","paper"]);const iTe=["onEntering"],oTe=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function FB(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function NB(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function BB(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function vk(e){return typeof e=="function"?e():e}const aTe=e=>{const{classes:t}=e;return yt({root:["root"],paper:["paper"]},rTe,t)},sTe=Me(j2,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),lTe=Me(oc,{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}),uTe=T.forwardRef(function(t,n){const r=bt({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:g=16,open:v,PaperProps:y={},transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:b=mA,transitionDuration:x="auto",TransitionProps:{onEntering:C}={}}=r,k=Je(r.TransitionProps,iTe),R=Je(r,oTe),A=T.useRef(),O=An(A,y.ref),z=M({},r,{anchorOrigin:a,anchorReference:l,elevation:p,marginThreshold:g,PaperProps:y,transformOrigin:w,TransitionComponent:b,transitionDuration:x,TransitionProps:k}),V=aTe(z),D=T.useCallback(()=>{if(l==="anchorPosition")return s;const P=vk(o),B=(P&&P.nodeType===1?P:nr(A.current).body).getBoundingClientRect();return{top:B.top+FB(B,a.vertical),left:B.left+NB(B,a.horizontal)}},[o,a.horizontal,a.vertical,s,l]),W=T.useCallback(P=>({vertical:FB(P,w.vertical),horizontal:NB(P,w.horizontal)}),[w.horizontal,w.vertical]),ie=T.useCallback(P=>{const ge={width:P.offsetWidth,height:P.offsetHeight},B=W(ge);if(l==="none")return{top:null,left:null,transformOrigin:BB(B)};const L=D();let ae=L.top-B.vertical,ue=L.left-B.horizontal;const ne=ae+ge.height,we=ue+ge.width,Te=da(vk(o)),Ee=Te.innerHeight-g,Le=Te.innerWidth-g;if(ae<g){const Be=ae-g;ae-=Be,B.vertical+=Be}else if(ne>Ee){const Be=ne-Ee;ae-=Be,B.vertical+=Be}if(ue<g){const Be=ue-g;ue-=Be,B.horizontal+=Be}else if(we>Le){const Be=we-Le;ue-=Be,B.horizontal+=Be}return{top:`${Math.round(ae)}px`,left:`${Math.round(ue)}px`,transformOrigin:BB(B)}},[o,l,D,W,g]),[se,K]=T.useState(v),G=T.useCallback(()=>{const P=A.current;if(!P)return;const ge=ie(P);ge.top!==null&&(P.style.top=ge.top),ge.left!==null&&(P.style.left=ge.left),P.style.transformOrigin=ge.transformOrigin,K(!0)},[ie]),Q=(P,ge)=>{C&&C(P,ge),G()},le=()=>{K(!1)};T.useEffect(()=>{v&&G()}),T.useImperativeHandle(i,()=>v?{updatePosition:()=>{G()}}:null,[v,G]),T.useEffect(()=>{if(!v)return;const P=yf(()=>{G()}),ge=da(o);return ge.addEventListener("resize",P),()=>{P.clear(),ge.removeEventListener("resize",P)}},[o,v,G]);let Z=x;x==="auto"&&!b.muiSupportAuto&&(Z=void 0);const ee=d||(o?nr(vk(o)).body:void 0);return S.jsx(sTe,M({BackdropProps:{invisible:!0},className:Ge(V.root,f),container:ee,open:v,ref:n,ownerState:z},R,{children:S.jsx(b,M({appear:!0,in:v,onEntering:Q,onExited:le,timeout:Z},k,{children:S.jsx(lTe,M({elevation:p},y,{ref:O,className:Ge(V.paper,y.className)},se?void 0:{style:M({},y.style,{opacity:0})},{ownerState:z,children:u}))}))}))}),cTe=uTe;function fTe(e){return mt("MuiMenu",e)}vt("MuiMenu",["root","paper","list"]);const dTe=["onEntering"],pTe=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],hTe={vertical:"top",horizontal:"right"},gTe={vertical:"top",horizontal:"left"},mTe=e=>{const{classes:t}=e;return yt({root:["root"],paper:["paper"],list:["list"]},fTe,t)},vTe=Me(cTe,{shouldForwardProp:e=>Fo(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),yTe=Me(oc,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),bTe=Me(nTe,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),_Te=T.forwardRef(function(t,n){const r=bt({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:g}={},variant:v="selectedMenu"}=r,y=Je(r.TransitionProps,dTe),w=Je(r,pTe),b=Xn(),x=b.direction==="rtl",C=M({},r,{autoFocus:i,disableAutoFocusItem:a,MenuListProps:s,onEntering:g,PaperProps:f,transitionDuration:p,TransitionProps:y,variant:v}),k=mTe(C),R=i&&!a&&u,A=T.useRef(null),O=(D,W)=>{A.current&&A.current.adjustStyleForScrollbar(D,b),g&&g(D,W)},z=D=>{D.key==="Tab"&&(D.preventDefault(),l&&l(D,"tabKeyDown"))};let V=-1;return T.Children.map(o,(D,W)=>{T.isValidElement(D)&&(D.props.disabled||(v==="selectedMenu"&&D.props.selected||V===-1)&&(V=W))}),S.jsx(vTe,M({onClose:l,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?hTe:gTe,PaperProps:M({component:yTe},f,{classes:M({},f.classes,{root:k.paper})}),className:k.root,open:u,ref:n,transitionDuration:p,TransitionProps:M({onEntering:O},y),ownerState:C},w,{classes:d,children:S.jsx(bTe,M({onKeyDown:z,actions:A,autoFocus:i&&(V===-1||a),autoFocusItem:R,variant:v},s,{className:Ge(k.list,s.className),children:o}))}))}),xy=_Te;function xTe(e){return mt("MuiMenuItem",e)}const wTe=vt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),im=wTe,STe=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],CTe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},ETe=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:a}=e,l=yt({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},xTe,a);return M({},a,l)},kTe=Me(Bs,{shouldForwardProp:e=>Fo(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:CTe})(({theme:e,ownerState:t})=>M({},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"}},[`&.${im.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${im.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Dt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${im.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Dt(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})`:Dt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${im.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${im.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${TB.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${TB.inset}`]:{marginLeft:52},[`& .${X_.root}`]:{marginTop:0,marginBottom:0},[`& .${X_.inset}`]:{paddingLeft:36},[`& .${LB.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&M({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${LB.root} svg`]:{fontSize:"1.25rem"}}))),TTe=T.forwardRef(function(t,n){const r=bt({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,g=Je(r,STe),v=T.useContext(Ga),y=T.useMemo(()=>({dense:a||v.dense||!1,disableGutters:l}),[v.dense,a,l]),w=T.useRef(null);to(()=>{i&&w.current&&w.current.focus()},[i]);const b=M({},r,{dense:y.dense,divider:s,disableGutters:l}),x=ETe(r),C=An(w,n);let k;return r.disabled||(k=d!==void 0?d:-1),S.jsx(Ga.Provider,{value:y,children:S.jsx(kTe,M({ref:C,role:f,tabIndex:k,component:o,focusVisibleClassName:Ge(x.focusVisible,u),className:Ge(x.root,p)},g,{ownerState:b,classes:x}))})}),ov=TTe;function RTe(e){return mt("MuiNativeSelect",e)}const ATe=vt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),z2=ATe,$Te=["className","disabled","IconComponent","inputRef","variant"],OTe=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o}=e,a={select:["select",n,r&&"disabled",i&&"multiple"],icon:["icon",`icon${ze(n)}`,o&&"iconOpen",r&&"disabled"]};return yt(a,RTe,t)},wV=({ownerState:e,theme:t})=>M({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":M({},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"},[`&.${z2.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}}),ITe=Me("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Fo,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],{[`&.${z2.multiple}`]:t.multiple}]}})(wV),SV=({ownerState:e,theme:t})=>M({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${z2.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),DTe=Me("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ze(n.variant)}`],n.open&&t.iconOpen]}})(SV),PTe=T.forwardRef(function(t,n){const{className:r,disabled:i,IconComponent:o,inputRef:a,variant:s="standard"}=t,l=Je(t,$Te),u=M({},t,{disabled:i,variant:s}),f=OTe(u);return S.jsxs(T.Fragment,{children:[S.jsx(ITe,M({ownerState:u,className:Ge(f.select,r),disabled:i,ref:a||n},l)),t.multiple?null:S.jsx(DTe,{as:o,ownerState:u,className:f.icon})]})}),LTe=PTe;var jB;const MTe=["children","classes","className","label","notched"],FTe=Me("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%"}),NTe=Me("legend")(({ownerState:e,theme:t})=>M({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&&M({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 BTe(e){const{className:t,label:n,notched:r}=e,i=Je(e,MTe),o=n!=null&&n!=="",a=M({},e,{notched:r,withLabel:o});return S.jsx(FTe,M({"aria-hidden":!0,className:t,ownerState:a},i,{children:S.jsx(NTe,{ownerState:a,children:o?S.jsx("span",{children:n}):jB||(jB=S.jsx("span",{className:"notranslate",children:""}))})}))}const jTe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],zTe=e=>{const{classes:t}=e,r=yt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},eSe,t);return M({},t,r)},UTe=Me(tS,{shouldForwardProp:e=>Fo(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Qw})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return M({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${lu.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${lu.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${lu.focused} .${lu.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${lu.error} .${lu.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${lu.disabled} .${lu.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&M({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),KTe=Me(BTe,{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}}),WTe=Me(nS,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:eS})(({theme:e,ownerState:t})=>M({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})),CV=T.forwardRef(function(t,n){var r,i,o,a,s;const l=bt({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:f=!1,inputComponent:d="input",label:p,multiline:g=!1,notched:v,slots:y={},type:w="text"}=l,b=Je(l,jTe),x=zTe(l),C=ac(),k=gh({props:l,muiFormControl:C,states:["required"]}),R=M({},l,{color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:C,fullWidth:f,hiddenLabel:k.hiddenLabel,multiline:g,size:k.size,type:w}),A=(r=(i=y.root)!=null?i:u.Root)!=null?r:UTe,O=(o=(a=y.input)!=null?a:u.Input)!=null?o:WTe;return S.jsx(rS,M({slots:{root:A,input:O},renderSuffix:z=>S.jsx(KTe,{ownerState:R,className:x.notchedOutline,label:p!=null&&p!==""&&k.required?s||(s=S.jsxs(T.Fragment,{children:[p," ","*"]})):p,notched:typeof v<"u"?v:!!(z.startAdornment||z.filled||z.focused)}),fullWidth:f,inputComponent:d,multiline:g,ref:n,type:w},b,{classes:M({},x,{notchedOutline:null})}))});CV.muiName="Input";const EV=CV;function VTe(e){return mt("MuiSelect",e)}const HTe=vt("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),F1=HTe;var zB;const qTe=["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"],GTe=Me("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${F1.select}`]:t.select},{[`&.${F1.select}`]:t[n.variant]},{[`&.${F1.multiple}`]:t.multiple}]}})(wV,{[`&.${F1.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),YTe=Me("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ze(n.variant)}`],n.open&&t.iconOpen]}})(SV),XTe=Me("input",{shouldForwardProp:e=>E2(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 ZTe(e){return e==null||typeof e=="string"&&!e.trim()}const JTe=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o}=e,a={select:["select",n,r&&"disabled",i&&"multiple"],icon:["icon",`icon${ze(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return yt(a,VTe,t)},QTe=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:g,inputRef:v,labelId:y,MenuProps:w={},multiple:b,name:x,onBlur:C,onChange:k,onClose:R,onFocus:A,onOpen:O,open:z,readOnly:V,renderValue:D,SelectDisplayProps:W={},tabIndex:ie,value:se,variant:K="standard"}=t,G=Je(t,qTe),[Q,le]=Np({controlled:se,default:f,name:"Select"}),[Z,ee]=Np({controlled:z,default:u,name:"Select"}),P=T.useRef(null),ge=T.useRef(null),[B,L]=T.useState(null),{current:ae}=T.useRef(z!=null),[ue,ne]=T.useState(),we=An(n,v),Te=T.useCallback(oe=>{ge.current=oe,oe&&L(oe)},[]),Ee=B==null?void 0:B.parentNode;T.useImperativeHandle(we,()=>({focus:()=>{ge.current.focus()},node:P.current,value:Q}),[Q]),T.useEffect(()=>{u&&Z&&B&&!ae&&(ne(a?null:Ee.clientWidth),ge.current.focus())},[B,a]),T.useEffect(()=>{o&&ge.current.focus()},[o]),T.useEffect(()=>{if(!y)return;const oe=nr(ge.current).getElementById(y);if(oe){const xe=()=>{getSelection().isCollapsed&&ge.current.focus()};return oe.addEventListener("click",xe),()=>{oe.removeEventListener("click",xe)}}},[y]);const Le=(oe,xe)=>{oe?O&&O(xe):R&&R(xe),ae||(ne(a?null:Ee.clientWidth),ee(oe))},Be=oe=>{oe.button===0&&(oe.preventDefault(),ge.current.focus(),Le(!0,oe))},Ie=oe=>{Le(!1,oe)},Pe=T.Children.toArray(s),je=oe=>{const xe=Pe.map(_e=>_e.props.value).indexOf(oe.target.value);if(xe===-1)return;const Ce=Pe[xe];le(Ce.props.value),k&&k(oe,Ce)},Fe=oe=>xe=>{let Ce;if(xe.currentTarget.hasAttribute("tabindex")){if(b){Ce=Array.isArray(Q)?Q.slice():[];const _e=Q.indexOf(oe.props.value);_e===-1?Ce.push(oe.props.value):Ce.splice(_e,1)}else Ce=oe.props.value;if(oe.props.onClick&&oe.props.onClick(xe),Q!==Ce&&(le(Ce),k)){const _e=xe.nativeEvent||xe,nt=new _e.constructor(_e.type,_e);Object.defineProperty(nt,"target",{writable:!0,value:{value:Ce,name:x}}),k(nt,oe)}b||Le(!1,xe)}},tt=oe=>{V||[" ","ArrowUp","ArrowDown","Enter"].indexOf(oe.key)!==-1&&(oe.preventDefault(),Le(!0,oe))},Xe=B!==null&&Z,Ye=oe=>{!Xe&&C&&(Object.defineProperty(oe,"target",{writable:!0,value:{value:Q,name:x}}),C(oe))};delete G["aria-invalid"];let st,he;const Ae=[];let Re=!1;(N2({value:Q})||p)&&(D?st=D(Q):Re=!0);const Ne=Pe.map((oe,xe,Ce)=>{var _e,nt,rt,de;if(!T.isValidElement(oe))return null;let me;if(b){if(!Array.isArray(Q))throw new Error(Ku(2));me=Q.some(Ve=>UB(Ve,oe.props.value)),me&&Re&&Ae.push(oe.props.children)}else me=UB(Q,oe.props.value),me&&Re&&(he=oe.props.children);if(oe.props.value===void 0)return T.cloneElement(oe,{"aria-readonly":!0,role:"option"});const $e=()=>{if(Q)return me;const Ve=Ce.find(He=>{var Ze;return(He==null||(Ze=He.props)==null?void 0:Ze.value)!==void 0&&He.props.disabled!==!0});return oe===Ve?!0:me};return T.cloneElement(oe,{"aria-selected":me?"true":"false",onClick:Fe(oe),onKeyUp:Ve=>{Ve.key===" "&&Ve.preventDefault(),oe.props.onKeyUp&&oe.props.onKeyUp(Ve)},role:"option",selected:((_e=Ce[0])==null||(nt=_e.props)==null?void 0:nt.value)===void 0||((rt=Ce[0])==null||(de=rt.props)==null?void 0:de.disabled)===!0?$e():me,value:void 0,"data-value":oe.props.value})});Re&&(b?Ae.length===0?st=null:st=Ae.reduce((oe,xe,Ce)=>(oe.push(xe),Ce<Ae.length-1&&oe.push(", "),oe),[]):st=he);let U=ue;!a&&ae&&B&&(U=Ee.clientWidth);let H;typeof ie<"u"?H=ie:H=d?null:0;const fe=W.id||(x?`mui-component-select-${x}`:void 0),Y=M({},t,{variant:K,value:Q,open:Xe}),X=JTe(Y);return S.jsxs(T.Fragment,{children:[S.jsx(GTe,M({ref:Te,tabIndex:H,role:"button","aria-disabled":d?"true":void 0,"aria-expanded":Xe?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[y,fe].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:tt,onMouseDown:d||V?null:Be,onBlur:Ye,onFocus:A},W,{ownerState:Y,className:Ge(W.className,X.select,l),id:fe,children:ZTe(st)?zB||(zB=S.jsx("span",{className:"notranslate",children:""})):st})),S.jsx(XTe,M({value:Array.isArray(Q)?Q.join(","):Q,name:x,ref:P,"aria-hidden":!0,onChange:je,tabIndex:-1,disabled:d,className:X.nativeInput,autoFocus:o,ownerState:Y},G)),S.jsx(YTe,{as:g,className:X.icon,ownerState:Y}),S.jsx(xy,M({id:`menu-${x||""}`,anchorEl:Ee,open:Xe,onClose:Ie,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},w,{MenuListProps:M({"aria-labelledby":y,role:"listbox",disableListWrap:!0},w.MenuListProps),PaperProps:M({},w.PaperProps,{style:M({minWidth:U},w.PaperProps!=null?w.PaperProps.style:null)}),children:Ne}))]})}),eRe=QTe;var KB,WB;const tRe=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],nRe=e=>{const{classes:t}=e;return t},U2={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Fo(e)&&e!=="variant",slot:"Root"},rRe=Me(vV,U2)(""),iRe=Me(EV,U2)(""),oRe=Me(cV,U2)(""),kV=T.forwardRef(function(t,n){const r=bt({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:f=iSe,id:d,input:p,inputProps:g,label:v,labelId:y,MenuProps:w,multiple:b=!1,native:x=!1,onClose:C,onOpen:k,open:R,renderValue:A,SelectDisplayProps:O,variant:z="outlined"}=r,V=Je(r,tRe),D=x?LTe:eRe,W=ac(),se=gh({props:r,muiFormControl:W,states:["variant"]}).variant||z,K=p||{standard:KB||(KB=S.jsx(rRe,{})),outlined:S.jsx(iRe,{label:v}),filled:WB||(WB=S.jsx(oRe,{}))}[se],G=M({},r,{variant:se,classes:a}),Q=nRe(G),le=An(n,K.ref);return S.jsx(T.Fragment,{children:T.cloneElement(K,M({inputComponent:D,inputProps:M({children:o,IconComponent:f,variant:se,type:void 0,multiple:b},x?{id:d}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:y,MenuProps:w,onClose:C,onOpen:k,open:R,renderValue:A,SelectDisplayProps:M({id:d},O)},g,{classes:g?Zi(Q,g.classes):Q},p?p.props.inputProps:{})},b&&x&&se==="outlined"?{notched:!0}:{},{ref:le,className:Ge(K.props.className,s)},!p&&{variant:se},V))})});kV.muiName="Select";const TV=kV,aRe=e=>!e||!Ms(e),sRe=aRe;function lRe(e){return mt("MuiSlider",e)}const uRe=vt("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=uRe,cRe=e=>{const{open:t}=e;return{offset:Ge(t&&Va.valueLabelOpen),circle:Va.valueLabelCircle,label:Va.valueLabelLabel}};function fRe(e){const{children:t,className:n,value:r}=e,i=cRe(e);return t?T.cloneElement(t,{className:Ge(t.props.className)},S.jsxs(T.Fragment,{children:[t.props.children,S.jsx("span",{className:Ge(i.offset,n),"aria-hidden":!0,children:S.jsx("span",{className:i.circle,children:S.jsx("span",{className:i.label,children:r})})})]})):null}const dRe=["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"],VB=(e,t,n)=>(e-t)*100/(n-t);function HB(e){return e}const pRe=Me("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ze(n.color)}`],n.size!=="medium"&&t[`size${ze(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})=>M({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"&&M({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"&&M({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"}}})),hRe=Me("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>M({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})),gRe=Me("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?Up(e.palette[t.color].main,.62):zp(e.palette[t.color].main,.5);return M({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})}),mRe=Me("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${ze(n.color)}`],n.size!=="medium"&&t[`thumbSize${ze(n.size)}`]]}})(({theme:e,ownerState:t})=>M({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":M({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)`:Dt(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)`:Dt(e.palette[t.color].main,.16)}`},[`&.${Va.disabled}`]:{"&:hover":{boxShadow:"none"}}})),vRe=Me(fRe,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>M({[`&.${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"})),yRe=Me("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>E2(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>M({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})),bRe=Me("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>E2(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>M({},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})),_Re=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${ze(s)}`,l&&`size${ze(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${ze(l)}`,s&&`thumbColor${ze(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return yt(u,lRe,a)},xRe=({children:e})=>e,wRe=T.forwardRef(function(t,n){var r,i,o,a,s,l,u,f,d,p,g,v,y,w,b,x,C,k,R,A,O,z,V,D;const W=bt({props:t,name:"MuiSlider"}),se=Xn().direction==="rtl",{"aria-label":K,"aria-valuetext":G,"aria-labelledby":Q,component:le="span",components:Z={},componentsProps:ee={},color:P="primary",classes:ge,className:B,disableSwap:L=!1,disabled:ae=!1,getAriaLabel:ue,getAriaValueText:ne,marks:we=!1,max:Te=100,min:Ee=0,orientation:Le="horizontal",size:Be="medium",step:Ie=1,scale:Pe=HB,slotProps:je,slots:Fe,track:tt="normal",valueLabelDisplay:Xe="off",valueLabelFormat:Ye=HB}=W,st=Je(W,dRe),he=M({},W,{isRtl:se,max:Te,min:Ee,classes:ge,disabled:ae,disableSwap:L,orientation:Le,marks:we,color:P,size:Be,step:Ie,scale:Pe,track:tt,valueLabelDisplay:Xe,valueLabelFormat:Ye}),{axisProps:Ae,getRootProps:Re,getHiddenInputProps:Ne,getThumbProps:U,open:H,active:fe,axis:Y,focusedThumbIndex:X,range:oe,dragging:xe,marks:Ce,values:_e,trackOffset:nt,trackLeap:rt}=G_e(M({},he,{ref:n}));he.marked=Ce.length>0&&Ce.some($n=>$n.label),he.dragging=xe,he.focusedThumbIndex=X;const de=_Re(he),me=(r=(i=Fe==null?void 0:Fe.root)!=null?i:Z.Root)!=null?r:pRe,$e=(o=(a=Fe==null?void 0:Fe.rail)!=null?a:Z.Rail)!=null?o:hRe,Ve=(s=(l=Fe==null?void 0:Fe.track)!=null?l:Z.Track)!=null?s:gRe,He=(u=(f=Fe==null?void 0:Fe.thumb)!=null?f:Z.Thumb)!=null?u:mRe,Ze=(d=(p=Fe==null?void 0:Fe.valueLabel)!=null?p:Z.ValueLabel)!=null?d:vRe,dt=(g=(v=Fe==null?void 0:Fe.mark)!=null?v:Z.Mark)!=null?g:yRe,ct=(y=(w=Fe==null?void 0:Fe.markLabel)!=null?w:Z.MarkLabel)!=null?y:bRe,ot=(b=(x=Fe==null?void 0:Fe.input)!=null?x:Z.Input)!=null?b:"input",ht=(C=je==null?void 0:je.root)!=null?C:ee.root,Ot=(k=je==null?void 0:je.rail)!=null?k:ee.rail,rn=(R=je==null?void 0:je.track)!=null?R:ee.track,Qt=(A=je==null?void 0:je.thumb)!=null?A:ee.thumb,Xt=(O=je==null?void 0:je.valueLabel)!=null?O:ee.valueLabel,br=(z=je==null?void 0:je.mark)!=null?z:ee.mark,kn=(V=je==null?void 0:je.markLabel)!=null?V:ee.markLabel,Fr=(D=je==null?void 0:je.input)!=null?D:ee.input,_r=ja({elementType:me,getSlotProps:Re,externalSlotProps:ht,externalForwardedProps:st,additionalProps:M({},sRe(me)&&{as:le}),ownerState:M({},he,ht==null?void 0:ht.ownerState),className:[de.root,B]}),kr=ja({elementType:$e,externalSlotProps:Ot,ownerState:he,className:de.rail}),Hr=ja({elementType:Ve,externalSlotProps:rn,additionalProps:{style:M({},Ae[Y].offset(nt),Ae[Y].leap(rt))},ownerState:M({},he,rn==null?void 0:rn.ownerState),className:de.track}),xi=ja({elementType:He,getSlotProps:U,externalSlotProps:Qt,ownerState:M({},he,Qt==null?void 0:Qt.ownerState)}),Zs=ja({elementType:Ze,externalSlotProps:Xt,ownerState:M({},he,Xt==null?void 0:Xt.ownerState),className:de.valueLabel}),wi=ja({elementType:dt,externalSlotProps:br,ownerState:he,className:de.mark}),qr=ja({elementType:ct,externalSlotProps:kn,ownerState:he}),Hl=ja({elementType:ot,getSlotProps:Ne,externalSlotProps:Fr,ownerState:he});return S.jsxs(me,M({},_r,{children:[S.jsx($e,M({},kr)),S.jsx(Ve,M({},Hr)),Ce.filter($n=>$n.value>=Ee&&$n.value<=Te).map(($n,On)=>{const co=VB($n.value,Ee,Te),dr=Ae[Y].offset(co);let $t;return tt===!1?$t=_e.indexOf($n.value)!==-1:$t=tt==="normal"&&(oe?$n.value>=_e[0]&&$n.value<=_e[_e.length-1]:$n.value<=_e[0])||tt==="inverted"&&(oe?$n.value<=_e[0]||$n.value>=_e[_e.length-1]:$n.value>=_e[0]),S.jsxs(T.Fragment,{children:[S.jsx(dt,M({"data-index":On},wi,!Ms(dt)&&{markActive:$t},{style:M({},dr,wi.style),className:Ge(wi.className,$t&&de.markActive)})),$n.label!=null?S.jsx(ct,M({"aria-hidden":!0,"data-index":On},qr,!Ms(ct)&&{markLabelActive:$t},{style:M({},dr,qr.style),className:Ge(de.markLabel,qr.className,$t&&de.markLabelActive),children:$n.label})):null]},On)}),_e.map(($n,On)=>{const co=VB($n,Ee,Te),dr=Ae[Y].offset(co),$t=Xe==="off"?xRe:Ze;return S.jsx(T.Fragment,{children:S.jsx($t,M({},!Ms($t)&&{valueLabelFormat:Ye,valueLabelDisplay:Xe,value:typeof Ye=="function"?Ye(Pe($n),On):Ye,index:On,open:H===On||fe===On||Xe==="on",disabled:ae},Zs,{children:S.jsx(He,M({"data-index":On,"data-focusvisible":X===On},xi,{className:Ge(de.thumb,xi.className,fe===On&&de.active,X===On&&de.focusVisible),style:M({},dr,{pointerEvents:L&&fe!==On?"none":void 0},xi.style),children:S.jsx(ot,M({"data-index":On,"aria-label":ue?ue(On):K,"aria-valuenow":Pe($n),"aria-labelledby":Q,"aria-valuetext":ne?ne(Pe($n),On):G,value:_e[On]},Hl))}))}))},On)})]}))}),SRe=wRe;function CRe(e){return mt("MuiTooltip",e)}const ERe=vt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Tu=ERe,kRe=["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 TRe(e){return Math.round(e*1e5)/1e5}const RRe=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${ze(o.split("-")[0])}`],arrow:["arrow"]};return yt(a,CRe,t)},ARe=Me(QW,{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})=>M({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Tu.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Tu.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Tu.arrow}`]:M({},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"] .${Tu.arrow}`]:M({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),$Re=Me("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${ze(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>M({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Dt(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:`${TRe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Tu.popper}[data-popper-placement*="left"] &`]:M({transformOrigin:"right center"},t.isRtl?M({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):M({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Tu.popper}[data-popper-placement*="right"] &`]:M({transformOrigin:"left center"},t.isRtl?M({marginRight:"14px"},t.touch&&{marginRight:"24px"}):M({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Tu.popper}[data-popper-placement*="top"] &`]:M({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Tu.popper}[data-popper-placement*="bottom"] &`]:M({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),ORe=Me("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:Dt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let N1=!1,yk=null,om={x:0,y:0};function B1(e,t){return n=>{t&&t(n),e(n)}}const IRe=T.forwardRef(function(t,n){var r,i,o,a,s,l,u,f,d,p,g,v,y,w,b,x,C,k,R;const A=bt({props:t,name:"MuiTooltip"}),{arrow:O=!1,children:z,components:V={},componentsProps:D={},describeChild:W=!1,disableFocusListener:ie=!1,disableHoverListener:se=!1,disableInteractive:K=!1,disableTouchListener:G=!1,enterDelay:Q=100,enterNextDelay:le=0,enterTouchDelay:Z=700,followCursor:ee=!1,id:P,leaveDelay:ge=0,leaveTouchDelay:B=1500,onClose:L,onOpen:ae,open:ue,placement:ne="bottom",PopperComponent:we,PopperProps:Te={},slotProps:Ee={},slots:Le={},title:Be,TransitionComponent:Ie=mA,TransitionProps:Pe}=A,je=Je(A,kRe),Fe=Xn(),tt=Fe.direction==="rtl",[Xe,Ye]=T.useState(),[st,he]=T.useState(null),Ae=T.useRef(!1),Re=K||ee,Ne=T.useRef(),U=T.useRef(),H=T.useRef(),fe=T.useRef(),[Y,X]=Np({controlled:ue,default:!1,name:"Tooltip",state:"open"});let oe=Y;const xe=py(P),Ce=T.useRef(),_e=T.useCallback(()=>{Ce.current!==void 0&&(document.body.style.WebkitUserSelect=Ce.current,Ce.current=void 0),clearTimeout(fe.current)},[]);T.useEffect(()=>()=>{clearTimeout(Ne.current),clearTimeout(U.current),clearTimeout(H.current),_e()},[_e]);const nt=lt=>{clearTimeout(yk),N1=!0,X(!0),ae&&!oe&&ae(lt)},rt=Oi(lt=>{clearTimeout(yk),yk=setTimeout(()=>{N1=!1},800+ge),X(!1),L&&oe&&L(lt),clearTimeout(Ne.current),Ne.current=setTimeout(()=>{Ae.current=!1},Fe.transitions.duration.shortest)}),de=lt=>{Ae.current&<.type!=="touchstart"||(Xe&&Xe.removeAttribute("title"),clearTimeout(U.current),clearTimeout(H.current),Q||N1&&le?U.current=setTimeout(()=>{nt(lt)},N1?le:Q):nt(lt))},me=lt=>{clearTimeout(U.current),clearTimeout(H.current),H.current=setTimeout(()=>{rt(lt)},ge)},{isFocusVisibleRef:$e,onBlur:Ve,onFocus:He,ref:Ze}=hy(),[,dt]=T.useState(!1),ct=lt=>{Ve(lt),$e.current===!1&&(dt(!1),me(lt))},ot=lt=>{Xe||Ye(lt.currentTarget),He(lt),$e.current===!0&&(dt(!0),de(lt))},ht=lt=>{Ae.current=!0;const xr=z.props;xr.onTouchStart&&xr.onTouchStart(lt)},Ot=de,rn=me,Qt=lt=>{ht(lt),clearTimeout(H.current),clearTimeout(Ne.current),_e(),Ce.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",fe.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ce.current,de(lt)},Z)},Xt=lt=>{z.props.onTouchEnd&&z.props.onTouchEnd(lt),_e(),clearTimeout(H.current),H.current=setTimeout(()=>{rt(lt)},B)};T.useEffect(()=>{if(!oe)return;function lt(xr){(xr.key==="Escape"||xr.key==="Esc")&&rt(xr)}return document.addEventListener("keydown",lt),()=>{document.removeEventListener("keydown",lt)}},[rt,oe]);const br=An(z.ref,Ze,Ye,n);!Be&&Be!==0&&(oe=!1);const kn=T.useRef(),Fr=lt=>{const xr=z.props;xr.onMouseMove&&xr.onMouseMove(lt),om={x:lt.clientX,y:lt.clientY},kn.current&&kn.current.update()},_r={},kr=typeof Be=="string";W?(_r.title=!oe&&kr&&!se?Be:null,_r["aria-describedby"]=oe?xe:null):(_r["aria-label"]=kr?Be:null,_r["aria-labelledby"]=oe&&!kr?xe:null);const Hr=M({},_r,je,z.props,{className:Ge(je.className,z.props.className),onTouchStart:ht,ref:br},ee?{onMouseMove:Fr}:{}),xi={};G||(Hr.onTouchStart=Qt,Hr.onTouchEnd=Xt),se||(Hr.onMouseOver=B1(Ot,Hr.onMouseOver),Hr.onMouseLeave=B1(rn,Hr.onMouseLeave),Re||(xi.onMouseOver=Ot,xi.onMouseLeave=rn)),ie||(Hr.onFocus=B1(ot,Hr.onFocus),Hr.onBlur=B1(ct,Hr.onBlur),Re||(xi.onFocus=ot,xi.onBlur=ct));const Zs=T.useMemo(()=>{var lt;let xr=[{name:"arrow",enabled:!!st,options:{element:st,padding:4}}];return(lt=Te.popperOptions)!=null&<.modifiers&&(xr=xr.concat(Te.popperOptions.modifiers)),M({},Te.popperOptions,{modifiers:xr})},[st,Te]),wi=M({},A,{isRtl:tt,arrow:O,disableInteractive:Re,placement:ne,PopperComponentProp:we,touch:Ae.current}),qr=RRe(wi),Hl=(r=(i=Le.popper)!=null?i:V.Popper)!=null?r:ARe,$n=(o=(a=(s=Le.transition)!=null?s:V.Transition)!=null?a:Ie)!=null?o:mA,On=(l=(u=Le.tooltip)!=null?u:V.Tooltip)!=null?l:$Re,co=(f=(d=Le.arrow)!=null?d:V.Arrow)!=null?f:ORe,dr=Om(Hl,M({},Te,(p=Ee.popper)!=null?p:D.popper,{className:Ge(qr.popper,Te==null?void 0:Te.className,(g=(v=Ee.popper)!=null?v:D.popper)==null?void 0:g.className)}),wi),$t=Om($n,M({},Pe,(y=Ee.transition)!=null?y:D.transition),wi),pc=Om(On,M({},(w=Ee.tooltip)!=null?w:D.tooltip,{className:Ge(qr.tooltip,(b=(x=Ee.tooltip)!=null?x:D.tooltip)==null?void 0:b.className)}),wi),Jf=Om(co,M({},(C=Ee.arrow)!=null?C:D.arrow,{className:Ge(qr.arrow,(k=(R=Ee.arrow)!=null?R:D.arrow)==null?void 0:k.className)}),wi);return S.jsxs(T.Fragment,{children:[T.cloneElement(z,Hr),S.jsx(Hl,M({as:we??QW,placement:ne,anchorEl:ee?{getBoundingClientRect:()=>({top:om.y,left:om.x,right:om.x,bottom:om.y,width:0,height:0})}:Xe,popperRef:kn,open:Xe?oe:!1,id:xe,transition:!0},xi,dr,{popperOptions:Zs,children:({TransitionProps:lt})=>S.jsx($n,M({timeout:Fe.transitions.duration.shorter},lt,$t,{children:S.jsxs(On,M({},pc,{children:[Be,O?S.jsx(co,M({},Jf,{ref:he})):null]}))}))}))]})}),yi=IRe,DRe=["component","direction","spacing","divider","children"];function PRe(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 LRe=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],MRe=({ownerState:e,theme:t})=>{let n=M({display:"flex",flexDirection:"column"},Ja({theme:t},ck({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=_2(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=ck({values:e.direction,base:i}),a=ck({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=Zi(n,Ja({theme:t},a,(l,u)=>({"& > :not(style) + :not(style)":{margin:0,[`margin${LRe(u?o[u]:e.direction)}`]:ph(r,l)}})))}return n=u0e(t.breakpoints,n),n},FRe=Me("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>[t.root]})(MRe),NRe=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiStack"}),i=S2(r),{component:o="div",direction:a="column",spacing:s=0,divider:l,children:u}=i,f=Je(i,DRe),d={direction:a,spacing:s};return S.jsx(FRe,M({as:o,ownerState:d,ref:n},f,{children:l?PRe(u,l):u}))}),Ht=NRe;function BRe(e){return mt("MuiSwitch",e)}const jRe=vt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Ri=jRe,zRe=["className","color","edge","size","sx"],URe=e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:a}=e,s={root:["root",n&&`edge${ze(n)}`,`size${ze(r)}`],switchBase:["switchBase",`color${ze(i)}`,o&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=yt(s,BRe,t);return M({},t,l)},KRe=Me("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${ze(n.edge)}`],t[`size${ze(n.size)}`]]}})(({ownerState:e})=>M({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,[`& .${Ri.thumb}`]:{width:16,height:16},[`& .${Ri.switchBase}`]:{padding:4,[`&.${Ri.checked}`]:{transform:"translateX(16px)"}}})),WRe=Me(jSe,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Ri.input}`]:t.input},n.color!=="default"&&t[`color${ze(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}),[`&.${Ri.checked}`]:{transform:"translateX(20px)"},[`&.${Ri.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Ri.checked} + .${Ri.track}`]:{opacity:.5},[`&.${Ri.disabled} + .${Ri.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Ri.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>M({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Dt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Ri.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})`:Dt(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ri.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Up(e.palette[t.color].main,.62):zp(e.palette[t.color].main,.55)}`}},[`&.${Ri.checked} + .${Ri.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),VRe=Me("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}`})),HRe=Me("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%"})),qRe=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:a=!1,size:s="medium",sx:l}=r,u=Je(r,zRe),f=M({},r,{color:o,edge:a,size:s}),d=URe(f),p=S.jsx(HRe,{className:d.thumb,ownerState:f});return S.jsxs(KRe,{className:Ge(d.root,i),sx:l,ownerState:f,children:[S.jsx(WRe,M({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:f},u,{classes:M({},d,{root:d.switchBase})})),S.jsx(VRe,{className:d.track,ownerState:f})]})}),GRe=qRe;function YRe(e){return mt("MuiTab",e)}const XRe=vt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),$c=XRe,ZRe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],JRe=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${ze(n)}`,r&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return yt(u,YRe,t)},QRe=Me(Bs,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${ze(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>M({},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,[`& > .${$c.iconWrapper}`]:M({},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,[`&.${$c.selected}`]:{opacity:1},[`&.${$c.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${$c.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${$c.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${$c.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${$c.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)})),eAe=T.forwardRef(function(t,n){const r=bt({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:g,onFocus:v,selected:y,selectionFollowsFocus:w,textColor:b="inherit",value:x,wrapped:C=!1}=r,k=Je(r,ZRe),R=M({},r,{disabled:o,disableFocusRipple:a,selected:y,icon:!!l,iconPosition:u,label:!!d,fullWidth:s,textColor:b,wrapped:C}),A=JRe(R),O=l&&d&&T.isValidElement(l)?T.cloneElement(l,{className:Ge(A.iconWrapper,l.props.className)}):l,z=D=>{!y&&p&&p(D,x),g&&g(D)},V=D=>{w&&!y&&p&&p(D,x),v&&v(D)};return S.jsxs(QRe,M({focusRipple:!a,className:Ge(A.root,i),ref:n,role:"tab","aria-selected":y,disabled:o,onClick:z,onFocus:V,ownerState:R,tabIndex:y?0:-1},k,{children:[u==="top"||u==="start"?S.jsxs(T.Fragment,{children:[O,d]}):S.jsxs(T.Fragment,{children:[d,O]}),f]}))}),tAe=eAe,nAe=T.createContext(),RV=nAe;function rAe(e){return mt("MuiTable",e)}vt("MuiTable",["root","stickyHeader"]);const iAe=["className","component","padding","size","stickyHeader"],oAe=e=>{const{classes:t,stickyHeader:n}=e;return yt({root:["root",n&&"stickyHeader"]},rAe,t)},aAe=Me("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>M({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":M({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),qB="table",sAe=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiTable"}),{className:i,component:o=qB,padding:a="normal",size:s="medium",stickyHeader:l=!1}=r,u=Je(r,iAe),f=M({},r,{component:o,padding:a,size:s,stickyHeader:l}),d=oAe(f),p=T.useMemo(()=>({padding:a,size:s,stickyHeader:l}),[a,s,l]);return S.jsx(RV.Provider,{value:p,children:S.jsx(aAe,M({as:o,role:o===qB?null:"table",ref:n,className:Ge(d.root,i),ownerState:f},u))})}),lAe=sAe,uAe=T.createContext(),sS=uAe;function cAe(e){return mt("MuiTableBody",e)}vt("MuiTableBody",["root"]);const fAe=["className","component"],dAe=e=>{const{classes:t}=e;return yt({root:["root"]},cAe,t)},pAe=Me("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),hAe={variant:"body"},GB="tbody",gAe=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiTableBody"}),{className:i,component:o=GB}=r,a=Je(r,fAe),s=M({},r,{component:o}),l=dAe(s);return S.jsx(sS.Provider,{value:hAe,children:S.jsx(pAe,M({className:Ge(l.root,i),as:o,ref:n,role:o===GB?null:"rowgroup",ownerState:s},a))})}),mAe=gAe;function vAe(e){return mt("MuiTableCell",e)}const yAe=vt("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),bAe=yAe,_Ae=["align","className","component","padding","scope","size","sortDirection","variant"],xAe=e=>{const{classes:t,variant:n,align:r,padding:i,size:o,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${ze(r)}`,i!=="normal"&&`padding${ze(i)}`,`size${ze(o)}`]};return yt(s,vAe,t)},wAe=Me("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ze(n.size)}`],n.padding!=="normal"&&t[`padding${ze(n.padding)}`],n.align!=="inherit"&&t[`align${ze(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>M({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
368
|
+
${e.palette.mode==="light"?Up(Dt(e.palette.divider,1),.88):zp(Dt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${bAe.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),SAe=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiTableCell"}),{align:i="inherit",className:o,component:a,padding:s,scope:l,size:u,sortDirection:f,variant:d}=r,p=Je(r,_Ae),g=T.useContext(RV),v=T.useContext(sS),y=v&&v.variant==="head";let w;a?w=a:w=y?"th":"td";let b=l;w==="td"?b=void 0:!b&&y&&(b="col");const x=d||v&&v.variant,C=M({},r,{align:i,component:w,padding:s||(g&&g.padding?g.padding:"normal"),size:u||(g&&g.size?g.size:"medium"),sortDirection:f,stickyHeader:x==="head"&&g&&g.stickyHeader,variant:x}),k=xAe(C);let R=null;return f&&(R=f==="asc"?"ascending":"descending"),S.jsx(wAe,M({as:w,ref:n,className:Ge(k.root,o),"aria-sort":R,scope:b,ownerState:C},p))}),YB=SAe;function CAe(e){return mt("MuiTableContainer",e)}vt("MuiTableContainer",["root"]);const EAe=["className","component"],kAe=e=>{const{classes:t}=e;return yt({root:["root"]},CAe,t)},TAe=Me("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),RAe=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiTableContainer"}),{className:i,component:o="div"}=r,a=Je(r,EAe),s=M({},r,{component:o}),l=kAe(s);return S.jsx(TAe,M({ref:n,as:o,className:Ge(l.root,i),ownerState:s},a))}),AAe=RAe;function $Ae(e){return mt("MuiTableHead",e)}vt("MuiTableHead",["root"]);const OAe=["className","component"],IAe=e=>{const{classes:t}=e;return yt({root:["root"]},$Ae,t)},DAe=Me("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),PAe={variant:"head"},XB="thead",LAe=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiTableHead"}),{className:i,component:o=XB}=r,a=Je(r,OAe),s=M({},r,{component:o}),l=IAe(s);return S.jsx(sS.Provider,{value:PAe,children:S.jsx(DAe,M({as:o,className:Ge(l.root,i),ref:n,role:o===XB?null:"rowgroup",ownerState:s},a))})}),MAe=LAe;function FAe(e){return mt("MuiToolbar",e)}vt("MuiToolbar",["root","gutters","regular","dense"]);const NAe=["className","component","disableGutters","variant"],BAe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return yt({root:["root",!n&&"gutters",r]},FAe,t)},jAe=Me("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})=>M({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),zAe=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:a=!1,variant:s="regular"}=r,l=Je(r,NAe),u=M({},r,{component:o,disableGutters:a,variant:s}),f=BAe(u);return S.jsx(jAe,M({as:o,className:Ge(f.root,i),ref:n,ownerState:u},l))}),UAe=zAe,KAe=es(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),WAe=es(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function VAe(e){return mt("MuiTableRow",e)}const HAe=vt("MuiTableRow",["root","selected","hover","head","footer"]),ZB=HAe,qAe=["className","component","hover","selected"],GAe=e=>{const{classes:t,selected:n,hover:r,head:i,footer:o}=e;return yt({root:["root",n&&"selected",r&&"hover",i&&"head",o&&"footer"]},VAe,t)},YAe=Me("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${ZB.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${ZB.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dt(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Dt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),JB="tr",XAe=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiTableRow"}),{className:i,component:o=JB,hover:a=!1,selected:s=!1}=r,l=Je(r,qAe),u=T.useContext(sS),f=M({},r,{component:o,hover:a,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),d=GAe(f);return S.jsx(YAe,M({as:o,ref:n,className:Ge(d.root,i),role:o===JB?null:"row",ownerState:f},l))}),ZAe=XAe;function JAe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function QAe(e,t,n,r={},i=()=>{}){const{ease:o=JAe,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 g=Math.min(1,(p-s)/a);if(t[e]=o(g)*(n-l)+l,g>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(d)};return l===n?(i(new Error("Element already at target position")),f):(requestAnimationFrame(d),f)}const e$e=["onChange"],t$e={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function n$e(e){const{onChange:t}=e,n=Je(e,e$e),r=T.useRef(),i=T.useRef(null),o=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return T.useEffect(()=>{const a=yf(()=>{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]),S.jsx("div",M({style:t$e,ref:i},n))}function r$e(e){return mt("MuiTabScrollButton",e)}const i$e=vt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),o$e=i$e;var QB,e3;const a$e=["className","direction","orientation","disabled"],s$e=e=>{const{classes:t,orientation:n,disabled:r}=e;return yt({root:["root",n,r&&"disabled"]},r$e,t)},l$e=Me(Bs,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>M({width:40,flexShrink:0,opacity:.8,[`&.${o$e.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),u$e=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiTabScrollButton"}),{className:i,direction:o}=r,a=Je(r,a$e),l=Xn().direction==="rtl",u=M({isRtl:l},r),f=s$e(u);return S.jsx(l$e,M({component:"div",className:Ge(f.root,i),ref:n,role:null,ownerState:u,tabIndex:null},a,{children:o==="left"?QB||(QB=S.jsx(KAe,{fontSize:"small"})):e3||(e3=S.jsx(WAe,{fontSize:"small"}))}))}),c$e=u$e;function f$e(e){return mt("MuiTabs",e)}const d$e=vt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),bk=d$e,p$e=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],t3=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,n3=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,j1=(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}}},h$e=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:o,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return yt({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"]},f$e,l)},g$e=Me("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bk.scrollButtons}`]:t.scrollButtons},{[`& .${bk.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>M({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${bk.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),m$e=Me("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})=>M({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"})),v$e=Me("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})=>M({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),y$e=Me("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>M({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})),b$e=Me(n$e,{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),r3={},_$e=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiTabs"}),i=Xn(),o=i.direction==="rtl",{"aria-label":a,"aria-labelledby":s,action:l,centered:u=!1,children:f,className:d,component:p="div",allowScrollButtonsMobile:g=!1,indicatorColor:v="primary",onChange:y,orientation:w="horizontal",ScrollButtonComponent:b=c$e,scrollButtons:x="auto",selectionFollowsFocus:C,TabIndicatorProps:k={},TabScrollButtonProps:R={},textColor:A="primary",value:O,variant:z="standard",visibleScrollbar:V=!1}=r,D=Je(r,p$e),W=z==="scrollable",ie=w==="vertical",se=ie?"scrollTop":"scrollLeft",K=ie?"top":"left",G=ie?"bottom":"right",Q=ie?"clientHeight":"clientWidth",le=ie?"height":"width",Z=M({},r,{component:p,allowScrollButtonsMobile:g,indicatorColor:v,orientation:w,vertical:ie,scrollButtons:x,textColor:A,variant:z,visibleScrollbar:V,fixed:!W,hideScrollbar:W&&!V,scrollableX:W&&!ie,scrollableY:W&&ie,centered:u&&!W,scrollButtonsHideMobile:!g}),ee=h$e(Z),[P,ge]=T.useState(!1),[B,L]=T.useState(r3),[ae,ue]=T.useState({start:!1,end:!1}),[ne,we]=T.useState({overflow:"hidden",scrollbarWidth:0}),Te=new Map,Ee=T.useRef(null),Le=T.useRef(null),Be=()=>{const X=Ee.current;let oe;if(X){const Ce=X.getBoundingClientRect();oe={clientWidth:X.clientWidth,scrollLeft:X.scrollLeft,scrollTop:X.scrollTop,scrollLeftNormalized:kN(X,i.direction),scrollWidth:X.scrollWidth,top:Ce.top,bottom:Ce.bottom,left:Ce.left,right:Ce.right}}let xe;if(X&&O!==!1){const Ce=Le.current.children;if(Ce.length>0){const _e=Ce[Te.get(O)];xe=_e?_e.getBoundingClientRect():null}}return{tabsMeta:oe,tabMeta:xe}},Ie=Oi(()=>{const{tabsMeta:X,tabMeta:oe}=Be();let xe=0,Ce;if(ie)Ce="top",oe&&X&&(xe=oe.top-X.top+X.scrollTop);else if(Ce=o?"right":"left",oe&&X){const nt=o?X.scrollLeftNormalized+X.clientWidth-X.scrollWidth:X.scrollLeft;xe=(o?-1:1)*(oe[Ce]-X[Ce]+nt)}const _e={[Ce]:xe,[le]:oe?oe[le]:0};if(isNaN(B[Ce])||isNaN(B[le]))L(_e);else{const nt=Math.abs(B[Ce]-_e[Ce]),rt=Math.abs(B[le]-_e[le]);(nt>=1||rt>=1)&&L(_e)}}),Pe=(X,{animation:oe=!0}={})=>{oe?QAe(se,Ee.current,X,{duration:i.transitions.duration.standard}):Ee.current[se]=X},je=X=>{let oe=Ee.current[se];ie?oe+=X:(oe+=X*(o?-1:1),oe*=o&&lW()==="reverse"?-1:1),Pe(oe)},Fe=()=>{const X=Ee.current[Q];let oe=0;const xe=Array.from(Le.current.children);for(let Ce=0;Ce<xe.length;Ce+=1){const _e=xe[Ce];if(oe+_e[Q]>X){Ce===0&&(oe=X);break}oe+=_e[Q]}return oe},tt=()=>{je(-1*Fe())},Xe=()=>{je(Fe())},Ye=T.useCallback(X=>{we({overflow:null,scrollbarWidth:X})},[]),st=()=>{const X={};X.scrollbarSizeListener=W?S.jsx(b$e,{onChange:Ye,className:Ge(ee.scrollableX,ee.hideScrollbar)}):null;const oe=ae.start||ae.end,xe=W&&(x==="auto"&&oe||x===!0);return X.scrollButtonStart=xe?S.jsx(b,M({orientation:w,direction:o?"right":"left",onClick:tt,disabled:!ae.start},R,{className:Ge(ee.scrollButtons,R.className)})):null,X.scrollButtonEnd=xe?S.jsx(b,M({orientation:w,direction:o?"left":"right",onClick:Xe,disabled:!ae.end},R,{className:Ge(ee.scrollButtons,R.className)})):null,X},he=Oi(X=>{const{tabsMeta:oe,tabMeta:xe}=Be();if(!(!xe||!oe)){if(xe[K]<oe[K]){const Ce=oe[se]+(xe[K]-oe[K]);Pe(Ce,{animation:X})}else if(xe[G]>oe[G]){const Ce=oe[se]+(xe[G]-oe[G]);Pe(Ce,{animation:X})}}}),Ae=Oi(()=>{if(W&&x!==!1){const{scrollTop:X,scrollHeight:oe,clientHeight:xe,scrollWidth:Ce,clientWidth:_e}=Ee.current;let nt,rt;if(ie)nt=X>1,rt=X<oe-xe-1;else{const de=kN(Ee.current,i.direction);nt=o?de<Ce-_e-1:de>1,rt=o?de>1:de<Ce-_e-1}(nt!==ae.start||rt!==ae.end)&&ue({start:nt,end:rt})}});T.useEffect(()=>{const X=yf(()=>{Ee.current&&(Ie(),Ae())}),oe=da(Ee.current);oe.addEventListener("resize",X);let xe;return typeof ResizeObserver<"u"&&(xe=new ResizeObserver(X),Array.from(Le.current.children).forEach(Ce=>{xe.observe(Ce)})),()=>{X.clear(),oe.removeEventListener("resize",X),xe&&xe.disconnect()}},[Ie,Ae]);const Re=T.useMemo(()=>yf(()=>{Ae()}),[Ae]);T.useEffect(()=>()=>{Re.clear()},[Re]),T.useEffect(()=>{ge(!0)},[]),T.useEffect(()=>{Ie(),Ae()}),T.useEffect(()=>{he(r3!==B)},[he,B]),T.useImperativeHandle(l,()=>({updateIndicator:Ie,updateScrollButtons:Ae}),[Ie,Ae]);const Ne=S.jsx(y$e,M({},k,{className:Ge(ee.indicator,k.className),ownerState:Z,style:M({},B,k.style)}));let U=0;const H=T.Children.map(f,X=>{if(!T.isValidElement(X))return null;const oe=X.props.value===void 0?U:X.props.value;Te.set(oe,U);const xe=oe===O;return U+=1,T.cloneElement(X,M({fullWidth:z==="fullWidth",indicator:xe&&!P&&Ne,selected:xe,selectionFollowsFocus:C,onChange:y,textColor:A,value:oe},U===1&&O===!1&&!X.props.tabIndex?{tabIndex:0}:{}))}),fe=X=>{const oe=Le.current,xe=nr(oe).activeElement;if(xe.getAttribute("role")!=="tab")return;let _e=w==="horizontal"?"ArrowLeft":"ArrowUp",nt=w==="horizontal"?"ArrowRight":"ArrowDown";switch(w==="horizontal"&&o&&(_e="ArrowRight",nt="ArrowLeft"),X.key){case _e:X.preventDefault(),j1(oe,xe,n3);break;case nt:X.preventDefault(),j1(oe,xe,t3);break;case"Home":X.preventDefault(),j1(oe,null,t3);break;case"End":X.preventDefault(),j1(oe,null,n3);break}},Y=st();return S.jsxs(g$e,M({className:Ge(ee.root,d),ownerState:Z,ref:n,as:p},D,{children:[Y.scrollButtonStart,Y.scrollbarSizeListener,S.jsxs(m$e,{className:ee.scroller,ownerState:Z,style:{overflow:ne.overflow,[ie?`margin${o?"Left":"Right"}`:"marginBottom"]:V?void 0:-ne.scrollbarWidth},ref:Ee,onScroll:Re,children:[S.jsx(v$e,{"aria-label":a,"aria-labelledby":s,"aria-orientation":w==="vertical"?"vertical":null,className:ee.flexContainer,ownerState:Z,onKeyDown:fe,ref:Le,role:"tablist",children:H}),P&&Ne]}),Y.scrollButtonEnd]}))}),x$e=_$e;function w$e(e){return mt("MuiTextField",e)}vt("MuiTextField",["root"]);const S$e=["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"],C$e={standard:vV,filled:cV,outlined:EV},E$e=e=>{const{classes:t}=e;return yt({root:["root"]},w$e,t)},k$e=Me(fV,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),T$e=T.forwardRef(function(t,n){const r=bt({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:g=!1,helperText:v,id:y,InputLabelProps:w,inputProps:b,InputProps:x,inputRef:C,label:k,maxRows:R,minRows:A,multiline:O=!1,name:z,onBlur:V,onChange:D,onFocus:W,placeholder:ie,required:se=!1,rows:K,select:G=!1,SelectProps:Q,type:le,value:Z,variant:ee="outlined"}=r,P=Je(r,S$e),ge=M({},r,{autoFocus:o,color:l,disabled:f,error:d,fullWidth:g,multiline:O,required:se,select:G,variant:ee}),B=E$e(ge),L={};ee==="outlined"&&(w&&typeof w.shrink<"u"&&(L.notched=w.shrink),L.label=k),G&&((!Q||!Q.native)&&(L.id=void 0),L["aria-describedby"]=void 0);const ae=py(y),ue=v&&ae?`${ae}-helper-text`:void 0,ne=k&&ae?`${ae}-label`:void 0,we=C$e[ee],Te=S.jsx(we,M({"aria-describedby":ue,autoComplete:i,autoFocus:o,defaultValue:u,fullWidth:g,multiline:O,name:z,rows:K,maxRows:R,minRows:A,type:le,value:Z,id:ae,inputRef:C,onBlur:V,onChange:D,onFocus:W,placeholder:ie,inputProps:b},L,x));return S.jsxs(k$e,M({className:Ge(B.root,s),disabled:f,error:d,fullWidth:g,ref:n,required:se,color:l,variant:ee,ownerState:ge},P,{children:[k!=null&&k!==""&&S.jsx(yV,M({htmlFor:ae,id:ne},w,{children:k})),G?S.jsx(TV,M({"aria-describedby":ue,id:ae,labelId:ne,value:Z,input:Te},Q,{children:a})):Te,v&&S.jsx(dV,M({id:ue},p,{children:v}))]}))}),lS=T$e;var vA=function(e,t){return vA=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])},vA(e,t)};function R$e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");vA(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var zr=function(){return zr=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},zr.apply(this,arguments)};function A$e(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 Od(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 Id(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 Cs(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 ap=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function K2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function W2(e,t){return e(t={exports:{}},t.exports),t.exports}var jc=W2(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()}});K2(jc);var $$e=K2(W2(function(e,t){var n=ap&&ap.__awaiter||function(l,u,f,d){return new(f||(f=Promise))(function(p,g){function v(b){try{w(d.next(b))}catch(x){g(x)}}function y(b){try{w(d.throw(b))}catch(x){g(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=ap&&ap.__generator||function(l,u){var f,d,p,g,v={label:0,sent:function(){if(1&p[0])throw p[1];return p[1]},trys:[],ops:[]};return g={next:y(0),throw:y(1),return:y(2)},typeof Symbol=="function"&&(g[Symbol.iterator]=function(){return this}),g;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(C){x=[6,C],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,g,v,y,w;return r(this,function(b){switch(b.label){case 0:d=Date.now()+a(4),p=Date.now()+f,g=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(g)!==null?[3,5]:(y=this.id+"-"+u+"-"+d,[4,o(Math.floor(25*Math.random()))]);case 3:return b.sent(),v.setItem(g,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(g))!==null&&(w=JSON.parse(w)).id===this.id&&w.iat===d?(this.acquiredIatSet.add(d),this.refreshLockWhileAcquired(g,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 g,v;return r(this,function(y){switch(y.label){case 0:return[4,jc.default().lock(f)];case 1:return y.sent(),this.acquiredIatSet.has(f)?(g=window.localStorage,(v=g.getItem(u))===null?(jc.default().unlock(f),[2]):((v=JSON.parse(v)).timeRefreshed=Date.now(),g.setItem(u,JSON.stringify(v)),jc.default().unlock(f),this.refreshLockWhileAcquired(u,f),[2])):(jc.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,g=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()-g);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(g){switch(g.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,jc.default().lock(p.iat)];case 1:g.sent(),this.acquiredIatSet.delete(p.iat),f.removeItem(d),jc.default().unlock(p.iat),l.notifyWaiters(),g.label=2;case 2:return[2]}})})},l.lockCorrector=function(){for(var u=Date.now()-5e3,f=window.localStorage,d=Object.keys(f),p=!1,g=0;g<d.length;g++){var v=d[g];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 O$e={timeoutInSeconds:60},AV={name:"auth0-spa-js",version:"2.0.4"},$V=()=>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)}}let I$e=class OV extends la{constructor(t,n,r,i=null){super(t,n),this.state=r,this.appState=i,Object.setPrototypeOf(this,OV.prototype)}},yA=class IV extends la{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,IV.prototype)}},D$e=class DV extends yA{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,DV.prototype)}},P$e=class PV extends la{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,PV.prototype)}},L$e=class LV extends la{constructor(t,n,r){super(t,n),this.mfa_token=r,Object.setPrototypeOf(this,LV.prototype)}};class uS extends la{constructor(t,n){super("missing_refresh_token",`Missing Refresh Token (audience: '${i3(t,["default"])}', scope: '${i3(n)}')`),this.audience=t,this.scope=n,Object.setPrototypeOf(this,uS.prototype)}}function i3(e,t=[]){return e&&!t.includes(e)?e:""}const Vb=()=>window.crypto,_k=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let t="";return Array.from(Vb().getRandomValues(new Uint8Array(43))).forEach(n=>t+=e[n%e.length]),t},o3=e=>btoa(e),bA=e=>{var{clientId:t}=e,n=Cs(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()},a3=e=>(t=>decodeURIComponent(atob(t).split("").map(n=>"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),M$e=async(e,t)=>{const n=await fetch(e,t);return{ok:n.ok,json:await n.json()}},F$e=async(e,t,n)=>{const r=new AbortController;let i;return t.signal=r.signal,Promise.race([M$e(e,t),new Promise((o,a)=>{i=setTimeout(()=>{r.abort(),a(new Error("Timeout when executing 'fetch'"))},n)})]).finally(()=>{clearTimeout(i)})},N$e=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},B$e=async(e,t,n,r,i,o,a=1e4)=>i?N$e(e,t,n,r,a,i,o):F$e(e,r,a);async function j$e(e,t){var{baseUrl:n,timeout:r,audience:i,scope:o,auth0Client:a,useFormData:s}=e,l=Cs(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const u=s?bA(l):JSON.stringify(l);return await async function(f,d,p,g,v,y,w){let b,x=null;for(let z=0;z<3;z++)try{b=await B$e(f,p,g,v,y,w,d),x=null;break}catch(V){x=V}if(x)throw x;const C=b.json,{error:k,error_description:R}=C,A=Cs(C,["error","error_description"]),{ok:O}=b;if(!O){const z=R||`HTTP error. Unable to fetch ${f}`;throw k==="mfa_required"?new L$e(k,z,A.mfa_token):k==="missing_refresh_token"?new uS(p,g):new la(k||"request_error",z)}return A}(`${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||AV))}},t,s)}const z1=(...e)=>{return(t=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(t))).join(" ");var t};class Os{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 Os({clientId:r,scope:o,audience:i},n)}static fromCacheEntry(t){const{scope:n,audience:r,client_id:i}=t;return new Os({scope:n,audience:r,clientId:i})}}class z$e{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 MV{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 U$e{constructor(t,n,r){this.cache=t,this.keyManifest=n,this.nowProvider=r||$V}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 Os({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 Os({clientId:t},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(t,n){return n.filter(r=>{var i;const o=Os.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 K$e{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 am=e=>typeof e=="number",W$e=["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"],V$e=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(a3(l)),d={__raw:o},p={};return Object.keys(f).forEach(g=>{d[g]=f[g],W$e.includes(g)||(p[g]=f[g])}),{encoded:{header:s,payload:l,signature:u},header:JSON.parse(a3(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&&!am(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||!am(t.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!am(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&&am(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&&am(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 tf=W2(function(e,t){var n=ap&&ap.__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 g=f[p].split("="),v=g.slice(1).join("=");v.charAt(0)==='"'&&(v=v.slice(1,-1));try{u[g[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}))}});K2(tf),tf.encode,tf.parse,tf.getAll;var H$e=tf.get,FV=tf.set,NV=tf.remove;const Kd={get(e){const t=H$e(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),FV(e,JSON.stringify(t),r)},remove(e,t){let n={};t!=null&&t.cookieDomain&&(n.domain=t.cookieDomain),NV(e,n)}},q$e={get(e){return Kd.get(e)||Kd.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),FV(`_legacy_${e}`,JSON.stringify(t),r),Kd.save(e,t,n)},remove(e,t){let n={};t!=null&&t.cookieDomain&&(n.domain=t.cookieDomain),NV(e,n),Kd.remove(e,t),Kd.remove(`_legacy_${e}`,t)}},G$e={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 Y$e(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,g=f.length;p<g;++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(`
|
|
369
|
+
`,10)+1,a=i.substring(o)+(r?"//# sourceMappingURL="+r:""),s=new Blob([a],{type:"application/javascript"});return URL.createObjectURL(s)}var s3,l3,u3,xk,X$e=(s3="Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9Y29uc3Qgcz1lPT57dmFye2NsaWVudElkOnR9PWUscj1mdW5jdGlvbihlLHQpe3ZhciByPXt9O2Zvcih2YXIgcyBpbiBlKU9iamVjdC5wcm90b3R5cGUuaGFzT3duUHJvcGVydHkuY2FsbChlLHMpJiZ0LmluZGV4T2Yocyk8MCYmKHJbc109ZVtzXSk7aWYobnVsbCE9ZSYmImZ1bmN0aW9uIj09dHlwZW9mIE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMpe3ZhciBvPTA7Zm9yKHM9T2JqZWN0LmdldE93blByb3BlcnR5U3ltYm9scyhlKTtvPHMubGVuZ3RoO28rKyl0LmluZGV4T2Yoc1tvXSk8MCYmT2JqZWN0LnByb3RvdHlwZS5wcm9wZXJ0eUlzRW51bWVyYWJsZS5jYWxsKGUsc1tvXSkmJihyW3Nbb11dPWVbc1tvXV0pfXJldHVybiByfShlLFsiY2xpZW50SWQiXSk7cmV0dXJuIG5ldyBVUkxTZWFyY2hQYXJhbXMoKGU9Pk9iamVjdC5rZXlzKGUpLmZpbHRlcigodD0+dm9pZCAwIT09ZVt0XSkpLnJlZHVjZSgoKHQscik9Pk9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSx0KSx7W3JdOmVbcl19KSkse30pKShPYmplY3QuYXNzaWduKHtjbGllbnRfaWQ6dH0scikpKS50b1N0cmluZygpfTtsZXQgbz17fTtjb25zdCBuPShlLHQpPT5gJHtlfXwke3R9YDthZGRFdmVudExpc3RlbmVyKCJtZXNzYWdlIiwoYXN5bmMoe2RhdGE6e3RpbWVvdXQ6ZSxhdXRoOnIsZmV0Y2hVcmw6aSxmZXRjaE9wdGlvbnM6Yyx1c2VGb3JtRGF0YTphfSxwb3J0czpbZl19KT0+e2xldCBwO2NvbnN0e2F1ZGllbmNlOmwsc2NvcGU6dX09cnx8e307dHJ5e2NvbnN0IHI9YT8oZT0+e2NvbnN0IHQ9bmV3IFVSTFNlYXJjaFBhcmFtcyhlKSxyPXt9O3JldHVybiB0LmZvckVhY2goKChlLHQpPT57clt0XT1lfSkpLHJ9KShjLmJvZHkpOkpTT04ucGFyc2UoYy5ib2R5KTtpZighci5yZWZyZXNoX3Rva2VuJiYicmVmcmVzaF90b2tlbiI9PT1yLmdyYW50X3R5cGUpe2NvbnN0IGU9KChlLHQpPT5vW24oZSx0KV0pKGwsdSk7aWYoIWUpdGhyb3cgbmV3IHQobCx1KTtjLmJvZHk9YT9zKE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpOkpTT04uc3RyaW5naWZ5KE9iamVjdC5hc3NpZ24oT2JqZWN0LmFzc2lnbih7fSxyKSx7cmVmcmVzaF90b2tlbjplfSkpfWxldCBkLGc7ImZ1bmN0aW9uIj09dHlwZW9mIEFib3J0Q29udHJvbGxlciYmKGQ9bmV3IEFib3J0Q29udHJvbGxlcixjLnNpZ25hbD1kLnNpZ25hbCk7dHJ5e2c9YXdhaXQgUHJvbWlzZS5yYWNlKFsoaD1lLG5ldyBQcm9taXNlKChlPT5zZXRUaW1lb3V0KGUsaCkpKSksZmV0Y2goaSxPYmplY3QuYXNzaWduKHt9LGMpKV0pfWNhdGNoKGUpe3JldHVybiB2b2lkIGYucG9zdE1lc3NhZ2Uoe2Vycm9yOmUubWVzc2FnZX0pfWlmKCFnKXJldHVybiBkJiZkLmFib3J0KCksdm9pZCBmLnBvc3RNZXNzYWdlKHtlcnJvcjoiVGltZW91dCB3aGVuIGV4ZWN1dGluZyAnZmV0Y2gnIn0pO3A9YXdhaXQgZy5qc29uKCkscC5yZWZyZXNoX3Rva2VuPygoKGUsdCxyKT0+e29bbih0LHIpXT1lfSkocC5yZWZyZXNoX3Rva2VuLGwsdSksZGVsZXRlIHAucmVmcmVzaF90b2tlbik6KChlLHQpPT57ZGVsZXRlIG9bbihlLHQpXX0pKGwsdSksZi5wb3N0TWVzc2FnZSh7b2s6Zy5vayxqc29uOnB9KX1jYXRjaChlKXtmLnBvc3RNZXNzYWdlKHtvazohMSxqc29uOntlcnJvcjplLmVycm9yLGVycm9yX2Rlc2NyaXB0aW9uOmUubWVzc2FnZX19KX12YXIgaH0pKX0oKTsKCg==",l3=null,u3=!1,function(e){return xk=xk||Y$e(s3,l3,u3),new Worker(xk,e)});const wk={};class Z$e{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 J$e={memory:()=>new MV().enclosedCache,localstorage:()=>new z$e},c3=e=>J$e[e],f3=e=>{const{openUrl:t,onRedirect:n}=e,r=Cs(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},r),{openUrl:t===!1||t?t:n})},Sk=new $$e;class Q$e{constructor(t){let n,r;if(this.userCache=new MV().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await Sk.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(!Vb())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(Vb().subtle===void 0)throw new Error(`
|
|
370
|
+
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.
|
|
371
|
+
`)})(),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",!c3(n))throw new Error(`Invalid cache location "${n}"`);r=c3(n)()}this.httpTimeoutMs=t.httpTimeoutInSeconds?1e3*t.httpTimeoutInSeconds:1e4,this.cookieStorage=t.legacySameSiteCookie===!1?Kd:q$e,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:G$e;var o;this.scope=z1("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new K$e(i,this.options.clientId),this.nowProvider=this.options.nowProvider||$V,this.cacheManager=new U$e(r,r.allKeys?void 0:new Z$e(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 X$e)}_url(t){const n=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||AV)));return`${this.domainUrl}${t}&auth0Client=${n}`}_authorizeUrl(t){return this._url(`/authorize?${bA(t)}`)}async _verifyIdToken(t,n,r){const i=await this.nowProvider();return V$e({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=o3(_k()),o=o3(_k()),a=_k(),s=(f=>{const d=new Uint8Array(f);return(p=>{const g={"+":"-","/":"_","=":""};return p.replace(/[+/=]/g,v=>g[v])})(window.btoa(String.fromCharCode(...Array.from(d))))})(await(async f=>await Vb().subtle.digest({name:"SHA-256"},new TextEncoder().encode(f)))(a)),l=((f,d,p,g,v,y,w,b)=>Object.assign(Object.assign(Object.assign({client_id:f.clientId},f.authorizationParams),p),{scope:z1(d,p.scope),response_type:"code",response_mode:b||"query",state:g,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 P$e(s.popup)))},1e3),p=setTimeout(()=>{clearInterval(d),u(new D$e(s.popup)),window.removeEventListener("message",f,!1)},1e3*(s.timeoutInSeconds||60));f=function(g){if(g.data&&g.data.type==="authorization_response"){if(clearTimeout(p),clearInterval(d),window.removeEventListener("message",f,!1),s.popup.close(),g.data.response.error)return u(la.fromPayload(g.data.response));l(g.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=f3(t),{openUrl:i,fragment:o,appState:a}=r,s=Cs(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=Cs(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 I$e(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:z1(this.scope,(n=t.authorizationParams)===null||n===void 0?void 0:n.scope)})}),i=await((o,a)=>{let s=wk[a];return s||(s=o().finally(()=>{delete wk[a],s=null}),wk[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=Cs(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})(()=>Sk.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new yA;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 Sk.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:z1(this.scope,(r=t.authorizationParams)===null||r===void 0?void 0:r.scope)})});return n=Object.assign(Object.assign({},O$e),n),await this.loginWithPopup(i,n),(await this.cacheManager.get(new Os({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=Cs(n,["federated"]),o=r?"&federated":"";return this._url(`/v2/logout?${bA(Object.assign({clientId:t.clientId},i))}`)+o}async logout(t={}){const n=f3(t),{openUrl:r}=n,i=Cs(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 C=window.document.createElement("iframe");C.setAttribute("width","0"),C.setAttribute("height","0"),C.style.display="none";const k=()=>{window.document.body.contains(C)&&(window.document.body.removeChild(C),window.removeEventListener("message",R,!1))};let R;const A=setTimeout(()=>{x(new yA),k()},1e3*w);R=function(O){if(O.origin!=y||!O.data||O.data.type!=="authorization_response")return;const z=O.source;z&&z.close(),O.data.response.error?x(la.fromPayload(O.data.response)):b(O.data.response),clearTimeout(A),window.removeEventListener("message",R,!1),setTimeout(k,2e3)},window.addEventListener("message",R,!1),window.document.body.appendChild(C),C.setAttribute("src",v)}))(i,this.domainUrl,d);if(o!==p.state)throw new Error("Invalid state");const g=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({},g),{scope:u,oauthTokenScope:g.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 Os({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 uS(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=Cs(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 Os({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 Os({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 j$e(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 BV={isAuthenticated:!1,isLoading:!0},fl=function(){throw new Error("You forgot to wrap your component in <Auth0Provider>.")},eOe=zr(zr({},BV),{buildAuthorizeUrl:fl,buildLogoutUrl:fl,getAccessTokenSilently:fl,getAccessTokenWithPopup:fl,getIdTokenClaims:fl,loginWithRedirect:fl,loginWithPopup:fl,logout:fl,handleRedirectCallback:fl}),jV=T.createContext(eOe),tOe=function(e){R$e(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),nOe=/[?&]code=[^&]+/,rOe=/[?&]state=[^&]+/,iOe=/[?&]error=[^&]+/,oOe=function(e){return e===void 0&&(e=window.location.search),(nOe.test(e)||iOe.test(e))&&rOe.test(e)},zV=function(e){return function(t){return"error"in t?new tOe(t.error,t.error_description):t instanceof Error?t:new Error(e)}},d3=zV("Login failed"),Ck=zV("Get access token failed"),UV=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)},aOe=function(e,t){switch(t.type){case"LOGIN_POPUP_STARTED":return zr(zr({},e),{isLoading:!0});case"LOGIN_POPUP_COMPLETE":case"INITIALISED":return zr(zr({},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:zr(zr({},e),{isAuthenticated:!!t.user,user:t.user});case"LOGOUT":return zr(zr({},e),{isAuthenticated:!1,user:void 0});case"ERROR":return zr(zr({},e),{isLoading:!1,error:t.error})}},sOe=function(e){return UV(e),zr(zr({},e),{auth0Client:{name:"auth0-react",version:"2.0.1"}})},lOe=function(e){window.history.replaceState({},document.title,(e==null?void 0:e.returnTo)||window.location.pathname)},uOe=function(e){var t=e.children,n=e.skipRedirectCallback,r=e.onRedirectCallback,i=r===void 0?lOe:r,o=e.context,a=o===void 0?jV:o,s=A$e(e,["children","skipRedirectCallback","onRedirectCallback","context"]),l=T.useState(function(){return new Q$e(sOe(s))})[0],u=T.useReducer(aOe,BV),f=u[0],d=u[1],p=T.useRef(!1);T.useEffect(function(){p.current||(p.current=!0,function(){return Od(void 0,void 0,void 0,function(){var R,A,O;return Id(this,function(z){switch(z.label){case 0:return z.trys.push([0,7,,8]),R=void 0,oOe()&&!n?[4,l.handleRedirectCallback()]:[3,3];case 1:return A=z.sent().appState,[4,l.getUser()];case 2:return R=z.sent(),i(A,R),[3,6];case 3:return[4,l.checkSession()];case 4:return z.sent(),[4,l.getUser()];case 5:R=z.sent(),z.label=6;case 6:return d({type:"INITIALISED",user:R}),[3,8];case 7:return O=z.sent(),d({type:"ERROR",error:d3(O)}),[3,8];case 8:return[2]}})})}())},[l,i,n]);var g=T.useCallback(function(R){return UV(R),l.loginWithRedirect(R)},[l]),v=T.useCallback(function(R,A){return Od(void 0,void 0,void 0,function(){var O,z;return Id(this,function(V){switch(V.label){case 0:d({type:"LOGIN_POPUP_STARTED"}),V.label=1;case 1:return V.trys.push([1,3,,4]),[4,l.loginWithPopup(R,A)];case 2:return V.sent(),[3,4];case 3:return O=V.sent(),d({type:"ERROR",error:d3(O)}),[2];case 4:return[4,l.getUser()];case 5:return z=V.sent(),d({type:"LOGIN_POPUP_COMPLETE",user:z}),[2]}})})},[l]),y=T.useCallback(function(R){return R===void 0&&(R={}),Od(void 0,void 0,void 0,function(){return Id(this,function(A){switch(A.label){case 0:return[4,l.logout(R)];case 1:return A.sent(),(R.openUrl||R.openUrl===!1)&&d({type:"LOGOUT"}),[2]}})})},[l]),w=T.useCallback(function(R){return Od(void 0,void 0,void 0,function(){var A,O,z,V;return Id(this,function(D){switch(D.label){case 0:return D.trys.push([0,2,3,5]),[4,l.getTokenSilently(R)];case 1:return A=D.sent(),[3,5];case 2:throw O=D.sent(),Ck(O);case 3:return z=d,V={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,l.getUser()];case 4:return z.apply(void 0,[(V.user=D.sent(),V)]),[7];case 5:return[2,A]}})})},[l]),b=T.useCallback(function(R,A){return Od(void 0,void 0,void 0,function(){var O,z,V,D;return Id(this,function(W){switch(W.label){case 0:return W.trys.push([0,2,3,5]),[4,l.getTokenWithPopup(R,A)];case 1:return O=W.sent(),[3,5];case 2:throw z=W.sent(),Ck(z);case 3:return V=d,D={type:"GET_ACCESS_TOKEN_COMPLETE"},[4,l.getUser()];case 4:return V.apply(void 0,[(D.user=W.sent(),D)]),[7];case 5:return[2,O]}})})},[l]),x=T.useCallback(function(){return l.getIdTokenClaims()},[l]),C=T.useCallback(function(R){return Od(void 0,void 0,void 0,function(){var A,O,z;return Id(this,function(V){switch(V.label){case 0:return V.trys.push([0,2,3,5]),[4,l.handleRedirectCallback(R)];case 1:return[2,V.sent()];case 2:throw A=V.sent(),Ck(A);case 3:return O=d,z={type:"HANDLE_REDIRECT_COMPLETE"},[4,l.getUser()];case 4:return O.apply(void 0,[(z.user=V.sent(),z)]),[7];case 5:return[2]}})})},[l]),k=T.useMemo(function(){return zr(zr({},f),{getAccessTokenSilently:w,getAccessTokenWithPopup:b,getIdTokenClaims:x,loginWithRedirect:g,loginWithPopup:v,logout:y,handleRedirectCallback:C})},[f,w,b,x,g,v,y,C]);return gt.createElement(a.Provider,{value:k},t)},cOe=function(e){return e===void 0&&(e=jV),T.useContext(e)};const ya=Yn({key:"ProjectSettings",default:void 0});let U1;const fOe=new Uint8Array(16);function dOe(){if(!U1&&(U1=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!U1))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return U1(fOe)}const Xr=[];for(let e=0;e<256;++e)Xr.push((e+256).toString(16).slice(1));function pOe(e,t=0){return(Xr[e[t+0]]+Xr[e[t+1]]+Xr[e[t+2]]+Xr[e[t+3]]+"-"+Xr[e[t+4]]+Xr[e[t+5]]+"-"+Xr[e[t+6]]+Xr[e[t+7]]+"-"+Xr[e[t+8]]+Xr[e[t+9]]+"-"+Xr[e[t+10]]+Xr[e[t+11]]+Xr[e[t+12]]+Xr[e[t+13]]+Xr[e[t+14]]+Xr[e[t+15]]).toLowerCase()}const hOe=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),p3={randomUUID:hOe};function Z_(e,t,n){if(p3.randomUUID&&!t&&!e)return p3.randomUUID();e=e||{};const r=e.random||(e.rng||dOe)();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 pOe(r)}const Df=Yn({key:"AccessToken",default:void 0}),h3=Yn({key:"SessionId",default:Z_()}),KV=eW({key:"SessionIdSelector",get:({get:e})=>e(h3),set:({set:e},t)=>e(h3,t instanceof bve?Z_():t)}),V2=Yn({key:"Role",default:void 0}),g3=localStorage.getItem("userEnv"),cS=Yn({key:"UserEnv",default:g3?JSON.parse(g3):{}}),sc=()=>{var f;const e=Ct(ya),{isAuthenticated:t,isLoading:n,...r}=cOe(),i=Ct(Df),o=Ct(V2),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 gOe(){const{user:e,error:t}=sc(),n=Zu();return T.useEffect(()=>{e&&n("/")},[e]),t?S.jsx(ro,{severity:"error",children:t.message}):null}var H2={exports:{}},wy={},fS={exports:{}},WV={};const mOe=e9(J1e);var yr={},Ks={};Object.defineProperty(Ks,"__esModule",{value:!0});Ks.dontSetMe=xOe;Ks.findInArray=vOe;Ks.int=_Oe;Ks.isFunction=yOe;Ks.isNum=bOe;function vOe(e,t){for(var n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function yOe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function bOe(e){return typeof e=="number"&&!isNaN(e)}function _Oe(e){return parseInt(e,10)}function xOe(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 Pf={};Object.defineProperty(Pf,"__esModule",{value:!0});Pf.browserPrefixToKey=HV;Pf.browserPrefixToStyle=wOe;Pf.default=void 0;Pf.getPrefix=VV;var Ek=["Moz","Webkit","O","ms"];function VV(){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<Ek.length;i++)if(HV(n,Ek[i])in r)return Ek[i];return""}function HV(e,t){return t?"".concat(t).concat(SOe(e)):e}function wOe(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e}function SOe(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 COe=VV();Pf.default=COe;function _A(e){"@babel/helpers - typeof";return _A=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},_A(e)}Object.defineProperty(yr,"__esModule",{value:!0});yr.addClassName=ZV;yr.addEvent=TOe;yr.addUserSelectStyles=NOe;yr.createCSSTransform=POe;yr.createSVGTransform=LOe;yr.getTouch=MOe;yr.getTouchIdentifier=FOe;yr.getTranslation=q2;yr.innerHeight=OOe;yr.innerWidth=IOe;yr.matchesSelector=XV;yr.matchesSelectorAndParentsTo=kOe;yr.offsetXYFromParent=DOe;yr.outerHeight=AOe;yr.outerWidth=$Oe;yr.removeClassName=JV;yr.removeEvent=ROe;yr.removeUserSelectStyles=BOe;var Ao=Ks,m3=EOe(Pf);function qV(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(qV=function(i){return i?n:t})(e)}function EOe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||_A(e)!=="object"&&typeof e!="function")return{default:e};var n=qV(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 v3(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 GV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?v3(Object(n),!0).forEach(function(r){YV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YV(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var K1="";function XV(e,t){return K1||(K1=(0,Ao.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(n){return(0,Ao.isFunction)(e[n])})),(0,Ao.isFunction)(e[K1])?e[K1](t):!1}function kOe(e,t,n){var r=e;do{if(XV(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1}function TOe(e,t,n,r){if(e){var i=GV({capture:!0},r);e.addEventListener?e.addEventListener(t,n,i):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}}function ROe(e,t,n,r){if(e){var i=GV({capture:!0},r);e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null}}function AOe(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 $Oe(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 OOe(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 IOe(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 DOe(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 POe(e,t){var n=q2(e,t,"px");return YV({},(0,m3.browserPrefixToKey)("transform",m3.default),n)}function LOe(e,t){var n=q2(e,t,"");return n}function q2(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 MOe(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 FOe(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function NOe(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;}
|
|
372
|
+
`,t.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
373
|
+
`,e.getElementsByTagName("head")[0].appendChild(t)),e.body&&ZV(e.body,"react-draggable-transparent-selection")}}function BOe(e){if(e)try{if(e.body&&JV(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 ZV(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function JV(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}var Ws={};Object.defineProperty(Ws,"__esModule",{value:!0});Ws.canDragX=UOe;Ws.canDragY=KOe;Ws.createCoreData=VOe;Ws.createDraggableData=HOe;Ws.getBoundPosition=jOe;Ws.getControlPosition=WOe;Ws.snapToGrid=zOe;var yo=Ks,sp=yr;function jOe(e,t,n){if(!e.props.bounds)return[t,n];var r=e.props.bounds;r=typeof r=="string"?r:qOe(r);var i=G2(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,yo.int)(f.paddingLeft)+(0,yo.int)(u.marginLeft),top:-i.offsetTop+(0,yo.int)(f.paddingTop)+(0,yo.int)(u.marginTop),right:(0,sp.innerWidth)(l)-(0,sp.outerWidth)(i)-i.offsetLeft+(0,yo.int)(f.paddingRight)-(0,yo.int)(u.marginRight),bottom:(0,sp.innerHeight)(l)-(0,sp.outerHeight)(i)-i.offsetTop+(0,yo.int)(f.paddingBottom)-(0,yo.int)(u.marginBottom)}}return(0,yo.isNum)(r.right)&&(t=Math.min(t,r.right)),(0,yo.isNum)(r.bottom)&&(n=Math.min(n,r.bottom)),(0,yo.isNum)(r.left)&&(t=Math.max(t,r.left)),(0,yo.isNum)(r.top)&&(n=Math.max(n,r.top)),[t,n]}function zOe(e,t,n){var r=Math.round(t/e[0])*e[0],i=Math.round(n/e[1])*e[1];return[r,i]}function UOe(e){return e.props.axis==="both"||e.props.axis==="x"}function KOe(e){return e.props.axis==="both"||e.props.axis==="y"}function WOe(e,t,n){var r=typeof t=="number"?(0,sp.getTouch)(e,t):null;if(typeof t=="number"&&!r)return null;var i=G2(n),o=n.props.offsetParent||i.offsetParent||i.ownerDocument.body;return(0,sp.offsetXYFromParent)(r||e,o,n.props.scale)}function VOe(e,t,n){var r=e.state,i=!(0,yo.isNum)(r.lastX),o=G2(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 HOe(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 qOe(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function G2(e){var t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var dS={},pS={};Object.defineProperty(pS,"__esModule",{value:!0});pS.default=GOe;function GOe(){}function J_(e){"@babel/helpers - typeof";return J_=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},J_(e)}Object.defineProperty(dS,"__esModule",{value:!0});dS.default=void 0;var kk=XOe(T),vo=Y2(dy),YOe=Y2(Af),fi=yr,cu=Ws,Tk=Ks,sm=Y2(pS);function Y2(e){return e&&e.__esModule?e:{default:e}}function QV(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(QV=function(i){return i?n:t})(e)}function XOe(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||J_(e)!=="object"&&typeof e!="function")return{default:e};var n=QV(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 y3(e,t){return e2e(e)||QOe(e,t)||JOe(e,t)||ZOe()}function ZOe(){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 JOe(e,t){if(e){if(typeof e=="string")return b3(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 b3(e,t)}}function b3(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 QOe(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 e2e(e){if(Array.isArray(e))return e}function t2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _3(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 n2e(e,t,n){return t&&_3(e.prototype,t),n&&_3(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function r2e(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&&xA(e,t)}function xA(e,t){return xA=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},xA(e,t)}function i2e(e){var t=a2e();return function(){var r=Q_(e),i;if(t){var o=Q_(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return o2e(this,i)}}function o2e(e,t){if(t&&(J_(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pi(e)}function pi(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a2e(){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 Q_(e){return Q_=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Q_(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"}},fu=Ma.mouse,hS=function(e){r2e(n,e);var t=i2e(n);function n(){var r;t2e(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(pi(r),"state",{dragging:!1,lastX:NaN,lastY:NaN,touchIdentifier:null}),Zo(pi(r),"mounted",!1),Zo(pi(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,fi.matchesSelectorAndParentsTo)(s.target,r.props.handle,l)||r.props.cancel&&(0,fi.matchesSelectorAndParentsTo)(s.target,r.props.cancel,l))){s.type==="touchstart"&&s.preventDefault();var f=(0,fi.getTouchIdentifier)(s);r.setState({touchIdentifier:f});var d=(0,cu.getControlPosition)(s,f,pi(r));if(d!=null){var p=d.x,g=d.y,v=(0,cu.createCoreData)(pi(r),p,g);(0,sm.default)("DraggableCore: handleDragStart: %j",v),(0,sm.default)("calling",r.props.onStart);var y=r.props.onStart(s,v);y===!1||r.mounted===!1||(r.props.enableUserSelectHack&&(0,fi.addUserSelectStyles)(u),r.setState({dragging:!0,lastX:p,lastY:g}),(0,fi.addEvent)(u,fu.move,r.handleDrag),(0,fi.addEvent)(u,fu.stop,r.handleDragStop))}}}),Zo(pi(r),"handleDrag",function(s){var l=(0,cu.getControlPosition)(s,r.state.touchIdentifier,pi(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,g=(0,cu.snapToGrid)(r.props.grid,d,p),v=y3(g,2);if(d=v[0],p=v[1],!d&&!p)return;u=r.state.lastX+d,f=r.state.lastY+p}var y=(0,cu.createCoreData)(pi(r),u,f);(0,sm.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(pi(r),"handleDragStop",function(s){if(r.state.dragging){var l=(0,cu.getControlPosition)(s,r.state.touchIdentifier,pi(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,g=(0,cu.snapToGrid)(r.props.grid,d,p),v=y3(g,2);d=v[0],p=v[1],u=r.state.lastX+d,f=r.state.lastY+p}var y=(0,cu.createCoreData)(pi(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,fi.removeUserSelectStyles)(b.ownerDocument),(0,sm.default)("DraggableCore: handleDragStop: %j",y),r.setState({dragging:!1,lastX:NaN,lastY:NaN}),b&&((0,sm.default)("DraggableCore: Removing handlers"),(0,fi.removeEvent)(b.ownerDocument,fu.move,r.handleDrag),(0,fi.removeEvent)(b.ownerDocument,fu.stop,r.handleDragStop))}}}),Zo(pi(r),"onMouseDown",function(s){return fu=Ma.mouse,r.handleDragStart(s)}),Zo(pi(r),"onMouseUp",function(s){return fu=Ma.mouse,r.handleDragStop(s)}),Zo(pi(r),"onTouchStart",function(s){return fu=Ma.touch,r.handleDragStart(s)}),Zo(pi(r),"onTouchEnd",function(s){return fu=Ma.touch,r.handleDragStop(s)}),r}return n2e(n,[{key:"componentDidMount",value:function(){this.mounted=!0;var i=this.findDOMNode();i&&(0,fi.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,fi.removeEvent)(o,Ma.mouse.move,this.handleDrag),(0,fi.removeEvent)(o,Ma.touch.move,this.handleDrag),(0,fi.removeEvent)(o,Ma.mouse.stop,this.handleDragStop),(0,fi.removeEvent)(o,Ma.touch.stop,this.handleDragStop),(0,fi.removeEvent)(i,Ma.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,fi.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:YOe.default.findDOMNode(this)}},{key:"render",value:function(){return kk.cloneElement(kk.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),n}(kk.Component);dS.default=hS;Zo(hS,"displayName","DraggableCore");Zo(hS,"propTypes",{allowAnyClick:vo.default.bool,disabled:vo.default.bool,enableUserSelectHack:vo.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:vo.default.arrayOf(vo.default.number),handle:vo.default.string,cancel:vo.default.string,nodeRef:vo.default.object,onStart:vo.default.func,onDrag:vo.default.func,onStop:vo.default.func,onMouseDown:vo.default.func,scale:vo.default.number,className:Tk.dontSetMe,style:Tk.dontSetMe,transform:Tk.dontSetMe});Zo(hS,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(e){function t(B){"@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(B)}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(dy),i=p(Af),o=p(mOe),a=yr,s=Ws,l=Ks,u=p(dS),f=p(pS),d=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function p(B){return B&&B.__esModule?B:{default:B}}function g(B){if(typeof WeakMap!="function")return null;var L=new WeakMap,ae=new WeakMap;return(g=function(ne){return ne?ae:L})(B)}function v(B,L){if(!L&&B&&B.__esModule)return B;if(B===null||t(B)!=="object"&&typeof B!="function")return{default:B};var ae=g(L);if(ae&&ae.has(B))return ae.get(B);var ue={},ne=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var we in B)if(we!=="default"&&Object.prototype.hasOwnProperty.call(B,we)){var Te=ne?Object.getOwnPropertyDescriptor(B,we):null;Te&&(Te.get||Te.set)?Object.defineProperty(ue,we,Te):ue[we]=B[we]}return ue.default=B,ae&&ae.set(B,ue),ue}function y(){return y=Object.assign||function(B){for(var L=1;L<arguments.length;L++){var ae=arguments[L];for(var ue in ae)Object.prototype.hasOwnProperty.call(ae,ue)&&(B[ue]=ae[ue])}return B},y.apply(this,arguments)}function w(B,L){if(B==null)return{};var ae=b(B,L),ue,ne;if(Object.getOwnPropertySymbols){var we=Object.getOwnPropertySymbols(B);for(ne=0;ne<we.length;ne++)ue=we[ne],!(L.indexOf(ue)>=0)&&Object.prototype.propertyIsEnumerable.call(B,ue)&&(ae[ue]=B[ue])}return ae}function b(B,L){if(B==null)return{};var ae={},ue=Object.keys(B),ne,we;for(we=0;we<ue.length;we++)ne=ue[we],!(L.indexOf(ne)>=0)&&(ae[ne]=B[ne]);return ae}function x(B,L){var ae=Object.keys(B);if(Object.getOwnPropertySymbols){var ue=Object.getOwnPropertySymbols(B);L&&(ue=ue.filter(function(ne){return Object.getOwnPropertyDescriptor(B,ne).enumerable})),ae.push.apply(ae,ue)}return ae}function C(B){for(var L=1;L<arguments.length;L++){var ae=arguments[L]!=null?arguments[L]:{};L%2?x(Object(ae),!0).forEach(function(ue){P(B,ue,ae[ue])}):Object.getOwnPropertyDescriptors?Object.defineProperties(B,Object.getOwnPropertyDescriptors(ae)):x(Object(ae)).forEach(function(ue){Object.defineProperty(B,ue,Object.getOwnPropertyDescriptor(ae,ue))})}return B}function k(B,L){return V(B)||z(B,L)||A(B,L)||R()}function R(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
375
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A(B,L){if(B){if(typeof B=="string")return O(B,L);var ae=Object.prototype.toString.call(B).slice(8,-1);if(ae==="Object"&&B.constructor&&(ae=B.constructor.name),ae==="Map"||ae==="Set")return Array.from(B);if(ae==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ae))return O(B,L)}}function O(B,L){(L==null||L>B.length)&&(L=B.length);for(var ae=0,ue=new Array(L);ae<L;ae++)ue[ae]=B[ae];return ue}function z(B,L){var ae=B==null?null:typeof Symbol<"u"&&B[Symbol.iterator]||B["@@iterator"];if(ae!=null){var ue=[],ne=!0,we=!1,Te,Ee;try{for(ae=ae.call(B);!(ne=(Te=ae.next()).done)&&(ue.push(Te.value),!(L&&ue.length===L));ne=!0);}catch(Le){we=!0,Ee=Le}finally{try{!ne&&ae.return!=null&&ae.return()}finally{if(we)throw Ee}}return ue}}function V(B){if(Array.isArray(B))return B}function D(B,L){if(!(B instanceof L))throw new TypeError("Cannot call a class as a function")}function W(B,L){for(var ae=0;ae<L.length;ae++){var ue=L[ae];ue.enumerable=ue.enumerable||!1,ue.configurable=!0,"value"in ue&&(ue.writable=!0),Object.defineProperty(B,ue.key,ue)}}function ie(B,L,ae){return L&&W(B.prototype,L),ae&&W(B,ae),Object.defineProperty(B,"prototype",{writable:!1}),B}function se(B,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(L&&L.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),Object.defineProperty(B,"prototype",{writable:!1}),L&&K(B,L)}function K(B,L){return K=Object.setPrototypeOf||function(ue,ne){return ue.__proto__=ne,ue},K(B,L)}function G(B){var L=Z();return function(){var ue=ee(B),ne;if(L){var we=ee(this).constructor;ne=Reflect.construct(ue,arguments,we)}else ne=ue.apply(this,arguments);return Q(this,ne)}}function Q(B,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(B)}function le(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function Z(){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 ee(B){return ee=Object.setPrototypeOf?Object.getPrototypeOf:function(ae){return ae.__proto__||Object.getPrototypeOf(ae)},ee(B)}function P(B,L,ae){return L in B?Object.defineProperty(B,L,{value:ae,enumerable:!0,configurable:!0,writable:!0}):B[L]=ae,B}var ge=function(B){se(ae,B);var L=G(ae);function ae(ue){var ne;return D(this,ae),ne=L.call(this,ue),P(le(ne),"onDragStart",function(we,Te){(0,f.default)("Draggable: onDragStart: %j",Te);var Ee=ne.props.onStart(we,(0,s.createDraggableData)(le(ne),Te));if(Ee===!1)return!1;ne.setState({dragging:!0,dragged:!0})}),P(le(ne),"onDrag",function(we,Te){if(!ne.state.dragging)return!1;(0,f.default)("Draggable: onDrag: %j",Te);var Ee=(0,s.createDraggableData)(le(ne),Te),Le={x:Ee.x,y:Ee.y};if(ne.props.bounds){var Be=Le.x,Ie=Le.y;Le.x+=ne.state.slackX,Le.y+=ne.state.slackY;var Pe=(0,s.getBoundPosition)(le(ne),Le.x,Le.y),je=k(Pe,2),Fe=je[0],tt=je[1];Le.x=Fe,Le.y=tt,Le.slackX=ne.state.slackX+(Be-Le.x),Le.slackY=ne.state.slackY+(Ie-Le.y),Ee.x=Le.x,Ee.y=Le.y,Ee.deltaX=Le.x-ne.state.x,Ee.deltaY=Le.y-ne.state.y}var Xe=ne.props.onDrag(we,Ee);if(Xe===!1)return!1;ne.setState(Le)}),P(le(ne),"onDragStop",function(we,Te){if(!ne.state.dragging)return!1;var Ee=ne.props.onStop(we,(0,s.createDraggableData)(le(ne),Te));if(Ee===!1)return!1;(0,f.default)("Draggable: onDragStop: %j",Te);var Le={dragging:!1,slackX:0,slackY:0},Be=!!ne.props.position;if(Be){var Ie=ne.props.position,Pe=Ie.x,je=Ie.y;Le.x=Pe,Le.y=je}ne.setState(Le)}),ne.state={dragging:!1,dragged:!1,x:ue.position?ue.position.x:ue.defaultPosition.x,y:ue.position?ue.position.y:ue.defaultPosition.y,prevPropsPosition:C({},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."),ne}return ie(ae,[{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 ne,we,Te;return(ne=(we=this.props)===null||we===void 0||(Te=we.nodeRef)===null||Te===void 0?void 0:Te.current)!==null&&ne!==void 0?ne:i.default.findDOMNode(this)}},{key:"render",value:function(){var ne,we=this.props;we.axis,we.bounds;var Te=we.children,Ee=we.defaultPosition,Le=we.defaultClassName,Be=we.defaultClassNameDragging,Ie=we.defaultClassNameDragged,Pe=we.position,je=we.positionOffset;we.scale;var Fe=w(we,d),tt={},Xe=null,Ye=!!Pe,st=!Ye||this.state.dragging,he=Pe||Ee,Ae={x:(0,s.canDragX)(this)&&st?this.state.x:he.x,y:(0,s.canDragY)(this)&&st?this.state.y:he.y};this.state.isElementSVG?Xe=(0,a.createSVGTransform)(Ae,je):tt=(0,a.createCSSTransform)(Ae,je);var Re=(0,o.default)(Te.props.className||"",Le,(ne={},P(ne,Be,this.state.dragging),P(ne,Ie,this.state.dragged),ne));return n.createElement(u.default,y({},Fe,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),n.cloneElement(n.Children.only(Te),{className:Re,style:C(C({},Te.props.style),tt),transform:Xe}))}}],[{key:"getDerivedStateFromProps",value:function(ne,we){var Te=ne.position,Ee=we.prevPropsPosition;return Te&&(!Ee||Te.x!==Ee.x||Te.y!==Ee.y)?((0,f.default)("Draggable: getDerivedStateFromProps %j",{position:Te,prevPropsPosition:Ee}),{x:Te.x,y:Te.y,prevPropsPosition:C({},Te)}):null}}]),ae}(n.Component);e.default=ge,P(ge,"displayName","Draggable"),P(ge,"propTypes",C(C({},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(ge,"defaultProps",C(C({},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}))})(WV);var eH=WV,tH=eH.default,s2e=eH.DraggableCore;fS.exports=tH;fS.exports.default=tH;fS.exports.DraggableCore=s2e;var l2e=fS.exports,X2={};X2.__esModule=!0;X2.cloneElement=h2e;var u2e=c2e(T);function c2e(e){return e&&e.__esModule?e:{default:e}}function x3(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 w3(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?x3(Object(n),!0).forEach(function(r){f2e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function f2e(e,t,n){return t=d2e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d2e(e){var t=p2e(e,"string");return typeof t=="symbol"?t:String(t)}function p2e(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 h2e(e,t){return t.style&&e.props.style&&(t.style=w3(w3({},e.props.style),t.style)),t.className&&e.props.className&&(t.className=e.props.className+" "+t.className),u2e.default.cloneElement(e,t)}var Sy={};Sy.__esModule=!0;Sy.resizableProps=void 0;var Ft=g2e(dy);function g2e(e){return e&&e.__esModule?e:{default:e}}var m2e={axis:Ft.default.oneOf(["both","x","y","none"]),className:Ft.default.string,children:Ft.default.element.isRequired,draggableOpts:Ft.default.shape({allowAnyClick:Ft.default.bool,cancel:Ft.default.string,children:Ft.default.node,disabled:Ft.default.bool,enableUserSelectHack:Ft.default.bool,offsetParent:Ft.default.node,grid:Ft.default.arrayOf(Ft.default.number),handle:Ft.default.string,nodeRef:Ft.default.object,onStart:Ft.default.func,onDrag:Ft.default.func,onStop:Ft.default.func,onMouseDown:Ft.default.func,scale:Ft.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=Ft.default.number).isRequired.apply(o,n)}return Ft.default.number.apply(Ft.default,n)},handle:Ft.default.oneOfType([Ft.default.node,Ft.default.func]),handleSize:Ft.default.arrayOf(Ft.default.number),lockAspectRatio:Ft.default.bool,maxConstraints:Ft.default.arrayOf(Ft.default.number),minConstraints:Ft.default.arrayOf(Ft.default.number),onResizeStop:Ft.default.func,onResizeStart:Ft.default.func,onResize:Ft.default.func,resizeHandles:Ft.default.arrayOf(Ft.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:Ft.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=Ft.default.number).isRequired.apply(o,n)}return Ft.default.number.apply(Ft.default,n)}};Sy.resizableProps=m2e;wy.__esModule=!0;wy.default=void 0;var lm=x2e(T),v2e=l2e,y2e=X2,b2e=Sy,_2e=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function nH(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(nH=function(i){return i?n:t})(e)}function x2e(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=nH(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 wA(){return wA=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},wA.apply(this,arguments)}function w2e(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 S3(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 Rk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?S3(Object(n),!0).forEach(function(r){S2e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function S2e(e,t,n){return t=C2e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C2e(e){var t=E2e(e,"string");return typeof t=="symbol"?t:String(t)}function E2e(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 k2e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,SA(e,t)}function SA(e,t){return SA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},SA(e,t)}var Z2=function(e){k2e(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 g=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+(g-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",g=(a.props.axis==="both"||a.props.axis==="y")&&o!=="e"&&o!=="w";if(!(!p&&!g)){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 C=a.props.width+(p?f/a.props.transformScale:0),k=a.props.height+(g?d/a.props.transformScale:0),R=a.runConstraints(C,k);C=R[0],k=R[1];var A=C!==a.props.width||k!==a.props.height,O=typeof a.props[i]=="function"?a.props[i]:null,z=i==="onResize"&&!A;O&&!z&&(s.persist==null||s.persist(),O(s,{node:u,size:{width:C,height:k},handle:o})),i==="onResizeStop"&&a.resetData()}}},n.renderResizeHandle=function(i,o){var a=this.props.handle;if(!a)return lm.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=Rk({ref:o},s?{}:{handleAxis:i});return lm.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=w2e(o,_2e);return(0,y2e.cloneElement)(a,Rk(Rk({},f),{},{className:(s?s+" ":"")+"react-resizable",children:[].concat(a.props.children,u.map(function(d){var p,g=(p=i.handleRefs[d])!=null?p:i.handleRefs[d]=lm.createRef();return lm.createElement(v2e.DraggableCore,wA({},l,{nodeRef:g,key:"resizableHandle-"+d,onStop:i.resizeHandler("onResizeStop",d),onStart:i.resizeHandler("onResizeStart",d),onDrag:i.resizeHandler("onResize",d)}),i.renderResizeHandle(d,g))}))}))},t}(lm.Component);wy.default=Z2;Z2.propTypes=b2e.resizableProps;Z2.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var gS={};gS.__esModule=!0;gS.default=void 0;var Ak=O2e(T),T2e=rH(dy),R2e=rH(wy),A2e=Sy,$2e=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function rH(e){return e&&e.__esModule?e:{default:e}}function iH(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(iH=function(i){return i?n:t})(e)}function O2e(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=iH(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 CA(){return CA=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},CA.apply(this,arguments)}function C3(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 ex(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?C3(Object(n),!0).forEach(function(r){I2e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C3(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function I2e(e,t,n){return t=D2e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D2e(e){var t=P2e(e,"string");return typeof t=="symbol"?t:String(t)}function P2e(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 L2e(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 M2e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,EA(e,t)}function EA(e,t){return EA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},EA(e,t)}var oH=function(e){M2e(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,g=i.axis;i.width,i.height;var v=i.resizeHandles,y=i.style,w=i.transformScale,b=L2e(i,$2e);return Ak.createElement(R2e.default,{axis:g,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},Ak.createElement("div",CA({},b,{style:ex(ex({},y),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},t}(Ak.Component);gS.default=oH;oH.propTypes=ex(ex({},A2e.resizableProps),{},{children:T2e.default.element});H2.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")};var F2e=H2.exports.Resizable=wy.default;H2.exports.ResizableBox=gS.default;var N2e=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 B2e(){const[e,t]=T.useState(null);return[e,r=>N2e(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 j2e(e,t,n,r){const i=T.useRef(t);sH(()=>{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 aH(){const e=T.useRef(!0);return e.current?(e.current=!1,!0):e.current}const sH=typeof window<"u"?T.useLayoutEffect:T.useEffect;function J2(e){const[t,n]=T.useState(!!e),r=T.useCallback(()=>n(i=>!i),[]);return[t,r,n]}function z2e(){const[e,t]=T.useState({width:0,height:0}),n=()=>{t({width:window.innerWidth,height:window.innerHeight})};return j2e("resize",n),sH(()=>{n()},[]),e}var Q2={},lH={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})(lH);var vn=lH.exports,$k={};const U2e=e9(ixe);var E3;function yn(){return E3||(E3=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=U2e}($k)),$k}var K2e=vn;Object.defineProperty(Q2,"__esModule",{value:!0});var yh=Q2.default=void 0,W2e=K2e(yn()),V2e=S,H2e=(0,W2e.default)((0,V2e.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");yh=Q2.default=H2e;const mS=Yn({key:"DisplayElements",default:[]}),eI=Yn({key:"AvatarElements",default:[]}),tI=Yn({key:"TasklistElements",default:[]}),nI=Yn({key:"SideView",default:void 0});function q2e(){const{search:e}=sh();return T.useMemo(()=>new URLSearchParams(e),[e])}const G2e=window.origin,k3=new URL(G2e),uH=`${k3.protocol}//${k3.host}`,Y2e=uH;class kA extends Error{constructor(n,r){super(n);ds(this,"detail");this.detail=r}toString(){return this.detail?`${this.message}: ${this.detail}`:this.message}}const Rs={fetch:async(e,t,n,r,i)=>{try{const o={"Content-Type":"application/json"};n&&(o.Authorization=n);const a=await fetch(uH+t,{method:e,headers:o,signal:i,body:JSON.stringify(r)});if(!a.ok){const s=await a.json();throw new kA(a.statusText,s.detail)}return a}catch(o){throw o instanceof kA&&pv.error(o.toString()),console.error(o),o}},get:async(e,t)=>await Rs.fetch("GET",e,t),post:async(e,t,n,r)=>await Rs.fetch("POST",e,n,t,r),put:async(e,t,n)=>await Rs.fetch("PUT",e,n,t),patch:async(e,t,n)=>await Rs.fetch("PATCH",e,n,t),delete:async(e,t,n)=>await Rs.fetch("DELETE",e,n,t)};var cH={exports:{}},fH={};/**
|
|
376
|
+
* @license React
|
|
377
|
+
* use-sync-external-store-shim.production.min.js
|
|
378
|
+
*
|
|
379
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
380
|
+
*
|
|
381
|
+
* This source code is licensed under the MIT license found in the
|
|
382
|
+
* LICENSE file in the root directory of this source tree.
|
|
383
|
+
*/var Gp=T;function X2e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Z2e=typeof Object.is=="function"?Object.is:X2e,J2e=Gp.useState,Q2e=Gp.useEffect,eIe=Gp.useLayoutEffect,tIe=Gp.useDebugValue;function nIe(e,t){var n=t(),r=J2e({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return eIe(function(){i.value=n,i.getSnapshot=t,Ok(i)&&o({inst:i})},[e,n,t]),Q2e(function(){return Ok(i)&&o({inst:i}),e(function(){Ok(i)&&o({inst:i})})},[e]),tIe(n),n}function Ok(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Z2e(e,n)}catch{return!0}}function rIe(e,t){return t()}var iIe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?rIe:nIe;fH.useSyncExternalStore=Gp.useSyncExternalStore!==void 0?Gp.useSyncExternalStore:iIe;cH.exports=fH;var oIe=cH.exports;const Ru=()=>{},Vi=Ru(),Ik=Object,un=e=>e===Vi,Cl=e=>typeof e=="function",Vu=(e,t)=>({...e,...t}),aIe=e=>Cl(e.then),W1=new WeakMap;let sIe=0;const Bv=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let i,o;if(Ik(e)===e&&!r&&n!=RegExp){if(i=W1.get(e),i)return i;if(i=++sIe+"~",W1.set(e,i),n==Array){for(i="@",o=0;o<e.length;o++)i+=Bv(e[o])+",";W1.set(e,i)}if(n==Ik){i="#";const a=Ik.keys(e).sort();for(;!un(o=a.pop());)un(e[o])||(i+=o+":"+Bv(e[o])+",");W1.set(e,i)}}else i=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return i},xl=new WeakMap,Dk={},V1={},rI="undefined",vS=typeof window!=rI,TA=typeof document!=rI,lIe=()=>vS&&typeof window.requestAnimationFrame!=rI,dH=(e,t)=>{const n=xl.get(e);return[()=>!un(t)&&e.get(t)||Dk,r=>{if(!un(t)){const i=e.get(t);t in V1||(V1[t]=i),n[5](t,Vu(i,r),i||Dk)}},n[6],()=>!un(t)&&t in V1?V1[t]:!un(t)&&e.get(t)||Dk]};let RA=!0;const uIe=()=>RA,[AA,$A]=vS&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[Ru,Ru],cIe=()=>{const e=TA&&document.visibilityState;return un(e)||e!=="hidden"},fIe=e=>(TA&&document.addEventListener("visibilitychange",e),AA("focus",e),()=>{TA&&document.removeEventListener("visibilitychange",e),$A("focus",e)}),dIe=e=>{const t=()=>{RA=!0,e()},n=()=>{RA=!1};return AA("online",t),AA("offline",n),()=>{$A("online",t),$A("offline",n)}},pIe={isOnline:uIe,isVisible:cIe},hIe={initFocus:fIe,initReconnect:dIe},T3=!gt.useId,jv=!vS||"Deno"in window,gIe=e=>lIe()?window.requestAnimationFrame(e):setTimeout(e,1),Pk=jv?T.useEffect:T.useLayoutEffect,Lk=typeof navigator<"u"&&navigator.connection,R3=!jv&&Lk&&(["slow-2g","2g"].includes(Lk.effectiveType)||Lk.saveData),iI=e=>{if(Cl(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Bv(e):"",[e,t]};let mIe=0;const OA=()=>++mIe,pH=0,hH=1,gH=2,vIe=3;var um={__proto__:null,ERROR_REVALIDATE_EVENT:vIe,FOCUS_EVENT:pH,MUTATE_EVENT:gH,RECONNECT_EVENT:hH};async function mH(...e){const[t,n,r,i]=e,o=Vu({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{});let a=o.populateCache;const s=o.rollbackOnError;let l=o.optimisticData;const u=o.revalidate!==!1,f=g=>typeof s=="function"?s(g):s!==!1,d=o.throwOnError;if(Cl(n)){const g=n,v=[],y=t.keys();for(const w of y)!/^\$(inf|sub)\$/.test(w)&&g(t.get(w)._k)&&v.push(w);return Promise.all(v.map(p))}return p(n);async function p(g){const[v]=iI(g);if(!v)return;const[y,w]=dH(t,v),[b,x,C,k]=xl.get(t),R=()=>{const K=b[v];return u&&(delete C[v],delete k[v],K&&K[0])?K[0](gH).then(()=>y().data):y().data};if(e.length<3)return R();let A=r,O;const z=OA();x[v]=[z,0];const V=!un(l),D=y(),W=D.data,ie=D._c,se=un(ie)?W:ie;if(V&&(l=Cl(l)?l(se,W):l,w({data:l,_c:se})),Cl(A))try{A=A(se)}catch(K){O=K}if(A&&aIe(A))if(A=await A.catch(K=>{O=K}),z!==x[v][0]){if(O)throw O;return A}else O&&V&&f(O)&&(a=!0,w({data:se,_c:Vi}));if(a&&!O)if(Cl(a)){const K=a(A,se);w({data:K,error:Vi,_c:Vi})}else w({data:A,error:Vi,_c:Vi});if(x[v][1]=OA(),Promise.resolve(R()).then(()=>{w({_c:Vi})}),O){if(d)throw O;return}return A}}const A3=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},yIe=(e,t)=>{if(!xl.has(e)){const n=Vu(hIe,t),r={},i=mH.bind(Vi,e);let o=Ru;const a={},s=(f,d)=>{const p=a[f]||[];return a[f]=p,p.push(d),()=>p.splice(p.indexOf(d),1)},l=(f,d,p)=>{e.set(f,d);const g=a[f];if(g)for(const v of g)v(d,p)},u=()=>{if(!xl.has(e)&&(xl.set(e,[r,{},{},{},i,l,s]),!jv)){const f=n.initFocus(setTimeout.bind(Vi,A3.bind(Vi,r,pH))),d=n.initReconnect(setTimeout.bind(Vi,A3.bind(Vi,r,hH)));o=()=>{f&&f(),d&&d(),xl.delete(e)}}};return u(),[e,i,u,o]}return[e,xl.get(e)[4]]},bIe=(e,t,n,r,i)=>{const o=n.errorRetryCount,a=i.retryCount,s=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!un(o)&&a>o||setTimeout(r,s,i)},_Ie=(e,t)=>Bv(e)==Bv(t),[vH,xIe]=yIe(new Map),wIe=Vu({onLoadingSlow:Ru,onSuccess:Ru,onError:Ru,onErrorRetry:bIe,onDiscarded:Ru,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:R3?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:R3?5e3:3e3,compare:_Ie,isPaused:()=>!1,cache:vH,mutate:xIe,fallback:{}},pIe),SIe=(e,t)=>{const n=Vu(e,t);if(t){const{use:r,fallback:i}=e,{use:o,fallback:a}=t;r&&o&&(n.use=r.concat(o)),i&&a&&(n.fallback=Vu(i,a))}return n},CIe=T.createContext({}),EIe="$inf$",yH=vS&&window.__SWR_DEVTOOLS_USE__,kIe=yH?window.__SWR_DEVTOOLS_USE__:[],TIe=()=>{yH&&(window.__SWR_DEVTOOLS_REACT__=gt)},RIe=e=>Cl(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],AIe=()=>Vu(wIe,T.useContext(CIe)),$Ie=e=>(t,n,r)=>e(t,n&&((...o)=>{const[a]=iI(t),[,,,s]=xl.get(vH);if(a.startsWith(EIe))return n(...o);const l=s[a];return un(l)?n(...o):(delete s[a],l)}),r),OIe=kIe.concat($Ie),IIe=e=>function(...n){const r=AIe(),[i,o,a]=RIe(n),s=SIe(r,a);let l=e;const{use:u}=s,f=(u||[]).concat(OIe);for(let d=f.length;d--;)l=f[d](l);return l(i,o||s.fetcher||null,s)},DIe=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const i=r.indexOf(n);i>=0&&(r[i]=r[r.length-1],r.pop())}};TIe();const $3=gt.use||(e=>{if(e.status==="pending")throw e;if(e.status==="fulfilled")return e.value;throw e.status==="rejected"?e.reason:(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e)}),Mk={dedupe:!0},PIe=(e,t,n)=>{const{cache:r,compare:i,suspense:o,fallbackData:a,revalidateOnMount:s,revalidateIfStale:l,refreshInterval:u,refreshWhenHidden:f,refreshWhenOffline:d,keepPreviousData:p}=n,[g,v,y,w]=xl.get(r),[b,x]=iI(e),C=T.useRef(!1),k=T.useRef(!1),R=T.useRef(b),A=T.useRef(t),O=T.useRef(n),z=()=>O.current,V=()=>z().isVisible()&&z().isOnline(),[D,W,ie,se]=dH(r,b),K=T.useRef({}).current,G=un(a)?n.fallback[b]:a,Q=(Ie,Pe)=>{for(const je in K){const Fe=je;if(Fe==="data"){if(!i(Ie[Fe],Pe[Fe])&&(!un(Ie[Fe])||!i(ue,Pe[Fe])))return!1}else if(Pe[Fe]!==Ie[Fe])return!1}return!0},le=T.useMemo(()=>{const Ie=(()=>!b||!t?!1:un(s)?z().isPaused()||o?!1:un(l)?!0:l:s)(),Pe=st=>{const he=Vu(st);return delete he._k,Ie?{isValidating:!0,isLoading:!0,...he}:he},je=D(),Fe=se(),tt=Pe(je),Xe=je===Fe?tt:Pe(Fe);let Ye=tt;return[()=>{const st=Pe(D());return Q(st,Ye)?(Ye.data=st.data,Ye.isLoading=st.isLoading,Ye.isValidating=st.isValidating,Ye.error=st.error,Ye):(Ye=st,st)},()=>Xe]},[r,b]),Z=oIe.useSyncExternalStore(T.useCallback(Ie=>ie(b,(Pe,je)=>{Q(je,Pe)||Ie()}),[r,b]),le[0],le[1]),ee=!C.current,P=g[b]&&g[b].length>0,ge=Z.data,B=un(ge)?G:ge,L=Z.error,ae=T.useRef(B),ue=p?un(ge)?ae.current:ge:B,ne=(()=>P&&!un(L)?!1:ee&&!un(s)?s:z().isPaused()?!1:o?un(B)?!1:l:un(B)||l)(),we=!!(b&&t&&ee&&ne),Te=un(Z.isValidating)?we:Z.isValidating,Ee=un(Z.isLoading)?we:Z.isLoading,Le=T.useCallback(async Ie=>{const Pe=A.current;if(!b||!Pe||k.current||z().isPaused())return!1;let je,Fe,tt=!0;const Xe=Ie||{},Ye=!y[b]||!Xe.dedupe,st=()=>T3?!k.current&&b===R.current&&C.current:b===R.current,he={isValidating:!1,isLoading:!1},Ae=()=>{W(he)},Re=()=>{const U=y[b];U&&U[1]===Fe&&delete y[b]},Ne={isValidating:!0};un(D().data)&&(Ne.isLoading=!0);try{if(Ye&&(W(Ne),n.loadingTimeout&&un(D().data)&&setTimeout(()=>{tt&&st()&&z().onLoadingSlow(b,n)},n.loadingTimeout),y[b]=[Pe(x),OA()]),[je,Fe]=y[b],je=await je,Ye&&setTimeout(Re,n.dedupingInterval),!y[b]||y[b][1]!==Fe)return Ye&&st()&&z().onDiscarded(b),!1;he.error=Vi;const U=v[b];if(!un(U)&&(Fe<=U[0]||Fe<=U[1]||U[1]===0))return Ae(),Ye&&st()&&z().onDiscarded(b),!1;const H=D().data;he.data=i(H,je)?H:je,Ye&&st()&&z().onSuccess(je,b,n)}catch(U){Re();const H=z(),{shouldRetryOnError:fe}=H;H.isPaused()||(he.error=U,Ye&&st()&&(H.onError(U,b,H),(fe===!0||Cl(fe)&&fe(U))&&V()&&H.onErrorRetry(U,b,H,Y=>{const X=g[b];X&&X[0]&&X[0](um.ERROR_REVALIDATE_EVENT,Y)},{retryCount:(Xe.retryCount||0)+1,dedupe:!0})))}return tt=!1,Ae(),!0},[b,r]),Be=T.useCallback((...Ie)=>mH(r,R.current,...Ie),[]);if(Pk(()=>{A.current=t,O.current=n,un(ge)||(ae.current=ge)}),Pk(()=>{if(!b)return;const Ie=Le.bind(Vi,Mk);let Pe=0;const Fe=DIe(b,g,(tt,Xe={})=>{if(tt==um.FOCUS_EVENT){const Ye=Date.now();z().revalidateOnFocus&&Ye>Pe&&V()&&(Pe=Ye+z().focusThrottleInterval,Ie())}else if(tt==um.RECONNECT_EVENT)z().revalidateOnReconnect&&V()&&Ie();else{if(tt==um.MUTATE_EVENT)return Le();if(tt==um.ERROR_REVALIDATE_EVENT)return Le(Xe)}});return k.current=!1,R.current=b,C.current=!0,W({_k:x}),ne&&(un(B)||jv?Ie():gIe(Ie)),()=>{k.current=!0,Fe()}},[b]),Pk(()=>{let Ie;function Pe(){const Fe=Cl(u)?u(D().data):u;Fe&&Ie!==-1&&(Ie=setTimeout(je,Fe))}function je(){!D().error&&(f||z().isVisible())&&(d||z().isOnline())?Le(Mk).then(Pe):Pe()}return Pe(),()=>{Ie&&(clearTimeout(Ie),Ie=-1)}},[u,f,d,b]),T.useDebugValue(ue),o&&un(B)&&b){if(!T3&&jv)throw new Error("Fallback data is required when using suspense in SSR.");A.current=t,O.current=n,k.current=!1;const Ie=w[b];if(!un(Ie)){const Pe=Be(Ie);$3(Pe)}if(un(L)){const Pe=Le(Mk);un(ue)||(Pe.status="fulfilled",Pe.value=!0),$3(Pe)}else throw L}return{mutate:Be,get data(){return K.data=!0,ue},get error(){return K.error=!0,L},get isValidating(){return K.isValidating=!0,Te},get isLoading(){return K.isLoading=!0,Ee}}},LIe=IIe(PIe),MIe=async(e,t)=>{const n=await Rs.get(e,t);return n==null?void 0:n.json()};function bh(e){const t=Ct(Df);return LIe(e?[e,t]:null,([n,r])=>MIe(n,r))}const Tl="#FFFFFF",_t={50:"#FAFAFA",100:"#F5F5F5",200:"#EEEEEE",300:"#E0E0E0",400:"#BDBDBD",500:"#9E9E9E",600:"#757575",700:"#616161",800:"#424242",850:"#303030",900:"#212121"},As={50:"#FEEDEF",100:"#FCD1D7",200:"#FBA3B1",300:"#F9748F",400:"#F05579",500:"#F51762",600:"#DA0054",700:"#B90A47",800:"#980039",900:"#79002C"},oI={50:"#E6F5EE",100:"#CDEADE",200:"#9ED6BE",300:"#72C29E",400:"#4AAE80",500:"#20A56D",600:"#258A59",700:"#21794E",800:"#1D6844",900:"#19583A"};function bH({element:e}){const t=Xn();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 S.jsxs(at,{className:n,children:[S.jsx(at,{sx:{fontSize:"14px",lineHeight:1.72,color:t.palette.mode==="dark"?_t[300]:_t[700],marginBottom:t.spacing(.5)},children:e.name}),S.jsx("audio",{controls:!0,src:r})]})}var aI={},FIe=vn;Object.defineProperty(aI,"__esModule",{value:!0});var _H=aI.default=void 0,NIe=FIe(yn()),BIe=S,jIe=(0,NIe.default)((0,BIe.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");_H=aI.default=jIe;const yS={fontFamily:["Inter","sans-serif"].join(",")},bS={MuiButton:{defaultProps:{disableElevation:!0,disableRipple:!0,sx:{textTransform:"none"}}},MuiLink:{defaultProps:{fontWeight:500}},MuiFormHelperText:{defaultProps:{sx:{m:0,fontWeight:400,color:_t[500]}}},MuiTooltip:{styleOverrides:{tooltip:{backgroundColor:"black",color:"white"}}}},_S={borderRadius:8},xH={main:oI[500],contrastText:Tl},wH={main:"rgba(239, 65, 70, 1)",contrastText:Tl};var RU,AU,$U,OU,IU,DU,PU,LU,MU,FU,NU,BU,jU;const zIe=hh({typography:yS,components:bS,shape:_S,palette:{mode:"dark",success:xH,error:wH,background:{default:((AU=(RU=window==null?void 0:window.theme)==null?void 0:RU.dark)==null?void 0:AU.background)||_t[850],paper:((OU=($U=window==null?void 0:window.theme)==null?void 0:$U.dark)==null?void 0:OU.paper)||_t[900]},primary:{main:((PU=(DU=(IU=window==null?void 0:window.theme)==null?void 0:IU.dark)==null?void 0:DU.primary)==null?void 0:PU.main)||"#F80061",dark:((FU=(MU=(LU=window==null?void 0:window.theme)==null?void 0:LU.dark)==null?void 0:MU.primary)==null?void 0:FU.dark)||As[800],light:((jU=(BU=(NU=window==null?void 0:window.theme)==null?void 0:NU.dark)==null?void 0:BU.primary)==null?void 0:jU.light)||"#FFE7EB",contrastText:Tl},secondary:{main:"#9757D7",dark:"#763FB8",light:"#B87FE7",contrastText:Tl},divider:_t[800],text:{primary:_t[200],secondary:_t[400]}}});var zU,UU,KU,WU,VU,HU,qU,GU,YU,XU,ZU,JU,QU;const UIe=hh({typography:yS,components:bS,shape:_S,palette:{mode:"light",success:xH,error:wH,background:{default:((UU=(zU=window==null?void 0:window.theme)==null?void 0:zU.light)==null?void 0:UU.background)||_t[50],paper:((WU=(KU=window==null?void 0:window.theme)==null?void 0:KU.light)==null?void 0:WU.paper)||Tl},primary:{main:((qU=(HU=(VU=window==null?void 0:window.theme)==null?void 0:VU.light)==null?void 0:HU.primary)==null?void 0:qU.main)||"#F80061",dark:((XU=(YU=(GU=window==null?void 0:window.theme)==null?void 0:GU.light)==null?void 0:YU.primary)==null?void 0:XU.dark)||As[800],light:((QU=(JU=(ZU=window==null?void 0:window.theme)==null?void 0:ZU.light)==null?void 0:JU.primary)==null?void 0:QU.light)||"#FFE7EB",contrastText:Tl},secondary:{main:"#9757D7",dark:"#763FB8",light:"#B87FE7",contrastText:Tl},divider:_t[200],text:{primary:_t[900],secondary:_t[700]}}}),KIe=e=>e==="dark"?zIe:UIe,WIe=hh({typography:yS,components:bS,shape:_S,palette:{primary:{main:_t[700],contrastText:_t[100]}}}),VIe=hh({typography:yS,components:bS,shape:_S,palette:{primary:{main:_t[200],contrastText:_t[700]}}});function sI(e){const n=Xn().palette.mode==="dark"?WIe:VIe;return S.jsx(FW,{theme:n,children:S.jsx(If,{...e})})}function SH({element:e}){if(!e.url&&!e.content)return null;const t=`${e.display}-file`,n=e.url||URL.createObjectURL(new Blob([e.content]));return S.jsx(sI,{disableElevation:!0,disableRipple:!0,sx:{textTransform:"none"},color:"primary",variant:"contained",className:t,startIcon:S.jsx(_H,{}),href:n,LinkComponent:({...r})=>S.jsx(_y,{download:e.name,...r}),children:e.name})}function HIe(e){return S.jsx(at,{sx:{p:1,boxSizing:"border-box",bgcolor:t=>t.palette.mode==="light"?_t[200]:_t[900],borderRadius:"4px",display:"flex"},children:e.children})}const qIe=(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 CH({element:e}){const t=e.url||URL.createObjectURL(new Blob([e.content])),n=`${e.display}-image`;return S.jsx(HIe,{children:S.jsx("img",{className:n,src:t,onClick:()=>{if(e.display==="inline"){const r=`${e.name}.png`;qIe(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 EH({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 S.jsx("iframe",{className:t,src:n,style:{border:"none"},width:"100%",height:"100%"})}/*!
|
|
384
|
+
* Determine if an object is a Buffer
|
|
385
|
+
*
|
|
386
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
387
|
+
* @license MIT
|
|
388
|
+
*/var GIe=function(t){return t!=null&&t.constructor!=null&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};const kH=_i(GIe);function av(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?O3(e.position):"start"in e||"end"in e?O3(e):"line"in e||"column"in e?IA(e):""}function IA(e){return I3(e&&e.line)+":"+I3(e&&e.column)}function O3(e){return IA(e&&e.start)+"-"+IA(e&&e.end)}function I3(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=av(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 xs={basename:YIe,dirname:XIe,extname:ZIe,join:JIe,sep:"/"};function YIe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Cy(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 XIe(e){if(Cy(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 ZIe(e){Cy(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 JIe(...e){let t=-1,n;for(;++t<e.length;)Cy(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":QIe(n)}function QIe(e){Cy(e);const t=e.charCodeAt(0)===47;let n=eDe(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.charCodeAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function eDe(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 Cy(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const tDe={cwd:nDe};function nDe(){return"/"}function DA(e){return e!==null&&typeof e=="object"&&e.href&&e.origin}function rDe(e){if(typeof e=="string")e=new URL(e);else if(!DA(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 iDe(e)}function iDe(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 TH{constructor(t){let n;t?typeof t=="string"||oDe(t)?n={value:t}:DA(t)?n={path:t}:n=t:n={},this.data={},this.messages=[],this.history=[],this.cwd=tDe.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){DA(t)&&(t=rDe(t)),Bk(t,"path"),this.path!==t&&this.history.push(t)}get dirname(){return typeof this.path=="string"?xs.dirname(this.path):void 0}set dirname(t){D3(this.basename,"dirname"),this.path=xs.join(t||"",this.basename)}get basename(){return typeof this.path=="string"?xs.basename(this.path):void 0}set basename(t){Bk(t,"basename"),Nk(t,"basename"),this.path=xs.join(this.dirname||"",t)}get extname(){return typeof this.path=="string"?xs.extname(this.path):void 0}set extname(t){if(Nk(t,"extname"),D3(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=xs.join(this.dirname,this.stem+(t||""))}get stem(){return typeof this.path=="string"?xs.basename(this.path,this.extname):void 0}set stem(t){Bk(t,"stem"),Nk(t,"stem"),this.path=xs.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 Nk(e,t){if(e&&e.includes(xs.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+xs.sep+"`")}function Bk(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function D3(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function oDe(e){return kH(e)}function P3(e){if(e)throw e}var Hb=Object.prototype.hasOwnProperty,RH=Object.prototype.toString,L3=Object.defineProperty,M3=Object.getOwnPropertyDescriptor,F3=function(t){return typeof Array.isArray=="function"?Array.isArray(t):RH.call(t)==="[object Array]"},N3=function(t){if(!t||RH.call(t)!=="[object Object]")return!1;var n=Hb.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&Hb.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||Hb.call(t,i)},B3=function(t,n){L3&&n.name==="__proto__"?L3(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},j3=function(t,n){if(n==="__proto__")if(Hb.call(t,n)){if(M3)return M3(t,n).value}else return;return t[n]},aDe=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=j3(s,n),i=j3(t,n),s!==i&&(f&&i&&(N3(i)||(o=F3(i)))?(o?(o=!1,a=r&&F3(r)?r:[]):a=r&&N3(r)?r:{},B3(s,{name:n,newValue:e(f,a,i)})):typeof i<"u"&&B3(s,{name:n,newValue:i}));return s};const z3=_i(aDe);function PA(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 sDe(){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?lDe(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 lDe(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 uDe=$H().freeze(),AH={}.hasOwnProperty;function $H(){const e=sDe(),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=g,o.processSync=v,o;function o(){const y=$H();let w=-1;for(;++w<t.length;)y.use(...t[w]);return y.data(z3(!0,{},n)),y}function a(y,w){return typeof y=="string"?arguments.length===2?(Uk("data",r),n[y]=w,o):AH.call(n,y)&&n[y]||null:y?(Uk("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(Uk("use",r),y!=null)if(typeof y=="function")R(y,...w);else if(typeof y=="object")Array.isArray(y)?k(y):C(y);else throw new TypeError("Expected usable value, not `"+y+"`");return b&&(n.settings=Object.assign(n.settings||{},b)),o;function x(A){if(typeof A=="function")R(A);else if(typeof A=="object")if(Array.isArray(A)){const[O,...z]=A;R(O,...z)}else C(A);else throw new TypeError("Expected usable value, not `"+A+"`")}function C(A){k(A.plugins),A.settings&&(b=Object.assign(b||{},A.settings))}function k(A){let O=-1;if(A!=null)if(Array.isArray(A))for(;++O<A.length;){const z=A[O];x(z)}else throw new TypeError("Expected a list of plugins, not `"+A+"`")}function R(A,O){let z=-1,V;for(;++z<t.length;)if(t[z][0]===A){V=t[z];break}V?(PA(V[1])&&PA(O)&&(O=z3(!0,V[1],O)),V[1]=O):t.push([...arguments])}}function u(y){o.freeze();const w=cm(y),b=o.Parser;return jk("parse",b),U3(b,"parse")?new b(String(w),w).parse():b(String(w),w)}function f(y,w){o.freeze();const b=cm(w),x=o.Compiler;return zk("stringify",x),K3(y),U3(x,"compile")?new x(y,b).compile():x(y,b)}function d(y,w,b){if(K3(y),o.freeze(),!b&&typeof w=="function"&&(b=w,w=void 0),!b)return new Promise(x);x(null,b);function x(C,k){e.run(y,cm(w),R);function R(A,O,z){O=O||y,A?k(A):C?C(O):b(null,O,z)}}}function p(y,w){let b,x;return o.run(y,w,C),W3("runSync","run",x),b;function C(k,R){P3(k),b=R,x=!0}}function g(y,w){if(o.freeze(),jk("process",o.Parser),zk("process",o.Compiler),!w)return new Promise(b);b(null,w);function b(x,C){const k=cm(y);o.run(o.parse(k),k,(A,O,z)=>{if(A||!O||!z)R(A);else{const V=o.stringify(O,z);V==null||(dDe(V)?z.value=V:z.result=V),R(A,z)}});function R(A,O){A||!O?C(A):x?x(O):w(null,O)}}}function v(y){let w;o.freeze(),jk("processSync",o.Parser),zk("processSync",o.Compiler);const b=cm(y);return o.process(b,x),W3("processSync","process",w),b;function x(C){w=!0,P3(C)}}}function U3(e,t){return typeof e=="function"&&e.prototype&&(cDe(e.prototype)||t in e.prototype)}function cDe(e){let t;for(t in e)if(AH.call(e,t))return!0;return!1}function jk(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Parser`")}function zk(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `Compiler`")}function Uk(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 K3(e){if(!PA(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function W3(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function cm(e){return fDe(e)?e:new TH(e)}function fDe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function dDe(e){return typeof e=="string"||kH(e)}const pDe={};function hDe(e,t){const n=t||pDe,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return OH(e,r,i)}function OH(e,t,n){if(gDe(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 V3(e.children,t,n)}return Array.isArray(e)?V3(e,t,n):""}function V3(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=OH(e[i],t,n);return r.join("")}function gDe(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 H3={}.hasOwnProperty;function IH(e){const t={};let n=-1;for(;++n<e.length;)mDe(t,e[n]);return t}function mDe(e,t){let n;for(n in t){const i=(H3.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let a;if(o)for(a in o){H3.call(i,a)||(i[a]=[]);const s=o[a];vDe(i[a],Array.isArray(s)?s:s?[s]:[])}}}function vDe(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 yDe=/[!-\/:-@\[-`\{-~\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=lc(/[A-Za-z]/),mi=lc(/[\dA-Za-z]/),bDe=lc(/[#-'*+\--9=?A-Z^-~]/);function tx(e){return e!==null&&(e<32||e===127)}const LA=lc(/\d/),_De=lc(/[\dA-Fa-f]/),xDe=lc(/[!-/:-@[-`{-~]/);function kt(e){return e!==null&&e<-2}function Pn(e){return e!==null&&(e<0||e===32)}function Gt(e){return e===-2||e===-1||e===32}const xS=lc(yDe),xf=lc(/\s/);function lc(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 wDe={tokenize:SDe};function SDe(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 CDe={tokenize:EDe},q3={tokenize:kDe};function EDe(e){const t=this,n=[];let r=0,i,o,a;return s;function s(C){if(r<n.length){const k=n[r];return t.containerState=k[1],e.attempt(k[0].continuation,l,u)(C)}return u(C)}function l(C){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&x();const k=t.events.length;let R=k,A;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){A=t.events[R][1].end;break}b(r);let O=k;for(;O<t.events.length;)t.events[O][1].end=Object.assign({},A),O++;return $o(t.events,R+1,0,t.events.slice(k)),t.events.length=O,u(C)}return s(C)}function u(C){if(r===n.length){if(!i)return p(C);if(i.currentConstruct&&i.currentConstruct.concrete)return v(C);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(q3,f,d)(C)}function f(C){return i&&x(),b(r),p(C)}function d(C){return t.parser.lazy[t.now().line]=r!==n.length,a=t.now().offset,v(C)}function p(C){return t.containerState={},e.attempt(q3,g,v)(C)}function g(C){return r++,n.push([t.currentConstruct,t.containerState]),p(C)}function v(C){if(C===null){i&&x(),b(0),e.consume(C);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:i}),y(C)}function y(C){if(C===null){w(e.exit("chunkFlow"),!0),b(0),e.consume(C);return}return kt(C)?(e.consume(C),w(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(C),y)}function w(C,k){const R=t.sliceStream(C);if(k&&R.push(null),C.previous=o,o&&(o.next=C),o=C,i.defineSkip(C.start),i.write(R),t.parser.lazy[C.start.line]){let A=i.events.length;for(;A--;)if(i.events[A][1].start.offset<a&&(!i.events[A][1].end||i.events[A][1].end.offset>a))return;const O=t.events.length;let z=O,V,D;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){if(V){D=t.events[z][1].end;break}V=!0}for(b(r),A=O;A<t.events.length;)t.events[A][1].end=Object.assign({},D),A++;$o(t.events,z+1,0,t.events.slice(O)),t.events.length=A}}function b(C){let k=n.length;for(;k-- >C;){const R=n[k];t.containerState=R[1],R[0].exit.call(t,e)}n.length=C}function x(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function kDe(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 nx(e){if(e===null||Pn(e)||xf(e))return 1;if(xS(e))return 2}function wS(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 MA={name:"attention",tokenize:RDe,resolveAll:TDe};function TDe(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);G3(d,-l),G3(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,wS(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 RDe(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=nx(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=nx(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 G3(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const ADe={name:"autolink",tokenize:$De};function $De(e,t,n){let r=0;return i;function i(g){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(g){return $i(g)?(e.consume(g),a):u(g)}function a(g){return g===43||g===45||g===46||mi(g)?(r=1,s(g)):u(g)}function s(g){return g===58?(e.consume(g),r=0,l):(g===43||g===45||g===46||mi(g))&&r++<32?(e.consume(g),s):(r=0,u(g))}function l(g){return g===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):g===null||g===32||g===60||tx(g)?n(g):(e.consume(g),l)}function u(g){return g===64?(e.consume(g),f):bDe(g)?(e.consume(g),u):n(g)}function f(g){return mi(g)?d(g):n(g)}function d(g){return g===46?(e.consume(g),r=0,f):g===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(g),e.exit("autolinkMarker"),e.exit("autolink"),t):p(g)}function p(g){if((g===45||mi(g))&&r++<63){const v=g===45?p:d;return e.consume(g),v}return n(g)}}const Ey={tokenize:ODe,partial:!0};function ODe(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 DH={name:"blockQuote",tokenize:IDe,continuation:{tokenize:DDe},exit:PDe};function IDe(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 DDe(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(DH,t,n)(a)}}function PDe(e){e.exit("blockQuote")}const PH={name:"characterEscape",tokenize:LDe};function LDe(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 xDe(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Y3=document.createElement("i");function lI(e){const t="&"+e+";";Y3.innerHTML=t;const n=Y3.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const LH={name:"characterReference",tokenize:MDe};function MDe(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=_De,f):(e.enter("characterReferenceValue"),o=7,a=LA,f(d))}function f(d){if(d===59&&i){const p=e.exit("characterReferenceValue");return a===mi&&!lI(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 X3={tokenize:NDe,partial:!0},Z3={name:"codeFenced",tokenize:FDe,concrete:!0};function FDe(e,t,n){const r=this,i={tokenize:R,partial:!0};let o=0,a=0,s;return l;function l(A){return u(A)}function u(A){const O=r.events[r.events.length-1];return o=O&&O[1].type==="linePrefix"?O[2].sliceSerialize(O[1],!0).length:0,s=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(A)}function f(A){return A===s?(a++,e.consume(A),f):a<3?n(A):(e.exit("codeFencedFenceSequence"),Gt(A)?on(e,d,"whitespace")(A):d(A))}function d(A){return A===null||kt(A)?(e.exit("codeFencedFence"),r.interrupt?t(A):e.check(X3,y,k)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(A))}function p(A){return A===null||kt(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(A)):Gt(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),on(e,g,"whitespace")(A)):A===96&&A===s?n(A):(e.consume(A),p)}function g(A){return A===null||kt(A)?d(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(A))}function v(A){return A===null||kt(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(A)):A===96&&A===s?n(A):(e.consume(A),v)}function y(A){return e.attempt(i,k,w)(A)}function w(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),b}function b(A){return o>0&&Gt(A)?on(e,x,"linePrefix",o+1)(A):x(A)}function x(A){return A===null||kt(A)?e.check(X3,y,k)(A):(e.enter("codeFlowValue"),C(A))}function C(A){return A===null||kt(A)?(e.exit("codeFlowValue"),x(A)):(e.consume(A),C)}function k(A){return e.exit("codeFenced"),t(A)}function R(A,O,z){let V=0;return D;function D(G){return A.enter("lineEnding"),A.consume(G),A.exit("lineEnding"),W}function W(G){return A.enter("codeFencedFence"),Gt(G)?on(A,ie,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(G):ie(G)}function ie(G){return G===s?(A.enter("codeFencedFenceSequence"),se(G)):z(G)}function se(G){return G===s?(V++,A.consume(G),se):V>=a?(A.exit("codeFencedFenceSequence"),Gt(G)?on(A,K,"whitespace")(G):K(G)):z(G)}function K(G){return G===null||kt(G)?(A.exit("codeFencedFence"),O(G)):z(G)}}}function NDe(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 Kk={name:"codeIndented",tokenize:jDe},BDe={tokenize:zDe,partial:!0};function jDe(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(BDe,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 zDe(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 UDe={name:"codeText",tokenize:VDe,resolve:KDe,previous:WDe};function KDe(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 WDe(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function VDe(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 MH(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,HDe(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 HDe(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,g=n,v=0,y=0;const w=[y];for(;g;){for(;e[++i][1]!==g;);o.push(i),g._tokenizer||(f=r.sliceStream(g),g.next||f.push(null),d&&a.defineSkip(g.start),g._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(f),g._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),d=g,g=g.next}for(g=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),g._tokenizer=void 0,g.previous=void 0,g=g.next);for(a.events=[],g?(g._tokenizer=void 0,g.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 qDe={tokenize:XDe,resolve:YDe},GDe={tokenize:ZDe,partial:!0};function YDe(e){return MH(e),e}function XDe(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(GDe,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 ZDe(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 FH(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||tx(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"}),g(b))}function g(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:g)}function v(b){return b===60||b===62||b===92?(e.consume(b),g):g(b)}function y(b){return!f&&(b===null||b===41||Pn(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||tx(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 NH(e,t,n,r,i,o){const a=this;let s=0,l;return u;function u(g){return e.enter(r),e.enter(i),e.consume(g),e.exit(i),e.enter(o),f}function f(g){return s>999||g===null||g===91||g===93&&!l||g===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(g):g===93?(e.exit(o),e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):kt(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===null||g===91||g===93||kt(g)||s++>999?(e.exit("chunkString"),f(g)):(e.consume(g),l||(l=!Gt(g)),g===92?p:d)}function p(g){return g===91||g===92||g===93?(e.consume(g),s++,d):d(g)}}function BH(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 sv(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 JDe={name:"definition",tokenize:ePe},QDe={tokenize:tPe,partial:!0};function ePe(e,t,n){const r=this;let i;return o;function o(g){return e.enter("definition"),a(g)}function a(g){return NH.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function s(g){return i=Ya(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),l):n(g)}function l(g){return Pn(g)?sv(e,u)(g):u(g)}function u(g){return FH(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function f(g){return e.attempt(QDe,d,d)(g)}function d(g){return Gt(g)?on(e,p,"whitespace")(g):p(g)}function p(g){return g===null||kt(g)?(e.exit("definition"),r.parser.defined.push(i),t(g)):n(g)}}function tPe(e,t,n){return r;function r(s){return Pn(s)?sv(e,i)(s):n(s)}function i(s){return BH(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 nPe={name:"hardBreakEscape",tokenize:rPe};function rPe(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 iPe={name:"headingAtx",tokenize:aPe,resolve:oPe};function oPe(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 aPe(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||Pn(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||Pn(f)?(e.exit("atxHeadingText"),s(f)):(e.consume(f),u)}}const sPe=["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"],J3=["pre","script","style","textarea"],lPe={name:"htmlFlow",tokenize:dPe,resolveTo:fPe,concrete:!0},uPe={tokenize:hPe,partial:!0},cPe={tokenize:pPe,partial:!0};function fPe(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 dPe(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,g):L===91?(e.consume(L),i=5,s=0,v):$i(L)?(e.consume(L),i=4,r.interrupt?t:P):n(L)}function g(L){return L===45?(e.consume(L),r.interrupt?t:P):n(L)}function v(L){const ae="CDATA[";return L===ae.charCodeAt(s++)?(e.consume(L),s===ae.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||Pn(L)){const ae=L===47,ue=a.toLowerCase();return!ae&&!o&&J3.includes(ue)?(i=1,r.interrupt?t(L):ie(L)):sPe.includes(a.toLowerCase())?(i=6,ae?(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):C(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 C(L){return L===47?(e.consume(L),D):L===58||L===95||$i(L)?(e.consume(L),k):Gt(L)?(e.consume(L),C):D(L)}function k(L){return L===45||L===46||L===58||L===95||mi(L)?(e.consume(L),k):R(L)}function R(L){return L===61?(e.consume(L),A):Gt(L)?(e.consume(L),R):C(L)}function A(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(e.consume(L),l=L,O):Gt(L)?(e.consume(L),A):z(L)}function O(L){return L===l?(e.consume(L),l=null,V):L===null||kt(L)?n(L):(e.consume(L),O)}function z(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||Pn(L)?R(L):(e.consume(L),z)}function V(L){return L===47||L===62||Gt(L)?C(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),Q):L===60&&i===1?(e.consume(L),le):L===62&&i===4?(e.consume(L),ge):L===63&&i===3?(e.consume(L),P):L===93&&i===5?(e.consume(L),ee):kt(L)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(uPe,B,se)(L)):L===null||kt(L)?(e.exit("htmlFlowData"),se(L)):(e.consume(L),ie)}function se(L){return e.check(cPe,K,B)(L)}function K(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),G}function G(L){return L===null||kt(L)?se(L):(e.enter("htmlFlowData"),ie(L))}function Q(L){return L===45?(e.consume(L),P):ie(L)}function le(L){return L===47?(e.consume(L),a="",Z):ie(L)}function Z(L){if(L===62){const ae=a.toLowerCase();return J3.includes(ae)?(e.consume(L),ge):ie(L)}return $i(L)&&a.length<8?(e.consume(L),a+=String.fromCharCode(L),Z):ie(L)}function ee(L){return L===93?(e.consume(L),P):ie(L)}function P(L){return L===62?(e.consume(L),ge):L===45&&i===2?(e.consume(L),P):ie(L)}function ge(L){return L===null||kt(L)?(e.exit("htmlFlowData"),B(L)):(e.consume(L),ge)}function B(L){return e.exit("htmlFlow"),t(L)}}function pPe(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 hPe(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ey,t,n)}}const gPe={name:"htmlText",tokenize:mPe};function mPe(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),R):P===63?(e.consume(P),C):$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),g):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),g):d(P)}function g(P){return P===62?Q(P):P===45?p(P):d(P)}function v(P){const ge="CDATA[";return P===ge.charCodeAt(o++)?(e.consume(P),o===ge.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?Q(P):P===93?(e.consume(P),b):y(P)}function x(P){return P===null||P===62?Q(P):kt(P)?(a=x,le(P)):(e.consume(P),x)}function C(P){return P===null?n(P):P===63?(e.consume(P),k):kt(P)?(a=C,le(P)):(e.consume(P),C)}function k(P){return P===62?Q(P):C(P)}function R(P){return $i(P)?(e.consume(P),A):n(P)}function A(P){return P===45||mi(P)?(e.consume(P),A):O(P)}function O(P){return kt(P)?(a=O,le(P)):Gt(P)?(e.consume(P),O):Q(P)}function z(P){return P===45||mi(P)?(e.consume(P),z):P===47||P===62||Pn(P)?V(P):n(P)}function V(P){return P===47?(e.consume(P),Q):P===58||P===95||$i(P)?(e.consume(P),D):kt(P)?(a=V,le(P)):Gt(P)?(e.consume(P),V):Q(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):V(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,se):kt(P)?(a=ie,le(P)):Gt(P)?(e.consume(P),ie):(e.consume(P),K)}function se(P){return P===i?(e.consume(P),i=void 0,G):P===null?n(P):kt(P)?(a=se,le(P)):(e.consume(P),se)}function K(P){return P===null||P===34||P===39||P===60||P===61||P===96?n(P):P===47||P===62||Pn(P)?V(P):(e.consume(P),K)}function G(P){return P===47||P===62||Pn(P)?V(P):n(P)}function Q(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"),Z}function Z(P){return Gt(P)?on(e,ee,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):ee(P)}function ee(P){return e.enter("htmlTextData"),a(P)}}const uI={name:"labelEnd",tokenize:wPe,resolveTo:xPe,resolveAll:_Pe},vPe={tokenize:SPe},yPe={tokenize:CPe},bPe={tokenize:EPe};function _Pe(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 xPe(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,wS(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 wPe(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(vPe,f,a?f:d)(p):p===91?e.attempt(yPe,f,a?u:d)(p):a?f(p):d(p)}function u(p){return e.attempt(bPe,f,d)(p)}function f(p){return t(p)}function d(p){return o._balanced=!0,n(p)}}function SPe(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 Pn(d)?sv(e,o)(d):o(d)}function o(d){return d===41?f(d):FH(e,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function a(d){return Pn(d)?sv(e,l)(d):f(d)}function s(d){return n(d)}function l(d){return d===34||d===39||d===40?BH(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):f(d)}function u(d){return Pn(d)?sv(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 CPe(e,t,n){const r=this;return i;function i(s){return NH.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 EPe(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 kPe={name:"labelStartImage",tokenize:TPe,resolveAll:uI.resolveAll};function TPe(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 RPe={name:"labelStartLink",tokenize:APe,resolveAll:uI.resolveAll};function APe(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 Wk={name:"lineEnding",tokenize:$Pe};function $Pe(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),on(e,t,"linePrefix")}}const qb={name:"thematicBreak",tokenize:OPe};function OPe(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:PPe,continuation:{tokenize:LPe},exit:FPe},IPe={tokenize:NPe,partial:!0},DPe={tokenize:MPe,partial:!0};function PPe(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(g){const v=r.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!r.containerState.marker||g===r.containerState.marker:LA(g)){if(r.containerState.type||(r.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(qb,n,u)(g):u(g);if(!r.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(g)}return n(g)}function l(g){return LA(g)&&++a<10?(e.consume(g),l):(!r.interrupt||a<2)&&(r.containerState.marker?g===r.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),u(g)):n(g)}function u(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||g,e.check(Ey,r.interrupt?n:f,e.attempt(IPe,p,d))}function f(g){return r.containerState.initialBlankLine=!0,o++,p(g)}function d(g){return Gt(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),p):n(g)}function p(g){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function LPe(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ey,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(DPe,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 MPe(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 FPe(e){e.exit(this.containerState.type)}function NPe(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 Q3={name:"setextUnderline",tokenize:jPe,resolveTo:BPe};function BPe(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 jPe(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 zPe={tokenize:UPe};function UPe(e){const t=this,n=e.attempt(Ey,r,e.attempt(this.parser.constructs.flowInitial,i,on(e,e.attempt(this.parser.constructs.flow,i,e.attempt(qDe,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 KPe={resolveAll:zH()},WPe=jH("string"),VPe=jH("text");function jH(e){return{tokenize:t,resolveAll:zH(e==="text"?HPe: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 g=d[p];if(!g.previous||g.previous.call(r,r.previous))return!0}return!1}}}function zH(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 HPe(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 qPe(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:C,exit:k,attempt:O(R),check:O(A),interrupt:O(A,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:g,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=wS(o,u.events,u),u.events)}function p(W,ie){return YPe(g(W),ie)}function g(W){return GPe(a,W)}function v(){const{line:W,column:ie,offset:se,_index:K,_bufferIndex:G}=r;return{line:W,column:ie,offset:se,_index:K,_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 C(W,ie){const se=ie||{};return se.type=W,se.start=v(),u.events.push(["enter",se,u]),s.push(se),se}function k(W){const ie=s.pop();return ie.end=v(),u.events.push(["exit",ie,u]),ie}function R(W,ie){z(W,ie.from)}function A(W,ie){ie.restore()}function O(W,ie){return se;function se(K,G,Q){let le,Z,ee,P;return Array.isArray(K)?B(K):"tokenize"in K?B([K]):ge(K);function ge(ne){return we;function we(Te){const Ee=Te!==null&&ne[Te],Le=Te!==null&&ne.null,Be=[...Array.isArray(Ee)?Ee:Ee?[Ee]:[],...Array.isArray(Le)?Le:Le?[Le]:[]];return B(Be)(Te)}}function B(ne){return le=ne,Z=0,ne.length===0?Q:L(ne[Z])}function L(ne){return we;function we(Te){return P=V(),ee=ne,ne.partial||(u.currentConstruct=ne),ne.name&&u.parser.constructs.disable.null.includes(ne.name)?ue():ne.tokenize.call(ie?Object.assign(Object.create(u),ie):u,l,ae,ue)(Te)}}function ae(ne){return W(ee,P),G}function ue(ne){return P.restore(),++Z<le.length?L(le[Z]):Q}}}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 V(){const W=v(),ie=u.previous,se=u.currentConstruct,K=u.events.length,G=Array.from(s);return{restore:Q,from:K};function Q(){r=W,u.previous=ie,u.currentConstruct=se,u.events.length=K,s=G,D()}}function D(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function GPe(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 YPe(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=`
|
|
389
|
+
`;break}case-3:{a=`\r
|
|
390
|
+
`;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 XPe={[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]:DH},ZPe={[91]:JDe},JPe={[-2]:Kk,[-1]:Kk,[32]:Kk},QPe={[35]:iPe,[42]:qb,[45]:[Q3,qb],[60]:lPe,[61]:Q3,[95]:qb,[96]:Z3,[126]:Z3},eLe={[38]:LH,[92]:PH},tLe={[-5]:Wk,[-4]:Wk,[-3]:Wk,[33]:kPe,[38]:LH,[42]:MA,[60]:[ADe,gPe],[91]:RPe,[92]:[nPe,PH],[93]:uI,[95]:MA,[96]:UDe},nLe={null:[MA,KPe]},rLe={null:[42,95]},iLe={null:[]},oLe=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:rLe,contentInitial:ZPe,disable:iLe,document:XPe,flow:QPe,flowInitial:JPe,insideSpan:nLe,string:eLe,text:tLe},Symbol.toStringTag,{value:"Module"}));function aLe(e){const n=IH([oLe,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:i(wDe),document:i(CDe),flow:i(zPe),string:i(WPe),text:i(VPe)};return r;function i(o){return a;function a(s){return qPe(r,o,s)}}}const ej=/[\0\t\n\r]/g;function sLe(){let e=1,t="",n=!0,r;return i;function i(o,a,s){const l=[];let u,f,d,p,g;for(o=t+o.toString(a),d=0,t="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if(ej.lastIndex=d,u=ej.exec(o),p=u&&u.index!==void 0?u.index:o.length,g=o.charCodeAt(p),!u){t=o.slice(d);break}if(g===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),g){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 lLe(e){for(;!MH(e););return e}function UH(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 uLe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function KH(e){return e.replace(uLe,cLe)}function cLe(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return UH(n.slice(o?2:1),o?16:10)}return lI(n)||e}const WH={}.hasOwnProperty,fLe=function(e,t,n){return typeof t!="string"&&(n=t,t=void 0),dLe(n)(lLe(aLe(n).document().write(sLe()(e,t,!0))))};function dLe(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(he),autolinkProtocol:W,autolinkEmail:W,atxHeading:s(tt),blockQuote:s(Be),characterEscape:W,characterReference:W,codeFenced:s(Ie),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:s(Ie,l),codeText:s(Pe,l),codeTextData:W,data:W,codeFlowValue:W,definition:s(je),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:s(Fe),hardBreakEscape:s(Xe),hardBreakTrailing:s(Xe),htmlFlow:s(Ye,l),htmlFlowData:W,htmlText:s(Ye,l),htmlTextData:W,image:s(st),label:l,link:s(he),listItem:s(Re),listItemValue:v,listOrdered:s(Ae,g),listUnordered:s(Ae),paragraph:s(Ne),reference:ue,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:s(tt),strong:s(U),thematicBreak:s(fe)},exit:{atxHeading:f(),atxHeadingSequence:O,autolink:f(),autolinkEmail:Le,autolinkProtocol:Ee,blockQuote:f(),characterEscapeValue:ie,characterReferenceMarkerHexadecimal:we,characterReferenceMarkerNumeric:we,characterReferenceValue:Te,codeFenced:f(x),codeFencedFence:b,codeFencedFenceInfo:y,codeFencedFenceMeta:w,codeFlowValue:ie,codeIndented:f(C),codeText:f(le),codeTextData:ie,data:ie,definition:f(),definitionDestinationString:A,definitionLabelString:k,definitionTitleString:R,emphasis:f(),hardBreakEscape:f(K),hardBreakTrailing:f(K),htmlFlow:f(G),htmlFlowData:ie,htmlText:f(Q),htmlTextData:ie,image:f(ee),label:ge,labelText:P,lineEnding:se,link:f(Z),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:ne,resourceDestinationString:B,resourceTitleString:L,resource:ae,setextHeading:f(D),setextHeadingLineSequence:V,setextHeadingText:z,strong:f(),thematicBreak:f()}};VH(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(Y){let X={type:"root",children:[]};const oe={stack:[X],tokenStack:[],config:t,enter:u,exit:d,buffer:l,resume:p,setData:o,getData:a},xe=[];let Ce=-1;for(;++Ce<Y.length;)if(Y[Ce][1].type==="listOrdered"||Y[Ce][1].type==="listUnordered")if(Y[Ce][0]==="enter")xe.push(Ce);else{const _e=xe.pop();Ce=i(Y,_e,Ce)}for(Ce=-1;++Ce<Y.length;){const _e=t[Y[Ce][0]];WH.call(_e,Y[Ce][1].type)&&_e[Y[Ce][1].type].call(Object.assign({sliceSerialize:Y[Ce][2].sliceSerialize},oe),Y[Ce][1])}if(oe.tokenStack.length>0){const _e=oe.tokenStack[oe.tokenStack.length-1];(_e[1]||tj).call(oe,void 0,_e[0])}for(X.position={start:du(Y.length>0?Y[0][1].start:{line:1,column:1,offset:0}),end:du(Y.length>0?Y[Y.length-2][1].end:{line:1,column:1,offset:0})},Ce=-1;++Ce<t.transforms.length;)X=t.transforms[Ce](X)||X;return X}function i(Y,X,oe){let xe=X-1,Ce=-1,_e=!1,nt,rt,de,me;for(;++xe<=oe;){const $e=Y[xe];if($e[1].type==="listUnordered"||$e[1].type==="listOrdered"||$e[1].type==="blockQuote"?($e[0]==="enter"?Ce++:Ce--,me=void 0):$e[1].type==="lineEndingBlank"?$e[0]==="enter"&&(nt&&!me&&!Ce&&!de&&(de=xe),me=void 0):$e[1].type==="linePrefix"||$e[1].type==="listItemValue"||$e[1].type==="listItemMarker"||$e[1].type==="listItemPrefix"||$e[1].type==="listItemPrefixWhitespace"||(me=void 0),!Ce&&$e[0]==="enter"&&$e[1].type==="listItemPrefix"||Ce===-1&&$e[0]==="exit"&&($e[1].type==="listUnordered"||$e[1].type==="listOrdered")){if(nt){let Ve=xe;for(rt=void 0;Ve--;){const He=Y[Ve];if(He[1].type==="lineEnding"||He[1].type==="lineEndingBlank"){if(He[0]==="exit")continue;rt&&(Y[rt][1].type="lineEndingBlank",_e=!0),He[1].type="lineEnding",rt=Ve}else if(!(He[1].type==="linePrefix"||He[1].type==="blockQuotePrefix"||He[1].type==="blockQuotePrefixWhitespace"||He[1].type==="blockQuoteMarker"||He[1].type==="listItemIndent"))break}de&&(!rt||de<rt)&&(nt._spread=!0),nt.end=Object.assign({},rt?Y[rt][1].start:$e[1].end),Y.splice(rt||xe,0,["exit",nt,$e[2]]),xe++,oe++}$e[1].type==="listItemPrefix"&&(nt={type:"listItem",_spread:!1,start:Object.assign({},$e[1].start),end:void 0},Y.splice(xe,0,["enter",nt,$e[2]]),xe++,oe++,de=void 0,me=!0)}}return Y[X][1]._spread=_e,oe}function o(Y,X){n[Y]=X}function a(Y){return n[Y]}function s(Y,X){return oe;function oe(xe){u.call(this,Y(xe),xe),X&&X.call(this,xe)}}function l(){this.stack.push({type:"fragment",children:[]})}function u(Y,X,oe){return this.stack[this.stack.length-1].children.push(Y),this.stack.push(Y),this.tokenStack.push([X,oe]),Y.position={start:du(X.start)},Y}function f(Y){return X;function X(oe){Y&&Y.call(this,oe),d.call(this,oe)}}function d(Y,X){const oe=this.stack.pop(),xe=this.tokenStack.pop();if(xe)xe[0].type!==Y.type&&(X?X.call(this,Y,xe[0]):(xe[1]||tj).call(this,Y,xe[0]));else throw new Error("Cannot close `"+Y.type+"` ("+av({start:Y.start,end:Y.end})+"): it’s not open");return oe.position.end=du(Y.end),oe}function p(){return hDe(this.stack.pop())}function g(){o("expectingFirstListItemValue",!0)}function v(Y){if(a("expectingFirstListItemValue")){const X=this.stack[this.stack.length-2];X.start=Number.parseInt(this.sliceSerialize(Y),10),o("expectingFirstListItemValue")}}function y(){const Y=this.resume(),X=this.stack[this.stack.length-1];X.lang=Y}function w(){const Y=this.resume(),X=this.stack[this.stack.length-1];X.meta=Y}function b(){a("flowCodeInside")||(this.buffer(),o("flowCodeInside",!0))}function x(){const Y=this.resume(),X=this.stack[this.stack.length-1];X.value=Y.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),o("flowCodeInside")}function C(){const Y=this.resume(),X=this.stack[this.stack.length-1];X.value=Y.replace(/(\r?\n|\r)$/g,"")}function k(Y){const X=this.resume(),oe=this.stack[this.stack.length-1];oe.label=X,oe.identifier=Ya(this.sliceSerialize(Y)).toLowerCase()}function R(){const Y=this.resume(),X=this.stack[this.stack.length-1];X.title=Y}function A(){const Y=this.resume(),X=this.stack[this.stack.length-1];X.url=Y}function O(Y){const X=this.stack[this.stack.length-1];if(!X.depth){const oe=this.sliceSerialize(Y).length;X.depth=oe}}function z(){o("setextHeadingSlurpLineEnding",!0)}function V(Y){const X=this.stack[this.stack.length-1];X.depth=this.sliceSerialize(Y).charCodeAt(0)===61?1:2}function D(){o("setextHeadingSlurpLineEnding")}function W(Y){const X=this.stack[this.stack.length-1];let oe=X.children[X.children.length-1];(!oe||oe.type!=="text")&&(oe=H(),oe.position={start:du(Y.start)},X.children.push(oe)),this.stack.push(oe)}function ie(Y){const X=this.stack.pop();X.value+=this.sliceSerialize(Y),X.position.end=du(Y.end)}function se(Y){const X=this.stack[this.stack.length-1];if(a("atHardBreak")){const oe=X.children[X.children.length-1];oe.position.end=du(Y.end),o("atHardBreak");return}!a("setextHeadingSlurpLineEnding")&&t.canContainEols.includes(X.type)&&(W.call(this,Y),ie.call(this,Y))}function K(){o("atHardBreak",!0)}function G(){const Y=this.resume(),X=this.stack[this.stack.length-1];X.value=Y}function Q(){const Y=this.resume(),X=this.stack[this.stack.length-1];X.value=Y}function le(){const Y=this.resume(),X=this.stack[this.stack.length-1];X.value=Y}function Z(){const Y=this.stack[this.stack.length-1];if(a("inReference")){const X=a("referenceType")||"shortcut";Y.type+="Reference",Y.referenceType=X,delete Y.url,delete Y.title}else delete Y.identifier,delete Y.label;o("referenceType")}function ee(){const Y=this.stack[this.stack.length-1];if(a("inReference")){const X=a("referenceType")||"shortcut";Y.type+="Reference",Y.referenceType=X,delete Y.url,delete Y.title}else delete Y.identifier,delete Y.label;o("referenceType")}function P(Y){const X=this.sliceSerialize(Y),oe=this.stack[this.stack.length-2];oe.label=KH(X),oe.identifier=Ya(X).toLowerCase()}function ge(){const Y=this.stack[this.stack.length-1],X=this.resume(),oe=this.stack[this.stack.length-1];if(o("inReference",!0),oe.type==="link"){const xe=Y.children;oe.children=xe}else oe.alt=X}function B(){const Y=this.resume(),X=this.stack[this.stack.length-1];X.url=Y}function L(){const Y=this.resume(),X=this.stack[this.stack.length-1];X.title=Y}function ae(){o("inReference")}function ue(){o("referenceType","collapsed")}function ne(Y){const X=this.resume(),oe=this.stack[this.stack.length-1];oe.label=X,oe.identifier=Ya(this.sliceSerialize(Y)).toLowerCase(),o("referenceType","full")}function we(Y){o("characterReferenceType",Y.type)}function Te(Y){const X=this.sliceSerialize(Y),oe=a("characterReferenceType");let xe;oe?(xe=UH(X,oe==="characterReferenceMarkerNumeric"?10:16),o("characterReferenceType")):xe=lI(X);const Ce=this.stack.pop();Ce.value+=xe,Ce.position.end=du(Y.end)}function Ee(Y){ie.call(this,Y);const X=this.stack[this.stack.length-1];X.url=this.sliceSerialize(Y)}function Le(Y){ie.call(this,Y);const X=this.stack[this.stack.length-1];X.url="mailto:"+this.sliceSerialize(Y)}function Be(){return{type:"blockquote",children:[]}}function Ie(){return{type:"code",lang:null,meta:null,value:""}}function Pe(){return{type:"inlineCode",value:""}}function je(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Fe(){return{type:"emphasis",children:[]}}function tt(){return{type:"heading",depth:void 0,children:[]}}function Xe(){return{type:"break"}}function Ye(){return{type:"html",value:""}}function st(){return{type:"image",title:null,url:"",alt:null}}function he(){return{type:"link",title:null,url:"",children:[]}}function Ae(Y){return{type:"list",ordered:Y.type==="listOrdered",start:null,spread:Y._spread,children:[]}}function Re(Y){return{type:"listItem",spread:Y._spread,checked:null,children:[]}}function Ne(){return{type:"paragraph",children:[]}}function U(){return{type:"strong",children:[]}}function H(){return{type:"text",value:""}}function fe(){return{type:"thematicBreak"}}}function du(e){return{line:e.line,column:e.column,offset:e.offset}}function VH(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?VH(e,r):pLe(e,r)}}function pLe(e,t){let n;for(n in t)if(WH.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 tj(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+av({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+av({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+av({start:t.start,end:t.end})+") is still open")}function hLe(e){Object.assign(this,{Parser:n=>{const r=this.data("settings");return fLe(n,Object.assign({},r,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function gLe(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 mLe(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
391
|
+
`}]}function vLe(e,t){const n=t.value?t.value+`
|
|
392
|
+
`:"",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 yLe(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function bLe(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _h(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 HH(e,t){const n=String(t.identifier).toUpperCase(),r=_h(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 _Le(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},HH(e,{type:"footnoteReference",identifier:i,position:t.position})}function xLe(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 wLe(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null}function qH(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 SLe(e,t){const n=e.definition(t.identifier);if(!n)return qH(e,t);const r={src:_h(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 CLe(e,t){const n={src:_h(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 ELe(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 kLe(e,t){const n=e.definition(t.identifier);if(!n)return qH(e,t);const r={href:_h(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 TLe(e,t){const n={href:_h(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 RLe(e,t,n){const r=e.all(t),i=n?ALe(n):GH(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:`
|
|
393
|
+
`}),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:`
|
|
394
|
+
`});const u={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,u),e.applyData(t,u)}function ALe(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=GH(n[r])}return t}function GH(e){const t=e.spread;return t??e.children.length>1}function $Le(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 OLe(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ILe(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function DLe(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const cI=YH("start"),fI=YH("end");function PLe(e){return{start:cI(e),end:fI(e)}}function YH(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 LLe(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=cI(t.children[1]),l=fI(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 MLe(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={},g=a?a[l]:void 0;g&&(p.align=g);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 FLe(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const nj=9,rj=32;function NLe(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(ij(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(ij(t.slice(i),i>0,!1)),o.join("")}function ij(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===nj||o===rj;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===nj||o===rj;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function BLe(e,t){const n={type:"text",value:NLe(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function jLe(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const zLe={blockquote:gLe,break:mLe,code:vLe,delete:yLe,emphasis:bLe,footnoteReference:HH,footnote:_Le,heading:xLe,html:wLe,imageReference:SLe,image:CLe,inlineCode:ELe,linkReference:kLe,link:TLe,listItem:RLe,list:$Le,paragraph:OLe,root:ILe,strong:DLe,table:LLe,tableCell:FLe,tableRow:MLe,text:BLe,thematicBreak:jLe,toml:H1,yaml:H1,definition:H1,footnoteDefinition:H1};function H1(){return null}const dI=function(e){if(e==null)return VLe;if(typeof e=="string")return WLe(e);if(typeof e=="object")return Array.isArray(e)?ULe(e):KLe(e);if(typeof e=="function")return SS(e);throw new Error("Expected function, string, or object as test")};function ULe(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=dI(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 KLe(e){return SS(t);function t(n){let r;for(r in e)if(n[r]!==e[r])return!1;return!0}}function WLe(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 VLe(){return!0}const HLe=!0,oj=!1,qLe="skip",XH=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null);const i=dI(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=[],g,v,y;if((!t||i(s,l,u[u.length-1]||null))&&(p=GLe(n(s,u)),p[0]===oj))return p;if(s.children&&p[0]!==qLe)for(v=(r?s.children.length:-1)+o,y=u.concat(s);v>-1&&v<s.children.length;){if(g=a(s.children[v],v,y)(),g[0]===oj)return g;v=typeof g[1]=="number"?g[1]:v+o}return p}}};function GLe(e){return Array.isArray(e)?e:typeof e=="number"?[HLe,e]:[e]}const pI=function(e,t,n,r){typeof t=="function"&&typeof n!="function"&&(r=n,n=t,t=null),XH(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 YLe(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 aj={}.hasOwnProperty;function XLe(e){const t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return pI(e,"definition",r=>{const i=sj(r.identifier);i&&!aj.call(t,i)&&(t[i]=r)}),n;function n(r){const i=sj(r);return i&&aj.call(t,i)?t[i]:null}}function sj(e){return String(e||"").toUpperCase()}const rx={}.hasOwnProperty;function ZLe(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={...zLe,...n.handlers},a.definition=XLe(e),a.footnoteById=i,a.footnoteOrder=[],a.footnoteCounts={},a.patch=JLe,a.applyData=QLe,a.one=s,a.all=l,a.wrap=tMe,a.augment=o,pI(e,"footnoteDefinition",u=>{const f=String(u.identifier).toUpperCase();rx.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};YLe(d)||(f.position={start:cI(d),end:fI(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 ZH(a,u,f)}function l(u){return hI(a,u)}}function JLe(e,t){e.position&&(t.position=PLe(e))}function QLe(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 ZH(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return rx.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:hI(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):eMe(e,t)}function hI(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i<r.length;){const o=ZH(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 eMe(e,t){const n=t.data||{},r="value"in t&&!(rx.call(n,"hProperties")||rx.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:hI(e,t)};return e.patch(t,r),e.applyData(t,r)}function tMe(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
395
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
396
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
397
|
+
`}),n}function nMe(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=_h(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:`
|
|
398
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:`
|
|
399
|
+
`}]}}function JH(e,t){const n=ZLe(e,t),r=n.one(e,null),i=nMe(n);return i&&r.children.push({type:"text",value:`
|
|
400
|
+
`},i),Array.isArray(r)?{type:"root",children:r}:r}const rMe=function(e,t){return e&&"run"in e?oMe(e,t):aMe(e||t)},iMe=rMe;function oMe(e,t){return(n,r,i)=>{e.run(JH(n,t),r,o=>{i(o)})}}function aMe(e){return t=>JH(t,e)}let ky=class{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}};ky.prototype.property={};ky.prototype.normal={};ky.prototype.space=null;function QH(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 ky(n,r,t)}function FA(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 sMe=0;const jt=Lf(),Tr=Lf(),eq=Lf(),et=Lf(),Kn=Lf(),wp=Lf(),bo=Lf();function Lf(){return 2**++sMe}const NA=Object.freeze(Object.defineProperty({__proto__:null,boolean:jt,booleanish:Tr,commaOrSpaceSeparated:bo,commaSeparated:wp,number:et,overloadedBoolean:eq,spaceSeparated:Kn},Symbol.toStringTag,{value:"Module"})),Vk=Object.keys(NA);class gI extends _a{constructor(t,n,r,i){let o=-1;if(super(t,n),lj(this,"space",i),typeof r=="number")for(;++o<Vk.length;){const a=Vk[o];lj(this,Vk[o],(r&NA[a])===NA[a])}}}gI.prototype.defined=!0;function lj(e,t,n){n&&(e[t]=n)}const lMe={}.hasOwnProperty;function xh(e){const t={},n={};let r;for(r in e.properties)if(lMe.call(e.properties,r)){const i=e.properties[r],o=new gI(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[FA(r)]=r,n[FA(o.attribute)]=r}return new ky(t,n,e.space)}const tq=xh({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}}),nq=xh({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function rq(e,t){return t in e?e[t]:t}function iq(e,t){return rq(e,t.toLowerCase())}const oq=xh({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:iq,properties:{xmlns:null,xmlnsXLink:null}}),aq=xh({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Tr,ariaAutoComplete:null,ariaBusy:Tr,ariaChecked:Tr,ariaColCount:et,ariaColIndex:et,ariaColSpan:et,ariaControls:Kn,ariaCurrent:null,ariaDescribedBy:Kn,ariaDetails:null,ariaDisabled:Tr,ariaDropEffect:Kn,ariaErrorMessage:null,ariaExpanded:Tr,ariaFlowTo:Kn,ariaGrabbed:Tr,ariaHasPopup:null,ariaHidden:Tr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Kn,ariaLevel:et,ariaLive:null,ariaModal:Tr,ariaMultiLine:Tr,ariaMultiSelectable:Tr,ariaOrientation:null,ariaOwns:Kn,ariaPlaceholder:null,ariaPosInSet:et,ariaPressed:Tr,ariaReadOnly:Tr,ariaRelevant:null,ariaRequired:Tr,ariaRoleDescription:Kn,ariaRowCount:et,ariaRowIndex:et,ariaRowSpan:et,ariaSelected:Tr,ariaSetSize:et,ariaSort:null,ariaValueMax:et,ariaValueMin:et,ariaValueNow:et,ariaValueText:null,role:null}}),uMe=xh({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:iq,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:wp,acceptCharset:Kn,accessKey:Kn,action:null,allow:null,allowFullScreen:jt,allowPaymentRequest:jt,allowUserMedia:jt,alt:null,as:null,async:jt,autoCapitalize:null,autoComplete:Kn,autoFocus:jt,autoPlay:jt,capture:jt,charSet:null,checked:jt,cite:null,className:Kn,cols:et,colSpan:null,content:null,contentEditable:Tr,controls:jt,controlsList:Kn,coords:et|wp,crossOrigin:null,data:null,dateTime:null,decoding:null,default:jt,defer:jt,dir:null,dirName:null,disabled:jt,download:eq,draggable:Tr,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:jt,formTarget:null,headers:Kn,height:et,hidden:jt,high:et,href:null,hrefLang:null,htmlFor:Kn,httpEquiv:Kn,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:jt,itemId:null,itemProp:Kn,itemRef:Kn,itemScope:jt,itemType:Kn,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:jt,low:et,manifest:null,max:null,maxLength:et,media:null,method:null,min:null,minLength:et,multiple:jt,muted:jt,name:null,nonce:null,noModule:jt,noValidate:jt,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:jt,optimum:et,pattern:null,ping:Kn,placeholder:null,playsInline:jt,poster:null,preload:null,readOnly:jt,referrerPolicy:null,rel:Kn,required:jt,reversed:jt,rows:et,rowSpan:et,sandbox:Kn,scope:null,scoped:jt,seamless:jt,selected:jt,shape:null,size:et,sizes:null,slot:null,span:et,spellCheck:Tr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:et,step:null,style:null,tabIndex:et,target:null,title:null,translate:null,type:null,typeMustMatch:jt,useMap:null,value:Tr,width:et,wrap:null,align:null,aLink:null,archive:Kn,axis:null,background:null,bgColor:null,border:et,borderColor:null,bottomMargin:et,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:jt,declare:jt,event:null,face:null,frame:null,frameBorder:null,hSpace:et,leftMargin:et,link:null,longDesc:null,lowSrc:null,marginHeight:et,marginWidth:et,noResize:jt,noHref:jt,noShade:jt,noWrap:jt,object:null,profile:null,prompt:null,rev:null,rightMargin:et,rules:null,scheme:null,scrolling:Tr,standby:null,summary:null,text:null,topMargin:et,valueType:null,version:null,vAlign:null,vLink:null,vSpace:et,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:jt,disableRemotePlayback:jt,prefix:null,property:null,results:et,security:null,unselectable:null}}),cMe=xh({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:rq,properties:{about:bo,accentHeight:et,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:et,amplitude:et,arabicForm:null,ascent:et,attributeName:null,attributeType:null,azimuth:et,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:et,by:null,calcMode:null,capHeight:et,className:Kn,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:et,diffuseConstant:et,direction:null,display:null,dur:null,divisor:et,dominantBaseline:null,download:jt,dx:null,dy:null,edgeMode:null,editable:null,elevation:et,enableBackground:null,end:null,event:null,exponent:et,externalResourcesRequired:null,fill:null,fillOpacity:et,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:wp,g2:wp,glyphName:wp,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:et,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:et,horizOriginX:et,horizOriginY:et,id:null,ideographic:et,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:et,k:et,k1:et,k2:et,k3:et,k4:et,kernelMatrix:bo,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:et,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:et,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:et,overlineThickness:et,paintOrder:null,panose1:null,path:null,pathLength:et,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Kn,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:et,pointsAtY:et,pointsAtZ:et,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:bo,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:bo,rev:bo,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:bo,requiredFeatures:bo,requiredFonts:bo,requiredFormats:bo,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:et,specularExponent:et,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:et,strikethroughThickness:et,string:null,stroke:null,strokeDashArray:bo,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:et,strokeOpacity:et,strokeWidth:null,style:null,surfaceScale:et,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:bo,tabIndex:et,tableValues:null,target:null,targetX:et,targetY:et,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:bo,to:null,transform:null,u1:null,u2:null,underlinePosition:et,underlineThickness:et,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:et,values:null,vAlphabetic:et,vMathematical:et,vectorEffect:null,vHanging:et,vIdeographic:et,version:null,vertAdvY:et,vertOriginX:et,vertOriginY:et,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:et,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),fMe=/^data[-\w.:]+$/i,uj=/-[a-z]/g,dMe=/[A-Z]/g;function pMe(e,t){const n=FA(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"&&fMe.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(uj,gMe);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!uj.test(o)){let a=o.replace(dMe,hMe);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=gI}return new i(r,t)}function hMe(e){return"-"+e.toLowerCase()}function gMe(e){return e.charAt(1).toUpperCase()}const cj={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"},mMe=QH([nq,tq,oq,aq,uMe],"html"),vMe=QH([nq,tq,oq,aq,cMe],"svg");function yMe(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=>{pI(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 bMe(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 _Me(e){return e.join(" ").trim()}function xMe(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}var mI={exports:{}},fj=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,wMe=/\n/g,SMe=/^\s*/,CMe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,EMe=/^:\s*/,kMe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,TMe=/^[;\s]*/,RMe=/^\s+|\s+$/g,AMe=`
|
|
401
|
+
`,dj="/",pj="*",Hc="",$Me="comment",OMe="declaration",IMe=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(wMe);y&&(n+=y.length);var w=v.lastIndexOf(AMe);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(SMe)}function f(v){var y;for(v=v||[];y=d();)y!==!1&&v.push(y);return v}function d(){var v=o();if(!(dj!=e.charAt(0)||pj!=e.charAt(1))){for(var y=2;Hc!=e.charAt(y)&&(pj!=e.charAt(y)||dj!=e.charAt(y+1));)++y;if(y+=2,Hc===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:$Me,comment:w})}}function p(){var v=o(),y=l(CMe);if(y){if(d(),!l(EMe))return s("property missing ':'");var w=l(kMe),b=v({type:OMe,property:hj(y[0].replace(fj,Hc)),value:w?hj(w[0].replace(fj,Hc)):Hc});return l(TMe),b}}function g(){var v=[];f(v);for(var y;y=p();)y!==!1&&(v.push(y),f(v));return v}return u(),g()};function hj(e){return e?e.replace(RMe,Hc):Hc}var DMe=IMe;function sq(e,t){var n=null;if(!e||typeof e!="string")return n;for(var r,i=DMe(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}mI.exports=sq;mI.exports.default=sq;var PMe=mI.exports;const LMe=_i(PMe),gj=["http","https","mailto","tel"];function MMe(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<gj.length;){const o=gj[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 BA={}.hasOwnProperty,FMe=new Set(["table","thead","tbody","tfoot","tr"]);function lq(e,t){const n=[];let r=-1,i;for(;++r<t.children.length;)i=t.children[r],i.type==="element"?n.push(NMe(e,i,r,t)):i.type==="text"?(t.type!=="element"||!FMe.has(t.tagName)||!bMe(i))&&n.push(i.value):i.type==="raw"&&!e.options.skipHtml&&n.push(i.value);return n}function NMe(e,t,n,r){const i=e.options,o=i.transformLinkUri===void 0?MMe:i.transformLinkUri,a=e.schema,s=t.tagName,l={};let u=a,f;if(a.space==="html"&&s==="svg"&&(u=vMe,e.schema=u),t.properties)for(f in t.properties)BA.call(t.properties,f)&&jMe(l,f,t.properties[f],e);(s==="ol"||s==="ul")&&e.listDepth++;const d=lq(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}},g=i.components&&BA.call(i.components,s)?i.components[s]:s,v=typeof g=="string"||g===gt.Fragment;if(!Mve.isValidElementType(g))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=BMe(t);l.checked=y&&y.properties?!!y.properties.checked:null,l.index=Hk(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"]=KMe(p)),!v&&i.rawSourcePos&&(l.sourcePosition=t.position),!v&&i.includeElementIndex&&(l.index=Hk(r,t),l.siblingCount=Hk(r)),v||(l.node=t),d.length>0?gt.createElement(g,l,d):gt.createElement(g,l)}function BMe(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 Hk(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 jMe(e,t,n,r){const i=pMe(r.schema,t);let o=n;o==null||o!==o||(Array.isArray(o)&&(o=i.commaSeparated?xMe(o):_Me(o)),i.property==="style"&&typeof o=="string"&&(o=zMe(o)),i.space&&i.property?e[BA.call(cj,i.property)?cj[i.property]:i.property]=o:i.attribute&&(e[i.attribute]=o))}function zMe(e){const t={};try{LMe(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,UMe)]=i}}function UMe(e,t){return t.toUpperCase()}function KMe(e){return[e.start.line,":",e.start.column,"-",e.end.line,":",e.end.column].map(String).join("")}const mj={}.hasOwnProperty,WMe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",q1={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 CS(e){for(const o in q1)if(mj.call(q1,o)&&mj.call(e,o)){const a=q1[o];console.warn(`[react-markdown] Warning: please ${a.to?`use \`${a.to}\` instead of`:"remove"} \`${o}\` (see <${WMe}#${a.id}> for more info)`),delete q1[o]}const t=uDe().use(hLe).use(e.remarkPlugins||[]).use(iMe,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(yMe,e),n=new TH;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=gt.createElement(gt.Fragment,{},lq({options:e,schema:mMe,listDepth:0},r));return e.className&&(i=gt.createElement("div",{className:e.className},i)),i}CS.propTypes={children:ft.string,className:ft.string,allowElement:ft.func,allowedElements:ft.arrayOf(ft.string),disallowedElements:ft.arrayOf(ft.string),unwrapDisallowed:ft.bool,remarkPlugins:ft.arrayOf(ft.oneOfType([ft.object,ft.func,ft.arrayOf(ft.oneOfType([ft.bool,ft.string,ft.object,ft.func,ft.arrayOf(ft.any)]))])),rehypePlugins:ft.arrayOf(ft.oneOfType([ft.object,ft.func,ft.arrayOf(ft.oneOfType([ft.bool,ft.string,ft.object,ft.func,ft.arrayOf(ft.any)]))])),sourcePos:ft.bool,rawSourcePos:ft.bool,skipHtml:ft.bool,includeElementIndex:ft.bool,transformLinkUri:ft.oneOfType([ft.func,ft.bool]),linkTarget:ft.oneOfType([ft.func,ft.string]),transformImageUri:ft.func,components:ft.object};const VMe={tokenize:ZMe,partial:!0},uq={tokenize:JMe,partial:!0},cq={tokenize:QMe,partial:!0},fq={tokenize:eFe,partial:!0},HMe={tokenize:tFe,partial:!0},dq={tokenize:YMe,previous:hq},pq={tokenize:XMe,previous:gq},Ul={tokenize:GMe,previous:mq},Vs={},qMe={text:Vs};let Oc=48;for(;Oc<123;)Vs[Oc]=Ul,Oc++,Oc===58?Oc=65:Oc===91&&(Oc=97);Vs[43]=Ul;Vs[45]=Ul;Vs[46]=Ul;Vs[95]=Ul;Vs[72]=[Ul,pq];Vs[104]=[Ul,pq];Vs[87]=[Ul,dq];Vs[119]=[Ul,dq];function GMe(e,t,n){const r=this;let i,o;return a;function a(d){return!jA(d)||!mq.call(r,r.previous)||vI(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(d))}function s(d){return jA(d)?(e.consume(d),s):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(HMe,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 YMe(e,t,n){const r=this;return i;function i(a){return a!==87&&a!==119||!hq.call(r,r.previous)||vI(r.events)?n(a):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(VMe,e.attempt(uq,e.attempt(cq,o),n),n)(a))}function o(a){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(a)}}function XMe(e,t,n){const r=this;let i="",o=!1;return a;function a(d){return(d===72||d===104)&&gq.call(r,r.previous)&&!vI(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||tx(d)||Pn(d)||xf(d)||xS(d)?n(d):e.attempt(uq,e.attempt(cq,f),n)(d)}function f(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function ZMe(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 JMe(e,t,n){let r,i,o;return a;function a(u){return u===46||u===95?e.check(fq,l,s)(u):u===null||Pn(u)||xf(u)||u!==45&&xS(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 QMe(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(fq,t,o)(a):a===null||Pn(a)||xf(a)?t(a):(e.consume(a),i)}function o(a){return a===41&&r++,e.consume(a),i}}function eFe(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||Pn(s)||xf(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||Pn(s)||xf(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 tFe(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return mi(o)?n(o):t(o)}}function hq(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Pn(e)}function gq(e){return!$i(e)}function mq(e){return!(e===47||jA(e))}function jA(e){return e===43||e===45||e===46||e===95||mi(e)}function vI(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 nFe={tokenize:cFe,partial:!0};function rFe(){return{document:{[91]:{tokenize:sFe,continuation:{tokenize:lFe},exit:uFe}},text:{[91]:{tokenize:aFe},[93]:{add:"after",tokenize:iFe,resolveTo:oFe}}}}function iFe(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 oFe(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 aFe(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||Pn(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 Pn(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 sFe(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||Pn(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 Pn(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,g,"gfmFootnoteDefinitionWhitespace")):n(v)}function g(v){return t(v)}}function lFe(e,t,n){return e.check(Ey,t,e.attempt(nFe,t,n))}function uFe(e){e.exit("gfmFootnoteDefinition")}function cFe(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 fFe(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]],g=s.parser.constructs.insideSpan.null;g&&$o(p,p.length,0,wS(g,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"),g(v))}function g(v){const y=nx(u);if(v===126)return d>1?l(v):(a.consume(v),d++,g);if(d<2&&!n)return l(v);const w=a.exit("strikethroughSequenceTemporary"),b=nx(v);return w._open=!b||b===2&&!!y,w._close=!y||y===2&&!!b,s(v)}}}class dFe{constructor(){this.map=[]}add(t,n,r){pFe(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 pFe(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 hFe(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 gFe={flow:{null:{tokenize:mFe,resolveAll:vFe}}};function mFe(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 K=r.events[W][1].type;if(K==="lineEnding"||K==="linePrefix")W--;else break}const ie=W>-1?r.events[W][1].type:null,se=ie==="tableHead"||ie==="tableRow"?A:l;return se===A&&r.parser.lazy[r.now().line]?n(D):se(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"),g):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||Pn(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 g(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):R(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):R(D)}function b(D){return D===45?(e.enter("tableDelimiterFiller"),x(D)):R(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"),C):(e.exit("tableDelimiterFiller"),C(D))}function C(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?R(D):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(D)):R(D)}function R(D){return n(D)}function A(D){return e.enter("tableRow"),O(D)}function O(D){return D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),O):D===null||kt(D)?(e.exit("tableRow"),t(D)):Gt(D)?on(e,O,"whitespace")(D):(e.enter("data"),z(D))}function z(D){return D===null||D===124||Pn(D)?(e.exit("data"),O(D)):(e.consume(D),D===92?V:z)}function V(D){return D===92||D===124?(e.consume(D),z):z(D)}}function vFe(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 dFe;for(;++n<e.length;){const g=e[n],v=g[1];g[0]==="enter"?v.type==="tableHead"?(s=!1,l!==0&&(vj(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=G1(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=G1(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=G1(p,t,o,i,n,d)):a[1]!==0&&(d=G1(p,t,a,i,n,d)),i=0):i&&(v.type==="data"||v.type==="tableDelimiterMarker"||v.type==="tableDelimiterFiller")&&(a[3]=n)}for(l!==0&&vj(p,t,l,u,f),p.consume(t.events),n=-1;++n<t.events.length;){const g=t.events[n];g[0]==="enter"&&g[1].type==="table"&&(g[1]._align=hFe(t.events,n))}return e}function G1(e,t,n,r,i,o){const a=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(o.end=Object.assign({},Wd(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const l=Wd(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=Wd(t.events,n[2]),f=Wd(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]],g=t.events[n[3]];if(p[1].end=Object.assign({},g[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({},Wd(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function vj(e,t,n,r,i){const o=[],a=Wd(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 Wd(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const yFe={tokenize:_Fe},bFe={text:{[91]:yFe}};function _Fe(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 Pn(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:xFe},t,n)(l):n(l)}}function xFe(e,t,n){return on(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function wFe(e){return IH([qMe,rFe(),fFe(e),gFe,bFe])}function yj(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 SFe(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const CFe={}.hasOwnProperty,EFe=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=dI(i.ignore||[]),s=kFe(o);let l=-1;for(;++l<s.length;)XH(e,"text",u);return e;function u(d,p){let g=-1,v;for(;++g<p.length;){const y=p[g];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 g=p[p.length-1],v=s[l][0],y=s[l][1];let w=0;const b=g.children.indexOf(d);let x=!1,C=[];v.lastIndex=0;let k=v.exec(d.value);for(;k;){const R=k.index,A={index:k.index,input:k.input,stack:[...p,d]};let O=y(...k,A);if(typeof O=="string"&&(O=O.length>0?{type:"text",value:O}:void 0),O!==!1&&(w!==R&&C.push({type:"text",value:d.value.slice(w,R)}),Array.isArray(O)?C.push(...O):O&&C.push(O),w=R+k[0].length,x=!0),!v.global)break;k=v.exec(d.value)}return x?(w<d.value.length&&C.push({type:"text",value:d.value.slice(w)}),g.children.splice(b,1,...C)):C=[d],b+C.length}};function kFe(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([bj(e[n][0]),_j(e[n][1])])}else{let n;for(n in e)CFe.call(e,n)&&t.push([bj(n),_j(e[n])])}return t}function bj(e){return typeof e=="string"?new RegExp(SFe(e),"g"):e}function _j(e){return typeof e=="function"?e:()=>e}const qk="phrasing",Gk=["autolink","link","image","label"],TFe={transforms:[PFe],enter:{literalAutolink:AFe,literalAutolinkEmail:Yk,literalAutolinkHttp:Yk,literalAutolinkWww:Yk},exit:{literalAutolink:DFe,literalAutolinkEmail:IFe,literalAutolinkHttp:$Fe,literalAutolinkWww:OFe}},RFe={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:qk,notInConstruct:Gk},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:qk,notInConstruct:Gk},{character:":",before:"[ps]",after:"\\/",inConstruct:qk,notInConstruct:Gk}]};function AFe(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Yk(e){this.config.enter.autolinkProtocol.call(this,e)}function $Fe(e){this.config.exit.autolinkProtocol.call(this,e)}function OFe(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}function IFe(e){this.config.exit.autolinkEmail.call(this,e)}function DFe(e){this.exit(e)}function PFe(e){EFe(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,LFe],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,MFe]],{ignore:["link","linkReference"]})}function LFe(e,t,n,r,i){let o="";if(!vq(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!FFe(n)))return!1;const a=NFe(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 MFe(e,t,n,r){return!vq(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function FFe(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 NFe(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=yj(e,"(");let o=yj(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 vq(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||xf(n)||xS(n))&&(!t||n!==47)}function yq(e){return e.label||!e.identifier?e.label||"":KH(e.identifier)}function BFe(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:`
|
|
402
|
+
`,after:`
|
|
403
|
+
`,...o.current()}))),l.type!=="list"&&(t.bulletLastUsed=void 0),s<i.length-1&&a.push(o.move(jFe(l,i[s+1],e,t)))}return r.pop(),a.join("")}function jFe(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`
|
|
404
|
+
`.repeat(1+o);if(o===!1)return`
|
|
405
|
+
|
|
406
|
+
<!---->
|
|
407
|
+
|
|
408
|
+
`}return`
|
|
409
|
+
|
|
410
|
+
`}const zFe=/\r?\n|\r/g;function UFe(e,t){const n=[];let r=0,i=0,o;for(;o=zFe.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 bq(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 KFe(e,t){return xj(e,t.inConstruct,!0)&&!xj(e,t.notInConstruct,!1)}function xj(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 _q(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(!KFe(e.stack,f))continue;const d=bq(f);let p;for(;p=d.exec(r);){const g="before"in f||!!f.atBreak,v="after"in f,y=p.index+(g?p[1].length:0);i.includes(y)?(a[y].before&&!g&&(a[y].before=!1),a[y].after&&!v&&(a[y].after=!1)):(i.push(y),a[y]={before:g,after:v})}}i.sort(WFe);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(wj(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(wj(r.slice(l,u),n.after)),o.join("")}function WFe(e,t){return e-t}function wj(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 ES(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}}xq.peek=tNe;function VFe(){return{enter:{gfmFootnoteDefinition:qFe,gfmFootnoteDefinitionLabelString:GFe,gfmFootnoteCall:ZFe,gfmFootnoteCallString:JFe},exit:{gfmFootnoteDefinition:XFe,gfmFootnoteDefinitionLabelString:YFe,gfmFootnoteCall:eNe,gfmFootnoteCallString:QFe}}}function HFe(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:nNe,footnoteReference:xq}}}function qFe(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function GFe(){this.buffer()}function YFe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Ya(this.sliceSerialize(e)).toLowerCase()}function XFe(e){this.exit(e)}function ZFe(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function JFe(){this.buffer()}function QFe(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Ya(this.sliceSerialize(e)).toLowerCase()}function eNe(e){this.exit(e)}function xq(e,t,n,r){const i=ES(r);let o=i.move("[^");const a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(_q(n,yq(e),{...i.current(),before:o,after:"]"})),s(),a(),o+=i.move("]"),o}function tNe(){return"["}function nNe(e,t,n,r){const i=ES(r);let o=i.move("[^");const a=n.enter("footnoteDefinition"),s=n.enter("label");return o+=i.move(_q(n,yq(e),{...i.current(),before:o,after:"]"})),s(),o+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),o+=i.move(UFe(BFe(e,n,i.current()),rNe)),a(),o}function rNe(e,t,n){return t===0?e:(n?"":" ")+e}function wq(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===`
|
|
411
|
+
`)&&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 iNe=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Sq.peek=uNe;const oNe={canContainEols:["delete"],enter:{strikethrough:sNe},exit:{strikethrough:lNe}},aNe={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:iNe}],handlers:{delete:Sq}};function sNe(e){this.enter({type:"delete",children:[]},e)}function lNe(e){this.exit(e)}function Sq(e,t,n,r){const i=ES(r),o=n.enter("strikethrough");let a=i.move("~~");return a+=wq(e,n,{...i.current(),before:a,after:"~"}),a+=i.move("~~"),o(),a}function uNe(){return"~"}Cq.peek=cNe;function Cq(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=bq(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 cNe(){return"`"}function fNe(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||pNe,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=dNe(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]=Sj(n[f]);else{const v=Sj(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 g=[];for(;++u<o.length;){const v=o[u],y=a[u];f=-1;const w=[];for(;++f<l;){const b=v[f]||"";let x="",C="";if(t.alignDelimiters!==!1){const k=s[f]-(y[f]||0),R=i[f];R===114?x=" ".repeat(k):R===99?k%2?(x=" ".repeat(k/2+.5),C=" ".repeat(k/2-.5)):(x=" ".repeat(k/2),C=x):C=" ".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(C),t.padding!==!1&&w.push(" "),(t.delimiterEnd!==!1||f!==l-1)&&w.push("|")}g.push(t.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return g.join(`
|
|
412
|
+
`)}function dNe(e){return e==null?"":String(e)}function pNe(e){return e.length}function Sj(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 hNe={enter:{table:gNe,tableData:Cj,tableHeader:Cj,tableRow:vNe},exit:{codeText:yNe,table:mNe,tableData:Xk,tableHeader:Xk,tableRow:Xk}};function gNe(e){const t=e._align;this.enter({type:"table",align:t.map(n=>n==="none"?null:n),children:[]},e),this.setData("inTable",!0)}function mNe(e){this.exit(e),this.setData("inTable")}function vNe(e){this.enter({type:"tableRow",children:[]},e)}function Xk(e){this.exit(e)}function Cj(e){this.enter({type:"tableCell",children:[]},e)}function yNe(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,bNe));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)}function bNe(e,t){return t==="|"?t:e}function _Ne(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
413
|
+
`,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(g,v,y,w){return u(f(g,y,w),g.align)}function s(g,v,y,w){const b=d(g,y,w),x=u([b]);return x.slice(0,x.indexOf(`
|
|
414
|
+
`))}function l(g,v,y,w){const b=y.enter("tableCell"),x=y.enter("phrasing"),C=wq(g,y,{...w,before:o,after:o});return x(),b(),C}function u(g,v){return fNe(g,{align:v,alignDelimiters:r,padding:n,stringLength:i})}function f(g,v,y){const w=g.children;let b=-1;const x=[],C=v.enter("table");for(;++b<w.length;)x[b]=d(w[b],v,y);return C(),x}function d(g,v,y){const w=g.children;let b=-1;const x=[],C=v.enter("tableRow");for(;++b<w.length;)x[b]=l(w[b],g,v,y);return C(),x}function p(g,v,y){let w=Cq(g,v,y);return y.stack.includes("tableCell")&&(w=w.replace(/\|/g,"\\$&")),w}}function xNe(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 wNe(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 SNe(e,t,n,r){const i=wNe(n);let o=n.bulletCurrent||xNe(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,g){return p?(g?"":" ".repeat(a))+d:(g?o:o+" ".repeat(a-o.length))+d}}const CNe={exit:{taskListCheckValueChecked:Ej,taskListCheckValueUnchecked:Ej,paragraph:kNe}},ENe={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:TNe}};function Ej(e){const t=this.stack[this.stack.length-2];t.checked=e.type==="taskListCheckValueChecked"}function kNe(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 TNe(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",a="["+(e.checked?"x":" ")+"] ",s=ES(r);o&&s.move(a);let l=SNe(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 RNe(){return[TFe,VFe(),oNe,hNe,CNe]}function ANe(e){return{extensions:[RFe,HFe(),aNe,_Ne(e),ENe]}}function yI(e={}){const t=this.data();n("micromarkExtensions",wFe(e)),n("fromMarkdownExtensions",RNe()),n("toMarkdownExtensions",ANe(e));function n(r,i){(t[r]?t[r]:t[r]=[]).push(i)}}function $Ne(e,t){if(e==null)return{};var n=Je(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 zA(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 ONe(e){if(Array.isArray(e))return zA(e)}function INe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function DNe(e,t){if(e){if(typeof e=="string")return zA(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 zA(e,t)}}function PNe(){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 LNe(e){return ONe(e)||INe(e)||DNe(e)||PNe()}function Yp(e){"@babel/helpers - typeof";return Yp=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},Yp(e)}function MNe(e,t){if(Yp(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Yp(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Eq(e){var t=MNe(e,"string");return Yp(t)==="symbol"?t:String(t)}function yl(e,t,n){return t=Eq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kj(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 lp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kj(Object(n),!0).forEach(function(r){yl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function FNe(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 Zk={};function NNe(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return Zk[t]||(Zk[t]=FNe(e)),Zk[t]}function BNe(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=NNe(r);return i.reduce(function(o,a){return lp(lp({},o),n[a])},t)}function Tj(e){return e.join(" ")}function jNe(e,t){var n=0;return function(r){return n+=1,r.map(function(i,o){return kq({node:i,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(o)})})}}function kq(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=jNe(n,o),p;if(!o)p=lp(lp({},s),{},{className:Tj(s.className)});else{var g=Object.keys(n).reduce(function(b,x){return x.split(".").forEach(function(C){b.includes(C)||b.push(C)}),b},[]),v=s.className&&s.className.includes("token")?["token"]:[],y=s.className&&v.concat(s.className.filter(function(b){return!g.includes(b)}));p=lp(lp({},s),{},{className:Tj(y)||void 0,style:BNe(s.className,Object.assign({},s.style,i),n)})}var w=d(t.children);return gt.createElement(u,M({key:a},p),w)}}const zNe=function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1};var UNe=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Rj(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 Es(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Rj(Object(n),!0).forEach(function(r){yl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var KNe=/\n/g;function WNe(e){return e.match(KNe)}function VNe(e){var t=e.lines,n=e.startingLineNumber,r=e.style;return t.map(function(i,o){var a=o+n;return gt.createElement("span",{key:"line-".concat(o),className:"react-syntax-highlighter-line-number",style:typeof r=="function"?r(a):r},"".concat(a,`
|
|
416
|
+
`))})}function HNe(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 gt.createElement("code",{style:Object.assign({},n,i)},VNe({lines:t.replace(/\n$/,"").split(`
|
|
417
|
+
`),style:a,startingLineNumber:s}))}function qNe(e){return"".concat(e.toString().length,".25em")}function Tq(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 Rq(e,t,n){var r={display:"inline-block",minWidth:qNe(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},i=typeof e=="function"?e(t):e,o=Es(Es({},r),i);return o}function Gb(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 g=Rq(r,n,i);t.unshift(Tq(n,g))}return d&f&&(p.style=Es(Es({},p.style),{},{display:"flex"})),{type:"element",tagName:"span",properties:p,children:t}}function Aq(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(Gb({children:[i],className:LNe(new Set(t))}));else if(i.children){var o=t.concat(i.properties.className);Aq(i.children,o).forEach(function(a){return n.push(a)})}}return n}function GNe(e,t,n,r,i,o,a,s,l){var u,f=Aq(e.value),d=[],p=-1,g=0;function v(R,A){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Gb({children:R,lineNumber:A,lineNumberStyle:s,largestLineNumber:a,showInlineLineNumbers:i,lineProps:n,className:O,showLineNumbers:r,wrapLongLines:l})}function y(R,A){if(r&&A&&i){var O=Rq(s,A,a);R.unshift(Tq(A,O))}return R}function w(R,A){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||O.length>0?v(R,A,O):y(R,A)}for(var b=function(){var A=f[g],O=A.children[0].value,z=WNe(O);if(z){var V=O.split(`
|
|
418
|
+
`);V.forEach(function(D,W){var ie=r&&d.length+o,se={type:"text",value:"".concat(D,`
|
|
419
|
+
`)};if(W===0){var K=f.slice(p+1,g).concat(Gb({children:[se],className:A.properties.className})),G=w(K,ie);d.push(G)}else if(W===V.length-1){var Q=f[g+1]&&f[g+1].children&&f[g+1].children[0],le={type:"text",value:"".concat(D)};if(Q){var Z=Gb({children:[le],className:A.properties.className});f.splice(g+1,0,Z)}else{var ee=[le],P=w(ee,ie,A.properties.className);d.push(P)}}else{var ge=[se],B=w(ge,ie,A.properties.className);d.push(B)}}),p=g}g++};g<f.length;)b();if(p!==f.length-1){var x=f.slice(p+1,f.length);if(x&&x.length){var C=r&&d.length+o,k=w(x,C);d.push(k)}}return t?d:(u=[]).concat.apply(u,d)}function YNe(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(i,o){return kq({node:i,stylesheet:n,useInlineStyles:r,key:"code-segement".concat(o)})})}function $q(e){return e&&typeof e.highlightAuto<"u"}function XNe(e){var t=e.astGenerator,n=e.language,r=e.code,i=e.defaultCodeValue;if($q(t)){var o=zNe(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 ZNe(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:Es(Es({},s['code[class*="language-"]']),s['code[class*="language-'.concat(i,'"]')])}:f,p=r.useInlineStyles,g=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,C=x===void 0?1:x,k=r.lineNumberContainerStyle,R=r.lineNumberStyle,A=R===void 0?{}:R,O=r.wrapLines,z=r.wrapLongLines,V=z===void 0?!1:z,D=r.lineProps,W=D===void 0?{}:D,ie=r.renderer,se=r.PreTag,K=se===void 0?"pre":se,G=r.CodeTag,Q=G===void 0?"code":G,le=r.code,Z=le===void 0?(Array.isArray(o)?o[0]:o)||"":le,ee=r.astGenerator,P=$Ne(r,UNe);ee=ee||e;var ge=y?gt.createElement(HNe,{containerStyle:k,codeStyle:d.style||{},numberStyle:A,startingLineNumber:C,codeString:Z}):null,B=s.hljs||s['pre[class*="language-"]']||{backgroundColor:"#fff"},L=$q(ee)?"hljs":"prismjs",ae=g?Object.assign({},P,{style:Object.assign({},B,u)}):Object.assign({},P,{className:P.className?"".concat(L," ").concat(P.className):L,style:Object.assign({},u)});if(V?d.style=Es(Es({},d.style),{},{whiteSpace:"pre-wrap"}):d.style=Es(Es({},d.style),{},{whiteSpace:"pre"}),!ee)return gt.createElement(K,ae,ge,gt.createElement(Q,d,Z));(O===void 0&&ie||V)&&(O=!0),ie=ie||YNe;var ue=[{type:"text",value:Z}],ne=XNe({astGenerator:ee,language:i,code:Z,defaultCodeValue:ue});ne.language===null&&(ne.value=ue);var we=ne.value.length+C,Te=GNe(ne,O,W,y,b,C,we,A,V);return gt.createElement(K,ae,gt.createElement(Q,d,!b&&ge,ie({rows:Te,stylesheet:s,useInlineStyles:g})))}}const JNe="modulepreload",QNe=function(e){return"/"+e},Aj={},eBe=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=QNe(o),o in Aj)return;Aj[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":JNe,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 $j(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 tBe(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(l){$j(o,r,i,a,s,"next",l)}function s(l){$j(o,r,i,a,s,"throw",l)}a(void 0)})}}function nBe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oj(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,Eq(r.key),r)}}function rBe(e,t,n){return t&&Oj(e.prototype,t),n&&Oj(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function iBe(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&&H_(e,t)}function oBe(e,t){if(t&&(Yp(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return G_(e)}function ix(e){return ix=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ix(e)}var Oq={exports:{}},Iq={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})(Iq);var aBe=Iq.exports;(function(e){var t=aBe.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(K,G,Q){K[G]=Q.value},s=typeof Symbol=="function"?Symbol:{},l=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",f=s.toStringTag||"@@toStringTag";function d(K,G,Q){return Object.defineProperty(K,G,{value:Q,enumerable:!0,configurable:!0,writable:!0}),K[G]}try{d({},"")}catch{d=function(Q,le,Z){return Q[le]=Z}}function p(K,G,Q,le){var Z=G&&G.prototype instanceof y?G:y,ee=Object.create(Z.prototype),P=new ie(le||[]);return a(ee,"_invoke",{value:z(K,Q,P)}),ee}function g(K,G,Q){try{return{type:"normal",arg:K.call(G,Q)}}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 C=Object.getPrototypeOf,k=C&&C(C(se([])));k&&k!==i&&o.call(k,l)&&(x=k);var R=b.prototype=y.prototype=Object.create(x);function A(K){["next","throw","return"].forEach(function(G){d(K,G,function(Q){return this._invoke(G,Q)})})}function O(K,G){function Q(Z,ee,P,ge){var B=g(K[Z],K,ee);if(B.type!=="throw"){var L=B.arg,ae=L.value;return ae&&t(ae)=="object"&&o.call(ae,"__await")?G.resolve(ae.__await).then(function(ue){Q("next",ue,P,ge)},function(ue){Q("throw",ue,P,ge)}):G.resolve(ae).then(function(ue){L.value=ue,P(L)},function(ue){return Q("throw",ue,P,ge)})}ge(B.arg)}var le;a(this,"_invoke",{value:function(ee,P){function ge(){return new G(function(B,L){Q(ee,P,B,L)})}return le=le?le.then(ge,ge):ge()}})}function z(K,G,Q){var le="suspendedStart";return function(Z,ee){if(le==="executing")throw new Error("Generator is already running");if(le==="completed"){if(Z==="throw")throw ee;return{value:void 0,done:!0}}for(Q.method=Z,Q.arg=ee;;){var P=Q.delegate;if(P){var ge=V(P,Q);if(ge){if(ge===v)continue;return ge}}if(Q.method==="next")Q.sent=Q._sent=Q.arg;else if(Q.method==="throw"){if(le==="suspendedStart")throw le="completed",Q.arg;Q.dispatchException(Q.arg)}else Q.method==="return"&&Q.abrupt("return",Q.arg);le="executing";var B=g(K,G,Q);if(B.type==="normal"){if(le=Q.done?"completed":"suspendedYield",B.arg===v)continue;return{value:B.arg,done:Q.done}}B.type==="throw"&&(le="completed",Q.method="throw",Q.arg=B.arg)}}}function V(K,G){var Q=G.method,le=K.iterator[Q];if(le===void 0)return G.delegate=null,Q==="throw"&&K.iterator.return&&(G.method="return",G.arg=void 0,V(K,G),G.method==="throw")||Q!=="return"&&(G.method="throw",G.arg=new TypeError("The iterator does not provide a '"+Q+"' method")),v;var Z=g(le,K.iterator,G.arg);if(Z.type==="throw")return G.method="throw",G.arg=Z.arg,G.delegate=null,v;var ee=Z.arg;return ee?ee.done?(G[K.resultName]=ee.value,G.next=K.nextLoc,G.method!=="return"&&(G.method="next",G.arg=void 0),G.delegate=null,v):ee:(G.method="throw",G.arg=new TypeError("iterator result is not an object"),G.delegate=null,v)}function D(K){var G={tryLoc:K[0]};1 in K&&(G.catchLoc=K[1]),2 in K&&(G.finallyLoc=K[2],G.afterLoc=K[3]),this.tryEntries.push(G)}function W(K){var G=K.completion||{};G.type="normal",delete G.arg,K.completion=G}function ie(K){this.tryEntries=[{tryLoc:"root"}],K.forEach(D,this),this.reset(!0)}function se(K){if(K||K===""){var G=K[l];if(G)return G.call(K);if(typeof K.next=="function")return K;if(!isNaN(K.length)){var Q=-1,le=function Z(){for(;++Q<K.length;)if(o.call(K,Q))return Z.value=K[Q],Z.done=!1,Z;return Z.value=void 0,Z.done=!0,Z};return le.next=le}}throw new TypeError(t(K)+" is not iterable")}return w.prototype=b,a(R,"constructor",{value:b,configurable:!0}),a(b,"constructor",{value:w,configurable:!0}),w.displayName=d(b,f,"GeneratorFunction"),r.isGeneratorFunction=function(K){var G=typeof K=="function"&&K.constructor;return!!G&&(G===w||(G.displayName||G.name)==="GeneratorFunction")},r.mark=function(K){return Object.setPrototypeOf?Object.setPrototypeOf(K,b):(K.__proto__=b,d(K,f,"GeneratorFunction")),K.prototype=Object.create(R),K},r.awrap=function(K){return{__await:K}},A(O.prototype),d(O.prototype,u,function(){return this}),r.AsyncIterator=O,r.async=function(K,G,Q,le,Z){Z===void 0&&(Z=Promise);var ee=new O(p(K,G,Q,le),Z);return r.isGeneratorFunction(G)?ee:ee.next().then(function(P){return P.done?P.value:ee.next()})},A(R),d(R,f,"Generator"),d(R,l,function(){return this}),d(R,"toString",function(){return"[object Generator]"}),r.keys=function(K){var G=Object(K),Q=[];for(var le in G)Q.push(le);return Q.reverse(),function Z(){for(;Q.length;){var ee=Q.pop();if(ee in G)return Z.value=ee,Z.done=!1,Z}return Z.done=!0,Z}},r.values=se,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 Q in this)Q.charAt(0)==="t"&&o.call(this,Q)&&!isNaN(+Q.slice(1))&&(this[Q]=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 Q=this;function le(L,ae){return P.type="throw",P.arg=G,Q.next=L,ae&&(Q.method="next",Q.arg=void 0),!!ae}for(var Z=this.tryEntries.length-1;Z>=0;--Z){var ee=this.tryEntries[Z],P=ee.completion;if(ee.tryLoc==="root")return le("end");if(ee.tryLoc<=this.prev){var ge=o.call(ee,"catchLoc"),B=o.call(ee,"finallyLoc");if(ge&&B){if(this.prev<ee.catchLoc)return le(ee.catchLoc,!0);if(this.prev<ee.finallyLoc)return le(ee.finallyLoc)}else if(ge){if(this.prev<ee.catchLoc)return le(ee.catchLoc,!0)}else{if(!B)throw new Error("try statement without catch or finally");if(this.prev<ee.finallyLoc)return le(ee.finallyLoc)}}}},abrupt:function(G,Q){for(var le=this.tryEntries.length-1;le>=0;--le){var Z=this.tryEntries[le];if(Z.tryLoc<=this.prev&&o.call(Z,"finallyLoc")&&this.prev<Z.finallyLoc){var ee=Z;break}}ee&&(G==="break"||G==="continue")&&ee.tryLoc<=Q&&Q<=ee.finallyLoc&&(ee=null);var P=ee?ee.completion:{};return P.type=G,P.arg=Q,ee?(this.method="next",this.next=ee.finallyLoc,v):this.complete(P)},complete:function(G,Q){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"&&Q&&(this.next=Q),v},finish:function(G){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var le=this.tryEntries[Q];if(le.finallyLoc===G)return this.complete(le.completion,le.afterLoc),W(le),v}},catch:function(G){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var le=this.tryEntries[Q];if(le.tryLoc===G){var Z=le.completion;if(Z.type==="throw"){var ee=Z.arg;W(le)}return ee}}throw new Error("illegal catch attempt")},delegateYield:function(G,Q,le){return this.delegate={iterator:se(G),resultName:Q,nextLoc:le},this.method==="next"&&(this.arg=void 0),v}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Oq);var sBe=Oq.exports,Yb=sBe(),lBe=Yb;try{regeneratorRuntime=Yb}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Yb:Function("r","regeneratorRuntime = r")(Yb)}const Ij=_i(lBe);function uBe(e){var t=cBe();return function(){var r=ix(e),i;if(t){var o=ix(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return oBe(this,i)}}function cBe(){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 fBe=function(e){var t=e.loader,n=e.isLanguageRegistered,r=e.registerLanguage,i=e.languageLoaders,o=e.noAsyncLoadingLanguages,a=function(s){iBe(u,s);var l=uBe(u);function u(){return nBe(this,u),l.apply(this,arguments)}return rBe(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 gt.createElement(u.highlightInstance,M({},this.props,{language:this.normalizeLanguage(this.props.language),astGenerator:u.astGenerator}))}}],[{key:"preload",value:function(){return u.loadAstGenerator()}},{key:"loadLanguage",value:function(){var f=tBe(Ij.mark(function p(g){var v;return Ij.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(v=i[g],typeof v!="function"){w.next=5;break}return w.abrupt("return",v(u.registerLanguage));case 5:throw new Error("Language ".concat(g," 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,g){return r(d,g,p)})}),u.astGeneratorPromise}}]),u}(gt.PureComponent);return yl(a,"astGenerator",null),yl(a,"highlightInstance",ZNe(null,{})),yl(a,"astGeneratorPromise",null),yl(a,"languages",new Map),yl(a,"supportedLanguages",e.supportedLanguages||Object.keys(i||{})),yl(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)}),yl(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},dBe=["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"],pBe=fBe({loader:function(){return eBe(()=>import("./index-ace9588d.js").then(t=>t.i),[]).then(function(t){return t.default||t})},noAsyncLoadingLanguages:!0,supportedLanguages:dBe}),hBe={'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 Ty(){return Xn().palette.mode==="dark"}var bI={},gBe=vn;Object.defineProperty(bI,"__esModule",{value:!0});var Dq=bI.default=void 0,mBe=gBe(yn()),vBe=S,yBe=(0,mBe.default)((0,vBe.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");Dq=bI.default=yBe;const Pq=({value:e,theme:t})=>{const[n,r]=J2(),i=Ty(),[o,a]=B2e(),s=()=>{if(t){if(t==="dark")return _t[200];if(t==="light")return _t[800]}return i?_t[200]:_t[800]};return S.jsx(yi,{open:n,title:"Copied to clipboard!",onClose:r,sx:{zIndex:2},children:S.jsx(or,{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:S.jsx(Dq,{})})})};function _I({inline:e,children:t,...n}){const r=Ty(),i=/language-(\w+)/.exec(n.className||""),o=!e&&i,a=()=>o?S.jsx(pBe,{...n,children:String(t).replace(/\n$/,""),style:hBe,customStyle:{paddingRight:"2.5em"},wrapLongLines:!0,language:i[1],PreTag:"div"}):e?S.jsx("code",{...n,style:{background:r?_t[800]:_t[200],borderRadius:"4px",padding:"0.2em 0.4em",overflowX:"auto"},children:t}):S.jsx(at,{sx:{background:r?_t[800]:_t[200],borderRadius:"4px",padding:s=>s.spacing(1),paddingRight:"2.5em",overflowX:"auto"},children:S.jsx("code",{...n,style:{whiteSpace:"pre-wrap"},children:t})});return S.jsxs("code",{style:{position:"relative"},children:[e?null:S.jsx(Pq,{value:t[0],theme:o?"dark":void 0}),a()]})}function Lq({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}
|
|
420
|
+
${s}
|
|
421
|
+
\`\`\``),S.jsx(CS,{remarkPlugins:[yI],className:"markdown-body",components:{a:({children:l,...u})=>S.jsx(_y,{...u,target:"_blank",children:l}),code:({...l})=>S.jsx(_I,{...l})},children:s})}function Mq({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 S.jsx("video",{className:t,width:"100%",controls:!0,src:n})}const Fq=e=>{switch(e.type){case"file":return S.jsx(SH,{element:e});case"image":return S.jsx(CH,{element:e});case"text":return S.jsx(Lq,{element:e});case"pdf":return S.jsx(EH,{element:e});case"audio":return S.jsx(bH,{element:e});case"video":return S.jsx(Mq,{element:e})}},bBe=()=>{const{id:e}=R9(),t=q2e(),n=Ct(mS),[r,i]=T.useState(null),o=t.get("conversation"),{data:a,error:s}=bh(e&&o?`/project/conversation/${o}/element/${e}`:null);if(a)i(a);else if(e&&!o&&!r){const l=n.find(u=>u.id===e);l&&i(l)}return!r||s?null:S.jsxs(at,{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:[S.jsx(Yt,{fontWeight:700,fontSize:"25px",children:r.name}),Fq(r)]})},Jk=400,_Be=T.forwardRef(function({...t},n){return delete t.handleAxis,S.jsx(at,{sx:{width:"4px",height:"24px",position:"absolute",top:"50%",marginTop:"-12px",left:0,cursor:"ew-resize",padding:"10px 5px"},ref:n,...t,children:S.jsx(at,{sx:{width:"100%",height:"100%",backgroundColor:"grey.300",borderRadius:"4px"}})})}),Nq=({children:e})=>{const[t,n]=ir(nI),[r,i]=T.useState(!1),[o,a]=T.useState(Jk),s=(d,p)=>a(p.size.width),{width:l}=z2e(),u=!aS(d=>d.breakpoints.up("sm")),f=T.useMemo(()=>t?Fq(t):null,[t]);return o<Jk&&u&&a(Jk),S.jsxs(S.Fragment,{children:[S.jsx(xBe,{open:!!t,width:o,children:e}),S.jsx(F2e,{width:o,height:0,onResize:s,onResizeStart:()=>i(!0),onResizeStop:()=>i(!1),resizeHandles:["w"],handle:u?S.jsx(S.Fragment,{}):S.jsx(_Be,{}),axis:"x",minConstraints:[100,0],maxConstraints:[l/2,0],children:S.jsxs(wBe,{anchor:"right",isSmallScreen:u,open:!!t,variant:u?"temporary":"persistent",width:o,children:[S.jsxs(Ht,{direction:"row",alignItems:"center",children:[S.jsx(Yt,{noWrap:!0,fontSize:"20px",fontWeight:500,id:"side-view-title",children:t==null?void 0:t.name}),S.jsx(or,{edge:"end",sx:{ml:"auto"},onClick:()=>n(void 0),children:S.jsx(yh,{})})]}),S.jsx(at,{mt:"1.5rem",id:"side-view-content",sx:{height:"100%",pointerEvents:r?"none":"auto"},children:f})]})})]})},xBe=Me(at,{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"]})})),wBe=Me(lV,{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"}})),uc=Yn({key:"Session",dangerouslyAllowMutability:!0,default:void 0}),kS=Yn({key:"Messages",dangerouslyAllowMutability:!0,default:[]}),Bq=Yn({key:"TokenCount",default:0}),Ry=Yn({key:"Loading",default:!1}),jq=Yn({key:"FileSpec",default:void 0}),TS=Yn({key:"AskUser",default:void 0}),zq=Yn({key:"HighlightMessage",default:null}),Ay=Yn({key:"ChatSettings",default:{open:!1,inputs:[]}}),Uq=eW({key:"ChatSettingsValue/Default",get:({get:e})=>e(Ay).inputs.reduce((n,r)=>(n[r.id]=r.initial,n),{})}),xI=Yn({key:"ChatSettingsValue",default:Uq}),SBe="light",Dj=localStorage.getItem("themeVariant"),CBe=Dj||SBe,Hs=Yn({key:"AppSettings",default:{open:!1,expandAll:!1,hideCot:!1,theme:CBe}});var wI={},EBe=vn;Object.defineProperty(wI,"__esModule",{value:!0});var Kq=wI.default=void 0,kBe=EBe(yn()),TBe=S,RBe=(0,kBe.default)((0,TBe.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");Kq=wI.default=RBe;function ABe(e){return mt("MuiLoadingButton",e)}const $Be=vt("MuiLoadingButton",["root","loading","loadingIndicator","loadingIndicatorCenter","loadingIndicatorStart","loadingIndicatorEnd","endIconLoadingEnd","startIconLoadingStart"]),dl=$Be,OBe=["children","disabled","id","loading","loadingIndicator","loadingPosition","variant"],IBe=e=>{const{loading:t,loadingPosition:n,classes:r}=e,i={root:["root",t&&"loading"],startIcon:[t&&`startIconLoading${ze(n)}`],endIcon:[t&&`endIconLoading${ze(n)}`],loadingIndicator:["loadingIndicator",t&&`loadingIndicator${ze(n)}`]},o=yt(i,ABe,r);return M({},r,o)},DBe=e=>e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"&&e!=="classes",PBe=Me(If,{shouldForwardProp:e=>DBe(e)||e==="classes",name:"MuiLoadingButton",slot:"Root",overridesResolver:(e,t)=>[t.root,t.startIconLoadingStart&&{[`& .${dl.startIconLoadingStart}`]:t.startIconLoadingStart},t.endIconLoadingEnd&&{[`& .${dl.endIconLoadingEnd}`]:t.endIconLoadingEnd}]})(({ownerState:e,theme:t})=>M({[`& .${dl.startIconLoadingStart}, & .${dl.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}),[`&.${dl.loading}`]:{color:"transparent"}},e.loadingPosition==="start"&&e.fullWidth&&{[`& .${dl.startIconLoadingStart}, & .${dl.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginRight:-8}},e.loadingPosition==="end"&&e.fullWidth&&{[`& .${dl.startIconLoadingStart}, & .${dl.endIconLoadingEnd}`]:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0,marginLeft:-8}})),LBe=Me("div",{name:"MuiLoadingButton",slot:"LoadingIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.loadingIndicator,t[`loadingIndicator${ze(n.loadingPosition)}`]]}})(({theme:e,ownerState:t})=>M({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})),MBe=T.forwardRef(function(t,n){const r=bt({props:t,name:"MuiLoadingButton"}),{children:i,disabled:o=!1,id:a,loading:s=!1,loadingIndicator:l,loadingPosition:u="center",variant:f="text"}=r,d=Je(r,OBe),p=py(a),g=l??S.jsx(B2,{"aria-labelledby":p,color:"inherit",size:16}),v=M({},r,{disabled:o,loading:s,loadingIndicator:g,loadingPosition:u,variant:f}),y=IBe(v),w=s?S.jsx(LBe,{className:y.loadingIndicator,ownerState:v,children:g}):null;return S.jsxs(PBe,M({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]}))}),RS=MBe;function wh(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 Sh(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 Pj(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 Lj(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 FBe=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 $y(e,t){var n=NBe(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 NBe(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),i=FBe.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var BBe=[".DS_Store","Thumbs.db"];function jBe(e){return wh(this,void 0,void 0,function(){return Sh(this,function(t){return ox(e)&&zBe(e.dataTransfer)?[2,VBe(e.dataTransfer,e.type)]:UBe(e)?[2,KBe(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,WBe(e)]:[2,[]]})})}function zBe(e){return ox(e)}function UBe(e){return ox(e)&&ox(e.target)}function ox(e){return typeof e=="object"&&e!==null}function KBe(e){return UA(e.target.files).map(function(t){return $y(t)})}function WBe(e){return wh(this,void 0,void 0,function(){var t;return Sh(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 $y(r)})]}})})}function VBe(e,t){return wh(this,void 0,void 0,function(){var n,r;return Sh(this,function(i){switch(i.label){case 0:return e.items?(n=UA(e.items).filter(function(o){return o.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(HBe))]):[3,2];case 1:return r=i.sent(),[2,Mj(Wq(r))];case 2:return[2,Mj(UA(e.files).map(function(o){return $y(o)}))]}})})}function Mj(e){return e.filter(function(t){return BBe.indexOf(t.name)===-1})}function UA(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function HBe(e){if(typeof e.webkitGetAsEntry!="function")return Fj(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?Vq(t):Fj(e)}function Wq(e){return e.reduce(function(t,n){return Lj(Lj([],Pj(t),!1),Pj(Array.isArray(n)?Wq(n):[n]),!1)},[])}function Fj(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=$y(t);return Promise.resolve(n)}function qBe(e){return wh(this,void 0,void 0,function(){return Sh(this,function(t){return[2,e.isDirectory?Vq(e):GBe(e)]})})}function Vq(e){var t=e.createReader();return new Promise(function(n,r){var i=[];function o(){var a=this;t.readEntries(function(s){return wh(a,void 0,void 0,function(){var l,u,f;return Sh(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(qBe)),i.push(f),o(),d.label=6;case 6:return[2]}})})},function(s){r(s)})}o()})}function GBe(e){return wh(this,void 0,void 0,function(){return Sh(this,function(t){return[2,new Promise(function(n,r){e.file(function(i){var o=$y(i,e.fullPath);n(o)},function(i){r(i)})})]})})}var YBe=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 Nj(e){return JBe(e)||ZBe(e)||qq(e)||XBe()}function XBe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
422
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZBe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function JBe(e){if(Array.isArray(e))return KA(e)}function Bj(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 jj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bj(Object(n),!0).forEach(function(r){Hq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zv(e,t){return t3e(e)||e3e(e,t)||qq(e,t)||QBe()}function QBe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
423
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qq(e,t){if(e){if(typeof e=="string")return KA(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 KA(e,t)}}function KA(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 e3e(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 t3e(e){if(Array.isArray(e))return e}var n3e="file-invalid-type",r3e="file-too-large",i3e="file-too-small",o3e="too-many-files",a3e=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:n3e,message:"File type must be ".concat(n)}},zj=function(t){return{code:r3e,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},Uj=function(t){return{code:i3e,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},s3e={code:o3e,message:"Too many files"};function Gq(e,t){var n=e.type==="application/x-moz-file"||YBe(e,t);return[n,n?null:a3e(t)]}function Yq(e,t,n){if(qc(e.size))if(qc(t)&&qc(n)){if(e.size>n)return[!1,zj(n)];if(e.size<t)return[!1,Uj(t)]}else{if(qc(t)&&e.size<t)return[!1,Uj(t)];if(qc(n)&&e.size>n)return[!1,zj(n)]}return[!0,null]}function qc(e){return e!=null}function l3e(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=Gq(l,n),f=zv(u,1),d=f[0],p=Yq(l,r,i),g=zv(p,1),v=g[0],y=s?s(l):null;return d&&v&&!y})}function ax(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Y1(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 Kj(e){e.preventDefault()}function u3e(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function c3e(e){return e.indexOf("Edge/")!==-1}function f3e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return u3e(e)||c3e(e)}function hs(){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!ax(r)&&s&&s.apply(void 0,[r].concat(o)),ax(r)})}}function d3e(){return"showOpenFilePicker"in window}function p3e(e){if(qc(e)){var t=Object.entries(e).filter(function(n){var r=zv(n,2),i=r[0],o=r[1],a=!0;return Xq(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(Zq))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var i=zv(r,2),o=i[0],a=i[1];return jj(jj({},n),{},Hq({},o,a))},{});return[{description:"Files",accept:t}]}return e}function h3e(e){if(qc(e))return Object.entries(e).reduce(function(t,n){var r=zv(n,2),i=r[0],o=r[1];return[].concat(Nj(t),[i],Nj(o))},[]).filter(function(t){return Xq(t)||Zq(t)}).join(",")}function g3e(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function m3e(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function Xq(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function Zq(e){return/^.*\.[\w]+$/.test(e)}var v3e=["children"],y3e=["open"],b3e=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],_3e=["refKey","onChange","onClick"];function x3e(e){return C3e(e)||S3e(e)||Jq(e)||w3e()}function w3e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
424
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S3e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function C3e(e){if(Array.isArray(e))return WA(e)}function Qk(e,t){return T3e(e)||k3e(e,t)||Jq(e,t)||E3e()}function E3e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
425
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jq(e,t){if(e){if(typeof e=="string")return WA(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 WA(e,t)}}function WA(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 k3e(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 T3e(e){if(Array.isArray(e))return e}function Wj(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 lr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wj(Object(n),!0).forEach(function(r){VA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sx(e,t){if(e==null)return{};var n=R3e(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 R3e(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 SI=T.forwardRef(function(e,t){var n=e.children,r=sx(e,v3e),i=eG(r),o=i.open,a=sx(i,y3e);return T.useImperativeHandle(t,function(){return{open:o}},[o]),gt.createElement(T.Fragment,null,n(lr(lr({},a),{},{open:o})))});SI.displayName="Dropzone";var Qq={disabled:!1,getFilesFromEvent:jBe,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};SI.defaultProps=Qq;SI.propTypes={children:ft.func,accept:ft.objectOf(ft.arrayOf(ft.string)),multiple:ft.bool,preventDropOnDocument:ft.bool,noClick:ft.bool,noKeyboard:ft.bool,noDrag:ft.bool,noDragEventsBubbling:ft.bool,minSize:ft.number,maxSize:ft.number,maxFiles:ft.number,disabled:ft.bool,getFilesFromEvent:ft.func,onFileDialogCancel:ft.func,onFileDialogOpen:ft.func,useFsAccessApi:ft.bool,autoFocus:ft.bool,onDragEnter:ft.func,onDragLeave:ft.func,onDragOver:ft.func,onDrop:ft.func,onDropAccepted:ft.func,onDropRejected:ft.func,onError:ft.func,validator:ft.func};var HA={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function eG(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=lr(lr({},Qq),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,g=t.onDropAccepted,v=t.onDropRejected,y=t.onFileDialogCancel,w=t.onFileDialogOpen,b=t.useFsAccessApi,x=t.autoFocus,C=t.preventDropOnDocument,k=t.noClick,R=t.noKeyboard,A=t.noDrag,O=t.noDragEventsBubbling,z=t.onError,V=t.validator,D=T.useMemo(function(){return h3e(n)},[n]),W=T.useMemo(function(){return p3e(n)},[n]),ie=T.useMemo(function(){return typeof w=="function"?w:Vj},[w]),se=T.useMemo(function(){return typeof y=="function"?y:Vj},[y]),K=T.useRef(null),G=T.useRef(null),Q=T.useReducer(A3e,HA),le=Qk(Q,2),Z=le[0],ee=le[1],P=Z.isFocused,ge=Z.isFileDialogActive,B=T.useRef(typeof window<"u"&&window.isSecureContext&&b&&d3e()),L=function(){!B.current&&ge&&setTimeout(function(){if(G.current){var H=G.current.files;H.length||(ee({type:"closeDialog"}),se())}},300)};T.useEffect(function(){return window.addEventListener("focus",L,!1),function(){window.removeEventListener("focus",L,!1)}},[G,ge,se,B]);var ae=T.useRef([]),ue=function(H){K.current&&K.current.contains(H.target)||(H.preventDefault(),ae.current=[])};T.useEffect(function(){return C&&(document.addEventListener("dragover",Kj,!1),document.addEventListener("drop",ue,!1)),function(){C&&(document.removeEventListener("dragover",Kj),document.removeEventListener("drop",ue))}},[K,C]),T.useEffect(function(){return!r&&x&&K.current&&K.current.focus(),function(){}},[K,x,r]);var ne=T.useCallback(function(U){z?z(U):console.error(U)},[z]),we=T.useCallback(function(U){U.preventDefault(),U.persist(),he(U),ae.current=[].concat(x3e(ae.current),[U.target]),Y1(U)&&Promise.resolve(i(U)).then(function(H){if(!(ax(U)&&!O)){var fe=H.length,Y=fe>0&&l3e({files:H,accept:D,minSize:a,maxSize:o,multiple:s,maxFiles:l,validator:V}),X=fe>0&&!Y;ee({isDragAccept:Y,isDragReject:X,isDragActive:!0,type:"setDraggedFiles"}),u&&u(U)}}).catch(function(H){return ne(H)})},[i,u,ne,O,D,a,o,s,l,V]),Te=T.useCallback(function(U){U.preventDefault(),U.persist(),he(U);var H=Y1(U);if(H&&U.dataTransfer)try{U.dataTransfer.dropEffect="copy"}catch{}return H&&d&&d(U),!1},[d,O]),Ee=T.useCallback(function(U){U.preventDefault(),U.persist(),he(U);var H=ae.current.filter(function(Y){return K.current&&K.current.contains(Y)}),fe=H.indexOf(U.target);fe!==-1&&H.splice(fe,1),ae.current=H,!(H.length>0)&&(ee({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Y1(U)&&f&&f(U))},[K,f,O]),Le=T.useCallback(function(U,H){var fe=[],Y=[];U.forEach(function(X){var oe=Gq(X,D),xe=Qk(oe,2),Ce=xe[0],_e=xe[1],nt=Yq(X,a,o),rt=Qk(nt,2),de=rt[0],me=rt[1],$e=V?V(X):null;if(Ce&&de&&!$e)fe.push(X);else{var Ve=[_e,me];$e&&(Ve=Ve.concat($e)),Y.push({file:X,errors:Ve.filter(function(He){return He})})}}),(!s&&fe.length>1||s&&l>=1&&fe.length>l)&&(fe.forEach(function(X){Y.push({file:X,errors:[s3e]})}),fe.splice(0)),ee({acceptedFiles:fe,fileRejections:Y,type:"setFiles"}),p&&p(fe,Y,H),Y.length>0&&v&&v(Y,H),fe.length>0&&g&&g(fe,H)},[ee,s,D,a,o,l,p,g,v,V]),Be=T.useCallback(function(U){U.preventDefault(),U.persist(),he(U),ae.current=[],Y1(U)&&Promise.resolve(i(U)).then(function(H){ax(U)&&!O||Le(H,U)}).catch(function(H){return ne(H)}),ee({type:"reset"})},[i,Le,ne,O]),Ie=T.useCallback(function(){if(B.current){ee({type:"openDialog"}),ie();var U={multiple:s,types:W};window.showOpenFilePicker(U).then(function(H){return i(H)}).then(function(H){Le(H,null),ee({type:"closeDialog"})}).catch(function(H){g3e(H)?(se(H),ee({type:"closeDialog"})):m3e(H)?(B.current=!1,G.current?(G.current.value=null,G.current.click()):ne(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."))):ne(H)});return}G.current&&(ee({type:"openDialog"}),ie(),G.current.value=null,G.current.click())},[ee,ie,se,b,Le,ne,W,s]),Pe=T.useCallback(function(U){!K.current||!K.current.isEqualNode(U.target)||(U.key===" "||U.key==="Enter"||U.keyCode===32||U.keyCode===13)&&(U.preventDefault(),Ie())},[K,Ie]),je=T.useCallback(function(){ee({type:"focus"})},[]),Fe=T.useCallback(function(){ee({type:"blur"})},[]),tt=T.useCallback(function(){k||(f3e()?setTimeout(Ie,0):Ie())},[k,Ie]),Xe=function(H){return r?null:H},Ye=function(H){return R?null:Xe(H)},st=function(H){return A?null:Xe(H)},he=function(H){O&&H.stopPropagation()},Ae=T.useMemo(function(){return function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},H=U.refKey,fe=H===void 0?"ref":H,Y=U.role,X=U.onKeyDown,oe=U.onFocus,xe=U.onBlur,Ce=U.onClick,_e=U.onDragEnter,nt=U.onDragOver,rt=U.onDragLeave,de=U.onDrop,me=sx(U,b3e);return lr(lr(VA({onKeyDown:Ye(hs(X,Pe)),onFocus:Ye(hs(oe,je)),onBlur:Ye(hs(xe,Fe)),onClick:Xe(hs(Ce,tt)),onDragEnter:st(hs(_e,we)),onDragOver:st(hs(nt,Te)),onDragLeave:st(hs(rt,Ee)),onDrop:st(hs(de,Be)),role:typeof Y=="string"&&Y!==""?Y:"presentation"},fe,K),!r&&!R?{tabIndex:0}:{}),me)}},[K,Pe,je,Fe,tt,we,Te,Ee,Be,R,A,r]),Re=T.useCallback(function(U){U.stopPropagation()},[]),Ne=T.useMemo(function(){return function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},H=U.refKey,fe=H===void 0?"ref":H,Y=U.onChange,X=U.onClick,oe=sx(U,_3e),xe=VA({accept:D,multiple:s,type:"file",style:{display:"none"},onChange:Xe(hs(Y,Be)),onClick:Xe(hs(X,Re)),tabIndex:-1},fe,G);return lr(lr({},xe),oe)}},[G,n,s,Be,r]);return lr(lr({},Z),{},{isFocused:P&&!r,getRootProps:Ae,getInputProps:Ne,rootRef:K,inputRef:G,open:Xe(Ie)})}function A3e(e,t){switch(t.type){case"focus":return lr(lr({},e),{},{isFocused:!0});case"blur":return lr(lr({},e),{},{isFocused:!1});case"openDialog":return lr(lr({},HA),{},{isFileDialogActive:!0});case"closeDialog":return lr(lr({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return lr(lr({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return lr(lr({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return lr({},HA);default:return e}}function Vj(){}const tG=({onResolved:e,spec:t})=>{const[n,r]=T.useState(!1),i=T.useCallback((u,f)=>{if(f.length>0){pv.error(f[0].errors[0].message);return}if(!u.length)return;r(!0);const d=u.map(p=>new Promise((g,v)=>{const y=new FileReader;y.onload=function(w){var C;const b=(C=w.target)==null?void 0:C.result,x={path:p.path,name:p.name,size:p.size,type:p.type,content:b};g(x)},y.onerror=function(){y.error&&v(y.error.message)},y.readAsArrayBuffer(p)}));Promise.all(d).then(p=>{e(p),r(!1)}).catch(p=>{pv.error(p),r(!1)})},[t]);if(!t.accept||!t.max_size_mb)return null;let o={};const a=t.accept;Array.isArray(a)?a.forEach(u=>{typeof u=="string"&&(o[u]=[])}):typeof a=="object"&&(o=a);const{getRootProps:s,getInputProps:l}=eG({onDrop:i,maxFiles:t.max_files||1,accept:o,maxSize:t.max_size_mb*1e6});return{getRootProps:s,getInputProps:l,uploading:n}},$3e=({askUser:e})=>{const t=tG({spec:e.spec,onResolved:o=>e==null?void 0:e.callback(o)});if(!t)return null;const{getRootProps:n,getInputProps:r,uploading:i}=t;return S.jsxs(Ht,{sx:{width:"100%",borderRadius:1,backgroundColor:o=>o.palette.mode==="dark"?_t[800]:_t[200],boxSizing:"border-box"},direction:"row",alignItems:"center",padding:2,...n({className:"dropzone"}),children:[S.jsx("input",{...r()}),S.jsx(Kq,{fontSize:"large"}),S.jsxs(Ht,{ml:2,children:[S.jsx(Yt,{color:"text.primary",children:"Drag and drop files here"}),S.jsxs(Yt,{variant:"caption",color:"text.secondary",children:["Limit ",e.spec.max_size_mb,"mb."]})]}),S.jsx(RS,{id:i?"upload-button-loading":"upload-button",loading:i,sx:{ml:"auto !important"},variant:"contained",children:"Browse Files"})]})};function O3e(){const e=Ct(TS);return(e==null?void 0:e.spec.type)!=="file"?null:S.jsx($3e,{askUser:e})}const Hj=["#066DEB","#04857C","#FF9900","#F34F3C","#E86004","#2D8C26","#5E5BFE","#A132FE"],eT=["#67A0F8","#25B1A7","#FFC266","#F09691","#FA7F54","#59C654","#9695F8","#B889F8"];function I3e(e){return e.split("").reduce((n,r)=>n=r.charCodeAt(0)+(n<<6)+(n<<16)-n,0)}function CI(e){const{theme:t}=Ct(Hs);let n=t==="dark"?eT:Hj;return e&&(n===eT?n=Hj:n=eT),n}function D3e(){const e=Ct(ya),t=CI();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(I3e(n))%t.length;return t[o]}}function P3e({element:e,author:t}){const n=e.url||URL.createObjectURL(new Blob([e.content])),r="message-avatar";return S.jsx(yi,{title:t,children:S.jsx("span",{className:r,children:S.jsx(hA,{sx:{width:38,height:38,mt:"-4px"},src:n})})})}function L3e({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 S.jsx(Yt,{lineHeight:"24px",color:_t[500],fontSize:"11px",children:n})}const qA=70;function M3e({message:e,show:t}){const n=D3e(),i=Ct(eI).find(l=>l.name===e.author),o=t&&i&&S.jsx(P3e,{element:i,author:e.author}),a=t&&S.jsx(yi,{title:e.author,children:S.jsx(Yt,{noWrap:!0,lineHeight:"24px",sx:{mb:"-5px",width:qA,fontSize:"12px",fontWeight:500,color:n(e.author,e.authorIsUser,e.isError)},children:e.author})}),s=o||a;return S.jsxs(S.Fragment,{children:[S.jsxs(at,{width:qA,pr:2,children:[s,S.jsx(L3e,{timestamp:e.createdAt})]}),(!!e.indent||e.parentId)&&S.jsx(at,{width:"2px",borderRadius:"13px",bgcolor:n(e.author,e.authorIsUser),mr:2})]})}var EI={},F3e=vn;Object.defineProperty(EI,"__esModule",{value:!0});var nG=EI.default=void 0,N3e=F3e(yn()),B3e=S,j3e=(0,N3e.default)((0,B3e.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");nG=EI.default=j3e;function Oy({children:e,...t}){return S.jsx("span",{children:S.jsx(If,{sx:{textTransform:"none",color:n=>n.palette.mode==="dark"?"text.primary":n.palette.primary.main,background:n=>n.palette.mode==="dark"?_t[700]:n.palette.primary.light,"&:hover":{background:n=>n.palette.mode==="dark"?_t[700]:n.palette.primary.light}},...t,children:e})})}const z3e=({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&&gi.error(o.message)}},[n]),i=S.jsx(RS,{id:e.id,onClick:r,disabled:t,children:e.label||e.name});return S.jsx(yi,{title:e.description,placement:"top",children:i})};function U3e({actions:e}){const t=Ct(Ry),n=Ct(uc),[r,i]=gt.useState(null),o=aS(s=>s.breakpoints.down("sm")),a=s=>s.map(l=>S.jsx(z3e,{action:l,loading:t,session:n},l.id));return S.jsxs(at,{id:"actions-list",margin:"auto",children:[o?null:a(e.slice(0,2)),e.length>2?S.jsxs(S.Fragment,{children:[S.jsx(Oy,{id:"actions-button",onClick:s=>i(s.currentTarget),children:"More actions"}),S.jsx(xy,{id:"actions-menu",anchorEl:r,open:!!r,onClose:()=>i(null),sx:{marginTop:1},children:S.jsx(Ht,{direction:"column",paddingX:2,gap:1,children:a(o?e:e.slice(2,e.length))})})]}):null]})}const ts=Yn({key:"Playground",default:void 0}),AS=Yn({key:"PlaygroundVariable",default:void 0}),$S=Yn({key:"PlaygroundMode",default:"Template"}),OS={getCompletion:async(e,t={},n,r,i)=>{var l;const o=await Rs.post("/completion",{prompt:e,userEnv:t},r,n.signal),a=(l=o==null?void 0:o.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&&i(d,"");return}const g=new TextDecoder("utf-8").decode(p);i&&i(d,g),u.enqueue(p),f()}).catch(d=>{u.close(),i&&i(!0,""),console.error(d)})}f()}})},setHumanFeedback:async(e,t,n)=>{await Rs.put("/message/feedback",{messageId:e,feedback:t},n)},getConversations:async(e,t,n)=>{const r=await Rs.post("/project/conversations",{pagination:e,filter:t},n);return r==null?void 0:r.json()},deleteConversation:async(e,t)=>{const n=await Rs.delete("/project/conversation",{conversationId:e},t);return n==null?void 0:n.json()}};var kI={},K3e=vn;Object.defineProperty(kI,"__esModule",{value:!0});var rG=kI.default=void 0,W3e=K3e(yn()),V3e=S,H3e=(0,W3e.default)((0,V3e.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");rG=kI.default=H3e;var TI={},q3e=vn;Object.defineProperty(TI,"__esModule",{value:!0});var iG=TI.default=void 0,G3e=q3e(yn()),Y3e=S,X3e=(0,G3e.default)((0,Y3e.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");iG=TI.default=X3e;var RI={},Z3e=vn;Object.defineProperty(RI,"__esModule",{value:!0});var oG=RI.default=void 0,J3e=Z3e(yn()),Q3e=S,eje=(0,J3e.default)((0,Q3e.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");oG=RI.default=eje;var AI={},tje=vn;Object.defineProperty(AI,"__esModule",{value:!0});var aG=AI.default=void 0,nje=tje(yn()),rje=S,ije=(0,nje.default)((0,rje.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");aG=AI.default=ije;const X1="16px";function oje({message:e}){const t=Ct(Df),n=Ct(kS),[r,i]=T.useState(e.humanFeedback||0),o=r===-1?rG:iG,a=r===1?oG:aG,s=async l=>{try{await pv.promise(OS.setHumanFeedback(e.id,l,t),{loading:"Updating...",success:"Feedback updated!",error:f=>S.jsx("span",{children:f.message})});const u=n.find(f=>f.id===e.id);u&&(u.humanFeedback=l),i(l)}catch(u){console.log(u)}};return S.jsxs(Ht,{direction:"row",spacing:1,children:[S.jsx(yi,{title:"Negative feedback",children:S.jsx(or,{className:`negative-feedback-${r===-1?"on":"off"}`,onClick:()=>s(r===-1?0:-1),size:"small",children:S.jsx(o,{sx:{width:X1,height:X1}})})}),S.jsx(yi,{title:"Positive feedback",children:S.jsx(or,{className:`positive-feedback-${r===1?"on":"off"}`,onClick:()=>s(r===1?0:1),size:"small",children:S.jsx(a,{sx:{width:X1,height:X1}})})})]})}function aje({message:e,actions:t}){var l;const n=Ct(ya),r=gn(ts),i=t.filter(u=>u.forId?u.forId===e.id:!0),a=!!e.prompt&&!!e.content?S.jsx(yi,{title:"Inspect in prompt playground",children:S.jsx(or,{size:"small",className:"playground-button",onClick:()=>{e.prompt&&r(u=>({...u,prompt:e.prompt,originalPrompt:e.prompt}))},children:S.jsx(nG,{sx:{width:"16px",height:"16px"}})})}):null,s=!!((l=n==null?void 0:n.project)!=null&&l.database)&&!e.authorIsUser&&!e.waitForAnswer&&!!e.content;return S.jsxs(Ht,{direction:"row",spacing:1,children:[a,s?S.jsx(oje,{message:e}):null,i.length?S.jsx(U3e,{actions:i}):null]})}function sje(e,t){const n=new Blob([e],{type:"text/plain"}),r=URL.createObjectURL(n),i=document.createElement("a");i.setAttribute("href",r),i.setAttribute("download",t),i.click(),URL.revokeObjectURL(r)}var $I={},lje=vn;Object.defineProperty($I,"__esModule",{value:!0});var sG=$I.default=void 0,uje=lje(yn()),cje=S,fje=(0,uje.default)((0,cje.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zm-8 2V5h2v6h1.17L12 13.17 9.83 11H11zm-6 7h14v2H5z"}),"DownloadOutlined");sG=$I.default=fje;var OI={},dje=vn;Object.defineProperty(OI,"__esModule",{value:!0});var IS=OI.default=void 0,pje=dje(yn()),hje=S,gje=(0,pje.default)((0,hje.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess");IS=OI.default=gje;var II={},mje=vn;Object.defineProperty(II,"__esModule",{value:!0});var DS=II.default=void 0,vje=mje(yn()),yje=S,bje=(0,vje.default)((0,yje.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");DS=II.default=bje;const _je=({children:e,onDownload:t})=>{const[n,r]=J2(!1);return S.jsxs(at,{children:[S.jsx(yxe,{sx:{border:i=>`1px solid ${i.palette.divider}`,borderRadius:1,padding:1},in:n,collapsedSize:100,timeout:0,children:e}),S.jsxs(Ht,{sx:{position:"absolute",right:0},direction:"row",children:[S.jsx(yi,{title:n?"Collapse":"Expand",children:S.jsx(or,{onClick:r,children:n?S.jsx(IS,{}):S.jsx(DS,{})})}),S.jsx(yi,{title:"Download",children:S.jsx(or,{onClick:t,children:S.jsx(sG,{})})})]})]})};function xje({element:e}){const t=gn(nI);if(e.display==="inline")return S.jsx("span",{style:{fontWeight:700},children:e.name});let n=`/element/${e.id}`;return e.conversationId&&(n+=`?conversation=${e.conversationId}`),S.jsx(_y,{className:"element-link",onClick:()=>{e.display==="side"&&t(e)},component:ey,to:e.display==="page"?n:"#",children:e.name})}function wje({items:e}){return S.jsx(Ht,{spacing:1,children:e.map((t,n)=>S.jsx(at,{pt:.5,children:S.jsx(bH,{element:t})},n))})}function Sje({items:e}){return S.jsx(Ht,{spacing:1,direction:"row",children:e.map((t,n)=>S.jsx("div",{children:S.jsx(SH,{element:t})},n))})}function qj(e){return e.size==="small"?1:e.size==="medium"?2:e.size==="large"?4:2}function lG({elements:e,renderElement:t}){return S.jsx(PEe,{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=qj(n),o=qj(n);return S.jsx(zEe,{cols:i,rows:o,children:S.jsx(t,{element:n})},r)})})}function Cje({items:e}){return S.jsx(lG,{elements:e,renderElement:CH})}function Eje({items:e}){return S.jsx(Ht,{spacing:1,children:e.map((t,n)=>S.jsx("div",{style:{maxWidth:"600px",height:"400px"},children:S.jsx(EH,{element:t})},n))})}function kje({items:e}){return S.jsx(Ht,{spacing:1,children:e.map((t,n)=>S.jsxs(ro,{color:"info",icon:!1,children:[S.jsx(_we,{children:t.name}),S.jsx(Lq,{element:t})]},n))})}function Tje({items:e}){return S.jsx(lG,{elements:e,renderElement:Mq})}function Rje({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 S.jsxs(Ht,{gap:1,mt:1,children:[(n=t.image)!=null&&n.length?S.jsx(Cje,{items:t.image}):null,(r=t.text)!=null&&r.length?S.jsx(kje,{items:t.text}):null,(i=t.pdf)!=null&&i.length?S.jsx(Eje,{items:t.pdf}):null,(o=t.audio)!=null&&o.length?S.jsx(wje,{items:t.audio}):null,(a=t.video)!=null&&a.length?S.jsx(Tje,{items:t.video}):null,(s=t.file)!=null&&s.length?S.jsx(Sje,{items:t.file}):null]})}const Aje=25,$je=3e3,Gj=(e,t)=>!t||!t.length||!e?!1:t.includes(e.toString()),Oje=e=>!e||!e.length;function Ije(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Dje({id:e,elements:t,content:n,language:r}){const i=t.map(u=>Ije(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=>Gj(e,u==null?void 0:u.forIds)&&u.display==="inline"),l=[];return o&&(a=a.replaceAll(o,u=>{const f=t.find(g=>{const v=g.name===u,y=Oje(g==null?void 0:g.forIds)||Gj(e,g==null?void 0:g.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}
|
|
426
|
+
${a}
|
|
427
|
+
\`\`\``),{preparedContent:a,inlinedElements:s,refElements:l}}const Pje=T.memo(function({id:t,content:n,elements:r,language:i,authorIsUser:o}){const{preparedContent:a,inlinedElements:s,refElements:l}=Dje({id:t,content:n,language:i,elements:r});if(!a)return null;const u=()=>S.jsx(Ht,{direction:"row",children:S.jsx(Yt,{sx:{width:"100%",minHeight:"20px",fontSize:"1rem",lineHeight:"1.5rem",fontFamily:"Inter",fontWeight:o?500:300},component:"div",children:S.jsx(CS,{remarkPlugins:[yI],className:"markdown-body",components:{a({children:p,...g}){const v=p[0],y=l.find(w=>w.name===v);return y?S.jsx(xje,{element:y}):S.jsx(_y,{...g,target:"_blank",children:p})},code({...p}){return S.jsx(_I,{...p})},table({children:p,...g}){return S.jsx(AAe,{sx:{width:"fit-content",minWidth:"300px",margin:1},elevation:0,component:oc,children:S.jsx(lAe,{...g,children:p})})},thead({children:p,...g}){return S.jsx(MAe,{...g,children:p})},tr({children:p,...g}){return S.jsx(ZAe,{...g,children:p})},th({children:p,...g}){return S.jsx(YB,{...g,align:"right",sx:{padding:1},children:p})},td({children:p,...g}){return S.jsx(YB,{...g,align:"right",sx:{padding:1},children:p})},tbody({children:p,...g}){return S.jsx(mAe,{...g,children:p})}},children:a})})}),d=a.split(`
|
|
428
|
+
`).length>Aje||a.length>$je;return S.jsxs(Ht,{width:"100%",children:[d?S.jsx(_je,{onDownload:()=>sje(a,`${t}.txt`),children:u()}):u(),S.jsx(Rje,{elements:s})]})});function Lje({message:e,opened:t,onClick:n,loading:r}){var v;const{hideCot:i}=Ct(Hs),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 g="";return s&&(g=s.trim().toLowerCase().replaceAll(" ","-")),r?g+="-loading":g+="-done",S.jsx(sI,{id:g,disableElevation:!0,disableRipple:!0,sx:{textTransform:"none"},color:"primary",startIcon:r?S.jsx(B2,{color:"inherit",size:16}):void 0,variant:"contained",endIcon:a&&s?t?S.jsx(IS,{}):S.jsx(DS,{}):void 0,onClick:s?n:void 0,children:p})}const Mje=dh`
|
|
429
|
+
from {
|
|
430
|
+
background-color: transparent;
|
|
431
|
+
}
|
|
432
|
+
25% {
|
|
433
|
+
background-color: rgba(255, 173, 51, 0.5);
|
|
434
|
+
}
|
|
435
|
+
to {
|
|
436
|
+
background-color: transparent;
|
|
437
|
+
}
|
|
438
|
+
`,Fje=({message:e,elements:t,actions:n,indent:r,showAvatar:i,showBorder:o,isRunning:a,isLast:s})=>{const l=Ct(Hs),u=Ct(zq),[f,d]=T.useState(l.expandAll);return T.useEffect(()=>{d(l.expandAll)},[l.expandAll]),l.hideCot&&r?null:S.jsxs(at,{sx:{color:"text.primary",backgroundColor:"transparent"},className:"message",children:[S.jsx(at,{sx:{boxSizing:"border-box",mx:"auto",maxWidth:"60rem",display:"flex",flexDirection:"column",position:"relative"},children:S.jsxs(Ht,{id:`message-${e.id}`,direction:"row",ml:r?`${r*(qA+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 ${Mje}`:"none"},children:[S.jsx(M3e,{message:e,show:i}),S.jsxs(Ht,{alignItems:"flex-start",width:0,flexGrow:1,spacing:1,minWidth:200,children:[S.jsx(Pje,{authorIsUser:e.authorIsUser,elements:t,id:e.id,content:e.content,language:e.language}),S.jsx(Lje,{message:e,opened:f,onClick:()=>d(!f),loading:a}),!a&&s&&e.waitForAnswer&&S.jsx(O3e,{}),S.jsx(aje,{message:e,actions:n})]})]})}),e.subMessages&&f&&S.jsx(uG,{messages:e.subMessages,actions:n,elements:t,indent:r+1,isRunning:a})]})};function Nje(e,t){if(e.length-1===t)return!0;for(let n=t+1;n<e.length;n++)if(!e[n].streaming)return!1;return!0}function uG({messages:e,elements:t,actions:n,indent:r,isRunning:i}){const o=Ct(Ry),a=r===0;let s="";const l=e.filter((u,f)=>{var y;const d=!!u.content,p=!!((y=u.subMessages)!=null&&y.length),g=f===e.length-1;return d||p||!d&&(i===void 0?o&&g:i&&g)});return S.jsx(S.Fragment,{children:l.map((u,f)=>{const d=Nje(l,f);let p=i===void 0?o:i;a&&(p=p&&d);const g=u.author!==s,v=!1;return s=u.author,S.jsx(Fje,{message:u,elements:t,actions:n,showAvatar:g,showBorder:v,indent:r,isRunning:p,isLast:d},u.id)})})}function Bje(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 jje(t)}function jje(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 cG=({messages:e,elements:t,actions:n,autoScroll:r,setAutoScroll:i})=>{const o=T.useRef(),a=Bje(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 S.jsx(at,{ref:o,position:"relative",display:"flex",flexDirection:"column",overflow:"auto",flexGrow:1,onScroll:s,children:S.jsx(uG,{indent:0,messages:a,elements:t,actions:n})})};var DI={},zje=vn;Object.defineProperty(DI,"__esModule",{value:!0});var fG=DI.default=void 0,Uje=zje(yn()),Kje=S,Wje=(0,Uje.default)((0,Kje.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");fG=DI.default=Wje;class dG extends T.Component{constructor(){super(...arguments);ds(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 S.jsx(at,{flexGrow:1,children:S.jsx(ro,{severity:"error",children:n})})}return this.props.children}}function Vje({children:e}){return S.jsx(Ht,{direction:"row",sx:{backgroundColor:t=>t.palette.background.paper,padding:"16px 24px",alignItems:"center",justifyContent:"flex-end",gap:2},children:e})}var pG={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(ni,function(){var n=Array.prototype.slice;function r(m,E){E&&(m.prototype=Object.create(E.prototype)),m.prototype.constructor=m}function i(m){return l(m)?m:Pe(m)}r(o,i);function o(m){return u(m)?m:je(m)}r(a,i);function a(m){return f(m)?m:Fe(m)}r(s,i);function s(m){return l(m)&&!d(m)?m:tt(m)}function l(m){return!!(m&&m[g])}function u(m){return!!(m&&m[v])}function f(m){return!!(m&&m[y])}function d(m){return u(m)||f(m)}function p(m){return!!(m&&m[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 g="@@__IMMUTABLE_ITERABLE__@@",v="@@__IMMUTABLE_KEYED__@@",y="@@__IMMUTABLE_INDEXED__@@",w="@@__IMMUTABLE_ORDERED__@@",b="delete",x=5,C=1<<x,k=C-1,R={},A={value:!1},O={value:!1};function z(m){return m.value=!1,m}function V(m){m&&(m.value=!0)}function D(){}function W(m,E){E=E||0;for(var I=Math.max(0,m.length-E),F=new Array(I),j=0;j<I;j++)F[j]=m[j+E];return F}function ie(m){return m.size===void 0&&(m.size=m.__iterate(K)),m.size}function se(m,E){if(typeof E!="number"){var I=E>>>0;if(""+I!==E||I===4294967295)return NaN;E=I}return E<0?ie(m)+E:E}function K(){return!0}function G(m,E,I){return(m===0||I!==void 0&&m<=-I)&&(E===void 0||I!==void 0&&E>=I)}function Q(m,E){return Z(m,E,0)}function le(m,E){return Z(m,E,E)}function Z(m,E,I){return m===void 0?I:m<0?Math.max(0,E+m):E===void 0?m:Math.min(E,m)}var ee=0,P=1,ge=2,B=typeof Symbol=="function"&&Symbol.iterator,L="@@iterator",ae=B||L;function ue(m){this.next=m}ue.prototype.toString=function(){return"[Iterator]"},ue.KEYS=ee,ue.VALUES=P,ue.ENTRIES=ge,ue.prototype.inspect=ue.prototype.toSource=function(){return this.toString()},ue.prototype[ae]=function(){return this};function ne(m,E,I,F){var j=m===0?E:m===1?I:[E,I];return F?F.value=j:F={value:j,done:!1},F}function we(){return{value:void 0,done:!0}}function Te(m){return!!Be(m)}function Ee(m){return m&&typeof m.next=="function"}function Le(m){var E=Be(m);return E&&E.call(m)}function Be(m){var E=m&&(B&&m[B]||m[L]);if(typeof E=="function")return E}function Ie(m){return m&&typeof m.length=="number"}r(Pe,i);function Pe(m){return m==null?U():l(m)?m.toSeq():Y(m)}Pe.of=function(){return Pe(arguments)},Pe.prototype.toSeq=function(){return this},Pe.prototype.toString=function(){return this.__toString("Seq {","}")},Pe.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Pe.prototype.__iterate=function(m,E){return oe(this,m,E,!0)},Pe.prototype.__iterator=function(m,E){return xe(this,m,E,!0)},r(je,Pe);function je(m){return m==null?U().toKeyedSeq():l(m)?u(m)?m.toSeq():m.fromEntrySeq():H(m)}je.prototype.toKeyedSeq=function(){return this},r(Fe,Pe);function Fe(m){return m==null?U():l(m)?u(m)?m.entrySeq():m.toIndexedSeq():fe(m)}Fe.of=function(){return Fe(arguments)},Fe.prototype.toIndexedSeq=function(){return this},Fe.prototype.toString=function(){return this.__toString("Seq [","]")},Fe.prototype.__iterate=function(m,E){return oe(this,m,E,!1)},Fe.prototype.__iterator=function(m,E){return xe(this,m,E,!1)},r(tt,Pe);function tt(m){return(m==null?U():l(m)?u(m)?m.entrySeq():m:fe(m)).toSetSeq()}tt.of=function(){return tt(arguments)},tt.prototype.toSetSeq=function(){return this},Pe.isSeq=Re,Pe.Keyed=je,Pe.Set=tt,Pe.Indexed=Fe;var Xe="@@__IMMUTABLE_SEQ__@@";Pe.prototype[Xe]=!0,r(Ye,Fe);function Ye(m){this._array=m,this.size=m.length}Ye.prototype.get=function(m,E){return this.has(m)?this._array[se(this,m)]:E},Ye.prototype.__iterate=function(m,E){for(var I=this._array,F=I.length-1,j=0;j<=F;j++)if(m(I[E?F-j:j],j,this)===!1)return j+1;return j},Ye.prototype.__iterator=function(m,E){var I=this._array,F=I.length-1,j=0;return new ue(function(){return j>F?we():ne(m,j,I[E?F-j++:j++])})},r(st,je);function st(m){var E=Object.keys(m);this._object=m,this._keys=E,this.size=E.length}st.prototype.get=function(m,E){return E!==void 0&&!this.has(m)?E:this._object[m]},st.prototype.has=function(m){return this._object.hasOwnProperty(m)},st.prototype.__iterate=function(m,E){for(var I=this._object,F=this._keys,j=F.length-1,re=0;re<=j;re++){var pe=F[E?j-re:re];if(m(I[pe],pe,this)===!1)return re+1}return re},st.prototype.__iterator=function(m,E){var I=this._object,F=this._keys,j=F.length-1,re=0;return new ue(function(){var pe=F[E?j-re:re];return re++>j?we():ne(m,pe,I[pe])})},st.prototype[w]=!0,r(he,Fe);function he(m){this._iterable=m,this.size=m.length||m.size}he.prototype.__iterateUncached=function(m,E){if(E)return this.cacheResult().__iterate(m,E);var I=this._iterable,F=Le(I),j=0;if(Ee(F))for(var re;!(re=F.next()).done&&m(re.value,j++,this)!==!1;);return j},he.prototype.__iteratorUncached=function(m,E){if(E)return this.cacheResult().__iterator(m,E);var I=this._iterable,F=Le(I);if(!Ee(F))return new ue(we);var j=0;return new ue(function(){var re=F.next();return re.done?re:ne(m,j++,re.value)})},r(Ae,Fe);function Ae(m){this._iterator=m,this._iteratorCache=[]}Ae.prototype.__iterateUncached=function(m,E){if(E)return this.cacheResult().__iterate(m,E);for(var I=this._iterator,F=this._iteratorCache,j=0;j<F.length;)if(m(F[j],j++,this)===!1)return j;for(var re;!(re=I.next()).done;){var pe=re.value;if(F[j]=pe,m(pe,j++,this)===!1)break}return j},Ae.prototype.__iteratorUncached=function(m,E){if(E)return this.cacheResult().__iterator(m,E);var I=this._iterator,F=this._iteratorCache,j=0;return new ue(function(){if(j>=F.length){var re=I.next();if(re.done)return re;F[j]=re.value}return ne(m,j,F[j++])})};function Re(m){return!!(m&&m[Xe])}var Ne;function U(){return Ne||(Ne=new Ye([]))}function H(m){var E=Array.isArray(m)?new Ye(m).fromEntrySeq():Ee(m)?new Ae(m).fromEntrySeq():Te(m)?new he(m).fromEntrySeq():typeof m=="object"?new st(m):void 0;if(!E)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+m);return E}function fe(m){var E=X(m);if(!E)throw new TypeError("Expected Array or iterable object of values: "+m);return E}function Y(m){var E=X(m)||typeof m=="object"&&new st(m);if(!E)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+m);return E}function X(m){return Ie(m)?new Ye(m):Ee(m)?new Ae(m):Te(m)?new he(m):void 0}function oe(m,E,I,F){var j=m._cache;if(j){for(var re=j.length-1,pe=0;pe<=re;pe++){var Se=j[I?re-pe:pe];if(E(Se[1],F?Se[0]:pe,m)===!1)return pe+1}return pe}return m.__iterateUncached(E,I)}function xe(m,E,I,F){var j=m._cache;if(j){var re=j.length-1,pe=0;return new ue(function(){var Se=j[I?re-pe:pe];return pe++>re?we():ne(E,F?Se[0]:pe-1,Se[1])})}return m.__iteratorUncached(E,I)}function Ce(m,E){return E?_e(E,m,"",{"":m}):nt(m)}function _e(m,E,I,F){return Array.isArray(E)?m.call(F,I,Fe(E).map(function(j,re){return _e(m,j,re,E)})):rt(E)?m.call(F,I,je(E).map(function(j,re){return _e(m,j,re,E)})):E}function nt(m){return Array.isArray(m)?Fe(m).map(nt).toList():rt(m)?je(m).map(nt).toMap():m}function rt(m){return m&&(m.constructor===Object||m.constructor===void 0)}function de(m,E){if(m===E||m!==m&&E!==E)return!0;if(!m||!E)return!1;if(typeof m.valueOf=="function"&&typeof E.valueOf=="function"){if(m=m.valueOf(),E=E.valueOf(),m===E||m!==m&&E!==E)return!0;if(!m||!E)return!1}return!!(typeof m.equals=="function"&&typeof E.equals=="function"&&m.equals(E))}function me(m,E){if(m===E)return!0;if(!l(E)||m.size!==void 0&&E.size!==void 0&&m.size!==E.size||m.__hash!==void 0&&E.__hash!==void 0&&m.__hash!==E.__hash||u(m)!==u(E)||f(m)!==f(E)||p(m)!==p(E))return!1;if(m.size===0&&E.size===0)return!0;var I=!d(m);if(p(m)){var F=m.entries();return E.every(function(Oe,De){var te=F.next().value;return te&&de(te[1],Oe)&&(I||de(te[0],De))})&&F.next().done}var j=!1;if(m.size===void 0)if(E.size===void 0)typeof m.cacheResult=="function"&&m.cacheResult();else{j=!0;var re=m;m=E,E=re}var pe=!0,Se=E.__iterate(function(Oe,De){if(I?!m.has(Oe):j?!de(Oe,m.get(De,R)):!de(m.get(De,R),Oe))return pe=!1,!1});return pe&&m.size===Se}r($e,Fe);function $e(m,E){if(!(this instanceof $e))return new $e(m,E);if(this._value=m,this.size=E===void 0?1/0:Math.max(0,E),this.size===0){if(Ve)return Ve;Ve=this}}$e.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},$e.prototype.get=function(m,E){return this.has(m)?this._value:E},$e.prototype.includes=function(m){return de(this._value,m)},$e.prototype.slice=function(m,E){var I=this.size;return G(m,E,I)?this:new $e(this._value,le(E,I)-Q(m,I))},$e.prototype.reverse=function(){return this},$e.prototype.indexOf=function(m){return de(this._value,m)?0:-1},$e.prototype.lastIndexOf=function(m){return de(this._value,m)?this.size:-1},$e.prototype.__iterate=function(m,E){for(var I=0;I<this.size;I++)if(m(this._value,I,this)===!1)return I+1;return I},$e.prototype.__iterator=function(m,E){var I=this,F=0;return new ue(function(){return F<I.size?ne(m,F++,I._value):we()})},$e.prototype.equals=function(m){return m instanceof $e?de(this._value,m._value):me(m)};var Ve;function He(m,E){if(!m)throw new Error(E)}r(Ze,Fe);function Ze(m,E,I){if(!(this instanceof Ze))return new Ze(m,E,I);if(He(I!==0,"Cannot step a Range by 0"),m=m||0,E===void 0&&(E=1/0),I=I===void 0?1:Math.abs(I),E<m&&(I=-I),this._start=m,this._end=E,this._step=I,this.size=Math.max(0,Math.ceil((E-m)/I-1)+1),this.size===0){if(dt)return dt;dt=this}}Ze.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},Ze.prototype.get=function(m,E){return this.has(m)?this._start+se(this,m)*this._step:E},Ze.prototype.includes=function(m){var E=(m-this._start)/this._step;return E>=0&&E<this.size&&E===Math.floor(E)},Ze.prototype.slice=function(m,E){return G(m,E,this.size)?this:(m=Q(m,this.size),E=le(E,this.size),E<=m?new Ze(0,0):new Ze(this.get(m,this._end),this.get(E,this._end),this._step))},Ze.prototype.indexOf=function(m){var E=m-this._start;if(E%this._step===0){var I=E/this._step;if(I>=0&&I<this.size)return I}return-1},Ze.prototype.lastIndexOf=function(m){return this.indexOf(m)},Ze.prototype.__iterate=function(m,E){for(var I=this.size-1,F=this._step,j=E?this._start+I*F:this._start,re=0;re<=I;re++){if(m(j,re,this)===!1)return re+1;j+=E?-F:F}return re},Ze.prototype.__iterator=function(m,E){var I=this.size-1,F=this._step,j=E?this._start+I*F:this._start,re=0;return new ue(function(){var pe=j;return j+=E?-F:F,re>I?we():ne(m,re++,pe)})},Ze.prototype.equals=function(m){return m instanceof Ze?this._start===m._start&&this._end===m._end&&this._step===m._step:me(this,m)};var dt;r(ct,i);function ct(){throw TypeError("Abstract")}r(ot,ct);function ot(){}r(ht,ct);function ht(){}r(Ot,ct);function Ot(){}ct.Keyed=ot,ct.Indexed=ht,ct.Set=Ot;var rn=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(E,I){E=E|0,I=I|0;var F=E&65535,j=I&65535;return F*j+((E>>>16)*j+F*(I>>>16)<<16>>>0)|0};function Qt(m){return m>>>1&1073741824|m&3221225471}function Xt(m){if(m===!1||m===null||m===void 0||typeof m.valueOf=="function"&&(m=m.valueOf(),m===!1||m===null||m===void 0))return 0;if(m===!0)return 1;var E=typeof m;if(E==="number"){var I=m|0;for(I!==m&&(I^=m*4294967295);m>4294967295;)m/=4294967295,I^=m;return Qt(I)}if(E==="string")return m.length>Hl?br(m):kn(m);if(typeof m.hashCode=="function")return m.hashCode();if(E==="object")return Fr(m);if(typeof m.toString=="function")return kn(m.toString());throw new Error("Value type "+E+" cannot be hashed.")}function br(m){var E=co[m];return E===void 0&&(E=kn(m),On===$n&&(On=0,co={}),On++,co[m]=E),E}function kn(m){for(var E=0,I=0;I<m.length;I++)E=31*E+m.charCodeAt(I)|0;return Qt(E)}function Fr(m){var E;if(xi&&(E=Zs.get(m),E!==void 0)||(E=m[qr],E!==void 0)||!kr&&(E=m.propertyIsEnumerable&&m.propertyIsEnumerable[qr],E!==void 0||(E=Hr(m),E!==void 0)))return E;if(E=++wi,wi&1073741824&&(wi=0),xi)Zs.set(m,E);else{if(_r!==void 0&&_r(m)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(kr)Object.defineProperty(m,qr,{enumerable:!1,configurable:!1,writable:!1,value:E});else if(m.propertyIsEnumerable!==void 0&&m.propertyIsEnumerable===m.constructor.prototype.propertyIsEnumerable)m.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},m.propertyIsEnumerable[qr]=E;else if(m.nodeType!==void 0)m[qr]=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 Hr(m){if(m&&m.nodeType>0)switch(m.nodeType){case 1:return m.uniqueID;case 9:return m.documentElement&&m.documentElement.uniqueID}}var xi=typeof WeakMap=="function",Zs;xi&&(Zs=new WeakMap);var wi=0,qr="__immutablehash__";typeof Symbol=="function"&&(qr=Symbol(qr));var Hl=16,$n=255,On=0,co={};function dr(m){He(m!==1/0,"Cannot perform this action with an infinite size.")}r($t,ot);function $t(m){return m==null?No():pc(m)&&!p(m)?m:No().withMutations(function(E){var I=o(m);dr(I.size),I.forEach(function(F,j){return E.set(j,F)})})}$t.prototype.toString=function(){return this.__toString("Map {","}")},$t.prototype.get=function(m,E){return this._root?this._root.get(0,void 0,m,E):E},$t.prototype.set=function(m,E){return t0(this,m,E)},$t.prototype.setIn=function(m,E){return this.updateIn(m,R,function(){return E})},$t.prototype.remove=function(m){return t0(this,m,R)},$t.prototype.deleteIn=function(m){return this.updateIn(m,function(){return R})},$t.prototype.update=function(m,E,I){return arguments.length===1?m(this):this.updateIn([m],E,I)},$t.prototype.updateIn=function(m,E,I){I||(I=E,E=void 0);var F=o0(this,ad(m),E,I);return F===R?void 0:F},$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):No()},$t.prototype.merge=function(){return td(this,void 0,arguments)},$t.prototype.mergeWith=function(m){var E=n.call(arguments,1);return td(this,m,E)},$t.prototype.mergeIn=function(m){var E=n.call(arguments,1);return this.updateIn(m,No(),function(I){return typeof I.merge=="function"?I.merge.apply(I,E):E[E.length-1]})},$t.prototype.mergeDeep=function(){return td(this,Zh,arguments)},$t.prototype.mergeDeepWith=function(m){var E=n.call(arguments,1);return td(this,gc(m),E)},$t.prototype.mergeDeepIn=function(m){var E=n.call(arguments,1);return this.updateIn(m,No(),function(I){return typeof I.mergeDeep=="function"?I.mergeDeep.apply(I,E):E[E.length-1]})},$t.prototype.sort=function(m){return ar(el(this,m))},$t.prototype.sortBy=function(m,E){return ar(el(this,E,m))},$t.prototype.withMutations=function(m){var E=this.asMutable();return m(E),E.wasAltered()?E.__ensureOwner(this.__ownerID):this},$t.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new D)},$t.prototype.asImmutable=function(){return this.__ensureOwner()},$t.prototype.wasAltered=function(){return this.__altered},$t.prototype.__iterator=function(m,E){return new Vh(this,m,E)},$t.prototype.__iterate=function(m,E){var I=this,F=0;return this._root&&this._root.iterate(function(j){return F++,m(j[1],j[0],I)},E),F},$t.prototype.__ensureOwner=function(m){return m===this.__ownerID?this:m?Qf(this.size,this._root,m,this.__hash):(this.__ownerID=m,this.__altered=!1,this)};function pc(m){return!!(m&&m[Jf])}$t.isMap=pc;var Jf="@@__IMMUTABLE_MAP__@@",lt=$t.prototype;lt[Jf]=!0,lt[b]=lt.remove,lt.removeIn=lt.deleteIn;function xr(m,E){this.ownerID=m,this.entries=E}xr.prototype.get=function(m,E,I,F){for(var j=this.entries,re=0,pe=j.length;re<pe;re++)if(de(I,j[re][0]))return j[re][1];return F},xr.prototype.update=function(m,E,I,F,j,re,pe){for(var Se=j===R,Oe=this.entries,De=0,te=Oe.length;De<te&&!de(F,Oe[De][0]);De++);var be=De<te;if(be?Oe[De][1]===j:Se)return this;if(V(pe),(Se||!be)&&V(re),!(Se&&Oe.length===1)){if(!be&&!Se&&Oe.length>=a0)return r0(m,Oe,F,j);var ye=m&&m===this.ownerID,We=ye?Oe:W(Oe);return be?Se?De===te-1?We.pop():We[De]=We.pop():We[De]=[F,j]:We.push([F,j]),ye?(this.entries=We,this):new xr(m,We)}};function Ea(m,E,I){this.ownerID=m,this.bitmap=E,this.nodes=I}Ea.prototype.get=function(m,E,I,F){E===void 0&&(E=Xt(I));var j=1<<((m===0?E:E>>>m)&k),re=this.bitmap;return re&j?this.nodes[Qh(re&j-1)].get(m+x,E,I,F):F},Ea.prototype.update=function(m,E,I,F,j,re,pe){I===void 0&&(I=Xt(F));var Se=(E===0?I:I>>>E)&k,Oe=1<<Se,De=this.bitmap,te=(De&Oe)!==0;if(!te&&j===R)return this;var be=Qh(De&Oe-1),ye=this.nodes,We=te?ye[be]:void 0,it=Yh(We,m,E+x,I,F,j,re,pe);if(it===We)return this;if(!te&&it&&ye.length>=ng)return Xh(m,ye,De,Se,it);if(te&&!it&&ye.length===2&&n0(ye[be^1]))return ye[be^1];if(te&&it&&ye.length===1&&n0(it))return it;var wt=m&&m===this.ownerID,fn=te?it?De:De^Oe:De|Oe,Vt=te?it?eg(ye,be,it,wt):EC(ye,be,wt):tg(ye,be,it,wt);return wt?(this.bitmap=fn,this.nodes=Vt,this):new Ea(m,fn,Vt)};function hc(m,E,I){this.ownerID=m,this.count=E,this.nodes=I}hc.prototype.get=function(m,E,I,F){E===void 0&&(E=Xt(I));var j=(m===0?E:E>>>m)&k,re=this.nodes[j];return re?re.get(m+x,E,I,F):F},hc.prototype.update=function(m,E,I,F,j,re,pe){I===void 0&&(I=Xt(F));var Se=(E===0?I:I>>>E)&k,Oe=j===R,De=this.nodes,te=De[Se];if(Oe&&!te)return this;var be=Yh(te,m,E+x,I,F,j,re,pe);if(be===te)return this;var ye=this.count;if(!te)ye++;else if(!be&&(ye--,ye<rg))return i0(m,De,ye,Se);var We=m&&m===this.ownerID,it=eg(De,Se,be,We);return We?(this.count=ye,this.nodes=it,this):new hc(m,ye,it)};function ka(m,E,I){this.ownerID=m,this.keyHash=E,this.entries=I}ka.prototype.get=function(m,E,I,F){for(var j=this.entries,re=0,pe=j.length;re<pe;re++)if(de(I,j[re][0]))return j[re][1];return F},ka.prototype.update=function(m,E,I,F,j,re,pe){I===void 0&&(I=Xt(F));var Se=j===R;if(I!==this.keyHash)return Se?this:(V(pe),V(re),ed(this,m,E,I,[F,j]));for(var Oe=this.entries,De=0,te=Oe.length;De<te&&!de(F,Oe[De][0]);De++);var be=De<te;if(be?Oe[De][1]===j:Se)return this;if(V(pe),(Se||!be)&&V(re),Se&&te===2)return new Ta(m,this.keyHash,Oe[De^1]);var ye=m&&m===this.ownerID,We=ye?Oe:W(Oe);return be?Se?De===te-1?We.pop():We[De]=We.pop():We[De]=[F,j]:We.push([F,j]),ye?(this.entries=We,this):new ka(m,this.keyHash,We)};function Ta(m,E,I){this.ownerID=m,this.keyHash=E,this.entry=I}Ta.prototype.get=function(m,E,I,F){return de(I,this.entry[0])?this.entry[1]:F},Ta.prototype.update=function(m,E,I,F,j,re,pe){var Se=j===R,Oe=de(F,this.entry[0]);if(Oe?j===this.entry[1]:Se)return this;if(V(pe),Se){V(re);return}return Oe?m&&m===this.ownerID?(this.entry[1]=j,this):new Ta(m,this.keyHash,[F,j]):(V(re),ed(this,m,E,Xt(F),[F,j]))},xr.prototype.iterate=ka.prototype.iterate=function(m,E){for(var I=this.entries,F=0,j=I.length-1;F<=j;F++)if(m(I[E?j-F:F])===!1)return!1},Ea.prototype.iterate=hc.prototype.iterate=function(m,E){for(var I=this.nodes,F=0,j=I.length-1;F<=j;F++){var re=I[E?j-F:F];if(re&&re.iterate(m,E)===!1)return!1}},Ta.prototype.iterate=function(m,E){return m(this.entry)},r(Vh,ue);function Vh(m,E,I){this._type=E,this._reverse=I,this._stack=m._root&&qh(m._root)}Vh.prototype.next=function(){for(var m=this._type,E=this._stack;E;){var I=E.node,F=E.index++,j;if(I.entry){if(F===0)return Hh(m,I.entry)}else if(I.entries){if(j=I.entries.length-1,F<=j)return Hh(m,I.entries[this._reverse?j-F:F])}else if(j=I.nodes.length-1,F<=j){var re=I.nodes[this._reverse?j-F:F];if(re){if(re.entry)return Hh(m,re.entry);E=this._stack=qh(re,E)}continue}E=this._stack=this._stack.__prev}return we()};function Hh(m,E){return ne(m,E[0],E[1])}function qh(m,E){return{node:m,index:0,__prev:E}}function Qf(m,E,I,F){var j=Object.create(lt);return j.size=m,j._root=E,j.__ownerID=I,j.__hash=F,j.__altered=!1,j}var Gh;function No(){return Gh||(Gh=Qf(0))}function t0(m,E,I){var F,j;if(m._root){var re=z(A),pe=z(O);if(F=Yh(m._root,m.__ownerID,0,void 0,E,I,re,pe),!pe.value)return m;j=m.size+(re.value?I===R?-1:1:0)}else{if(I===R)return m;j=1,F=new xr(m.__ownerID,[[E,I]])}return m.__ownerID?(m.size=j,m._root=F,m.__hash=void 0,m.__altered=!0,m):F?Qf(j,F):No()}function Yh(m,E,I,F,j,re,pe,Se){return m?m.update(E,I,F,j,re,pe,Se):re===R?m:(V(Se),V(pe),new Ta(E,F,[j,re]))}function n0(m){return m.constructor===Ta||m.constructor===ka}function ed(m,E,I,F,j){if(m.keyHash===F)return new ka(E,F,[m.entry,j]);var re=(I===0?m.keyHash:m.keyHash>>>I)&k,pe=(I===0?F:F>>>I)&k,Se,Oe=re===pe?[ed(m,E,I+x,F,j)]:(Se=new Ta(E,F,j),re<pe?[m,Se]:[Se,m]);return new Ea(E,1<<re|1<<pe,Oe)}function r0(m,E,I,F){m||(m=new D);for(var j=new Ta(m,Xt(I),[I,F]),re=0;re<E.length;re++){var pe=E[re];j=j.update(m,0,void 0,pe[0],pe[1])}return j}function i0(m,E,I,F){for(var j=0,re=0,pe=new Array(I),Se=0,Oe=1,De=E.length;Se<De;Se++,Oe<<=1){var te=E[Se];te!==void 0&&Se!==F&&(j|=Oe,pe[re++]=te)}return new Ea(m,j,pe)}function Xh(m,E,I,F,j){for(var re=0,pe=new Array(C),Se=0;I!==0;Se++,I>>>=1)pe[Se]=I&1?E[re++]:void 0;return pe[F]=j,new hc(m,re+1,pe)}function td(m,E,I){for(var F=[],j=0;j<I.length;j++){var re=I[j],pe=o(re);l(re)||(pe=pe.map(function(Se){return Ce(Se)})),F.push(pe)}return Jh(m,E,F)}function Zh(m,E,I){return m&&m.mergeDeep&&l(E)?m.mergeDeep(E):de(m,E)?m:E}function gc(m){return function(E,I,F){if(E&&E.mergeDeepWith&&l(I))return E.mergeDeepWith(m,I);var j=m(E,I,F);return de(E,j)?E:j}}function Jh(m,E,I){return I=I.filter(function(F){return F.size!==0}),I.length===0?m:m.size===0&&!m.__ownerID&&I.length===1?m.constructor(I[0]):m.withMutations(function(F){for(var j=E?function(pe,Se){F.update(Se,R,function(Oe){return Oe===R?pe:E(Oe,pe,Se)})}:function(pe,Se){F.set(Se,pe)},re=0;re<I.length;re++)I[re].forEach(j)})}function o0(m,E,I,F){var j=m===R,re=E.next();if(re.done){var pe=j?I:m,Se=F(pe);return Se===pe?m:Se}He(j||m&&m.set,"invalid keyPath");var Oe=re.value,De=j?R:m.get(Oe,R),te=o0(De,E,I,F);return te===De?m:te===R?m.remove(Oe):(j?No():m).set(Oe,te)}function Qh(m){return m=m-(m>>1&1431655765),m=(m&858993459)+(m>>2&858993459),m=m+(m>>4)&252645135,m=m+(m>>8),m=m+(m>>16),m&127}function eg(m,E,I,F){var j=F?m:W(m);return j[E]=I,j}function tg(m,E,I,F){var j=m.length+1;if(F&&E+1===j)return m[E]=I,m;for(var re=new Array(j),pe=0,Se=0;Se<j;Se++)Se===E?(re[Se]=I,pe=-1):re[Se]=m[Se+pe];return re}function EC(m,E,I){var F=m.length-1;if(I&&E===F)return m.pop(),m;for(var j=new Array(F),re=0,pe=0;pe<F;pe++)pe===E&&(re=1),j[pe]=m[pe+re];return j}var a0=C/4,ng=C/2,rg=C/4;r(sn,ht);function sn(m){var E=sg();if(m==null)return E;if(ig(m))return m;var I=a(m),F=I.size;return F===0?E:(dr(F),F>0&&F<C?Gl(0,F,x,null,new Ra(I.toArray())):E.withMutations(function(j){j.setSize(F),I.forEach(function(re,pe){return j.set(pe,re)})}))}sn.of=function(){return this(arguments)},sn.prototype.toString=function(){return this.__toString("List [","]")},sn.prototype.get=function(m,E){if(m=se(this,m),m>=0&&m<this.size){m+=this._origin;var I=l0(this,m);return I&&I.array[m&k]}return E},sn.prototype.set=function(m,E){return kC(this,m,E)},sn.prototype.remove=function(m){return this.has(m)?m===0?this.shift():m===this.size-1?this.pop():this.splice(m,1):this},sn.prototype.insert=function(m,E){return this.splice(m,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):sg()},sn.prototype.push=function(){var m=arguments,E=this.size;return this.withMutations(function(I){os(I,0,E+m.length);for(var F=0;F<m.length;F++)I.set(E+F,m[F])})},sn.prototype.pop=function(){return os(this,0,-1)},sn.prototype.unshift=function(){var m=arguments;return this.withMutations(function(E){os(E,-m.length);for(var I=0;I<m.length;I++)E.set(I,m[I])})},sn.prototype.shift=function(){return os(this,1)},sn.prototype.merge=function(){return rd(this,void 0,arguments)},sn.prototype.mergeWith=function(m){var E=n.call(arguments,1);return rd(this,m,E)},sn.prototype.mergeDeep=function(){return rd(this,Zh,arguments)},sn.prototype.mergeDeepWith=function(m){var E=n.call(arguments,1);return rd(this,gc(m),E)},sn.prototype.setSize=function(m){return os(this,0,m)},sn.prototype.slice=function(m,E){var I=this.size;return G(m,E,I)?this:os(this,Q(m,I),le(E,I))},sn.prototype.__iterator=function(m,E){var I=0,F=ag(this,E);return new ue(function(){var j=F();return j===ql?we():ne(m,I++,j)})},sn.prototype.__iterate=function(m,E){for(var I=0,F=ag(this,E),j;(j=F())!==ql&&m(j,I++,this)!==!1;);return I},sn.prototype.__ensureOwner=function(m){return m===this.__ownerID?this:m?Gl(this._origin,this._capacity,this._level,this._root,this._tail,m,this.__hash):(this.__ownerID=m,this)};function ig(m){return!!(m&&m[og])}sn.isList=ig;var og="@@__IMMUTABLE_LIST__@@",Gr=sn.prototype;Gr[og]=!0,Gr[b]=Gr.remove,Gr.setIn=lt.setIn,Gr.deleteIn=Gr.removeIn=lt.removeIn,Gr.update=lt.update,Gr.updateIn=lt.updateIn,Gr.mergeIn=lt.mergeIn,Gr.mergeDeepIn=lt.mergeDeepIn,Gr.withMutations=lt.withMutations,Gr.asMutable=lt.asMutable,Gr.asImmutable=lt.asImmutable,Gr.wasAltered=lt.wasAltered;function Ra(m,E){this.array=m,this.ownerID=E}Ra.prototype.removeBefore=function(m,E,I){if(I===E?1<<E:this.array.length===0)return this;var F=I>>>E&k;if(F>=this.array.length)return new Ra([],m);var j=F===0,re;if(E>0){var pe=this.array[F];if(re=pe&&pe.removeBefore(m,E-x,I),re===pe&&j)return this}if(j&&!re)return this;var Se=Yl(this,m);if(!j)for(var Oe=0;Oe<F;Oe++)Se.array[Oe]=void 0;return re&&(Se.array[F]=re),Se},Ra.prototype.removeAfter=function(m,E,I){if(I===(E?1<<E:0)||this.array.length===0)return this;var F=I-1>>>E&k;if(F>=this.array.length)return this;var j;if(E>0){var re=this.array[F];if(j=re&&re.removeAfter(m,E-x,I),j===re&&F===this.array.length-1)return this}var pe=Yl(this,m);return pe.array.splice(F+1),j&&(pe.array[F]=j),pe};var ql={};function ag(m,E){var I=m._origin,F=m._capacity,j=Js(F),re=m._tail;return pe(m._root,m._level,0);function pe(De,te,be){return te===0?Se(De,be):Oe(De,te,be)}function Se(De,te){var be=te===j?re&&re.array:De&&De.array,ye=te>I?0:I-te,We=F-te;return We>C&&(We=C),function(){if(ye===We)return ql;var it=E?--We:ye++;return be&&be[it]}}function Oe(De,te,be){var ye,We=De&&De.array,it=be>I?0:I-be>>te,wt=(F-be>>te)+1;return wt>C&&(wt=C),function(){do{if(ye){var fn=ye();if(fn!==ql)return fn;ye=null}if(it===wt)return ql;var Vt=E?--wt:it++;ye=pe(We&&We[Vt],te-x,be+(Vt<<te))}while(!0)}}}function Gl(m,E,I,F,j,re,pe){var Se=Object.create(Gr);return Se.size=E-m,Se._origin=m,Se._capacity=E,Se._level=I,Se._root=F,Se._tail=j,Se.__ownerID=re,Se.__hash=pe,Se.__altered=!1,Se}var s0;function sg(){return s0||(s0=Gl(0,0,x))}function kC(m,E,I){if(E=se(m,E),E!==E)return m;if(E>=m.size||E<0)return m.withMutations(function(pe){E<0?os(pe,E).set(0,I):os(pe,0,E+1).set(E,I)});E+=m._origin;var F=m._tail,j=m._root,re=z(O);return E>=Js(m._capacity)?F=nd(F,m.__ownerID,0,E,I,re):j=nd(j,m.__ownerID,m._level,E,I,re),re.value?m.__ownerID?(m._root=j,m._tail=F,m.__hash=void 0,m.__altered=!0,m):Gl(m._origin,m._capacity,m._level,j,F):m}function nd(m,E,I,F,j,re){var pe=F>>>I&k,Se=m&&pe<m.array.length;if(!Se&&j===void 0)return m;var Oe;if(I>0){var De=m&&m.array[pe],te=nd(De,E,I-x,F,j,re);return te===De?m:(Oe=Yl(m,E),Oe.array[pe]=te,Oe)}return Se&&m.array[pe]===j?m:(V(re),Oe=Yl(m,E),j===void 0&&pe===Oe.array.length-1?Oe.array.pop():Oe.array[pe]=j,Oe)}function Yl(m,E){return E&&m&&E===m.ownerID?m:new Ra(m?m.array.slice():[],E)}function l0(m,E){if(E>=Js(m._capacity))return m._tail;if(E<1<<m._level+x){for(var I=m._root,F=m._level;I&&F>0;)I=I.array[E>>>F&k],F-=x;return I}}function os(m,E,I){E!==void 0&&(E=E|0),I!==void 0&&(I=I|0);var F=m.__ownerID||new D,j=m._origin,re=m._capacity,pe=j+E,Se=I===void 0?re:I<0?re+I:j+I;if(pe===j&&Se===re)return m;if(pe>=Se)return m.clear();for(var Oe=m._level,De=m._root,te=0;pe+te<0;)De=new Ra(De&&De.array.length?[void 0,De]:[],F),Oe+=x,te+=1<<Oe;te&&(pe+=te,j+=te,Se+=te,re+=te);for(var be=Js(re),ye=Js(Se);ye>=1<<Oe+x;)De=new Ra(De&&De.array.length?[De]:[],F),Oe+=x;var We=m._tail,it=ye<be?l0(m,Se-1):ye>be?new Ra([],F):We;if(We&&ye>be&&pe<re&&We.array.length){De=Yl(De,F);for(var wt=De,fn=Oe;fn>x;fn-=x){var Vt=be>>>fn&k;wt=wt.array[Vt]=Yl(wt.array[Vt],F)}wt.array[be>>>x&k]=We}if(Se<re&&(it=it&&it.removeAfter(F,0,Se)),pe>=ye)pe-=ye,Se-=ye,Oe=x,De=null,it=it&&it.removeBefore(F,0,pe);else if(pe>j||ye<be){for(te=0;De;){var eu=pe>>>Oe&k;if(eu!==ye>>>Oe&k)break;eu&&(te+=(1<<Oe)*eu),Oe-=x,De=De.array[eu]}De&&pe>j&&(De=De.removeBefore(F,Oe,pe-te)),De&&ye<be&&(De=De.removeAfter(F,Oe,ye-te)),te&&(pe-=te,Se-=te)}return m.__ownerID?(m.size=Se-pe,m._origin=pe,m._capacity=Se,m._level=Oe,m._root=De,m._tail=it,m.__hash=void 0,m.__altered=!0,m):Gl(pe,Se,Oe,De,it)}function rd(m,E,I){for(var F=[],j=0,re=0;re<I.length;re++){var pe=I[re],Se=a(pe);Se.size>j&&(j=Se.size),l(pe)||(Se=Se.map(function(Oe){return Ce(Oe)})),F.push(Se)}return j>m.size&&(m=m.setSize(j)),Jh(m,E,F)}function Js(m){return m<C?0:m-1>>>x<<x}r(ar,$t);function ar(m){return m==null?id():u0(m)?m:id().withMutations(function(E){var I=o(m);dr(I.size),I.forEach(function(F,j){return E.set(j,F)})})}ar.of=function(){return this(arguments)},ar.prototype.toString=function(){return this.__toString("OrderedMap {","}")},ar.prototype.get=function(m,E){var I=this._map.get(m);return I!==void 0?this._list.get(I)[1]:E},ar.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):id()},ar.prototype.set=function(m,E){return Tn(this,m,E)},ar.prototype.remove=function(m){return Tn(this,m,R)},ar.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},ar.prototype.__iterate=function(m,E){var I=this;return this._list.__iterate(function(F){return F&&m(F[1],F[0],I)},E)},ar.prototype.__iterator=function(m,E){return this._list.fromEntrySeq().__iterator(m,E)},ar.prototype.__ensureOwner=function(m){if(m===this.__ownerID)return this;var E=this._map.__ensureOwner(m),I=this._list.__ensureOwner(m);return m?lg(E,I,m,this.__hash):(this.__ownerID=m,this._map=E,this._list=I,this)};function u0(m){return pc(m)&&p(m)}ar.isOrderedMap=u0,ar.prototype[w]=!0,ar.prototype[b]=ar.prototype.remove;function lg(m,E,I,F){var j=Object.create(ar.prototype);return j.size=m?m.size:0,j._map=m,j._list=E,j.__ownerID=I,j.__hash=F,j}var c0;function id(){return c0||(c0=lg(No(),sg()))}function Tn(m,E,I){var F=m._map,j=m._list,re=F.get(E),pe=re!==void 0,Se,Oe;if(I===R){if(!pe)return m;j.size>=C&&j.size>=F.size*2?(Oe=j.filter(function(De,te){return De!==void 0&&re!==te}),Se=Oe.toKeyedSeq().map(function(De){return De[0]}).flip().toMap(),m.__ownerID&&(Se.__ownerID=Oe.__ownerID=m.__ownerID)):(Se=F.remove(E),Oe=re===j.size-1?j.pop():j.set(re,void 0))}else if(pe){if(I===j.get(re)[1])return m;Se=F,Oe=j.set(re,[E,I])}else Se=F.set(E,j.size),Oe=j.set(j.size,[E,I]);return m.__ownerID?(m.size=Se.size,m._map=Se,m._list=Oe,m.__hash=void 0,m):lg(Se,Oe)}r(Ut,je);function Ut(m,E){this._iter=m,this._useKeys=E,this.size=m.size}Ut.prototype.get=function(m,E){return this._iter.get(m,E)},Ut.prototype.has=function(m){return this._iter.has(m)},Ut.prototype.valueSeq=function(){return this._iter.valueSeq()},Ut.prototype.reverse=function(){var m=this,E=ug(this,!0);return this._useKeys||(E.valueSeq=function(){return m._iter.toSeq().reverse()}),E},Ut.prototype.map=function(m,E){var I=this,F=d0(this,m,E);return this._useKeys||(F.valueSeq=function(){return I._iter.toSeq().map(m,E)}),F},Ut.prototype.__iterate=function(m,E){var I=this,F;return this._iter.__iterate(this._useKeys?function(j,re){return m(j,re,I)}:(F=E?Ci(this):0,function(j){return m(j,E?--F:F++,I)}),E)},Ut.prototype.__iterator=function(m,E){if(this._useKeys)return this._iter.__iterator(m,E);var I=this._iter.__iterator(P,E),F=E?Ci(this):0;return new ue(function(){var j=I.next();return j.done?j:ne(m,E?--F:F++,j.value,j)})},Ut.prototype[w]=!0,r(Xl,Fe);function Xl(m){this._iter=m,this.size=m.size}Xl.prototype.includes=function(m){return this._iter.includes(m)},Xl.prototype.__iterate=function(m,E){var I=this,F=0;return this._iter.__iterate(function(j){return m(j,F++,I)},E)},Xl.prototype.__iterator=function(m,E){var I=this._iter.__iterator(P,E),F=0;return new ue(function(){var j=I.next();return j.done?j:ne(m,F++,j.value,j)})},r(Zl,tt);function Zl(m){this._iter=m,this.size=m.size}Zl.prototype.has=function(m){return this._iter.includes(m)},Zl.prototype.__iterate=function(m,E){var I=this;return this._iter.__iterate(function(F){return m(F,F,I)},E)},Zl.prototype.__iterator=function(m,E){var I=this._iter.__iterator(P,E);return new ue(function(){var F=I.next();return F.done?F:ne(m,F.value,F.value,F)})},r(Jl,je);function Jl(m){this._iter=m,this.size=m.size}Jl.prototype.entrySeq=function(){return this._iter.toSeq()},Jl.prototype.__iterate=function(m,E){var I=this;return this._iter.__iterate(function(F){if(F){g0(F);var j=l(F);return m(j?F.get(1):F[1],j?F.get(0):F[0],I)}},E)},Jl.prototype.__iterator=function(m,E){var I=this._iter.__iterator(P,E);return new ue(function(){for(;;){var F=I.next();if(F.done)return F;var j=F.value;if(j){g0(j);var re=l(j);return ne(m,re?j.get(0):j[0],re?j.get(1):j[1],F)}}})},Xl.prototype.cacheResult=Ut.prototype.cacheResult=Zl.prototype.cacheResult=Jl.prototype.cacheResult=Bo;function f0(m){var E=fo(m);return E._iter=m,E.size=m.size,E.flip=function(){return m},E.reverse=function(){var I=m.reverse.apply(this);return I.flip=function(){return m.reverse()},I},E.has=function(I){return m.includes(I)},E.includes=function(I){return m.has(I)},E.cacheResult=Bo,E.__iterateUncached=function(I,F){var j=this;return m.__iterate(function(re,pe){return I(pe,re,j)!==!1},F)},E.__iteratorUncached=function(I,F){if(I===ge){var j=m.__iterator(I,F);return new ue(function(){var re=j.next();if(!re.done){var pe=re.value[0];re.value[0]=re.value[1],re.value[1]=pe}return re})}return m.__iterator(I===P?ee:P,F)},E}function d0(m,E,I){var F=fo(m);return F.size=m.size,F.has=function(j){return m.has(j)},F.get=function(j,re){var pe=m.get(j,R);return pe===R?re:E.call(I,pe,j,m)},F.__iterateUncached=function(j,re){var pe=this;return m.__iterate(function(Se,Oe,De){return j(E.call(I,Se,Oe,De),Oe,pe)!==!1},re)},F.__iteratorUncached=function(j,re){var pe=m.__iterator(ge,re);return new ue(function(){var Se=pe.next();if(Se.done)return Se;var Oe=Se.value,De=Oe[0];return ne(j,De,E.call(I,Oe[1],De,m),Se)})},F}function ug(m,E){var I=fo(m);return I._iter=m,I.size=m.size,I.reverse=function(){return m},m.flip&&(I.flip=function(){var F=f0(m);return F.reverse=function(){return m.flip()},F}),I.get=function(F,j){return m.get(E?F:-1-F,j)},I.has=function(F){return m.has(E?F:-1-F)},I.includes=function(F){return m.includes(F)},I.cacheResult=Bo,I.__iterate=function(F,j){var re=this;return m.__iterate(function(pe,Se){return F(pe,Se,re)},!j)},I.__iterator=function(F,j){return m.__iterator(F,!j)},I}function cg(m,E,I,F){var j=fo(m);return F&&(j.has=function(re){var pe=m.get(re,R);return pe!==R&&!!E.call(I,pe,re,m)},j.get=function(re,pe){var Se=m.get(re,R);return Se!==R&&E.call(I,Se,re,m)?Se:pe}),j.__iterateUncached=function(re,pe){var Se=this,Oe=0;return m.__iterate(function(De,te,be){if(E.call(I,De,te,be))return Oe++,re(De,F?te:Oe-1,Se)},pe),Oe},j.__iteratorUncached=function(re,pe){var Se=m.__iterator(ge,pe),Oe=0;return new ue(function(){for(;;){var De=Se.next();if(De.done)return De;var te=De.value,be=te[0],ye=te[1];if(E.call(I,ye,be,m))return ne(re,F?be:Oe++,ye,De)}})},j}function TC(m,E,I){var F=$t().asMutable();return m.__iterate(function(j,re){F.update(E.call(I,j,re,m),0,function(pe){return pe+1})}),F.asImmutable()}function Dr(m,E,I){var F=u(m),j=(p(m)?ar():$t()).asMutable();m.__iterate(function(pe,Se){j.update(E.call(I,pe,Se,m),function(Oe){return Oe=Oe||[],Oe.push(F?[Se,pe]:pe),Oe})});var re=m0(m);return j.map(function(pe){return Lt(m,re(pe))})}function mc(m,E,I,F){var j=m.size;if(E!==void 0&&(E=E|0),I!==void 0&&(I=I|0),G(E,I,j))return m;var re=Q(E,j),pe=le(I,j);if(re!==re||pe!==pe)return mc(m.toSeq().cacheResult(),E,I,F);var Se=pe-re,Oe;Se===Se&&(Oe=Se<0?0:Se);var De=fo(m);return De.size=Oe===0?Oe:m.size&&Oe||void 0,!F&&Re(m)&&Oe>=0&&(De.get=function(te,be){return te=se(this,te),te>=0&&te<Oe?m.get(te+re,be):be}),De.__iterateUncached=function(te,be){var ye=this;if(Oe===0)return 0;if(be)return this.cacheResult().__iterate(te,be);var We=0,it=!0,wt=0;return m.__iterate(function(fn,Vt){if(!(it&&(it=We++<re)))return wt++,te(fn,F?Vt:wt-1,ye)!==!1&&wt!==Oe}),wt},De.__iteratorUncached=function(te,be){if(Oe!==0&&be)return this.cacheResult().__iterator(te,be);var ye=Oe!==0&&m.__iterator(te,be),We=0,it=0;return new ue(function(){for(;We++<re;)ye.next();if(++it>Oe)return we();var wt=ye.next();return F||te===P?wt:te===ee?ne(te,it-1,void 0,wt):ne(te,it-1,wt.value[1],wt)})},De}function Qs(m,E,I){var F=fo(m);return F.__iterateUncached=function(j,re){var pe=this;if(re)return this.cacheResult().__iterate(j,re);var Se=0;return m.__iterate(function(Oe,De,te){return E.call(I,Oe,De,te)&&++Se&&j(Oe,De,pe)}),Se},F.__iteratorUncached=function(j,re){var pe=this;if(re)return this.cacheResult().__iterator(j,re);var Se=m.__iterator(ge,re),Oe=!0;return new ue(function(){if(!Oe)return we();var De=Se.next();if(De.done)return De;var te=De.value,be=te[0],ye=te[1];return E.call(I,ye,be,pe)?j===ge?De:ne(j,be,ye,De):(Oe=!1,we())})},F}function fg(m,E,I,F){var j=fo(m);return j.__iterateUncached=function(re,pe){var Se=this;if(pe)return this.cacheResult().__iterate(re,pe);var Oe=!0,De=0;return m.__iterate(function(te,be,ye){if(!(Oe&&(Oe=E.call(I,te,be,ye))))return De++,re(te,F?be:De-1,Se)}),De},j.__iteratorUncached=function(re,pe){var Se=this;if(pe)return this.cacheResult().__iterator(re,pe);var Oe=m.__iterator(ge,pe),De=!0,te=0;return new ue(function(){var be,ye,We;do{if(be=Oe.next(),be.done)return F||re===P?be:re===ee?ne(re,te++,void 0,be):ne(re,te++,be.value[1],be);var it=be.value;ye=it[0],We=it[1],De&&(De=E.call(I,We,ye,Se))}while(De);return re===ge?be:ne(re,ye,We,be)})},j}function dg(m,E){var I=u(m),F=[m].concat(E).map(function(pe){return l(pe)?I&&(pe=o(pe)):pe=I?H(pe):fe(Array.isArray(pe)?pe:[pe]),pe}).filter(function(pe){return pe.size!==0});if(F.length===0)return m;if(F.length===1){var j=F[0];if(j===m||I&&u(j)||f(m)&&f(j))return j}var re=new Ye(F);return I?re=re.toKeyedSeq():f(m)||(re=re.toSetSeq()),re=re.flatten(!0),re.size=F.reduce(function(pe,Se){if(pe!==void 0){var Oe=Se.size;if(Oe!==void 0)return pe+Oe}},0),re}function Si(m,E,I){var F=fo(m);return F.__iterateUncached=function(j,re){var pe=0,Se=!1;function Oe(De,te){var be=this;De.__iterate(function(ye,We){return(!E||te<E)&&l(ye)?Oe(ye,te+1):j(ye,I?We:pe++,be)===!1&&(Se=!0),!Se},re)}return Oe(m,0),pe},F.__iteratorUncached=function(j,re){var pe=m.__iterator(j,re),Se=[],Oe=0;return new ue(function(){for(;pe;){var De=pe.next();if(De.done!==!1){pe=Se.pop();continue}var te=De.value;if(j===ge&&(te=te[1]),(!E||Se.length<E)&&l(te))Se.push(pe),pe=te.__iterator(j,re);else return I?De:ne(j,Oe++,te,De)}return we()})},F}function p0(m,E,I){var F=m0(m);return m.toSeq().map(function(j,re){return F(E.call(I,j,re,m))}).flatten(!0)}function h0(m,E){var I=fo(m);return I.size=m.size&&m.size*2-1,I.__iterateUncached=function(F,j){var re=this,pe=0;return m.__iterate(function(Se,Oe){return(!pe||F(E,pe++,re)!==!1)&&F(Se,pe++,re)!==!1},j),pe},I.__iteratorUncached=function(F,j){var re=m.__iterator(P,j),pe=0,Se;return new ue(function(){return(!Se||pe%2)&&(Se=re.next(),Se.done)?Se:pe%2?ne(F,pe++,E):ne(F,pe++,Se.value,Se)})},I}function el(m,E,I){E||(E=yc);var F=u(m),j=0,re=m.toSeq().map(function(pe,Se){return[Se,pe,j++,I?I(pe,Se,m):pe]}).toArray();return re.sort(function(pe,Se){return E(pe[3],Se[3])||pe[2]-Se[2]}).forEach(F?function(pe,Se){re[Se].length=2}:function(pe,Se){re[Se]=pe[1]}),F?je(re):f(m)?Fe(re):tt(re)}function vc(m,E,I){if(E||(E=yc),I){var F=m.toSeq().map(function(j,re){return[j,I(j,re,m)]}).reduce(function(j,re){return pg(E,j[1],re[1])?re:j});return F&&F[0]}else return m.reduce(function(j,re){return pg(E,j,re)?re:j})}function pg(m,E,I){var F=m(I,E);return F===0&&I!==E&&(I==null||I!==I)||F>0}function od(m,E,I){var F=fo(m);return F.size=new Ye(I).map(function(j){return j.size}).min(),F.__iterate=function(j,re){for(var pe=this.__iterator(P,re),Se,Oe=0;!(Se=pe.next()).done&&j(Se.value,Oe++,this)!==!1;);return Oe},F.__iteratorUncached=function(j,re){var pe=I.map(function(De){return De=i(De),Le(re?De.reverse():De)}),Se=0,Oe=!1;return new ue(function(){var De;return Oe||(De=pe.map(function(te){return te.next()}),Oe=De.some(function(te){return te.done})),Oe?we():ne(j,Se++,E.apply(null,De.map(function(te){return te.value})))})},F}function Lt(m,E){return Re(m)?E:m.constructor(E)}function g0(m){if(m!==Object(m))throw new TypeError("Expected [K, V] tuple: "+m)}function Ci(m){return dr(m.size),ie(m)}function m0(m){return u(m)?o:f(m)?a:s}function fo(m){return Object.create((u(m)?je:f(m)?Fe:tt).prototype)}function Bo(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Pe.prototype.cacheResult.call(this)}function yc(m,E){return m>E?1:m<E?-1:0}function ad(m){var E=Le(m);if(!E){if(!Ie(m))throw new TypeError("Expected iterable or array-like: "+m);E=Le(i(m))}return E}r(Wt,ot);function Wt(m,E){var I,F=function(pe){if(pe instanceof F)return pe;if(!(this instanceof F))return new F(pe);if(!I){I=!0;var Se=Object.keys(m);hg(j,Se),j.size=Se.length,j._name=E,j._keys=Se,j._defaultValues=m}this._map=$t(pe)},j=F.prototype=Object.create(Ln);return j.constructor=F,F}Wt.prototype.toString=function(){return this.__toString(v0(this)+" {","}")},Wt.prototype.has=function(m){return this._defaultValues.hasOwnProperty(m)},Wt.prototype.get=function(m,E){if(!this.has(m))return E;var I=this._defaultValues[m];return this._map?this._map.get(m,I):I},Wt.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var m=this.constructor;return m._empty||(m._empty=Ql(this,No()))},Wt.prototype.set=function(m,E){if(!this.has(m))throw new Error('Cannot set unknown key "'+m+'" on '+v0(this));var I=this._map&&this._map.set(m,E);return this.__ownerID||I===this._map?this:Ql(this,I)},Wt.prototype.remove=function(m){if(!this.has(m))return this;var E=this._map&&this._map.remove(m);return this.__ownerID||E===this._map?this:Ql(this,E)},Wt.prototype.wasAltered=function(){return this._map.wasAltered()},Wt.prototype.__iterator=function(m,E){var I=this;return o(this._defaultValues).map(function(F,j){return I.get(j)}).__iterator(m,E)},Wt.prototype.__iterate=function(m,E){var I=this;return o(this._defaultValues).map(function(F,j){return I.get(j)}).__iterate(m,E)},Wt.prototype.__ensureOwner=function(m){if(m===this.__ownerID)return this;var E=this._map&&this._map.__ensureOwner(m);return m?Ql(this,E,m):(this.__ownerID=m,this._map=E,this)};var Ln=Wt.prototype;Ln[b]=Ln.remove,Ln.deleteIn=Ln.removeIn=lt.removeIn,Ln.merge=lt.merge,Ln.mergeWith=lt.mergeWith,Ln.mergeIn=lt.mergeIn,Ln.mergeDeep=lt.mergeDeep,Ln.mergeDeepWith=lt.mergeDeepWith,Ln.mergeDeepIn=lt.mergeDeepIn,Ln.setIn=lt.setIn,Ln.update=lt.update,Ln.updateIn=lt.updateIn,Ln.withMutations=lt.withMutations,Ln.asMutable=lt.asMutable,Ln.asImmutable=lt.asImmutable;function Ql(m,E,I){var F=Object.create(Object.getPrototypeOf(m));return F._map=E,F.__ownerID=I,F}function v0(m){return m._name||m.constructor.name||"Record"}function hg(m,E){try{E.forEach(RC.bind(void 0,m))}catch{}}function RC(m,E){Object.defineProperty(m,E,{get:function(){return this.get(E)},set:function(I){He(this.__ownerID,"Cannot set on an immutable record."),this.set(E,I)}})}r(Mn,Ot);function Mn(m){return m==null?sd():gg(m)&&!p(m)?m:sd().withMutations(function(E){var I=s(m);dr(I.size),I.forEach(function(F){return E.add(F)})})}Mn.of=function(){return this(arguments)},Mn.fromKeys=function(m){return this(o(m).keySeq())},Mn.prototype.toString=function(){return this.__toString("Set {","}")},Mn.prototype.has=function(m){return this._map.has(m)},Mn.prototype.add=function(m){return as(this,this._map.set(m,!0))},Mn.prototype.remove=function(m){return as(this,this._map.remove(m))},Mn.prototype.clear=function(){return as(this,this._map.clear())},Mn.prototype.union=function(){var m=n.call(arguments,0);return m=m.filter(function(E){return E.size!==0}),m.length===0?this:this.size===0&&!this.__ownerID&&m.length===1?this.constructor(m[0]):this.withMutations(function(E){for(var I=0;I<m.length;I++)s(m[I]).forEach(function(F){return E.add(F)})})},Mn.prototype.intersect=function(){var m=n.call(arguments,0);if(m.length===0)return this;m=m.map(function(I){return s(I)});var E=this;return this.withMutations(function(I){E.forEach(function(F){m.every(function(j){return j.includes(F)})||I.remove(F)})})},Mn.prototype.subtract=function(){var m=n.call(arguments,0);if(m.length===0)return this;m=m.map(function(I){return s(I)});var E=this;return this.withMutations(function(I){E.forEach(function(F){m.some(function(j){return j.includes(F)})&&I.remove(F)})})},Mn.prototype.merge=function(){return this.union.apply(this,arguments)},Mn.prototype.mergeWith=function(m){var E=n.call(arguments,1);return this.union.apply(this,E)},Mn.prototype.sort=function(m){return Fi(el(this,m))},Mn.prototype.sortBy=function(m,E){return Fi(el(this,E,m))},Mn.prototype.wasAltered=function(){return this._map.wasAltered()},Mn.prototype.__iterate=function(m,E){var I=this;return this._map.__iterate(function(F,j){return m(j,j,I)},E)},Mn.prototype.__iterator=function(m,E){return this._map.map(function(I,F){return F}).__iterator(m,E)},Mn.prototype.__ensureOwner=function(m){if(m===this.__ownerID)return this;var E=this._map.__ensureOwner(m);return m?this.__make(E,m):(this.__ownerID=m,this._map=E,this)};function gg(m){return!!(m&&m[mg])}Mn.isSet=gg;var mg="@@__IMMUTABLE_SET__@@",Nr=Mn.prototype;Nr[mg]=!0,Nr[b]=Nr.remove,Nr.mergeDeep=Nr.merge,Nr.mergeDeepWith=Nr.mergeWith,Nr.withMutations=lt.withMutations,Nr.asMutable=lt.asMutable,Nr.asImmutable=lt.asImmutable,Nr.__empty=sd,Nr.__make=y0;function as(m,E){return m.__ownerID?(m.size=E.size,m._map=E,m):E===m._map?m:E.size===0?m.__empty():m.__make(E)}function y0(m,E){var I=Object.create(Nr);return I.size=m?m.size:0,I._map=m,I.__ownerID=E,I}var vg;function sd(){return vg||(vg=y0(No()))}r(Fi,Mn);function Fi(m){return m==null?_c():ld(m)?m:_c().withMutations(function(E){var I=s(m);dr(I.size),I.forEach(function(F){return E.add(F)})})}Fi.of=function(){return this(arguments)},Fi.fromKeys=function(m){return this(o(m).keySeq())},Fi.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function ld(m){return gg(m)&&p(m)}Fi.isOrderedSet=ld;var bc=Fi.prototype;bc[w]=!0,bc.__empty=_c,bc.__make=b0;function b0(m,E){var I=Object.create(bc);return I.size=m?m.size:0,I._map=m,I.__ownerID=E,I}var ud;function _c(){return ud||(ud=b0(id()))}r(pr,ht);function pr(m){return m==null?cd():yg(m)?m:cd().unshiftAll(m)}pr.of=function(){return this(arguments)},pr.prototype.toString=function(){return this.__toString("Stack [","]")},pr.prototype.get=function(m,E){var I=this._head;for(m=se(this,m);I&&m--;)I=I.next;return I?I.value:E},pr.prototype.peek=function(){return this._head&&this._head.value},pr.prototype.push=function(){if(arguments.length===0)return this;for(var m=this.size+arguments.length,E=this._head,I=arguments.length-1;I>=0;I--)E={value:arguments[I],next:E};return this.__ownerID?(this.size=m,this._head=E,this.__hash=void 0,this.__altered=!0,this):Aa(m,E)},pr.prototype.pushAll=function(m){if(m=a(m),m.size===0)return this;dr(m.size);var E=this.size,I=this._head;return m.reverse().forEach(function(F){E++,I={value:F,next:I}}),this.__ownerID?(this.size=E,this._head=I,this.__hash=void 0,this.__altered=!0,this):Aa(E,I)},pr.prototype.pop=function(){return this.slice(1)},pr.prototype.unshift=function(){return this.push.apply(this,arguments)},pr.prototype.unshiftAll=function(m){return this.pushAll(m)},pr.prototype.shift=function(){return this.pop.apply(this,arguments)},pr.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):cd()},pr.prototype.slice=function(m,E){if(G(m,E,this.size))return this;var I=Q(m,this.size),F=le(E,this.size);if(F!==this.size)return ht.prototype.slice.call(this,m,E);for(var j=this.size-I,re=this._head;I--;)re=re.next;return this.__ownerID?(this.size=j,this._head=re,this.__hash=void 0,this.__altered=!0,this):Aa(j,re)},pr.prototype.__ensureOwner=function(m){return m===this.__ownerID?this:m?Aa(this.size,this._head,m,this.__hash):(this.__ownerID=m,this.__altered=!1,this)},pr.prototype.__iterate=function(m,E){if(E)return this.reverse().__iterate(m);for(var I=0,F=this._head;F&&m(F.value,I++,this)!==!1;)F=F.next;return I},pr.prototype.__iterator=function(m,E){if(E)return this.reverse().__iterator(m);var I=0,F=this._head;return new ue(function(){if(F){var j=F.value;return F=F.next,ne(m,I++,j)}return we()})};function yg(m){return!!(m&&m[ai])}pr.isStack=yg;var ai="@@__IMMUTABLE_STACK__@@",ss=pr.prototype;ss[ai]=!0,ss.withMutations=lt.withMutations,ss.asMutable=lt.asMutable,ss.asImmutable=lt.asImmutable,ss.wasAltered=lt.wasAltered;function Aa(m,E,I,F){var j=Object.create(ss);return j.size=m,j._head=E,j.__ownerID=I,j.__hash=F,j.__altered=!1,j}var bg;function cd(){return bg||(bg=Aa(0))}function jo(m,E){var I=function(F){m.prototype[F]=E[F]};return Object.keys(E).forEach(I),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(E).forEach(I),m}i.Iterator=ue,jo(i,{toArray:function(){dr(this.size);var m=new Array(this.size||0);return this.valueSeq().__iterate(function(E,I){m[I]=E}),m},toIndexedSeq:function(){return new Xl(this)},toJS:function(){return this.toSeq().map(function(m){return m&&typeof m.toJS=="function"?m.toJS():m}).__toJS()},toJSON:function(){return this.toSeq().map(function(m){return m&&typeof m.toJSON=="function"?m.toJSON():m}).__toJS()},toKeyedSeq:function(){return new Ut(this,!0)},toMap:function(){return $t(this.toKeyedSeq())},toObject:function(){dr(this.size);var m={};return this.__iterate(function(E,I){m[I]=E}),m},toOrderedMap:function(){return ar(this.toKeyedSeq())},toOrderedSet:function(){return Fi(u(this)?this.valueSeq():this)},toSet:function(){return Mn(u(this)?this.valueSeq():this)},toSetSeq:function(){return new Zl(this)},toSeq:function(){return f(this)?this.toIndexedSeq():u(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return pr(u(this)?this.valueSeq():this)},toList:function(){return sn(u(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(m,E){return this.size===0?m+E:m+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+E},concat:function(){var m=n.call(arguments,0);return Lt(this,dg(this,m))},includes:function(m){return this.some(function(E){return de(E,m)})},entries:function(){return this.__iterator(ge)},every:function(m,E){dr(this.size);var I=!0;return this.__iterate(function(F,j,re){if(!m.call(E,F,j,re))return I=!1,!1}),I},filter:function(m,E){return Lt(this,cg(this,m,E,!0))},find:function(m,E,I){var F=this.findEntry(m,E);return F?F[1]:I},findEntry:function(m,E){var I;return this.__iterate(function(F,j,re){if(m.call(E,F,j,re))return I=[j,F],!1}),I},findLastEntry:function(m,E){return this.toSeq().reverse().findEntry(m,E)},forEach:function(m,E){return dr(this.size),this.__iterate(E?m.bind(E):m)},join:function(m){dr(this.size),m=m!==void 0?""+m:",";var E="",I=!0;return this.__iterate(function(F){I?I=!1:E+=m,E+=F!=null?F.toString():""}),E},keys:function(){return this.__iterator(ee)},map:function(m,E){return Lt(this,d0(this,m,E))},reduce:function(m,E,I){dr(this.size);var F,j;return arguments.length<2?j=!0:F=E,this.__iterate(function(re,pe,Se){j?(j=!1,F=re):F=m.call(I,F,re,pe,Se)}),F},reduceRight:function(m,E,I){var F=this.toKeyedSeq().reverse();return F.reduce.apply(F,arguments)},reverse:function(){return Lt(this,ug(this,!0))},slice:function(m,E){return Lt(this,mc(this,m,E,!0))},some:function(m,E){return!this.every($a(m),E)},sort:function(m){return Lt(this,el(this,m))},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(m,E){return ie(m?this.toSeq().filter(m,E):this)},countBy:function(m,E){return TC(this,m,E)},equals:function(m){return me(this,m)},entrySeq:function(){var m=this;if(m._cache)return new Ye(m._cache);var E=m.toSeq().map($C).toIndexedSeq();return E.fromEntrySeq=function(){return m.toSeq()},E},filterNot:function(m,E){return this.filter($a(m),E)},findLast:function(m,E,I){return this.toKeyedSeq().reverse().find(m,E,I)},first:function(){return this.find(K)},flatMap:function(m,E){return Lt(this,p0(this,m,E))},flatten:function(m){return Lt(this,Si(this,m,!0))},fromEntrySeq:function(){return new Jl(this)},get:function(m,E){return this.find(function(I,F){return de(F,m)},void 0,E)},getIn:function(m,E){for(var I=this,F=ad(m),j;!(j=F.next()).done;){var re=j.value;if(I=I&&I.get?I.get(re,R):R,I===R)return E}return I},groupBy:function(m,E){return Dr(this,m,E)},has:function(m){return this.get(m,R)!==R},hasIn:function(m){return this.getIn(m,R)!==R},isSubset:function(m){return m=typeof m.includes=="function"?m:i(m),this.every(function(E){return m.includes(E)})},isSuperset:function(m){return m=typeof m.isSubset=="function"?m:i(m),m.isSubset(this)},keySeq:function(){return this.toSeq().map(AC).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(m){return vc(this,m)},maxBy:function(m,E){return vc(this,E,m)},min:function(m){return vc(this,m?_0(m):xg)},minBy:function(m,E){return vc(this,E?_0(E):xg,m)},rest:function(){return this.slice(1)},skip:function(m){return this.slice(Math.max(0,m))},skipLast:function(m){return Lt(this,this.toSeq().reverse().skip(m).reverse())},skipWhile:function(m,E){return Lt(this,fg(this,m,E,!0))},skipUntil:function(m,E){return this.skipWhile($a(m),E)},sortBy:function(m,E){return Lt(this,el(this,E,m))},take:function(m){return this.slice(0,Math.max(0,m))},takeLast:function(m){return Lt(this,this.toSeq().reverse().take(m).reverse())},takeWhile:function(m,E){return Lt(this,Qs(this,m,E))},takeUntil:function(m,E){return this.takeWhile($a(m),E)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ls(this))}});var Br=i.prototype;Br[g]=!0,Br[ae]=Br.values,Br.__toJS=Br.toArray,Br.__toStringMapper=x0,Br.inspect=Br.toSource=function(){return this.toString()},Br.chain=Br.flatMap,Br.contains=Br.includes,function(){try{Object.defineProperty(Br,"length",{get:function(){if(!i.noLengthWarning){var m;try{throw new Error}catch(E){m=E.stack}if(m.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. "+m),this.size}}})}catch{}}(),jo(o,{flip:function(){return Lt(this,f0(this))},findKey:function(m,E){var I=this.findEntry(m,E);return I&&I[0]},findLastKey:function(m,E){return this.toSeq().reverse().findKey(m,E)},keyOf:function(m){return this.findKey(function(E){return de(E,m)})},lastKeyOf:function(m){return this.findLastKey(function(E){return de(E,m)})},mapEntries:function(m,E){var I=this,F=0;return Lt(this,this.toSeq().map(function(j,re){return m.call(E,[re,j],F++,I)}).fromEntrySeq())},mapKeys:function(m,E){var I=this;return Lt(this,this.toSeq().flip().map(function(F,j){return m.call(E,F,j,I)}).flip())}});var fd=o.prototype;fd[v]=!0,fd[ae]=Br.entries,fd.__toJS=Br.toObject,fd.__toStringMapper=function(m,E){return JSON.stringify(E)+": "+x0(m)},jo(a,{toKeyedSeq:function(){return new Ut(this,!1)},filter:function(m,E){return Lt(this,cg(this,m,E,!1))},findIndex:function(m,E){var I=this.findEntry(m,E);return I?I[0]:-1},indexOf:function(m){var E=this.toKeyedSeq().keyOf(m);return E===void 0?-1:E},lastIndexOf:function(m){var E=this.toKeyedSeq().reverse().keyOf(m);return E===void 0?-1:E},reverse:function(){return Lt(this,ug(this,!1))},slice:function(m,E){return Lt(this,mc(this,m,E,!1))},splice:function(m,E){var I=arguments.length;if(E=Math.max(E|0,0),I===0||I===2&&!E)return this;m=Q(m,m<0?this.count():this.size);var F=this.slice(0,m);return Lt(this,I===1?F:F.concat(W(arguments,2),this.slice(m+E)))},findLastIndex:function(m,E){var I=this.toKeyedSeq().findLastKey(m,E);return I===void 0?-1:I},first:function(){return this.get(0)},flatten:function(m){return Lt(this,Si(this,m,!1))},get:function(m,E){return m=se(this,m),m<0||this.size===1/0||this.size!==void 0&&m>this.size?E:this.find(function(I,F){return F===m},void 0,E)},has:function(m){return m=se(this,m),m>=0&&(this.size!==void 0?this.size===1/0||m<this.size:this.indexOf(m)!==-1)},interpose:function(m){return Lt(this,h0(this,m))},interleave:function(){var m=[this].concat(W(arguments)),E=od(this.toSeq(),Fe.of,m),I=E.flatten(!0);return E.size&&(I.size=E.size*m.length),Lt(this,I)},last:function(){return this.get(-1)},skipWhile:function(m,E){return Lt(this,fg(this,m,E,!1))},zip:function(){var m=[this].concat(W(arguments));return Lt(this,od(this,_g,m))},zipWith:function(m){var E=W(arguments);return E[0]=this,Lt(this,od(this,m,E))}}),a.prototype[y]=!0,a.prototype[w]=!0,jo(s,{get:function(m,E){return this.has(m)?m:E},includes:function(m){return this.has(m)},keySeq:function(){return this.valueSeq()}}),s.prototype.has=Br.includes,jo(je,o.prototype),jo(Fe,a.prototype),jo(tt,s.prototype),jo(ot,o.prototype),jo(ht,a.prototype),jo(Ot,s.prototype);function AC(m,E){return E}function $C(m,E){return[E,m]}function $a(m){return function(){return!m.apply(this,arguments)}}function _0(m){return function(){return-m.apply(this,arguments)}}function x0(m){return typeof m=="string"?JSON.stringify(m):m}function _g(){return W(arguments)}function xg(m,E){return m<E?1:m>E?-1:0}function ls(m){if(m.size===1/0)return 0;var E=p(m),I=u(m),F=E?1:0,j=m.__iterate(I?E?function(re,pe){F=31*F+w0(Xt(re),Xt(pe))|0}:function(re,pe){F=F+w0(Xt(re),Xt(pe))|0}:E?function(re){F=31*F+Xt(re)|0}:function(re){F=F+Xt(re)|0});return dd(j,F)}function dd(m,E){return E=rn(E,3432918353),E=rn(E<<15|E>>>-15,461845907),E=rn(E<<13|E>>>-13,5),E=(E+3864292196|0)^m,E=rn(E^E>>>16,2246822507),E=rn(E^E>>>13,3266489909),E=Qt(E^E>>>16),E}function w0(m,E){return m^E+2654435769+(m<<6)+(m>>2)|0}var OC={Iterable:i,Seq:Pe,Collection:ct,Map:$t,OrderedMap:ar,List:sn,Stack:pr,Set:Mn,OrderedSet:Fi,Record:Wt,Range:Ze,Repeat:$e,is:de,fromJS:Ce};return OC})})(pG);var cn=pG.exports,Hje=cn,qje=Hje.OrderedMap,Gje={createFromArray:function(t){return qje(t.map(function(n){return[n.getKey(),n]}))}},Iy=Gje;function Yje(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var PI=cn,GA=PI.Map,YA=PI.OrderedSet,Xje=PI.Record,hG=YA(),gG={style:hG,entity:null},Zje=Xje(gG),LI=function(e){Yje(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 MI;var o={style:hG,entity:null},a=GA(o).merge(i),s=tT.get(a);if(s)return s;var l=new t(a);return tT=tT.set(a,l),l},t.fromJS=function(i){var o=i.style,a=i.entity;return new t({style:Array.isArray(o)?YA(o):o,entity:Array.isArray(a)?YA(a):a})},t}(Zje),MI=new LI,tT=GA([[GA(gG),MI]]);LI.EMPTY=MI;var xa=LI;function Jje(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 Dy=Jje;function Qje(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var eze=xa,Yj=Dy,Py=cn,mG=Py.List,tze=Py.Map,nze=Py.OrderedSet,rze=Py.Record,ize=Py.Repeat,oze=nze(),aze={key:"",type:"unstyled",text:"",characterList:mG(),depth:0,data:tze()},sze=rze(aze),lze=function(t){if(!t)return t;var n=t.characterList,r=t.text;return r&&!n&&(t.characterList=mG(ize(eze.EMPTY,r.length))),t},uze=function(e){Qje(t,e);function t(r){return e.call(this,lze(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():oze},n.getEntityAt=function(i){var o=this.getCharacterList().get(i);return o?o.getEntity():null},n.findStyleRanges=function(i,o){Yj(this.getCharacterList(),cze,i,o)},n.findEntityRanges=function(i,o){Yj(this.getCharacterList(),fze,i,o)},t}(sze);function cze(e,t){return e.getStyle()===t.getStyle()}function fze(e,t){return e.getEntity()===t.getEntity()}var Mf=uze;function dze(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var pze=xa,Xj=Dy,Ly=cn,XA=Ly.List,hze=Ly.Map,gze=Ly.OrderedSet,mze=Ly.Record,vze=Ly.Repeat,yze=gze(),Zj={parent:null,characterList:XA(),data:hze(),depth:0,key:"",text:"",type:"unstyled",children:XA(),prevSibling:null,nextSibling:null},bze=function(t,n){return t.getStyle()===n.getStyle()},_ze=function(t,n){return t.getEntity()===n.getEntity()},xze=function(t){if(!t)return t;var n=t.characterList,r=t.text;return r&&!n&&(t.characterList=XA(vze(pze.EMPTY,r.length))),t},wze=function(e){dze(t,e);function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zj;return e.call(this,xze(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():yze},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){Xj(this.getCharacterList(),bze,i,o)},n.findEntityRanges=function(i,o){Xj(this.getCharacterList(),_ze,i,o)},t}(mze(Zj)),wa=wze,Jj=xa,Sze=cn,Cze=Sze.Map,Eze={add:function(t,n,r){return Qj(t,n,r,!0)},remove:function(t,n,r){return Qj(t,n,r,!1)}};function Qj(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(Cze([[s,i.get(s)]])).map(function(f,d){var p,g;o===s?(p=a,g=l):(p=d===o?a:0,g=d===s?l:f.getLength());for(var v=f.getCharacterList(),y;p<g;)y=v.get(p),v=v.set(p,r?Jj.applyStyle(y,n):Jj.removeStyle(y,n)),p++;return f.set("characterList",v)});return e.merge({blockMap:i.merge(u),selectionBefore:t,selectionAfter:t})}var kze=Eze,Tze=xa;function Rze(e,t,n,r){for(var i=t,o=e.getCharacterList();i<n;)o=o.set(i,Tze.applyEntity(o.get(i),r)),i++;return e.set("characterList",o)}var Aze=Rze,$ze=Aze,Oze=cn;function Ize(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(Oze.OrderedMap([[a,r.get(a)]])).map(function(u,f){var d=f===i?o:0,p=f===a?s:u.getLength();return $ze(u,d,p,n)});return e.merge({blockMap:r.merge(l),selectionBefore:t,selectionAfter:t})}var Dze=Ize,Pze={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 g=i+r.length,v=f===i,y=d===g;return(!v&&y||v&&!y)&&(o==="forward"?d!==g&&d++:f!==i&&f--),{start:f,end:d}}},Lze=Pze;function Mze(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 bn=Mze,Fze=bn;function Nze(e,t){var n=[];return e.findEntityRanges(function(r){return r.getEntity()===t},function(r,i){n.push({start:r,end:i})}),n.length||Fze(!1),n}var Bze=Nze,jze=Lze,zze=Bze,Uze=bn;function Kze(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=fm(e,t,u,i,s,!0,!0);else if(s&&l){var f=fm(e,t,u,i,s,!1,!0),d=fm(e,n,u,i,l,!1,!1);u=u.merge({anchorOffset:f.getAnchorOffset(),focusOffset:d.getFocusOffset(),isBackward:!1})}else if(s){var p=fm(e,t,u,i,s,!1,!0);u=u.merge({anchorOffset:p.getStartOffset(),isBackward:!1})}else if(l){var g=fm(e,n,u,i,l,!1,!1);u=u.merge({focusOffset:g.getEndOffset(),isBackward:!1})}return u}function fm(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=zze(t,i).filter(function(y){return d<=y.end&&d>=y.start});p.length!=1&&Uze(!1);var g=p[0];if(f==="IMMUTABLE")return n.merge({anchorOffset:g.start,focusOffset:g.end,isBackward:!1});o||(a?l=g.end:s=g.start);var v=jze.getRemovalRange(s,l,t.getText().slice(g.start,g.end),g.start,r);return n.merge({anchorOffset:v.start,focusOffset:v.end,isBackward:!1})}var Wze=Kze,ez={},Vze=Math.pow(2,24);function Hze(){for(var e;e===void 0||ez.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*Vze).toString(32);return ez[e]=!0,e}var qs=Hze,qze=wa,vG=qs,Gze=cn,yG=Gze.OrderedMap,Yze=function(t){var n={},r;return yG(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=vG();if(n[s]=p,l){var g=i.get(l);g?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(C){return C!==b}))})})}).toArray().map(function(i){return[n[i.getKey()],i.set("key",n[i.getKey()])]}))},Xze=function(t){return yG(t.toArray().map(function(n){var r=vG();return[r,n.set("key",r)]}))},Zze=function(t){var n=t.first()instanceof qze;return n?Yze(t):Xze(t)},bG=Zze,Jze=xa,Qze=Dy,e4e=bn;function t4e(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),i={},o=t.getStartKey(),a=t.getStartOffset(),s=n.get(o),l=tz(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=tz(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 n4e(e,t,n){var r;return Qze(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"&&e4e(!1),r}function tz(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=n4e(r,s,n),f=u.start,d=u.end,p;f<d;)p=r.get(f),r=r.set(f,Jze.applyEntity(p,null)),f++;return t.set("characterList",r)}}return t}var _G=t4e,r4e=bG,i4e=_G,o4e=function(t,n){var r=n.getStartKey(),i=n.getStartOffset(),o=n.getEndKey(),a=n.getEndOffset(),s=i4e(t,n),l=s.getBlockMap(),u=l.keySeq(),f=u.indexOf(r),d=u.indexOf(o)+1;return r4e(l.slice(f,d).map(function(p,g){var v=p.getText(),y=p.getCharacterList();return r===o?p.merge({text:v.slice(i,a),characterList:y.slice(i,a)}):g===r?p.merge({text:v.slice(i),characterList:y.slice(i)}):g===o?p.merge({text:v.slice(0,a),characterList:y.slice(0,a)}):p}))},PS=o4e;function a4e(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 xG=a4e,s4e=Iy,wG=wa,l4e=cn,u4e=xG,nz=bn,c4e=bG,f4e=l4e.List,d4e=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,g=null;switch(s){case"MERGE_OLD_DATA_TO_NEW_DATA":g=i.getData().merge(l.getData());break;case"REPLACE_WITH_NEW_DATA":g=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:u4e(f,i.getCharacterList(),a),type:v,data:g});return t.merge({blockMap:r.set(o,y),selectionBefore:n,selectionAfter:n.merge({anchorKey:d,anchorOffset:p,focusKey:d,focusOffset:p,isBackward:!1})})},p4e=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()})},h4e=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()})},g4e=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},m4e=function(t,n,r,i){return t.withMutations(function(o){var a=r.getKey(),s=i.getKey(),l=r.getNextSiblingKey(),u=r.getParentKey(),f=g4e(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),g=p.getChildKeys(),v=g.indexOf(a),y=v+1,w=g.toArray();w.splice.apply(w,[y,0].concat(f)),o.setIn([u,"children"],f4e(w))}})},v4e=function(t,n,r,i,o,a){var s=r.first()instanceof wG,l=[],u=i.size,f=r.get(o),d=i.first(),p=i.last(),g=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(p4e(b,a,i)),i.slice(y?0:1,u-1).forEach(function(C){return l.push(C)}),l.push(h4e(b,a,i))});var w=s4e.createFromArray(l);return s&&(w=m4e(w,r,f,d)),t.merge({blockMap:w,selectionBefore:n,selectionAfter:n.merge({anchorKey:v,anchorOffset:g,focusKey:v,focusOffset:g,isBackward:!1})})},y4e=function(t,n,r){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"REPLACE_WITH_NEW_DATA";n.isCollapsed()||nz(!1);var o=t.getBlockMap(),a=c4e(r),s=n.getStartKey(),l=n.getStartOffset(),u=o.get(s);return u instanceof wG&&(u.getChildKeys().isEmpty()||nz(!1)),a.size===1?d4e(t,n,o,a.first(),s,l,i):v4e(t,n,o,a,s,l)},b4e=y4e,_4e=cn,x4e=xG,w4e=bn,S4e=_4e.Repeat;function C4e(e,t,n,r){t.isCollapsed()||w4e(!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:x4e(l.getCharacterList(),S4e(r,i).toList(),s)}),d=s+i;return e.merge({blockMap:o.set(a,f),selectionAfter:t.merge({anchorOffset:d,focusOffset:d})})}var E4e=C4e,k4e=cn,T4e=k4e.Map;function R4e(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(T4e([[i,o.get(i)]])).map(n);return e.merge({blockMap:o.merge(a),selectionBefore:t,selectionAfter:t})}var SG=R4e,A4e=wa,$4e=function(t,n){var r=t instanceof A4e;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},CG=$4e,O4e=wa,ZA=CG,EG=cn;EG.List;var rz=EG.Map,Ui=function(t,n,r){if(t){var i=n.get(t);i&&n.set(t,r(i))}},lx=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},I4e=function(t,n){var r=[];if(!t)return r;for(var i=ZA(t,n);i&&n.get(i);){var o=n.get(i);r.push(i),i=o.getParentKey()?ZA(o,n):null}return r},Dd=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},Pd=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},D4e=function(t,n,r,i){return t.withMutations(function(o){if(Ui(n.getKey(),o,function(f){return f.merge({nextSibling:Dd(f,o,i),prevSibling:Pd(f,o,i)})}),Ui(r.getKey(),o,function(f){return f.merge({nextSibling:Dd(f,o,i),prevSibling:Pd(f,o,i)})}),lx(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:Dd(d,o,i),prevSibling:Pd(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:Dd(f,o,i)})}),Ui(r.getNextSiblingKey(),o,function(f){return f.merge({prevSibling:Pd(f,o,i)})}),Ui(r.getPrevSiblingKey(),o,function(f){return f.merge({nextSibling:r.getNextSiblingKey()})}),lx(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:Dd(d,o,i),prevSibling:Pd(d,o,i)})})}),I4e(r,i).forEach(function(f){return Ui(f,o,function(d){return d.merge({nextSibling:Dd(d,o,i),prevSibling:Pd(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()})})}})},P4e=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 O4e,d=[];if(f){var p=u.getChildKeys(),g=lx(a,r);u.getNextSiblingKey()&&(d=d.concat(g)),p.isEmpty()||(d=d.concat(g.concat([a]))),d=d.concat(lx(ZA(u,r),r))}var v;l===u?v=L4e(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?rz([[i,null]]):r.toSeq().skipUntil(function(C,k){return k===i}).takeUntil(function(C,k){return k===a}).filter(function(C,k){return d.indexOf(k)===-1}).concat(rz([[a,null]])).map(function(C,k){return k===i?y:null}),x=r.merge(b).filter(function(C){return!!C});return f&&l!==u&&(x=D4e(x,l,u,r)),t.merge({blockMap:x,selectionBefore:n,selectionAfter:n.merge({anchorKey:i,anchorOffset:o,focusKey:i,focusOffset:o,isBackward:!1})})},L4e=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},M4e=P4e,F4e=wa,N4e=qs,kG=cn,iz=bn,B4e=SG,j4e=kG.List,z4e=kG.Map,Z1=function(t,n,r){if(t){var i=n.get(t);i&&n.set(t,r(i))}},U4e=function(t,n,r){return t.withMutations(function(i){var o=n.getKey(),a=r.getKey();Z1(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:j4e(f)})}),Z1(n.getNextSiblingKey(),i,function(s){return s.merge({prevSibling:a})}),Z1(o,i,function(s){return s.merge({nextSibling:a})}),Z1(a,i,function(s){return s.merge({prevSibling:o})})})},K4e=function(t,n){n.isCollapsed()||iz(!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 B4e(t,n,function(b){return b.merge({type:"unstyled",depth:0})})}var l=n.getAnchorOffset(),u=o.getCharacterList(),f=N4e(),d=o instanceof F4e,p=o.merge({text:a.slice(0,l),characterList:u.slice(0,l)}),g=p.merge({key:f,text:a.slice(l),characterList:u.slice(l),data:z4e()}),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,g]],y).toOrderedMap();return d&&(o.getChildKeys().isEmpty()||iz(!1),w=U4e(w,p,g)),t.merge({blockMap:w,selectionBefore:n,selectionAfter:n.merge({anchorKey:f,anchorOffset:0,focusKey:f,focusOffset:0,isBackward:!1})})},W4e=K4e,V4e=xa,oz=kze,H4e=Dze,q4e=Wze,G4e=PS,Y4e=cn,X4e=b4e,Z4e=E4e,J4e=bn,nT=SG,dm=_G,pm=M4e,Q4e=W4e,e5e=Y4e.OrderedSet,Xb={replaceText:function(t,n,r,i,o){var a=dm(t,n),s=pm(a,n),l=V4e.create({style:i||e5e(),entity:o||null});return Z4e(s,s.getSelectionAfter(),r,l)},insertText:function(t,n,r,i,o){return n.isCollapsed()||J4e(!1),Xb.replaceText(t,n,r,i,o)},moveText:function(t,n,r){var i=G4e(t,n),o=Xb.removeRange(t,n,"backward");return Xb.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=dm(t,n),a=pm(o,n);return X4e(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=q4e(t.getEntityMap(),a,s,n,r);return pm(t,p)}var g=dm(t,n);return pm(g,n)},splitBlock:function(t,n){var r=dm(t,n),i=pm(r,n);return Q4e(i,i.getSelectionAfter())},applyInlineStyle:function(t,n,r){return oz.add(t,n,r)},removeInlineStyle:function(t,n,r){return oz.remove(t,n,r)},setBlockType:function(t,n,r){return nT(t,n,function(i){return i.merge({type:r,depth:0})})},setBlockData:function(t,n,r){return nT(t,n,function(i){return i.merge({data:r})})},mergeBlockData:function(t,n,r){return nT(t,n,function(i){return i.merge({data:i.getData().merge(r)})})},applyEntity:function(t,n,r){var i=dm(t,n);return H4e(i,n,r)}},so=Xb;function t5e(e){return Object.keys(e).map(function(t){return e[t]})}var TG=t5e;function n5e(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){r5e(e,i,n[i])})}return e}function r5e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i5e(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 RG=Dy,o5e=TG,FI=cn,Vd=FI.List,a5e=FI.Repeat,AG=FI.Record,$G=function(){return!0},s5e={start:null,end:null},JA=AG(s5e),l5e={start:null,end:null,decoratorKey:null,leaves:null},rT=AG(l5e),u5e={generate:function(t,n,r){var i=n.getLength();if(!i)return Vd.of(new rT({start:0,end:0,decoratorKey:null,leaves:Vd.of(new JA({start:0,end:0}))}));var o=[],a=r?r.getDecorations(n,t):Vd(a5e(null,i)),s=n.getCharacterList();return RG(a,OG,$G,function(l,u){o.push(new rT({start:l,end:u,decoratorKey:a.get(l),leaves:c5e(s.slice(l,u).toList(),l)}))}),Vd(o)},fromJS:function(t){var n=t.leaves,r=i5e(t,["leaves"]);return new rT(n5e({},r,{leaves:n!=null?Vd(Array.isArray(n)?n:o5e(n)).map(function(i){return JA(i)}):null}))}};function c5e(e,t){var n=[],r=e.map(function(i){return i.getStyle()}).toList();return RG(r,OG,$G,function(i,o){n.push(new JA({start:i+t,end:o+t}))}),Vd(n)}function OG(e,t){return e===t}var f5e=u5e;function d5e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var p5e=cn,h5e=p5e.Record,g5e=h5e({type:"TOKEN",mutability:"IMMUTABLE",data:Object}),m5e=function(e){d5e(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}(g5e),IG=m5e;function v5e(){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 y5e=v5e;function b5e(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){_5e(e,i,n[i])})}return e}function _5e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x5e=IG,w5e=cn,S5e=bn,QA=y5e,C5e=w5e.Map,pl=C5e(),hm=QA();function Ld(e,t){console.warn("WARNING: "+e+` will be deprecated soon!
|
|
439
|
+
Please use "`+t+'" instead.')}var vs={getLastCreatedEntityKey:function(){return Ld("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),vs.__getLastCreatedEntityKey()},create:function(t,n,r){return Ld("DraftEntity.create","contentState.createEntity"),vs.__create(t,n,r)},add:function(t){return Ld("DraftEntity.add","contentState.addEntity"),vs.__add(t)},get:function(t){return Ld("DraftEntity.get","contentState.getEntity"),vs.__get(t)},__getAll:function(){return pl},__loadWithEntities:function(t){pl=t,hm=QA()},mergeData:function(t,n){return Ld("DraftEntity.mergeData","contentState.mergeEntityData"),vs.__mergeData(t,n)},replaceData:function(t,n){return Ld("DraftEntity.replaceData","contentState.replaceEntityData"),vs.__replaceData(t,n)},__getLastCreatedEntityKey:function(){return hm},__create:function(t,n,r){return vs.__add(new x5e({type:t,mutability:n,data:r||{}}))},__add:function(t){return hm=QA(),pl=pl.set(hm,t),hm},__get:function(t){var n=pl.get(t);return n||S5e(!1),n},__mergeData:function(t,n){var r=vs.__get(t),i=b5e({},r.getData(),n),o=r.set("data",i);return pl=pl.set(t,o),o},__replaceData:function(t,n){var r=vs.__get(t),i=r.set("data",n);return pl=pl.set(t,i),i}},LS=vs;function E5e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var k5e=cn,T5e=k5e.Record,R5e={anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1},A5e=T5e(R5e),$5e=function(e){E5e(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}(A5e),MS=$5e,cc=function(e){return typeof window<"u"&&window.__DRAFT_GKX?!!window.__DRAFT_GKX[e]:!1},O5e=new RegExp("\r","g");function I5e(e){return e.replace(O5e,"")}var DG=I5e;function az(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){D5e(e,i,n[i])})}return e}function D5e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P5e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var L5e=Iy,sz=xa,M5e=Mf,F5e=wa,gs=LS,J1=MS,N5e=qs,B5e=TG,j5e=cc,My=cn,z5e=DG,lz=My.List,U5e=My.Record,K5e=My.Repeat,W5e=My.Map,V5e=My.OrderedMap,H5e={entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null},q5e=U5e(H5e),uz=j5e("draft_tree_data_support")?F5e:M5e,G5e=function(e){P5e(t,e);function t(){return e.apply(this,arguments)||this}var n=t.prototype;return n.getEntityMap=function(){return gs},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||`
|
|
440
|
+
`)},n.getLastCreatedEntityKey=function(){return gs.__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 gs.__create(i,o,a),this},n.mergeEntityData=function(i,o){return gs.__mergeData(i,o),this},n.replaceEntityData=function(i,o){return gs.__replaceData(i,o),this},n.addEntity=function(i){return gs.__add(i),this},n.getEntity=function(i){return gs.__get(i)},n.getAllEntities=function(){return gs.__getAll()},n.loadWithEntities=function(i){return gs.__loadWithEntities(i)},t.createFromBlockArray=function(i,o){var a=Array.isArray(i)?i:i.contentBlocks,s=L5e.createFromArray(a),l=s.isEmpty()?new J1:J1.createEmpty(s.first().getKey());return new t({blockMap:s,entityMap:o||gs,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=z5e(l),new uz({key:N5e(),text:l,type:"unstyled",characterList:lz(K5e(sz.EMPTY,l.length))})});return t.createFromBlockArray(s)},t.fromJS=function(i){return new t(az({},i,{blockMap:V5e(i.blockMap).map(t.createContentBlockFromJS),selectionBefore:new J1(i.selectionBefore),selectionAfter:new J1(i.selectionAfter)}))},t.createContentBlockFromJS=function(i){var o=i.characterList;return new uz(az({},i,{data:W5e(i.data),characterList:o!=null?lz((Array.isArray(o)?o:B5e(o)).map(function(a){return sz.fromJS(a)})):void 0}))},t}(q5e),NI=G5e,ux=bn,Y5e="NEUTRAL",FS="LTR",PG="RTL",Zb=null;function cx(e){return e===FS||e===PG}function LG(e){return cx(e)||ux(!1),e===FS?"ltr":"rtl"}function X5e(e,t){return cx(e)||ux(!1),cx(t)||ux(!1),e===t?null:LG(e)}function MG(e){Zb=e}function Z5e(){MG(FS)}function J5e(){return Zb||this.initGlobalDir(),Zb||ux(!1),Zb}var Q5e={NEUTRAL:Y5e,LTR:FS,RTL:PG,isStrong:cx,getHTMLDir:LG,getHTMLDirIfDifferent:X5e,setGlobalDir:MG,initGlobalDir:Z5e,getGlobalDir:J5e},NS=Q5e,Rl=NS,e6e=bn,lv={L:"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",R:"־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",AL:"؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-"},t6e=new RegExp("["+lv.L+lv.R+lv.AL+"]"),n6e=new RegExp("["+lv.R+lv.AL+"]");function FG(e){var t=t6e.exec(e);return t==null?null:t[0]}function NG(e){var t=FG(e);return t==null?Rl.NEUTRAL:n6e.exec(t)?Rl.RTL:Rl.LTR}function BG(e,t){if(t=t||Rl.NEUTRAL,!e.length)return t;var n=NG(e);return n===Rl.NEUTRAL?t:n}function BI(e,t){return t||(t=Rl.getGlobalDir()),Rl.isStrong(t)||e6e(!1),BG(e,t)}function r6e(e,t){return BI(e,t)===Rl.LTR}function i6e(e,t){return BI(e,t)===Rl.RTL}var o6e={firstStrongChar:FG,firstStrongCharDir:NG,resolveBlockDir:BG,getDirection:BI,isDirectionLTR:r6e,isDirectionRTL:i6e},jI=o6e;function cz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a6e=jI,fz=NS,s6e=bn,l6e=function(){function e(n){cz(this,"_defaultDir",void 0),cz(this,"_lastDir",void 0),n?fz.isStrong(n)||s6e(!1):n=fz.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=a6e.getDirection(r,this._lastDir),this._lastDir},e}(),u6e=l6e,c6e=function(t){if(t!=null)return t;throw new Error("Got unexpected null or undefined")},lo=c6e,f6e=u6e,jG=cn,d6e=lo,p6e=jG.OrderedMap,Q1,h6e={getDirectionMap:function(t,n){Q1?Q1.reset():Q1=new f6e;var r=t.getBlockMap(),i=r.valueSeq().map(function(a){return d6e(Q1).getDirection(a.getText())}),o=p6e(r.keySeq().zip(i));return n!=null&&jG.is(n,o)?n:o}},g6e=h6e;function dz(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){zG(e,i,n[i])})}return e}function zG(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=f5e,gm=NI,eb=g6e,iT=MS,Fy=cn,UG=Fy.OrderedSet,m6e=Fy.Record,Gc=Fy.Stack,pz=Fy.OrderedMap,v6e=Fy.List,y6e={allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:Gc(),selection:null,treeMap:null,undoStack:Gc()},hz=m6e(y6e),KG=function(){t.createEmpty=function(r){return this.createWithText("",r)},t.createWithText=function(r,i){return t.createWithContent(gm.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:Gc(),redoStack:Gc(),decorator:i||null,selection:iT.createEmpty(o)})},t.create=function(r){var i=r.currentContent,o=r.decorator,a=dz({},r,{treeMap:mz(i,o),directionMap:eb.getDirectionMap(i)});return new t(new hz(a))},t.fromJS=function(r){return new t(new hz(dz({},r,{directionMap:r.directionMap!=null?pz(r.directionMap):r.directionMap,inlineStyleOverride:r.inlineStyleOverride!=null?UG(r.inlineStyleOverride):r.inlineStyleOverride,nativelyRenderedContent:r.nativelyRenderedContent!=null?gm.fromJS(r.nativelyRenderedContent):r.nativelyRenderedContent,redoStack:r.redoStack!=null?Gc(r.redoStack.map(function(i){return gm.fromJS(i)})):r.redoStack,selection:r.selection!=null?new iT(r.selection):r.selection,treeMap:r.treeMap!=null?pz(r.treeMap).map(function(i){return v6e(i).map(function(o){return BS.fromJS(o)})}):r.treeMap,undoStack:r.undoStack!=null?Gc(r.undoStack.map(function(i){return gm.fromJS(i)})):r.undoStack,currentContent:gm.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=_6e(u,u.getBlockMap(),f,l,s):d=mz(u,l),a.merge({decorator:l,treeMap:d,nativelyRenderedContent:null});return}var p=r.getCurrentContent();u!==p&&a.set("treeMap",b6e(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()?w6e(i,o):S6e(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 gz(r,i,!1)},t.forceSelection=function(r,i){return i.getHasFocus()||(i=i.set("hasFocus",!0)),gz(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 iT({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=eb.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()||x6e(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(),g=["adjust-depth","change-block-type","split-block"];g.indexOf(o)===-1&&(p=null);var v={currentContent:d,directionMap:s,undoStack:f,redoStack:Gc(),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=eb.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=eb.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){zG(this,"_immutable",void 0),this._immutable=n}return e.getImmutable=function(){return this._immutable},t}();function gz(e,t,n){return KG.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function mz(e,t){return e.getBlockMap().map(function(n){return BS.generate(e,n,t)}).toOrderedMap()}function b6e(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 _6e(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 x6e(e,t){var n=e.getLastChangeType();return t!==n||t!=="insert-characters"&&t!=="backspace-character"&&t!=="delete-character"}function w6e(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):WG(e,n)}function S6e(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):WG(e,n)}function WG(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):UG()}var zn=KG,C6e=wa,E6e=CG,VG=cn,tb=bn,k6e=VG.OrderedMap,T6e=VG.List,Ic=function(t,n,r){if(t){var i=n.get(t);i&&n.set(t,r(i))}},R6e=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(),g=a?r.getNextSiblingKey():l,v=a?l:r.getPrevSiblingKey();return t.withMutations(function(y){Ic(u,y,function(w){var b=w.getChildKeys();return w.merge({children:b.delete(b.indexOf(s))})}),Ic(d,y,function(w){return w.merge({nextSibling:f})}),Ic(f,y,function(w){return w.merge({prevSibling:d})}),Ic(g,y,function(w){return w.merge({prevSibling:s})}),Ic(v,y,function(w){return w.merge({nextSibling:s})}),Ic(p,y,function(w){var b=w.getChildKeys(),x=b.indexOf(l),C=a?x+1:x!==0?x-1:0,k=b.toArray();return k.splice(C,0,s),w.merge({children:T6e(k)})}),Ic(s,y,function(w){return w.merge({nextSibling:g,prevSibling:v,parent:p})})})},A6e=function(t,n,r,i){i==="replace"&&tb(!1);var o=r.getKey(),a=n.getKey();a===o&&tb(!1);var s=t.getBlockMap(),l=n instanceof C6e,u=[n],f=s.delete(a);l&&(u=[],f=s.withMutations(function(b){var x=n.getNextSiblingKey(),C=E6e(n,b);b.toSeq().skipUntil(function(k){return k.getKey()===a}).takeWhile(function(k){var R=k.getKey(),A=R===a,O=x&&R!==x,z=!x&&k.getParentKey()&&(!C||R!==C);return!!(A||O||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),g=u.map(function(b){return[b.getKey(),b]}),v=k6e();if(i==="before"){var y=t.getBlockBefore(o);!y||y.getKey()!==n.getKey()||tb(!1),v=d.concat([].concat(g,[[o,r]]),p).toOrderedMap()}else if(i==="after"){var w=t.getBlockAfter(o);!w||w.getKey()!==a||tb(!1),v=d.concat([[o,r]].concat(g),p).toOrderedMap()}return t.merge({blockMap:R6e(v,n,r,i,l),selectionBefore:t.getSelectionAfter(),selectionAfter:t.getSelectionAfter().merge({anchorKey:a,focusKey:a})})},$6e=A6e;function vz(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){O6e(e,i,n[i])})}return e}function O6e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I6e=Iy,D6e=xa,P6e=Mf,L6e=wa,Md=so,yz=zn,bz=qs,M6e=cc,HG=cn,nb=$6e,qG=M6e("draft_tree_data_support"),_z=qG?L6e:P6e,F6e=HG.List,N6e=HG.Repeat,B6e={insertAtomicBlock:function(t,n,r){var i=t.getCurrentContent(),o=t.getSelection(),a=Md.removeRange(i,o,"backward"),s=a.getSelectionAfter(),l=Md.splitBlock(a,s),u=l.getSelectionAfter(),f=Md.setBlockType(l,u,"atomic"),d=D6e.create({entity:n}),p={key:bz(),type:"atomic",text:r,characterList:F6e(N6e(d,r.length))},g={key:bz(),type:"unstyled"};qG&&(p=vz({},p,{nextSibling:g.key}),g=vz({},g,{prevSibling:p.key}));var v=[new _z(p),new _z(g)],y=I6e.createFromArray(v),w=Md.replaceWithFragment(f,u,y),b=w.merge({selectionBefore:o,selectionAfter:w.getSelectionAfter().set("hasFocus",!0)});return yz.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=nb(o,n,l,i)}else{var u=Md.removeRange(o,r,"backward"),f=u.getSelectionAfter(),d=u.getBlockForKey(f.getFocusKey());if(f.getStartOffset()===0)s=nb(u,n,d,"before");else if(f.getEndOffset()===d.getLength())s=nb(u,n,d,"after");else{var p=Md.splitBlock(u,f),g=p.getSelectionAfter(),v=p.getBlockForKey(g.getFocusKey());s=nb(p,n,v,"before")}}var y=s.merge({selectionBefore:a,selectionAfter:s.getSelectionAfter().set("hasFocus",!0)});return yz.push(t,y,"move-block")}},j6e=B6e;function z6e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U6e=cn,K6e=U6e.List,oT=".",W6e=function(){function e(n){z6e(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,g){V6e(o,p,g)&&(H6e(o,p,g,s+oT+l),l++)};u(r,f,i)}),K6e(o)},t.getComponentForKey=function(r){var i=parseInt(r.split(oT)[0],10);return this._decorators[i].component},t.getPropsForKey=function(r){var i=parseInt(r.split(oT)[0],10);return this._decorators[i].props},e}();function V6e(e,t,n){for(var r=t;r<n;r++)if(e[r]!=null)return!1;return!0}function H6e(e,t,n,r){for(var i=t;i<n;i++)e[i]=r}var q6e=W6e;function G6e(e){return typeof e=="object"?Object.keys(e).filter(function(t){return e[t]}).map(xz).join(" "):Array.prototype.map.call(arguments,xz).join(" ")}function xz(e){return e.replace(/\//g,"-")}var Ff=G6e,zI=T,UI=Ff,Y6e=cn,X6e=Y6e.Map,Z6e=zI.createElement("ul",{className:UI("public/DraftStyleDefault/ul")}),J6e=zI.createElement("ol",{className:UI("public/DraftStyleDefault/ol")}),Q6e=zI.createElement("pre",{className:UI("public/DraftStyleDefault/pre")}),eUe=X6e({"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:Z6e},"ordered-list-item":{element:"li",wrapper:J6e},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:Q6e},unstyled:{element:"div",aliasedElements:["p"]}}),KI=eUe,GG={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}};/*
|
|
441
|
+
object-assign
|
|
442
|
+
(c) Sindre Sorhus
|
|
443
|
+
@license MIT
|
|
444
|
+
*/var wz=Object.getOwnPropertySymbols,tUe=Object.prototype.hasOwnProperty,nUe=Object.prototype.propertyIsEnumerable;function rUe(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function iUe(){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 Nf=iUe()?Object.assign:function(e,t){for(var n,r=rUe(e),i,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var a in n)tUe.call(n,a)&&(r[a]=n[a]);if(wz){i=wz(n);for(var s=0;s<i.length;s++)nUe.call(n,i[s])&&(r[i[s]]=n[i[s]])}}return r},e$={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",g="name",v="type",y="vendor",w="version",b="architecture",x="console",C="mobile",k="tablet",R="smarttv",A="wearable",O="embedded",z=350,V="Amazon",D="Apple",W="ASUS",ie="BlackBerry",se="Browser",K="Chrome",G="Edge",Q="Firefox",le="Google",Z="Huawei",ee="LG",P="Microsoft",ge="Motorola",B="Opera",L="Samsung",ae="Sharp",ue="Sony",ne="Xiaomi",we="Zebra",Te="Facebook",Ee="Chromium OS",Le="Mac OS",Be=function(H,fe){var Y={};for(var X in H)fe[X]&&fe[X].length%2===0?Y[X]=fe[X].concat(H[X]):Y[X]=H[X];return Y},Ie=function(H){for(var fe={},Y=0;Y<H.length;Y++)fe[H[Y].toUpperCase()]=H[Y];return fe},Pe=function(H,fe){return typeof H===f?je(fe).indexOf(je(H))!==-1:!1},je=function(H){return H.toLowerCase()},Fe=function(H){return typeof H===f?H.replace(/[^\d\.]/g,o).split(".")[0]:r},tt=function(H,fe){if(typeof H===f)return H=H.replace(/^\s\s*/,o),typeof fe===l?H:H.substring(0,z)},Xe=function(H,fe){for(var Y=0,X,oe,xe,Ce,_e,nt;Y<fe.length&&!_e;){var rt=fe[Y],de=fe[Y+1];for(X=oe=0;X<rt.length&&!_e&&rt[X];)if(_e=rt[X++].exec(H),_e)for(xe=0;xe<de.length;xe++)nt=_e[++oe],Ce=de[xe],typeof Ce===u&&Ce.length>0?Ce.length===2?typeof Ce[1]==s?this[Ce[0]]=Ce[1].call(this,nt):this[Ce[0]]=Ce[1]:Ce.length===3?typeof Ce[1]===s&&!(Ce[1].exec&&Ce[1].test)?this[Ce[0]]=nt?Ce[1].call(this,nt,Ce[2]):r:this[Ce[0]]=nt?nt.replace(Ce[1],Ce[2]):r:Ce.length===4&&(this[Ce[0]]=nt?Ce[3].call(this,nt.replace(Ce[1],Ce[2])):r):this[Ce]=nt||r;Y+=2}},Ye=function(H,fe){for(var Y in fe)if(typeof fe[Y]===u&&fe[Y].length>0){for(var X=0;X<fe[Y].length;X++)if(Pe(fe[Y][X],H))return Y===a?r:Y}else if(Pe(fe[Y],H))return Y===a?r:Y;return H},st={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},he={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"},Ae={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[w,[g,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[w,[g,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[g,w],[/opios[\/ ]+([\w\.]+)/i],[w,[g,B+" Mini"]],[/\bopr\/([\w\.]+)/i],[w,[g,B]],[/(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],[g,w],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[w,[g,"UC"+se]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[w,[g,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[w,[g,"WeChat"]],[/konqueror\/([\w\.]+)/i],[w,[g,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[w,[g,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[w,[g,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[g,/(.+)/,"$1 Secure "+se],w],[/\bfocus\/([\w\.]+)/i],[w,[g,Q+" Focus"]],[/\bopt\/([\w\.]+)/i],[w,[g,B+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[w,[g,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[w,[g,"Dolphin"]],[/coast\/([\w\.]+)/i],[w,[g,B+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[w,[g,"MIUI "+se]],[/fxios\/([-\w\.]+)/i],[w,[g,Q]],[/\bqihu|(qi?ho?o?|360)browser/i],[[g,"360 "+se]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[g,/(.+)/,"$1 "+se],w],[/(comodo_dragon)\/([\w\.]+)/i],[[g,/_/g," "],w],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[g,w],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[g],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[g,Te],w],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[g,w],[/\bgsa\/([\w\.]+) .*safari\//i],[w,[g,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[w,[g,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[w,[g,K+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[g,K+" WebView"],w],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[w,[g,"Android "+se]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[g,w],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[w,[g,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[w,g],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[g,[w,Ye,st]],[/(webkit|khtml)\/([\w\.]+)/i],[g,w],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[g,"Netscape"],w],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[w,[g,Q+" 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],[g,w],[/(cobalt)\/([\w\.]+)/i],[g,[w,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[b,"amd64"]],[/(ia32(?=;))/i],[[b,je]],[/((?: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,je]],[/(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,je]]],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,C]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[p,[y,D],[v,C]],[/\((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,ae],[v,C]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[p,[y,Z],[v,k]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[p,[y,Z],[v,C]],[/\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,ne],[v,C]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[p,/_/g," "],[y,ne],[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,C]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[p,[y,"Vivo"],[v,C]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[p,[y,"Realme"],[v,C]],[/\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,ge],[v,C]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[p,[y,ge],[v,k]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[p,[y,ee],[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,ee],[v,C]],[/(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,C]],[/(pixel c)\b/i],[p,[y,le],[v,k]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[p,[y,le],[v,C]],[/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,C]],[/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,C]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[p,[y,V],[v,k]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[p,/(.+)/g,"Fire Phone $1"],[y,V],[v,C]],[/(playbook);[-\w\),; ]+(rim)/i],[p,y,[v,k]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[p,[y,ie],[v,C]],[/(?:\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,C]],[/(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,C]],[/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,C]],[/(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,C]],[/(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,C]],[/(u304aa)/i],[p,[y,"AT&T"],[v,C]],[/\bsie-(\w*)/i],[p,[y,"Siemens"],[v,C]],[/\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,C]],[/\b(gen\d{3}) b.+49h/i],[p,[y,"Swiss"],[v,C]],[/\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,C]],[/\b(lvtel\-)?(v1[12]) b/i],[[y,"LvTel"],p,[v,C]],[/\b(ph-1) /i],[p,[y,"Essential"],[v,C]],[/\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,C]],[/(kin\.[onetw]{3})/i],[[p,/\./g," "],[y,P],[v,C]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[p,[y,we],[v,k]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[p,[y,we],[v,C]],[/smart-tv.+(samsung)/i],[y,[v,R]],[/hbbtv.+maple;(\d+)/i],[[p,/^/,"SmartTV"],[y,L],[v,R]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[y,ee],[v,R]],[/(apple) ?tv/i],[y,[p,D+" TV"],[v,R]],[/crkey/i],[[p,K+"cast"],[y,le],[v,R]],[/droid.+aft(\w)( bui|\))/i],[p,[y,V],[v,R]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[p,[y,ae],[v,R]],[/(bravia[\w ]+)( bui|\))/i],[p,[y,ue],[v,R]],[/(mitv-\w{5}) bui/i],[p,[y,ne],[v,R]],[/Hbbtv.*(technisat) (.*);/i],[y,p,[v,R]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[y,tt],[p,tt],[v,R]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[v,R]],[/(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,A]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[p,[y,D],[v,A]],[/droid.+; (glass) \d/i],[p,[y,le],[v,A]],[/droid.+; (wt63?0{2,3})\)/i],[p,[y,we],[v,A]],[/(quest( 2| pro)?)/i],[p,[y,Te],[v,A]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[y,[v,O]],[/(aeobc)\b/i],[p,[y,V],[v,O]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[p,[v,C]],[/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,C]],[/(android[-\w\. ]{0,9});.+buil/i],[p,[y,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[w,[g,G+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[w,[g,"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],[g,w],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[w,g]],os:[[/microsoft (windows) (vista|xp)/i],[g,w],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[g,[w,Ye,he]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[g,"Windows"],[w,Ye,he]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[w,/_/g,"."],[g,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[g,Le],[w,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[w,g],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[g,w],[/\(bb(10);/i],[w,[g,ie]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[w,[g,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[w,[g,Q+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[w,[g,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[w,[g,"watchOS"]],[/crkey\/([\d\.]+)/i],[w,[g,K+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[g,Ee],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],[g,w],[/(sunos) ?([\w\.\d]*)/i],[[g,"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],[g,w]]},Re=function(H,fe){if(typeof H===u&&(fe=H,H=r),!(this instanceof Re))return new Re(H,fe).getResult();var Y=typeof n!==l&&n.navigator?n.navigator:r,X=H||(Y&&Y.userAgent?Y.userAgent:o),oe=Y&&Y.userAgentData?Y.userAgentData:r,xe=fe?Be(Ae,fe):Ae,Ce=Y&&Y.userAgent==X;return this.getBrowser=function(){var _e={};return _e[g]=r,_e[w]=r,Xe.call(_e,X,xe.browser),_e[d]=Fe(_e[w]),Ce&&Y&&Y.brave&&typeof Y.brave.isBrave==s&&(_e[g]="Brave"),_e},this.getCPU=function(){var _e={};return _e[b]=r,Xe.call(_e,X,xe.cpu),_e},this.getDevice=function(){var _e={};return _e[y]=r,_e[p]=r,_e[v]=r,Xe.call(_e,X,xe.device),Ce&&!_e[v]&&oe&&oe.mobile&&(_e[v]=C),Ce&&_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[g]=r,_e[w]=r,Xe.call(_e,X,xe.engine),_e},this.getOS=function(){var _e={};return _e[g]=r,_e[w]=r,Xe.call(_e,X,xe.os),Ce&&!_e[g]&&oe&&oe.platform!="Unknown"&&(_e[g]=oe.platform.replace(/chrome os/i,Ee).replace(/macos/i,Le)),_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 X},this.setUA=function(_e){return X=typeof _e===f&&_e.length>z?tt(_e,z):_e,this},this.setUA(X),this};Re.VERSION=i,Re.BROWSER=Ie([g,w,d]),Re.CPU=Ie([b]),Re.DEVICE=Ie([p,y,v,x,C,R,k,A,O]),Re.ENGINE=Re.OS=Ie([g,w]),e.exports&&(t=e.exports=Re),t.UAParser=Re;var Ne=typeof n!==l&&(n.jQuery||n.Zepto);if(Ne&&!Ne.ua){var U=new Re;Ne.ua=U.getResult(),Ne.ua.get=function(){return U.getUA()},Ne.ua.set=function(H){U.setUA(H);var fe=U.getResult();for(var Y in fe)Ne.ua[Y]=fe[Y]}}})(typeof window=="object"?window:ni)})(e$,e$.exports);var oUe=e$.exports,aUe=oUe,qo="Unknown",sUe={"Mac OS":"Mac OS X"};function lUe(e){return sUe[e]||e}function uUe(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}var cUe=new aUe,Yo=cUe.getResult(),fUe=uUe(Yo.browser.version),dUe={browserArchitecture:Yo.cpu.architecture||qo,browserFullVersion:Yo.browser.version||qo,browserMinorVersion:fUe.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:lUe(Yo.os.name)||qo,platformVersion:Yo.os.version||qo,platformFullVersion:Yo.os.version||qo},pUe=dUe,fx=bn,YG=/\./,hUe=/\|\|/,gUe=/\s+\-\s+/,mUe=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,Sz=/^(\d*)(.*)/;function vUe(e,t){var n=e.split(hUe);return n.length>1?n.some(function(r){return QG.contains(r,t)}):(e=n[0].trim(),yUe(e,t))}function yUe(e,t){var n=e.split(gUe);if(n.length>0&&n.length<=2||fx(!1),n.length===1)return aT(n[0],t);var r=n[0],i=n[1];return Cz(r)&&Cz(i)||fx(!1),aT(">="+r,t)&&aT("<="+i,t)}function aT(e,t){if(e=e.trim(),e==="")return!0;var n=t.split(YG),r=JG(e),i=r.modifier,o=r.rangeComponents;switch(i){case"<":return XG(n,o);case"<=":return bUe(n,o);case">=":return ZG(n,o);case">":return xUe(n,o);case"~":case"~>":return wUe(n,o);default:return _Ue(n,o)}}function XG(e,t){return Ny(e,t)===-1}function bUe(e,t){var n=Ny(e,t);return n===-1||n===0}function _Ue(e,t){return Ny(e,t)===0}function ZG(e,t){var n=Ny(e,t);return n===1||n===0}function xUe(e,t){return Ny(e,t)===1}function wUe(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 t$(o)&&(r[i]=o+1+""),ZG(e,n)&&XG(e,r)}function JG(e){var t=e.split(YG),n=t[0].match(mUe);return n||fx(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function t$(e){return!isNaN(e)&&isFinite(e)}function Cz(e){return!JG(e).modifier}function Ez(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function SUe(e,t){e=e.slice(),t=t.slice(),Ez(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 Ez(t,e.length),[e,t]}function CUe(e,t){var n=e.match(Sz)[1],r=t.match(Sz)[1],i=parseInt(n,10),o=parseInt(r,10);return t$(i)&&t$(o)&&i!==o?kz(i,o):kz(e,t)}function kz(e,t){return typeof e!=typeof t&&fx(!1),e>t?1:e<t?-1:0}function Ny(e,t){for(var n=SUe(e,t),r=n[0],i=n[1],o=0;o<i.length;o++){var a=CUe(r[o],i[o]);if(a)return a}return 0}var QG={contains:function(t,n){return vUe(t.trim(),n.trim())}},EUe=QG,kUe=Object.prototype.hasOwnProperty;function TUe(e,t,n){if(!e)return null;var r={};for(var i in e)kUe.call(e,i)&&(r[i]=t.call(n,e[i],i,e));return r}var RUe=TUe;function AUe(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}var $Ue=AUe,ys=pUe,OUe=EUe,IUe=RUe,DUe=$Ue;function Fd(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,OUe.contains(i,t)):!1}function PUe(e){return ys.platformName==="Windows"?e.replace(/^\s*NT/,""):e}var LUe={isBrowser:function(t){return Fd(ys.browserName,ys.browserFullVersion,t)},isBrowserArchitecture:function(t){return Fd(ys.browserArchitecture,null,t)},isDevice:function(t){return Fd(ys.deviceName,null,t)},isEngine:function(t){return Fd(ys.engineName,ys.engineVersion,t)},isPlatform:function(t){return Fd(ys.platformName,ys.platformFullVersion,t,PUe)},isPlatformArchitecture:function(t){return Fd(ys.platformArchitecture,null,t)}},uo=IUe(LUe,DUe);function MUe(e){return!e||!e.ownerDocument?document:e.ownerDocument}var jS=MUe;function FUe(e){return!e||!e.ownerDocument?!1:e.nodeType===Node.ELEMENT_NODE}var Bf=FUe,NUe=Bf;function eY(e){if(NUe(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=eY(t.childNodes[r]);if(i)return i}}return null}var tY=eY,BUe=jS,jUe=tY;function zUe(e){for(var t=e;t&&t!==BUe(e).documentElement;){var n=jUe(t);if(n!=null)return n;t=t.parentNode}return null}var zS=zUe;function UUe(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}var nY=UUe;function rb(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var KUe=uo,WUe=zS,VUe=nY,HUe=cn,qUe=bn,GUe=lo,Tz=HUe.Map,YUe={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},Rz=KUe.isBrowser("IE <= 11"),XUe=function(){function e(n){var r=this;rb(this,"observer",void 0),rb(this,"container",void 0),rb(this,"mutations",void 0),rb(this,"onCharData",void 0),this.container=n,this.mutations=Tz();var i=VUe(n);i.MutationObserver&&!Rz?this.observer=new i.MutationObserver(function(o){return r.registerMutations(o)}):this.onCharData=function(o){o.target instanceof Node||qUe(!1),r.registerMutation({type:"characterData",target:o.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,YUe):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=Tz(),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 Rz?o.textContent.replace(`
|
|
445
|
+
`,""):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=GUe(WUe(r.target));this.mutations=this.mutations.set(o,i)}},e}(),ZUe=XUe,ib="-",JUe={encode:function(t,n,r){return t+ib+n+ib+r},decode:function(t){var n=t.split(ib).reverse(),r=n[0],i=n[1],o=n.slice(2);return{blockKey:o.reverse().join(ib),decoratorKey:parseInt(i,10),leafKey:parseInt(r,10)}}},Kl=JUe,US={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},rY={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};function QUe(e){return!e||!e.ownerDocument?!1:e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement}var By=QUe,Az=bn,e9e=By;function t9e(e){var t=e.editorContainer;t||Az(!1),e9e(t.firstChild)||Az(!1);var n=t.firstChild;return n}var iY=t9e,$z=Kl,n9e=lo;function r9e(e,t,n,r,i){var o=n9e(e.getSelection());if(!t||!r)return o;var a=$z.decode(t),s=a.blockKey,l=e.getBlockTree(s),u=l&&l.getIn([a.decoratorKey,"leaves",a.leafKey]),f=$z.decode(r),d=f.blockKey,p=e.getBlockTree(d),g=p&&p.getIn([f.decoratorKey,"leaves",f.leafKey]);if(!u||!g)return o;var v=u.get("start"),y=g.get("start"),w=u?v+n:null,b=g?y+i:null,x=o.getAnchorKey()===s&&o.getAnchorOffset()===w&&o.getFocusKey()===d&&o.getFocusOffset()===b;if(x)return o;var C=!1;if(s===d){var k=u.get("end"),R=g.get("end");y===v&&R===k?C=i<n:C=y<v}else{var A=e.getCurrentContent().getBlockMap().keySeq().skipUntil(function(O){return O===s||O===d}).first();C=A===d}return o.merge({anchorKey:s,anchorOffset:w,focusKey:d,focusOffset:b,isBackward:C})}var oY=r9e,Dm=zS,uv=tY,Oz=oY,sT=bn,WI=Bf,nf=lo;function i9e(e,t,n,r,i,o){var a=n.nodeType===Node.TEXT_NODE,s=i.nodeType===Node.TEXT_NODE;if(a&&s)return{selectionState:Oz(e,nf(Dm(n)),r,nf(Dm(i)),o),needsRecovery:!1};var l=null,u=null,f=!0;return a?(l={key:nf(Dm(n)),offset:r},u=ob(t,i,o)):s?(u={key:nf(Dm(i)),offset:o},l=ob(t,n,r)):(l=ob(t,n,r),u=ob(t,i,o),n===i&&r===o&&(f=!!n.firstChild&&n.firstChild.nodeName!=="BR")),{selectionState:Oz(e,l.key,l.offset,u.key,u.offset),needsRecovery:f}}function o9e(e){for(;e.firstChild&&(WI(e.firstChild)&&e.firstChild.getAttribute("data-blocks")==="true"||uv(e.firstChild));)e=e.firstChild;return e}function a9e(e){for(;e.lastChild&&(WI(e.lastChild)&&e.lastChild.getAttribute("data-blocks")==="true"||uv(e.lastChild));)e=e.lastChild;return e}function ob(e,t,n){var r=t,i=Dm(r);if(i!=null||e&&(e===r||e.firstChild===r)||sT(!1),e===r){r=r.firstChild,WI(r)||sT(!1);var o=r;r=o,r.getAttribute("data-contents")!=="true"&&sT(!1),n>0&&(n=r.childNodes.length)}if(n===0){var a=null;if(i!=null)a=i;else{var s=o9e(r);a=nf(uv(s))}return{key:a,offset:0}}var l=r.childNodes[n-1],u=null,f=null;if(!uv(l))u=nf(i),f=Iz(l);else{var d=a9e(l);u=nf(uv(d)),f=Iz(d)}return{key:u,offset:f}}function Iz(e){var t=e.textContent;return t===`
|
|
446
|
+
`?0:t.length}var aY=i9e,s9e=aY;function l9e(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}:s9e(e,t,r,i,o,a)}var sY=l9e,u9e=rY,Dz=zn,c9e=iY,f9e=sY;function d9e(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState,n=t.getSelection();u9e.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:new Error().stack}),selectionState:JSON.stringify(n.toJS())})}return}var r=e.props.editorState,i=f9e(r,c9e(e)),o=i.selectionState;o!==r.getSelection()&&(i.needsRecovery?r=Dz.forceSelection(r,o):r=Dz.acceptSelection(r,o),e.update(r))}var lY=d9e;function p9e(e){return e!=null&&e!=""}var uY={notEmptyKey:p9e},h9e=uY,g9e=h9e.notEmptyKey;function m9e(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:Pz(e.getEntityMap(),n)):null}var o=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(o);return n=a===s.getLength()?null:s.getEntityAt(a),Pz(e.getEntityMap(),n)}function Pz(e,t){if(g9e(t)){var n=e.__get(t);return n.getMutability()==="MUTABLE"?t:null}return null}var VI=m9e,v9e=ZUe,y9e=so,b9e=Kl,mm=zn,lT=US,_9e=uo,x9e=lY,cY=iY,w9e=sY,S9e=VI,C9e=lo,E9e=_9e.isBrowser("IE"),k9e=20,uT=!1,ab=!1,cv=null;function T9e(e){cv||(cv=new v9e(cY(e)),cv.start())}var n$={onCompositionStart:function(t){ab=!0,T9e(t)},onCompositionEnd:function(t){uT=!1,ab=!1,setTimeout(function(){uT||n$.resolveComposition(t)},k9e)},onSelect:x9e,onKeyDown:function(t,n){if(!ab){n$.resolveComposition(t),t._onKeyDown(n);return}(n.which===lT.RIGHT||n.which===lT.LEFT)&&n.preventDefault()},onKeyPress:function(t,n){n.which===lT.RETURN&&n.preventDefault()},resolveComposition:function(t){if(!ab){var n=C9e(cv).stopAndFlushMutations();cv=null,uT=!0;var r=mm.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=b9e.decode(u),d=f.blockKey,p=f.decoratorKey,g=f.leafKey,v=r.getBlockTree(d).getIn([p,"leaves",g]),y=v.start,w=v.end,b=r.getSelection().merge({anchorKey:d,focusKey:d,anchorOffset:y,focusOffset:w,isBackward:!1}),x=S9e(i,b),C=i.getBlockForKey(d).getInlineStyleAt(y);i=y9e.replaceText(i,b,l,C,x),r=mm.set(r,{currentContent:i})});var o=w9e(r,cY(t)),a=o.selectionState;t.restoreEditorDOM();var s=E9e?mm.forceSelection(r,a):mm.acceptSelection(r,a);t.update(mm.push(s,i,"insert-characters"))}}},R9e=n$,cT,Lz;function A9e(){if(Lz)return cT;Lz=1;var e=Nf;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=Kl,i=T,o=jI,a=NS,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,g=p.block,v=p.children,y=p.contentState,w=p.decorator,b=p.decoratorKey,x=p.direction,C=p.leafSet,k=p.text,R=g.getKey(),A=C.get("leaves"),O=w.getComponentForKey(b),z=w.getPropsForKey(b),V=r.encode(R,parseInt(b,10),0),D=k.slice(A.first().get("start"),A.last().get("end")),W=a.getHTMLDirIfDifferent(o.getDirection(D),x);return i.createElement(O,t({},z,{contentState:y,decoratedText:D,dir:W,key:V,entityKey:g.getEntityAt(C.get("start")),offsetKey:V}),v)},u}(i.Component);return cT=s,cT}function Mz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $9e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Fz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xp=T,O9e=uo,I9e=bn,D9e=Bf,HI=O9e.isBrowser("IE <= 11");function P9e(e){return HI?e.textContent===`
|
|
447
|
+
`:e.tagName==="BR"}var L9e=function(t){return HI?Xp.createElement("span",{key:"A","data-text":"true",ref:t},`
|
|
448
|
+
`):Xp.createElement("br",{key:"A","data-text":"true",ref:t})},M9e=function(t){return HI?Xp.createElement("span",{key:"B","data-text":"true",ref:t},`
|
|
449
|
+
`):Xp.createElement("br",{key:"B","data-text":"true",ref:t})},F9e=function(e){$9e(t,e);function t(r){var i;return i=e.call(this,r)||this,Fz(Mz(i),"_forceFlag",void 0),Fz(Mz(i),"_node",void 0),i._forceFlag=!1,i}var n=t.prototype;return n.shouldComponentUpdate=function(i){var o=this._node,a=i.children==="";D9e(o)||I9e(!1);var s=o;return a?!P9e(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?L9e(function(o){return i._node=o}):M9e(function(o){return i._node=o}):Xp.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(a){return i._node=a}},this.props.children)},t}(Xp.Component),N9e=F9e,B9e=Bf;function j9e(e){return!e||!e.ownerDocument?!1:B9e(e)&&e.nodeName==="BR"}var fY=j9e,dY={initODS:function(){},handleExtensionCausedError:function(){}};function z9e(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 U9e=z9e,K9e=U9e;function W9e(e){return K9e(e)&&e.nodeType==3}var V9e=W9e,Nz=V9e;function pY(e,t){return!e||!t?!1:e===t?!0:Nz(e)?!1:Nz(t)?pY(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}var qI=pY;function H9e(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 hY=H9e,q9e=dY,r$=rY,G9e=uo,gY=qI,Y9e=hY,GI=jS,X9e=bn,mY=Bf,Z9e=G9e.isBrowser("IE");function J9e(e,t){if(!e)return"[empty]";var n=vY(e,t);if(n.nodeType===Node.TEXT_NODE)return n.textContent;mY(n)||X9e(!1);var r=n;return r.outerHTML}function vY(e,t){var n=t!==void 0?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return GI(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(vY(o[a],t));return i}function i$(e,t){for(var n=e,r=n;n;){if(mY(n)&&r.hasAttribute("contenteditable"))return J9e(n,t);n=n.parentNode,r=n}return"Could not find contentEditable parent of node"}function yY(e){return e.nodeValue===null?e.childNodes.length:e.nodeValue.length}function Q9e(e,t,n,r,i){var o=GI(t);if(gY(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,g=l;s=u,l=f,u=p,f=g,d=!1}var v=s===n&&r<=l&&i>=l,y=u===n&&r<=f&&i>=f;if(v&&y){a.removeAllRanges(),sb(a,t,l-r,e),Jb(a,t,f-r,e);return}if(!d)v&&(a.removeAllRanges(),sb(a,t,l-r,e)),y&&Jb(a,t,f-r,e);else if(y&&(a.removeAllRanges(),sb(a,t,f-r,e)),v){var w=a.focusNode,b=a.focusOffset;a.removeAllRanges(),sb(a,t,l-r,e),Jb(a,w,b,e)}}}function Jb(e,t,n,r){var i=Y9e(),o=e.extend;if(o&&t!=null&&gY(i,t)){n>yY(t)&&r$.logSelectionStateFailure({anonymizedDom:i$(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 r$.logSelectionStateFailure({anonymizedDom:i$(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 sb(e,t,n,r){var i=GI(t).createRange();if(n>yY(t)&&(r$.logSelectionStateFailure({anonymizedDom:i$(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),q9e.handleExtensionCausedError()),i.setStart(t,n),Z9e)try{e.addRange(i)}catch{}else e.addRange(i)}var e8e={setDraftEditorSelection:Q9e,addFocusToSelection:Jb},Bz=Nf;function t8e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function n8e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function r8e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i8e=N9e,fT=T,lb=bn,o8e=fY,a8e=e8e.setDraftEditorSelection,s8e=function(e){n8e(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,r8e(t8e(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||lb(!1);var p=d.firstChild;p||lb(!1);var g;p.nodeType===Node.TEXT_NODE?g=p:o8e(p)?g=d:(g=p.firstChild,g||lb(!1)),a8e(i,g,u,s,f)}}},n.shouldComponentUpdate=function(i){var o=this.leaf;o||lb(!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(`
|
|
450
|
+
`)&&this.props.isLast&&(a+=`
|
|
451
|
+
`);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()),Bz(v,b,w)},{});if(u){var g=u(d,o);p=Bz(p,g)}return fT.createElement("span",{"data-offset-key":f,ref:function(y){return i.leaf=y},style:p},fT.createElement(i8e,null,a))},t}(fT.Component),bY=s8e,dT,jz;function l8e(){if(jz)return dT;jz=1;function e(l,u){l.prototype=Object.create(u.prototype),l.prototype.constructor=l,l.__proto__=u}var t=A9e(),n=bY,r=Kl,i=cn,o=T,a=Ff;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,g=p.block,v=p.contentState,y=p.customStyleFn,w=p.customStyleMap,b=p.decorator,x=p.direction,C=p.forceSelection,k=p.hasSelection,R=p.selection,A=p.tree,O=g.getKey(),z=g.getText(),V=A.size-1,D=this.props.children||A.map(function(W,ie){var se=W.get("decoratorKey"),K=W.get("leaves"),G=K.size-1,Q=K.map(function(le,Z){var ee=r.encode(O,ie,Z),P=le.get("start"),ge=le.get("end");return o.createElement(n,{key:ee,offsetKey:ee,block:g,start:P,selection:k?R:null,forceSelection:C,text:z.slice(P,ge),styleSet:g.getInlineStyleAt(P),customStyleMap:w,customStyleFn:y,isLast:se===V&&Z===G})}).toArray();return!se||!b?Q:o.createElement(t,{block:g,children:Q,contentState:v,decorator:b,decoratorKey:se,direction:x,leafSet:W,text:z,key:ie})}).toArray();return o.createElement("div",{"data-offset-key":r.encode(O,0,0),className:a({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":x==="LTR","public/DraftStyleDefault/rtl":x==="RTL"})},D)},u}(o.Component);return dT=s,dT}function ub(e,t){return!!t&&(e===t.documentElement||e===t.body)}var u8e={getTop:function(t){var n=t.ownerDocument;return ub(t,n)?n.body.scrollTop||n.documentElement.scrollTop:t.scrollTop},setTop:function(t,n){var r=t.ownerDocument;ub(t,r)?r.body.scrollTop=r.documentElement.scrollTop=n:t.scrollTop=n},getLeft:function(t){var n=t.ownerDocument;return ub(t,n)?n.body.scrollLeft||n.documentElement.scrollLeft:t.scrollLeft},setLeft:function(t,n){var r=t.ownerDocument;ub(t,r)?r.body.scrollLeft=r.documentElement.scrollLeft=n:t.scrollLeft=n}},YI=u8e,c8e=/-(.)/g;function f8e(e){return e.replace(c8e,function(t,n){return n.toUpperCase()})}var d8e=f8e,p8e=/([A-Z])/g;function h8e(e){return e.replace(p8e,"-$1").toLowerCase()}var g8e=h8e,zz=d8e,Uz=g8e;function vm(e){return e==null?e:String(e)}function m8e(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null),n))return vm(n.getPropertyValue(Uz(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null),n)return vm(n.getPropertyValue(Uz(t)));if(t==="display")return"none"}return e.currentStyle?vm(t==="float"?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[zz(t)]):vm(e.style&&e.style[zz(t)])}var v8e=m8e,y8e=v8e;function pT(e,t){var n=_Y.get(e,t);return n==="auto"||n==="scroll"}var _Y={get:y8e,getScrollParent:function(t){if(!t)return null;for(var n=t.ownerDocument;t&&t!==n.body;){if(pT(t,"overflow")||pT(t,"overflowY")||pT(t,"overflowX"))return t;t=t.parentNode}return n.defaultView||n.parentWindow}},KS=_Y,b8e=qI;function _8e(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!b8e(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 x8e=_8e,w8e=x8e;function S8e(e){var t=w8e(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}var xY=S8e,C8e=typeof navigator<"u"&&navigator.userAgent.indexOf("AppleWebKit")>-1;function E8e(e){return e=e||document,e.scrollingElement?e.scrollingElement:!C8e&&e.compatMode==="CSS1Compat"?e.documentElement:e.body}var k8e=E8e;function T8e(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 R8e=T8e,A8e=k8e,$8e=R8e;function O8e(e){var t=A8e(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=$8e(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 WS=O8e;function wY(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function SY(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function CY(){return{width:window.innerWidth||wY(),height:window.innerHeight||SY()}}CY.withoutScrollbars=function(){return{width:wY(),height:SY()}};var EY=CY,hT,Kz;function I8e(){if(Kz)return hT;Kz=1;var e=Nf;function t(){return t=e||function(V){for(var D=1;D<arguments.length;D++){var W=arguments[D];for(var ie in W)Object.prototype.hasOwnProperty.call(W,ie)&&(V[ie]=W[ie])}return V},t.apply(this,arguments)}function n(V){if(V===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V}function r(V,D){V.prototype=Object.create(D.prototype),V.prototype.constructor=V,V.__proto__=D}function i(V){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(se){return Object.getOwnPropertyDescriptor(W,se).enumerable}))),ie.forEach(function(se){o(V,se,W[se])})}return V}function o(V,D,W){return D in V?Object.defineProperty(V,D,{value:W,enumerable:!0,configurable:!0,writable:!0}):V[D]=W,V}var a=l8e(),s=Kl,l=T,u=YI,f=KS,d=xY,p=WS,g=EY,v=cn,y=bn,w=By,b=10;v.List;var x=function(D,W){return D.getAnchorKey()===W||D.getFocusKey()===W},C=function(D,W){var ie=D.getNextSiblingKey();return ie?W.getBlockForKey(ie).getType()===D.getType():!1},k=function(D,W,ie){var se=[],K=!0,G=!1,Q=void 0;try{for(var le=ie.reverse()[Symbol.iterator](),Z;!(K=(Z=le.next()).done);K=!0){var ee=Z.value;if(ee.type!==W)break;se.push(ee)}}catch(B){G=!0,Q=B}finally{try{!K&&le.return!=null&&le.return()}finally{if(G)throw Q}}ie.splice(ie.indexOf(se[0]),se.length+1);var P=se.reverse(),ge=P[0].key;return ie.push(l.cloneElement(D,{key:"".concat(ge,"-wrap"),"data-offset-key":s.encode(ge,0,0)},P)),ie},R=function(D,W){var ie=W.get(D.getType())||W.get("unstyled"),se=ie.wrapper,K=ie.element||W.get("unstyled").element;return{Element:K,wrapperTemplate:se}},A=function(D,W){var ie=W(D);if(!ie)return{};var se=ie.component,K=ie.props,G=ie.editable;return{CustomComponent:se,customProps:K,customEditable:G}},O=function(D,W,ie,se,K,G){var Q={"data-block":!0,"data-editor":W,"data-offset-key":ie,key:D.getKey(),ref:G},le=se(D);return le&&(Q.className=le),K.customEditable!==void 0&&(Q=i({},Q,{contentEditable:K.customEditable,suppressContentEditableWarning:!0})),Q},z=function(V){r(D,V);function D(){for(var ie,se=arguments.length,K=new Array(se),G=0;G<se;G++)K[G]=arguments[G];return ie=V.call.apply(V,[this].concat(K))||this,o(n(ie),"wrapperRef",l.createRef()),ie}var W=D.prototype;return W.shouldComponentUpdate=function(se){var K=this.props,G=K.block,Q=K.direction,le=K.tree,Z=!G.getChildKeys().isEmpty(),ee=G!==se.block||le!==se.tree||Q!==se.direction||x(se.selection,se.block.getKey())&&se.forceSelection;return Z||ee},W.componentDidMount=function(){var se=this.props.selection,K=se.getEndKey();if(!(!se.getHasFocus()||K!==this.props.block.getKey())){var G=this.wrapperRef.current;if(G){var Q=f.getScrollParent(G),le=p(Q),Z;if(Q===window){var ee=d(G),P=ee.y+ee.height,ge=g().height;Z=P-ge,Z>0&&window.scrollTo(le.x,le.y+Z+b)}else{w(G)||y(!1);var B=G,L=B.offsetHeight+B.offsetTop,ae=Q.offsetHeight+le.y;Z=L-ae,Z>0&&u.setTop(Q,u.getTop(Q)+Z+b)}}}},W.render=function(){var se=this,K=this.props,G=K.block,Q=K.blockRenderMap,le=K.blockRendererFn,Z=K.blockStyleFn,ee=K.contentState,P=K.decorator,ge=K.editorKey,B=K.editorState,L=K.customStyleFn,ae=K.customStyleMap,ue=K.direction,ne=K.forceSelection,we=K.selection,Te=K.tree,Ee=null;G.children.size&&(Ee=G.children.reduce(function(Ye,st){var he=s.encode(st,0,0),Ae=ee.getBlockForKey(st),Re=A(Ae,le),Ne=Re.CustomComponent||D,U=R(Ae,Q),H=U.Element,fe=U.wrapperTemplate,Y=O(Ae,ge,he,Z,Re,null),X=i({},se.props,{tree:B.getBlockTree(st),blockProps:Re.customProps,offsetKey:he,block:Ae});return Ye.push(l.createElement(H,Y,l.createElement(Ne,X))),!fe||C(Ae,ee)||k(fe,H,Ye),Ye},[]));var Le=G.getKey(),Be=s.encode(Le,0,0),Ie=A(G,le),Pe=Ie.CustomComponent,je=Pe!=null?l.createElement(Pe,t({},this.props,{tree:B.getBlockTree(Le),blockProps:Ie.customProps,offsetKey:Be,block:G})):l.createElement(a,{block:G,children:Ee,contentState:ee,customStyleFn:L,customStyleMap:ae,decorator:P,direction:ue,forceSelection:ne,hasSelection:x(we,Le),selection:we,tree:Te});if(G.getParentKey())return je;var Fe=R(G,Q),tt=Fe.Element,Xe=O(G,ge,Be,Z,Ie,this.wrapperRef);return l.createElement(tt,Xe,je)},D}(l.Component);return hT=z,hT}var gT,Wz;function D8e(){if(Wz)return gT;Wz=1;var e=Nf;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=I8e(),i=Kl,o=T,a=lo,s=function(l){n(u,l);function u(){return l.apply(this,arguments)||this}var f=u.prototype;return f.shouldComponentUpdate=function(p){var g=this.props.editorState,v=p.editorState,y=g.getDirectionMap(),w=v.getDirectionMap();if(y!==w)return!0;var b=g.getSelection().getHasFocus(),x=v.getSelection().getHasFocus();if(b!==x)return!0;var C=v.getNativelyRenderedContent(),k=g.isInCompositionMode(),R=v.isInCompositionMode();if(g===v||C!==null&&v.getCurrentContent()===C||k&&R)return!1;var A=g.getCurrentContent(),O=v.getCurrentContent(),z=g.getDecorator(),V=v.getDecorator();return k!==R||A!==O||z!==V||v.mustForceSelection()},f.render=function(){for(var p=this.props,g=p.blockRenderMap,v=p.blockRendererFn,y=p.blockStyleFn,w=p.customStyleMap,b=p.customStyleFn,x=p.editorState,C=p.editorKey,k=p.textDirectionality,R=x.getCurrentContent(),A=x.getSelection(),O=x.mustForceSelection(),z=x.getDecorator(),V=a(x.getDirectionMap()),D=R.getBlocksAsArray(),W=D[0],ie=[],se=W;se;){var K=se.getKey(),G={blockRenderMap:g,blockRendererFn:v,blockStyleFn:y,contentState:R,customStyleFn:b,customStyleMap:w,decorator:z,editorKey:C,editorState:x,forceSelection:O,selection:A,block:se,direction:k||V.get(K),tree:x.getBlockTree(K)},Q=g.get(se.getType())||g.get("unstyled"),le=Q.wrapper;ie.push({block:o.createElement(r,t({key:K},G)),wrapperTemplate:le,key:K,offsetKey:i.encode(K,0,0)});var Z=se.getNextSiblingKey();se=Z?R.getBlockForKey(Z):null}for(var ee=[],P=0;P<ie.length;){var ge=ie[P];if(ge.wrapperTemplate){var B=[];do B.push(ie[P].block),P++;while(P<ie.length&&ie[P].wrapperTemplate===ge.wrapperTemplate);var L=o.cloneElement(ge.wrapperTemplate,{key:ge.key+"-wrap","data-offset-key":ge.offsetKey},B);ee.push(L)}else ee.push(ge.block),P++}return o.createElement("div",{"data-contents":"true"},ee)},u}(o.Component);return gT=s,gT}var P8e=Nf;function o$(){return o$=P8e||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 L8e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M8e(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function F8e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N8e=bY,Vz=Kl,cb=T,Hz=YI,B8e=KS,j8e=jI,z8e=NS,U8e=Ff,K8e=xY,W8e=WS,V8e=EY,H8e=bn,q8e=By,G8e=lo,qz=10,Gz=function(t,n){return t.getAnchorKey()===n||t.getFocusKey()===n},Y8e=function(e){M8e(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,F8e(L8e(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||Gz(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=B8e.getScrollParent(a),l=W8e(s),u;if(s===window){var f=K8e(a),d=f.y+f.height,p=V8e().height;u=d-p,u>0&&window.scrollTo(l.x,l.y+u+qz)}else{q8e(a)||H8e(!1);var g=a.offsetHeight+a.offsetTop,v=s.offsetTop+s.offsetHeight,y=v+l.y;u=g-y,u>0&&Hz.setTop(s,Hz.getTop(s)+u+qz)}}}}},n._renderChildren=function(){var i=this,o=this.props.block,a=o.getKey(),s=o.getText(),l=this.props.tree.size-1,u=Gz(this.props.selection,a);return this.props.tree.map(function(f,d){var p=f.get("leaves");if(p.size===0)return null;var g=p.size-1,v=p.map(function(D,W){var ie=Vz.encode(a,d,W),se=D.get("start"),K=D.get("end");return cb.createElement(N8e,{key:ie,offsetKey:ie,block:o,start:se,selection:u?i.props.selection:null,forceSelection:i.props.forceSelection,text:s.slice(se,K),styleSet:o.getInlineStyleAt(se),customStyleMap:i.props.customStyleMap,customStyleFn:i.props.customStyleFn,isLast:d===l&&W===g})}).toArray(),y=f.get("decoratorKey");if(y==null||!i.props.decorator)return v;var w=G8e(i.props.decorator),b=w.getComponentForKey(y);if(!b)return v;var x=w.getPropsForKey(y),C=Vz.encode(a,d,0),k=p.first().get("start"),R=p.last().get("end"),A=s.slice(k,R),O=o.getEntityAt(f.get("start")),z=z8e.getHTMLDirIfDifferent(j8e.getDirection(A),i.props.direction),V={contentState:i.props.contentState,decoratedText:A,dir:z,start:k,end:R,blockKey:a,entityKey:O,offsetKey:C};return cb.createElement(b,o$({},x,V,{key:C}),v)}).toArray()},n.render=function(){var i=this,o=this.props,a=o.direction,s=o.offsetKey,l=U8e({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":a==="LTR","public/DraftStyleDefault/rtl":a==="RTL"});return cb.createElement("div",{"data-offset-key":s,className:l,ref:function(f){return i._node=f}},this._renderChildren())},t}(cb.Component),kY=Y8e,mT,Yz;function X8e(){if(Yz)return mT;Yz=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 mT=e,mT}var vT,Xz;function Z8e(){if(Xz)return vT;Xz=1;var e=Nf;function t(){return t=e||function(g){for(var v=1;v<arguments.length;v++){var y=arguments[v];for(var w in y)Object.prototype.hasOwnProperty.call(y,w)&&(g[w]=y[w])}return g},t.apply(this,arguments)}function n(g){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(g,b,y[b])})}return g}function r(g,v,y){return v in g?Object.defineProperty(g,v,{value:y,enumerable:!0,configurable:!0,writable:!0}):g[v]=y,g}function i(g,v){g.prototype=Object.create(v.prototype),g.prototype.constructor=g,g.__proto__=v}var o=kY,a=Kl,s=T,l=Ff,u=X8e(),f=lo,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(g){i(v,g);function v(){return g.apply(this,arguments)||this}var y=v.prototype;return y.shouldComponentUpdate=function(b){var x=this.props.editorState,C=b.editorState,k=x.getDirectionMap(),R=C.getDirectionMap();if(k!==R)return!0;var A=x.getSelection().getHasFocus(),O=C.getSelection().getHasFocus();if(A!==O)return!0;var z=C.getNativelyRenderedContent(),V=x.isInCompositionMode(),D=C.isInCompositionMode();if(x===C||z!==null&&C.getCurrentContent()===z||V&&D)return!1;var W=x.getCurrentContent(),ie=C.getCurrentContent(),se=x.getDecorator(),K=C.getDecorator();return V!==D||W!==ie||se!==K||C.mustForceSelection()},y.render=function(){for(var b=this.props,x=b.blockRenderMap,C=b.blockRendererFn,k=b.blockStyleFn,R=b.customStyleMap,A=b.customStyleFn,O=b.editorState,z=b.editorKey,V=b.preventScroll,D=b.textDirectionality,W=O.getCurrentContent(),ie=O.getSelection(),se=O.mustForceSelection(),K=O.getDecorator(),G=f(O.getDirectionMap()),Q=W.getBlocksAsArray(),le=[],Z=null,ee=null,P=0;P<Q.length;P++){var ge=Q[P],B=ge.getKey(),L=ge.getType(),ae=C(ge),ue=void 0,ne=void 0,we=void 0;ae&&(ue=ae.component,ne=ae.props,we=ae.editable);var Te=D||G.get(B),Ee=a.encode(B,0,0),Le={contentState:W,block:ge,blockProps:ne,blockStyleFn:k,customStyleMap:R,customStyleFn:A,decorator:K,direction:Te,forceSelection:se,offsetKey:Ee,preventScroll:V,selection:ie,tree:O.getBlockTree(B)},Be=x.get(L)||x.get("unstyled"),Ie=Be.wrapper,Pe=Be.element||x.get("unstyled").element,je=ge.getDepth(),Fe="";if(k&&(Fe=k(ge)),Pe==="li"){var tt=ee!==Ie||Z===null||je>Z;Fe=u(Fe,d(L,je,tt,Te))}var Xe=ue||o,Ye={className:Fe,"data-block":!0,"data-editor":z,"data-offset-key":Ee,key:B};we!==void 0&&(Ye=n({},Ye,{contentEditable:we,suppressContentEditableWarning:!0}));var st=s.createElement(Pe,Ye,s.createElement(Xe,t({},Le,{key:B})));le.push({block:st,wrapperTemplate:Ie,key:B,offsetKey:Ee}),Ie?Z=ge.getDepth():Z=null,ee=Ie}for(var he=[],Ae=0;Ae<le.length;){var Re=le[Ae];if(Re.wrapperTemplate){var Ne=[];do Ne.push(le[Ae].block),Ae++;while(Ae<le.length&&le[Ae].wrapperTemplate===Re.wrapperTemplate);var U=s.cloneElement(Re.wrapperTemplate,{key:Re.key+"-wrap","data-offset-key":Re.offsetKey},Ne);he.push(U)}else he.push(Re.block),Ae++}return s.createElement("div",{"data-contents":"true"},he)},v}(s.Component);return vT=p,vT}var J8e=cc,Q8e=J8e("draft_tree_data_support"),e7e=Q8e?D8e():Z8e(),TY={isImage:function(t){return Zz(t)[0]==="image"},isJpeg:function(t){var n=Zz(t);return TY.isImage(t)&&(n[1]==="jpeg"||n[1]==="pjpeg")}};function Zz(e){return e.split("/")}var t7e=TY,fb=bn;function n7e(e){var t=e.length;if(!Array.isArray(e)&&(typeof e=="object"||typeof e=="function")||fb(!1),typeof t!="number"&&fb(!1),t===0||t-1 in e||fb(!1),typeof e.callee=="function"&&fb(!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 r7e(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 i7e(e){return r7e(e)?Array.isArray(e)?e.slice():n7e(e):[e]}var o7e=i7e;function VS(e){return function(){return e}}var jf=function(){};jf.thatReturns=VS;jf.thatReturnsFalse=VS(!1);jf.thatReturnsTrue=VS(!0);jf.thatReturnsNull=VS(null);jf.thatReturnsThis=function(){return this};jf.thatReturnsArgument=function(e){return e};var a7e=jf,s7e=t7e,l7e=o7e,u7e=a7e,c7e=new RegExp(`\r
|
|
452
|
+
`,"g"),f7e=`
|
|
453
|
+
`,d7e={"text/rtf":1,"text/html":1};function p7e(e){if(e.kind=="file")return e.getAsFile()}var h7e=function(){function e(n){this.data=n,this.types=n.types?l7e(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 d7e[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(c7e,f7e):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(`
|
|
454
|
+
`);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(!s7e.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(p7e).filter(u7e.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),RY=h7e,g7e=bn,Jz=/\.textClipping$/,m7e={"text/plain":!0,"text/html":!0,"text/rtf":!0},v7e=5e3;function y7e(e,t){var n=0,r=[];e.forEach(function(i){b7e(i,function(o){n++,o&&r.push(o.slice(0,v7e)),n==e.length&&t(r.join("\r"))})})}function b7e(e,t){if(!ni.FileReader||e.type&&!(e.type in m7e)){t("");return}if(e.type===""){var n="";Jz.test(e.name)&&(n=e.name.replace(Jz,"")),t(n);return}var r=new FileReader;r.onload=function(){var i=r.result;typeof i!="string"&&g7e(!1),t(i)},r.onerror=function(){t("")},r.readAsText(e)}var AY=y7e;function _7e(e){return e==="handled"||e===!0}var HS=_7e,x7e=RY,$Y=so,OY=zn,w7e=zS,S7e=jS,C7e=AY,E7e=oY,k7e=nY,Qz=HS,yT=lo;function T7e(e,t){var n=null,r=null,i=S7e(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=yT(n),r=yT(r);var a=yT(w7e(n));return E7e(t,a,r,a,r)}var R7e={onDragEnd:function(t){t.exitCurrentMode(),e4(t)},onDrop:function(t,n){var r=new x7e(n.nativeEvent.dataTransfer),i=t._latestEditorState,o=T7e(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&&Qz(t.props.handleDroppedFiles(o,a)))return;C7e(a,function(l){l&&t.update(t4(i,o,l))});return}var s=t._internalDrag?"internal":"external";t.props.handleDrop&&Qz(t.props.handleDrop(o,r,s))||(t._internalDrag?t.update(A7e(i,o)):t.update(t4(i,o,r.getText()))),e4(t)}}};function e4(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:k7e(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function A7e(e,t){var n=$Y.moveText(e.getCurrentContent(),e.getSelection(),t);return OY.push(e,n,"insert-fragment")}function t4(e,t,n){var r=$Y.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return OY.push(e,r,"insert-fragment")}var $7e=R7e;function O7e(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 I7e=O7e;(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 C=new Array(arguments.length-1),k=0;k<C.length;k++)C[k]=arguments[k+1];var R={callback:x,args:C};return r[n]=R,a(n),n++}function l(x){delete r[x]}function u(x){var C=x.callback,k=x.args;switch(k.length){case 0:C();break;case 1:C(k[0]);break;case 2:C(k[0],k[1]);break;case 3:C(k[0],k[1],k[2]);break;default:C.apply(t,k);break}}function f(x){if(i)setTimeout(f,0,x);else{var C=r[x];if(C){i=!0;try{u(C)}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,C=e.onmessage;return e.onmessage=function(){x=!1},e.postMessage("","*"),e.onmessage=C,x}}function g(){var x="setImmediate$"+Math.random()+"$",C=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",C,!1):e.attachEvent("onmessage",C),a=function(k){e.postMessage(x+k,"*")}}function v(){var x=new MessageChannel;x.port1.onmessage=function(C){var k=C.data;f(k)},a=function(C){x.port2.postMessage(C)}}function y(){var x=o.documentElement;a=function(C){var k=o.createElement("script");k.onreadystatechange=function(){f(C),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()?g():e.MessageChannel?v():o&&"onreadystatechange"in o.createElement("script")?y():w(),b.setImmediate=s,b.clearImmediate=l})(typeof self>"u"?ni:self);var D7e=ni.setImmediate,P7e=so,a$=zn,L7e=uo,n4=VI,M7e=HS,F7e=I7e,r4=lo,N7e=D7e,B7e="'",j7e="/",z7e=L7e.isBrowser("Firefox");function U7e(e){return z7e&&(e==B7e||e==j7e)}function i4(e,t,n,r,i){var o=P7e.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return a$.push(e,o,"insert-characters",i)}function K7e(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&&M7e(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(i4(n,r,n.getCurrentInlineStyle(),n4(n.getCurrentContent(),n.getSelection()),!0));return}var s=i4(n,r,n.getCurrentInlineStyle(),n4(n.getCurrentContent(),n.getSelection()),!1),l=!1;if(l||(l=F7e(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],g=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=g.get("start"),C=g.get("end"),k=g.get("decoratorKey");return p.get("decoratorKey")!==k||p.get("leaves").size!==g.get("leaves").size||y!==x||b!==C||k!=null&&C-x!==w-v})}if(l||(l=U7e(r)),l||(l=r4(s.getDirectionMap()).get(a)!==r4(n.getDirectionMap()).get(a)),l){t.preventDefault(),s=a$.set(s,{forceSelection:!0}),e.update(s);return}s=a$.set(s,{nativelyRenderedContent:s.getCurrentContent()}),e._pendingStateFromBeforeInput=s,N7e(function(){e._pendingStateFromBeforeInput!==void 0&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)})}}var W7e=K7e,V7e=zn,o4=qI,H7e=hY;function q7e(e,t){var n=t.currentTarget.ownerDocument;if(!e.props.preserveSelectionOnBlur&&H7e(n)===n.body){var r=n.defaultView.getSelection(),i=e.editor;r.rangeCount===1&&o4(i,r.anchorNode)&&o4(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(V7e.acceptSelection(o,s))}}var G7e=q7e,Y7e=zn;function X7e(e,t){e.setMode("composite"),e.update(Y7e.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}var Z7e=X7e,J7e=PS;function Q7e(e){var t=e.getSelection();return t.isCollapsed()?null:J7e(e.getCurrentContent(),t)}var IY=Q7e,eKe=IY;function tKe(e,t){var n=e._latestEditorState,r=n.getSelection();if(r.isCollapsed()){t.preventDefault();return}e.setClipboard(eKe(e._latestEditorState))}var nKe=tKe;function rKe(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 iKe=rKe,oKe=so,aKe=zn,sKe=KS,lKe=IY,uKe=WS,cKe=iKe;function fKe(e,t){var n=e._latestEditorState,r=n.getSelection(),i=t.target,o;if(r.isCollapsed()){t.preventDefault();return}if(cKe(i)){var a=i;o=uKe(sKe.getScrollParent(a))}var s=lKe(n);e.setClipboard(s),e.setMode("cut"),setTimeout(function(){e.restoreEditorDOM(o),e.exitCurrentMode(),e.update(dKe(n))},0)}function dKe(e){var t=oKe.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return aKe.push(e,t,"remove-range")}var pKe=fKe;function hKe(e,t){e.setMode("drag"),t.preventDefault()}var gKe=hKe;function mKe(e){e._internalDrag=!0,e.setMode("drag")}var vKe=mKe,a4=zn,yKe=uo;function bKe(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),yKe.isBrowser("Chrome < 60.0.3081.0")?e.update(a4.forceSelection(n,i)):e.update(a4.acceptSelection(n,i))}}var _Ke=bKe,xKe=bn,DY=55296,wKe=56319,SKe=56320,PY=57343,CKe=/[\uD800-\uDFFF]/;function LY(e){return DY<=e&&e<=PY}function EKe(e,t){if(0<=t&&t<e.length||xKe(!1),t+1===e.length)return!1;var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return DY<=n&&n<=wKe&&SKe<=r&&r<=PY}function XI(e){return CKe.test(e)}function Sp(e,t){return 1+LY(e.charCodeAt(t))}function kKe(e){if(!XI(e))return e.length;for(var t=0,n=0;n<e.length;n+=Sp(e,n))t++;return t}function MY(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+=Sp(e,i);if(i>=r)return""}else if(t<0){for(i=r;t<0&&0<i;t++)i-=Sp(e,i-1);i<0&&(i=0)}var o=r;if(n<r)for(o=i;n>0&&o<r;n--)o+=Sp(e,o);return e.substring(i,o)}function TKe(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,MY(e,t,r)}function RKe(e){for(var t=[],n=0;n<e.length;n+=Sp(e,n))t.push(e.codePointAt(n));return t}var AKe={getCodePoints:RKe,getUTF16Length:Sp,hasSurrogateUnit:XI,isCodeUnitInSurrogateRange:LY,isSurrogatePair:EKe,strlen:kKe,substring:TKe,substr:MY},zf=AKe;function $Ke(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 ZI=$Ke,OKe=so,IKe=cc,s4=IKe("draft_tree_data_support");function DKe(e,t,n){var r=e.getSelection(),i=e.getCurrentContent(),o=r,a=r.getAnchorKey(),s=r.getFocusKey(),l=i.getBlockForKey(a);if(s4&&n==="forward"&&a!==s)return i;if(r.isCollapsed()){if(n==="forward"){if(e.isSelectionAtEndOfContent())return i;if(s4){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 OKe.removeRange(i,o,n)}var jy=DKe,PKe=zn,LKe=zf,MKe=ZI,FKe=jy;function NKe(e){var t=FKe(e,function(r){var i=r.getSelection(),o=r.getCurrentContent(),a=i.getAnchorKey(),s=i.getAnchorOffset(),l=o.getBlockForKey(a).getText()[s-1];return MKe(r,l?LKe.getUTF16Length(l,0):1)},"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return PKe.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}var FY=NKe,BKe=so,jKe=Kl,zKe=zn,UKe=uo,KKe=uY,WKe=KKe.notEmptyKey,VKe=zS,HKe=FY,qKe=lo,GKe=UKe.isEngine("Gecko"),YKe=`
|
|
455
|
+
|
|
456
|
+
`;function XKe(e,t){switch(e){case"deleteContentBackward":return HKe(t)}return t}function ZKe(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=qKe(VKe(i)),p=jKe.decode(d),g=p.blockKey,v=p.decoratorKey,y=p.leafKey,w=f.getBlockTree(g).getIn([v,"leaves",y]),b=w.start,x=w.end,C=f.getCurrentContent(),k=C.getBlockForKey(g),R=k.getText().slice(b,x);if(u.endsWith(YKe)&&(u=u.slice(0,-1)),u===R){var A=t.nativeEvent.inputType;if(A){var O=XKe(A,f);if(O!==f){e.restoreEditorDOM(),e.update(O);return}}return}var z=f.getSelection(),V=z.merge({anchorOffset:b,focusOffset:x,isBackward:!1}),D=k.getEntityAt(b),W=WKe(D)?C.getEntity(D):null,ie=W!=null?W.getMutability():null,se=ie==="MUTABLE",K=se?"spellcheck-change":"apply-entity",G=BKe.replaceText(C,V,u,k.getInlineStyleAt(b),se?k.getEntityAt(b):null),Q,le,Z,ee;if(GKe)Q=r.anchorOffset,le=r.focusOffset,Z=b+Math.min(Q,le),ee=Z+Math.abs(Q-le),Q=Z,le=ee;else{var P=u.length-R.length;Z=z.getStartOffset(),ee=z.getEndOffset(),Q=o?ee+P:Z,le=ee+P}var ge=G.merge({selectionBefore:C.getSelectionAfter(),selectionAfter:z.merge({anchorOffset:Q,focusOffset:le})});e.update(zKe.push(f,ge,K))}}var JKe=ZKe,QKe=US;function eWe(e){return e.which===QKe.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))}var tWe=eWe,nWe=uo,rWe=tWe,bT=nWe.isPlatform("Mac OS X"),NY={isCtrlKeyCommand:function(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function(t){return bT&&t.altKey},usesMacOSHeuristics:function(){return bT},hasCommandModifier:function(t){return bT?!!t.metaKey&&!t.altKey:NY.isCtrlKeyCommand(t)},isSoftNewlineEvent:rWe},JI=NY,l4=so,u4=zn,iWe=PS,oWe=lo,_T=null,aWe={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=oWe(i),_T=iWe(n,i);var l=l4.removeRange(n,i,"forward");return l===n?t:u4.push(t,l,"remove-range")},paste:function(t){if(!_T)return t;var n=l4.replaceWithFragment(t.getCurrentContent(),t.getSelection(),_T);return u4.push(t,n,"insert-fragment")}},sWe=aWe,lWe=uo,uWe=bn,cWe=lWe.isBrowser("Chrome");function fWe(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)}uWe(!1)}var dWe=cWe?fWe:function(e){return Array.from(e.getClientRects())},BY=dWe,pWe=zf,hWe=jS,c4=BY,s$=bn;function gWe(e){var t=getComputedStyle(e),n=hWe(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||s$(!1),i.appendChild(r);var o=r.getBoundingClientRect();return i.removeChild(r),o.height}function f4(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 mWe(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 vWe(e){e.collapsed||s$(!1),e=e.cloneRange();var t=e.startContainer;t.nodeType!==1&&(t=t.parentNode);var n=gWe(t),r=e.endContainer,i=e.endOffset;for(e.setStart(e.startContainer,0);f4(c4(e),n)&&(r=e.startContainer,i=e.startOffset,r.parentNode||s$(!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&&pWe.isSurrogatePair(s,l-1)))if(e.setStart(o,l),f4(c4(e),n))r=o,i=l;else break;if(l===-1||o.childNodes.length===0)break;o=o.childNodes[l],a=mWe(o)}while(!0);return e.setStart(r,i),e}var yWe=vWe,bWe=zn,_We=yWe,xWe=aY,wWe=ZI,SWe=jy;function CWe(e,t){var n=SWe(e,function(r){var i=r.getSelection();if(i.isCollapsed()&&i.getAnchorOffset()===0)return wWe(r,1);var o=t.currentTarget.ownerDocument,a=o.defaultView.getSelection(),s=a.getRangeAt(0);return s=_We(s),xWe(r,null,s.endContainer,s.endOffset,s.startContainer,s.startOffset).selectionState},"backward");return n===e.getCurrentContent()?e:bWe.push(e,n,"remove-range")}var EWe=CWe,kWe=`[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]`,TWe={getPunctuation:function(){return kWe}},RWe=TWe,AWe=RWe.getPunctuation(),jY="['‘’]",Cp="\\s|(?![_])"+AWe,$We="^(?:"+Cp+")*(?:"+jY+"|(?!"+Cp+").)*(?:(?!"+Cp+").)",OWe=new RegExp($We),IWe="(?:(?!"+Cp+").)(?:"+jY+"|(?!"+Cp+").)*(?:"+Cp+")*$",DWe=new RegExp(IWe);function d4(e,t){var n=t?DWe.exec(e):OWe.exec(e);return n?n[0]:e}var PWe={getBackward:function(t){return d4(t,!0)},getForward:function(t){return d4(t,!1)}},zY=PWe,LWe=zY,MWe=zn,p4=ZI,FWe=jy;function NWe(e){var t=FWe(e,function(n){var r=n.getSelection(),i=r.getStartOffset();if(i===0)return p4(n,1);var o=r.getStartKey(),a=n.getCurrentContent(),s=a.getBlockForKey(o).getText().slice(0,i),l=LWe.getBackward(s);return p4(n,l.length||1)},"backward");return t===e.getCurrentContent()?e:MWe.push(e,t,"remove-range")}var BWe=NWe;function jWe(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 UY=jWe,zWe=zY,UWe=zn,KWe=UY,WWe=jy;function VWe(e){var t=WWe(e,function(n){var r=n.getSelection(),i=r.getStartOffset(),o=r.getStartKey(),a=n.getCurrentContent(),s=a.getBlockForKey(o).getText().slice(i),l=zWe.getForward(s);return KWe(n,l.length||1)},"forward");return t===e.getCurrentContent()?e:UWe.push(e,t,"remove-range")}var HWe=VWe,qWe=so,GWe=zn;function YWe(e){var t=qWe.splitBlock(e.getCurrentContent(),e.getSelection());return GWe.push(e,t,"split-block")}var XWe=YWe,ZWe=zn;function JWe(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent(),i=r.getBlockForKey(n).getLength();return ZWe.set(e,{selection:t.merge({anchorKey:n,anchorOffset:i,focusKey:n,focusOffset:i,isBackward:!1}),forceSelection:!0})}var QWe=JWe,eVe=zn;function tVe(e){var t=e.getSelection(),n=t.getStartKey();return eVe.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}var nVe=tVe,rVe=zn,iVe=zf,oVe=UY,aVe=jy;function sVe(e){var t=aVe(e,function(r){var i=r.getSelection(),o=r.getCurrentContent(),a=i.getAnchorKey(),s=i.getAnchorOffset(),l=o.getBlockForKey(a).getText()[s];return oVe(r,l?iVe.getUTF16Length(l,0):1)},"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return rVe.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}var lVe=sVe,h4=so,g4=zn,uVe=PS;function cVe(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=uVe(i,s),f=h4.removeRange(i,s,"backward"),d=f.getSelectionAfter(),p=d.getAnchorOffset()-1,g=d.merge({anchorOffset:p,focusOffset:p}),v=h4.replaceWithFragment(f,g,u),y=g4.push(e,v,"insert-fragment");return g4.acceptSelection(y,l)}var fVe=cVe,xT=zn;function dVe(e,t,n){var r=xT.undo(t);if(t.getLastChangeType()==="spellcheck-change"){var i=r.getCurrentContent();n(xT.set(r,{nativelyRenderedContent:i}));return}if(e.preventDefault(),!t.getNativelyRenderedContent()){n(r);return}n(xT.set(t,{nativelyRenderedContent:null})),setTimeout(function(){n(r)},0)}var pVe=dVe,hVe=so,KY=zn,gVe=JI,hl=US,m4=sWe,mVe=uo,v4=HS,vVe=EWe,yVe=BWe,bVe=HWe,_Ve=XWe,xVe=QWe,wVe=nVe,SVe=FY,CVe=lVe,EVe=fVe,kVe=pVe,y4=gVe.isOptionKeyCommand,b4=mVe.isBrowser("Chrome");function TVe(e,t,n){switch(e){case"redo":return KY.redo(t);case"delete":return CVe(t);case"delete-word":return bVe(t);case"backspace":return SVe(t);case"backspace-word":return yVe(t);case"backspace-to-start-of-line":return vVe(t,n);case"split-block":return _Ve(t);case"transpose-characters":return EVe(t);case"move-selection-to-start-of-block":return wVe(t);case"move-selection-to-end-of-block":return xVe(t);case"secondary-cut":return m4.cut(t);case"secondary-paste":return m4.paste(t);default:return t}}function RVe(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 hl.RETURN:if(t.preventDefault(),e.props.handleReturn&&v4(e.props.handleReturn(t,r)))return;break;case hl.ESC:if(t.preventDefault(),i("onEscape"))return;break;case hl.TAB:if(i("onTab"))return;break;case hl.UP:if(i("onUpArrow"))return;break;case hl.RIGHT:if(i("onRightArrow"))return;break;case hl.DOWN:if(i("onDownArrow"))return;break;case hl.LEFT:if(i("onLeftArrow"))return;break;case hl.SPACE:b4&&y4(t)&&t.preventDefault()}var o=e.props.keyBindingFn(t);if(o==null||o===""){if(n===hl.SPACE&&b4&&y4(t)){var a=hVe.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(KY.push(r,a,"insert-characters"))}return}if(o==="undo"){kVe(t,r,e.update);return}if(t.preventDefault(),!(e.props.handleKeyCommand&&v4(e.props.handleKeyCommand(o,r,t.timeStamp)))){var s=TVe(o,r,t);s!==r&&e.update(s)}}var AVe=RVe;function $Ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var OVe=function(){function e(n){$Ve(this,"_uri",void 0),this._uri=n}var t=e.prototype;return t.toString=function(){return this._uri},e}(),IVe=OVe,DVe=uo,PVe=bn,LVe=DVe.isBrowser("IE <= 9");function MVe(e){var t,n=null;return!LVe&&document.implementation&&document.implementation.createHTMLDocument&&(t=document.implementation.createHTMLDocument("foo"),t.documentElement||PVe(!1),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}var WY=MVe,FVe=Bf;function NVe(e){return!e||!e.ownerDocument?!1:FVe(e)&&e.nodeName==="A"}var BVe=NVe,jVe=Bf;function zVe(e){return!e||!e.ownerDocument?!1:jVe(e)&&e.nodeName==="IMG"}var UVe=zVe,Dc;function wT(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){Qr(e,i,n[i])})}return e}function Qr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var KVe=xa,WVe=Mf,VVe=wa,HVe=KI,_4=LS,VY=IVe,ym=Ff,x4=qs,qVe=WY,HY=cc,QI=cn,pu=QI.List,qY=QI.Map,GVe=QI.OrderedSet,GY=BVe,YVe=fY,eD=By,YY=UVe,w4=HY("draft_tree_data_support"),XVe=" ",XY=" ",ZVe=new RegExp("\r","g"),JVe=new RegExp(`
|
|
457
|
+
`,"g"),QVe=new RegExp(`^
|
|
458
|
+
`,"g"),eHe=new RegExp(XVe,"g"),tHe=new RegExp(" ?","g"),nHe=new RegExp("​?","g"),rHe=["bold","bolder","500","600","700","800","900"],iHe=["light","lighter","normal","100","200","300","400"],oHe=["className","href","rel","target","title"],aHe=["alt","className","height","src","width"],S4=(Dc={},Qr(Dc,ym("public/DraftStyleDefault/depth0"),0),Qr(Dc,ym("public/DraftStyleDefault/depth1"),1),Qr(Dc,ym("public/DraftStyleDefault/depth2"),2),Qr(Dc,ym("public/DraftStyleDefault/depth3"),3),Qr(Dc,ym("public/DraftStyleDefault/depth4"),4),Dc),C4=qY({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),sHe=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)})}),qY(n)},lHe=function(t){if(eD(t)){var n=t;if(n.style.fontFamily.includes("monospace"))return"CODE"}return null},uHe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Object.keys(S4).some(function(r){t.classList.contains(r)&&(n=S4[r])}),n},cHe=function(t){if(!GY(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 VY(n.href);return!0}catch{return!1}},fHe=function(t){if(!YY(t))return!1;var n=t;return!!(n.attributes.getNamedItem("src")&&n.attributes.getNamedItem("src").value)},dHe=function(t,n){if(!eD(t))return n;var r=t,i=r.style.fontWeight,o=r.style.fontStyle,a=r.style.textDecoration;return n.withMutations(function(s){rHe.indexOf(i)>=0?s.add("BOLD"):iHe.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"))})},ST=function(t){return t==="ul"||t==="ol"},pHe=function(){function e(n,r){Qr(this,"characterList",pu()),Qr(this,"currentBlockType","unstyled"),Qr(this,"currentDepth",0),Qr(this,"currentEntity",null),Qr(this,"currentText",""),Qr(this,"wrapper",null),Qr(this,"blockConfigs",[]),Qr(this,"contentBlocks",[]),Qr(this,"entityMap",_4),Qr(this,"blockTypeMap",void 0),Qr(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=n,this.disambiguate=r}var t=e.prototype;return t.clear=function(){this.characterList=pu(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=_4,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],GVe())),this._trimCurrentText(),this.currentText!==""&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return this.contentBlocks.length===0&&(w4?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||x4(),o=wT({key:i,type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:pu(),prevSibling:null,nextSibling:null,childConfigs:[]},r);return this.characterList=pu(),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"||ST(l)){this._trimCurrentText(),this.currentText!==""&&o.push(this._makeBlockConfig());var u=this.currentDepth,f=this.wrapper;ST(l)&&(this.wrapper=l,ST(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,g=this.wrapper;if(this.wrapper=l==="pre"?"pre":this.wrapper,typeof d!="string"&&(d=this.disambiguate(l,this.wrapper)||d[0]||"unstyled"),!w4&&eD(s)&&(d==="unordered-list-item"||d==="ordered-list-item")){var v=s;this.currentDepth=uHe(v,this.currentDepth)}var y=x4(),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=g;continue}if(l==="#text"){this._addTextNode(s,i);continue}if(l==="br"){this._addBreakNode(s,i);continue}if(fHe(s)){this._addImgNode(s,i);continue}if(cHe(s)){this._addAnchorNode(s,o,i);continue}var b=i;C4.has(l)&&(b=b.add(C4.get(l))),b=dHe(s,b);var x=lHe(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=KVe.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=pu()):(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(QVe,""),o=o.replace(JVe,XY)),this._appendText(o,i)},t._addBreakNode=function(r,i){YVe(r)&&this._appendText(`
|
|
459
|
+
`,i)},t._addImgNode=function(r,i){if(YY(r)){var o=r,a={};aHe.forEach(function(s){var l=o.getAttribute(s);l&&(a[s]=l)}),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",a),HY("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(GY(r)){var a=r,s={};oHe.forEach(function(l){var u=a.getAttribute(l);u&&(s[l]=u)}),s.url=new VY(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=pu(s.childConfigs.map(function(l){return l.key})),this.contentBlocks.push(new VVe(wT({},s))),this._toContentBlocks(s.childConfigs,s.key)}},t._hoistContainersInBlockConfigs=function(r){var i=this,o=pu(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 WVe(wT({},a,{text:a.text+l,characterList:a.characterList.concat(u)})))})},t._extractTextFromBlockConfigs=function(r){for(var i=r.length-1,o="",a=pu(),s=0;s<=i;s++){var l=r[s];o+=l.text,a=a.concat(l.characterList),o!==""&&l.type!=="unstyled"&&(o+=`
|
|
460
|
+
`,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}(),hHe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qVe,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:HVe;t=t.trim().replace(ZVe,"").replace(eHe,XY).replace(tHe,"").replace(nHe,"");var i=n(t);if(!i)return null;var o=sHe(r),a=function(l,u){return l==="li"?u==="ol"?"ordered-list-item":"unordered-list-item":null};return new pHe(o,a).addDOMNode(i).getContentBlocks()},ZY=hHe;function gHe(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){mHe(e,i,n[i])})}return e}function mHe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vHe=Mf,yHe=wa,bHe=ZY,_He=qs,xHe=WY,wHe=cc,JY=cn,SHe=DG,CHe=JY.List,EHe=JY.Repeat,QY=wHe("draft_tree_data_support"),kHe=QY?yHe:vHe,THe={processHTML:function(t,n){return bHe(t,xHe,n)},processText:function(t,n,r){return t.reduce(function(i,o,a){o=SHe(o);var s=_He(),l={key:s,type:r,text:o,characterList:CHe(EHe(n,o.length))};if(QY&&a!==0){var u=a-1,f=i[u]=i[u].merge({nextSibling:s});l=gHe({},l,{prevSibling:f.getKey()})}return i.push(new kHe(l)),i},[])}},RHe=THe;function AHe(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 $He=AHe,Pc=so,ms=zn,OHe=$He,IHe=lo,bs={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 bs.toggleInlineStyle(t,"BOLD");case"italic":return bs.toggleInlineStyle(t,"ITALIC");case"underline":return bs.toggleInlineStyle(t,"UNDERLINE");case"code":return bs.toggleCode(t);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return bs.onBackspace(t);case"delete":case"delete-word":case"delete-to-end-of-block":return bs.onDelete(t);default:return null}},insertSoftNewline:function(t){var n=Pc.insertText(t.getCurrentContent(),t.getSelection(),`
|
|
461
|
+
`,t.getCurrentInlineStyle(),null),r=ms.push(t,n,"insert-characters");return ms.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 ms.push(t,s,"remove-range")}var l=bs.tryToRemoveBlockStyle(t);return l?ms.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=Pc.removeRange(r,l,"forward");return u!==r?ms.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=OHe(a,i,t.shiftKey?-1:1,r);return ms.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=IHe(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 ms.push(t,Pc.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?bs.toggleBlockType(t,"code-block"):bs.toggleInlineStyle(t,"CODE")},toggleInlineStyle:function(t,n){var r=t.getSelection(),i=t.getCurrentInlineStyle();if(r.isCollapsed())return ms.setInlineStyleOverride(t,i.has(n)?i.remove(n):i.add(n));var o=t.getCurrentContent(),a;return i.has(n)?a=Pc.removeInlineStyle(o,r,n):a=Pc.applyInlineStyle(o,r,n),ms.push(t,a,"change-inline-style")},toggleLink:function(t,n,r){var i=Pc.applyEntity(t.getCurrentContent(),n,r);return ms.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 Pc.setBlockType(o,n,"unstyled")}return null}},eX=bs,DHe=/\r\n?|\n/g;function PHe(e){return e.split(DHe)}var LHe=PHe,CT=Iy,E4=xa,MHe=RY,tX=so,ET=RHe,nX=zn,k4=eX,T4=VI,FHe=AY,R4=HS,A4=LHe;function NHe(e,t){t.preventDefault();var n=new MHe(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),i=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&R4(e.props.handlePastedFiles(r)))return;FHe(r,function(A){if(A=A||i,!!A){var O=e._latestEditorState,z=A4(A),V=E4.create({style:O.getCurrentInlineStyle(),entity:T4(O.getCurrentContent(),O.getSelection())}),D=k4.getCurrentBlockType(O),W=ET.processText(z,V,D),ie=CT.createFromArray(W),se=tX.replaceWithFragment(O.getCurrentContent(),O.getSelection(),ie);e.update(nX.push(O,se,"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&&R4(e.props.handlePastedText(a,s,l)))){if(a&&(o=A4(a)),!e.props.stripPastedStyles){var p=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&p){var g;if(((g=s)===null||g===void 0?void 0:g.indexOf(e.getEditorKey()))!==-1||o.length===1&&p.size===1&&p.first().getText()===a){e.update(db(e._latestEditorState,p));return}}else if(p&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&BHe(o,p)){e.update(db(e._latestEditorState,p));return}if(s){var v=ET.processHTML(s,e.props.blockRenderMap);if(v){var y=v.contentBlocks,w=v.entityMap;if(y){var b=CT.createFromArray(y);e.update(db(e._latestEditorState,b,w));return}}}e.setClipboard(null)}if(o.length){var x=E4.create({style:l.getCurrentInlineStyle(),entity:T4(l.getCurrentContent(),l.getSelection())}),C=k4.getCurrentBlockType(l),k=ET.processText(o,x,C),R=CT.createFromArray(k);e.update(db(e._latestEditorState,R))}}}function db(e,t,n){var r=tX.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return nX.push(e,r.set("entityMap",n),"insert-fragment")}function BHe(e,t){return e.length===t.size&&t.valueSeq().every(function(n,r){return n.getText()===e[r]})}var jHe=NHe,rX=uo,zHe=W7e,UHe=G7e,KHe=Z7e,WHe=nKe,VHe=pKe,HHe=gKe,qHe=vKe,GHe=_Ke,YHe=JKe,XHe=AVe,ZHe=jHe,iX=lY,JHe=rX.isBrowser("Chrome"),QHe=rX.isBrowser("Firefox"),$4=JHe||QHe?iX:function(e){},eqe={onBeforeInput:zHe,onBlur:UHe,onCompositionStart:KHe,onCopy:WHe,onCut:VHe,onDragOver:HHe,onDragStart:qHe,onFocus:GHe,onInput:YHe,onKeyDown:XHe,onPaste:ZHe,onSelect:iX,onMouseUp:$4,onKeyUp:$4},tqe=eqe,nqe=Af,rqe=nqe.unstable_flushControlled,iqe=rqe;function oqe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var kT=T,O4=Ff,aqe=function(e){oqe(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=O4({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":i}),a={whiteSpace:"pre-wrap"};return kT.createElement("div",{className:o},kT.createElement("div",{className:O4("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:a},this.props.text))},t}(kT.Component),sqe=aqe,oX=JI,bm=US,aX=uo,Au=aX.isPlatform("Mac OS X"),I4=Au&&aX.isBrowser("Firefox < 29"),_u=oX.hasCommandModifier,gl=oX.isCtrlKeyCommand;function sX(e){return Au&&e.altKey||gl(e)}function lqe(e){return _u(e)?e.shiftKey?"redo":"undo":null}function uqe(e){return!Au&&e.shiftKey?null:sX(e)?"delete-word":"delete"}function cqe(e){return _u(e)&&Au?"backspace-to-start-of-line":sX(e)?"backspace-word":"backspace"}function fqe(e){switch(e.keyCode){case 66:return _u(e)?"bold":null;case 68:return gl(e)?"delete":null;case 72:return gl(e)?"backspace":null;case 73:return _u(e)?"italic":null;case 74:return _u(e)?"code":null;case 75:return Au&&gl(e)?"secondary-cut":null;case 77:return gl(e)?"split-block":null;case 79:return gl(e)?"split-block":null;case 84:return Au&&gl(e)?"transpose-characters":null;case 85:return _u(e)?"underline":null;case 87:return Au&&gl(e)?"backspace-word":null;case 89:return gl(e)?Au?"secondary-paste":"redo":null;case 90:return lqe(e)||null;case bm.RETURN:return"split-block";case bm.DELETE:return uqe(e);case bm.BACKSPACE:return cqe(e);case bm.LEFT:return I4&&_u(e)?"move-selection-to-start-of-block":null;case bm.RIGHT:return I4&&_u(e)?"move-selection-to-end-of-block":null;default:return null}}var lX=fqe,dqe=Nf;function l$(){return l$=dqe||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},l$.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){St(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 St(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uX(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var pqe=KI,hqe=GG,gqe=R9e,mqe=e7e,vqe=$7e,yqe=tqe,D4=iqe,bqe=sqe,_qe=dY,xqe=zn,gu=T,wqe=YI,Sqe=KS,Cqe=uo,RT=Ff,Eqe=qs,kqe=lX,Tqe=WS,Rqe=cc,P4=bn,L4=By,Aqe=lo,cX=Cqe.isBrowser("IE"),$qe=!cX,M4={edit:yqe,composite:gqe,drag:vqe,cut:null,render:null},F4=!1,Oqe=function(e){uX(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}(gu.Component),fX=function(e){uX(t,e);function t(r){var i;return i=e.call(this,r)||this,St(Et(i),"_blockSelectEvents",void 0),St(Et(i),"_clipboard",void 0),St(Et(i),"_handler",void 0),St(Et(i),"_dragCount",void 0),St(Et(i),"_internalDrag",void 0),St(Et(i),"_editorKey",void 0),St(Et(i),"_placeholderAccessibilityID",void 0),St(Et(i),"_latestEditorState",void 0),St(Et(i),"_latestCommittedEditorState",void 0),St(Et(i),"_pendingStateFromBeforeInput",void 0),St(Et(i),"_onBeforeInput",void 0),St(Et(i),"_onBlur",void 0),St(Et(i),"_onCharacterData",void 0),St(Et(i),"_onCompositionEnd",void 0),St(Et(i),"_onCompositionStart",void 0),St(Et(i),"_onCopy",void 0),St(Et(i),"_onCut",void 0),St(Et(i),"_onDragEnd",void 0),St(Et(i),"_onDragOver",void 0),St(Et(i),"_onDragStart",void 0),St(Et(i),"_onDrop",void 0),St(Et(i),"_onInput",void 0),St(Et(i),"_onFocus",void 0),St(Et(i),"_onKeyDown",void 0),St(Et(i),"_onKeyPress",void 0),St(Et(i),"_onKeyUp",void 0),St(Et(i),"_onMouseDown",void 0),St(Et(i),"_onMouseUp",void 0),St(Et(i),"_onPaste",void 0),St(Et(i),"_onSelect",void 0),St(Et(i),"editor",void 0),St(Et(i),"editorContainer",void 0),St(Et(i),"focus",void 0),St(Et(i),"blur",void 0),St(Et(i),"setMode",void 0),St(Et(i),"exitCurrentMode",void 0),St(Et(i),"restoreEditorDOM",void 0),St(Et(i),"setClipboard",void 0),St(Et(i),"getClipboard",void 0),St(Et(i),"getEditorKey",void 0),St(Et(i),"update",void 0),St(Et(i),"onDragEnter",void 0),St(Et(i),"onDragLeave",void 0),St(Et(i),"_handleEditorContainerRef",function(o){i.editorContainer=o,i.editor=o!==null?o.firstChild:null}),St(Et(i),"focus",function(o){var a=i.props.editorState,s=a.getSelection().getHasFocus(),l=i.editor;if(l){var u=Sqe.getScrollParent(l),f=o||Tqe(u),d=f.x,p=f.y;L4(l)||P4(!1),l.focus(),u===window?window.scrollTo(d,p):wqe.setTop(u,p),s||i.update(xqe.forceSelection(a,a.getSelection()))}}),St(Et(i),"blur",function(){var o=i.editor;o&&(L4(o)||P4(!1),o.blur())}),St(Et(i),"setMode",function(o){var a=i.props,s=a.onPaste,l=a.onCut,u=a.onCopy,f=TT({},M4.edit);s&&(f.onPaste=s),l&&(f.onCut=l),u&&(f.onCopy=u);var d=TT({},M4,{edit:f});i._handler=d[o]}),St(Et(i),"exitCurrentMode",function(){i.setMode("edit")}),St(Et(i),"restoreEditorDOM",function(o){i.setState({contentsKey:i.state.contentsKey+1},function(){i.focus(o)})}),St(Et(i),"setClipboard",function(o){i._clipboard=o}),St(Et(i),"getClipboard",function(){return i._clipboard}),St(Et(i),"update",function(o){i._latestEditorState=o,i.props.onChange(o)}),St(Et(i),"onDragEnter",function(){i._dragCount++}),St(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||Eqe(),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&&(D4?D4(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:Aqe(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return gu.createElement(bqe,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,g=i.textAlignment,v=i.textDirectionality,y=RT({"DraftEditor/root":!0,"DraftEditor/alignLeft":g==="left","DraftEditor/alignRight":g==="right","DraftEditor/alignCenter":g==="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,C={blockRenderMap:o,blockRendererFn:a,blockStyleFn:s,customStyleMap:TT({},hqe,u),customStyleFn:l,editorKey:this._editorKey,editorState:f,preventScroll:d,textDirectionality:v};return gu.createElement("div",{className:y},this._renderPlaceholder(),gu.createElement("div",{className:RT("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},gu.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:RT({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:$qe&&this.props.spellCheck,style:w,suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},gu.createElement(Oqe,{editor:this,editorState:f}),gu.createElement(mqe,l$({},C,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!F4&&Rqe("draft_ods_enabled")&&(F4=!0,_qe.initODS()),this.setMode("edit"),cX&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):ni.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(gu.Component);St(fX,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:pqe,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:kqe,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var Iqe=fX,Dqe={},Pqe={stringify:function(t){return"_"+String(t)},unstringify:function(t){return t.slice(1)}},dX=Pqe,Lqe=dX,Mqe=zf,N4=Mqe.strlen;function Fqe(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:N4(o.slice(0,r)),length:N4(o.slice(r,i)),key:Number(t[Lqe.stringify(a)])})}),n}var Nqe=Fqe,B4=zf,Bqe=Dy,jqe=function(t,n){return t===n},zqe=function(t){return!!t},Uqe=[];function Kqe(e,t,n){var r=[],i=t.map(function(o){return o.has(n)}).toList();return Bqe(i,jqe,zqe,function(o,a){var s=e.getText();r.push({offset:B4.strlen(s.slice(0,o)),length:B4.strlen(s.slice(o,a)),style:n})}),r}function Wqe(e){var t=e.getCharacterList().map(function(r){return r.getStyle()}).toList(),n=t.flatten().toSet().map(function(r){return Kqe(e,t,r)});return Array.prototype.concat.apply(Uqe,n.toJS())}var Vqe=Wqe;function Hqe(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){qqe(e,i,n[i])})}return e}function qqe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gqe=Mf,Yqe=wa,pX=dX,Xqe=Nqe,Zqe=Vqe,Jqe=bn,j4=function(t,n){return{key:t.getKey(),text:t.getText(),type:t.getType(),depth:t.getDepth(),inlineStyleRanges:Zqe(t),entityRanges:Xqe(t,n),data:t.getData().toObject()}},Qqe=function(t,n,r,i){if(t instanceof Gqe){r.push(j4(t,n));return}t instanceof Yqe||Jqe(!1);var o=t.getParentKey(),a=i[t.getKey()]=Hqe({},j4(t,n),{children:[]});if(o){i[o].children.push(a);return}r.push(a)},eGe=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=pX.stringify(f);a[d]||(a[d]=f,r[d]="".concat(s),s++)}),Qqe(l,r,i,o)}),{blocks:i,entityMap:r}},tGe=function(t,n){var r=n.blocks,i=n.entityMap,o={};return Object.keys(i).forEach(function(a,s){var l=t.getEntity(pX.unstringify(a));o[s]={type:l.getType(),mutability:l.getMutability(),data:l.getData()}}),{blocks:r,entityMap:o}},nGe=function(t){var n={entityMap:{},blocks:[]};return n=eGe(t,n),n=tGe(t,n),n},rGe=nGe;function Pm(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){iGe(e,i,n[i])})}return e}function iGe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oGe=qs,hX=bn,aGe=function(t,n){for(var r=[].concat(t).reverse();r.length;){var i=r.pop();n(i);var o=i.children;Array.isArray(o)||hX(!1),r=r.concat([].concat(o.reverse()))}},z4=function(t){if(!(t&&t.type))return!1;var n=t.type;return n==="unordered-list-item"||n==="ordered-list-item"},sGe=function(t){Array.isArray(t.children)&&(t.children=t.children.map(function(n){return n.type===t.type?Pm({},n,{depth:(t.depth||0)+1}):n}))},lGe={fromRawTreeStateToRawState:function(t){var n=t.blocks,r=[];return Array.isArray(n)||hX(!1),!Array.isArray(n)||!n.length?t:(aGe(n,function(i){var o=Pm({},i);z4(i)&&(o.depth=o.depth||0,sGe(i),i.children!=null&&i.children.length>0)||(delete o.children,r.push(o))}),t.blocks=r,Pm({},t,{blocks:r}))},fromRawStateToRawTreeState:function(t){var n=[],r=[];return t.blocks.forEach(function(i){var o=z4(i),a=i.depth||0,s=Pm({},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:oGe(),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)}}),Pm({},t,{blocks:n})}},uGe=lGe,cGe=xa,fGe=cn,dGe=fGe.List;function pGe(e,t){var n=e.map(function(r,i){var o=t[i];return cGe.create({style:r,entity:o})});return dGe(n)}var hGe=pGe,gGe=zf,U4=gGe.substr;function mGe(e,t){var n=Array(e.length).fill(null);return t&&t.forEach(function(r){for(var i=U4(e,0,r.offset).length,o=i+U4(e,r.offset,r.length).length,a=i;a<o;a++)n[a]=r.key}),n}var vGe=mGe,yGe=zf,bGe=cn,_Ge=bGe.OrderedSet,K4=yGe.substr,xGe=_Ge();function wGe(e,t){var n=Array(e.length).fill(xGe);return t&&t.forEach(function(r){for(var i=K4(e,0,r.offset).length,o=i+K4(e,r.offset,r.length).length;i<o;)n[i]=n[i].add(r.style),i++}),n}var SGe=wGe;function Uv(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){CGe(e,i,n[i])})}return e}function CGe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var EGe=Mf,W4=wa,kGe=NI,TGe=LS,V4=uGe,H4=MS,RGe=hGe,AGe=vGe,$Ge=SGe,gX=qs,OGe=cc,tD=cn,u$=bn,q4=OGe("draft_tree_data_support"),G4=tD.List,IGe=tD.Map,mX=tD.OrderedMap,c$=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||gX(),data:IGe(o),characterList:DGe(t,n)};return l},DGe=function(t,n){var r=t.text,i=t.entityRanges,o=t.inlineStyleRanges,a=i||[],s=o||[];return RGe($Ge(r,s),AGe(r,a.filter(function(l){return n.hasOwnProperty(l.key)}).map(function(l){return Uv({},l,{key:n[l.key]})})))},AT=function(t){return Uv({},t,{key:t.key||gX()})},Y4=function(t,n,r){var i=n.map(function(o){return Uv({},o,{parentRef:r})});return t.concat(i.reverse())},PGe=function(t,n){return t.map(AT).reduce(function(r,i,o){Array.isArray(i.children)||u$(!1);var a=i.children.map(AT),s=new W4(Uv({},c$(i,n),{prevSibling:o===0?null:t[o-1].key,nextSibling:o===t.length-1?null:t[o+1].key,children:G4(a.map(function(w){return w.key}))}));r=r.set(s.getKey(),s);for(var l=Y4([],a,s);l.length>0;){var u=l.pop(),f=u.parentRef,d=f.getChildKeys(),p=d.indexOf(u.key),g=Array.isArray(u.children);if(!g){g||u$(!1);break}var v=u.children.map(AT),y=new W4(Uv({},c$(u,n),{parent:f.getKey(),children:G4(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=Y4(l,v,y)}return r},mX())},LGe=function(t,n){return mX(t.map(function(r){var i=new EGe(c$(r,n));return[i.getKey(),i]}))},MGe=function(t,n){var r=t.blocks.find(function(a){return Array.isArray(a.children)&&a.children.length>0}),i=q4&&!r?V4.fromRawStateToRawTreeState(t).blocks:t.blocks;if(!q4)return LGe(r?V4.fromRawTreeStateToRawState(t).blocks:i,n);var o=PGe(i,n);return o},FGe=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]=TGe.__create(a,s,l||{})}),r},NGe=function(t){Array.isArray(t.blocks)||u$(!1);var n=FGe(t),r=MGe(t,n),i=r.isEmpty()?new H4:H4.createEmpty(r.first().getKey());return new kGe({blockMap:r,entityMap:n,selectionBefore:i,selectionAfter:i})},BGe=NGe,jGe=BY;function zGe(e){var t=jGe(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 UGe=zGe,KGe=UGe;function WGe(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=KGe(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 VGe=WGe,HGe=j6e,qGe=Iy,GGe=xa,YGe=q6e,XGe=Mf,ZGe=NI,JGe=KI,QGe=GG,eYe=Iqe,tYe=kY,nYe=LS,rYe=so,iYe=IG,oYe=zn,aYe=JI,sYe=Dqe,lYe=eX,uYe=MS,cYe=rGe,fYe=BGe,dYe=qs,pYe=lX,hYe=VGe,gYe=ZY,mYe={Editor:eYe,EditorBlock:tYe,EditorState:oYe,CompositeDecorator:YGe,Entity:nYe,EntityInstance:iYe,BlockMapBuilder:qGe,CharacterMetadata:GGe,ContentBlock:XGe,ContentState:ZGe,RawDraftContentState:sYe,SelectionState:uYe,AtomicBlockUtils:HGe,KeyBindingUtil:aYe,Modifier:rYe,RichUtils:lYe,DefaultDraftBlockRenderMap:JGe,DefaultDraftInlineStyle:QGe,convertFromHTML:gYe,convertFromRaw:fYe,convertToRaw:cYe,genKey:dYe,getDefaultKeyBinding:pYe,getVisibleSelectionRect:hYe},Rn=mYe,zy="delete",Hn=5,ia=1<<Hn,Ii=ia-1,nn={};function f$(){return{value:!1}}function oa(e){e&&(e.value=!0)}function nD(){}function Zp(e){return e.size===void 0&&(e.size=e.__iterate(vX)),e.size}function Hu(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 vX(){return!0}function qS(e,t,n){return(e===0&&!bX(e)||n!==void 0&&e<=-n)&&(t===void 0||n!==void 0&&t>=n)}function Uy(e,t){return yX(e,t,0)}function GS(e,t){return yX(e,t,t)}function yX(e,t,n){return e===void 0?n:bX(e)?t===1/0?t:Math.max(0,t+e)|0:t===void 0||t===e?e:Math.min(t,e)|0}function bX(e){return e<0||e===0&&1/e===-1/0}var _X="@@__IMMUTABLE_ITERABLE__@@";function io(e){return!!(e&&e[_X])}var xX="@@__IMMUTABLE_KEYED__@@";function Qn(e){return!!(e&&e[xX])}var wX="@@__IMMUTABLE_INDEXED__@@";function eo(e){return!!(e&&e[wX])}function YS(e){return Qn(e)||eo(e)}var Er=function(t){return io(t)?t:Do(t)},Sa=function(e){function t(n){return Qn(n)?n:fc(n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Er),Uf=function(e){function t(n){return eo(n)?n:ns(n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Er),Ch=function(e){function t(n){return io(n)&&!YS(n)?n:Rh(n)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(Er);Er.Keyed=Sa;Er.Indexed=Uf;Er.Set=Ch;var SX="@@__IMMUTABLE_SEQ__@@";function rD(e){return!!(e&&e[SX])}var CX="@@__IMMUTABLE_RECORD__@@";function Eh(e){return!!(e&&e[CX])}function Gs(e){return io(e)||Eh(e)}var kh="@@__IMMUTABLE_ORDERED__@@";function Xa(e){return!!(e&&e[kh])}var Ky=0,Qa=1,ga=2,d$=typeof Symbol=="function"&&Symbol.iterator,EX="@@iterator",XS=d$||EX,mn=function(t){this.next=t};mn.prototype.toString=function(){return"[Iterator]"};mn.KEYS=Ky;mn.VALUES=Qa;mn.ENTRIES=ga;mn.prototype.inspect=mn.prototype.toSource=function(){return this.toString()};mn.prototype[XS]=function(){return this};function rr(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 oo(){return{value:void 0,done:!0}}function kX(e){return Array.isArray(e)?!0:!!ZS(e)}function X4(e){return e&&typeof e.next=="function"}function p$(e){var t=ZS(e);return t&&t.call(e)}function ZS(e){var t=e&&(d$&&e[d$]||e[EX]);if(typeof t=="function")return t}function vYe(e){var t=ZS(e);return t&&t===e.entries}function yYe(e){var t=ZS(e);return t&&t===e.keys}var Th=Object.prototype.hasOwnProperty;function TX(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?oD():Gs(n)?n.toSeq():_Ye(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 mn(function(){if(s===a)return oo();var l=o[i?a-++s:s++];return rr(r,l[0],l[1])})}return this.__iteratorUncached(r,i)},t}(Er),fc=function(e){function t(n){return n==null?oD().toKeyedSeq():io(n)?Qn(n)?n.toSeq():n.fromEntrySeq():Eh(n)?n.toSeq():aD(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),ns=function(e){function t(n){return n==null?oD():io(n)?Qn(n)?n.entrySeq():n.toIndexedSeq():Eh(n)?n.toSeq().entrySeq():RX(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),Rh=function(e){function t(n){return(io(n)&&!YS(n)?n:ns(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=rD;Do.Keyed=fc;Do.Set=Rh;Do.Indexed=ns;Do.prototype[SX]=!0;var wf=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[Hu(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 mn(function(){if(s===a)return oo();var l=i?a-++s:s++;return rr(r,l,o[l])})},t}(ns),iD=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 Th.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 mn(function(){if(l===s)return oo();var u=a[i?s-++l:l++];return rr(r,u,o[u])})},t}(fc);iD.prototype[kh]=!0;var bYe=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=p$(o),s=0;if(X4(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=p$(o);if(!X4(a))return new mn(oo);var s=0;return new mn(function(){var l=a.next();return l.done?l:rr(r,s++,l.value)})},t}(ns),Z4;function oD(){return Z4||(Z4=new wf([]))}function aD(e){var t=sD(e);if(t)return t.fromEntrySeq();if(typeof e=="object")return new iD(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function RX(e){var t=sD(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function _Ye(e){var t=sD(e);if(t)return vYe(e)?t.fromEntrySeq():yYe(e)?t.toSetSeq():t;if(typeof e=="object")return new iD(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}function sD(e){return TX(e)?new wf(e):kX(e)?new bYe(e):void 0}var AX="@@__IMMUTABLE_MAP__@@";function lD(e){return!!(e&&e[AX])}function $X(e){return lD(e)&&Xa(e)}function J4(e){return!!(e&&typeof e.equals=="function"&&typeof e.hashCode=="function")}function ko(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!!(J4(e)&&J4(t)&&e.equals(t))}var _m=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 JS(e){return e>>>1&1073741824|e&3221225471}var xYe=Object.prototype.valueOf;function xo(e){if(e==null)return Q4(e);if(typeof e.hashCode=="function")return JS(e.hashCode(e));var t=TYe(e);if(t==null)return Q4(t);switch(typeof t){case"boolean":return t?1108378657:1108378656;case"number":return wYe(t);case"string":return t.length>RYe?SYe(t):h$(t);case"object":case"function":return EYe(t);case"symbol":return CYe(t);default:if(typeof t.toString=="function")return h$(t.toString());throw new Error("Value type "+typeof t+" cannot be hashed.")}}function Q4(e){return e===null?1108378658:1108378659}function wYe(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 JS(t)}function SYe(e){var t=IT[e];return t===void 0&&(t=h$(e),OT===AYe&&(OT=0,IT={}),OT++,IT[e]=t),t}function h$(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return JS(t)}function CYe(e){var t=n5[e];return t!==void 0||(t=OX(),n5[e]=t),t}function EYe(e){var t;if(g$&&(t=m$.get(e),t!==void 0)||(t=e[Yc],t!==void 0)||!t5&&(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Yc],t!==void 0||(t=kYe(e),t!==void 0)))return t;if(t=OX(),g$)m$.set(e,t);else{if(e5!==void 0&&e5(e)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(t5)Object.defineProperty(e,Yc,{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[Yc]=t;else if(e.nodeType!==void 0)e[Yc]=t;else throw new Error("Unable to set a non-enumerable property on object.")}return t}var e5=Object.isExtensible,t5=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function kYe(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function TYe(e){return e.valueOf!==xYe&&typeof e.valueOf=="function"?e.valueOf(e):e}function OX(){var e=++$T;return $T&1073741824&&($T=0),e}var g$=typeof WeakMap=="function",m$;g$&&(m$=new WeakMap);var n5=Object.create(null),$T=0,Yc="__immutablehash__";typeof Symbol=="function"&&(Yc=Symbol(Yc));var RYe=16,AYe=255,OT=0,IT={},QS=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=uD(this,!0);return this._useKeys||(i.valueSeq=function(){return r._iter.toSeq().reverse()}),i},t.prototype.map=function(r,i){var o=this,a=MX(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}(fc);QS.prototype[kh]=!0;var IX=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 mn(function(){var l=a.next();return l.done?l:rr(r,i?o.size-++s:s++,l.value,l)})},t}(ns),DX=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 mn(function(){var a=o.next();return a.done?a:rr(r,a.value,a.value,a)})},t}(Rh),PX=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){i5(a);var s=io(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 mn(function(){for(;;){var a=o.next();if(a.done)return a;var s=a.value;if(s){i5(s);var l=io(s);return rr(r,l?s.get(0):s[0],l?s.get(1):s[1],a)}}})},t}(fc);IX.prototype.cacheResult=QS.prototype.cacheResult=DX.prototype.cacheResult=PX.prototype.cacheResult=dD;function LX(e){var t=Ys(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=dD,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 mn(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?Ky:Qa,r)},t}function MX(e,t,n){var r=Ys(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 mn(function(){var s=a.next();if(s.done)return s;var l=s.value,u=l[0];return rr(i,u,t.call(n,l[1],u,e),s)})},r}function uD(e,t){var n=this,r=Ys(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var i=LX(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=dD,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 mn(function(){var l=s.next();if(l.done)return l;var u=l.value;return rr(i,t?u[0]:o?n.size-++a:a++,u[1],l)})},r}function FX(e,t,n,r){var i=Ys(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 mn(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 rr(o,r?d:l++,p,u)}})},i}function $Ye(e,t,n){var r=$h().asMutable();return e.__iterate(function(i,o){r.update(t.call(n,i,o,e),0,function(a){return a+1})}),r.asImmutable()}function OYe(e,t,n){var r=Qn(e),i=(Xa(e)?Fl():$h()).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=fD(e);return i.map(function(a){return In(e,o(a))}).asImmutable()}function IYe(e,t,n){var r=Qn(e),i=[[],[]];e.__iterate(function(a,s){i[t.call(n,a,s,e)?1:0].push(r?[s,a]:a)});var o=fD(e);return i.map(function(a){return In(e,o(a))})}function cD(e,t,n,r){var i=e.size;if(qS(t,n,i))return e;var o=Uy(t,i),a=GS(n,i);if(o!==o||a!==a)return cD(e.toSeq().cacheResult(),t,n,r);var s=a-o,l;s===s&&(l=s<0?0:s);var u=Ys(e);return u.size=l===0?l:e.size&&l||void 0,!r&&rD(e)&&l>=0&&(u.get=function(f,d){return f=Hu(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 g=0,v=!0,y=0;return e.__iterate(function(w,b){if(!(v&&(v=g++<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 mn(oo);var p=e.__iterator(f,d),g=0,v=0;return new mn(function(){for(;g++<o;)p.next();if(++v>l)return oo();var y=p.next();return r||f===Qa||y.done?y:f===Ky?rr(f,v-1,void 0,y):rr(f,v-1,y.value[1],y)})},u}function DYe(e,t,n){var r=Ys(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 mn(function(){if(!l)return oo();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:rr(i,d,p,u):(l=!1,oo())})},r}function NX(e,t,n,r){var i=Ys(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 mn(function(){var d,p,g;do{if(d=l.next(),d.done)return r||o===Qa?d:o===Ky?rr(o,f++,void 0,d):rr(o,f++,d.value[1],d);var v=d.value;p=v[0],g=v[1],u&&(u=t.call(n,g,p,s))}while(u);return o===ga?d:rr(o,p,g,d)})},i}function PYe(e,t){var n=Qn(e),r=[e].concat(t).map(function(a){return io(a)?n&&(a=Sa(a)):a=n?aD(a):RX(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&&Qn(i)||eo(e)&&eo(i))return i}var o=new wf(r);return n?o=o.toKeyedSeq():eo(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 BX(e,t,n){var r=Ys(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)&&io(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 mn(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)&&io(f))s.push(a),a=f.__iterator(i,o);else return n?u:rr(i,l++,f,u)}return oo()})},r}function LYe(e,t,n){var r=fD(e);return e.toSeq().map(function(i,o){return r(t.call(n,i,o,e))}).flatten(!0)}function MYe(e,t){var n=Ys(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 mn(function(){return(!s||a%2)&&(s=o.next(),s.done)?s:a%2?rr(r,a++,t):rr(r,a++,s.value,s)})},n}function Jp(e,t,n){t||(t=jX);var r=Qn(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?fc(o):eo(e)?ns(o):Rh(o)}function pb(e,t,n){if(t||(t=jX),n){var r=e.toSeq().map(function(i,o){return[i,n(i,o,e)]}).reduce(function(i,o){return r5(t,i[1],o[1])?o:i});return r&&r[0]}return e.reduce(function(i,o){return r5(t,i,o)?o:i})}function r5(e,t,n){var r=e(n,t);return r===0&&n!==t&&(n==null||n!==n)||r>0}function hb(e,t,n,r){var i=Ys(e),o=new wf(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),p$(s?d.reverse():d)}),u=0,f=!1;return new mn(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?oo():rr(a,u++,t.apply(null,d.map(function(p){return p.value})))})},i}function In(e,t){return e===t?e:rD(e)?t:e.constructor(t)}function i5(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function fD(e){return Qn(e)?Sa:eo(e)?Uf:Ch}function Ys(e){return Object.create((Qn(e)?fc:eo(e)?ns:Rh).prototype)}function dD(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Do.prototype.cacheResult.call(this)}function jX(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 $s(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 pD(e,t){if(!e)throw new Error(t)}function Co(e){pD(e!==1/0,"Cannot perform this action with an infinite size.")}function zX(e){if(TX(e)&&typeof e!="string")return e;if(Xa(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}var FYe=Object.prototype.toString;function NYe(e){if(!e||typeof e!="object"||FYe.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 qu(e){return typeof e=="object"&&(Gs(e)||Array.isArray(e)||NYe(e))}function Kv(e){try{return typeof e=="string"?JSON.stringify(e):String(e)}catch{return JSON.stringify(e)}}function BYe(e,t){return Gs(e)?e.has(t):qu(e)&&Th.call(e,t)}function UX(e,t,n){return Gs(e)?e.get(t,n):BYe(e,t)?typeof e.get=="function"?e.get(t):e[t]:n}function dx(e){if(Array.isArray(e))return $s(e);var t={};for(var n in e)Th.call(e,n)&&(t[n]=e[n]);return t}function jYe(e,t){if(!qu(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(Gs(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!Th.call(e,t))return e;var n=dx(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function zYe(e,t,n){if(!qu(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(Gs(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,n)}if(Th.call(e,t)&&n===e[t])return e;var r=dx(e);return r[t]=n,r}function Ah(e,t,n,r){r||(r=n,n=void 0);var i=KX(Gs(e),e,zX(t),0,n,r);return i===nn?n:i}function KX(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&&!qu(t))throw new TypeError("Cannot update within non-data-structure value in path ["+n.slice(0,r).map(Kv)+"]: "+t);var u=n[r],f=a?nn:UX(t,u,nn),d=KX(f===nn?e:Gs(f),f,n,r+1,i,o);return d===f?t:d===nn?jYe(t,u):zYe(a?e?Wa():{}:t,u,d)}function UYe(e,t,n){return Ah(e,t,nn,function(){return n})}function hD(e,t){return UYe(this,e,t)}function KYe(e,t){return Ah(e,t,function(){return nn})}function gD(e){return KYe(this,e)}function WX(e,t,n,r){return Ah(e,[t],n,r)}function mD(e,t,n){return arguments.length===1?e(this):WX(this,e,t,n)}function vD(e,t,n){return Ah(this,e,t,n)}function VX(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return qX(this,e)}function HX(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 qX(this,t,e)}function qX(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){WX(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 yD(e,t,n){return bD(e,t,WYe(n))}function bD(e,t,n){if(!qu(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(Gs(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?Uf:Sa,a=r?function(l){i===e&&(i=dx(i)),i.push(l)}:function(l,u){var f=Th.call(i,u),d=f&&n?n(i[u],l,u):l;(!f||d!==i[u])&&(i===e&&(i=dx(i)),i[u]=d)},s=0;s<t.length;s++)o(t[s]).forEach(a);return i}function WYe(e){function t(n,r,i){return qu(n)&&qu(r)&&VYe(n,r)?bD(n,[r],t):e?e(n,r,i):r}return t}function VYe(e,t){var n=Do(e),r=Do(t);return eo(n)===eo(r)&&Qn(n)===Qn(r)}function GX(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return yD(this,e)}function YX(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return yD(this,t,e)}function _D(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Ah(this,e,Wa(),function(r){return bD(r,t)})}function xD(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Ah(this,e,Wa(),function(r){return yD(r,t)})}function Wy(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function Vy(){return this.__ownerID?this:this.__ensureOwner(new nD)}function Hy(){return this.__ensureOwner()}function wD(){return this.__altered}var $h=function(e){function t(n){return n==null?Wa():lD(n)&&!Xa(n)?n:Wa().withMutations(function(r){var i=e(n);Co(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 s5(this,r,i)},t.prototype.remove=function(r){return s5(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 Fl(Jp(this,r))},t.prototype.sortBy=function(r,i){return Fl(Jp(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 HYe(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?SD(this.size,this._root,r,this.__hash):this.size===0?Wa():(this.__ownerID=r,this.__altered=!1,this)},t}(Sa);$h.isMap=lD;var Gn=$h.prototype;Gn[AX]=!0;Gn[zy]=Gn.remove;Gn.removeAll=Gn.deleteAll;Gn.setIn=hD;Gn.removeIn=Gn.deleteIn=gD;Gn.update=mD;Gn.updateIn=vD;Gn.merge=Gn.concat=VX;Gn.mergeWith=HX;Gn.mergeDeep=GX;Gn.mergeDeepWith=YX;Gn.mergeIn=_D;Gn.mergeDeepIn=xD;Gn.withMutations=Wy;Gn.wasAltered=wD;Gn.asImmutable=Hy;Gn["@@transducer/init"]=Gn.asMutable=Vy;Gn["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])};Gn["@@transducer/result"]=function(e){return e.asImmutable()};var Wv=function(t,n){this.ownerID=t,this.entries=n};Wv.prototype.get=function(t,n,r,i){for(var o=this.entries,a=0,s=o.length;a<s;a++)if(ko(r,o[a][0]))return o[a][1];return i};Wv.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&&!ko(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>=JYe)return qYe(t,u,i,o);var g=t&&t===this.ownerID,v=g?u:$s(u);return p?l?f===d-1?v.pop():v[f]=v.pop():v[f]=[i,o]:v.push([i,o]),g?(this.entries=v,this):new Wv(t,v)}};var Qp=function(t,n,r){this.ownerID=t,this.bitmap=n,this.nodes=r};Qp.prototype.get=function(t,n,r,i){n===void 0&&(n=xo(r));var o=1<<((t===0?n:n>>>t)&Ii),a=this.bitmap;return a&o?this.nodes[XX(a&o-1)].get(t+Hn,n,r,i):i};Qp.prototype.update=function(t,n,r,i,o,a,s){r===void 0&&(r=xo(i));var l=(n===0?r:r>>>n)&Ii,u=1<<l,f=this.bitmap,d=(f&u)!==0;if(!d&&o===nn)return this;var p=XX(f&u-1),g=this.nodes,v=d?g[p]:void 0,y=CD(v,t,n+Hn,r,i,o,a,s);if(y===v)return this;if(!d&&y&&g.length>=QYe)return YYe(t,g,f,l,y);if(d&&!y&&g.length===2&&l5(g[p^1]))return g[p^1];if(d&&y&&g.length===1&&l5(y))return y;var w=t&&t===this.ownerID,b=d?y?f:f^u:f|u,x=d?y?ZX(g,p,y,w):ZYe(g,p,w):XYe(g,p,y,w);return w?(this.bitmap=b,this.nodes=x,this):new Qp(t,b,x)};var Vv=function(t,n,r){this.ownerID=t,this.count=n,this.nodes=r};Vv.prototype.get=function(t,n,r,i){n===void 0&&(n=xo(r));var o=(t===0?n:n>>>t)&Ii,a=this.nodes[o];return a?a.get(t+Hn,n,r,i):i};Vv.prototype.update=function(t,n,r,i,o,a,s){r===void 0&&(r=xo(i));var l=(n===0?r:r>>>n)&Ii,u=o===nn,f=this.nodes,d=f[l];if(u&&!d)return this;var p=CD(d,t,n+Hn,r,i,o,a,s);if(p===d)return this;var g=this.count;if(!d)g++;else if(!p&&(g--,g<eXe))return GYe(t,f,g,l);var v=t&&t===this.ownerID,y=ZX(f,l,p,v);return v?(this.count=g,this.nodes=y,this):new Vv(t,g,y)};var eh=function(t,n,r){this.ownerID=t,this.keyHash=n,this.entries=r};eh.prototype.get=function(t,n,r,i){for(var o=this.entries,a=0,s=o.length;a<s;a++)if(ko(r,o[a][0]))return o[a][1];return i};eh.prototype.update=function(t,n,r,i,o,a,s){r===void 0&&(r=xo(i));var l=o===nn;if(r!==this.keyHash)return l?this:(oa(s),oa(a),ED(this,t,n,r,[i,o]));for(var u=this.entries,f=0,d=u.length;f<d&&!ko(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 Ml(t,this.keyHash,u[f^1]);var g=t&&t===this.ownerID,v=g?u:$s(u);return p?l?f===d-1?v.pop():v[f]=v.pop():v[f]=[i,o]:v.push([i,o]),g?(this.entries=v,this):new eh(t,this.keyHash,v)};var Ml=function(t,n,r){this.ownerID=t,this.keyHash=n,this.entry=r};Ml.prototype.get=function(t,n,r,i){return ko(r,this.entry[0])?this.entry[1]:i};Ml.prototype.update=function(t,n,r,i,o,a,s){var l=o===nn,u=ko(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 Ml(t,this.keyHash,[i,o]):(oa(a),ED(this,t,n,xo(i),[i,o]))};Wv.prototype.iterate=eh.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};Qp.prototype.iterate=Vv.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}};Ml.prototype.iterate=function(e,t){return e(this.entry)};var HYe=function(e){function t(n,r,i){this._type=r,this._reverse=i,this._stack=n._root&&o5(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 DT(r,o.entry)}else if(o.entries){if(s=o.entries.length-1,a<=s)return DT(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 DT(r,l.entry);i=this._stack=o5(l,i)}continue}i=this._stack=this._stack.__prev}return oo()},t}(mn);function DT(e,t){return rr(e,t[0],t[1])}function o5(e,t){return{node:e,index:0,__prev:t}}function SD(e,t,n,r){var i=Object.create(Gn);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}var a5;function Wa(){return a5||(a5=SD(0))}function s5(e,t,n){var r,i;if(e._root){var o=f$(),a=f$();if(r=CD(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 Wv(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?SD(i,r):Wa()}function CD(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 Ml(t,r,[i,o]))}function l5(e){return e.constructor===Ml||e.constructor===eh}function ED(e,t,n,r,i){if(e.keyHash===r)return new eh(t,r,[e.entry,i]);var o=(n===0?e.keyHash:e.keyHash>>>n)&Ii,a=(n===0?r:r>>>n)&Ii,s,l=o===a?[ED(e,t,n+Hn,r,i)]:(s=new Ml(t,r,i),o<a?[e,s]:[s,e]);return new Qp(t,1<<o|1<<a,l)}function qYe(e,t,n,r){e||(e=new nD);for(var i=new Ml(e,xo(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 GYe(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 Qp(e,i,a)}function YYe(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 Vv(e,o+1,a)}function XX(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 ZX(e,t,n,r){var i=r?e:$s(e);return i[t]=n,i}function XYe(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 ZYe(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 JYe=ia/4,QYe=ia/2,eXe=ia/4,JX="@@__IMMUTABLE_LIST__@@";function QX(e){return!!(e&&e[JX])}var eC=function(e){function t(n){var r=Qb();if(n==null)return r;if(QX(n))return n;var i=e(n),o=i.size;return o===0?r:(Co(o),o>0&&o<ia?Hv(0,o,Hn,null,new ju(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=Hu(this,r),r>=0&&r<this.size){r+=this._origin;var o=eZ(this,r);return o&&o.array[r&Ii]}return i},t.prototype.set=function(r,i){return tXe(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=Hn,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):Qb()},t.prototype.push=function(){var r=arguments,i=this.size;return this.withMutations(function(o){xu(o,0,i+r.length);for(var a=0;a<r.length;a++)o.set(i+a,r[a])})},t.prototype.pop=function(){return xu(this,0,-1)},t.prototype.unshift=function(){var r=arguments;return this.withMutations(function(i){xu(i,-r.length);for(var o=0;o<r.length;o++)i.set(o,r[o])})},t.prototype.shift=function(){return xu(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"&&kX(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 xu(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 qS(r,i,o)?this:xu(this,Uy(r,o),GS(i,o))},t.prototype.__iterator=function(r,i){var o=i?this.size:0,a=u5(this,i);return new mn(function(){var s=a();return s===fv?oo():rr(r,i?--o:o++,s)})},t.prototype.__iterate=function(r,i){for(var o=i?this.size:0,a=u5(this,i),s;(s=a())!==fv&&r(s,i?--o:o++,this)!==!1;);return o},t.prototype.__ensureOwner=function(r){return r===this.__ownerID?this:r?Hv(this._origin,this._capacity,this._level,this._root,this._tail,r,this.__hash):this.size===0?Qb():(this.__ownerID=r,this.__altered=!1,this)},t}(Uf);eC.isList=QX;var Ir=eC.prototype;Ir[JX]=!0;Ir[zy]=Ir.remove;Ir.merge=Ir.concat;Ir.setIn=hD;Ir.deleteIn=Ir.removeIn=gD;Ir.update=mD;Ir.updateIn=vD;Ir.mergeIn=_D;Ir.mergeDeepIn=xD;Ir.withMutations=Wy;Ir.wasAltered=wD;Ir.asImmutable=Hy;Ir["@@transducer/init"]=Ir.asMutable=Vy;Ir["@@transducer/step"]=function(e,t){return e.push(t)};Ir["@@transducer/result"]=function(e){return e.asImmutable()};var ju=function(t,n){this.array=t,this.ownerID=n};ju.prototype.removeBefore=function(t,n,r){if(r===n?1<<n:this.array.length===0)return this;var i=r>>>n&Ii;if(i>=this.array.length)return new ju([],t);var o=i===0,a;if(n>0){var s=this.array[i];if(a=s&&s.removeBefore(t,n-Hn,r),a===s&&o)return this}if(o&&!a)return this;var l=th(this,t);if(!o)for(var u=0;u<i;u++)l.array[u]=void 0;return a&&(l.array[i]=a),l};ju.prototype.removeAfter=function(t,n,r){if(r===(n?1<<n:0)||this.array.length===0)return this;var i=r-1>>>n&Ii;if(i>=this.array.length)return this;var o;if(n>0){var a=this.array[i];if(o=a&&a.removeAfter(t,n-Hn,r),o===a&&i===this.array.length-1)return this}var s=th(this,t);return s.array.splice(i+1),o&&(s.array[i]=o),s};var fv={};function u5(e,t){var n=e._origin,r=e._capacity,i=qv(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,g=r-f;return g>ia&&(g=ia),function(){if(p===g)return fv;var v=t?--g:p++;return d&&d[v]}}function l(u,f,d){var p,g=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!==fv)return w;p=null}if(v===y)return fv;var b=t?--y:v++;p=a(g&&g[b],f-Hn,d+(b<<f))}}}}function Hv(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 c5;function Qb(){return c5||(c5=Hv(0,0,Hn))}function tXe(e,t,n){if(t=Hu(e,t),t!==t)return e;if(t>=e.size||t<0)return e.withMutations(function(a){t<0?xu(a,t).set(0,n):xu(a,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=f$();return t>=qv(e._capacity)?r=v$(r,e.__ownerID,0,t,n,o):i=v$(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):Hv(e._origin,e._capacity,e._level,i,r):e}function v$(e,t,n,r,i,o){var a=r>>>n&Ii,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=v$(u,t,n-Hn,r,i,o);return f===u?e:(l=th(e,t),l.array[a]=f,l)}return s&&e.array[a]===i?e:(o&&oa(o),l=th(e,t),i===void 0&&a===l.array.length-1?l.array.pop():l.array[a]=i,l)}function th(e,t){return t&&e&&t===e.ownerID?e:new ju(e?e.array.slice():[],t)}function eZ(e,t){if(t>=qv(e._capacity))return e._tail;if(t<1<<e._level+Hn){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&Ii],r-=Hn;return n}}function xu(e,t,n){t!==void 0&&(t|=0),n!==void 0&&(n|=0);var r=e.__ownerID||new nD,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 ju(u&&u.array.length?[void 0,u]:[],r),l+=Hn,f+=1<<l;f&&(a+=f,i+=f,s+=f,o+=f);for(var d=qv(o),p=qv(s);p>=1<<l+Hn;)u=new ju(u&&u.array.length?[u]:[],r),l+=Hn;var g=e._tail,v=p<d?eZ(e,s-1):p>d?new ju([],r):g;if(g&&p>d&&a<o&&g.array.length){u=th(u,r);for(var y=u,w=l;w>Hn;w-=Hn){var b=d>>>w&Ii;y=y.array[b]=th(y.array[b],r)}y.array[d>>>Hn&Ii]=g}if(s<o&&(v=v&&v.removeAfter(r,0,s)),a>=p)a-=p,s-=p,l=Hn,u=null,v=v&&v.removeBefore(r,0,a);else if(a>i||p<d){for(f=0;u;){var x=a>>>l&Ii;if(x!==p>>>l&Ii)break;x&&(f+=(1<<l)*x),l-=Hn,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):Hv(a,s,l,u,v)}function qv(e){return e<ia?0:e-1>>>Hn<<Hn}var Fl=function(e){function t(n){return n==null?Lm():$X(n)?n:Lm().withMutations(function(r){var i=Sa(n);Co(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):Lm()},t.prototype.set=function(r,i){return d5(this,r,i)},t.prototype.remove=function(r){return d5(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?kD(i,o,r,this.__hash):this.size===0?Lm():(this.__ownerID=r,this.__altered=!1,this._map=i,this._list=o,this)},t}($h);Fl.isOrderedMap=$X;Fl.prototype[kh]=!0;Fl.prototype[zy]=Fl.prototype.remove;function kD(e,t,n,r){var i=Object.create(Fl.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 f5;function Lm(){return f5||(f5=kD(Wa(),Qb()))}function d5(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):kD(s,l)}var tZ="@@__IMMUTABLE_STACK__@@";function y$(e){return!!(e&&e[tZ])}var TD=function(e){function t(n){return n==null?gb():y$(n)?n:gb().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=Hu(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):Mm(i,o)},t.prototype.pushAll=function(r){if(r=e(r),r.size===0)return this;if(this.size===0&&y$(r))return r;Co(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):Mm(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):gb()},t.prototype.slice=function(r,i){if(qS(r,i,this.size))return this;var o=Uy(r,this.size),a=GS(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):Mm(s,l)},t.prototype.__ensureOwner=function(r){return r===this.__ownerID?this:r?Mm(this.size,this._head,r,this.__hash):this.size===0?gb():(this.__ownerID=r,this.__altered=!1,this)},t.prototype.__iterate=function(r,i){var o=this;if(i)return new wf(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 wf(this.toArray()).__iterator(r,i);var o=0,a=this._head;return new mn(function(){if(a){var s=a.value;return a=a.next,rr(r,o++,s)}return oo()})},t}(Uf);TD.isStack=y$;var Pi=TD.prototype;Pi[tZ]=!0;Pi.shift=Pi.pop;Pi.unshift=Pi.push;Pi.unshiftAll=Pi.pushAll;Pi.withMutations=Wy;Pi.wasAltered=wD;Pi.asImmutable=Hy;Pi["@@transducer/init"]=Pi.asMutable=Vy;Pi["@@transducer/step"]=function(e,t){return e.unshift(t)};Pi["@@transducer/result"]=function(e){return e.asImmutable()};function Mm(e,t,n,r){var i=Object.create(Pi);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}var p5;function gb(){return p5||(p5=Mm(0))}var nZ="@@__IMMUTABLE_SET__@@";function RD(e){return!!(e&&e[nZ])}function rZ(e){return RD(e)&&Xa(e)}function iZ(e,t){if(e===t)return!0;if(!io(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||Qn(e)!==Qn(t)||eo(e)!==eo(t)||Xa(e)!==Xa(t))return!1;if(e.size===0&&t.size===0)return!0;var n=!YS(e);if(Xa(e)){var r=e.entries();return t.every(function(l,u){var f=r.next().value;return f&&ko(f[1],l)&&(n||ko(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?!ko(l,e.get(u,nn)):!ko(e.get(u,nn),l))return a=!1,!1});return a&&e.size===s}function Kf(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 px(e){if(!e||typeof e!="object")return e;if(!io(e)){if(!qu(e))return e;e=Do(e)}if(Qn(e)){var t={};return e.__iterate(function(r,i){t[i]=px(r)}),t}var n=[];return e.__iterate(function(r){n.push(px(r))}),n}var tC=function(e){function t(n){return n==null?Fm():RD(n)&&!Xa(n)?n:Fm().withMutations(function(r){var i=e(n);Co(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?ii.intersect.apply(t(r.pop()),r):Fm()},t.union=function(r){return r=Er(r).toArray(),r.length?ii.union.apply(t(r.pop()),r):Fm()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(r){return this._map.has(r)},t.prototype.add=function(r){return mb(this,this._map.set(r,r))},t.prototype.remove=function(r){return mb(this,this._map.remove(r))},t.prototype.clear=function(){return mb(this,this._map.clear())},t.prototype.map=function(r,i){var o=this,a=!1,s=mb(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 Sf(Jp(this,r))},t.prototype.sortBy=function(r,i){return Sf(Jp(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}(Ch);tC.isSet=RD;var ii=tC.prototype;ii[nZ]=!0;ii[zy]=ii.remove;ii.merge=ii.concat=ii.union;ii.withMutations=Wy;ii.asImmutable=Hy;ii["@@transducer/init"]=ii.asMutable=Vy;ii["@@transducer/step"]=function(e,t){return e.add(t)};ii["@@transducer/result"]=function(e){return e.asImmutable()};ii.__empty=Fm;ii.__make=oZ;function mb(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 oZ(e,t){var n=Object.create(ii);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}var h5;function Fm(){return h5||(h5=oZ(Wa()))}var nXe=function(e){function t(n,r,i){if(!(this instanceof t))return new t(n,r,i);if(pD(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(PT)return PT;PT=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+Hu(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 qS(r,i,this.size)?this:(r=Uy(r,this.size),i=GS(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 mn(function(){if(l===o)return oo();var u=s;return s+=i?-a:a,rr(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:iZ(this,r)},t}(ns),PT;function aZ(e,t,n){for(var r=zX(t),i=0;i!==r.length;)if(e=UX(e,r[i++],nn),e===nn)return n;return e}function sZ(e,t){return aZ(this,e,t)}function rXe(e,t){return aZ(e,t,nn)!==nn}function iXe(e){return rXe(this,e)}function lZ(){Co(this.size);var e={};return this.__iterate(function(t,n){e[n]=t}),e}Er.isIterable=io;Er.isKeyed=Qn;Er.isIndexed=eo;Er.isAssociative=YS;Er.isOrdered=Xa;Er.Iterator=mn;Kf(Er,{toArray:function(){Co(this.size);var t=new Array(this.size||0),n=Qn(this),r=0;return this.__iterate(function(i,o){t[r++]=n?[o,i]:i}),t},toIndexedSeq:function(){return new IX(this)},toJS:function(){return px(this)},toKeyedSeq:function(){return new QS(this,!0)},toMap:function(){return $h(this.toKeyedSeq())},toObject:lZ,toOrderedMap:function(){return Fl(this.toKeyedSeq())},toOrderedSet:function(){return Sf(Qn(this)?this.valueSeq():this)},toSet:function(){return tC(Qn(this)?this.valueSeq():this)},toSetSeq:function(){return new DX(this)},toSeq:function(){return eo(this)?this.toIndexedSeq():Qn(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return TD(Qn(this)?this.valueSeq():this)},toList:function(){return eC(Qn(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 In(this,PYe(this,t))},includes:function(t){return this.some(function(n){return ko(n,t)})},entries:function(){return this.__iterator(ga)},every:function(t,n){Co(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 In(this,FX(this,t,n,!0))},partition:function(t,n){return IYe(this,t,n)},find:function(t,n,r){var i=this.findEntry(t,n);return i?i[1]:r},forEach:function(t,n){return Co(this.size),this.__iterate(n?t.bind(n):t)},join:function(t){Co(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(Ky)},map:function(t,n){return In(this,MX(this,t,n))},reduce:function(t,n,r){return g5(this,t,n,r,arguments.length<2,!1)},reduceRight:function(t,n,r){return g5(this,t,n,r,arguments.length<2,!0)},reverse:function(){return In(this,uD(this,!0))},slice:function(t,n){return In(this,cD(this,t,n,!0))},some:function(t,n){Co(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 In(this,Jp(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 $Ye(this,t,n)},equals:function(t){return iZ(this,t)},entrySeq:function(){var t=this;if(t._cache)return new wf(t._cache);var n=t.toSeq().map(aXe).toIndexedSeq();return n.fromEntrySeq=function(){return t.toSeq()},n},filterNot:function(t,n){return this.filter(LT(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(vX,null,t)},flatMap:function(t,n){return In(this,LYe(this,t,n))},flatten:function(t){return In(this,BX(this,t,!0))},fromEntrySeq:function(){return new PX(this)},get:function(t,n){return this.find(function(r,i){return ko(i,t)},void 0,n)},getIn:sZ,groupBy:function(t,n){return OYe(this,t,n)},has:function(t){return this.get(t,nn)!==nn},hasIn:iXe,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 ko(n,t)})},keySeq:function(){return this.toSeq().map(oXe).toIndexedSeq()},last:function(t){return this.toSeq().reverse().first(t)},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return pb(this,t)},maxBy:function(t,n){return pb(this,n,t)},min:function(t){return pb(this,t?m5(t):y5)},minBy:function(t,n){return pb(this,n?m5(n):y5,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 In(this,NX(this,t,n,!0))},skipUntil:function(t,n){return this.skipWhile(LT(t),n)},sortBy:function(t,n){return In(this,Jp(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 In(this,DYe(this,t,n))},takeUntil:function(t,n){return this.takeWhile(LT(t),n)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=sXe(this))}});var bi=Er.prototype;bi[_X]=!0;bi[XS]=bi.values;bi.toJSON=bi.toArray;bi.__toStringMapper=Kv;bi.inspect=bi.toSource=function(){return this.toString()};bi.chain=bi.flatMap;bi.contains=bi.includes;Kf(Sa,{flip:function(){return In(this,LX(this))},mapEntries:function(t,n){var r=this,i=0;return In(this,this.toSeq().map(function(o,a){return t.call(n,[a,o],i++,r)}).fromEntrySeq())},mapKeys:function(t,n){var r=this;return In(this,this.toSeq().flip().map(function(i,o){return t.call(n,i,o,r)}).flip())}});var qy=Sa.prototype;qy[xX]=!0;qy[XS]=bi.entries;qy.toJSON=lZ;qy.__toStringMapper=function(e,t){return Kv(t)+": "+Kv(e)};Kf(Uf,{toKeyedSeq:function(){return new QS(this,!1)},filter:function(t,n){return In(this,FX(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 In(this,uD(this,!1))},slice:function(t,n){return In(this,cD(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=Uy(t,t<0?this.count():this.size);var i=this.slice(0,t);return In(this,r===1?i:i.concat($s(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 In(this,BX(this,t,!1))},get:function(t,n){return t=Hu(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=Hu(this,t),t>=0&&(this.size!==void 0?this.size===1/0||t<this.size:this.indexOf(t)!==-1)},interpose:function(t){return In(this,MYe(this,t))},interleave:function(){var t=[this].concat($s(arguments)),n=hb(this.toSeq(),ns.of,t),r=n.flatten(!0);return n.size&&(r.size=n.size*t.length),In(this,r)},keySeq:function(){return nXe(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,n){return In(this,NX(this,t,n,!1))},zip:function(){var t=[this].concat($s(arguments));return In(this,hb(this,v5,t))},zipAll:function(){var t=[this].concat($s(arguments));return In(this,hb(this,v5,t,!0))},zipWith:function(t){var n=$s(arguments);return n[0]=this,In(this,hb(this,t,n))}});var Oh=Uf.prototype;Oh[wX]=!0;Oh[kh]=!0;Kf(Ch,{get:function(t,n){return this.has(t)?t:n},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}});var nh=Ch.prototype;nh.has=bi.includes;nh.contains=nh.includes;nh.keys=nh.values;Kf(fc,qy);Kf(ns,Oh);Kf(Rh,nh);function g5(e,t,n,r,i,o){return Co(e.size),e.__iterate(function(a,s,l){i?(i=!1,n=a):n=t.call(r,n,a,s,l)},o),n}function oXe(e,t){return t}function aXe(e,t){return[t,e]}function LT(e){return function(){return!e.apply(this,arguments)}}function m5(e){return function(){return-e.apply(this,arguments)}}function v5(){return $s(arguments)}function y5(e,t){return e<t?1:e>t?-1:0}function sXe(e){if(e.size===1/0)return 0;var t=Xa(e),n=Qn(e),r=t?1:0,i=e.__iterate(n?t?function(o,a){r=31*r+b5(xo(o),xo(a))|0}:function(o,a){r=r+b5(xo(o),xo(a))|0}:t?function(o){r=31*r+xo(o)|0}:function(o){r=r+xo(o)|0});return lXe(i,r)}function lXe(e,t){return t=_m(t,3432918353),t=_m(t<<15|t>>>-15,461845907),t=_m(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=_m(t^t>>>16,2246822507),t=_m(t^t>>>13,3266489909),t=JS(t^t>>>16),t}function b5(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var Sf=function(e){function t(n){return n==null?b$():rZ(n)?n:b$().withMutations(function(r){var i=Ch(n);Co(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}(tC);Sf.isOrderedSet=rZ;var Wf=Sf.prototype;Wf[kh]=!0;Wf.zip=Oh.zip;Wf.zipWith=Oh.zipWith;Wf.zipAll=Oh.zipAll;Wf.__empty=b$;Wf.__make=uZ;function uZ(e,t){var n=Object.create(Wf);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}var _5;function b$(){return _5||(_5=uZ(Lm()))}function uXe(e){if(Eh(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(Gs(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 Vr=function(t,n){var r;uXe(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 "+$D(this)+' with property "'+p+'" since that property name is part of the Record API.'):cXe(o,p)}}return this.__ownerID=void 0,this._values=eC().withMutations(function(g){g.setSize(l._keys.length),Sa(s).forEach(function(v,y){g.set(l._indices[y],v===l._defaultValues[y]?void 0:v)})}),this},o=i.prototype=Object.create(jn);return o.constructor=i,n&&(i.displayName=n),i};Vr.prototype.toString=function(){for(var t=$D(this)+" { ",n=this._keys,r,i=0,o=n.length;i!==o;i++)r=n[i],t+=(i?", ":"")+r+": "+Kv(this.get(r));return t+" }"};Vr.prototype.equals=function(t){return this===t||Eh(t)&&rh(this).equals(rh(t))};Vr.prototype.hashCode=function(){return rh(this).hashCode()};Vr.prototype.has=function(t){return this._indices.hasOwnProperty(t)};Vr.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};Vr.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 AD(this,r)}return this};Vr.prototype.remove=function(t){return this.set(t)};Vr.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:AD(this,t)};Vr.prototype.wasAltered=function(){return this._values.wasAltered()};Vr.prototype.toSeq=function(){return rh(this)};Vr.prototype.toJS=function(){return px(this)};Vr.prototype.entries=function(){return this.__iterator(ga)};Vr.prototype.__iterator=function(t,n){return rh(this).__iterator(t,n)};Vr.prototype.__iterate=function(t,n){return rh(this).__iterate(t,n)};Vr.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var n=this._values.__ensureOwner(t);return t?AD(this,n,t):(this.__ownerID=t,this._values=n,this)};Vr.isRecord=Eh;Vr.getDescriptiveName=$D;var jn=Vr.prototype;jn[CX]=!0;jn[zy]=jn.remove;jn.deleteIn=jn.removeIn=gD;jn.getIn=sZ;jn.hasIn=bi.hasIn;jn.merge=VX;jn.mergeWith=HX;jn.mergeIn=_D;jn.mergeDeep=GX;jn.mergeDeepWith=YX;jn.mergeDeepIn=xD;jn.setIn=hD;jn.update=mD;jn.updateIn=vD;jn.withMutations=Wy;jn.asMutable=Vy;jn.asImmutable=Hy;jn[XS]=jn.entries;jn.toJSON=jn.toObject=bi.toObject;jn.inspect=jn.toSource=function(){return this.toString()};function AD(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function $D(e){return e.constructor.displayName||e.constructor.name||"Record"}function rh(e){return aD(e._keys.map(function(t){return[t,e.get(t)]}))}function cXe(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(n){pD(this.__ownerID,"Cannot set on an immutable record."),this.set(t,n)}})}catch{}}function fXe(){this.__data__=[],this.size=0}var dXe=fXe;function pXe(e,t){return e===t||e!==e&&t!==t}var Gy=pXe,hXe=Gy;function gXe(e,t){for(var n=e.length;n--;)if(hXe(e[n][0],t))return n;return-1}var nC=gXe,mXe=nC,vXe=Array.prototype,yXe=vXe.splice;function bXe(e){var t=this.__data__,n=mXe(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():yXe.call(t,n,1),--this.size,!0}var _Xe=bXe,xXe=nC;function wXe(e){var t=this.__data__,n=xXe(t,e);return n<0?void 0:t[n][1]}var SXe=wXe,CXe=nC;function EXe(e){return CXe(this.__data__,e)>-1}var kXe=EXe,TXe=nC;function RXe(e,t){var n=this.__data__,r=TXe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var AXe=RXe,$Xe=dXe,OXe=_Xe,IXe=SXe,DXe=kXe,PXe=AXe;function Ih(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])}}Ih.prototype.clear=$Xe;Ih.prototype.delete=OXe;Ih.prototype.get=IXe;Ih.prototype.has=DXe;Ih.prototype.set=PXe;var rC=Ih,LXe=rC;function MXe(){this.__data__=new LXe,this.size=0}var FXe=MXe;function NXe(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var BXe=NXe;function jXe(e){return this.__data__.get(e)}var zXe=jXe;function UXe(e){return this.__data__.has(e)}var KXe=UXe,WXe=typeof ni=="object"&&ni&&ni.Object===Object&&ni,cZ=WXe,VXe=cZ,HXe=typeof self=="object"&&self&&self.Object===Object&&self,qXe=VXe||HXe||Function("return this")(),rs=qXe,GXe=rs,YXe=GXe.Symbol,Dh=YXe,x5=Dh,fZ=Object.prototype,XXe=fZ.hasOwnProperty,ZXe=fZ.toString,xm=x5?x5.toStringTag:void 0;function JXe(e){var t=XXe.call(e,xm),n=e[xm];try{e[xm]=void 0;var r=!0}catch{}var i=ZXe.call(e);return r&&(t?e[xm]=n:delete e[xm]),i}var QXe=JXe,eZe=Object.prototype,tZe=eZe.toString;function nZe(e){return tZe.call(e)}var rZe=nZe,w5=Dh,iZe=QXe,oZe=rZe,aZe="[object Null]",sZe="[object Undefined]",S5=w5?w5.toStringTag:void 0;function lZe(e){return e==null?e===void 0?sZe:aZe:S5&&S5 in Object(e)?iZe(e):oZe(e)}var Ph=lZe;function uZe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var is=uZe,cZe=Ph,fZe=is,dZe="[object AsyncFunction]",pZe="[object Function]",hZe="[object GeneratorFunction]",gZe="[object Proxy]";function mZe(e){if(!fZe(e))return!1;var t=cZe(e);return t==pZe||t==hZe||t==dZe||t==gZe}var OD=mZe,vZe=rs,yZe=vZe["__core-js_shared__"],bZe=yZe,MT=bZe,C5=function(){var e=/[^.]+$/.exec(MT&&MT.keys&&MT.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function _Ze(e){return!!C5&&C5 in e}var xZe=_Ze,wZe=Function.prototype,SZe=wZe.toString;function CZe(e){if(e!=null){try{return SZe.call(e)}catch{}try{return e+""}catch{}}return""}var dZ=CZe,EZe=OD,kZe=xZe,TZe=is,RZe=dZ,AZe=/[\\^$.*+?()[\]{}|]/g,$Ze=/^\[object .+?Constructor\]$/,OZe=Function.prototype,IZe=Object.prototype,DZe=OZe.toString,PZe=IZe.hasOwnProperty,LZe=RegExp("^"+DZe.call(PZe).replace(AZe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function MZe(e){if(!TZe(e)||kZe(e))return!1;var t=EZe(e)?LZe:$Ze;return t.test(RZe(e))}var FZe=MZe;function NZe(e,t){return e==null?void 0:e[t]}var BZe=NZe,jZe=FZe,zZe=BZe;function UZe(e,t){var n=zZe(e,t);return jZe(n)?n:void 0}var Vf=UZe,KZe=Vf,WZe=rs,VZe=KZe(WZe,"Map"),ID=VZe,HZe=Vf,qZe=HZe(Object,"create"),iC=qZe,E5=iC;function GZe(){this.__data__=E5?E5(null):{},this.size=0}var YZe=GZe;function XZe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ZZe=XZe,JZe=iC,QZe="__lodash_hash_undefined__",eJe=Object.prototype,tJe=eJe.hasOwnProperty;function nJe(e){var t=this.__data__;if(JZe){var n=t[e];return n===QZe?void 0:n}return tJe.call(t,e)?t[e]:void 0}var rJe=nJe,iJe=iC,oJe=Object.prototype,aJe=oJe.hasOwnProperty;function sJe(e){var t=this.__data__;return iJe?t[e]!==void 0:aJe.call(t,e)}var lJe=sJe,uJe=iC,cJe="__lodash_hash_undefined__";function fJe(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=uJe&&t===void 0?cJe:t,this}var dJe=fJe,pJe=YZe,hJe=ZZe,gJe=rJe,mJe=lJe,vJe=dJe;function Lh(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])}}Lh.prototype.clear=pJe;Lh.prototype.delete=hJe;Lh.prototype.get=gJe;Lh.prototype.has=mJe;Lh.prototype.set=vJe;var yJe=Lh,k5=yJe,bJe=rC,_Je=ID;function xJe(){this.size=0,this.__data__={hash:new k5,map:new(_Je||bJe),string:new k5}}var wJe=xJe;function SJe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var CJe=SJe,EJe=CJe;function kJe(e,t){var n=e.__data__;return EJe(t)?n[typeof t=="string"?"string":"hash"]:n.map}var oC=kJe,TJe=oC;function RJe(e){var t=TJe(this,e).delete(e);return this.size-=t?1:0,t}var AJe=RJe,$Je=oC;function OJe(e){return $Je(this,e).get(e)}var IJe=OJe,DJe=oC;function PJe(e){return DJe(this,e).has(e)}var LJe=PJe,MJe=oC;function FJe(e,t){var n=MJe(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var NJe=FJe,BJe=wJe,jJe=AJe,zJe=IJe,UJe=LJe,KJe=NJe;function Mh(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])}}Mh.prototype.clear=BJe;Mh.prototype.delete=jJe;Mh.prototype.get=zJe;Mh.prototype.has=UJe;Mh.prototype.set=KJe;var DD=Mh,WJe=rC,VJe=ID,HJe=DD,qJe=200;function GJe(e,t){var n=this.__data__;if(n instanceof WJe){var r=n.__data__;if(!VJe||r.length<qJe-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new HJe(r)}return n.set(e,t),this.size=n.size,this}var YJe=GJe,XJe=rC,ZJe=FXe,JJe=BXe,QJe=zXe,eQe=KXe,tQe=YJe;function Fh(e){var t=this.__data__=new XJe(e);this.size=t.size}Fh.prototype.clear=ZJe;Fh.prototype.delete=JJe;Fh.prototype.get=QJe;Fh.prototype.has=eQe;Fh.prototype.set=tQe;var aC=Fh,nQe=Vf,rQe=function(){try{var e=nQe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),pZ=rQe,T5=pZ;function iQe(e,t,n){t=="__proto__"&&T5?T5(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var sC=iQe,oQe=sC,aQe=Gy;function sQe(e,t,n){(n!==void 0&&!aQe(e[t],n)||n===void 0&&!(t in e))&&oQe(e,t,n)}var hZ=sQe;function lQe(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 uQe=lQe,cQe=uQe,fQe=cQe(),gZ=fQe,hx={exports:{}};hx.exports;(function(e,t){var n=rs,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})(hx,hx.exports);var mZ=hx.exports,dQe=rs,pQe=dQe.Uint8Array,vZ=pQe,R5=vZ;function hQe(e){var t=new e.constructor(e.byteLength);return new R5(t).set(new R5(e)),t}var PD=hQe,gQe=PD;function mQe(e,t){var n=t?gQe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var yZ=mQe;function vQe(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var bZ=vQe,yQe=is,A5=Object.create,bQe=function(){function e(){}return function(t){if(!yQe(t))return{};if(A5)return A5(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),_Qe=bQe;function xQe(e,t){return function(n){return e(t(n))}}var _Z=xQe,wQe=_Z,SQe=wQe(Object.getPrototypeOf,Object),LD=SQe,CQe=Object.prototype;function EQe(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||CQe;return e===n}var MD=EQe,kQe=_Qe,TQe=LD,RQe=MD;function AQe(e){return typeof e.constructor=="function"&&!RQe(e)?kQe(TQe(e)):{}}var xZ=AQe;function $Qe(e){return e!=null&&typeof e=="object"}var Wl=$Qe,OQe=Ph,IQe=Wl,DQe="[object Arguments]";function PQe(e){return IQe(e)&&OQe(e)==DQe}var LQe=PQe,$5=LQe,MQe=Wl,wZ=Object.prototype,FQe=wZ.hasOwnProperty,NQe=wZ.propertyIsEnumerable,BQe=$5(function(){return arguments}())?$5:function(e){return MQe(e)&&FQe.call(e,"callee")&&!NQe.call(e,"callee")},lC=BQe,jQe=Array.isArray,Ca=jQe,zQe=9007199254740991;function UQe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=zQe}var FD=UQe,KQe=OD,WQe=FD;function VQe(e){return e!=null&&WQe(e.length)&&!KQe(e)}var Nh=VQe,HQe=Nh,qQe=Wl;function GQe(e){return qQe(e)&&HQe(e)}var YQe=GQe,gx={exports:{}};function XQe(){return!1}var ZQe=XQe;gx.exports;(function(e,t){var n=rs,r=ZQe,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})(gx,gx.exports);var uC=gx.exports,JQe=Ph,QQe=LD,eet=Wl,tet="[object Object]",net=Function.prototype,ret=Object.prototype,SZ=net.toString,iet=ret.hasOwnProperty,oet=SZ.call(Object);function aet(e){if(!eet(e)||JQe(e)!=tet)return!1;var t=QQe(e);if(t===null)return!0;var n=iet.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&SZ.call(n)==oet}var CZ=aet,set=Ph,uet=FD,cet=Wl,fet="[object Arguments]",det="[object Array]",pet="[object Boolean]",het="[object Date]",get="[object Error]",met="[object Function]",vet="[object Map]",yet="[object Number]",bet="[object Object]",_et="[object RegExp]",xet="[object Set]",wet="[object String]",Cet="[object WeakMap]",Eet="[object ArrayBuffer]",ket="[object DataView]",Tet="[object Float32Array]",Ret="[object Float64Array]",Aet="[object Int8Array]",$et="[object Int16Array]",Oet="[object Int32Array]",Iet="[object Uint8Array]",Det="[object Uint8ClampedArray]",Pet="[object Uint16Array]",Let="[object Uint32Array]",Wn={};Wn[Tet]=Wn[Ret]=Wn[Aet]=Wn[$et]=Wn[Oet]=Wn[Iet]=Wn[Det]=Wn[Pet]=Wn[Let]=!0;Wn[fet]=Wn[det]=Wn[Eet]=Wn[pet]=Wn[ket]=Wn[het]=Wn[get]=Wn[met]=Wn[vet]=Wn[yet]=Wn[bet]=Wn[_et]=Wn[xet]=Wn[wet]=Wn[Cet]=!1;function Met(e){return cet(e)&&uet(e.length)&&!!Wn[set(e)]}var Fet=Met;function Net(e){return function(t){return e(t)}}var ND=Net,mx={exports:{}};mx.exports;(function(e,t){var n=cZ,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})(mx,mx.exports);var BD=mx.exports,Bet=Fet,jet=ND,O5=BD,I5=O5&&O5.isTypedArray,zet=I5?jet(I5):Bet,jD=zet;function Uet(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var EZ=Uet,Ket=sC,Wet=Gy,Vet=Object.prototype,Het=Vet.hasOwnProperty;function qet(e,t,n){var r=e[t];(!(Het.call(e,t)&&Wet(r,n))||n===void 0&&!(t in e))&&Ket(e,t,n)}var kZ=qet,Get=kZ,Yet=sC;function Xet(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?Yet(n,s,l):Get(n,s,l)}return n}var Bh=Xet;function Zet(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Jet=Zet,Qet=9007199254740991,ett=/^(?:0|[1-9]\d*)$/;function ttt(e,t){var n=typeof e;return t=t??Qet,!!t&&(n=="number"||n!="symbol"&&ett.test(e))&&e>-1&&e%1==0&&e<t}var zD=ttt,ntt=Jet,rtt=lC,itt=Ca,ott=uC,att=zD,stt=jD,ltt=Object.prototype,utt=ltt.hasOwnProperty;function ctt(e,t){var n=itt(e),r=!n&&rtt(e),i=!n&&!r&&ott(e),o=!n&&!r&&!i&&stt(e),a=n||r||i||o,s=a?ntt(e.length,String):[],l=s.length;for(var u in e)(t||utt.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||att(u,l)))&&s.push(u);return s}var TZ=ctt;function ftt(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var dtt=ftt,ptt=is,htt=MD,gtt=dtt,mtt=Object.prototype,vtt=mtt.hasOwnProperty;function ytt(e){if(!ptt(e))return gtt(e);var t=htt(e),n=[];for(var r in e)r=="constructor"&&(t||!vtt.call(e,r))||n.push(r);return n}var btt=ytt,_tt=TZ,xtt=btt,wtt=Nh;function Stt(e){return wtt(e)?_tt(e,!0):xtt(e)}var Yy=Stt,Ctt=Bh,Ett=Yy;function ktt(e){return Ctt(e,Ett(e))}var Ttt=ktt,D5=hZ,Rtt=mZ,Att=yZ,$tt=bZ,Ott=xZ,P5=lC,L5=Ca,Itt=YQe,Dtt=uC,Ptt=OD,Ltt=is,Mtt=CZ,Ftt=jD,M5=EZ,Ntt=Ttt;function Btt(e,t,n,r,i,o,a){var s=M5(e,n),l=M5(t,n),u=a.get(l);if(u){D5(e,n,u);return}var f=o?o(s,l,n+"",e,t,a):void 0,d=f===void 0;if(d){var p=L5(l),g=!p&&Dtt(l),v=!p&&!g&&Ftt(l);f=l,p||g||v?L5(s)?f=s:Itt(s)?f=$tt(s):g?(d=!1,f=Rtt(l,!0)):v?(d=!1,f=Att(l,!0)):f=[]:Mtt(l)||P5(l)?(f=s,P5(s)?f=Ntt(s):(!Ltt(s)||Ptt(s))&&(f=Ott(l))):d=!1}d&&(a.set(l,f),i(f,l,r,o,a),a.delete(l)),D5(e,n,f)}var jtt=Btt,ztt=aC,Utt=hZ,Ktt=gZ,Wtt=jtt,Vtt=is,Htt=Yy,qtt=EZ;function RZ(e,t,n,r,i){e!==t&&Ktt(t,function(o,a){if(i||(i=new ztt),Vtt(o))Wtt(e,t,a,n,RZ,r,i);else{var s=r?r(qtt(e,a),o,a+"",e,t,i):void 0;s===void 0&&(s=o),Utt(e,a,s)}},Htt)}var Gtt=RZ;function Ytt(e){return e}var UD=Ytt;function Xtt(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 Ztt=Xtt,Jtt=Ztt,F5=Math.max;function Qtt(e,t,n){return t=F5(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=F5(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),Jtt(e,this,s)}}var AZ=Qtt;function ent(e){return function(){return e}}var tnt=ent,nnt=tnt,N5=pZ,rnt=UD,int=N5?function(e,t){return N5(e,"toString",{configurable:!0,enumerable:!1,value:nnt(t),writable:!0})}:rnt,ont=int,ant=800,snt=16,lnt=Date.now;function unt(e){var t=0,n=0;return function(){var r=lnt(),i=snt-(r-n);if(n=r,i>0){if(++t>=ant)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var cnt=unt,fnt=ont,dnt=cnt,pnt=dnt(fnt),$Z=pnt,hnt=UD,gnt=AZ,mnt=$Z;function vnt(e,t){return mnt(gnt(e,t,hnt),e+"")}var ynt=vnt,bnt=Gy,_nt=Nh,xnt=zD,wnt=is;function Snt(e,t,n){if(!wnt(n))return!1;var r=typeof t;return(r=="number"?_nt(n)&&xnt(t,n.length):r=="string"&&t in n)?bnt(n[t],e):!1}var Cnt=Snt,Ent=ynt,knt=Cnt;function Tnt(e){return Ent(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&&knt(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 Rnt=Tnt,Ant=Gtt,$nt=Rnt,Ont=$nt(function(e,t,n){Ant(e,t,n)}),Int=Ont;const vx=_i(Int);function cC({children:e,className:t,clipboardValue:n,sx:r,sxChildren:i,title:o}){const a=Xn();return S.jsxs(Ht,{spacing:o?1.5:0,sx:vx({width:"100%",flex:1,overflowY:"auto"},r),children:[S.jsx(Yt,{fontSize:"14px",fontWeight:700,color:_t[400],children:o}),S.jsxs(at,{className:t,sx:vx({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"?_t[400]:"white"}},i),children:[n?S.jsx(Pq,{value:n}):null,e]})]})}var KD={},Dnt=vn;Object.defineProperty(KD,"__esModule",{value:!0});var OZ=KD.default=void 0,Pnt=Dnt(yn()),Lnt=S,Mnt=(0,Pnt.default)((0,Lnt.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDown");OZ=KD.default=Mnt;function IZ({count:e,inputProps:t}){const n=Xn();return e?t?(()=>{const o=a=>`${e.toString().length*8+(a?18:0)}px`;return t?S.jsx(lS,{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})():(()=>S.jsx(at,{display:"flex",alignItems:"center",className:"notification-count",sx:{borderRadius:"6px",padding:"4px 8px",backgroundColor:n.palette.mode==="light"?"grey.100":"grey.800"},children:S.jsx(Yt,{className:"notification-count",color:"text.secondary",sx:{fontSize:"12px",fontWeight:600},children:e})}))():null}var WD={},Fnt=vn;Object.defineProperty(WD,"__esModule",{value:!0});var DZ=WD.default=void 0,Nnt=Fnt(yn()),Bnt=S,jnt=(0,Nnt.default)((0,Bnt.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");DZ=WD.default=jnt;function znt({id:e,label:t,tooltip:n,notificationsProps:r}){return S.jsxs(at,{display:"flex",justifyContent:"space-between",width:"100%",children:[S.jsxs(at,{display:"flex",gap:.5,alignItems:"center",children:[S.jsx(yV,{htmlFor:e,sx:{fontWeight:600,fontSize:"12px",color:"grey.500"},children:t}),n?S.jsx(yi,{title:n,children:S.jsx(DZ,{sx:{fontSize:12,color:"grey.600"}})}):null]}),r?S.jsx(IZ,{...r}):null]})}function jh(e){const{children:t,description:n,hasError:r,id:i,label:o,notificationsProps:a,tooltip:s,sx:l}=e;return S.jsxs(Ht,{width:"100%",sx:l,gap:.5,children:[o?S.jsx(znt,{id:i,label:o,tooltip:s,notificationsProps:a}):null,S.jsxs(fV,{error:r,fullWidth:!0,children:[t,n?S.jsx(dV,{children:n}):null]})]})}const Unt=({item:e,selected:t,isDarkMode:n,index:r})=>S.jsxs(ov,{value:e.value,sx:{display:"flex",justifyContent:"space-between",fontWeight:500,fontSize:"14px",color:n&&_t[400]||(t?As[500]:_t[700]),"&:hover":{backgroundColor:n?_t[800]:As[50],color:n?_t[400]:As[500],"& .notification-count":{backgroundColor:n?_t[850]:As[100],color:n?_t[400]:As[500]}}},children:[e.label||e.value,e.notificationCount?S.jsx(IZ,{count:e.notificationCount}):null]},`select-${r}`);function zh({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:g,onClose:v,sx:y,iconSx:w,...b}){const x=Ty();return S.jsx(jh,{id:i,hasError:r,description:t,label:a,tooltip:f,sx:y,children:S.jsx(TV,{...b,onClose:v,labelId:i,value:d==null?void 0:d.toString(),onChange:l,size:u,disabled:n,displayEmpty:!0,renderValue:()=>{var C;return!d||d===""?p:g&&g()||`${(C=o==null?void 0:o.find(k=>k.value===d))==null?void 0:C.label}`},sx:{backgroundColor:C=>C.palette.background.paper,borderRadius:1,padding:.5,"&.MuiOutlinedInput-root":{"& fieldset":{border:C=>`1px solid ${C.palette.divider}`}}},inputProps:{id:i,name:s||i,sx:{color:_t[600],fontSize:"14px",fontWeight:400,px:"16px",py:u==="small"?"10px":"14px",h:"48px"}},MenuProps:{PaperProps:{sx:{border:C=>`1px solid ${C.palette.divider}`,boxShadow:C=>C.palette.mode==="light"?"0px 2px 4px 0px #0000000D":"0px 10px 10px 0px #0000000D","&& .Mui-selected, .Mui-selected.Mui-selected:hover":{backgroundColor:x?_t[800]:As[50]}}},MenuListProps:{sx:{backgroundColor:x?_t[900]:""}}},IconComponent:C=>S.jsx(OZ,{...C,fontSize:"16px",sx:{px:"9px",color:n?"":`${x?_t[300]:_t[600]} !important`,...w}}),children:e||(o==null?void 0:o.map((C,k)=>Unt({item:C,index:k,selected:C.value===d,isDarkMode:x})))})})}const Knt=["Assistant","System","User"],PZ=({canSelectRole:e,children:t,index:n,message:r,role:i,name:o})=>{const a=gn(ts),[s,l]=T.useState(!1),u=f=>{const d=f.target.value;d&&a(p=>{var g,v;return{...p,prompt:{...p.prompt,messages:(v=(g=p.prompt)==null?void 0:g.messages)==null?void 0:v.map((y,w)=>({...y,...w===n?{role:d}:{}}))}}}),l(!1)};return S.jsxs(at,{children:[S.jsx(at,{sx:{border:f=>`1px solid ${f.palette.divider}`,borderRadius:1}}),S.jsxs(Ht,{direction:"row",width:"100%",sx:{gap:2,flex:10,paddingY:1,"&:hover":{background:f=>f.palette.background.paper}},children:[S.jsxs(at,{sx:{flex:1,paddingLeft:2},children:[s?S.jsx(zh,{onClose:()=>l(!1),defaultOpen:!0,items:Knt.map(f=>({label:f,value:f.toLowerCase()})),id:"role-select",value:r==null?void 0:r.role,onChange:u,sx:{width:"fit-content"},iconSx:{px:0,marginRight:"2px !important"}}):S.jsx(Yt,{onClick:()=>e&&l(!0),color:"text.primary",sx:{p:1,borderRadius:.5,marginTop:1,cursor:e?"pointer":"default",fontSize:"12px",fontWeight:700,width:"fit-content",...e&&{"&:hover":{backgroundColor:f=>f.palette.divider}}},children:i}),o?S.jsx(Yt,{color:"text.secondary",variant:"caption",sx:{ml:1,width:"fit-content"},children:o}):null]}),S.jsx(at,{width:"100%",flex:8,children:t})]})]},n)};function LZ({completion:e,chatMode:t}){const[n,r]=T.useState(Rn.EditorState.createEmpty()),[i,o]=T.useState(!0);T.useEffect(()=>{let l=Rn.EditorState.createEmpty();e&&(l=a(l,e)),r(l),o(!0)},[e]);const a=(l,u)=>{const f=l.getCurrentContent(),d=f.getBlockMap(),p=d.last().getKey(),g=d.last().getLength(),v=new Rn.SelectionState({anchorKey:p,anchorOffset:g,focusKey:p,focusOffset:g}),y=Rn.Modifier.insertText(f,v,u,Sf.of("COMPLETION")),w=Rn.EditorState.push(l,y,"insert-characters");return Rn.EditorState.forceSelection(w,y.getSelectionAfter())},s=()=>S.jsx(cC,{className:"completion-editor",clipboardValue:n.getCurrentContent().getPlainText(),sxChildren:{borderColor:l=>l.palette.success.main,"&:hover":{borderColor:l=>l.palette.success.main}},children:S.jsx(Rn.Editor,{editorState:n,onChange:l=>{l=Rn.EditorState.push(l,n.getCurrentContent(),"insert-characters"),r(l)}})});return t?S.jsx(PZ,{role:"ASSISTANT",children:s()}):S.jsxs(at,{marginTop:2,children:[S.jsxs(Ht,{sx:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingRight:"6px"},children:[S.jsx(Yt,{fontSize:"14px",fontWeight:700,color:dw[400],children:"Completion"}),S.jsx(or,{onClick:()=>o(!i),children:i?S.jsx(IS,{}):S.jsx(DS,{})})]}),S.jsx(at,{sx:{border:l=>`1px solid ${l.palette.divider}`,borderRadius:1,marginTop:1}}),S.jsx(at,{sx:{maxHeight:i?"220px":"0px",transition:"max-height 0.5s ease-in-out",overflow:"auto",marginTop:2},children:s()})]})}function MZ(e,t){switch(t){case"f-string":return new RegExp(`\\{+(${e}+)\\}+`,"g");default:throw new Error(`Unsupported template format ${t}`)}}function Wnt(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 MZ(r,t)}default:throw new Error(`Unsupported template format ${t}`)}}function Vnt(e,t){switch(t){case"f-string":return e=e.replaceAll("{{","{"),e=e.replaceAll("}}","}"),e;default:throw new Error(`Unsupported template format ${t}`)}}function Hnt(e){switch(e){case"f-string":return/\{+([^{}]+)\}+|{{|}}/g;default:throw new Error(`Unsupported template format ${e}`)}}function FZ(e,t){switch(t){case"f-string":return`{${e}}`;default:throw new Error(`Unsupported template format ${t}`)}}function VD(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=FZ(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 yx={exports:{}};/**
|
|
462
|
+
* @license
|
|
463
|
+
* Lodash <https://lodash.com/>
|
|
464
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
465
|
+
* Released under MIT license <https://lodash.com/license>
|
|
466
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
467
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
468
|
+
*/yx.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,g=4,v=1,y=2,w=1,b=2,x=4,C=8,k=16,R=32,A=64,O=128,z=256,V=512,D=30,W="...",ie=800,se=16,K=1,G=2,Q=3,le=1/0,Z=9007199254740991,ee=17976931348623157e292,P=0/0,ge=4294967295,B=ge-1,L=ge>>>1,ae=[["ary",O],["bind",w],["bindKey",b],["curry",C],["curryRight",k],["flip",V],["partial",R],["partialRight",A],["rearg",z]],ue="[object Arguments]",ne="[object Array]",we="[object AsyncFunction]",Te="[object Boolean]",Ee="[object Date]",Le="[object DOMException]",Be="[object Error]",Ie="[object Function]",Pe="[object GeneratorFunction]",je="[object Map]",Fe="[object Number]",tt="[object Null]",Xe="[object Object]",Ye="[object Promise]",st="[object Proxy]",he="[object RegExp]",Ae="[object Set]",Re="[object String]",Ne="[object Symbol]",U="[object Undefined]",H="[object WeakMap]",fe="[object WeakSet]",Y="[object ArrayBuffer]",X="[object DataView]",oe="[object Float32Array]",xe="[object Float64Array]",Ce="[object Int8Array]",_e="[object Int16Array]",nt="[object Int32Array]",rt="[object Uint8Array]",de="[object Uint8ClampedArray]",me="[object Uint16Array]",$e="[object Uint32Array]",Ve=/\b__p \+= '';/g,He=/\b(__p \+=) '' \+/g,Ze=/(__e\(.*?\)|\b__t\)) \+\n'';/g,dt=/&(?:amp|lt|gt|quot|#39);/g,ct=/[&<>"']/g,ot=RegExp(dt.source),ht=RegExp(ct.source),Ot=/<%-([\s\S]+?)%>/g,rn=/<%([\s\S]+?)%>/g,Qt=/<%=([\s\S]+?)%>/g,Xt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,br=/^\w*$/,kn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fr=/[\\^$.*+?()[\]{}|]/g,_r=RegExp(Fr.source),kr=/^\s+/,Hr=/\s/,xi=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Zs=/\{\n\/\* \[wrapped with (.+)\] \*/,wi=/,? & /,qr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Hl=/[()=,{}\[\]\/\s]/,$n=/\\(\\)?/g,On=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,co=/\w*$/,dr=/^[-+]0x[0-9a-f]+$/i,$t=/^0b[01]+$/i,pc=/^\[object .+?Constructor\]$/,Jf=/^0o[0-7]+$/i,lt=/^(?:0|[1-9]\d*)$/,xr=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ea=/($^)/,hc=/['\n\r\u2028\u2029\\]/g,ka="\\ud800-\\udfff",Ta="\\u0300-\\u036f",Vh="\\ufe20-\\ufe2f",Hh="\\u20d0-\\u20ff",qh=Ta+Vh+Hh,Qf="\\u2700-\\u27bf",Gh="a-z\\xdf-\\xf6\\xf8-\\xff",No="\\xac\\xb1\\xd7\\xf7",t0="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Yh="\\u2000-\\u206f",n0=" \\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",ed="A-Z\\xc0-\\xd6\\xd8-\\xde",r0="\\ufe0e\\ufe0f",i0=No+t0+Yh+n0,Xh="['’]",td="["+ka+"]",Zh="["+i0+"]",gc="["+qh+"]",Jh="\\d+",o0="["+Qf+"]",Qh="["+Gh+"]",eg="[^"+ka+i0+Jh+Qf+Gh+ed+"]",tg="\\ud83c[\\udffb-\\udfff]",EC="(?:"+gc+"|"+tg+")",a0="[^"+ka+"]",ng="(?:\\ud83c[\\udde6-\\uddff]){2}",rg="[\\ud800-\\udbff][\\udc00-\\udfff]",sn="["+ed+"]",ig="\\u200d",og="(?:"+Qh+"|"+eg+")",Gr="(?:"+sn+"|"+eg+")",Ra="(?:"+Xh+"(?:d|ll|m|re|s|t|ve))?",ql="(?:"+Xh+"(?:D|LL|M|RE|S|T|VE))?",ag=EC+"?",Gl="["+r0+"]?",s0="(?:"+ig+"(?:"+[a0,ng,rg].join("|")+")"+Gl+ag+")*",sg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",kC="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",nd=Gl+ag+s0,Yl="(?:"+[o0,ng,rg].join("|")+")"+nd,l0="(?:"+[a0+gc+"?",gc,ng,rg,td].join("|")+")",os=RegExp(Xh,"g"),rd=RegExp(gc,"g"),Js=RegExp(tg+"(?="+tg+")|"+l0+nd,"g"),ar=RegExp([sn+"?"+Qh+"+"+Ra+"(?="+[Zh,sn,"$"].join("|")+")",Gr+"+"+ql+"(?="+[Zh,sn+og,"$"].join("|")+")",sn+"?"+og+"+"+Ra,sn+"+"+ql,kC,sg,Jh,Yl].join("|"),"g"),u0=RegExp("["+ig+ka+qh+r0+"]"),lg=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,c0=["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"],id=-1,Tn={};Tn[oe]=Tn[xe]=Tn[Ce]=Tn[_e]=Tn[nt]=Tn[rt]=Tn[de]=Tn[me]=Tn[$e]=!0,Tn[ue]=Tn[ne]=Tn[Y]=Tn[Te]=Tn[X]=Tn[Ee]=Tn[Be]=Tn[Ie]=Tn[je]=Tn[Fe]=Tn[Xe]=Tn[he]=Tn[Ae]=Tn[Re]=Tn[H]=!1;var Ut={};Ut[ue]=Ut[ne]=Ut[Y]=Ut[X]=Ut[Te]=Ut[Ee]=Ut[oe]=Ut[xe]=Ut[Ce]=Ut[_e]=Ut[nt]=Ut[je]=Ut[Fe]=Ut[Xe]=Ut[he]=Ut[Ae]=Ut[Re]=Ut[Ne]=Ut[rt]=Ut[de]=Ut[me]=Ut[$e]=!0,Ut[Be]=Ut[Ie]=Ut[H]=!1;var Xl={À:"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"},Zl={"&":"&","<":"<",">":">",'"':""","'":"'"},Jl={"&":"&","<":"<",">":">",""":'"',"'":"'"},f0={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},d0=parseFloat,ug=parseInt,cg=typeof ni=="object"&&ni&&ni.Object===Object&&ni,TC=typeof self=="object"&&self&&self.Object===Object&&self,Dr=cg||TC||Function("return this")(),mc=t&&!t.nodeType&&t,Qs=mc&&!0&&e&&!e.nodeType&&e,fg=Qs&&Qs.exports===mc,dg=fg&&cg.process,Si=function(){try{var te=Qs&&Qs.require&&Qs.require("util").types;return te||dg&&dg.binding&&dg.binding("util")}catch{}}(),p0=Si&&Si.isArrayBuffer,h0=Si&&Si.isDate,el=Si&&Si.isMap,vc=Si&&Si.isRegExp,pg=Si&&Si.isSet,od=Si&&Si.isTypedArray;function Lt(te,be,ye){switch(ye.length){case 0:return te.call(be);case 1:return te.call(be,ye[0]);case 2:return te.call(be,ye[0],ye[1]);case 3:return te.call(be,ye[0],ye[1],ye[2])}return te.apply(be,ye)}function g0(te,be,ye,We){for(var it=-1,wt=te==null?0:te.length;++it<wt;){var fn=te[it];be(We,fn,ye(fn),te)}return We}function Ci(te,be){for(var ye=-1,We=te==null?0:te.length;++ye<We&&be(te[ye],ye,te)!==!1;);return te}function m0(te,be){for(var ye=te==null?0:te.length;ye--&&be(te[ye],ye,te)!==!1;);return te}function fo(te,be){for(var ye=-1,We=te==null?0:te.length;++ye<We;)if(!be(te[ye],ye,te))return!1;return!0}function Bo(te,be){for(var ye=-1,We=te==null?0:te.length,it=0,wt=[];++ye<We;){var fn=te[ye];be(fn,ye,te)&&(wt[it++]=fn)}return wt}function yc(te,be){var ye=te==null?0:te.length;return!!ye&&as(te,be,0)>-1}function ad(te,be,ye){for(var We=-1,it=te==null?0:te.length;++We<it;)if(ye(be,te[We]))return!0;return!1}function Wt(te,be){for(var ye=-1,We=te==null?0:te.length,it=Array(We);++ye<We;)it[ye]=be(te[ye],ye,te);return it}function Ln(te,be){for(var ye=-1,We=be.length,it=te.length;++ye<We;)te[it+ye]=be[ye];return te}function Ql(te,be,ye,We){var it=-1,wt=te==null?0:te.length;for(We&&wt&&(ye=te[++it]);++it<wt;)ye=be(ye,te[it],it,te);return ye}function v0(te,be,ye,We){var it=te==null?0:te.length;for(We&&it&&(ye=te[--it]);it--;)ye=be(ye,te[it],it,te);return ye}function hg(te,be){for(var ye=-1,We=te==null?0:te.length;++ye<We;)if(be(te[ye],ye,te))return!0;return!1}var RC=Fi("length");function Mn(te){return te.split("")}function gg(te){return te.match(qr)||[]}function mg(te,be,ye){var We;return ye(te,function(it,wt,fn){if(be(it,wt,fn))return We=wt,!1}),We}function Nr(te,be,ye,We){for(var it=te.length,wt=ye+(We?1:-1);We?wt--:++wt<it;)if(be(te[wt],wt,te))return wt;return-1}function as(te,be,ye){return be===be?OC(te,be,ye):Nr(te,vg,ye)}function y0(te,be,ye,We){for(var it=ye-1,wt=te.length;++it<wt;)if(We(te[it],be))return it;return-1}function vg(te){return te!==te}function sd(te,be){var ye=te==null?0:te.length;return ye?ud(te,be)/ye:P}function Fi(te){return function(be){return be==null?n:be[te]}}function ld(te){return function(be){return te==null?n:te[be]}}function bc(te,be,ye,We,it){return it(te,function(wt,fn,Vt){ye=We?(We=!1,wt):be(ye,wt,fn,Vt)}),ye}function b0(te,be){var ye=te.length;for(te.sort(be);ye--;)te[ye]=te[ye].value;return te}function ud(te,be){for(var ye,We=-1,it=te.length;++We<it;){var wt=be(te[We]);wt!==n&&(ye=ye===n?wt:ye+wt)}return ye}function _c(te,be){for(var ye=-1,We=Array(te);++ye<te;)We[ye]=be(ye);return We}function pr(te,be){return Wt(be,function(ye){return[ye,te[ye]]})}function yg(te){return te&&te.slice(0,F(te)+1).replace(kr,"")}function ai(te){return function(be){return te(be)}}function ss(te,be){return Wt(be,function(ye){return te[ye]})}function Aa(te,be){return te.has(be)}function bg(te,be){for(var ye=-1,We=te.length;++ye<We&&as(be,te[ye],0)>-1;);return ye}function cd(te,be){for(var ye=te.length;ye--&&as(be,te[ye],0)>-1;);return ye}function jo(te,be){for(var ye=te.length,We=0;ye--;)te[ye]===be&&++We;return We}var Br=ld(Xl),fd=ld(Zl);function AC(te){return"\\"+f0[te]}function $C(te,be){return te==null?n:te[be]}function $a(te){return u0.test(te)}function _0(te){return lg.test(te)}function x0(te){for(var be,ye=[];!(be=te.next()).done;)ye.push(be.value);return ye}function _g(te){var be=-1,ye=Array(te.size);return te.forEach(function(We,it){ye[++be]=[it,We]}),ye}function xg(te,be){return function(ye){return te(be(ye))}}function ls(te,be){for(var ye=-1,We=te.length,it=0,wt=[];++ye<We;){var fn=te[ye];(fn===be||fn===f)&&(te[ye]=f,wt[it++]=ye)}return wt}function dd(te){var be=-1,ye=Array(te.size);return te.forEach(function(We){ye[++be]=We}),ye}function w0(te){var be=-1,ye=Array(te.size);return te.forEach(function(We){ye[++be]=[We,We]}),ye}function OC(te,be,ye){for(var We=ye-1,it=te.length;++We<it;)if(te[We]===be)return We;return-1}function m(te,be,ye){for(var We=ye+1;We--;)if(te[We]===be)return We;return We}function E(te){return $a(te)?re(te):RC(te)}function I(te){return $a(te)?pe(te):Mn(te)}function F(te){for(var be=te.length;be--&&Hr.test(te.charAt(be)););return be}var j=ld(Jl);function re(te){for(var be=Js.lastIndex=0;Js.test(te);)++be;return be}function pe(te){return te.match(Js)||[]}function Se(te){return te.match(ar)||[]}var Oe=function te(be){be=be==null?Dr:De.defaults(Dr.Object(),be,De.pick(Dr,c0));var ye=be.Array,We=be.Date,it=be.Error,wt=be.Function,fn=be.Math,Vt=be.Object,eu=be.RegExp,BQ=be.String,zo=be.TypeError,S0=ye.prototype,jQ=wt.prototype,pd=Vt.prototype,C0=be["__core-js_shared__"],E0=jQ.toString,wn=pd.hasOwnProperty,zQ=0,FP=function(){var c=/[^.]+$/.exec(C0&&C0.keys&&C0.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),k0=pd.toString,UQ=E0.call(Vt),KQ=Dr._,WQ=eu("^"+E0.call(wn).replace(Fr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),T0=fg?be.Buffer:n,tu=be.Symbol,R0=be.Uint8Array,NP=T0?T0.allocUnsafe:n,A0=xg(Vt.getPrototypeOf,Vt),BP=Vt.create,jP=pd.propertyIsEnumerable,$0=S0.splice,zP=tu?tu.isConcatSpreadable:n,wg=tu?tu.iterator:n,xc=tu?tu.toStringTag:n,O0=function(){try{var c=kc(Vt,"defineProperty");return c({},"",{}),c}catch{}}(),VQ=be.clearTimeout!==Dr.clearTimeout&&be.clearTimeout,HQ=We&&We.now!==Dr.Date.now&&We.now,qQ=be.setTimeout!==Dr.setTimeout&&be.setTimeout,I0=fn.ceil,D0=fn.floor,IC=Vt.getOwnPropertySymbols,GQ=T0?T0.isBuffer:n,UP=be.isFinite,YQ=S0.join,XQ=xg(Vt.keys,Vt),Pr=fn.max,si=fn.min,ZQ=We.now,JQ=be.parseInt,KP=fn.random,QQ=S0.reverse,DC=kc(be,"DataView"),Sg=kc(be,"Map"),PC=kc(be,"Promise"),hd=kc(be,"Set"),Cg=kc(be,"WeakMap"),Eg=kc(Vt,"create"),P0=Cg&&new Cg,gd={},eee=Tc(DC),tee=Tc(Sg),nee=Tc(PC),ree=Tc(hd),iee=Tc(Cg),L0=tu?tu.prototype:n,kg=L0?L0.valueOf:n,WP=L0?L0.toString:n;function q(c){if(hr(c)&&!It(c)&&!(c instanceof Zt)){if(c instanceof Uo)return c;if(wn.call(c,"__wrapped__"))return VL(c)}return new Uo(c)}var md=function(){function c(){}return function(h){if(!sr(h))return{};if(BP)return BP(h);c.prototype=h;var _=new c;return c.prototype=n,_}}();function M0(){}function Uo(c,h){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=n}q.templateSettings={escape:Ot,evaluate:rn,interpolate:Qt,variable:"",imports:{_:q}},q.prototype=M0.prototype,q.prototype.constructor=q,Uo.prototype=md(M0.prototype),Uo.prototype.constructor=Uo;function Zt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ge,this.__views__=[]}function oee(){var c=new Zt(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 aee(){if(this.__filtered__){var c=new Zt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}function see(){var c=this.__wrapped__.value(),h=this.__dir__,_=It(c),$=h<0,N=_?c.length:0,J=bte(0,N,this.__views__),ce=J.start,ve=J.end,ke=ve-ce,Ue=$?ve:ce-1,Ke=this.__iteratees__,qe=Ke.length,ut=0,xt=si(ke,this.__takeCount__);if(!_||!$&&N==ke&&xt==ke)return hL(c,this.__actions__);var Rt=[];e:for(;ke--&&ut<xt;){Ue+=h;for(var Bt=-1,At=c[Ue];++Bt<qe;){var qt=Ke[Bt],en=qt.iteratee,go=qt.type,Ti=en(At);if(go==G)At=Ti;else if(!Ti){if(go==K)continue e;break e}}Rt[ut++]=At}return Rt}Zt.prototype=md(M0.prototype),Zt.prototype.constructor=Zt;function wc(c){var h=-1,_=c==null?0:c.length;for(this.clear();++h<_;){var $=c[h];this.set($[0],$[1])}}function lee(){this.__data__=Eg?Eg(null):{},this.size=0}function uee(c){var h=this.has(c)&&delete this.__data__[c];return this.size-=h?1:0,h}function cee(c){var h=this.__data__;if(Eg){var _=h[c];return _===l?n:_}return wn.call(h,c)?h[c]:n}function fee(c){var h=this.__data__;return Eg?h[c]!==n:wn.call(h,c)}function dee(c,h){var _=this.__data__;return this.size+=this.has(c)?0:1,_[c]=Eg&&h===n?l:h,this}wc.prototype.clear=lee,wc.prototype.delete=uee,wc.prototype.get=cee,wc.prototype.has=fee,wc.prototype.set=dee;function tl(c){var h=-1,_=c==null?0:c.length;for(this.clear();++h<_;){var $=c[h];this.set($[0],$[1])}}function pee(){this.__data__=[],this.size=0}function hee(c){var h=this.__data__,_=F0(h,c);if(_<0)return!1;var $=h.length-1;return _==$?h.pop():$0.call(h,_,1),--this.size,!0}function gee(c){var h=this.__data__,_=F0(h,c);return _<0?n:h[_][1]}function mee(c){return F0(this.__data__,c)>-1}function vee(c,h){var _=this.__data__,$=F0(_,c);return $<0?(++this.size,_.push([c,h])):_[$][1]=h,this}tl.prototype.clear=pee,tl.prototype.delete=hee,tl.prototype.get=gee,tl.prototype.has=mee,tl.prototype.set=vee;function nl(c){var h=-1,_=c==null?0:c.length;for(this.clear();++h<_;){var $=c[h];this.set($[0],$[1])}}function yee(){this.size=0,this.__data__={hash:new wc,map:new(Sg||tl),string:new wc}}function bee(c){var h=Y0(this,c).delete(c);return this.size-=h?1:0,h}function _ee(c){return Y0(this,c).get(c)}function xee(c){return Y0(this,c).has(c)}function wee(c,h){var _=Y0(this,c),$=_.size;return _.set(c,h),this.size+=_.size==$?0:1,this}nl.prototype.clear=yee,nl.prototype.delete=bee,nl.prototype.get=_ee,nl.prototype.has=xee,nl.prototype.set=wee;function Sc(c){var h=-1,_=c==null?0:c.length;for(this.__data__=new nl;++h<_;)this.add(c[h])}function See(c){return this.__data__.set(c,l),this}function Cee(c){return this.__data__.has(c)}Sc.prototype.add=Sc.prototype.push=See,Sc.prototype.has=Cee;function Oa(c){var h=this.__data__=new tl(c);this.size=h.size}function Eee(){this.__data__=new tl,this.size=0}function kee(c){var h=this.__data__,_=h.delete(c);return this.size=h.size,_}function Tee(c){return this.__data__.get(c)}function Ree(c){return this.__data__.has(c)}function Aee(c,h){var _=this.__data__;if(_ instanceof tl){var $=_.__data__;if(!Sg||$.length<i-1)return $.push([c,h]),this.size=++_.size,this;_=this.__data__=new nl($)}return _.set(c,h),this.size=_.size,this}Oa.prototype.clear=Eee,Oa.prototype.delete=kee,Oa.prototype.get=Tee,Oa.prototype.has=Ree,Oa.prototype.set=Aee;function VP(c,h){var _=It(c),$=!_&&Rc(c),N=!_&&!$&&au(c),J=!_&&!$&&!N&&_d(c),ce=_||$||N||J,ve=ce?_c(c.length,BQ):[],ke=ve.length;for(var Ue in c)(h||wn.call(c,Ue))&&!(ce&&(Ue=="length"||N&&(Ue=="offset"||Ue=="parent")||J&&(Ue=="buffer"||Ue=="byteLength"||Ue=="byteOffset")||al(Ue,ke)))&&ve.push(Ue);return ve}function HP(c){var h=c.length;return h?c[VC(0,h-1)]:n}function $ee(c,h){return X0(Ni(c),Cc(h,0,c.length))}function Oee(c){return X0(Ni(c))}function LC(c,h,_){(_!==n&&!Ia(c[h],_)||_===n&&!(h in c))&&rl(c,h,_)}function Tg(c,h,_){var $=c[h];(!(wn.call(c,h)&&Ia($,_))||_===n&&!(h in c))&&rl(c,h,_)}function F0(c,h){for(var _=c.length;_--;)if(Ia(c[_][0],h))return _;return-1}function Iee(c,h,_,$){return nu(c,function(N,J,ce){h($,N,_(N),ce)}),$}function qP(c,h){return c&&cs(h,jr(h),c)}function Dee(c,h){return c&&cs(h,ji(h),c)}function rl(c,h,_){h=="__proto__"&&O0?O0(c,h,{configurable:!0,enumerable:!0,value:_,writable:!0}):c[h]=_}function MC(c,h){for(var _=-1,$=h.length,N=ye($),J=c==null;++_<$;)N[_]=J?n:mE(c,h[_]);return N}function Cc(c,h,_){return c===c&&(_!==n&&(c=c<=_?c:_),h!==n&&(c=c>=h?c:h)),c}function Ko(c,h,_,$,N,J){var ce,ve=h&d,ke=h&p,Ue=h&g;if(_&&(ce=N?_(c,$,N,J):_(c)),ce!==n)return ce;if(!sr(c))return c;var Ke=It(c);if(Ke){if(ce=xte(c),!ve)return Ni(c,ce)}else{var qe=li(c),ut=qe==Ie||qe==Pe;if(au(c))return vL(c,ve);if(qe==Xe||qe==ue||ut&&!N){if(ce=ke||ut?{}:ML(c),!ve)return ke?cte(c,Dee(ce,c)):ute(c,qP(ce,c))}else{if(!Ut[qe])return N?c:{};ce=wte(c,qe,ve)}}J||(J=new Oa);var xt=J.get(c);if(xt)return xt;J.set(c,ce),fM(c)?c.forEach(function(At){ce.add(Ko(At,h,_,At,c,J))}):uM(c)&&c.forEach(function(At,qt){ce.set(qt,Ko(At,h,_,qt,c,J))});var Rt=Ue?ke?nE:tE:ke?ji:jr,Bt=Ke?n:Rt(c);return Ci(Bt||c,function(At,qt){Bt&&(qt=At,At=c[qt]),Tg(ce,qt,Ko(At,h,_,qt,c,J))}),ce}function Pee(c){var h=jr(c);return function(_){return GP(_,c,h)}}function GP(c,h,_){var $=_.length;if(c==null)return!$;for(c=Vt(c);$--;){var N=_[$],J=h[N],ce=c[N];if(ce===n&&!(N in c)||!J(ce))return!1}return!0}function YP(c,h,_){if(typeof c!="function")throw new zo(a);return Pg(function(){c.apply(n,_)},h)}function Rg(c,h,_,$){var N=-1,J=yc,ce=!0,ve=c.length,ke=[],Ue=h.length;if(!ve)return ke;_&&(h=Wt(h,ai(_))),$?(J=ad,ce=!1):h.length>=i&&(J=Aa,ce=!1,h=new Sc(h));e:for(;++N<ve;){var Ke=c[N],qe=_==null?Ke:_(Ke);if(Ke=$||Ke!==0?Ke:0,ce&&qe===qe){for(var ut=Ue;ut--;)if(h[ut]===qe)continue e;ke.push(Ke)}else J(h,qe,$)||ke.push(Ke)}return ke}var nu=wL(us),XP=wL(NC,!0);function Lee(c,h){var _=!0;return nu(c,function($,N,J){return _=!!h($,N,J),_}),_}function N0(c,h,_){for(var $=-1,N=c.length;++$<N;){var J=c[$],ce=h(J);if(ce!=null&&(ve===n?ce===ce&&!ho(ce):_(ce,ve)))var ve=ce,ke=J}return ke}function Mee(c,h,_,$){var N=c.length;for(_=Mt(_),_<0&&(_=-_>N?0:N+_),$=$===n||$>N?N:Mt($),$<0&&($+=N),$=_>$?0:pM($);_<$;)c[_++]=h;return c}function ZP(c,h){var _=[];return nu(c,function($,N,J){h($,N,J)&&_.push($)}),_}function Yr(c,h,_,$,N){var J=-1,ce=c.length;for(_||(_=Cte),N||(N=[]);++J<ce;){var ve=c[J];h>0&&_(ve)?h>1?Yr(ve,h-1,_,$,N):Ln(N,ve):$||(N[N.length]=ve)}return N}var FC=SL(),JP=SL(!0);function us(c,h){return c&&FC(c,h,jr)}function NC(c,h){return c&&JP(c,h,jr)}function B0(c,h){return Bo(h,function(_){return sl(c[_])})}function Ec(c,h){h=iu(h,c);for(var _=0,$=h.length;c!=null&&_<$;)c=c[fs(h[_++])];return _&&_==$?c:n}function QP(c,h,_){var $=h(c);return It(c)?$:Ln($,_(c))}function Ei(c){return c==null?c===n?U:tt:xc&&xc in Vt(c)?yte(c):Ote(c)}function BC(c,h){return c>h}function Fee(c,h){return c!=null&&wn.call(c,h)}function Nee(c,h){return c!=null&&h in Vt(c)}function Bee(c,h,_){return c>=si(h,_)&&c<Pr(h,_)}function jC(c,h,_){for(var $=_?ad:yc,N=c[0].length,J=c.length,ce=J,ve=ye(J),ke=1/0,Ue=[];ce--;){var Ke=c[ce];ce&&h&&(Ke=Wt(Ke,ai(h))),ke=si(Ke.length,ke),ve[ce]=!_&&(h||N>=120&&Ke.length>=120)?new Sc(ce&&Ke):n}Ke=c[0];var qe=-1,ut=ve[0];e:for(;++qe<N&&Ue.length<ke;){var xt=Ke[qe],Rt=h?h(xt):xt;if(xt=_||xt!==0?xt:0,!(ut?Aa(ut,Rt):$(Ue,Rt,_))){for(ce=J;--ce;){var Bt=ve[ce];if(!(Bt?Aa(Bt,Rt):$(c[ce],Rt,_)))continue e}ut&&ut.push(Rt),Ue.push(xt)}}return Ue}function jee(c,h,_,$){return us(c,function(N,J,ce){h($,_(N),J,ce)}),$}function Ag(c,h,_){h=iu(h,c),c=jL(c,h);var $=c==null?c:c[fs(Vo(h))];return $==null?n:Lt($,c,_)}function eL(c){return hr(c)&&Ei(c)==ue}function zee(c){return hr(c)&&Ei(c)==Y}function Uee(c){return hr(c)&&Ei(c)==Ee}function $g(c,h,_,$,N){return c===h?!0:c==null||h==null||!hr(c)&&!hr(h)?c!==c&&h!==h:Kee(c,h,_,$,$g,N)}function Kee(c,h,_,$,N,J){var ce=It(c),ve=It(h),ke=ce?ne:li(c),Ue=ve?ne:li(h);ke=ke==ue?Xe:ke,Ue=Ue==ue?Xe:Ue;var Ke=ke==Xe,qe=Ue==Xe,ut=ke==Ue;if(ut&&au(c)){if(!au(h))return!1;ce=!0,Ke=!1}if(ut&&!Ke)return J||(J=new Oa),ce||_d(c)?DL(c,h,_,$,N,J):mte(c,h,ke,_,$,N,J);if(!(_&v)){var xt=Ke&&wn.call(c,"__wrapped__"),Rt=qe&&wn.call(h,"__wrapped__");if(xt||Rt){var Bt=xt?c.value():c,At=Rt?h.value():h;return J||(J=new Oa),N(Bt,At,_,$,J)}}return ut?(J||(J=new Oa),vte(c,h,_,$,N,J)):!1}function Wee(c){return hr(c)&&li(c)==je}function zC(c,h,_,$){var N=_.length,J=N,ce=!$;if(c==null)return!J;for(c=Vt(c);N--;){var ve=_[N];if(ce&&ve[2]?ve[1]!==c[ve[0]]:!(ve[0]in c))return!1}for(;++N<J;){ve=_[N];var ke=ve[0],Ue=c[ke],Ke=ve[1];if(ce&&ve[2]){if(Ue===n&&!(ke in c))return!1}else{var qe=new Oa;if($)var ut=$(Ue,Ke,ke,c,h,qe);if(!(ut===n?$g(Ke,Ue,v|y,$,qe):ut))return!1}}return!0}function tL(c){if(!sr(c)||kte(c))return!1;var h=sl(c)?WQ:pc;return h.test(Tc(c))}function Vee(c){return hr(c)&&Ei(c)==he}function Hee(c){return hr(c)&&li(c)==Ae}function qee(c){return hr(c)&&n1(c.length)&&!!Tn[Ei(c)]}function nL(c){return typeof c=="function"?c:c==null?zi:typeof c=="object"?It(c)?oL(c[0],c[1]):iL(c):CM(c)}function UC(c){if(!Dg(c))return XQ(c);var h=[];for(var _ in Vt(c))wn.call(c,_)&&_!="constructor"&&h.push(_);return h}function Gee(c){if(!sr(c))return $te(c);var h=Dg(c),_=[];for(var $ in c)$=="constructor"&&(h||!wn.call(c,$))||_.push($);return _}function KC(c,h){return c<h}function rL(c,h){var _=-1,$=Bi(c)?ye(c.length):[];return nu(c,function(N,J,ce){$[++_]=h(N,J,ce)}),$}function iL(c){var h=iE(c);return h.length==1&&h[0][2]?NL(h[0][0],h[0][1]):function(_){return _===c||zC(_,c,h)}}function oL(c,h){return aE(c)&&FL(h)?NL(fs(c),h):function(_){var $=mE(_,c);return $===n&&$===h?vE(_,c):$g(h,$,v|y)}}function j0(c,h,_,$,N){c!==h&&FC(h,function(J,ce){if(N||(N=new Oa),sr(J))Yee(c,h,ce,_,j0,$,N);else{var ve=$?$(lE(c,ce),J,ce+"",c,h,N):n;ve===n&&(ve=J),LC(c,ce,ve)}},ji)}function Yee(c,h,_,$,N,J,ce){var ve=lE(c,_),ke=lE(h,_),Ue=ce.get(ke);if(Ue){LC(c,_,Ue);return}var Ke=J?J(ve,ke,_+"",c,h,ce):n,qe=Ke===n;if(qe){var ut=It(ke),xt=!ut&&au(ke),Rt=!ut&&!xt&&_d(ke);Ke=ke,ut||xt||Rt?It(ve)?Ke=ve:wr(ve)?Ke=Ni(ve):xt?(qe=!1,Ke=vL(ke,!0)):Rt?(qe=!1,Ke=yL(ke,!0)):Ke=[]:Lg(ke)||Rc(ke)?(Ke=ve,Rc(ve)?Ke=hM(ve):(!sr(ve)||sl(ve))&&(Ke=ML(ke))):qe=!1}qe&&(ce.set(ke,Ke),N(Ke,ke,$,J,ce),ce.delete(ke)),LC(c,_,Ke)}function aL(c,h){var _=c.length;if(_)return h+=h<0?_:0,al(h,_)?c[h]:n}function sL(c,h,_){h.length?h=Wt(h,function(J){return It(J)?function(ce){return Ec(ce,J.length===1?J[0]:J)}:J}):h=[zi];var $=-1;h=Wt(h,ai(Tt()));var N=rL(c,function(J,ce,ve){var ke=Wt(h,function(Ue){return Ue(J)});return{criteria:ke,index:++$,value:J}});return b0(N,function(J,ce){return lte(J,ce,_)})}function Xee(c,h){return lL(c,h,function(_,$){return vE(c,$)})}function lL(c,h,_){for(var $=-1,N=h.length,J={};++$<N;){var ce=h[$],ve=Ec(c,ce);_(ve,ce)&&Og(J,iu(ce,c),ve)}return J}function Zee(c){return function(h){return Ec(h,c)}}function WC(c,h,_,$){var N=$?y0:as,J=-1,ce=h.length,ve=c;for(c===h&&(h=Ni(h)),_&&(ve=Wt(c,ai(_)));++J<ce;)for(var ke=0,Ue=h[J],Ke=_?_(Ue):Ue;(ke=N(ve,Ke,ke,$))>-1;)ve!==c&&$0.call(ve,ke,1),$0.call(c,ke,1);return c}function uL(c,h){for(var _=c?h.length:0,$=_-1;_--;){var N=h[_];if(_==$||N!==J){var J=N;al(N)?$0.call(c,N,1):GC(c,N)}}return c}function VC(c,h){return c+D0(KP()*(h-c+1))}function Jee(c,h,_,$){for(var N=-1,J=Pr(I0((h-c)/(_||1)),0),ce=ye(J);J--;)ce[$?J:++N]=c,c+=_;return ce}function HC(c,h){var _="";if(!c||h<1||h>Z)return _;do h%2&&(_+=c),h=D0(h/2),h&&(c+=c);while(h);return _}function Kt(c,h){return uE(BL(c,h,zi),c+"")}function Qee(c){return HP(xd(c))}function ete(c,h){var _=xd(c);return X0(_,Cc(h,0,_.length))}function Og(c,h,_,$){if(!sr(c))return c;h=iu(h,c);for(var N=-1,J=h.length,ce=J-1,ve=c;ve!=null&&++N<J;){var ke=fs(h[N]),Ue=_;if(ke==="__proto__"||ke==="constructor"||ke==="prototype")return c;if(N!=ce){var Ke=ve[ke];Ue=$?$(Ke,ke,ve):n,Ue===n&&(Ue=sr(Ke)?Ke:al(h[N+1])?[]:{})}Tg(ve,ke,Ue),ve=ve[ke]}return c}var cL=P0?function(c,h){return P0.set(c,h),c}:zi,tte=O0?function(c,h){return O0(c,"toString",{configurable:!0,enumerable:!1,value:bE(h),writable:!0})}:zi;function nte(c){return X0(xd(c))}function Wo(c,h,_){var $=-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 J=ye(N);++$<N;)J[$]=c[$+h];return J}function rte(c,h){var _;return nu(c,function($,N,J){return _=h($,N,J),!_}),!!_}function z0(c,h,_){var $=0,N=c==null?$:c.length;if(typeof h=="number"&&h===h&&N<=L){for(;$<N;){var J=$+N>>>1,ce=c[J];ce!==null&&!ho(ce)&&(_?ce<=h:ce<h)?$=J+1:N=J}return N}return qC(c,h,zi,_)}function qC(c,h,_,$){var N=0,J=c==null?0:c.length;if(J===0)return 0;h=_(h);for(var ce=h!==h,ve=h===null,ke=ho(h),Ue=h===n;N<J;){var Ke=D0((N+J)/2),qe=_(c[Ke]),ut=qe!==n,xt=qe===null,Rt=qe===qe,Bt=ho(qe);if(ce)var At=$||Rt;else Ue?At=Rt&&($||ut):ve?At=Rt&&ut&&($||!xt):ke?At=Rt&&ut&&!xt&&($||!Bt):xt||Bt?At=!1:At=$?qe<=h:qe<h;At?N=Ke+1:J=Ke}return si(J,B)}function fL(c,h){for(var _=-1,$=c.length,N=0,J=[];++_<$;){var ce=c[_],ve=h?h(ce):ce;if(!_||!Ia(ve,ke)){var ke=ve;J[N++]=ce===0?0:ce}}return J}function dL(c){return typeof c=="number"?c:ho(c)?P:+c}function po(c){if(typeof c=="string")return c;if(It(c))return Wt(c,po)+"";if(ho(c))return WP?WP.call(c):"";var h=c+"";return h=="0"&&1/c==-le?"-0":h}function ru(c,h,_){var $=-1,N=yc,J=c.length,ce=!0,ve=[],ke=ve;if(_)ce=!1,N=ad;else if(J>=i){var Ue=h?null:hte(c);if(Ue)return dd(Ue);ce=!1,N=Aa,ke=new Sc}else ke=h?[]:ve;e:for(;++$<J;){var Ke=c[$],qe=h?h(Ke):Ke;if(Ke=_||Ke!==0?Ke:0,ce&&qe===qe){for(var ut=ke.length;ut--;)if(ke[ut]===qe)continue e;h&&ke.push(qe),ve.push(Ke)}else N(ke,qe,_)||(ke!==ve&&ke.push(qe),ve.push(Ke))}return ve}function GC(c,h){return h=iu(h,c),c=jL(c,h),c==null||delete c[fs(Vo(h))]}function pL(c,h,_,$){return Og(c,h,_(Ec(c,h)),$)}function U0(c,h,_,$){for(var N=c.length,J=$?N:-1;($?J--:++J<N)&&h(c[J],J,c););return _?Wo(c,$?0:J,$?J+1:N):Wo(c,$?J+1:0,$?N:J)}function hL(c,h){var _=c;return _ instanceof Zt&&(_=_.value()),Ql(h,function($,N){return N.func.apply(N.thisArg,Ln([$],N.args))},_)}function YC(c,h,_){var $=c.length;if($<2)return $?ru(c[0]):[];for(var N=-1,J=ye($);++N<$;)for(var ce=c[N],ve=-1;++ve<$;)ve!=N&&(J[N]=Rg(J[N]||ce,c[ve],h,_));return ru(Yr(J,1),h,_)}function gL(c,h,_){for(var $=-1,N=c.length,J=h.length,ce={};++$<N;){var ve=$<J?h[$]:n;_(ce,c[$],ve)}return ce}function XC(c){return wr(c)?c:[]}function ZC(c){return typeof c=="function"?c:zi}function iu(c,h){return It(c)?c:aE(c,h)?[c]:WL(_n(c))}var ite=Kt;function ou(c,h,_){var $=c.length;return _=_===n?$:_,!h&&_>=$?c:Wo(c,h,_)}var mL=VQ||function(c){return Dr.clearTimeout(c)};function vL(c,h){if(h)return c.slice();var _=c.length,$=NP?NP(_):new c.constructor(_);return c.copy($),$}function JC(c){var h=new c.constructor(c.byteLength);return new R0(h).set(new R0(c)),h}function ote(c,h){var _=h?JC(c.buffer):c.buffer;return new c.constructor(_,c.byteOffset,c.byteLength)}function ate(c){var h=new c.constructor(c.source,co.exec(c));return h.lastIndex=c.lastIndex,h}function ste(c){return kg?Vt(kg.call(c)):{}}function yL(c,h){var _=h?JC(c.buffer):c.buffer;return new c.constructor(_,c.byteOffset,c.length)}function bL(c,h){if(c!==h){var _=c!==n,$=c===null,N=c===c,J=ho(c),ce=h!==n,ve=h===null,ke=h===h,Ue=ho(h);if(!ve&&!Ue&&!J&&c>h||J&&ce&&ke&&!ve&&!Ue||$&&ce&&ke||!_&&ke||!N)return 1;if(!$&&!J&&!Ue&&c<h||Ue&&_&&N&&!$&&!J||ve&&_&&N||!ce&&N||!ke)return-1}return 0}function lte(c,h,_){for(var $=-1,N=c.criteria,J=h.criteria,ce=N.length,ve=_.length;++$<ce;){var ke=bL(N[$],J[$]);if(ke){if($>=ve)return ke;var Ue=_[$];return ke*(Ue=="desc"?-1:1)}}return c.index-h.index}function _L(c,h,_,$){for(var N=-1,J=c.length,ce=_.length,ve=-1,ke=h.length,Ue=Pr(J-ce,0),Ke=ye(ke+Ue),qe=!$;++ve<ke;)Ke[ve]=h[ve];for(;++N<ce;)(qe||N<J)&&(Ke[_[N]]=c[N]);for(;Ue--;)Ke[ve++]=c[N++];return Ke}function xL(c,h,_,$){for(var N=-1,J=c.length,ce=-1,ve=_.length,ke=-1,Ue=h.length,Ke=Pr(J-ve,0),qe=ye(Ke+Ue),ut=!$;++N<Ke;)qe[N]=c[N];for(var xt=N;++ke<Ue;)qe[xt+ke]=h[ke];for(;++ce<ve;)(ut||N<J)&&(qe[xt+_[ce]]=c[N++]);return qe}function Ni(c,h){var _=-1,$=c.length;for(h||(h=ye($));++_<$;)h[_]=c[_];return h}function cs(c,h,_,$){var N=!_;_||(_={});for(var J=-1,ce=h.length;++J<ce;){var ve=h[J],ke=$?$(_[ve],c[ve],ve,_,c):n;ke===n&&(ke=c[ve]),N?rl(_,ve,ke):Tg(_,ve,ke)}return _}function ute(c,h){return cs(c,oE(c),h)}function cte(c,h){return cs(c,PL(c),h)}function K0(c,h){return function(_,$){var N=It(_)?g0:Iee,J=h?h():{};return N(_,c,Tt($,2),J)}}function vd(c){return Kt(function(h,_){var $=-1,N=_.length,J=N>1?_[N-1]:n,ce=N>2?_[2]:n;for(J=c.length>3&&typeof J=="function"?(N--,J):n,ce&&ki(_[0],_[1],ce)&&(J=N<3?n:J,N=1),h=Vt(h);++$<N;){var ve=_[$];ve&&c(h,ve,$,J)}return h})}function wL(c,h){return function(_,$){if(_==null)return _;if(!Bi(_))return c(_,$);for(var N=_.length,J=h?N:-1,ce=Vt(_);(h?J--:++J<N)&&$(ce[J],J,ce)!==!1;);return _}}function SL(c){return function(h,_,$){for(var N=-1,J=Vt(h),ce=$(h),ve=ce.length;ve--;){var ke=ce[c?ve:++N];if(_(J[ke],ke,J)===!1)break}return h}}function fte(c,h,_){var $=h&w,N=Ig(c);function J(){var ce=this&&this!==Dr&&this instanceof J?N:c;return ce.apply($?_:this,arguments)}return J}function CL(c){return function(h){h=_n(h);var _=$a(h)?I(h):n,$=_?_[0]:h.charAt(0),N=_?ou(_,1).join(""):h.slice(1);return $[c]()+N}}function yd(c){return function(h){return Ql(wM(xM(h).replace(os,"")),c,"")}}function Ig(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 _=md(c.prototype),$=c.apply(_,h);return sr($)?$:_}}function dte(c,h,_){var $=Ig(c);function N(){for(var J=arguments.length,ce=ye(J),ve=J,ke=bd(N);ve--;)ce[ve]=arguments[ve];var Ue=J<3&&ce[0]!==ke&&ce[J-1]!==ke?[]:ls(ce,ke);if(J-=Ue.length,J<_)return AL(c,h,W0,N.placeholder,n,ce,Ue,n,n,_-J);var Ke=this&&this!==Dr&&this instanceof N?$:c;return Lt(Ke,this,ce)}return N}function EL(c){return function(h,_,$){var N=Vt(h);if(!Bi(h)){var J=Tt(_,3);h=jr(h),_=function(ve){return J(N[ve],ve,N)}}var ce=c(h,_,$);return ce>-1?N[J?h[ce]:ce]:n}}function kL(c){return ol(function(h){var _=h.length,$=_,N=Uo.prototype.thru;for(c&&h.reverse();$--;){var J=h[$];if(typeof J!="function")throw new zo(a);if(N&&!ce&&G0(J)=="wrapper")var ce=new Uo([],!0)}for($=ce?$:_;++$<_;){J=h[$];var ve=G0(J),ke=ve=="wrapper"?rE(J):n;ke&&sE(ke[0])&&ke[1]==(O|C|R|z)&&!ke[4].length&&ke[9]==1?ce=ce[G0(ke[0])].apply(ce,ke[3]):ce=J.length==1&&sE(J)?ce[ve]():ce.thru(J)}return function(){var Ue=arguments,Ke=Ue[0];if(ce&&Ue.length==1&&It(Ke))return ce.plant(Ke).value();for(var qe=0,ut=_?h[qe].apply(this,Ue):Ke;++qe<_;)ut=h[qe].call(this,ut);return ut}})}function W0(c,h,_,$,N,J,ce,ve,ke,Ue){var Ke=h&O,qe=h&w,ut=h&b,xt=h&(C|k),Rt=h&V,Bt=ut?n:Ig(c);function At(){for(var qt=arguments.length,en=ye(qt),go=qt;go--;)en[go]=arguments[go];if(xt)var Ti=bd(At),mo=jo(en,Ti);if($&&(en=_L(en,$,N,xt)),J&&(en=xL(en,J,ce,xt)),qt-=mo,xt&&qt<Ue){var Sr=ls(en,Ti);return AL(c,h,W0,At.placeholder,_,en,Sr,ve,ke,Ue-qt)}var Da=qe?_:this,ul=ut?Da[c]:c;return qt=en.length,ve?en=Ite(en,ve):Rt&&qt>1&&en.reverse(),Ke&&ke<qt&&(en.length=ke),this&&this!==Dr&&this instanceof At&&(ul=Bt||Ig(ul)),ul.apply(Da,en)}return At}function TL(c,h){return function(_,$){return jee(_,c,h($),{})}}function V0(c,h){return function(_,$){var N;if(_===n&&$===n)return h;if(_!==n&&(N=_),$!==n){if(N===n)return $;typeof _=="string"||typeof $=="string"?(_=po(_),$=po($)):(_=dL(_),$=dL($)),N=c(_,$)}return N}}function QC(c){return ol(function(h){return h=Wt(h,ai(Tt())),Kt(function(_){var $=this;return c(h,function(N){return Lt(N,$,_)})})})}function H0(c,h){h=h===n?" ":po(h);var _=h.length;if(_<2)return _?HC(h,c):h;var $=HC(h,I0(c/E(h)));return $a(h)?ou(I($),0,c).join(""):$.slice(0,c)}function pte(c,h,_,$){var N=h&w,J=Ig(c);function ce(){for(var ve=-1,ke=arguments.length,Ue=-1,Ke=$.length,qe=ye(Ke+ke),ut=this&&this!==Dr&&this instanceof ce?J:c;++Ue<Ke;)qe[Ue]=$[Ue];for(;ke--;)qe[Ue++]=arguments[++ve];return Lt(ut,N?_:this,qe)}return ce}function RL(c){return function(h,_,$){return $&&typeof $!="number"&&ki(h,_,$)&&(_=$=n),h=ll(h),_===n?(_=h,h=0):_=ll(_),$=$===n?h<_?1:-1:ll($),Jee(h,_,$,c)}}function q0(c){return function(h,_){return typeof h=="string"&&typeof _=="string"||(h=Ho(h),_=Ho(_)),c(h,_)}}function AL(c,h,_,$,N,J,ce,ve,ke,Ue){var Ke=h&C,qe=Ke?ce:n,ut=Ke?n:ce,xt=Ke?J:n,Rt=Ke?n:J;h|=Ke?R:A,h&=~(Ke?A:R),h&x||(h&=~(w|b));var Bt=[c,h,N,xt,qe,Rt,ut,ve,ke,Ue],At=_.apply(n,Bt);return sE(c)&&zL(At,Bt),At.placeholder=$,UL(At,c,h)}function eE(c){var h=fn[c];return function(_,$){if(_=Ho(_),$=$==null?0:si(Mt($),292),$&&UP(_)){var N=(_n(_)+"e").split("e"),J=h(N[0]+"e"+(+N[1]+$));return N=(_n(J)+"e").split("e"),+(N[0]+"e"+(+N[1]-$))}return h(_)}}var hte=hd&&1/dd(new hd([,-0]))[1]==le?function(c){return new hd(c)}:wE;function $L(c){return function(h){var _=li(h);return _==je?_g(h):_==Ae?w0(h):pr(h,c(h))}}function il(c,h,_,$,N,J,ce,ve){var ke=h&b;if(!ke&&typeof c!="function")throw new zo(a);var Ue=$?$.length:0;if(Ue||(h&=~(R|A),$=N=n),ce=ce===n?ce:Pr(Mt(ce),0),ve=ve===n?ve:Mt(ve),Ue-=N?N.length:0,h&A){var Ke=$,qe=N;$=N=n}var ut=ke?n:rE(c),xt=[c,h,_,$,N,Ke,qe,J,ce,ve];if(ut&&Ate(xt,ut),c=xt[0],h=xt[1],_=xt[2],$=xt[3],N=xt[4],ve=xt[9]=xt[9]===n?ke?0:c.length:Pr(xt[9]-Ue,0),!ve&&h&(C|k)&&(h&=~(C|k)),!h||h==w)var Rt=fte(c,h,_);else h==C||h==k?Rt=dte(c,h,ve):(h==R||h==(w|R))&&!N.length?Rt=pte(c,h,_,$):Rt=W0.apply(n,xt);var Bt=ut?cL:zL;return UL(Bt(Rt,xt),c,h)}function OL(c,h,_,$){return c===n||Ia(c,pd[_])&&!wn.call($,_)?h:c}function IL(c,h,_,$,N,J){return sr(c)&&sr(h)&&(J.set(h,c),j0(c,h,n,IL,J),J.delete(h)),c}function gte(c){return Lg(c)?n:c}function DL(c,h,_,$,N,J){var ce=_&v,ve=c.length,ke=h.length;if(ve!=ke&&!(ce&&ke>ve))return!1;var Ue=J.get(c),Ke=J.get(h);if(Ue&&Ke)return Ue==h&&Ke==c;var qe=-1,ut=!0,xt=_&y?new Sc:n;for(J.set(c,h),J.set(h,c);++qe<ve;){var Rt=c[qe],Bt=h[qe];if($)var At=ce?$(Bt,Rt,qe,h,c,J):$(Rt,Bt,qe,c,h,J);if(At!==n){if(At)continue;ut=!1;break}if(xt){if(!hg(h,function(qt,en){if(!Aa(xt,en)&&(Rt===qt||N(Rt,qt,_,$,J)))return xt.push(en)})){ut=!1;break}}else if(!(Rt===Bt||N(Rt,Bt,_,$,J))){ut=!1;break}}return J.delete(c),J.delete(h),ut}function mte(c,h,_,$,N,J,ce){switch(_){case X:if(c.byteLength!=h.byteLength||c.byteOffset!=h.byteOffset)return!1;c=c.buffer,h=h.buffer;case Y:return!(c.byteLength!=h.byteLength||!J(new R0(c),new R0(h)));case Te:case Ee:case Fe:return Ia(+c,+h);case Be:return c.name==h.name&&c.message==h.message;case he:case Re:return c==h+"";case je:var ve=_g;case Ae:var ke=$&v;if(ve||(ve=dd),c.size!=h.size&&!ke)return!1;var Ue=ce.get(c);if(Ue)return Ue==h;$|=y,ce.set(c,h);var Ke=DL(ve(c),ve(h),$,N,J,ce);return ce.delete(c),Ke;case Ne:if(kg)return kg.call(c)==kg.call(h)}return!1}function vte(c,h,_,$,N,J){var ce=_&v,ve=tE(c),ke=ve.length,Ue=tE(h),Ke=Ue.length;if(ke!=Ke&&!ce)return!1;for(var qe=ke;qe--;){var ut=ve[qe];if(!(ce?ut in h:wn.call(h,ut)))return!1}var xt=J.get(c),Rt=J.get(h);if(xt&&Rt)return xt==h&&Rt==c;var Bt=!0;J.set(c,h),J.set(h,c);for(var At=ce;++qe<ke;){ut=ve[qe];var qt=c[ut],en=h[ut];if($)var go=ce?$(en,qt,ut,h,c,J):$(qt,en,ut,c,h,J);if(!(go===n?qt===en||N(qt,en,_,$,J):go)){Bt=!1;break}At||(At=ut=="constructor")}if(Bt&&!At){var Ti=c.constructor,mo=h.constructor;Ti!=mo&&"constructor"in c&&"constructor"in h&&!(typeof Ti=="function"&&Ti instanceof Ti&&typeof mo=="function"&&mo instanceof mo)&&(Bt=!1)}return J.delete(c),J.delete(h),Bt}function ol(c){return uE(BL(c,n,GL),c+"")}function tE(c){return QP(c,jr,oE)}function nE(c){return QP(c,ji,PL)}var rE=P0?function(c){return P0.get(c)}:wE;function G0(c){for(var h=c.name+"",_=gd[h],$=wn.call(gd,h)?_.length:0;$--;){var N=_[$],J=N.func;if(J==null||J==c)return N.name}return h}function bd(c){var h=wn.call(q,"placeholder")?q:c;return h.placeholder}function Tt(){var c=q.iteratee||_E;return c=c===_E?nL:c,arguments.length?c(arguments[0],arguments[1]):c}function Y0(c,h){var _=c.__data__;return Ete(h)?_[typeof h=="string"?"string":"hash"]:_.map}function iE(c){for(var h=jr(c),_=h.length;_--;){var $=h[_],N=c[$];h[_]=[$,N,FL(N)]}return h}function kc(c,h){var _=$C(c,h);return tL(_)?_:n}function yte(c){var h=wn.call(c,xc),_=c[xc];try{c[xc]=n;var $=!0}catch{}var N=k0.call(c);return $&&(h?c[xc]=_:delete c[xc]),N}var oE=IC?function(c){return c==null?[]:(c=Vt(c),Bo(IC(c),function(h){return jP.call(c,h)}))}:SE,PL=IC?function(c){for(var h=[];c;)Ln(h,oE(c)),c=A0(c);return h}:SE,li=Ei;(DC&&li(new DC(new ArrayBuffer(1)))!=X||Sg&&li(new Sg)!=je||PC&&li(PC.resolve())!=Ye||hd&&li(new hd)!=Ae||Cg&&li(new Cg)!=H)&&(li=function(c){var h=Ei(c),_=h==Xe?c.constructor:n,$=_?Tc(_):"";if($)switch($){case eee:return X;case tee:return je;case nee:return Ye;case ree:return Ae;case iee:return H}return h});function bte(c,h,_){for(var $=-1,N=_.length;++$<N;){var J=_[$],ce=J.size;switch(J.type){case"drop":c+=ce;break;case"dropRight":h-=ce;break;case"take":h=si(h,c+ce);break;case"takeRight":c=Pr(c,h-ce);break}}return{start:c,end:h}}function _te(c){var h=c.match(Zs);return h?h[1].split(wi):[]}function LL(c,h,_){h=iu(h,c);for(var $=-1,N=h.length,J=!1;++$<N;){var ce=fs(h[$]);if(!(J=c!=null&&_(c,ce)))break;c=c[ce]}return J||++$!=N?J:(N=c==null?0:c.length,!!N&&n1(N)&&al(ce,N)&&(It(c)||Rc(c)))}function xte(c){var h=c.length,_=new c.constructor(h);return h&&typeof c[0]=="string"&&wn.call(c,"index")&&(_.index=c.index,_.input=c.input),_}function ML(c){return typeof c.constructor=="function"&&!Dg(c)?md(A0(c)):{}}function wte(c,h,_){var $=c.constructor;switch(h){case Y:return JC(c);case Te:case Ee:return new $(+c);case X:return ote(c,_);case oe:case xe:case Ce:case _e:case nt:case rt:case de:case me:case $e:return yL(c,_);case je:return new $;case Fe:case Re:return new $(c);case he:return ate(c);case Ae:return new $;case Ne:return ste(c)}}function Ste(c,h){var _=h.length;if(!_)return c;var $=_-1;return h[$]=(_>1?"& ":"")+h[$],h=h.join(_>2?", ":" "),c.replace(xi,`{
|
|
469
|
+
/* [wrapped with `+h+`] */
|
|
470
|
+
`)}function Cte(c){return It(c)||Rc(c)||!!(zP&&c&&c[zP])}function al(c,h){var _=typeof c;return h=h??Z,!!h&&(_=="number"||_!="symbol"&<.test(c))&&c>-1&&c%1==0&&c<h}function ki(c,h,_){if(!sr(_))return!1;var $=typeof h;return($=="number"?Bi(_)&&al(h,_.length):$=="string"&&h in _)?Ia(_[h],c):!1}function aE(c,h){if(It(c))return!1;var _=typeof c;return _=="number"||_=="symbol"||_=="boolean"||c==null||ho(c)?!0:br.test(c)||!Xt.test(c)||h!=null&&c in Vt(h)}function Ete(c){var h=typeof c;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?c!=="__proto__":c===null}function sE(c){var h=G0(c),_=q[h];if(typeof _!="function"||!(h in Zt.prototype))return!1;if(c===_)return!0;var $=rE(_);return!!$&&c===$[0]}function kte(c){return!!FP&&FP in c}var Tte=C0?sl:CE;function Dg(c){var h=c&&c.constructor,_=typeof h=="function"&&h.prototype||pd;return c===_}function FL(c){return c===c&&!sr(c)}function NL(c,h){return function(_){return _==null?!1:_[c]===h&&(h!==n||c in Vt(_))}}function Rte(c){var h=e1(c,function($){return _.size===u&&_.clear(),$}),_=h.cache;return h}function Ate(c,h){var _=c[1],$=h[1],N=_|$,J=N<(w|b|O),ce=$==O&&_==C||$==O&&_==z&&c[7].length<=h[8]||$==(O|z)&&h[7].length<=h[8]&&_==C;if(!(J||ce))return c;$&w&&(c[2]=h[2],N|=_&w?0:x);var ve=h[3];if(ve){var ke=c[3];c[3]=ke?_L(ke,ve,h[4]):ve,c[4]=ke?ls(c[3],f):h[4]}return ve=h[5],ve&&(ke=c[5],c[5]=ke?xL(ke,ve,h[6]):ve,c[6]=ke?ls(c[5],f):h[6]),ve=h[7],ve&&(c[7]=ve),$&O&&(c[8]=c[8]==null?h[8]:si(c[8],h[8])),c[9]==null&&(c[9]=h[9]),c[0]=h[0],c[1]=N,c}function $te(c){var h=[];if(c!=null)for(var _ in Vt(c))h.push(_);return h}function Ote(c){return k0.call(c)}function BL(c,h,_){return h=Pr(h===n?c.length-1:h,0),function(){for(var $=arguments,N=-1,J=Pr($.length-h,0),ce=ye(J);++N<J;)ce[N]=$[h+N];N=-1;for(var ve=ye(h+1);++N<h;)ve[N]=$[N];return ve[h]=_(ce),Lt(c,this,ve)}}function jL(c,h){return h.length<2?c:Ec(c,Wo(h,0,-1))}function Ite(c,h){for(var _=c.length,$=si(h.length,_),N=Ni(c);$--;){var J=h[$];c[$]=al(J,_)?N[J]:n}return c}function lE(c,h){if(!(h==="constructor"&&typeof c[h]=="function")&&h!="__proto__")return c[h]}var zL=KL(cL),Pg=qQ||function(c,h){return Dr.setTimeout(c,h)},uE=KL(tte);function UL(c,h,_){var $=h+"";return uE(c,Ste($,Dte(_te($),_)))}function KL(c){var h=0,_=0;return function(){var $=ZQ(),N=se-($-_);if(_=$,N>0){if(++h>=ie)return arguments[0]}else h=0;return c.apply(n,arguments)}}function X0(c,h){var _=-1,$=c.length,N=$-1;for(h=h===n?$:h;++_<h;){var J=VC(_,N),ce=c[J];c[J]=c[_],c[_]=ce}return c.length=h,c}var WL=Rte(function(c){var h=[];return c.charCodeAt(0)===46&&h.push(""),c.replace(kn,function(_,$,N,J){h.push(N?J.replace($n,"$1"):$||_)}),h});function fs(c){if(typeof c=="string"||ho(c))return c;var h=c+"";return h=="0"&&1/c==-le?"-0":h}function Tc(c){if(c!=null){try{return E0.call(c)}catch{}try{return c+""}catch{}}return""}function Dte(c,h){return Ci(ae,function(_){var $="_."+_[0];h&_[1]&&!yc(c,$)&&c.push($)}),c.sort()}function VL(c){if(c instanceof Zt)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 Pte(c,h,_){(_?ki(c,h,_):h===n)?h=1:h=Pr(Mt(h),0);var $=c==null?0:c.length;if(!$||h<1)return[];for(var N=0,J=0,ce=ye(I0($/h));N<$;)ce[J++]=Wo(c,N,N+=h);return ce}function Lte(c){for(var h=-1,_=c==null?0:c.length,$=0,N=[];++h<_;){var J=c[h];J&&(N[$++]=J)}return N}function Mte(){var c=arguments.length;if(!c)return[];for(var h=ye(c-1),_=arguments[0],$=c;$--;)h[$-1]=arguments[$];return Ln(It(_)?Ni(_):[_],Yr(h,1))}var Fte=Kt(function(c,h){return wr(c)?Rg(c,Yr(h,1,wr,!0)):[]}),Nte=Kt(function(c,h){var _=Vo(h);return wr(_)&&(_=n),wr(c)?Rg(c,Yr(h,1,wr,!0),Tt(_,2)):[]}),Bte=Kt(function(c,h){var _=Vo(h);return wr(_)&&(_=n),wr(c)?Rg(c,Yr(h,1,wr,!0),n,_):[]});function jte(c,h,_){var $=c==null?0:c.length;return $?(h=_||h===n?1:Mt(h),Wo(c,h<0?0:h,$)):[]}function zte(c,h,_){var $=c==null?0:c.length;return $?(h=_||h===n?1:Mt(h),h=$-h,Wo(c,0,h<0?0:h)):[]}function Ute(c,h){return c&&c.length?U0(c,Tt(h,3),!0,!0):[]}function Kte(c,h){return c&&c.length?U0(c,Tt(h,3),!0):[]}function Wte(c,h,_,$){var N=c==null?0:c.length;return N?(_&&typeof _!="number"&&ki(c,h,_)&&(_=0,$=N),Mee(c,h,_,$)):[]}function HL(c,h,_){var $=c==null?0:c.length;if(!$)return-1;var N=_==null?0:Mt(_);return N<0&&(N=Pr($+N,0)),Nr(c,Tt(h,3),N)}function qL(c,h,_){var $=c==null?0:c.length;if(!$)return-1;var N=$-1;return _!==n&&(N=Mt(_),N=_<0?Pr($+N,0):si(N,$-1)),Nr(c,Tt(h,3),N,!0)}function GL(c){var h=c==null?0:c.length;return h?Yr(c,1):[]}function Vte(c){var h=c==null?0:c.length;return h?Yr(c,le):[]}function Hte(c,h){var _=c==null?0:c.length;return _?(h=h===n?1:Mt(h),Yr(c,h)):[]}function qte(c){for(var h=-1,_=c==null?0:c.length,$={};++h<_;){var N=c[h];$[N[0]]=N[1]}return $}function YL(c){return c&&c.length?c[0]:n}function Gte(c,h,_){var $=c==null?0:c.length;if(!$)return-1;var N=_==null?0:Mt(_);return N<0&&(N=Pr($+N,0)),as(c,h,N)}function Yte(c){var h=c==null?0:c.length;return h?Wo(c,0,-1):[]}var Xte=Kt(function(c){var h=Wt(c,XC);return h.length&&h[0]===c[0]?jC(h):[]}),Zte=Kt(function(c){var h=Vo(c),_=Wt(c,XC);return h===Vo(_)?h=n:_.pop(),_.length&&_[0]===c[0]?jC(_,Tt(h,2)):[]}),Jte=Kt(function(c){var h=Vo(c),_=Wt(c,XC);return h=typeof h=="function"?h:n,h&&_.pop(),_.length&&_[0]===c[0]?jC(_,n,h):[]});function Qte(c,h){return c==null?"":YQ.call(c,h)}function Vo(c){var h=c==null?0:c.length;return h?c[h-1]:n}function ene(c,h,_){var $=c==null?0:c.length;if(!$)return-1;var N=$;return _!==n&&(N=Mt(_),N=N<0?Pr($+N,0):si(N,$-1)),h===h?m(c,h,N):Nr(c,vg,N,!0)}function tne(c,h){return c&&c.length?aL(c,Mt(h)):n}var nne=Kt(XL);function XL(c,h){return c&&c.length&&h&&h.length?WC(c,h):c}function rne(c,h,_){return c&&c.length&&h&&h.length?WC(c,h,Tt(_,2)):c}function ine(c,h,_){return c&&c.length&&h&&h.length?WC(c,h,n,_):c}var one=ol(function(c,h){var _=c==null?0:c.length,$=MC(c,h);return uL(c,Wt(h,function(N){return al(N,_)?+N:N}).sort(bL)),$});function ane(c,h){var _=[];if(!(c&&c.length))return _;var $=-1,N=[],J=c.length;for(h=Tt(h,3);++$<J;){var ce=c[$];h(ce,$,c)&&(_.push(ce),N.push($))}return uL(c,N),_}function cE(c){return c==null?c:QQ.call(c)}function sne(c,h,_){var $=c==null?0:c.length;return $?(_&&typeof _!="number"&&ki(c,h,_)?(h=0,_=$):(h=h==null?0:Mt(h),_=_===n?$:Mt(_)),Wo(c,h,_)):[]}function lne(c,h){return z0(c,h)}function une(c,h,_){return qC(c,h,Tt(_,2))}function cne(c,h){var _=c==null?0:c.length;if(_){var $=z0(c,h);if($<_&&Ia(c[$],h))return $}return-1}function fne(c,h){return z0(c,h,!0)}function dne(c,h,_){return qC(c,h,Tt(_,2),!0)}function pne(c,h){var _=c==null?0:c.length;if(_){var $=z0(c,h,!0)-1;if(Ia(c[$],h))return $}return-1}function hne(c){return c&&c.length?fL(c):[]}function gne(c,h){return c&&c.length?fL(c,Tt(h,2)):[]}function mne(c){var h=c==null?0:c.length;return h?Wo(c,1,h):[]}function vne(c,h,_){return c&&c.length?(h=_||h===n?1:Mt(h),Wo(c,0,h<0?0:h)):[]}function yne(c,h,_){var $=c==null?0:c.length;return $?(h=_||h===n?1:Mt(h),h=$-h,Wo(c,h<0?0:h,$)):[]}function bne(c,h){return c&&c.length?U0(c,Tt(h,3),!1,!0):[]}function _ne(c,h){return c&&c.length?U0(c,Tt(h,3)):[]}var xne=Kt(function(c){return ru(Yr(c,1,wr,!0))}),wne=Kt(function(c){var h=Vo(c);return wr(h)&&(h=n),ru(Yr(c,1,wr,!0),Tt(h,2))}),Sne=Kt(function(c){var h=Vo(c);return h=typeof h=="function"?h:n,ru(Yr(c,1,wr,!0),n,h)});function Cne(c){return c&&c.length?ru(c):[]}function Ene(c,h){return c&&c.length?ru(c,Tt(h,2)):[]}function kne(c,h){return h=typeof h=="function"?h:n,c&&c.length?ru(c,n,h):[]}function fE(c){if(!(c&&c.length))return[];var h=0;return c=Bo(c,function(_){if(wr(_))return h=Pr(_.length,h),!0}),_c(h,function(_){return Wt(c,Fi(_))})}function ZL(c,h){if(!(c&&c.length))return[];var _=fE(c);return h==null?_:Wt(_,function($){return Lt(h,n,$)})}var Tne=Kt(function(c,h){return wr(c)?Rg(c,h):[]}),Rne=Kt(function(c){return YC(Bo(c,wr))}),Ane=Kt(function(c){var h=Vo(c);return wr(h)&&(h=n),YC(Bo(c,wr),Tt(h,2))}),$ne=Kt(function(c){var h=Vo(c);return h=typeof h=="function"?h:n,YC(Bo(c,wr),n,h)}),One=Kt(fE);function Ine(c,h){return gL(c||[],h||[],Tg)}function Dne(c,h){return gL(c||[],h||[],Og)}var Pne=Kt(function(c){var h=c.length,_=h>1?c[h-1]:n;return _=typeof _=="function"?(c.pop(),_):n,ZL(c,_)});function JL(c){var h=q(c);return h.__chain__=!0,h}function Lne(c,h){return h(c),c}function Z0(c,h){return h(c)}var Mne=ol(function(c){var h=c.length,_=h?c[0]:0,$=this.__wrapped__,N=function(J){return MC(J,c)};return h>1||this.__actions__.length||!($ instanceof Zt)||!al(_)?this.thru(N):($=$.slice(_,+_+(h?1:0)),$.__actions__.push({func:Z0,args:[N],thisArg:n}),new Uo($,this.__chain__).thru(function(J){return h&&!J.length&&J.push(n),J}))});function Fne(){return JL(this)}function Nne(){return new Uo(this.value(),this.__chain__)}function Bne(){this.__values__===n&&(this.__values__=dM(this.value()));var c=this.__index__>=this.__values__.length,h=c?n:this.__values__[this.__index__++];return{done:c,value:h}}function jne(){return this}function zne(c){for(var h,_=this;_ instanceof M0;){var $=VL(_);$.__index__=0,$.__values__=n,h?N.__wrapped__=$:h=$;var N=$;_=_.__wrapped__}return N.__wrapped__=c,h}function Une(){var c=this.__wrapped__;if(c instanceof Zt){var h=c;return this.__actions__.length&&(h=new Zt(this)),h=h.reverse(),h.__actions__.push({func:Z0,args:[cE],thisArg:n}),new Uo(h,this.__chain__)}return this.thru(cE)}function Kne(){return hL(this.__wrapped__,this.__actions__)}var Wne=K0(function(c,h,_){wn.call(c,_)?++c[_]:rl(c,_,1)});function Vne(c,h,_){var $=It(c)?fo:Lee;return _&&ki(c,h,_)&&(h=n),$(c,Tt(h,3))}function Hne(c,h){var _=It(c)?Bo:ZP;return _(c,Tt(h,3))}var qne=EL(HL),Gne=EL(qL);function Yne(c,h){return Yr(J0(c,h),1)}function Xne(c,h){return Yr(J0(c,h),le)}function Zne(c,h,_){return _=_===n?1:Mt(_),Yr(J0(c,h),_)}function QL(c,h){var _=It(c)?Ci:nu;return _(c,Tt(h,3))}function eM(c,h){var _=It(c)?m0:XP;return _(c,Tt(h,3))}var Jne=K0(function(c,h,_){wn.call(c,_)?c[_].push(h):rl(c,_,[h])});function Qne(c,h,_,$){c=Bi(c)?c:xd(c),_=_&&!$?Mt(_):0;var N=c.length;return _<0&&(_=Pr(N+_,0)),r1(c)?_<=N&&c.indexOf(h,_)>-1:!!N&&as(c,h,_)>-1}var ere=Kt(function(c,h,_){var $=-1,N=typeof h=="function",J=Bi(c)?ye(c.length):[];return nu(c,function(ce){J[++$]=N?Lt(h,ce,_):Ag(ce,h,_)}),J}),tre=K0(function(c,h,_){rl(c,_,h)});function J0(c,h){var _=It(c)?Wt:rL;return _(c,Tt(h,3))}function nre(c,h,_,$){return c==null?[]:(It(h)||(h=h==null?[]:[h]),_=$?n:_,It(_)||(_=_==null?[]:[_]),sL(c,h,_))}var rre=K0(function(c,h,_){c[_?0:1].push(h)},function(){return[[],[]]});function ire(c,h,_){var $=It(c)?Ql:bc,N=arguments.length<3;return $(c,Tt(h,4),_,N,nu)}function ore(c,h,_){var $=It(c)?v0:bc,N=arguments.length<3;return $(c,Tt(h,4),_,N,XP)}function are(c,h){var _=It(c)?Bo:ZP;return _(c,t1(Tt(h,3)))}function sre(c){var h=It(c)?HP:Qee;return h(c)}function lre(c,h,_){(_?ki(c,h,_):h===n)?h=1:h=Mt(h);var $=It(c)?$ee:ete;return $(c,h)}function ure(c){var h=It(c)?Oee:nte;return h(c)}function cre(c){if(c==null)return 0;if(Bi(c))return r1(c)?E(c):c.length;var h=li(c);return h==je||h==Ae?c.size:UC(c).length}function fre(c,h,_){var $=It(c)?hg:rte;return _&&ki(c,h,_)&&(h=n),$(c,Tt(h,3))}var dre=Kt(function(c,h){if(c==null)return[];var _=h.length;return _>1&&ki(c,h[0],h[1])?h=[]:_>2&&ki(h[0],h[1],h[2])&&(h=[h[0]]),sL(c,Yr(h,1),[])}),Q0=HQ||function(){return Dr.Date.now()};function pre(c,h){if(typeof h!="function")throw new zo(a);return c=Mt(c),function(){if(--c<1)return h.apply(this,arguments)}}function tM(c,h,_){return h=_?n:h,h=c&&h==null?c.length:h,il(c,O,n,n,n,n,h)}function nM(c,h){var _;if(typeof h!="function")throw new zo(a);return c=Mt(c),function(){return--c>0&&(_=h.apply(this,arguments)),c<=1&&(h=n),_}}var dE=Kt(function(c,h,_){var $=w;if(_.length){var N=ls(_,bd(dE));$|=R}return il(c,$,h,_,N)}),rM=Kt(function(c,h,_){var $=w|b;if(_.length){var N=ls(_,bd(rM));$|=R}return il(h,$,c,_,N)});function iM(c,h,_){h=_?n:h;var $=il(c,C,n,n,n,n,n,h);return $.placeholder=iM.placeholder,$}function oM(c,h,_){h=_?n:h;var $=il(c,k,n,n,n,n,n,h);return $.placeholder=oM.placeholder,$}function aM(c,h,_){var $,N,J,ce,ve,ke,Ue=0,Ke=!1,qe=!1,ut=!0;if(typeof c!="function")throw new zo(a);h=Ho(h)||0,sr(_)&&(Ke=!!_.leading,qe="maxWait"in _,J=qe?Pr(Ho(_.maxWait)||0,h):J,ut="trailing"in _?!!_.trailing:ut);function xt(Sr){var Da=$,ul=N;return $=N=n,Ue=Sr,ce=c.apply(ul,Da),ce}function Rt(Sr){return Ue=Sr,ve=Pg(qt,h),Ke?xt(Sr):ce}function Bt(Sr){var Da=Sr-ke,ul=Sr-Ue,EM=h-Da;return qe?si(EM,J-ul):EM}function At(Sr){var Da=Sr-ke,ul=Sr-Ue;return ke===n||Da>=h||Da<0||qe&&ul>=J}function qt(){var Sr=Q0();if(At(Sr))return en(Sr);ve=Pg(qt,Bt(Sr))}function en(Sr){return ve=n,ut&&$?xt(Sr):($=N=n,ce)}function go(){ve!==n&&mL(ve),Ue=0,$=ke=N=ve=n}function Ti(){return ve===n?ce:en(Q0())}function mo(){var Sr=Q0(),Da=At(Sr);if($=arguments,N=this,ke=Sr,Da){if(ve===n)return Rt(ke);if(qe)return mL(ve),ve=Pg(qt,h),xt(ke)}return ve===n&&(ve=Pg(qt,h)),ce}return mo.cancel=go,mo.flush=Ti,mo}var hre=Kt(function(c,h){return YP(c,1,h)}),gre=Kt(function(c,h,_){return YP(c,Ho(h)||0,_)});function mre(c){return il(c,V)}function e1(c,h){if(typeof c!="function"||h!=null&&typeof h!="function")throw new zo(a);var _=function(){var $=arguments,N=h?h.apply(this,$):$[0],J=_.cache;if(J.has(N))return J.get(N);var ce=c.apply(this,$);return _.cache=J.set(N,ce)||J,ce};return _.cache=new(e1.Cache||nl),_}e1.Cache=nl;function t1(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 vre(c){return nM(2,c)}var yre=ite(function(c,h){h=h.length==1&&It(h[0])?Wt(h[0],ai(Tt())):Wt(Yr(h,1),ai(Tt()));var _=h.length;return Kt(function($){for(var N=-1,J=si($.length,_);++N<J;)$[N]=h[N].call(this,$[N]);return Lt(c,this,$)})}),pE=Kt(function(c,h){var _=ls(h,bd(pE));return il(c,R,n,h,_)}),sM=Kt(function(c,h){var _=ls(h,bd(sM));return il(c,A,n,h,_)}),bre=ol(function(c,h){return il(c,z,n,n,n,h)});function _re(c,h){if(typeof c!="function")throw new zo(a);return h=h===n?h:Mt(h),Kt(c,h)}function xre(c,h){if(typeof c!="function")throw new zo(a);return h=h==null?0:Pr(Mt(h),0),Kt(function(_){var $=_[h],N=ou(_,0,h);return $&&Ln(N,$),Lt(c,this,N)})}function wre(c,h,_){var $=!0,N=!0;if(typeof c!="function")throw new zo(a);return sr(_)&&($="leading"in _?!!_.leading:$,N="trailing"in _?!!_.trailing:N),aM(c,h,{leading:$,maxWait:h,trailing:N})}function Sre(c){return tM(c,1)}function Cre(c,h){return pE(ZC(h),c)}function Ere(){if(!arguments.length)return[];var c=arguments[0];return It(c)?c:[c]}function kre(c){return Ko(c,g)}function Tre(c,h){return h=typeof h=="function"?h:n,Ko(c,g,h)}function Rre(c){return Ko(c,d|g)}function Are(c,h){return h=typeof h=="function"?h:n,Ko(c,d|g,h)}function $re(c,h){return h==null||GP(c,h,jr(h))}function Ia(c,h){return c===h||c!==c&&h!==h}var Ore=q0(BC),Ire=q0(function(c,h){return c>=h}),Rc=eL(function(){return arguments}())?eL:function(c){return hr(c)&&wn.call(c,"callee")&&!jP.call(c,"callee")},It=ye.isArray,Dre=p0?ai(p0):zee;function Bi(c){return c!=null&&n1(c.length)&&!sl(c)}function wr(c){return hr(c)&&Bi(c)}function Pre(c){return c===!0||c===!1||hr(c)&&Ei(c)==Te}var au=GQ||CE,Lre=h0?ai(h0):Uee;function Mre(c){return hr(c)&&c.nodeType===1&&!Lg(c)}function Fre(c){if(c==null)return!0;if(Bi(c)&&(It(c)||typeof c=="string"||typeof c.splice=="function"||au(c)||_d(c)||Rc(c)))return!c.length;var h=li(c);if(h==je||h==Ae)return!c.size;if(Dg(c))return!UC(c).length;for(var _ in c)if(wn.call(c,_))return!1;return!0}function Nre(c,h){return $g(c,h)}function Bre(c,h,_){_=typeof _=="function"?_:n;var $=_?_(c,h):n;return $===n?$g(c,h,n,_):!!$}function hE(c){if(!hr(c))return!1;var h=Ei(c);return h==Be||h==Le||typeof c.message=="string"&&typeof c.name=="string"&&!Lg(c)}function jre(c){return typeof c=="number"&&UP(c)}function sl(c){if(!sr(c))return!1;var h=Ei(c);return h==Ie||h==Pe||h==we||h==st}function lM(c){return typeof c=="number"&&c==Mt(c)}function n1(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=Z}function sr(c){var h=typeof c;return c!=null&&(h=="object"||h=="function")}function hr(c){return c!=null&&typeof c=="object"}var uM=el?ai(el):Wee;function zre(c,h){return c===h||zC(c,h,iE(h))}function Ure(c,h,_){return _=typeof _=="function"?_:n,zC(c,h,iE(h),_)}function Kre(c){return cM(c)&&c!=+c}function Wre(c){if(Tte(c))throw new it(o);return tL(c)}function Vre(c){return c===null}function Hre(c){return c==null}function cM(c){return typeof c=="number"||hr(c)&&Ei(c)==Fe}function Lg(c){if(!hr(c)||Ei(c)!=Xe)return!1;var h=A0(c);if(h===null)return!0;var _=wn.call(h,"constructor")&&h.constructor;return typeof _=="function"&&_ instanceof _&&E0.call(_)==UQ}var gE=vc?ai(vc):Vee;function qre(c){return lM(c)&&c>=-Z&&c<=Z}var fM=pg?ai(pg):Hee;function r1(c){return typeof c=="string"||!It(c)&&hr(c)&&Ei(c)==Re}function ho(c){return typeof c=="symbol"||hr(c)&&Ei(c)==Ne}var _d=od?ai(od):qee;function Gre(c){return c===n}function Yre(c){return hr(c)&&li(c)==H}function Xre(c){return hr(c)&&Ei(c)==fe}var Zre=q0(KC),Jre=q0(function(c,h){return c<=h});function dM(c){if(!c)return[];if(Bi(c))return r1(c)?I(c):Ni(c);if(wg&&c[wg])return x0(c[wg]());var h=li(c),_=h==je?_g:h==Ae?dd:xd;return _(c)}function ll(c){if(!c)return c===0?c:0;if(c=Ho(c),c===le||c===-le){var h=c<0?-1:1;return h*ee}return c===c?c:0}function Mt(c){var h=ll(c),_=h%1;return h===h?_?h-_:h:0}function pM(c){return c?Cc(Mt(c),0,ge):0}function Ho(c){if(typeof c=="number")return c;if(ho(c))return P;if(sr(c)){var h=typeof c.valueOf=="function"?c.valueOf():c;c=sr(h)?h+"":h}if(typeof c!="string")return c===0?c:+c;c=yg(c);var _=$t.test(c);return _||Jf.test(c)?ug(c.slice(2),_?2:8):dr.test(c)?P:+c}function hM(c){return cs(c,ji(c))}function Qre(c){return c?Cc(Mt(c),-Z,Z):c===0?c:0}function _n(c){return c==null?"":po(c)}var eie=vd(function(c,h){if(Dg(h)||Bi(h)){cs(h,jr(h),c);return}for(var _ in h)wn.call(h,_)&&Tg(c,_,h[_])}),gM=vd(function(c,h){cs(h,ji(h),c)}),i1=vd(function(c,h,_,$){cs(h,ji(h),c,$)}),tie=vd(function(c,h,_,$){cs(h,jr(h),c,$)}),nie=ol(MC);function rie(c,h){var _=md(c);return h==null?_:qP(_,h)}var iie=Kt(function(c,h){c=Vt(c);var _=-1,$=h.length,N=$>2?h[2]:n;for(N&&ki(h[0],h[1],N)&&($=1);++_<$;)for(var J=h[_],ce=ji(J),ve=-1,ke=ce.length;++ve<ke;){var Ue=ce[ve],Ke=c[Ue];(Ke===n||Ia(Ke,pd[Ue])&&!wn.call(c,Ue))&&(c[Ue]=J[Ue])}return c}),oie=Kt(function(c){return c.push(n,IL),Lt(mM,n,c)});function aie(c,h){return mg(c,Tt(h,3),us)}function sie(c,h){return mg(c,Tt(h,3),NC)}function lie(c,h){return c==null?c:FC(c,Tt(h,3),ji)}function uie(c,h){return c==null?c:JP(c,Tt(h,3),ji)}function cie(c,h){return c&&us(c,Tt(h,3))}function fie(c,h){return c&&NC(c,Tt(h,3))}function die(c){return c==null?[]:B0(c,jr(c))}function pie(c){return c==null?[]:B0(c,ji(c))}function mE(c,h,_){var $=c==null?n:Ec(c,h);return $===n?_:$}function hie(c,h){return c!=null&&LL(c,h,Fee)}function vE(c,h){return c!=null&&LL(c,h,Nee)}var gie=TL(function(c,h,_){h!=null&&typeof h.toString!="function"&&(h=k0.call(h)),c[h]=_},bE(zi)),mie=TL(function(c,h,_){h!=null&&typeof h.toString!="function"&&(h=k0.call(h)),wn.call(c,h)?c[h].push(_):c[h]=[_]},Tt),vie=Kt(Ag);function jr(c){return Bi(c)?VP(c):UC(c)}function ji(c){return Bi(c)?VP(c,!0):Gee(c)}function yie(c,h){var _={};return h=Tt(h,3),us(c,function($,N,J){rl(_,h($,N,J),$)}),_}function bie(c,h){var _={};return h=Tt(h,3),us(c,function($,N,J){rl(_,N,h($,N,J))}),_}var _ie=vd(function(c,h,_){j0(c,h,_)}),mM=vd(function(c,h,_,$){j0(c,h,_,$)}),xie=ol(function(c,h){var _={};if(c==null)return _;var $=!1;h=Wt(h,function(J){return J=iu(J,c),$||($=J.length>1),J}),cs(c,nE(c),_),$&&(_=Ko(_,d|p|g,gte));for(var N=h.length;N--;)GC(_,h[N]);return _});function wie(c,h){return vM(c,t1(Tt(h)))}var Sie=ol(function(c,h){return c==null?{}:Xee(c,h)});function vM(c,h){if(c==null)return{};var _=Wt(nE(c),function($){return[$]});return h=Tt(h),lL(c,_,function($,N){return h($,N[0])})}function Cie(c,h,_){h=iu(h,c);var $=-1,N=h.length;for(N||(N=1,c=n);++$<N;){var J=c==null?n:c[fs(h[$])];J===n&&($=N,J=_),c=sl(J)?J.call(c):J}return c}function Eie(c,h,_){return c==null?c:Og(c,h,_)}function kie(c,h,_,$){return $=typeof $=="function"?$:n,c==null?c:Og(c,h,_,$)}var yM=$L(jr),bM=$L(ji);function Tie(c,h,_){var $=It(c),N=$||au(c)||_d(c);if(h=Tt(h,4),_==null){var J=c&&c.constructor;N?_=$?new J:[]:sr(c)?_=sl(J)?md(A0(c)):{}:_={}}return(N?Ci:us)(c,function(ce,ve,ke){return h(_,ce,ve,ke)}),_}function Rie(c,h){return c==null?!0:GC(c,h)}function Aie(c,h,_){return c==null?c:pL(c,h,ZC(_))}function $ie(c,h,_,$){return $=typeof $=="function"?$:n,c==null?c:pL(c,h,ZC(_),$)}function xd(c){return c==null?[]:ss(c,jr(c))}function Oie(c){return c==null?[]:ss(c,ji(c))}function Iie(c,h,_){return _===n&&(_=h,h=n),_!==n&&(_=Ho(_),_=_===_?_:0),h!==n&&(h=Ho(h),h=h===h?h:0),Cc(Ho(c),h,_)}function Die(c,h,_){return h=ll(h),_===n?(_=h,h=0):_=ll(_),c=Ho(c),Bee(c,h,_)}function Pie(c,h,_){if(_&&typeof _!="boolean"&&ki(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=ll(c),h===n?(h=c,c=0):h=ll(h)),c>h){var $=c;c=h,h=$}if(_||c%1||h%1){var N=KP();return si(c+N*(h-c+d0("1e-"+((N+"").length-1))),h)}return VC(c,h)}var Lie=yd(function(c,h,_){return h=h.toLowerCase(),c+(_?_M(h):h)});function _M(c){return yE(_n(c).toLowerCase())}function xM(c){return c=_n(c),c&&c.replace(xr,Br).replace(rd,"")}function Mie(c,h,_){c=_n(c),h=po(h);var $=c.length;_=_===n?$:Cc(Mt(_),0,$);var N=_;return _-=h.length,_>=0&&c.slice(_,N)==h}function Fie(c){return c=_n(c),c&&ht.test(c)?c.replace(ct,fd):c}function Nie(c){return c=_n(c),c&&_r.test(c)?c.replace(Fr,"\\$&"):c}var Bie=yd(function(c,h,_){return c+(_?"-":"")+h.toLowerCase()}),jie=yd(function(c,h,_){return c+(_?" ":"")+h.toLowerCase()}),zie=CL("toLowerCase");function Uie(c,h,_){c=_n(c),h=Mt(h);var $=h?E(c):0;if(!h||$>=h)return c;var N=(h-$)/2;return H0(D0(N),_)+c+H0(I0(N),_)}function Kie(c,h,_){c=_n(c),h=Mt(h);var $=h?E(c):0;return h&&$<h?c+H0(h-$,_):c}function Wie(c,h,_){c=_n(c),h=Mt(h);var $=h?E(c):0;return h&&$<h?H0(h-$,_)+c:c}function Vie(c,h,_){return _||h==null?h=0:h&&(h=+h),JQ(_n(c).replace(kr,""),h||0)}function Hie(c,h,_){return(_?ki(c,h,_):h===n)?h=1:h=Mt(h),HC(_n(c),h)}function qie(){var c=arguments,h=_n(c[0]);return c.length<3?h:h.replace(c[1],c[2])}var Gie=yd(function(c,h,_){return c+(_?"_":"")+h.toLowerCase()});function Yie(c,h,_){return _&&typeof _!="number"&&ki(c,h,_)&&(h=_=n),_=_===n?ge:_>>>0,_?(c=_n(c),c&&(typeof h=="string"||h!=null&&!gE(h))&&(h=po(h),!h&&$a(c))?ou(I(c),0,_):c.split(h,_)):[]}var Xie=yd(function(c,h,_){return c+(_?" ":"")+yE(h)});function Zie(c,h,_){return c=_n(c),_=_==null?0:Cc(Mt(_),0,c.length),h=po(h),c.slice(_,_+h.length)==h}function Jie(c,h,_){var $=q.templateSettings;_&&ki(c,h,_)&&(h=n),c=_n(c),h=i1({},h,$,OL);var N=i1({},h.imports,$.imports,OL),J=jr(N),ce=ss(N,J),ve,ke,Ue=0,Ke=h.interpolate||Ea,qe="__p += '",ut=eu((h.escape||Ea).source+"|"+Ke.source+"|"+(Ke===Qt?On:Ea).source+"|"+(h.evaluate||Ea).source+"|$","g"),xt="//# sourceURL="+(wn.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++id+"]")+`
|
|
471
|
+
`;c.replace(ut,function(At,qt,en,go,Ti,mo){return en||(en=go),qe+=c.slice(Ue,mo).replace(hc,AC),qt&&(ve=!0,qe+=`' +
|
|
472
|
+
__e(`+qt+`) +
|
|
473
|
+
'`),Ti&&(ke=!0,qe+=`';
|
|
474
|
+
`+Ti+`;
|
|
475
|
+
__p += '`),en&&(qe+=`' +
|
|
476
|
+
((__t = (`+en+`)) == null ? '' : __t) +
|
|
477
|
+
'`),Ue=mo+At.length,At}),qe+=`';
|
|
478
|
+
`;var Rt=wn.call(h,"variable")&&h.variable;if(!Rt)qe=`with (obj) {
|
|
479
|
+
`+qe+`
|
|
480
|
+
}
|
|
481
|
+
`;else if(Hl.test(Rt))throw new it(s);qe=(ke?qe.replace(Ve,""):qe).replace(He,"$1").replace(Ze,"$1;"),qe="function("+(Rt||"obj")+`) {
|
|
482
|
+
`+(Rt?"":`obj || (obj = {});
|
|
483
|
+
`)+"var __t, __p = ''"+(ve?", __e = _.escape":"")+(ke?`, __j = Array.prototype.join;
|
|
484
|
+
function print() { __p += __j.call(arguments, '') }
|
|
485
|
+
`:`;
|
|
486
|
+
`)+qe+`return __p
|
|
487
|
+
}`;var Bt=SM(function(){return wt(J,xt+"return "+qe).apply(n,ce)});if(Bt.source=qe,hE(Bt))throw Bt;return Bt}function Qie(c){return _n(c).toLowerCase()}function eoe(c){return _n(c).toUpperCase()}function toe(c,h,_){if(c=_n(c),c&&(_||h===n))return yg(c);if(!c||!(h=po(h)))return c;var $=I(c),N=I(h),J=bg($,N),ce=cd($,N)+1;return ou($,J,ce).join("")}function noe(c,h,_){if(c=_n(c),c&&(_||h===n))return c.slice(0,F(c)+1);if(!c||!(h=po(h)))return c;var $=I(c),N=cd($,I(h))+1;return ou($,0,N).join("")}function roe(c,h,_){if(c=_n(c),c&&(_||h===n))return c.replace(kr,"");if(!c||!(h=po(h)))return c;var $=I(c),N=bg($,I(h));return ou($,N).join("")}function ioe(c,h){var _=D,$=W;if(sr(h)){var N="separator"in h?h.separator:N;_="length"in h?Mt(h.length):_,$="omission"in h?po(h.omission):$}c=_n(c);var J=c.length;if($a(c)){var ce=I(c);J=ce.length}if(_>=J)return c;var ve=_-E($);if(ve<1)return $;var ke=ce?ou(ce,0,ve).join(""):c.slice(0,ve);if(N===n)return ke+$;if(ce&&(ve+=ke.length-ve),gE(N)){if(c.slice(ve).search(N)){var Ue,Ke=ke;for(N.global||(N=eu(N.source,_n(co.exec(N))+"g")),N.lastIndex=0;Ue=N.exec(Ke);)var qe=Ue.index;ke=ke.slice(0,qe===n?ve:qe)}}else if(c.indexOf(po(N),ve)!=ve){var ut=ke.lastIndexOf(N);ut>-1&&(ke=ke.slice(0,ut))}return ke+$}function ooe(c){return c=_n(c),c&&ot.test(c)?c.replace(dt,j):c}var aoe=yd(function(c,h,_){return c+(_?" ":"")+h.toUpperCase()}),yE=CL("toUpperCase");function wM(c,h,_){return c=_n(c),h=_?n:h,h===n?_0(c)?Se(c):gg(c):c.match(h)||[]}var SM=Kt(function(c,h){try{return Lt(c,n,h)}catch(_){return hE(_)?_:new it(_)}}),soe=ol(function(c,h){return Ci(h,function(_){_=fs(_),rl(c,_,dE(c[_],c))}),c});function loe(c){var h=c==null?0:c.length,_=Tt();return c=h?Wt(c,function($){if(typeof $[1]!="function")throw new zo(a);return[_($[0]),$[1]]}):[],Kt(function($){for(var N=-1;++N<h;){var J=c[N];if(Lt(J[0],this,$))return Lt(J[1],this,$)}})}function uoe(c){return Pee(Ko(c,d))}function bE(c){return function(){return c}}function coe(c,h){return c==null||c!==c?h:c}var foe=kL(),doe=kL(!0);function zi(c){return c}function _E(c){return nL(typeof c=="function"?c:Ko(c,d))}function poe(c){return iL(Ko(c,d))}function hoe(c,h){return oL(c,Ko(h,d))}var goe=Kt(function(c,h){return function(_){return Ag(_,c,h)}}),moe=Kt(function(c,h){return function(_){return Ag(c,_,h)}});function xE(c,h,_){var $=jr(h),N=B0(h,$);_==null&&!(sr(h)&&(N.length||!$.length))&&(_=h,h=c,c=this,N=B0(h,jr(h)));var J=!(sr(_)&&"chain"in _)||!!_.chain,ce=sl(c);return Ci(N,function(ve){var ke=h[ve];c[ve]=ke,ce&&(c.prototype[ve]=function(){var Ue=this.__chain__;if(J||Ue){var Ke=c(this.__wrapped__),qe=Ke.__actions__=Ni(this.__actions__);return qe.push({func:ke,args:arguments,thisArg:c}),Ke.__chain__=Ue,Ke}return ke.apply(c,Ln([this.value()],arguments))})}),c}function voe(){return Dr._===this&&(Dr._=KQ),this}function wE(){}function yoe(c){return c=Mt(c),Kt(function(h){return aL(h,c)})}var boe=QC(Wt),_oe=QC(fo),xoe=QC(hg);function CM(c){return aE(c)?Fi(fs(c)):Zee(c)}function woe(c){return function(h){return c==null?n:Ec(c,h)}}var Soe=RL(),Coe=RL(!0);function SE(){return[]}function CE(){return!1}function Eoe(){return{}}function koe(){return""}function Toe(){return!0}function Roe(c,h){if(c=Mt(c),c<1||c>Z)return[];var _=ge,$=si(c,ge);h=Tt(h),c-=ge;for(var N=_c($,h);++_<c;)h(_);return N}function Aoe(c){return It(c)?Wt(c,fs):ho(c)?[c]:Ni(WL(_n(c)))}function $oe(c){var h=++zQ;return _n(c)+h}var Ooe=V0(function(c,h){return c+h},0),Ioe=eE("ceil"),Doe=V0(function(c,h){return c/h},1),Poe=eE("floor");function Loe(c){return c&&c.length?N0(c,zi,BC):n}function Moe(c,h){return c&&c.length?N0(c,Tt(h,2),BC):n}function Foe(c){return sd(c,zi)}function Noe(c,h){return sd(c,Tt(h,2))}function Boe(c){return c&&c.length?N0(c,zi,KC):n}function joe(c,h){return c&&c.length?N0(c,Tt(h,2),KC):n}var zoe=V0(function(c,h){return c*h},1),Uoe=eE("round"),Koe=V0(function(c,h){return c-h},0);function Woe(c){return c&&c.length?ud(c,zi):0}function Voe(c,h){return c&&c.length?ud(c,Tt(h,2)):0}return q.after=pre,q.ary=tM,q.assign=eie,q.assignIn=gM,q.assignInWith=i1,q.assignWith=tie,q.at=nie,q.before=nM,q.bind=dE,q.bindAll=soe,q.bindKey=rM,q.castArray=Ere,q.chain=JL,q.chunk=Pte,q.compact=Lte,q.concat=Mte,q.cond=loe,q.conforms=uoe,q.constant=bE,q.countBy=Wne,q.create=rie,q.curry=iM,q.curryRight=oM,q.debounce=aM,q.defaults=iie,q.defaultsDeep=oie,q.defer=hre,q.delay=gre,q.difference=Fte,q.differenceBy=Nte,q.differenceWith=Bte,q.drop=jte,q.dropRight=zte,q.dropRightWhile=Ute,q.dropWhile=Kte,q.fill=Wte,q.filter=Hne,q.flatMap=Yne,q.flatMapDeep=Xne,q.flatMapDepth=Zne,q.flatten=GL,q.flattenDeep=Vte,q.flattenDepth=Hte,q.flip=mre,q.flow=foe,q.flowRight=doe,q.fromPairs=qte,q.functions=die,q.functionsIn=pie,q.groupBy=Jne,q.initial=Yte,q.intersection=Xte,q.intersectionBy=Zte,q.intersectionWith=Jte,q.invert=gie,q.invertBy=mie,q.invokeMap=ere,q.iteratee=_E,q.keyBy=tre,q.keys=jr,q.keysIn=ji,q.map=J0,q.mapKeys=yie,q.mapValues=bie,q.matches=poe,q.matchesProperty=hoe,q.memoize=e1,q.merge=_ie,q.mergeWith=mM,q.method=goe,q.methodOf=moe,q.mixin=xE,q.negate=t1,q.nthArg=yoe,q.omit=xie,q.omitBy=wie,q.once=vre,q.orderBy=nre,q.over=boe,q.overArgs=yre,q.overEvery=_oe,q.overSome=xoe,q.partial=pE,q.partialRight=sM,q.partition=rre,q.pick=Sie,q.pickBy=vM,q.property=CM,q.propertyOf=woe,q.pull=nne,q.pullAll=XL,q.pullAllBy=rne,q.pullAllWith=ine,q.pullAt=one,q.range=Soe,q.rangeRight=Coe,q.rearg=bre,q.reject=are,q.remove=ane,q.rest=_re,q.reverse=cE,q.sampleSize=lre,q.set=Eie,q.setWith=kie,q.shuffle=ure,q.slice=sne,q.sortBy=dre,q.sortedUniq=hne,q.sortedUniqBy=gne,q.split=Yie,q.spread=xre,q.tail=mne,q.take=vne,q.takeRight=yne,q.takeRightWhile=bne,q.takeWhile=_ne,q.tap=Lne,q.throttle=wre,q.thru=Z0,q.toArray=dM,q.toPairs=yM,q.toPairsIn=bM,q.toPath=Aoe,q.toPlainObject=hM,q.transform=Tie,q.unary=Sre,q.union=xne,q.unionBy=wne,q.unionWith=Sne,q.uniq=Cne,q.uniqBy=Ene,q.uniqWith=kne,q.unset=Rie,q.unzip=fE,q.unzipWith=ZL,q.update=Aie,q.updateWith=$ie,q.values=xd,q.valuesIn=Oie,q.without=Tne,q.words=wM,q.wrap=Cre,q.xor=Rne,q.xorBy=Ane,q.xorWith=$ne,q.zip=One,q.zipObject=Ine,q.zipObjectDeep=Dne,q.zipWith=Pne,q.entries=yM,q.entriesIn=bM,q.extend=gM,q.extendWith=i1,xE(q,q),q.add=Ooe,q.attempt=SM,q.camelCase=Lie,q.capitalize=_M,q.ceil=Ioe,q.clamp=Iie,q.clone=kre,q.cloneDeep=Rre,q.cloneDeepWith=Are,q.cloneWith=Tre,q.conformsTo=$re,q.deburr=xM,q.defaultTo=coe,q.divide=Doe,q.endsWith=Mie,q.eq=Ia,q.escape=Fie,q.escapeRegExp=Nie,q.every=Vne,q.find=qne,q.findIndex=HL,q.findKey=aie,q.findLast=Gne,q.findLastIndex=qL,q.findLastKey=sie,q.floor=Poe,q.forEach=QL,q.forEachRight=eM,q.forIn=lie,q.forInRight=uie,q.forOwn=cie,q.forOwnRight=fie,q.get=mE,q.gt=Ore,q.gte=Ire,q.has=hie,q.hasIn=vE,q.head=YL,q.identity=zi,q.includes=Qne,q.indexOf=Gte,q.inRange=Die,q.invoke=vie,q.isArguments=Rc,q.isArray=It,q.isArrayBuffer=Dre,q.isArrayLike=Bi,q.isArrayLikeObject=wr,q.isBoolean=Pre,q.isBuffer=au,q.isDate=Lre,q.isElement=Mre,q.isEmpty=Fre,q.isEqual=Nre,q.isEqualWith=Bre,q.isError=hE,q.isFinite=jre,q.isFunction=sl,q.isInteger=lM,q.isLength=n1,q.isMap=uM,q.isMatch=zre,q.isMatchWith=Ure,q.isNaN=Kre,q.isNative=Wre,q.isNil=Hre,q.isNull=Vre,q.isNumber=cM,q.isObject=sr,q.isObjectLike=hr,q.isPlainObject=Lg,q.isRegExp=gE,q.isSafeInteger=qre,q.isSet=fM,q.isString=r1,q.isSymbol=ho,q.isTypedArray=_d,q.isUndefined=Gre,q.isWeakMap=Yre,q.isWeakSet=Xre,q.join=Qte,q.kebabCase=Bie,q.last=Vo,q.lastIndexOf=ene,q.lowerCase=jie,q.lowerFirst=zie,q.lt=Zre,q.lte=Jre,q.max=Loe,q.maxBy=Moe,q.mean=Foe,q.meanBy=Noe,q.min=Boe,q.minBy=joe,q.stubArray=SE,q.stubFalse=CE,q.stubObject=Eoe,q.stubString=koe,q.stubTrue=Toe,q.multiply=zoe,q.nth=tne,q.noConflict=voe,q.noop=wE,q.now=Q0,q.pad=Uie,q.padEnd=Kie,q.padStart=Wie,q.parseInt=Vie,q.random=Pie,q.reduce=ire,q.reduceRight=ore,q.repeat=Hie,q.replace=qie,q.result=Cie,q.round=Uoe,q.runInContext=te,q.sample=sre,q.size=cre,q.snakeCase=Gie,q.some=fre,q.sortedIndex=lne,q.sortedIndexBy=une,q.sortedIndexOf=cne,q.sortedLastIndex=fne,q.sortedLastIndexBy=dne,q.sortedLastIndexOf=pne,q.startCase=Xie,q.startsWith=Zie,q.subtract=Koe,q.sum=Woe,q.sumBy=Voe,q.template=Jie,q.times=Roe,q.toFinite=ll,q.toInteger=Mt,q.toLength=pM,q.toLower=Qie,q.toNumber=Ho,q.toSafeInteger=Qre,q.toString=_n,q.toUpper=eoe,q.trim=toe,q.trimEnd=noe,q.trimStart=roe,q.truncate=ioe,q.unescape=ooe,q.uniqueId=$oe,q.upperCase=aoe,q.upperFirst=yE,q.each=QL,q.eachRight=eM,q.first=YL,xE(q,function(){var c={};return us(q,function(h,_){wn.call(q.prototype,_)||(c[_]=h)}),c}(),{chain:!1}),q.VERSION=r,Ci(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){q[c].placeholder=q}),Ci(["drop","take"],function(c,h){Zt.prototype[c]=function(_){_=_===n?1:Pr(Mt(_),0);var $=this.__filtered__&&!h?new Zt(this):this.clone();return $.__filtered__?$.__takeCount__=si(_,$.__takeCount__):$.__views__.push({size:si(_,ge),type:c+($.__dir__<0?"Right":"")}),$},Zt.prototype[c+"Right"]=function(_){return this.reverse()[c](_).reverse()}}),Ci(["filter","map","takeWhile"],function(c,h){var _=h+1,$=_==K||_==Q;Zt.prototype[c]=function(N){var J=this.clone();return J.__iteratees__.push({iteratee:Tt(N,3),type:_}),J.__filtered__=J.__filtered__||$,J}}),Ci(["head","last"],function(c,h){var _="take"+(h?"Right":"");Zt.prototype[c]=function(){return this[_](1).value()[0]}}),Ci(["initial","tail"],function(c,h){var _="drop"+(h?"":"Right");Zt.prototype[c]=function(){return this.__filtered__?new Zt(this):this[_](1)}}),Zt.prototype.compact=function(){return this.filter(zi)},Zt.prototype.find=function(c){return this.filter(c).head()},Zt.prototype.findLast=function(c){return this.reverse().find(c)},Zt.prototype.invokeMap=Kt(function(c,h){return typeof c=="function"?new Zt(this):this.map(function(_){return Ag(_,c,h)})}),Zt.prototype.reject=function(c){return this.filter(t1(Tt(c)))},Zt.prototype.slice=function(c,h){c=Mt(c);var _=this;return _.__filtered__&&(c>0||h<0)?new Zt(_):(c<0?_=_.takeRight(-c):c&&(_=_.drop(c)),h!==n&&(h=Mt(h),_=h<0?_.dropRight(-h):_.take(h-c)),_)},Zt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},Zt.prototype.toArray=function(){return this.take(ge)},us(Zt.prototype,function(c,h){var _=/^(?:filter|find|map|reject)|While$/.test(h),$=/^(?:head|last)$/.test(h),N=q[$?"take"+(h=="last"?"Right":""):h],J=$||/^find/.test(h);N&&(q.prototype[h]=function(){var ce=this.__wrapped__,ve=$?[1]:arguments,ke=ce instanceof Zt,Ue=ve[0],Ke=ke||It(ce),qe=function(qt){var en=N.apply(q,Ln([qt],ve));return $&&ut?en[0]:en};Ke&&_&&typeof Ue=="function"&&Ue.length!=1&&(ke=Ke=!1);var ut=this.__chain__,xt=!!this.__actions__.length,Rt=J&&!ut,Bt=ke&&!xt;if(!J&&Ke){ce=Bt?ce:new Zt(this);var At=c.apply(ce,ve);return At.__actions__.push({func:Z0,args:[qe],thisArg:n}),new Uo(At,ut)}return Rt&&Bt?c.apply(this,ve):(At=this.thru(qe),Rt?$?At.value()[0]:At.value():At)})}),Ci(["pop","push","shift","sort","splice","unshift"],function(c){var h=S0[c],_=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",$=/^(?:pop|shift)$/.test(c);q.prototype[c]=function(){var N=arguments;if($&&!this.__chain__){var J=this.value();return h.apply(It(J)?J:[],N)}return this[_](function(ce){return h.apply(It(ce)?ce:[],N)})}}),us(Zt.prototype,function(c,h){var _=q[h];if(_){var $=_.name+"";wn.call(gd,$)||(gd[$]=[]),gd[$].push({name:h,func:_})}}),gd[W0(n,b).name]=[{name:"wrapper",func:n}],Zt.prototype.clone=oee,Zt.prototype.reverse=aee,Zt.prototype.value=see,q.prototype.at=Mne,q.prototype.chain=Fne,q.prototype.commit=Nne,q.prototype.next=Bne,q.prototype.plant=zne,q.prototype.reverse=Une,q.prototype.toJSON=q.prototype.valueOf=q.prototype.value=Kne,q.prototype.first=q.prototype.head,wg&&(q.prototype[wg]=jne),q},De=Oe();Qs?((Qs.exports=De)._=De,mc._=De):Dr._=De}).call(ni)})(yx,yx.exports);var NZ=yx.exports;function qnt(){const e=CI(!0),t={};for(let n=0;n<e.length;n++)t[n.toString()]={background:e[n],borderRadius:"2px",cursor:"pointer"};return t}function Gnt(e,t){const n=Hnt(t),r=[];let i;for(;(i=n.exec(e))!==null;)i.index>-1&&r.push(i);return r}function Ynt(e,t,n){const i=MZ(t,n).exec(e),o=i==null?void 0:i[0];if(o){const{ok:a}=VD(t,o,n);return{match:o,ok:a}}else return{match:"",ok:!1}}function Xnt(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=Gnt(s,n);let u=0;const f=l.map(p=>{const g=p[0];let v;for(const C of t){const{match:k,ok:R}=Ynt(g,C.name,n);if(R){v={variable:C,match:k};break}}const y=p.index+u,w=y+g.length,b=new Rn.SelectionState({anchorKey:a,anchorOffset:y,focusKey:a,focusOffset:w}),x=Vnt(g,n);return u+=x.length-g.length,r=Rn.Modifier.replaceText(r,b,x),i=Rn.EditorState.push(e,r,"apply-entity"),p[0]=x,p.index=y,{ssm:p,variableFound:v}});let d=0;f.forEach(({ssm:p,variableFound:g})=>{if(!g)return;const{variable:v}=g,y=p[0],w=i.getSelection(),{localEndIndex:b,localStartIndex:x}=VD(v.name,y,n),C=p.index+x+d,k=p.index+b+d,R=new Rn.SelectionState({anchorKey:a,anchorOffset:C,focusKey:a,focusOffset:k}),A=v.content||"";d+=A.length-(b-x),r=i.getCurrentContent(),r=r.createEntity("TOKEN","SEGMENTED",v);const O=r.getLastCreatedEntityKey();r=Rn.Modifier.replaceText(r,R,A,Sf.of(v.styleIndex.toString()),O),i=Rn.EditorState.push(i,r,"apply-entity"),i=Rn.EditorState.forceSelection(i,w)})}),i}function Znt(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 bx({template:e,formatted:t,prompt:n,readOnly:r,onChange:i,showTitle:o=!1,sxEditorChildren:a}){const s=T.useRef(null),l=gn(AS),u=gn($S),[f,d]=T.useState(),[p,g]=T.useState(),v=qnt();if(aH()||!NZ.isEqual(n.inputs,p)){if(typeof e=="string"){const x=n.inputs||{},C=Object.keys(x),k=[];for(let z=0;z<C.length;z++){const V=C[z],D=x[V];k.push({name:V,styleIndex:z,content:D})}const R=k.sort((z,V)=>V.name.length-z.name.length),A=Rn.EditorState.createWithContent(Rn.ContentState.createFromText(e)),O=Xnt(A,R,n.template_format);d(O)}else if(typeof t=="string"){const x=Rn.EditorState.createWithContent(Rn.ContentState.createFromText(t));d(x)}g(n.inputs)}const w=x=>{const C=x.getSelection().getHasFocus(),k=Znt(x);if(k&&C&&s.current&&(l(k.data.name),s.current.blur()),!r)i&&i(x);else if(f){const R=f.getCurrentContent(),A=x.getCurrentContent();R!==A&&(gi.error("Formatted prompt is read only. Edit the template/variables instead."),u("Template")),x=Rn.EditorState.push(x,R,"insert-characters")}d(x)};if(!f)return null;const b=r?"Formatted prompt [Read Only]":"Formatted prompt";return S.jsx(cC,{className:"formatted-editor",title:o?b:void 0,clipboardValue:f==null?void 0:f.getCurrentContent().getPlainText(),sxChildren:vx(a||{},r?{caretColor:"transparent",backgroundColor:"transparent",borderColor:"transparent !important"}:{}),children:S.jsx(Rn.Editor,{ref:s,customStyleMap:v,editorState:f,onChange:w})})}function Jnt(e,t=200){return e.length>t?e.slice(0,t-1)+"...":e}function Qnt({children:e,decoratedText:t}){const n=gn(AS),r=Ct(ts),i=CI(!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(g=>FZ(g,u.template_format)===t);if(p>-1){a(p);const g=p%(i.length-1);l({backgroundColor:i[g],borderRadius:"2px",cursor:"pointer"})}}},[t,u]);const[f,d]=o!==void 0?Object.entries(u.inputs||{})[o]:[];return S.jsx(yi,{title:d?Jnt(d):void 0,children:S.jsx("span",{className:f?`input-${f}`:void 0,style:s,onMouseDown:()=>n(f),children:e})})}const ert=(e,t,n,r)=>{const i=n.getText();let o;for(;(o=e.exec(i))!==null;){const{ok:a,localEndIndex:s,localStartIndex:l}=VD(o[1],o[0],t);if(!a)continue;const u=o.index+l,f=o.index+s;r(u,f)}};function BZ({prompt:e,template:t,onChange:n,showTitle:r=!0,sxEditorChildren:i}){const[o,a]=T.useState();if(aH()){const l=Rn.ContentState.createFromText(t),u={strategy:(d,p)=>{ert(Wnt(e.inputs,e.template_format),e.template_format,d,p)},component:Qnt},f=new Rn.CompositeDecorator([u]);a(Rn.EditorState.createWithContent(l,f))}return o?S.jsx(cC,{className:"template-editor",title:r?"Prompt Template":void 0,clipboardValue:o==null?void 0:o.getCurrentContent().getPlainText(),sxChildren:i,children:S.jsx(Rn.Editor,{editorState:o,onChange:l=>{a(l),n&&n(l)}})}):null}function trt({hasTemplate:e,prompt:t,restoredTime:n}){const r=Ct($S),i=gn(ts);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=()=>S.jsx(BZ,{showTitle:!0,template:t.template||"",prompt:t,onChange:o}),l=()=>e?S.jsx(bx,{showTitle:!0,template:t.template,prompt:t,readOnly:!0}):typeof t.formatted=="string"?S.jsx(bx,{showTitle:!0,formatted:t.formatted,prompt:t,readOnly:!1,onChange:a}):S.jsx(ro,{severity:"error",children:"Neither template or formatted prompt provided."});return S.jsxs(Ht,{flex:1,width:"100%",children:[r==="Template"?s():null,r==="Formatted"?l():null,S.jsx(LZ,{completion:t.completion})]},n)}function nrt({message:e,prompt:t,mode:n,index:r,onChange:i}){var u;const o=Xn(),a={prompt:t,sxEditorChildren:{padding:o.spacing(2),backgroundColor:"","&:hover":{background:o.palette.background.paper}}},s=()=>S.jsx(BZ,{...a,showTitle:!1,template:e.template,onChange:f=>i(r,f)}),l=()=>typeof e.template=="string"?S.jsx(bx,{...a,template:e.template,readOnly:!0}):typeof e.formatted=="string"?S.jsx(bx,{...a,onChange:f=>i(r,f),formatted:e.formatted,readOnly:!1,showTitle:!1}):S.jsx(ro,{severity:"error",children:"Neither template or formatted prompt provided."});return S.jsx(PZ,{canSelectRole:!0,index:r,message:e,role:(u=e.role)==null?void 0:u.toUpperCase(),name:e.name,children:S.jsxs(S.Fragment,{children:[n==="Template"?s():null,n==="Formatted"?l():null]})})}const rrt=T.forwardRef(({hasTemplate:e,prompt:t,restoredTime:n},r)=>{const i=gn(ts),o=Ct($S),a=t.messages;if(!a)return null;const s=(u,f)=>{const d=f.getCurrentContent().getPlainText(),p=e?"template":"formatted";i(g=>{var v,y;return{...g,prompt:{...g.prompt,messages:(y=(v=g.prompt)==null?void 0:v.messages)==null?void 0:y.map((w,b)=>b===u?{...w,[p]:d}:w)}}})},l=o==="Formatted"?e?"Formatted messages [Read Only]":"Formatted messages":"Prompt messages";return S.jsxs(Ht,{sx:{width:"100%"},children:[S.jsx(Yt,{fontSize:"14px",fontWeight:700,color:dw[400],children:l}),S.jsxs(at,{ref:r,sx:{flex:1,height:"auto",overflow:"scroll",marginTop:1,gap:1},children:[a.length>0?S.jsx(Ht,{children:a.map((u,f)=>S.jsx(T.Fragment,{children:S.jsx(nrt,{message:u,prompt:t,mode:o,index:f,onChange:s})},`prompt-message-${f}`))}):null,S.jsx(LZ,{completion:t.completion,chatMode:!0})]},n)]})});function Gu({children:e,...t}){const n=Xn();return S.jsx("span",{style:{color:n.palette.text.primary},children:S.jsx(If,{color:n.palette.mode==="dark"?"inherit":"primary",...t,children:e})})}const irt=()=>{const[e,t]=T.useState(),[n,r]=ir(ts),[i,o]=ir(AS),a=Xn();T.useEffect(()=>{var u;i&&((u=n.prompt)!=null&&u.inputs)&&t(Rn.EditorState.createWithContent(Rn.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?S.jsx(mh,{id:"variable-modal",open:!!i,onClose:l,fullWidth:!0,maxWidth:"md",sx:{border:u=>u.palette.mode==="dark"?`1px solid ${dw[800]}`:null,borderRadius:1},children:S.jsxs(at,{bgcolor:"background.paper",children:[S.jsx(by,{children:S.jsx(Yt,{fontSize:"16px",fontWeight:700,color:"text.secondary",children:`Edit ${i}`})}),S.jsxs(vh,{children:[S.jsx(ro,{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?S.jsx(cC,{sx:{minHeight:"250px"},sxChildren:{padding:1},children:S.jsx(Rn.Editor,{customStyleFn:()=>({color:a.palette.text.primary,padding:"2px"}),editorState:e,onChange:u=>{u&&t(u)}})}):null]}),S.jsx(oS,{sx:{padding:a.spacing(0,3,2)},children:S.jsx(Gu,{id:"edit-variable",onClick:s,variant:"outlined",children:"Save"})})]})}):null};var HD={},ort=vn;Object.defineProperty(HD,"__esModule",{value:!0});var qD=HD.default=void 0,art=ort(yn()),srt=S,lrt=(0,art.default)((0,srt.jsx)("path",{d:"M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z"}),"Tune");qD=HD.default=lrt;const urt=e=>{const{id:t,items:n,label:r,onChange:i,value:o}=e,a=Ty();return S.jsx(jh,{id:t,label:r,sx:{width:"fit-content"},children:S.jsx(at,{sx:{border:s=>`1px solid ${s.palette.divider}`,backgroundColor:s=>s.palette.background.paper,borderRadius:1,padding:.5},children:S.jsx(x$e,{value:n.findIndex(s=>s===o),onChange:(s,l)=>i(n[l]),sx:{minHeight:"40px !important","& .MuiButtonBase-root":{textTransform:"none",zIndex:1,color:_t[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:As[600],height:"100%",borderRadius:"5px"}},children:n.map(s=>S.jsx(tAe,{className:`tab-${s}`,disableRipple:!0,label:s},`tab-${s}`))})})})};function crt({hasTemplate:e}){const[t,n]=ir($S);return t==="Template"&&!e?(n("Formatted"),null):e?S.jsx(urt,{label:"View",id:"toggle-prompt-mode",value:t,items:["Template","Formatted"],onChange:r=>n(r)}):S.jsx(ro,{sx:{alignSelf:"flex-end"},severity:"info",id:"template-warning",children:"Prompt template not found. Only displaying formatted prompt instead."})}function frt({hasTemplate:e}){return e?S.jsx(yi,{title:"Coming soon!",children:S.jsx("span",{children:S.jsx(Gu,{size:"large",variant:"contained",disabled:!0,children:"Save"})})}):null}function drt(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 GD=drt,prt="__lodash_hash_undefined__";function hrt(e){return this.__data__.set(e,prt),this}var grt=hrt;function mrt(e){return this.__data__.has(e)}var vrt=mrt,yrt=DD,brt=grt,_rt=vrt;function _x(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new yrt;++t<n;)this.add(e[t])}_x.prototype.add=_x.prototype.push=brt;_x.prototype.has=_rt;var xrt=_x;function wrt(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 Srt=wrt;function Crt(e,t){return e.has(t)}var Ert=Crt,krt=xrt,Trt=Srt,Rrt=Ert,Art=1,$rt=2;function Ort(e,t,n,r,i,o){var a=n&Art,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,g=n&$rt?new krt: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(g){if(!Trt(t,function(b,x){if(!Rrt(g,x)&&(v===b||i(v,b,n,r,o)))return g.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 jZ=Ort;function Irt(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var Drt=Irt;function Prt(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Lrt=Prt,B5=Dh,j5=vZ,Mrt=Gy,Frt=jZ,Nrt=Drt,Brt=Lrt,jrt=1,zrt=2,Urt="[object Boolean]",Krt="[object Date]",Wrt="[object Error]",Vrt="[object Map]",Hrt="[object Number]",qrt="[object RegExp]",Grt="[object Set]",Yrt="[object String]",Xrt="[object Symbol]",Zrt="[object ArrayBuffer]",Jrt="[object DataView]",z5=B5?B5.prototype:void 0,FT=z5?z5.valueOf:void 0;function Qrt(e,t,n,r,i,o,a){switch(n){case Jrt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Zrt:return!(e.byteLength!=t.byteLength||!o(new j5(e),new j5(t)));case Urt:case Krt:case Hrt:return Mrt(+e,+t);case Wrt:return e.name==t.name&&e.message==t.message;case qrt:case Yrt:return e==t+"";case Vrt:var s=Nrt;case Grt:var l=r&jrt;if(s||(s=Brt),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=zrt,a.set(e,t);var f=Frt(s(e),s(t),r,i,o,a);return a.delete(e),f;case Xrt:if(FT)return FT.call(e)==FT.call(t)}return!1}var eit=Qrt;function tit(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var YD=tit,nit=YD,rit=Ca;function iit(e,t,n){var r=t(e);return rit(e)?r:nit(r,n(e))}var zZ=iit;function oit(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 ait=oit;function sit(){return[]}var UZ=sit,lit=ait,uit=UZ,cit=Object.prototype,fit=cit.propertyIsEnumerable,U5=Object.getOwnPropertySymbols,dit=U5?function(e){return e==null?[]:(e=Object(e),lit(U5(e),function(t){return fit.call(e,t)}))}:uit,XD=dit,pit=_Z,hit=pit(Object.keys,Object),git=hit,mit=MD,vit=git,yit=Object.prototype,bit=yit.hasOwnProperty;function _it(e){if(!mit(e))return vit(e);var t=[];for(var n in Object(e))bit.call(e,n)&&n!="constructor"&&t.push(n);return t}var xit=_it,wit=TZ,Sit=xit,Cit=Nh;function Eit(e){return Cit(e)?wit(e):Sit(e)}var Xy=Eit,kit=zZ,Tit=XD,Rit=Xy;function Ait(e){return kit(e,Rit,Tit)}var KZ=Ait,K5=KZ,$it=1,Oit=Object.prototype,Iit=Oit.hasOwnProperty;function Dit(e,t,n,r,i,o){var a=n&$it,s=K5(e),l=s.length,u=K5(t),f=u.length;if(l!=f&&!a)return!1;for(var d=l;d--;){var p=s[d];if(!(a?p in t:Iit.call(t,p)))return!1}var g=o.get(e),v=o.get(t);if(g&&v)return g==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 C=a?r(x,b,p,t,e,o):r(b,x,p,e,t,o);if(!(C===void 0?b===x||i(b,x,n,r,o):C)){y=!1;break}w||(w=p=="constructor")}if(y&&!w){var k=e.constructor,R=t.constructor;k!=R&&"constructor"in e&&"constructor"in t&&!(typeof k=="function"&&k instanceof k&&typeof R=="function"&&R instanceof R)&&(y=!1)}return o.delete(e),o.delete(t),y}var Pit=Dit,Lit=Vf,Mit=rs,Fit=Lit(Mit,"DataView"),Nit=Fit,Bit=Vf,jit=rs,zit=Bit(jit,"Promise"),Uit=zit,Kit=Vf,Wit=rs,Vit=Kit(Wit,"Set"),Hit=Vit,qit=Vf,Git=rs,Yit=qit(Git,"WeakMap"),Xit=Yit,_$=Nit,x$=ID,w$=Uit,S$=Hit,C$=Xit,WZ=Ph,Uh=dZ,W5="[object Map]",Zit="[object Object]",V5="[object Promise]",H5="[object Set]",q5="[object WeakMap]",G5="[object DataView]",Jit=Uh(_$),Qit=Uh(x$),eot=Uh(w$),tot=Uh(S$),not=Uh(C$),zc=WZ;(_$&&zc(new _$(new ArrayBuffer(1)))!=G5||x$&&zc(new x$)!=W5||w$&&zc(w$.resolve())!=V5||S$&&zc(new S$)!=H5||C$&&zc(new C$)!=q5)&&(zc=function(e){var t=WZ(e),n=t==Zit?e.constructor:void 0,r=n?Uh(n):"";if(r)switch(r){case Jit:return G5;case Qit:return W5;case eot:return V5;case tot:return H5;case not:return q5}return t});var fC=zc,NT=aC,rot=jZ,iot=eit,oot=Pit,Y5=fC,X5=Ca,Z5=uC,aot=jD,sot=1,J5="[object Arguments]",Q5="[object Array]",vb="[object Object]",lot=Object.prototype,e6=lot.hasOwnProperty;function uot(e,t,n,r,i,o){var a=X5(e),s=X5(t),l=a?Q5:Y5(e),u=s?Q5:Y5(t);l=l==J5?vb:l,u=u==J5?vb:u;var f=l==vb,d=u==vb,p=l==u;if(p&&Z5(e)){if(!Z5(t))return!1;a=!0,f=!1}if(p&&!f)return o||(o=new NT),a||aot(e)?rot(e,t,n,r,i,o):iot(e,t,l,n,r,i,o);if(!(n&sot)){var g=f&&e6.call(e,"__wrapped__"),v=d&&e6.call(t,"__wrapped__");if(g||v){var y=g?e.value():e,w=v?t.value():t;return o||(o=new NT),i(y,w,n,r,o)}}return p?(o||(o=new NT),oot(e,t,n,r,i,o)):!1}var cot=uot,fot=cot,t6=Wl;function VZ(e,t,n,r,i){return e===t?!0:e==null||t==null||!t6(e)&&!t6(t)?e!==e&&t!==t:fot(e,t,n,r,VZ,i)}var HZ=VZ,dot=aC,pot=HZ,hot=1,got=2;function mot(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 dot;if(r)var p=r(u,f,l,e,t,d);if(!(p===void 0?pot(f,u,hot|got,r,d):p))return!1}}return!0}var vot=mot,yot=is;function bot(e){return e===e&&!yot(e)}var qZ=bot,_ot=qZ,xot=Xy;function wot(e){for(var t=xot(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,_ot(i)]}return t}var Sot=wot;function Cot(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var GZ=Cot,Eot=vot,kot=Sot,Tot=GZ;function Rot(e){var t=kot(e);return t.length==1&&t[0][2]?Tot(t[0][0],t[0][1]):function(n){return n===e||Eot(n,e,t)}}var Aot=Rot,$ot=Ph,Oot=Wl,Iot="[object Symbol]";function Dot(e){return typeof e=="symbol"||Oot(e)&&$ot(e)==Iot}var dC=Dot,Pot=Ca,Lot=dC,Mot=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fot=/^\w*$/;function Not(e,t){if(Pot(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Lot(e)?!0:Fot.test(e)||!Mot.test(e)||t!=null&&e in Object(t)}var ZD=Not,YZ=DD,Bot="Expected a function";function JD(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Bot);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(JD.Cache||YZ),n}JD.Cache=YZ;var jot=JD,zot=jot,Uot=500;function Kot(e){var t=zot(e,function(r){return n.size===Uot&&n.clear(),r}),n=t.cache;return t}var Wot=Kot,Vot=Wot,Hot=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qot=/\\(\\)?/g,Got=Vot(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Hot,function(n,r,i,o){t.push(i?o.replace(qot,"$1"):r||n)}),t}),Yot=Got,n6=Dh,Xot=GD,Zot=Ca,Jot=dC,Qot=1/0,r6=n6?n6.prototype:void 0,i6=r6?r6.toString:void 0;function XZ(e){if(typeof e=="string")return e;if(Zot(e))return Xot(e,XZ)+"";if(Jot(e))return i6?i6.call(e):"";var t=e+"";return t=="0"&&1/e==-Qot?"-0":t}var eat=XZ,tat=eat;function nat(e){return e==null?"":tat(e)}var rat=nat,iat=Ca,oat=ZD,aat=Yot,sat=rat;function lat(e,t){return iat(e)?e:oat(e,t)?[e]:aat(sat(e))}var pC=lat,uat=dC,cat=1/0;function fat(e){if(typeof e=="string"||uat(e))return e;var t=e+"";return t=="0"&&1/e==-cat?"-0":t}var Zy=fat,dat=pC,pat=Zy;function hat(e,t){t=dat(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[pat(t[n++])];return n&&n==r?e:void 0}var QD=hat,gat=QD;function mat(e,t,n){var r=e==null?void 0:gat(e,t);return r===void 0?n:r}var vat=mat;function yat(e,t){return e!=null&&t in Object(e)}var bat=yat,_at=pC,xat=lC,wat=Ca,Sat=zD,Cat=FD,Eat=Zy;function kat(e,t,n){t=_at(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var a=Eat(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&&Cat(i)&&Sat(a,i)&&(wat(e)||xat(e)))}var Tat=kat,Rat=bat,Aat=Tat;function $at(e,t){return e!=null&&Aat(e,t,Rat)}var Oat=$at,Iat=HZ,Dat=vat,Pat=Oat,Lat=ZD,Mat=qZ,Fat=GZ,Nat=Zy,Bat=1,jat=2;function zat(e,t){return Lat(e)&&Mat(t)?Fat(Nat(e),t):function(n){var r=Dat(n,e);return r===void 0&&r===t?Pat(n,e):Iat(t,r,Bat|jat)}}var Uat=zat;function Kat(e){return function(t){return t==null?void 0:t[e]}}var Wat=Kat,Vat=QD;function Hat(e){return function(t){return Vat(t,e)}}var qat=Hat,Gat=Wat,Yat=qat,Xat=ZD,Zat=Zy;function Jat(e){return Xat(e)?Gat(Zat(e)):Yat(e)}var Qat=Jat,est=Aot,tst=Uat,nst=UD,rst=Ca,ist=Qat;function ost(e){return typeof e=="function"?e:e==null?nst:typeof e=="object"?rst(e)?tst(e[0],e[1]):est(e):ist(e)}var ZZ=ost,ast=gZ,sst=Xy;function lst(e,t){return e&&ast(e,t,sst)}var JZ=lst,ust=Nh;function cst(e,t){return function(n,r){if(n==null)return n;if(!ust(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 fst=cst,dst=JZ,pst=fst,hst=pst(dst),gst=hst,mst=gst,vst=Nh;function yst(e,t){var n=-1,r=vst(e)?Array(e.length):[];return mst(e,function(i,o,a){r[++n]=t(i,o,a)}),r}var bst=yst,_st=GD,xst=ZZ,wst=bst,Sst=Ca;function Cst(e,t){var n=Sst(e)?_st:wst;return n(e,xst(t))}var Est=Cst;const kst=_i(Est),Tst=()=>{var i;const[e,t]=ir(AS),n=Ct(ts),r=kst((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?S.jsx(zh,{items:r,id:"variable-select",value:e||"",label:"Select a variable",onChange:o=>t(o.target.value),sx:{maxWidth:"270px"}}):null};function Rst({hasTemplate:e,isSmallScreen:t,toggleDrawer:n,handleClose:r}){return S.jsxs(Ht,{direction:"row",alignItems:"center",children:[S.jsxs(Ht,{direction:"row",alignItems:"center",gap:1,children:[S.jsx(crt,{hasTemplate:e}),S.jsx(Tst,{})]}),S.jsxs(Ht,{sx:{ml:"auto"},direction:"row",alignItems:"center",gap:1,children:[S.jsx(Gu,{size:"large",target:"_blank",href:"https://docs.chainlit.io/concepts/prompt-playground",children:"Help"}),S.jsx(frt,{hasTemplate:e}),t?S.jsx(or,{"aria-label":"open drawer",edge:"end",onClick:n,sx:{mr:"4px"},children:S.jsx(qD,{})}):null,S.jsx(or,{edge:"end",id:"close-playground",onClick:r,children:S.jsx(yh,{sx:{height:"32px",width:"32px",color:_t[500]}})})]})]})}var o6=Array.isArray,a6=Object.keys,Ast=Object.prototype.hasOwnProperty,$st=typeof Element<"u";function E$(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var n=o6(e),r=o6(t),i,o,a;if(n&&r){if(o=e.length,o!=t.length)return!1;for(i=o;i--!==0;)if(!E$(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=a6(e);if(o=d.length,o!==a6(t).length)return!1;for(i=o;i--!==0;)if(!Ast.call(t,d[i]))return!1;if($st&&e instanceof Element&&t instanceof Element)return e===t;for(i=o;i--!==0;)if(a=d[i],!(a==="_owner"&&e.$$typeof)&&!E$(e[a],t[a]))return!1;return!0}return e!==e&&t!==t}var Ost=function(t,n){try{return E$(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 Uc=_i(Ost);var Ist=function(t){return Dst(t)&&!Pst(t)};function Dst(e){return!!e&&typeof e=="object"}function Pst(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Fst(e)}var Lst=typeof Symbol=="function"&&Symbol.for,Mst=Lst?Symbol.for("react.element"):60103;function Fst(e){return e.$$typeof===Mst}function Nst(e){return Array.isArray(e)?[]:{}}function xx(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Gv(Nst(e),e,t):e}function Bst(e,t,n){return e.concat(t).map(function(r){return xx(r,n)})}function jst(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(i){r[i]=xx(e[i],n)}),Object.keys(t).forEach(function(i){!n.isMergeableObject(t[i])||!e[i]?r[i]=xx(t[i],n):r[i]=Gv(e[i],t[i],n)}),r}function Gv(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||Bst,n.isMergeableObject=n.isMergeableObject||Ist;var r=Array.isArray(t),i=Array.isArray(e),o=r===i;return o?r?n.arrayMerge(e,t,n):jst(e,t,n):xx(t,n)}Gv.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,i){return Gv(r,i,n)},{})};var k$=Gv,zst=typeof global=="object"&&global&&global.Object===Object&&global;const QZ=zst;var Ust=typeof self=="object"&&self&&self.Object===Object&&self,Kst=QZ||Ust||Function("return this")();const Xs=Kst;var Wst=Xs.Symbol;const Yu=Wst;var eJ=Object.prototype,Vst=eJ.hasOwnProperty,Hst=eJ.toString,wm=Yu?Yu.toStringTag:void 0;function qst(e){var t=Vst.call(e,wm),n=e[wm];try{e[wm]=void 0;var r=!0}catch{}var i=Hst.call(e);return r&&(t?e[wm]=n:delete e[wm]),i}var Gst=Object.prototype,Yst=Gst.toString;function Xst(e){return Yst.call(e)}var Zst="[object Null]",Jst="[object Undefined]",s6=Yu?Yu.toStringTag:void 0;function Hf(e){return e==null?e===void 0?Jst:Zst:s6&&s6 in Object(e)?qst(e):Xst(e)}function tJ(e,t){return function(n){return e(t(n))}}var Qst=tJ(Object.getPrototypeOf,Object);const eP=Qst;function qf(e){return e!=null&&typeof e=="object"}var elt="[object Object]",tlt=Function.prototype,nlt=Object.prototype,nJ=tlt.toString,rlt=nlt.hasOwnProperty,ilt=nJ.call(Object);function l6(e){if(!qf(e)||Hf(e)!=elt)return!1;var t=eP(e);if(t===null)return!0;var n=rlt.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&nJ.call(n)==ilt}function olt(){this.__data__=[],this.size=0}function rJ(e,t){return e===t||e!==e&&t!==t}function hC(e,t){for(var n=e.length;n--;)if(rJ(e[n][0],t))return n;return-1}var alt=Array.prototype,slt=alt.splice;function llt(e){var t=this.__data__,n=hC(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():slt.call(t,n,1),--this.size,!0}function ult(e){var t=this.__data__,n=hC(t,e);return n<0?void 0:t[n][1]}function clt(e){return hC(this.__data__,e)>-1}function flt(e,t){var n=this.__data__,r=hC(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Vl(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])}}Vl.prototype.clear=olt;Vl.prototype.delete=llt;Vl.prototype.get=ult;Vl.prototype.has=clt;Vl.prototype.set=flt;function dlt(){this.__data__=new Vl,this.size=0}function plt(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function hlt(e){return this.__data__.get(e)}function glt(e){return this.__data__.has(e)}function Jy(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var mlt="[object AsyncFunction]",vlt="[object Function]",ylt="[object GeneratorFunction]",blt="[object Proxy]";function iJ(e){if(!Jy(e))return!1;var t=Hf(e);return t==vlt||t==ylt||t==mlt||t==blt}var _lt=Xs["__core-js_shared__"];const BT=_lt;var u6=function(){var e=/[^.]+$/.exec(BT&&BT.keys&&BT.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function xlt(e){return!!u6&&u6 in e}var wlt=Function.prototype,Slt=wlt.toString;function Gf(e){if(e!=null){try{return Slt.call(e)}catch{}try{return e+""}catch{}}return""}var Clt=/[\\^$.*+?()[\]{}|]/g,Elt=/^\[object .+?Constructor\]$/,klt=Function.prototype,Tlt=Object.prototype,Rlt=klt.toString,Alt=Tlt.hasOwnProperty,$lt=RegExp("^"+Rlt.call(Alt).replace(Clt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Olt(e){if(!Jy(e)||xlt(e))return!1;var t=iJ(e)?$lt:Elt;return t.test(Gf(e))}function Ilt(e,t){return e==null?void 0:e[t]}function Yf(e,t){var n=Ilt(e,t);return Olt(n)?n:void 0}var Dlt=Yf(Xs,"Map");const Yv=Dlt;var Plt=Yf(Object,"create");const Xv=Plt;function Llt(){this.__data__=Xv?Xv(null):{},this.size=0}function Mlt(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Flt="__lodash_hash_undefined__",Nlt=Object.prototype,Blt=Nlt.hasOwnProperty;function jlt(e){var t=this.__data__;if(Xv){var n=t[e];return n===Flt?void 0:n}return Blt.call(t,e)?t[e]:void 0}var zlt=Object.prototype,Ult=zlt.hasOwnProperty;function Klt(e){var t=this.__data__;return Xv?t[e]!==void 0:Ult.call(t,e)}var Wlt="__lodash_hash_undefined__";function Vlt(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Xv&&t===void 0?Wlt:t,this}function Cf(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])}}Cf.prototype.clear=Llt;Cf.prototype.delete=Mlt;Cf.prototype.get=jlt;Cf.prototype.has=Klt;Cf.prototype.set=Vlt;function Hlt(){this.size=0,this.__data__={hash:new Cf,map:new(Yv||Vl),string:new Cf}}function qlt(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function gC(e,t){var n=e.__data__;return qlt(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Glt(e){var t=gC(this,e).delete(e);return this.size-=t?1:0,t}function Ylt(e){return gC(this,e).get(e)}function Xlt(e){return gC(this,e).has(e)}function Zlt(e,t){var n=gC(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function dc(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])}}dc.prototype.clear=Hlt;dc.prototype.delete=Glt;dc.prototype.get=Ylt;dc.prototype.has=Xlt;dc.prototype.set=Zlt;var Jlt=200;function Qlt(e,t){var n=this.__data__;if(n instanceof Vl){var r=n.__data__;if(!Yv||r.length<Jlt-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new dc(r)}return n.set(e,t),this.size=n.size,this}function Kh(e){var t=this.__data__=new Vl(e);this.size=t.size}Kh.prototype.clear=dlt;Kh.prototype.delete=plt;Kh.prototype.get=hlt;Kh.prototype.has=glt;Kh.prototype.set=Qlt;function eut(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var tut=function(){try{var e=Yf(Object,"defineProperty");return e({},"",{}),e}catch{}}();const c6=tut;function oJ(e,t,n){t=="__proto__"&&c6?c6(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var nut=Object.prototype,rut=nut.hasOwnProperty;function aJ(e,t,n){var r=e[t];(!(rut.call(e,t)&&rJ(r,n))||n===void 0&&!(t in e))&&oJ(e,t,n)}function mC(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?oJ(n,s,l):aJ(n,s,l)}return n}function iut(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var out="[object Arguments]";function f6(e){return qf(e)&&Hf(e)==out}var sJ=Object.prototype,aut=sJ.hasOwnProperty,sut=sJ.propertyIsEnumerable,lut=f6(function(){return arguments}())?f6:function(e){return qf(e)&&aut.call(e,"callee")&&!sut.call(e,"callee")};const uut=lut;var cut=Array.isArray;const Qy=cut;function fut(){return!1}var lJ=typeof exports=="object"&&exports&&!exports.nodeType&&exports,d6=lJ&&typeof module=="object"&&module&&!module.nodeType&&module,dut=d6&&d6.exports===lJ,p6=dut?Xs.Buffer:void 0,put=p6?p6.isBuffer:void 0,hut=put||fut;const uJ=hut;var gut=9007199254740991,mut=/^(?:0|[1-9]\d*)$/;function vut(e,t){var n=typeof e;return t=t??gut,!!t&&(n=="number"||n!="symbol"&&mut.test(e))&&e>-1&&e%1==0&&e<t}var yut=9007199254740991;function cJ(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=yut}var but="[object Arguments]",_ut="[object Array]",xut="[object Boolean]",wut="[object Date]",Sut="[object Error]",Cut="[object Function]",Eut="[object Map]",kut="[object Number]",Tut="[object Object]",Rut="[object RegExp]",Aut="[object Set]",$ut="[object String]",Out="[object WeakMap]",Iut="[object ArrayBuffer]",Dut="[object DataView]",Put="[object Float32Array]",Lut="[object Float64Array]",Mut="[object Int8Array]",Fut="[object Int16Array]",Nut="[object Int32Array]",But="[object Uint8Array]",jut="[object Uint8ClampedArray]",zut="[object Uint16Array]",Uut="[object Uint32Array]",Vn={};Vn[Put]=Vn[Lut]=Vn[Mut]=Vn[Fut]=Vn[Nut]=Vn[But]=Vn[jut]=Vn[zut]=Vn[Uut]=!0;Vn[but]=Vn[_ut]=Vn[Iut]=Vn[xut]=Vn[Dut]=Vn[wut]=Vn[Sut]=Vn[Cut]=Vn[Eut]=Vn[kut]=Vn[Tut]=Vn[Rut]=Vn[Aut]=Vn[$ut]=Vn[Out]=!1;function Kut(e){return qf(e)&&cJ(e.length)&&!!Vn[Hf(e)]}function tP(e){return function(t){return e(t)}}var fJ=typeof exports=="object"&&exports&&!exports.nodeType&&exports,dv=fJ&&typeof module=="object"&&module&&!module.nodeType&&module,Wut=dv&&dv.exports===fJ,jT=Wut&&QZ.process,Vut=function(){try{var e=dv&&dv.require&&dv.require("util").types;return e||jT&&jT.binding&&jT.binding("util")}catch{}}();const ih=Vut;var h6=ih&&ih.isTypedArray,Hut=h6?tP(h6):Kut;const qut=Hut;var Gut=Object.prototype,Yut=Gut.hasOwnProperty;function dJ(e,t){var n=Qy(e),r=!n&&uut(e),i=!n&&!r&&uJ(e),o=!n&&!r&&!i&&qut(e),a=n||r||i||o,s=a?iut(e.length,String):[],l=s.length;for(var u in e)(t||Yut.call(e,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||vut(u,l)))&&s.push(u);return s}var Xut=Object.prototype;function nP(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Xut;return e===n}var Zut=tJ(Object.keys,Object);const Jut=Zut;var Qut=Object.prototype,ect=Qut.hasOwnProperty;function tct(e){if(!nP(e))return Jut(e);var t=[];for(var n in Object(e))ect.call(e,n)&&n!="constructor"&&t.push(n);return t}function pJ(e){return e!=null&&cJ(e.length)&&!iJ(e)}function rP(e){return pJ(e)?dJ(e):tct(e)}function nct(e,t){return e&&mC(t,rP(t),e)}function rct(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var ict=Object.prototype,oct=ict.hasOwnProperty;function act(e){if(!Jy(e))return rct(e);var t=nP(e),n=[];for(var r in e)r=="constructor"&&(t||!oct.call(e,r))||n.push(r);return n}function iP(e){return pJ(e)?dJ(e,!0):act(e)}function sct(e,t){return e&&mC(t,iP(t),e)}var hJ=typeof exports=="object"&&exports&&!exports.nodeType&&exports,g6=hJ&&typeof module=="object"&&module&&!module.nodeType&&module,lct=g6&&g6.exports===hJ,m6=lct?Xs.Buffer:void 0,v6=m6?m6.allocUnsafe:void 0;function uct(e,t){if(t)return e.slice();var n=e.length,r=v6?v6(n):new e.constructor(n);return e.copy(r),r}function gJ(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function cct(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 mJ(){return[]}var fct=Object.prototype,dct=fct.propertyIsEnumerable,y6=Object.getOwnPropertySymbols,pct=y6?function(e){return e==null?[]:(e=Object(e),cct(y6(e),function(t){return dct.call(e,t)}))}:mJ;const oP=pct;function hct(e,t){return mC(e,oP(e),t)}function vJ(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var gct=Object.getOwnPropertySymbols,mct=gct?function(e){for(var t=[];e;)vJ(t,oP(e)),e=eP(e);return t}:mJ;const yJ=mct;function vct(e,t){return mC(e,yJ(e),t)}function bJ(e,t,n){var r=t(e);return Qy(e)?r:vJ(r,n(e))}function yct(e){return bJ(e,rP,oP)}function bct(e){return bJ(e,iP,yJ)}var _ct=Yf(Xs,"DataView");const T$=_ct;var xct=Yf(Xs,"Promise");const R$=xct;var wct=Yf(Xs,"Set");const A$=wct;var Sct=Yf(Xs,"WeakMap");const $$=Sct;var b6="[object Map]",Cct="[object Object]",_6="[object Promise]",x6="[object Set]",w6="[object WeakMap]",S6="[object DataView]",Ect=Gf(T$),kct=Gf(Yv),Tct=Gf(R$),Rct=Gf(A$),Act=Gf($$),Kc=Hf;(T$&&Kc(new T$(new ArrayBuffer(1)))!=S6||Yv&&Kc(new Yv)!=b6||R$&&Kc(R$.resolve())!=_6||A$&&Kc(new A$)!=x6||$$&&Kc(new $$)!=w6)&&(Kc=function(e){var t=Hf(e),n=t==Cct?e.constructor:void 0,r=n?Gf(n):"";if(r)switch(r){case Ect:return S6;case kct:return b6;case Tct:return _6;case Rct:return x6;case Act:return w6}return t});const aP=Kc;var $ct=Object.prototype,Oct=$ct.hasOwnProperty;function Ict(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Oct.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Dct=Xs.Uint8Array;const C6=Dct;function sP(e){var t=new e.constructor(e.byteLength);return new C6(t).set(new C6(e)),t}function Pct(e,t){var n=t?sP(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Lct=/\w*$/;function Mct(e){var t=new e.constructor(e.source,Lct.exec(e));return t.lastIndex=e.lastIndex,t}var E6=Yu?Yu.prototype:void 0,k6=E6?E6.valueOf:void 0;function Fct(e){return k6?Object(k6.call(e)):{}}function Nct(e,t){var n=t?sP(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Bct="[object Boolean]",jct="[object Date]",zct="[object Map]",Uct="[object Number]",Kct="[object RegExp]",Wct="[object Set]",Vct="[object String]",Hct="[object Symbol]",qct="[object ArrayBuffer]",Gct="[object DataView]",Yct="[object Float32Array]",Xct="[object Float64Array]",Zct="[object Int8Array]",Jct="[object Int16Array]",Qct="[object Int32Array]",eft="[object Uint8Array]",tft="[object Uint8ClampedArray]",nft="[object Uint16Array]",rft="[object Uint32Array]";function ift(e,t,n){var r=e.constructor;switch(t){case qct:return sP(e);case Bct:case jct:return new r(+e);case Gct:return Pct(e,n);case Yct:case Xct:case Zct:case Jct:case Qct:case eft:case tft:case nft:case rft:return Nct(e,n);case zct:return new r;case Uct:case Vct:return new r(e);case Kct:return Mct(e);case Wct:return new r;case Hct:return Fct(e)}}var T6=Object.create,oft=function(){function e(){}return function(t){if(!Jy(t))return{};if(T6)return T6(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const aft=oft;function sft(e){return typeof e.constructor=="function"&&!nP(e)?aft(eP(e)):{}}var lft="[object Map]";function uft(e){return qf(e)&&aP(e)==lft}var R6=ih&&ih.isMap,cft=R6?tP(R6):uft;const fft=cft;var dft="[object Set]";function pft(e){return qf(e)&&aP(e)==dft}var A6=ih&&ih.isSet,hft=A6?tP(A6):pft;const gft=hft;var mft=1,vft=2,yft=4,_J="[object Arguments]",bft="[object Array]",_ft="[object Boolean]",xft="[object Date]",wft="[object Error]",xJ="[object Function]",Sft="[object GeneratorFunction]",Cft="[object Map]",Eft="[object Number]",wJ="[object Object]",kft="[object RegExp]",Tft="[object Set]",Rft="[object String]",Aft="[object Symbol]",$ft="[object WeakMap]",Oft="[object ArrayBuffer]",Ift="[object DataView]",Dft="[object Float32Array]",Pft="[object Float64Array]",Lft="[object Int8Array]",Mft="[object Int16Array]",Fft="[object Int32Array]",Nft="[object Uint8Array]",Bft="[object Uint8ClampedArray]",jft="[object Uint16Array]",zft="[object Uint32Array]",Fn={};Fn[_J]=Fn[bft]=Fn[Oft]=Fn[Ift]=Fn[_ft]=Fn[xft]=Fn[Dft]=Fn[Pft]=Fn[Lft]=Fn[Mft]=Fn[Fft]=Fn[Cft]=Fn[Eft]=Fn[wJ]=Fn[kft]=Fn[Tft]=Fn[Rft]=Fn[Aft]=Fn[Nft]=Fn[Bft]=Fn[jft]=Fn[zft]=!0;Fn[wft]=Fn[xJ]=Fn[$ft]=!1;function e_(e,t,n,r,i,o){var a,s=t&mft,l=t&vft,u=t&yft;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!Jy(e))return e;var f=Qy(e);if(f){if(a=Ict(e),!s)return gJ(e,a)}else{var d=aP(e),p=d==xJ||d==Sft;if(uJ(e))return uct(e,s);if(d==wJ||d==_J||p&&!i){if(a=l||p?{}:sft(e),!s)return l?vct(e,sct(a,e)):hct(e,nct(a,e))}else{if(!Fn[d])return i?e:{};a=ift(e,d,s)}}o||(o=new Kh);var g=o.get(e);if(g)return g;o.set(e,a),gft(e)?e.forEach(function(w){a.add(e_(w,t,n,w,e,o))}):fft(e)&&e.forEach(function(w,b){a.set(b,e_(w,t,n,b,e,o))});var v=u?l?bct:yct:l?iP:rP,y=f?void 0:v(e);return eut(y||e,function(w,b){y&&(b=w,w=e[b]),aJ(a,b,e_(w,t,n,b,e,o))}),a}var Uft=4;function $6(e){return e_(e,Uft)}function SJ(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 Kft="[object Symbol]";function lP(e){return typeof e=="symbol"||qf(e)&&Hf(e)==Kft}var Wft="Expected a function";function uP(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Wft);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(uP.Cache||dc),n}uP.Cache=dc;var Vft=500;function Hft(e){var t=uP(e,function(r){return n.size===Vft&&n.clear(),r}),n=t.cache;return t}var qft=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Gft=/\\(\\)?/g,Yft=Hft(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(qft,function(n,r,i,o){t.push(i?o.replace(Gft,"$1"):r||n)}),t});const Xft=Yft;var Zft=1/0;function Jft(e){if(typeof e=="string"||lP(e))return e;var t=e+"";return t=="0"&&1/e==-Zft?"-0":t}var Qft=1/0,O6=Yu?Yu.prototype:void 0,I6=O6?O6.toString:void 0;function CJ(e){if(typeof e=="string")return e;if(Qy(e))return SJ(e,CJ)+"";if(lP(e))return I6?I6.call(e):"";var t=e+"";return t=="0"&&1/e==-Qft?"-0":t}function edt(e){return e==null?"":CJ(e)}function EJ(e){return Qy(e)?SJ(e,Jft):lP(e)?[e]:gJ(Xft(edt(e)))}var tdt=!0;function ndt(e,t){if(!tdt){if(e)return;var n="Warning: "+t;typeof console<"u"&&console.warn(n);try{throw Error(n)}catch{}}}function Zr(){return Zr=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},Zr.apply(this,arguments)}function kJ(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"},vC=function(t){return t!==null&&typeof t=="object"},rdt=function(t){return String(Math.floor(Number(t)))===t},zT=function(t){return Object.prototype.toString.call(t)==="[object String]"},UT=function(t){return vC(t)&&Fa(t.then)};function Xo(e,t,n,r){r===void 0&&(r=0);for(var i=EJ(t);e&&r<i.length;)e=e[i[r++]];return e===void 0?n:e}function sf(e,t,n){for(var r=$6(e),i=r,o=0,a=EJ(t);o<a.length-1;o++){var s=a[o],l=Xo(e,a.slice(0,o+1));if(l&&(vC(l)||Array.isArray(l)))i=i[s]=$6(l);else{var u=a[o+1];i=i[s]=rdt(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 TJ(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];vC(s)?n.get(s)||(n.set(s,!0),r[a]=Array.isArray(s)?[]:{},TJ(s,t,n,r[a])):r[a]=t}return r}var yC=T.createContext(void 0);yC.displayName="FormikContext";yC.Provider;yC.Consumer;function idt(){var e=T.useContext(yC);return e||ndt(!1),e}function odt(e,t){switch(t.type){case"SET_VALUES":return Zr({},e,{values:t.payload});case"SET_TOUCHED":return Zr({},e,{touched:t.payload});case"SET_ERRORS":return Uc(e.errors,t.payload)?e:Zr({},e,{errors:t.payload});case"SET_STATUS":return Zr({},e,{status:t.payload});case"SET_ISSUBMITTING":return Zr({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Zr({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Zr({},e,{values:sf(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Zr({},e,{touched:sf(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Zr({},e,{errors:sf(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Zr({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Zr({},e,{touched:TJ(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return Zr({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return Zr({},e,{isSubmitting:!1});default:return e}}var Lc={},yb={};function cP(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=kJ(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),p=Zr({validateOnChange:n,validateOnBlur:i,validateOnMount:a,onSubmit:f},d),g=T.useRef(p.initialValues),v=T.useRef(p.initialErrors||Lc),y=T.useRef(p.initialTouched||yb),w=T.useRef(p.initialStatus),b=T.useRef(!1),x=T.useRef({});T.useEffect(function(){return b.current=!0,function(){b.current=!1}},[]);var C=T.useReducer(odt,{values:p.initialValues,errors:p.initialErrors||Lc,touched:p.initialTouched||yb,status:p.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),k=C[0],R=C[1],A=T.useCallback(function(he,Ae){return new Promise(function(Re,Ne){var U=p.validate(he,Ae);U==null?Re(Lc):UT(U)?U.then(function(H){Re(H||Lc)},function(H){Ne(H)}):Re(U)})},[p.validate]),O=T.useCallback(function(he,Ae){var Re=p.validationSchema,Ne=Fa(Re)?Re(Ae):Re,U=Ae&&Ne.validateAt?Ne.validateAt(Ae,he):sdt(he,Ne);return new Promise(function(H,fe){U.then(function(){H(Lc)},function(Y){Y.name==="ValidationError"?H(adt(Y)):fe(Y)})})},[p.validationSchema]),z=T.useCallback(function(he,Ae){return new Promise(function(Re){return Re(x.current[he].validate(Ae))})},[]),V=T.useCallback(function(he){var Ae=Object.keys(x.current).filter(function(Ne){return Fa(x.current[Ne].validate)}),Re=Ae.length>0?Ae.map(function(Ne){return z(Ne,Xo(he,Ne))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(Re).then(function(Ne){return Ne.reduce(function(U,H,fe){return H==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||H&&(U=sf(U,Ae[fe],H)),U},{})})},[z]),D=T.useCallback(function(he){return Promise.all([V(he),p.validationSchema?O(he):{},p.validate?A(he):{}]).then(function(Ae){var Re=Ae[0],Ne=Ae[1],U=Ae[2],H=k$.all([Re,Ne,U],{arrayMerge:ldt});return H})},[p.validate,p.validationSchema,V,A,O]),W=Go(function(he){return he===void 0&&(he=k.values),R({type:"SET_ISVALIDATING",payload:!0}),D(he).then(function(Ae){return b.current&&(R({type:"SET_ISVALIDATING",payload:!1}),R({type:"SET_ERRORS",payload:Ae})),Ae})});T.useEffect(function(){a&&b.current===!0&&Uc(g.current,p.initialValues)&&W(g.current)},[a,W]);var ie=T.useCallback(function(he){var Ae=he&&he.values?he.values:g.current,Re=he&&he.errors?he.errors:v.current?v.current:p.initialErrors||{},Ne=he&&he.touched?he.touched:y.current?y.current:p.initialTouched||{},U=he&&he.status?he.status:w.current?w.current:p.initialStatus;g.current=Ae,v.current=Re,y.current=Ne,w.current=U;var H=function(){R({type:"RESET_FORM",payload:{isSubmitting:!!he&&!!he.isSubmitting,errors:Re,touched:Ne,status:U,values:Ae,isValidating:!!he&&!!he.isValidating,submitCount:he&&he.submitCount&&typeof he.submitCount=="number"?he.submitCount:0}})};if(p.onReset){var fe=p.onReset(k.values,Be);UT(fe)?fe.then(H):H()}else H()},[p.initialErrors,p.initialStatus,p.initialTouched]);T.useEffect(function(){b.current===!0&&!Uc(g.current,p.initialValues)&&(u&&(g.current=p.initialValues,ie()),a&&W(g.current))},[u,p.initialValues,ie,a,W]),T.useEffect(function(){u&&b.current===!0&&!Uc(v.current,p.initialErrors)&&(v.current=p.initialErrors||Lc,R({type:"SET_ERRORS",payload:p.initialErrors||Lc}))},[u,p.initialErrors]),T.useEffect(function(){u&&b.current===!0&&!Uc(y.current,p.initialTouched)&&(y.current=p.initialTouched||yb,R({type:"SET_TOUCHED",payload:p.initialTouched||yb}))},[u,p.initialTouched]),T.useEffect(function(){u&&b.current===!0&&!Uc(w.current,p.initialStatus)&&(w.current=p.initialStatus,R({type:"SET_STATUS",payload:p.initialStatus}))},[u,p.initialStatus,p.initialTouched]);var se=Go(function(he){if(x.current[he]&&Fa(x.current[he].validate)){var Ae=Xo(k.values,he),Re=x.current[he].validate(Ae);return UT(Re)?(R({type:"SET_ISVALIDATING",payload:!0}),Re.then(function(Ne){return Ne}).then(function(Ne){R({type:"SET_FIELD_ERROR",payload:{field:he,value:Ne}}),R({type:"SET_ISVALIDATING",payload:!1})})):(R({type:"SET_FIELD_ERROR",payload:{field:he,value:Re}}),Promise.resolve(Re))}else if(p.validationSchema)return R({type:"SET_ISVALIDATING",payload:!0}),O(k.values,he).then(function(Ne){return Ne}).then(function(Ne){R({type:"SET_FIELD_ERROR",payload:{field:he,value:Ne[he]}}),R({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),K=T.useCallback(function(he,Ae){var Re=Ae.validate;x.current[he]={validate:Re}},[]),G=T.useCallback(function(he){delete x.current[he]},[]),Q=Go(function(he,Ae){R({type:"SET_TOUCHED",payload:he});var Re=Ae===void 0?i:Ae;return Re?W(k.values):Promise.resolve()}),le=T.useCallback(function(he){R({type:"SET_ERRORS",payload:he})},[]),Z=Go(function(he,Ae){var Re=Fa(he)?he(k.values):he;R({type:"SET_VALUES",payload:Re});var Ne=Ae===void 0?n:Ae;return Ne?W(Re):Promise.resolve()}),ee=T.useCallback(function(he,Ae){R({type:"SET_FIELD_ERROR",payload:{field:he,value:Ae}})},[]),P=Go(function(he,Ae,Re){R({type:"SET_FIELD_VALUE",payload:{field:he,value:Ae}});var Ne=Re===void 0?n:Re;return Ne?W(sf(k.values,he,Ae)):Promise.resolve()}),ge=T.useCallback(function(he,Ae){var Re=Ae,Ne=he,U;if(!zT(he)){he.persist&&he.persist();var H=he.target?he.target:he.currentTarget,fe=H.type,Y=H.name,X=H.id,oe=H.value,xe=H.checked,Ce=H.outerHTML,_e=H.options,nt=H.multiple;Re=Ae||Y||X,Ne=/number|range/.test(fe)?(U=parseFloat(oe),isNaN(U)?"":U):/checkbox/.test(fe)?cdt(Xo(k.values,Re),xe,oe):_e&&nt?udt(_e):oe}Re&&P(Re,Ne)},[P,k.values]),B=Go(function(he){if(zT(he))return function(Ae){return ge(Ae,he)};ge(he)}),L=Go(function(he,Ae,Re){Ae===void 0&&(Ae=!0),R({type:"SET_FIELD_TOUCHED",payload:{field:he,value:Ae}});var Ne=Re===void 0?i:Re;return Ne?W(k.values):Promise.resolve()}),ae=T.useCallback(function(he,Ae){he.persist&&he.persist();var Re=he.target,Ne=Re.name,U=Re.id,H=Re.outerHTML,fe=Ae||Ne||U;L(fe,!0)},[L]),ue=Go(function(he){if(zT(he))return function(Ae){return ae(Ae,he)};ae(he)}),ne=T.useCallback(function(he){Fa(he)?R({type:"SET_FORMIK_STATE",payload:he}):R({type:"SET_FORMIK_STATE",payload:function(){return he}})},[]),we=T.useCallback(function(he){R({type:"SET_STATUS",payload:he})},[]),Te=T.useCallback(function(he){R({type:"SET_ISSUBMITTING",payload:he})},[]),Ee=Go(function(){return R({type:"SUBMIT_ATTEMPT"}),W().then(function(he){var Ae=he instanceof Error,Re=!Ae&&Object.keys(he).length===0;if(Re){var Ne;try{if(Ne=Ie(),Ne===void 0)return}catch(U){throw U}return Promise.resolve(Ne).then(function(U){return b.current&&R({type:"SUBMIT_SUCCESS"}),U}).catch(function(U){if(b.current)throw R({type:"SUBMIT_FAILURE"}),U})}else if(b.current&&(R({type:"SUBMIT_FAILURE"}),Ae))throw he})}),Le=Go(function(he){he&&he.preventDefault&&Fa(he.preventDefault)&&he.preventDefault(),he&&he.stopPropagation&&Fa(he.stopPropagation)&&he.stopPropagation(),Ee().catch(function(Ae){console.warn("Warning: An unhandled error was caught from submitForm()",Ae)})}),Be={resetForm:ie,validateForm:W,validateField:se,setErrors:le,setFieldError:ee,setFieldTouched:L,setFieldValue:P,setStatus:we,setSubmitting:Te,setTouched:Q,setValues:Z,setFormikState:ne,submitForm:Ee},Ie=Go(function(){return f(k.values,Be)}),Pe=Go(function(he){he&&he.preventDefault&&Fa(he.preventDefault)&&he.preventDefault(),he&&he.stopPropagation&&Fa(he.stopPropagation)&&he.stopPropagation(),ie()}),je=T.useCallback(function(he){return{value:Xo(k.values,he),error:Xo(k.errors,he),touched:!!Xo(k.touched,he),initialValue:Xo(g.current,he),initialTouched:!!Xo(y.current,he),initialError:Xo(v.current,he)}},[k.errors,k.touched,k.values]),Fe=T.useCallback(function(he){return{setValue:function(Re,Ne){return P(he,Re,Ne)},setTouched:function(Re,Ne){return L(he,Re,Ne)},setError:function(Re){return ee(he,Re)}}},[P,L,ee]),tt=T.useCallback(function(he){var Ae=vC(he),Re=Ae?he.name:he,Ne=Xo(k.values,Re),U={name:Re,value:Ne,onChange:B,onBlur:ue};if(Ae){var H=he.type,fe=he.value,Y=he.as,X=he.multiple;H==="checkbox"?fe===void 0?U.checked=!!Ne:(U.checked=!!(Array.isArray(Ne)&&~Ne.indexOf(fe)),U.value=fe):H==="radio"?(U.checked=Ne===fe,U.value=fe):Y==="select"&&X&&(U.value=U.value||[],U.multiple=!0)}return U},[ue,B,k.values]),Xe=T.useMemo(function(){return!Uc(g.current,k.values)},[g.current,k.values]),Ye=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]),st=Zr({},k,{initialValues:g.current,initialErrors:v.current,initialTouched:y.current,initialStatus:w.current,handleBlur:ue,handleChange:B,handleReset:Pe,handleSubmit:Le,resetForm:ie,setErrors:le,setFormikState:ne,setFieldTouched:L,setFieldValue:P,setFieldError:ee,setStatus:we,setSubmitting:Te,setTouched:Q,setValues:Z,submitForm:Ee,validateForm:W,validateField:se,isValid:Ye,dirty:Xe,unregisterField:G,registerField:K,getFieldProps:tt,getFieldMeta:je,getFieldHelpers:Fe,validateOnBlur:i,validateOnChange:n,validateOnMount:a});return st}function adt(e){var t={};if(e.inner){if(e.inner.length===0)return sf(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=sf(t,a.path,a.message))}}return t}function sdt(e,t,n,r){n===void 0&&(n=!1),r===void 0&&(r={});var i=O$(e);return t[n?"validateSync":"validate"](i,{abortEarly:!1,context:r})}function O$(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||l6(i)?O$(i):i!==""?i:void 0}):l6(e[r])?t[r]=O$(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function ldt(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?k$(Array.isArray(o)?[]:{},o,n):o}else n.isMergeableObject(o)?r[a]=k$(e[a],o,n):e.indexOf(o)===-1&&r.push(o)}),r}function udt(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function cdt(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 fdt=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 fdt(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 ddt=T.forwardRef(function(e,t){var n=e.action,r=kJ(e,["action"]),i=n??"#",o=idt(),a=o.handleReset,s=o.handleSubmit;return T.createElement("form",Object.assign({onSubmit:s,ref:t,onReset:a,action:i},r))});ddt.displayName="Form";function pdt(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var hdt=pdt,gdt=Bh,mdt=Xy;function vdt(e,t){return e&&gdt(t,mdt(t),e)}var ydt=vdt,bdt=Bh,_dt=Yy;function xdt(e,t){return e&&bdt(t,_dt(t),e)}var wdt=xdt,Sdt=Bh,Cdt=XD;function Edt(e,t){return Sdt(e,Cdt(e),t)}var kdt=Edt,Tdt=YD,Rdt=LD,Adt=XD,$dt=UZ,Odt=Object.getOwnPropertySymbols,Idt=Odt?function(e){for(var t=[];e;)Tdt(t,Adt(e)),e=Rdt(e);return t}:$dt,RJ=Idt,Ddt=Bh,Pdt=RJ;function Ldt(e,t){return Ddt(e,Pdt(e),t)}var Mdt=Ldt,Fdt=zZ,Ndt=RJ,Bdt=Yy;function jdt(e){return Fdt(e,Bdt,Ndt)}var AJ=jdt,zdt=Object.prototype,Udt=zdt.hasOwnProperty;function Kdt(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Udt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var Wdt=Kdt,Vdt=PD;function Hdt(e,t){var n=t?Vdt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var qdt=Hdt,Gdt=/\w*$/;function Ydt(e){var t=new e.constructor(e.source,Gdt.exec(e));return t.lastIndex=e.lastIndex,t}var Xdt=Ydt,D6=Dh,P6=D6?D6.prototype:void 0,L6=P6?P6.valueOf:void 0;function Zdt(e){return L6?Object(L6.call(e)):{}}var Jdt=Zdt,Qdt=PD,ept=qdt,tpt=Xdt,npt=Jdt,rpt=yZ,ipt="[object Boolean]",opt="[object Date]",apt="[object Map]",spt="[object Number]",lpt="[object RegExp]",upt="[object Set]",cpt="[object String]",fpt="[object Symbol]",dpt="[object ArrayBuffer]",ppt="[object DataView]",hpt="[object Float32Array]",gpt="[object Float64Array]",mpt="[object Int8Array]",vpt="[object Int16Array]",ypt="[object Int32Array]",bpt="[object Uint8Array]",_pt="[object Uint8ClampedArray]",xpt="[object Uint16Array]",wpt="[object Uint32Array]";function Spt(e,t,n){var r=e.constructor;switch(t){case dpt:return Qdt(e);case ipt:case opt:return new r(+e);case ppt:return ept(e,n);case hpt:case gpt:case mpt:case vpt:case ypt:case bpt:case _pt:case xpt:case wpt:return rpt(e,n);case apt:return new r;case spt:case cpt:return new r(e);case lpt:return tpt(e);case upt:return new r;case fpt:return npt(e)}}var Cpt=Spt,Ept=fC,kpt=Wl,Tpt="[object Map]";function Rpt(e){return kpt(e)&&Ept(e)==Tpt}var Apt=Rpt,$pt=Apt,Opt=ND,M6=BD,F6=M6&&M6.isMap,Ipt=F6?Opt(F6):$pt,Dpt=Ipt,Ppt=fC,Lpt=Wl,Mpt="[object Set]";function Fpt(e){return Lpt(e)&&Ppt(e)==Mpt}var Npt=Fpt,Bpt=Npt,jpt=ND,N6=BD,B6=N6&&N6.isSet,zpt=B6?jpt(B6):Bpt,Upt=zpt,Kpt=aC,Wpt=hdt,Vpt=kZ,Hpt=ydt,qpt=wdt,Gpt=mZ,Ypt=bZ,Xpt=kdt,Zpt=Mdt,Jpt=KZ,Qpt=AJ,eht=fC,tht=Wdt,nht=Cpt,rht=xZ,iht=Ca,oht=uC,aht=Dpt,sht=is,lht=Upt,uht=Xy,cht=Yy,fht=1,dht=2,pht=4,$J="[object Arguments]",hht="[object Array]",ght="[object Boolean]",mht="[object Date]",vht="[object Error]",OJ="[object Function]",yht="[object GeneratorFunction]",bht="[object Map]",_ht="[object Number]",IJ="[object Object]",xht="[object RegExp]",wht="[object Set]",Sht="[object String]",Cht="[object Symbol]",Eht="[object WeakMap]",kht="[object ArrayBuffer]",Tht="[object DataView]",Rht="[object Float32Array]",Aht="[object Float64Array]",$ht="[object Int8Array]",Oht="[object Int16Array]",Iht="[object Int32Array]",Dht="[object Uint8Array]",Pht="[object Uint8ClampedArray]",Lht="[object Uint16Array]",Mht="[object Uint32Array]",Nn={};Nn[$J]=Nn[hht]=Nn[kht]=Nn[Tht]=Nn[ght]=Nn[mht]=Nn[Rht]=Nn[Aht]=Nn[$ht]=Nn[Oht]=Nn[Iht]=Nn[bht]=Nn[_ht]=Nn[IJ]=Nn[xht]=Nn[wht]=Nn[Sht]=Nn[Cht]=Nn[Dht]=Nn[Pht]=Nn[Lht]=Nn[Mht]=!0;Nn[vht]=Nn[OJ]=Nn[Eht]=!1;function t_(e,t,n,r,i,o){var a,s=t&fht,l=t&dht,u=t&pht;if(n&&(a=i?n(e,r,i,o):n(e)),a!==void 0)return a;if(!sht(e))return e;var f=iht(e);if(f){if(a=tht(e),!s)return Ypt(e,a)}else{var d=eht(e),p=d==OJ||d==yht;if(oht(e))return Gpt(e,s);if(d==IJ||d==$J||p&&!i){if(a=l||p?{}:rht(e),!s)return l?Zpt(e,qpt(a,e)):Xpt(e,Hpt(a,e))}else{if(!Nn[d])return i?e:{};a=nht(e,d,s)}}o||(o=new Kpt);var g=o.get(e);if(g)return g;o.set(e,a),lht(e)?e.forEach(function(w){a.add(t_(w,t,n,w,e,o))}):aht(e)&&e.forEach(function(w,b){a.set(b,t_(w,t,n,b,e,o))});var v=u?l?Qpt:Jpt:l?cht:uht,y=f?void 0:v(e);return Wpt(y||e,function(w,b){y&&(b=w,w=e[b]),Vpt(a,b,t_(w,t,n,b,e,o))}),a}var DJ=t_,Fht=DJ,Nht=1,Bht=4;function jht(e){return Fht(e,Nht|Bht)}var zht=jht;const PJ=_i(zht);function Xf(e){this._maxSize=e,this.clear()}Xf.prototype.clear=function(){this._size=0,this._values=Object.create(null)};Xf.prototype.get=function(e){return this._values[e]};Xf.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var Uht=/[^.^\]^[]+|(?=\[\]|\.\.)/g,LJ=/^\d+$/,Kht=/^\d/,Wht=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,Vht=/^\s*(['"]?)(.*?)(\1)\s*$/,fP=512,j6=new Xf(fP),z6=new Xf(fP),U6=new Xf(fP),lf={Cache:Xf,split:I$,normalizePath:KT,setter:function(e){var t=KT(e);return z6.get(e)||z6.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=KT(e);return U6.get(e)||U6.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+(dP(n)||LJ.test(n)?"["+n+"]":(t?".":"")+n)},"")},forEach:function(e,t,n){Hht(Array.isArray(e)?e:I$(e),t,n)}};function KT(e){return j6.get(e)||j6.set(e,I$(e).map(function(t){return t.replace(Vht,"$2")}))}function I$(e){return e.match(Uht)||[""]}function Hht(e,t,n){var r=e.length,i,o,a,s;for(o=0;o<r;o++)i=e[o],i&&(Yht(i)&&(i='"'+i+'"'),s=dP(i),a=!s&&/^\d+$/.test(i),t.call(n,i,s,a,o,e))}function dP(e){return typeof e=="string"&&e&&["'",'"'].indexOf(e.charAt(0))!==-1}function qht(e){return e.match(Kht)&&!e.match(LJ)}function Ght(e){return Wht.test(e)}function Yht(e){return!dP(e)&&(qht(e)||Ght(e))}const Xht=/[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,bC=e=>e.match(Xht)||[],_C=e=>e[0].toUpperCase()+e.slice(1),pP=(e,t)=>bC(e).join(t).toLowerCase(),MJ=e=>bC(e).reduce((t,n)=>`${t}${t?n[0].toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()}`,""),Zht=e=>_C(MJ(e)),Jht=e=>pP(e,"_"),Qht=e=>pP(e,"-"),egt=e=>_C(pP(e," ")),tgt=e=>bC(e).map(_C).join(" ");var WT={words:bC,upperFirst:_C,camelCase:MJ,pascalCase:Zht,snakeCase:Jht,kebabCase:Qht,sentenceCase:egt,titleCase:tgt},hP={exports:{}};hP.exports=function(e){return FJ(ngt(e),e)};hP.exports.array=FJ;function FJ(e,t){var n=e.length,r=new Array(n),i={},o=n,a=rgt(t),s=igt(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 g=a.get(u)||new Set;if(g=Array.from(g),f=g.length){d.add(u);do{var v=g[--f];l(v,s.get(v),d)}while(f);d.delete(u)}r[--n]=u}}}function ngt(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 rgt(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 igt(e){for(var t=new Map,n=0,r=e.length;n<r;n++)t.set(e[n],n);return t}var ogt=hP.exports;const agt=_i(ogt),sgt=Object.prototype.toString,lgt=Error.prototype.toString,ugt=RegExp.prototype.toString,cgt=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",fgt=/^Symbol\((.*)\)(.*)$/;function dgt(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function K6(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return dgt(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return cgt.call(e).replace(fgt,"Symbol($1)");const r=sgt.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+lgt.call(e)+"]":r==="RegExp"?ugt.call(e):null}function uf(e,t){let n=K6(e,t);return n!==null?n:JSON.stringify(e,function(r,i){let o=K6(this[r],t);return o!==null?o:i},2)}function NJ(e){return e==null?[]:[].concat(e)}let pgt=/\$\{\s*(\w+)\s*\}/g;class wo 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(pgt,(i,o)=>uf(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=[],NJ(t).forEach(o=>{wo.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,wo)}}let bl={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 \`${uf(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${uf(n,!0)}\``+i:`${e} must match the configured type. The validated value was: \`${uf(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"},mu={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"},D$={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},hgt={isValue:"${path} field must be ${value}"},P$={noUnknown:"${path} field has unspecified keys: ${unknown}"},n_={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:bl,string:Na,number:mu,date:D$,object:P$,array:n_,boolean:hgt});const xC=e=>e&&e.__isYupSchema__;class wx{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 wx(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(!xC(i))throw new TypeError("conditions must return a schema object");return i.resolve(n)}}const bb={context:"$",value:"."};class Zf{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]===bb.context,this.isValue=this.key[0]===bb.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?bb.context:this.isValue?bb.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&lf.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}}Zf.prototype.__isYupRef=!0;const Is=e=>e==null;function Nd(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:g}=e;let{parent:v,context:y,abortEarly:w=a.spec.abortEarly}=i;function b(D){return Zf.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 se of Object.keys(W))W[se]=b(W[se]);const ie=new wo(wo.formatError(D.message||p,W),n,W.path,D.type||u);return ie.params=W,ie}const C=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 R=D=>{wo.isError(D)?C(D):D?l(null):C(x())},A=D=>{wo.isError(D)?C(D):s(D)},O=g&&Is(n);if(!i.sync){try{Promise.resolve(O?!0:f.call(k,n,k)).then(R,A)}catch(D){A(D)}return}let z;try{var V;if(z=O?!0:f.call(k,n,k),typeof((V=z)==null?void 0:V.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){A(D);return}R(z)}return t.OPTIONS=e,t}function ggt(e,t,n,r=n){let i,o,a;return t?(lf.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 Sx extends Set{describe(){const t=[];for(const n of this.values())t.push(Zf.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 Sx(this.values())}merge(t,n){const r=this.clone();return t.forEach(i=>r.add(i)),n.forEach(i=>r.delete(i)),r}}function up(e,t=new Map){if(xC(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]=up(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,up(i,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(up(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,i]of Object.entries(e))n[r]=up(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 Sx,this._blacklist=new Sx,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(bl.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=up(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&&Is(o))return o;let a=uf(t),s=uf(o);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}".
|
|
488
|
+
|
|
489
|
+
attempted value: ${a}
|
|
490
|
+
`+(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,g=[];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&&(g=g.concat(x)),--p<=0&&d(g)})}}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,g)=>this.resolve(f)._validate(u,f,p,g)}validate(t,n){let r=this.resolve(Object.assign({},n,{value:t}));return new Promise((i,o)=>r._validate(t,n,(a,s)=>{wo.isError(a)&&(a.value=s),o(a)},(a,s)=>{a.length?o(new wo(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 wo.isError(o)&&(o.value=a),o},(o,a)=>{if(o.length)throw new wo(o,t);i=a}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(wo.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(wo.isError(r))return!1;throw r}}_getDefault(){let t=this.spec.default;return t==null?t:typeof t=="function"?t.call(this):up(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=Nd({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=Nd({message:n,name:"optionality",test(i){return i===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=bl.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=bl.notNull){return this.nullability(!1,t)}required(t=bl.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=bl.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),i=Nd(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=NJ(t).map(o=>new Zf(o));return i.forEach(o=>{o.isSibling&&r.deps.push(o.key)}),r.conditions.push(typeof n=="function"?new wx(i,n):wx.fromOptions(i,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Nd({message:t,name:"typeError",test(r){return!Is(r)&&!this.schema._typeCheck(r)?this.createError({params:{type:this.schema.type}}):!0}}),n}oneOf(t,n=bl.oneOf){let r=this.clone();return t.forEach(i=>{r._whitelist.add(i),r._blacklist.delete(i)}),r.internalTests.whiteList=Nd({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=bl.notOneOf){let r=this.clone();return t.forEach(i=>{r._blacklist.add(i),r._whitelist.delete(i)}),r.internalTests.blacklist=Nd({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}=ggt(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 mgt=/^[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])?)*$/,vgt=/^((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,ygt=/^(?:[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,bgt=e=>Is(e)||e===e.trim(),_gt={}.toString();function Cx(){return new BJ}class BJ 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===_gt?t:i})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||bl.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(mgt,{name:"email",message:t,excludeEmptyString:!0})}url(t=Na.url){return this.matches(vgt,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=Na.uuid){return this.matches(ygt,{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:bgt})}lowercase(t=Na.lowercase){return this.transform(n=>Is(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Is(n)||n===n.toLowerCase()})}uppercase(t=Na.uppercase){return this.transform(n=>Is(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>Is(n)||n===n.toUpperCase()})}}Cx.prototype=BJ.prototype;let xgt=e=>e!=+e;function jJ(){return new zJ}class zJ extends ma{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!xgt(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=mu.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=mu.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=mu.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=mu.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(r){return r>this.resolve(t)}})}positive(t=mu.positive){return this.moreThan(0,t)}negative(t=mu.negative){return this.lessThan(0,t)}integer(t=mu.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>Is(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=>Is(i)?i:Math[t](i))}}jJ.prototype=zJ.prototype;var wgt=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;function Sgt(e){var t=[1,4,5,6,7,10,11],n=0,r,i;if(i=wgt.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 Cgt=new Date(""),Egt=e=>Object.prototype.toString.call(e)==="[object Date]";class wC extends ma{constructor(){super({type:"date",check(t){return Egt(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)?t:(t=Sgt(t),isNaN(t)?wC.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(Zf.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=D$.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=D$.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)}})}}wC.INVALID_DATE=Cgt;wC.prototype;function kgt(e,t=[]){let n=[],r=new Set,i=new Set(t.map(([a,s])=>`${a}-${s}`));function o(a,s){let l=lf.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),Zf.isRef(s)&&s.isSibling?o(s.path,a):xC(s)&&"deps"in s&&s.deps.forEach(l=>o(l,a))}return agt.array(Array.from(r),n).reverse()}function W6(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 UJ(e){return(t,n)=>W6(e,t)-W6(e,n)}const KJ=(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 r_(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=r_(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=r_(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(r_)}):"optional"in e?e.optional():e}const Tgt=(e,t)=>{const n=[...lf.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),i=lf.getter(lf.join(n),!0)(e);return!!(i&&r in i)};let V6=e=>Object.prototype.toString.call(e)==="[object Object]";function Rgt(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const Agt=UJ([]);function gP(e){return new WJ(e)}class WJ extends ma{constructor(t){super({type:"object",check(n){return V6(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=Agt,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],g=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 g&&!a&&(l[d]=i[d]);(g!==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||!V6(u)){i(l,u);return}a=a||u;let f=[];for(let d of this._nodes){let p=this.fields[d];!p||Zf.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=kgt(t,n),r._sortErrors=UJ(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 r_(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=lf.getter(t,!0);return this.transform(o=>{if(!o)return o;let a=o;return Tgt(o,t)&&(a=Object.assign({},o),r||delete a[t],a[n]=i(o)),a})}json(){return this.transform(KJ)}noUnknown(t=!0,n=P$.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=Rgt(this.schema,i);return!t||o.length===0||this.createError({params:{unknown:o.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=P$.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(WT.camelCase)}snakeCase(){return this.transformKeys(WT.snakeCase)}constantCase(){return this.transformKeys(t=>WT.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}}gP.prototype=WJ.prototype;function VJ(e){return new HJ(e)}class HJ 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 g=0;g<u.length;g++){var p;d[g]=a.asNestedTest({options:n,index:g,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,g=>i(g.concat(l),u))})}clone(t){const n=super.clone(t);return n.innerType=this.innerType,n}json(){return this.transform(KJ)}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(!xC(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema not: "+uf(t));return n.innerType=t,n}length(t,n=n_.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||n_.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||n_.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}}VJ.prototype=HJ.prototype;var mP={},$gt=vn;Object.defineProperty(mP,"__esModule",{value:!0});var qJ=mP.default=void 0,Ogt=$gt(yn()),Igt=S,Dgt=(0,Ogt.default)((0,Igt.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");qJ=mP.default=Dgt;function Pgt(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Lgt=Pgt;function Mgt(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 Fgt=Mgt,Ngt=QD,Bgt=Fgt;function jgt(e,t){return t.length<2?e:Ngt(e,Bgt(t,0,-1))}var zgt=jgt,Ugt=pC,Kgt=Lgt,Wgt=zgt,Vgt=Zy;function Hgt(e,t){return t=Ugt(t,e),e=Wgt(e,t),e==null||delete e[Vgt(Kgt(t))]}var qgt=Hgt,Ggt=CZ;function Ygt(e){return Ggt(e)?void 0:e}var Xgt=Ygt,H6=Dh,Zgt=lC,Jgt=Ca,q6=H6?H6.isConcatSpreadable:void 0;function Qgt(e){return Jgt(e)||Zgt(e)||!!(q6&&e&&e[q6])}var emt=Qgt,tmt=YD,nmt=emt;function GJ(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=nmt),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?GJ(s,t-1,n,r,i):tmt(i,s):r||(i[i.length]=s)}return i}var rmt=GJ,imt=rmt;function omt(e){var t=e==null?0:e.length;return t?imt(e,1):[]}var amt=omt,smt=amt,lmt=AZ,umt=$Z;function cmt(e){return umt(lmt(e,void 0,smt),e+"")}var fmt=cmt,dmt=GD,pmt=DJ,hmt=qgt,gmt=pC,mmt=Bh,vmt=Xgt,ymt=fmt,bmt=AJ,_mt=1,xmt=2,wmt=4,Smt=ymt(function(e,t){var n={};if(e==null)return n;var r=!1;t=dmt(t,function(o){return o=gmt(o,e),r||(r=o.length>1),o}),mmt(e,bmt(e),n),r&&(n=pmt(n,_mt|xmt|wmt,vmt));for(var i=t.length;i--;)hmt(n,t[i]);return n}),Cmt=Smt;const _b=_i(Cmt);function i_(e){const{checked:t,description:n,disabled:r,hasError:i,id:o,inputProps:a,label:s,onChange:l,tooltip:u}=e;return S.jsx(jh,{description:n,hasError:i,id:o,label:s,tooltip:u,children:S.jsx(Emt,{name:o,disabled:r,edge:"end",onChange:l,checked:t,inputProps:a})})}const Emt=Me(e=>S.jsx(GRe,{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:oI[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})}}}),Zv={enter:"Enter",backspace:"Backspace"},kmt={ime:229},Tmt=Me(F2)(({theme:e,size:t})=>`
|
|
491
|
+
max-width: 100%;
|
|
492
|
+
margin: 2px 4px;
|
|
493
|
+
height: ${t==="small"?"26px":"32px"};
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
&[aria-disabled="true"] > svg {
|
|
497
|
+
color: ${e.palette.action.disabled};
|
|
498
|
+
cursor: default;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
&.MuiChipsInput-Chip-Editing {
|
|
502
|
+
background-color: ${e.palette.primary.light};
|
|
503
|
+
color: ${e.palette.primary.contrastText};
|
|
504
|
+
}
|
|
505
|
+
`),Rmt={ChipStyled:Tmt},G6=e=>{const{className:t,index:n,onDelete:r,disabled:i,onEdit:o,isEditing:a,disableEdition:s,...l}=e,u=p=>{p.key===Zv.enter&&r(n)},f=p=>{var g,v;(g=p==null?void 0:p.preventDefault)==null||g.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 S.jsx(Rmt.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 Amt(e){return typeof e=="boolean"}function $mt(e){return typeof e=="object"&&!Array.isArray(e)&&e!==null}function Omt(e,t){typeof t=="function"?t(e):t&&$mt(t)&&"current"in t&&(t.current=e)}const Imt=Me("div")`
|
|
506
|
+
top: 50%;
|
|
507
|
+
transform: translateY(-50%);
|
|
508
|
+
right: 10px;
|
|
509
|
+
position: absolute;
|
|
510
|
+
`,Dmt=Me(lS)(e=>{var t;return`
|
|
511
|
+
max-width: 100%;
|
|
512
|
+
|
|
513
|
+
.MuiInputBase-root {
|
|
514
|
+
display: flex;
|
|
515
|
+
flex-wrap: wrap;
|
|
516
|
+
align-items: flex-start;
|
|
517
|
+
row-gap: 5px;
|
|
518
|
+
padding-top: ${e.size==="small"?"5px":"9px"};
|
|
519
|
+
padding-right: ${(t=e.InputProps)!=null&&t.endAdornment?"30px":"9px"};
|
|
520
|
+
padding-bottom: ${e.size==="small"?"5px":"9px"};
|
|
521
|
+
padding-left: 10px;
|
|
522
|
+
|
|
523
|
+
input {
|
|
524
|
+
min-width: 30px;
|
|
525
|
+
width: auto;
|
|
526
|
+
flex-grow: 1;
|
|
527
|
+
text-overflow: ellipsis;
|
|
528
|
+
padding: ${e.size==="small"?"3.5px 4px":"7.5px 4px"};
|
|
529
|
+
align-self: center;
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
`}),Pmt=Me(F2)(({theme:e,size:t})=>`
|
|
533
|
+
max-width: 100%;
|
|
534
|
+
margin: 2px 4px;
|
|
535
|
+
height: ${t==="small"?"26px":"32px"};
|
|
536
|
+
|
|
537
|
+
&[aria-disabled="true"] > svg.MuiChip-deleteIcon {
|
|
538
|
+
color: ${e.palette.action.disabled};
|
|
539
|
+
cursor: default;
|
|
540
|
+
}
|
|
541
|
+
`),Y6={ChipStyled:Pmt,TextFieldStyled:Dmt,EndAdornmentClose:Imt},YJ=gt.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:g,hideClearAll:v,inputProps:y,size:w,disableDeleteOnBackspace:b,disableEdition:x,className:C,renderChip:k,addOnWhichKey:R,onFocus:A,inputValue:O,...z}=e,[V,D]=gt.useState(""),[W,ie]=gt.useState(""),se=gt.useRef(null),K=gt.useRef(!1),G=gt.useRef(typeof O=="string"),[Q,le]=gt.useState(null),{onKeyDown:Z,...ee}=y||{},{inputRef:P,...ge}=s||{},B=()=>{ie("")},L=G.current,ae=L?O:V,ue=Re=>{l==null||l(Re),L||D(Re)},ne=Re=>{ue(n[Re]),le(Re),B()},we=()=>{le(null)},Te=()=>{B(),ue("")},Ee=Re=>{ue(Re.target.value)},Le=()=>{!K.current||(Q!==null?(we(),Te()):f&&Te(),K.current=!1)},Be=Re=>{se.current=Re,t&&Omt(Re,t)},Ie=(Re,Ne)=>U=>{if(typeof d=="function"){const H=d(Re);if(H===!1){Ne.preventDefault();return}if(!Amt(H)&&H.isError){Ne.preventDefault(),ie(H.textError);return}}U()},Pe=(Re,Ne,U)=>{Ie(Re,U)(()=>{i==null||i(Re,Ne),we(),Te()})},je=(Re,Ne)=>{Ie(Re,Ne)(()=>{r==null||r(ae.trim()),Te()})},Fe=(Re,Ne)=>Ne===kmt.ime?!1:R?Array.isArray(R)?R.some(U=>U===Re):R===Re:Re===Zv.enter,tt=Re=>{const Ne=Fe(Re.key,Re.keyCode),U=Re.key===Zv.backspace,H=ae.trim();if(Re.code==="Tab"){Le();return}if(Ne&&Re.preventDefault(),ae.length>0&&Ne)H.length===0?Te():Q!==null?Pe(H,Q,Re):je(H,Re);else if(U&&ae.length===0&&n.length>0&&!b){const fe=n.length-1;o==null||o(fe),Q===fe&&we()}Z==null||Z(Re)},Xe=Re=>{Re.preventDefault(),A==null||A(Re),K.current=!0},Ye=Re=>{Re.preventDefault(),!v&&!u&&(a==null||a(),Te(),we())},st=Re=>{var Ne;Re===Q?(Te(),we()):ne(Re),(Ne=se.current)==null||Ne.focus()},he=Re=>{u||(o==null||o(Re),Q!==null&&(we(),Te()))},Ae=n.length>0;return S.jsx(rbe,{onClickAway:Le,children:S.jsx(Y6.TextFieldStyled,{value:ae,onChange:Ee,ref:t,className:`MuiChipsInput-TextField ${C||""}`,size:w,placeholder:"Type and press enter",onFocus:Xe,inputProps:{onKeyDown:tt,...ee},disabled:u,error:!!W||p,helperText:W||g,InputProps:{inputRef:Be,startAdornment:Ae?n.map((Re,Ne)=>{const U=`chip-${Ne}`,H={index:Ne,onEdit:st,label:Re,title:Re,isEditing:Ne===Q,size:w,disabled:u,disableEdition:x,onDelete:he};return k?k(G6,U,H):T.createElement(G6,{...H,key:U})}):null,endAdornment:v?null:S.jsx(Y6.EndAdornmentClose,{style:{visibility:Ae?"visible":"hidden"},children:S.jsx(or,{"aria-label":"Clear",title:"Clear",disabled:u,size:"small",onClick:Ye,children:S.jsx(yh,{fontSize:"small"})})}),...ge},...z})})});YJ.defaultProps={onInputChange:()=>{},clearInputOnBlur:!1,hideClearAll:!1,disableDeleteOnBackspace:!1,disableEdition:!1,addOnWhichKey:Zv.enter,onDeleteChip:()=>{},onAddChip:()=>{},inputValue:void 0,onEditChip:()=>{},renderChip:void 0,onDeleteAllChips:()=>{},validate:()=>!0};function Lmt(e,t){return[...e,t]}function Mmt(e,t){return e.filter((n,r)=>t!==r)}function Fmt(e,t,n){return e.map((r,i)=>t===i?n:r)}const XJ=gt.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:g,disableEdition:v,addOnWhichKey:y,inputValue:w,...b}=e;return S.jsx(YJ,{chips:n,onAddChip:x=>{if(s)return;const C=Lmt(n,x),k=C.length-1;i==null||i(x,k),r==null||r(C)},onInputChange:o,disableDeleteOnBackspace:d,onDeleteChip:x=>{if(s)return;const C=n[x];r==null||r(Mmt(n,x)),a==null||a(C,x)},onEditChip:(x,C)=>{s||v||(r==null||r(Fmt(n,C,x)),p==null||p(x,C))},renderChip:g,onDeleteAllChips:()=>{r==null||r([])},clearInputOnBlur:u,disabled:s,disableEdition:v,validate:l,inputValue:w,hideClearAll:f,addOnWhichKey:y,...b,ref:t})});XJ.defaultProps={value:[],onChange:()=>{},onAddChip:()=>{},onDeleteChip:()=>{},onInputChange:()=>{},onEditChip:()=>{},addOnWhichKey:Zv.enter,clearInputOnBlur:!1,disableEdition:!1,hideClearAll:!1,disableDeleteOnBackspace:!1,validate:()=>!0};function Nmt({description:e,hasError:t,id:n,label:r,size:i="small",tooltip:o,setField:a,...s}){return S.jsx(jh,{description:e,hasError:t,id:n,label:r,tooltip:o,children:S.jsx(XJ,{...s,sx:{my:.5},size:i,onChange:l=>a==null?void 0:a(n,l,!1),inputProps:{id:n,name:n}})})}function L$({description:e,disabled:t,hasError:n,id:r,label:i,size:o="small",tooltip:a,...s}){return S.jsx(jh,{description:e,hasError:n,id:r,label:i,tooltip:a,children:S.jsx(lS,{disabled:t,inputProps:{...s,id:r,name:r,sx:{height:o==="small"?"7px":"15px"}},fullWidth:!0,sx:{fontSize:"14px",fontWeight:400,my:.5}})})}const Bmt=({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:g}=a;p&&f>p?o&&o(n,p):d&&f<d?o&&o(n,d):g&&g(u,f,0)};return S.jsx(jh,{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:S.jsx(jmt,{...a,id:n,name:n})})},jmt=Me(SRe)(({theme:e})=>{const t=e.palette.mode==="light";return{width:"calc(100% - 18px)",marginLeft:"8px",color:_t[t?300:850],height:3,"& .MuiSlider-track":{border:"none",color:_t[500]},"& .MuiSlider-thumb":{height:15,width:15,backgroundColor:t?_t[600]:"white",border:`4px solid ${t?_t[300]:_t[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)"}}}}),ZJ=({element:e})=>{var t;switch(e.type){case"select":return S.jsx(zh,{..._b(e,"setField"),value:e.value??""});case"slider":return S.jsx(Bmt,{...e,value:e.value??0});case"tags":return S.jsx(Nmt,{...e,value:e.value??[]});case"switch":return S.jsx(i_,{..._b(e,"setField"),checked:!!e.value,inputProps:{id:e.id,name:e.id}});case"textinput":return S.jsx(L$,{..._b(e,"setField"),value:e.value??""});case"numberinput":return S.jsx(L$,{..._b(e,"setField"),type:"number",value:((t=e.value)==null?void 0:t.toString())??"0"});default:return S.jsx(S.Fragment,{})}},vP=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}},zmt=({settings:e,schema:t})=>{var d,p;const[n,r]=ir(ts),{provider:i,providers:o,providerFound:a}=vP(n),s=a?null:S.jsx(ro,{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
|
|
542
|
+
${i.name} instead.`:`Provider not specified, using ${i.name} instead.`}),l=cP({initialValues:e,validationSchema:t,enableReinitialize:!0,onSubmit:async()=>{}});T.useEffect(()=>{r(g=>({...g,prompt:{...g.prompt,settings:l.values}}))},[l.values]);const u=g=>{r(v=>vx(PJ(v),{prompt:{provider:g.target.value}}))},f=()=>{var g,v;return i.is_chat&&!((g=n.prompt)!=null&&g.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 S.jsxs(at,{width:250,sx:{height:"inherit"},children:[S.jsx(Yt,{fontSize:"16px",fontWeight:600,color:"text.primary",children:"Settings"}),S.jsxs(Ht,{spacing:2,sx:{overflowY:"auto",overflowX:"hidden",height:"100%"},children:[S.jsx(zh,{items:o==null?void 0:o.map(g=>({label:g.name,value:g.id})),id:"llm-providers",value:i.id,label:"LLM Provider",tooltip:f(),onChange:u}),s,i.inputs.map((g,v)=>S.jsx(at,{sx:{paddingBottom:v===i.inputs.length-1?2:0},children:S.jsx(ZJ,{element:{...g,id:g.id,value:l.values[g.id],onChange:y=>{l.handleChange(y)},setField:(y,w,b)=>{l.setFieldValue(y,w,b)}}})},g.id))]})]})},X6=()=>{var s,l;const e=Ct(ts),{provider:t}=vP(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=gP(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=jJ();f.min&&(p=p.min(f.min)),f.max&&(p=p.max(f.max)),u[f.id]=p;break}case"tags":u[f.id]=VJ().of(Cx());break}return u},{}));return S.jsx(zmt,{schema:a,settings:n})};function Umt({isSmallScreen:e,isDrawerOpen:t,toggleDrawer:n}){return e?S.jsxs(lV,{sx:{"& .MuiDrawer-paper":{}},variant:"persistent",anchor:"right",open:t,children:[S.jsx(at,{sx:{display:"flex",justifyContent:"flex-end",pt:2,pr:1},children:S.jsx(or,{onClick:n,children:S.jsx(qJ,{})})}),S.jsx(at,{px:3,children:S.jsx(X6,{})})]}):S.jsx(at,{ml:"32px !important",height:"100%",children:S.jsx(X6,{})})}function Kmt({onSubmit:e}){const[t,n]=T.useState(),r=Ct(Df),[i,o]=ir(ts),a=Ct(cS),s=async()=>{try{const{provider:l}=vP(i),u=NZ.cloneDeep(i.prompt);u.provider=l.id;const f=new AbortController;n(f),o(d=>d!=null&&d.prompt?{...d,prompt:{...d.prompt,completion:""}}:d),await OS.getCompletion(u,a,f,r,(d,p)=>{if(e&&e(),d){n(void 0);return}o(g=>{var v;return g!=null&&g.prompt?{...g,prompt:{...g.prompt,completion:(((v=g.prompt)==null?void 0:v.completion)||"")+p}}:g})})}catch{n(void 0)}};return t?S.jsx(Oy,{onClick:()=>{t.abort(),n(void 0)},children:"Cancel"}):S.jsx(Gu,{id:"submit-prompt",variant:"outlined",onClick:s,children:"Submit"})}function JJ(){var y,w;const[e,t]=ir(ts),{data:n,error:r,mutate:i}=bh("/project/llm-providers"),[o,a]=T.useState(0),[s,l]=J2(!1),u=T.useRef(null),f=Xn(),d=aS(b=>b.breakpoints.down("md"));T.useEffect(()=>{e!=null&&e.prompt&&i()},[e==null?void 0:e.prompt]),T.useEffect(()=>{n&&t(b=>({...b,providers:n.providers}))},[n]);const p=()=>{e&&(t(b=>({...b,prompt:b.originalPrompt})),a(b=>b+1))},g=()=>{t(b=>({...b,prompt:void 0}))};if(!(e!=null&&e.prompt))return null;const v=(y=e==null?void 0:e.prompt)!=null&&y.messages?e.prompt.messages.every(b=>typeof b.template=="string"):typeof((w=e==null?void 0:e.prompt)==null?void 0:w.template)=="string";return S.jsxs(mh,{open:!!e.prompt,fullScreen:!0,PaperProps:{style:{backgroundColor:f.palette.background.default,backgroundImage:"none"}},onClose:g,id:"playground","aria-labelledby":"playground","aria-describedby":"playground",children:[S.jsx(by,{sx:{display:"flex",flexDirection:"column"},children:S.jsx(Rst,{hasTemplate:v,isSmallScreen:d,toggleDrawer:l,handleClose:g})}),S.jsx(vh,{sx:{display:"flex",direction:"row",padding:3},children:S.jsxs(dG,{prefix:"Prompt Playground error",children:[S.jsxs(Ht,{gap:3,width:"100%",children:[r?S.jsx(ro,{severity:"error",children:"An error occurred while fetching providers settings"}):null,S.jsxs(Ht,{direction:"row",spacing:1.5,sx:{overflowY:"auto",paddingBottom:2,height:"100%"},children:[S.jsx(irt,{}),S.jsx(trt,{restoredTime:o,hasTemplate:v,prompt:e.prompt}),S.jsx(rrt,{ref:u,restoredTime:o,hasTemplate:v,prompt:e.prompt})]})]}),S.jsx(Umt,{isSmallScreen:d,isDrawerOpen:s,toggleDrawer:l})]})}),S.jsxs(Vje,{children:[S.jsx(yi,{title:"Restore original",children:S.jsx(or,{onClick:p,children:S.jsx(fG,{})})}),S.jsx(Kmt,{onSubmit:()=>{u!=null&&u.current&&(u.current.scrollTop=u.current.scrollHeight)}})]})]})}function Wmt(){const{id:e}=R9(),{data:t,error:n}=bh(e?`/project/conversation/${e}`:null);if(!t||n)return null;const r=t.elements,i=[];return S.jsxs(at,{display:"flex",flexGrow:1,width:"100%",overflow:"scroll",children:[S.jsx(JJ,{}),S.jsxs(Nq,{children:[S.jsx(at,{my:1}),S.jsx(cG,{actions:i,elements:r,messages:t.messages})]})]})}var yP={},Vmt=vn;Object.defineProperty(yP,"__esModule",{value:!0});var QJ=yP.default=void 0,Hmt=Vmt(yn()),qmt=S,Gmt=(0,Hmt.default)((0,qmt.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");QJ=yP.default=Gmt;const Ymt=e=>S.jsx(V_,{...e,viewBox:"0 0 98 96",children:S.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 Xmt({href:e}){return e?S.jsx(yi,{title:"See on Github",children:S.jsx(or,{color:"inherit",href:e,target:"_blank",children:S.jsx(Ymt,{})})}):null}function Zmt(){var n;const{user:e}=sc(),t=Xn();return e?S.jsx(hA,{sx:{width:32,height:32},src:e.picture||void 0,children:(n=e.name)==null?void 0:n[0]}):S.jsx(at,{color:t.palette.mode==="dark"?"text.primary":"primary.main",children:S.jsx(hA,{sx:{width:32,height:32,bgcolor:"transparent",color:"inherit"}})})}var bP={},Jmt=vn;Object.defineProperty(bP,"__esModule",{value:!0});var eQ=bP.default=void 0,Qmt=Jmt(yn()),evt=S,tvt=(0,Qmt.default)((0,evt.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");eQ=bP.default=tvt;var _P={},nvt=vn;Object.defineProperty(_P,"__esModule",{value:!0});var tQ=_P.default=void 0,rvt=nvt(yn()),ivt=S,ovt=(0,rvt.default)((0,ivt.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");tQ=_P.default=ovt;var xP={},avt=vn;Object.defineProperty(xP,"__esModule",{value:!0});var nQ=xP.default=void 0,svt=avt(yn()),lvt=S,uvt=(0,svt.default)((0,lvt.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");nQ=xP.default=uvt;function cvt({anchorEl:e,open:t,handleClose:n}){var v,y;const{user:r,logout:i}=sc(),o=Ct(ya),a=gn(Hs),s=!!((y=(v=o==null?void 0:o.project)==null?void 0:v.user_env)!=null&&y.length),p=[r&&S.jsxs(iv,{sx:{display:"flex",flexDirection:"column"},children:[S.jsx(Yt,{width:"100%",fontSize:"14px",fontWeight:700,children:r.name}),S.jsx(Yt,{width:"100%",fontSize:"13px",fontWeight:400,children:r.email})]},"user-name"),S.jsxs(ov,{onClick:()=>{a(w=>({...w,open:!0})),n()},children:[S.jsx(xp,{children:S.jsx(nQ,{fontSize:"small"})}),S.jsx(Wb,{children:"Settings"}),S.jsx(Yt,{variant:"body2",color:"text.secondary",children:"S"})]},"settings"),s&&S.jsxs(ov,{component:ey,to:"/env",children:[S.jsx(xp,{children:S.jsx(eQ,{fontSize:"small"})}),"API keys"]},"env"),r&&S.jsxs(ov,{onClick:()=>{i({logoutParams:{returnTo:window.location.origin}}),n()},children:[S.jsx(xp,{children:S.jsx(tQ,{fontSize:"small"})}),"Logout"]},"logout")].filter(w=>!!w),g=p.reduce((w,b,x)=>x===p.length-1?[...w,b]:[...w,b,S.jsx(jCe,{sx:{my:1}},`divider-${x}`)],[]);return S.jsx(xy,{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:g})}function fvt(){const[e,t]=T.useState(null),n=!!e,r=o=>{t(o.currentTarget)},i=()=>{t(null)};return S.jsxs("div",{children:[S.jsx(or,{edge:"end",onClick:r,size:"small","aria-controls":n?"account-menu":void 0,"aria-haspopup":"true","aria-expanded":n?"true":void 0,children:S.jsx(Zmt,{})}),S.jsx(cvt,{open:n,anchorEl:e,handleClose:i})]})}var wP={},dvt=vn;Object.defineProperty(wP,"__esModule",{value:!0});var SP=wP.default=void 0,pvt=dvt(yn()),hvt=S,gvt=(0,pvt.default)((0,hvt.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");SP=wP.default=gvt;const CP=Yn({key:"Actions",default:[]});function mvt(){const e=gn(kS),t=gn(mS),n=gn(eI),r=gn(tI),i=gn(CP),o=gn(nI),a=gn(Bq),s=Bb(Ay),l=Bb(xI),u=Bb(KV),f=Ct(uc);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 vvt(){const e=Zu(),[t,n]=T.useState(!1),r=mvt(),i=()=>{n(!0)},o=()=>{n(!1)},a=()=>{r(),e("/"),o()};return S.jsxs(at,{children:[S.jsx(Gu,{id:"new-chat-button",variant:"outlined",onClick:i,startIcon:S.jsx(SP,{}),children:"New Chat"}),S.jsxs(mh,{open:t,onClose:o,id:"new-chat-dialog",PaperProps:{sx:{backgroundImage:"none"}},children:[S.jsx(by,{id:"alert-dialog-title",children:"Create a new chat?"}),S.jsx(vh,{children:S.jsx(oV,{id:"alert-dialog-description",children:"This will clear the current messages and start a new chat."})}),S.jsxs(oS,{sx:{p:2},children:[S.jsx(Oy,{onClick:o,children:"Cancel"}),S.jsx(Gu,{id:"confirm",variant:"outlined",onClick:a,autoFocus:!0,children:"Confirm"})]})]})]})}function yvt({to:e,label:t}){return S.jsx(Oy,{component:ey,to:e,children:t},e)}function bvt({to:e,label:t}){return S.jsx(If,{component:ey,to:e,sx:{textTransform:"none",color:"text.secondary","&:hover":{background:"transparent"}},children:t},e)}function _vt({hasDb:e,hasReadme:t}){const n=sh(),r=Xn(),[i,o]=T.useState(!1),a=T.useRef();let s;i&&a.current&&(s=a.current);const l=aS(r.breakpoints.down("md")),u=[{to:"/",label:"Chat"}];e&&u.push({to:"/dataset",label:"History"}),t&&u.push({to:"/readme",label:"Readme"});const f=S.jsx(Ht,{direction:l?"column":"row",spacing:1,children:u.map(d=>{const p=n.pathname===d.to;return S.jsx("div",{children:p?S.jsx(yvt,{...d}):S.jsx(bvt,{...d})},d.to)})});return l?S.jsxs(S.Fragment,{children:[S.jsx(or,{ref:a,edge:"start","aria-label":"open nav",onClick:()=>o(!0),children:S.jsx(QJ,{})}),S.jsx(xy,{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 rQ(){var t,n;const e=Ct(ya);return S.jsx(kwe,{elevation:0,color:"transparent",position:"static",children:S.jsxs(UAe,{sx:{minHeight:"60px !important",borderBottomWidth:"1px",borderBottomStyle:"solid",background:r=>r.palette.background.paper,borderBottomColor:r=>r.palette.divider},children:[S.jsx(Ht,{alignItems:"center",direction:"row",children:S.jsx(_vt,{hasDb:!!((t=e==null?void 0:e.project)!=null&&t.database),hasReadme:!!(e!=null&&e.markdown)})}),S.jsxs(Ht,{alignItems:"center",sx:{ml:"auto"},direction:"row",spacing:1,color:"text.primary",children:[S.jsx(vvt,{}),S.jsx(at,{ml:1}),S.jsx(Xmt,{href:(n=e==null?void 0:e.ui)==null?void 0:n.github}),S.jsx(fvt,{})]})]})})}const e0=({children:e})=>{var d;const{isProjectMember:t,authenticating:n,isAuthenticated:r,accessToken:i,role:o}=sc(),a=Ct(ya),s=Ct(cS),l=Zu(),u=a&&!((d=a.project)!=null&&d.public);if(T.useEffect(()=>{var p,g;if((p=a==null?void 0:a.project)!=null&&p.user_env)for(const v of((g=a.project)==null?void 0:g.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 S.jsxs(at,{sx:{display:"flex",flexDirection:"column",width:"100%"},children:[S.jsx(rQ,{}),f?S.jsx(ro,{severity:"error",children:"You are not part of this project."}):e]})},SC=Yn({key:"DatasetFilters",default:{}});function xvt(){const e=Ct(V2),[t,n]=ir(SC),{data:r,isLoading:i}=bh("/project/members");if(!i||!r||e==="USER")return null;const o=[{value:"All",label:"All"},...r.map(s=>({value:s.email,label:s.email}))],a=s=>{const l=s.target.value;n({...t,authorEmail:l==="All"?void 0:l})};return S.jsx(at,{sx:{width:200},children:S.jsx(zh,{items:o,id:"author-filter-select",value:t.authorEmail||"All",label:"Author",onChange:a})})}const wvt=[{value:0,label:"All"},{value:1,label:"Good"},{value:-1,label:"Bad"}];function Svt(){const[e,t]=ir(SC),n=r=>{t({...e,feedback:parseInt(r.target.value)})};return S.jsx(at,{sx:{width:120},children:S.jsx(zh,{items:wvt,id:"feedback-filter-select",value:e.feedback||0,label:"Feedback",onChange:n})})}var Cvt=rs,Evt=function(){return Cvt.Date.now()},kvt=Evt,Tvt=/\s/;function Rvt(e){for(var t=e.length;t--&&Tvt.test(e.charAt(t)););return t}var Avt=Rvt,$vt=Avt,Ovt=/^\s+/;function Ivt(e){return e&&e.slice(0,$vt(e)+1).replace(Ovt,"")}var Dvt=Ivt,Pvt=Dvt,Z6=is,Lvt=dC,J6=0/0,Mvt=/^[-+]0x[0-9a-f]+$/i,Fvt=/^0b[01]+$/i,Nvt=/^0o[0-7]+$/i,Bvt=parseInt;function jvt(e){if(typeof e=="number")return e;if(Lvt(e))return J6;if(Z6(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Z6(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Pvt(e);var n=Fvt.test(e);return n||Nvt.test(e)?Bvt(e.slice(2),n?2:8):Mvt.test(e)?J6:+e}var zvt=jvt,Uvt=is,VT=kvt,Q6=zvt,Kvt="Expected a function",Wvt=Math.max,Vvt=Math.min;function Hvt(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(Kvt);t=Q6(t)||0,Uvt(n)&&(f=!!n.leading,d="maxWait"in n,o=d?Wvt(Q6(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p);function g(A){var O=r,z=i;return r=i=void 0,u=A,a=e.apply(z,O),a}function v(A){return u=A,s=setTimeout(b,t),f?g(A):a}function y(A){var O=A-l,z=A-u,V=t-O;return d?Vvt(V,o-z):V}function w(A){var O=A-l,z=A-u;return l===void 0||O>=t||O<0||d&&z>=o}function b(){var A=VT();if(w(A))return x(A);s=setTimeout(b,y(A))}function x(A){return s=void 0,p&&r?g(A):(r=i=void 0,a)}function C(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0}function k(){return s===void 0?a:x(VT())}function R(){var A=VT(),O=w(A);if(r=arguments,i=this,l=A,O){if(s===void 0)return v(l);if(d)return clearTimeout(s),s=setTimeout(b,t),g(l)}return s===void 0&&(s=setTimeout(b,t)),a}return R.cancel=C,R.flush=k,R}var qvt=Hvt;const Gvt=_i(qvt);var EP={},Yvt=vn;Object.defineProperty(EP,"__esModule",{value:!0});var iQ=EP.default=void 0,Xvt=Yvt(yn()),Zvt=S,Jvt=(0,Xvt.default)((0,Zvt.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");iQ=EP.default=Jvt;const Qvt=Me("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"}})),eU=Me("div")(()=>({display:"flex",alignItems:"center",justifyContent:"center"})),eyt=Me(rS)(({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 tyt(){const[e,t]=ir(SC),r=Gvt(a=>{a=a.trim(),t({...e,search:a===""?void 0:a})},300),i=T.useRef(),o=()=>{r(""),i.current&&(i.current.value="")};return S.jsxs(Qvt,{children:[S.jsx(eU,{sx:{position:"absolute",pointerEvents:"none",height:"100%",paddingX:1},children:S.jsx(iQ,{})}),S.jsx(eyt,{placeholder:"Search messages...",inputProps:{"aria-label":"search",ref:i},onChange:a=>r(a.target.value)}),S.jsx(eU,{children:S.jsx(or,{onClick:o,children:S.jsx(yh,{})})})]})}function nyt(){return S.jsxs(Ht,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[S.jsx(tyt,{}),S.jsxs(Ht,{direction:"row",alignItems:"center",spacing:2,children:[S.jsx(Svt,{}),S.jsx(xvt,{})]})]})}var ryt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{},oQ={};let ua;typeof window<"u"?ua=window:typeof self<"u"?ua=self:ua=ryt;let M$=null,F$=null;const tU=20,HT=ua.clearTimeout,nU=ua.setTimeout,qT=ua.cancelAnimationFrame||ua.mozCancelAnimationFrame||ua.webkitCancelAnimationFrame,rU=ua.requestAnimationFrame||ua.mozRequestAnimationFrame||ua.webkitRequestAnimationFrame;qT==null||rU==null?(M$=HT,F$=function(t){return nU(t,tU)}):(M$=function([t,n]){qT(t),HT(n)},F$=function(t){const n=rU(function(){HT(r),t()}),r=nU(function(){qT(n),t()},tU);return[n,r]});function iyt(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__,C=x.firstElementChild,k=x.lastElementChild,R=C.firstElementChild;k.scrollLeft=k.scrollWidth,k.scrollTop=k.scrollHeight,R.style.width=C.offsetWidth+1+"px",R.style.height=C.offsetHeight+1+"px",C.scrollLeft=C.scrollWidth,C.scrollTop=C.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__&&M$(this.__resizeRAF__),this.__resizeRAF__=F$(function(){o(x)&&(x.__resizeLast__.width=x.offsetWidth,x.__resizeLast__.height=x.offsetHeight,x.__resizeListeners__.forEach(function(R){R.call(x,b)}))})};let p=!1,g="";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],g="-"+w.toLowerCase()+"-",r=y[x],p=!0;break}}}n="resizeanim",t="@"+g+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=g+"animation: 1ms "+n+"; "}const u=function(p){if(!p.getElementById("detectElementResize")){const g=(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=g:y.appendChild(p.createTextNode(g)),v.appendChild(y)}};return{addResizeListener:function(p,g){if(l)p.attachEvent("onresize",g);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(C){C.animationName===n&&a(p)},p.__resizeTriggers__.addEventListener(r,p.__resizeTriggers__.__animationListener__))}p.__resizeListeners__.push(g)}},removeResizeListener:function(p,g){if(l)p.detachEvent("onresize",g);else if(p.__resizeListeners__.splice(p.__resizeListeners__.indexOf(g),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{}}}}}oQ={createDetectElementResize:iyt};class aQ extends T.Component{constructor(){super(...arguments);ds(this,"state",{height:this.props.defaultHeight||0,width:this.props.defaultWidth||0});ds(this,"_parentNode",null);ds(this,"_autoSizer",null);ds(this,"_detectElementResize",null);ds(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,g=a-d-p,v=s-u-f;(!n&&this.state.height!==g||!r&&this.state.width!==v)&&(this.setState({height:a-d-p,width:s-u-f}),typeof i=="function"&&i({height:a,width:s}))}});ds(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,oQ.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:g}=this.state,v={overflow:"visible"},y={};let w=!1;return o||(p===0&&(w=!0),v.height=0,y.height=p),a||(g===0&&(w=!0),v.width=0,y.width=g),T.createElement(f,{ref:this._setRef,style:{...v,...u},...d},!w&&n(y))}}ds(aQ,"defaultProps",{onResize:()=>{},disableHeight:!1,disableWidth:!1,style:{}});var oyt=aQ,iU=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function ayt(e,t){return!!(e===t||iU(e)&&iU(t))}function syt(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!ayt(e[n],t[n]))return!1;return!0}function GT(e,t){t===void 0&&(t=syt);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 lyt=typeof performance=="object"&&typeof performance.now=="function",oU=lyt?function(){return performance.now()}:function(){return Date.now()};function aU(e){cancelAnimationFrame(e.id)}function uyt(e,t){var n=oU();function r(){oU()-n>=t?e.call(null):i.id=requestAnimationFrame(r)}var i={id:requestAnimationFrame(r)};return i}var YT=-1;function sU(e){if(e===void 0&&(e=!1),YT===-1||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),YT=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return YT}var Bd=null;function lU(e){if(e===void 0&&(e=!1),Bd===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?Bd="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Bd="negative":Bd="positive-ascending"),document.body.removeChild(t),Bd}return Bd}var cyt=150,fyt=function(t,n){return t};function dyt(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){D2(p,d);function p(v){var y;return y=d.call(this,v)||this,y._instanceProps=l(y.props,G_(y)),y._outerRef=void 0,y._resetIsScrollingTimeoutId=null,y.state={instance:G_(y),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof y.props.initialScrollOffset=="number"?y.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},y._callOnItemsRendered=void 0,y._callOnItemsRendered=GT(function(w,b,x,C){return y.props.onItemsRendered({overscanStartIndex:w,overscanStopIndex:b,visibleStartIndex:x,visibleStopIndex:C})}),y._callOnScroll=void 0,y._callOnScroll=GT(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,C=b.itemSize,k=b.layout,R=y._getItemStyleCache(u&&C,u&&k,u&&x),A;if(R.hasOwnProperty(w))A=R[w];else{var O=n(y.props,w,y._instanceProps),z=i(y.props,w,y._instanceProps),V=x==="horizontal"||k==="horizontal",D=x==="rtl",W=V?O:0;R[w]=A={position:"absolute",left:D?void 0:W,right:D?W:void 0,top:V?0:O,height:V?"100%":z,width:V?z:"100%"}}return A},y._getItemStyleCache=void 0,y._getItemStyleCache=GT(function(w,b,x){return{}}),y._onScrollHorizontal=function(w){var b=w.currentTarget,x=b.clientWidth,C=b.scrollLeft,k=b.scrollWidth;y.setState(function(R){if(R.scrollOffset===C)return null;var A=y.props.direction,O=C;if(A==="rtl")switch(lU()){case"negative":O=-C;break;case"positive-descending":O=k-x-C;break}return O=Math.max(0,Math.min(O,k-x)),{isScrolling:!0,scrollDirection:R.scrollOffset<C?"forward":"backward",scrollOffset:O,scrollUpdateWasRequested:!1}},y._resetIsScrollingDebounced)},y._onScrollVertical=function(w){var b=w.currentTarget,x=b.clientHeight,C=b.scrollHeight,k=b.scrollTop;y.setState(function(R){if(R.scrollOffset===k)return null;var A=Math.max(0,Math.min(k,C-x));return{isScrolling:!0,scrollDirection:R.scrollOffset<A?"forward":"backward",scrollOffset:A,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&&aU(y._resetIsScrollingTimeoutId),y._resetIsScrollingTimeoutId=uyt(y._resetIsScrolling,cyt)},y._resetIsScrolling=function(){y._resetIsScrollingTimeoutId=null,y.setState({isScrolling:!1},function(){y._getItemStyleCache(-1,null)})},y}p.getDerivedStateFromProps=function(y,w){return pyt(y,w),f(y),null};var g=p.prototype;return g.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)},g.scrollToItem=function(y,w){w===void 0&&(w="auto");var b=this.props,x=b.itemCount,C=b.layout,k=this.state.scrollOffset;y=Math.max(0,Math.min(y,x-1));var R=0;if(this._outerRef){var A=this._outerRef;C==="vertical"?R=A.scrollWidth>A.clientWidth?sU():0:R=A.scrollHeight>A.clientHeight?sU():0}this.scrollTo(o(this.props,y,w,k,this._instanceProps,R))},g.componentDidMount=function(){var y=this.props,w=y.direction,b=y.initialScrollOffset,x=y.layout;if(typeof b=="number"&&this._outerRef!=null){var C=this._outerRef;w==="horizontal"||x==="horizontal"?C.scrollLeft=b:C.scrollTop=b}this._callPropsCallbacks()},g.componentDidUpdate=function(){var y=this.props,w=y.direction,b=y.layout,x=this.state,C=x.scrollOffset,k=x.scrollUpdateWasRequested;if(k&&this._outerRef!=null){var R=this._outerRef;if(w==="horizontal"||b==="horizontal")if(w==="rtl")switch(lU()){case"negative":R.scrollLeft=-C;break;case"positive-ascending":R.scrollLeft=C;break;default:var A=R.clientWidth,O=R.scrollWidth;R.scrollLeft=O-A-C;break}else R.scrollLeft=C;else R.scrollTop=C}this._callPropsCallbacks()},g.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&aU(this._resetIsScrollingTimeoutId)},g.render=function(){var y=this.props,w=y.children,b=y.className,x=y.direction,C=y.height,k=y.innerRef,R=y.innerElementType,A=y.innerTagName,O=y.itemCount,z=y.itemData,V=y.itemKey,D=V===void 0?fyt:V,W=y.layout,ie=y.outerElementType,se=y.outerTagName,K=y.style,G=y.useIsScrolling,Q=y.width,le=this.state.isScrolling,Z=x==="horizontal"||W==="horizontal",ee=Z?this._onScrollHorizontal:this._onScrollVertical,P=this._getRangeToRender(),ge=P[0],B=P[1],L=[];if(O>0)for(var ae=ge;ae<=B;ae++)L.push(T.createElement(w,{data:z,key:D(ae,z),index:ae,isScrolling:G?le:void 0,style:this._getItemStyle(ae)}));var ue=r(this.props,this._instanceProps);return T.createElement(ie||se||"div",{className:b,onScroll:ee,ref:this._outerRefSetter,style:M({position:"relative",height:C,width:Q,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:x},K)},T.createElement(R||A||"div",{children:L,ref:k,style:{height:Z?"100%":ue,pointerEvents:le?"none":void 0,width:Z?ue:"100%"}}))},g._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],C=w[2],k=w[3];this._callOnItemsRendered(b,x,C,k)}}if(typeof this.props.onScroll=="function"){var R=this.state,A=R.scrollDirection,O=R.scrollOffset,z=R.scrollUpdateWasRequested;this._callOnScroll(A,O,z)}},g._getRangeToRender=function(){var y=this.props,w=y.itemCount,b=y.overscanCount,x=this.state,C=x.isScrolling,k=x.scrollDirection,R=x.scrollOffset;if(w===0)return[0,0,0,0];var A=a(this.props,R,this._instanceProps),O=s(this.props,A,R,this._instanceProps),z=!C||k==="backward"?Math.max(1,b):1,V=!C||k==="forward"?Math.max(1,b):1;return[Math.max(0,A-z),Math.max(0,Math.min(w-1,O+V)),A,O]},p}(T.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var pyt=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},hyt=dyt({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,g=s==="horizontal"||d==="horizontal",v=g?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,g=Math.ceil((p+r-d)/s);return Math.max(0,Math.min(a-1,n+g-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}});function gyt(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,i=e.stopIndex;return!(r>n||i<t)}function myt(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 g=a[0]-1;if(!t(g))a[0]=g;else break}return a}var vyt=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},yyt=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}}(),byt=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)},uU=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},_yt=function(e){byt(t,e);function t(){var n,r,i,o;vyt(this,t);for(var a=arguments.length,s=Array(a),l=0;l<a;l++)s[l]=arguments[l];return o=(r=(i=uU(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),uU(i,o)}return yyt(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=myt({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(g,v){return p[v]!==g}))&&(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(gyt({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),kP={},xyt=vn;Object.defineProperty(kP,"__esModule",{value:!0});var sQ=kP.default=void 0,wyt=xyt(yn()),Syt=S,Cyt=(0,wyt.default)((0,Syt.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");sQ=kP.default=Cyt;function Eyt({conversationId:e,onDelete:t}){const[n,r]=T.useState(!1),i=Ct(Df),o=()=>{r(!0)},a=()=>{r(!1)},s=async()=>{await pv.promise(OS.deleteConversation(e,i),{loading:"Deleting conversation...",success:"Conversation deleted!",error:l=>l instanceof kA?S.jsx("span",{children:l.message}):S.jsx("span",{})}),t(),a()};return S.jsxs("div",{children:[S.jsx(or,{className:"delete-conversation-button",size:"small",color:"error",onClick:o,children:S.jsx(sQ,{})}),n&&S.jsxs(mh,{open:n,onClose:a,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",PaperProps:{sx:{backgroundImage:"none"}},children:[S.jsx(by,{id:"alert-dialog-title",children:"Delete conversation?"}),S.jsx(vh,{children:S.jsx(oV,{id:"alert-dialog-description",children:"This will delete the conversation as well as it's messages and elements."})}),S.jsxs(oS,{sx:{color:"text.secondary",p:2},children:[S.jsx(If,{variant:"outlined",color:"inherit",onClick:a,children:"Cancel"}),S.jsx(RS,{variant:"outlined",color:"primary",onClick:s,autoFocus:!0,children:"Confirm"})]})]})]})}var TP={},kyt=vn;Object.defineProperty(TP,"__esModule",{value:!0});var lQ=TP.default=void 0,Tyt=kyt(yn()),Ryt=S,Ayt=(0,Tyt.default)((0,Ryt.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");lQ=TP.default=Ayt;function $yt({conversationId:e}){return S.jsx(or,{className:"open-conversation-button",component:ey,to:`/conversations/${e}`,size:"small",color:"primary",children:S.jsx(lQ,{})})}const Oyt=30,Iyt=e=>{const t={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric"};return new Date(e).toLocaleDateString(void 0,t)};function Dyt(){const e=Ct(SC),t=Ct(Df),[n,r]=T.useState([]),[i,o]=T.useState(),[a,s]=T.useState(void 0),[l,u]=T.useState(!0),f=T.useCallback(async x=>{try{const{pageInfo:C,data:k}=await OS.getConversations({first:Oyt,cursor:x},e,t);o(C),s(void 0),r(R=>[...R,...k])}catch(C){C instanceof Error&&s(C.message)}finally{u(!1)}},[t,e]),d=T.useCallback(async()=>{r([]),u(!0),o(void 0),f(void 0)},[f]);T.useEffect(()=>{d()},[d]);const p=T.useCallback(()=>{i!=null&&i.hasNextPage&&f(i.endCursor)},[i,f]);if(a)return S.jsx(ro,{severity:"error",children:a.message});if(l)return S.jsx(Yt,{color:"text.primary",children:"Loading..."});const g=n.length;if(g===0)return S.jsx(ro,{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:C})=>S.jsx(Yt,{noWrap:!0,sx:{width:C.width,minWidth:C.minWidth,fontSize:"0.875rem"},color:"text.primary",children:x}),w=({index:x,style:C})=>{var R,A;const k=n[x];return S.jsxs(at,{className:"conversation-row",style:C,sx:{display:"flex",alignItems:"center",borderBottom:O=>`1px solid ${O.palette.divider}`},children:[S.jsx(y,{text:k.id,col:v.Id}),S.jsx(y,{text:((R=k.author)==null?void 0:R.email)||"LocalUser",col:v.Author}),S.jsx(y,{text:(A=k.messages[0])==null?void 0:A.content,col:v.Input}),S.jsx(y,{text:Iyt(k.createdAt),col:v.Date}),S.jsxs(Ht,{direction:"row",sx:{width:v.Actions.width,minWidth:v.Actions.minWidth},children:[S.jsx($yt,{conversationId:k.id}),S.jsx(Eyt,{conversationId:k.id,onDelete:()=>d()})]})]})},b=Object.entries(v).map(([x,C])=>S.jsx(Yt,{sx:{fontSize:"0.875rem",width:C.width,minWidth:C.minWidth},color:"primary",children:x},x));return S.jsxs(at,{sx:{height:"100%",display:"flex",flexDirection:"column"},children:[S.jsx(at,{sx:{display:"flex",alignItems:"center",height:"40px",borderBottom:x=>`1px solid ${x.palette.divider}`},children:b}),S.jsx(at,{flexGrow:1,children:S.jsx(oyt,{children:({height:x,width:C})=>S.jsx(_yt,{isItemLoaded:k=>!!n[k],itemCount:i!=null&&i.hasNextPage?g+1:g,loadMoreItems:p,children:({onItemsRendered:k,ref:R})=>S.jsx(hyt,{height:x,width:C,itemSize:55,itemCount:g,onItemsRendered:k,ref:R,children:w})})})})]})}function Pyt(){return S.jsxs(at,{display:"flex",flexDirection:"column",width:"100%",maxWidth:"60rem",mx:"auto",flexGrow:1,children:[S.jsx(at,{my:2}),S.jsx(nyt,{}),S.jsx(at,{my:2}),S.jsx(Dyt,{})]})}function Lyt(){return S.jsx(e0,{children:S.jsx(Pyt,{})})}function Myt(){const e=Zu();return ir(Hs),Ty(),T.useState("Platform"),e&&e("/"),S.jsx(S.Fragment,{})}function Fyt(){return S.jsx(e0,{children:S.jsx(bBe,{})})}function Nyt(){const[e,t]=ir(cS),n=Ct(ya),r=Zu(),i=(n==null?void 0:n.project.user_env)||[],o={},a={};i.forEach(f=>{o[f]=e[f]||"",a[f]=Cx().required()});const s=gP(a),l=cP({initialValues:o,validationSchema:s,onSubmit:async f=>{localStorage.setItem("userEnv",JSON.stringify(f)),t(f),gi.success("Saved successfully"),r("/")}});i.length===0&&r("/");const u=f=>{const d=!!l.errors[f];return S.jsx(L$,{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 S.jsxs(at,{sx:{display:"flex",flexDirection:"column",flexGrow:1},children:[S.jsx(rQ,{}),S.jsxs(at,{id:"env",display:"flex",flexDirection:"column",flexGrow:1,gap:2,sx:{maxWidth:"60rem",width:"100%",mx:"auto"},children:[S.jsx(Yt,{mt:5,fontSize:"18px",fontWeight:700,color:"text.primary",children:"Required API keys"}),S.jsx(ro,{severity:"info",children:"To use this app, the following API keys are required. The keys are stored on your device's local storage."}),S.jsxs("form",{onSubmit:l.handleSubmit,children:[i.map(f=>u(f)),S.jsx(If,{id:"submit-env",fullWidth:!0,type:"submit",variant:"contained",sx:{mt:1},children:"Save"})]})]})]})}const Byt=({status:e})=>e==="running"?S.jsx(at,{sx:{marginTop:"-2px",width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center",color:_t[700]},children:S.jsx(B2,{color:"inherit",size:18})}):S.jsxs(V_,{width:24,height:24,sx:{marginTop:"-2px",fill:"none"},children:[e==="done"&&S.jsxs(S.Fragment,{children:[S.jsx("circle",{cx:12,cy:12,r:9,fill:oI[500]}),S.jsx("path",{stroke:Tl,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m15.333 9.5-4.583 4.583L8.667 12"})]}),e==="ready"&&S.jsx("circle",{cx:12,cy:12,r:8.25,stroke:_t[700],strokeWidth:1.5}),e==="failed"&&S.jsxs(S.Fragment,{children:[S.jsx("circle",{cx:12,cy:12,r:9,fill:As[500]}),S.jsx("path",{stroke:Tl,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m14.5 9.5-5 5m0-5 5 5"})]})]}),cU=({index:e,task:t})=>{const n=gn(zq),r=Xn();return S.jsx(iv,{disableGutters:!0,className:`task task-status-${t.status}`,children:S.jsxs(Ake,{disableRipple:!t.forId,sx:{color:{ready:r.palette.mode==="dark"?_t[300]:_t[700],running:r.palette.mode==="dark"?_t[100]:_t[850],done:_t[500],failed:_t[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:[S.jsx(at,{sx:{paddingRight:r.spacing(1),flex:"0 0 18px",width:"18px"},children:e}),S.jsx(Byt,{status:t.status}),S.jsx(at,{sx:{paddingLeft:r.spacing(2)},children:t.title})]})})},fU=({status:e})=>{const t=Xn();return S.jsxs(at,{sx:{display:"flex",alignItems:"center",flexDirection:"row",padding:t.spacing(2)},children:[S.jsx(at,{sx:{flexGrow:"1",fontWeight:"600",paddingLeft:t.spacing(1)},children:"🗒️ Task List"}),S.jsx(F2,{label:e||"?",sx:{fontWeight:"500",borderRadius:"4px",backgroundColor:t.palette.background.default,color:t.palette.mode==="dark"?_t[500]:_t[600]}})]})},dU=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 pU({tasklist:e,isMobile:t}){const n=Xn();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 S.jsx(at,{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:S.jsxs(at,{sx:{...dU(n)},children:[S.jsx(fU,{status:r.status}),a&&S.jsx(Y_,{children:S.jsx(cU,{index:o+1,task:a})})]})})}return S.jsx(at,{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:S.jsxs(at,{sx:{...dU(n)},children:[S.jsx(fU,{status:r==null?void 0:r.status}),S.jsx(at,{sx:{overflowY:"auto"},children:S.jsx(Y_,{children:i==null?void 0:i.map((o,a)=>S.jsx(cU,{index:a+1,task:o},a))})})]})})}const jyt="chat_history",zyt=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))})},RP=Yn({key:"ChatHistory",default:{open:!1,messages:[]},effects:[zyt(jyt)]});function Uyt(){const[e,t]=ir(Ry),n=Ct(uc);if(!e)return null;const r=()=>{t(!1),n==null||n.socket.emit("stop")};return S.jsx(at,{margin:"auto",children:S.jsx(sI,{id:"stop-button",startIcon:S.jsx(yh,{}),variant:"contained",onClick:r,children:"Stop task"})})}var AP={},Kyt=vn;Object.defineProperty(AP,"__esModule",{value:!0});var uQ=AP.default=void 0;Hyt(T);var Wyt=Kyt(yn()),Vyt=S;function cQ(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(cQ=function(r){return r?n:t})(e)}function Hyt(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=cQ(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 qyt=(0,Wyt.default)((0,Vyt.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");uQ=AP.default=qyt;var $P={},Gyt=vn;Object.defineProperty($P,"__esModule",{value:!0});var fQ=$P.default=void 0,Yyt=Gyt(yn()),hU=S,Xyt=(0,Yyt.default)([(0,hU.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"),(0,hU.jsx)("path",{d:"M16.5 12H15v5l3.6 2.1.8-1.2-2.9-1.7z"},"1")],"AutoDelete");fQ=$P.default=Xyt;var OP={},Zyt=vn;Object.defineProperty(OP,"__esModule",{value:!0});var dQ=OP.default=void 0,Jyt=Zyt(yn()),gU=S,Qyt=(0,Jyt.default)([(0,gU.jsx)("path",{d:"M6 17.59 7.41 19 12 14.42 16.59 19 18 17.59l-6-6z"},"0"),(0,gU.jsx)("path",{d:"m6 11 1.41 1.41L12 7.83l4.59 4.58L18 11l-6-6z"},"1")],"KeyboardDoubleArrowUp");dQ=OP.default=Qyt;function e0t(e){const t={},n=PJ(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 t0t({onClick:e}){const[t,n]=ir(RP),r=T.useRef(),[i,o]=T.useState(null);t.open&&!i&&r.current&&o(r.current);const a=p=>n(g=>({...g,open:p})),s=S.jsxs(Ht,{disabled:!0,direction:"row",p:1,justifyContent:"space-between",alignItems:"center",children:[S.jsx(Yt,{color:"text.primary",sx:{fontSize:"14px",fontWeight:700},children:"Last messages"}),S.jsx(or,{onClick:()=>n(p=>({...p,messages:[]})),children:S.jsx(fQ,{})})]},"title"),l=(t==null?void 0:t.messages.length)===0?S.jsx("div",{id:"history-empty",disabled:!0,children:S.jsx(Yt,{color:"text.secondary",sx:{fontSize:"12px",fontWeight:700,padding:"16px 12px",textTransform:"uppercase"},children:"Such empty..."})},"empty"):null,u=t.messages?null:S.jsx("div",{id:"history-loading",disabled:!0,children:S.jsx(Yt,{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=e0t(t.messages);Object.keys(p).forEach(g=>{f.push(S.jsx("div",{disabled:!0,children:S.jsx(Yt,{color:"text.primary",sx:{p:1,fontSize:"10px",fontWeight:700,color:_t[500]},children:g})},g));let v="";p[g].forEach(y=>{v!==y.content&&(v=y.content,f.push(S.jsx(ov,{className:"history-item",onClick:w=>{w.stopPropagation(),w.preventDefault(),a(!1),e(y.content)},disableRipple:!0,sx:{p:1,alignItems:"baseline",borderRadius:"4px"},children:S.jsx(Yt,{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?S.jsx(xy,{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 S.jsxs("div",{children:[d,S.jsx(yi,{title:"Show history",children:S.jsx(or,{color:"inherit",onClick:()=>a(!t.open),ref:r,children:S.jsx(dQ,{})})})]})}const n0t=({fileSpec:e,session:t})=>{const n=tG({spec:e,onResolved:a=>t==null?void 0:t.socket.emit("file_upload",a)});if(!n)return null;const{getRootProps:r,getInputProps:i,uploading:o}=n;return S.jsx(yi,{title:"Upload files",children:S.jsxs(RS,{id:o?"upload-button-loading":"upload-button",loading:o,sx:{minWidth:0,borderRadius:"50%"},color:"inherit",...r({className:"dropzone"}),children:[S.jsx("input",{...i()}),S.jsx(SP,{})]})})};function r0t(){const e=Ct(jq),t=Ct(uc);return!e||!t?null:S.jsx(n0t,{fileSpec:e,session:t})}function i0t(e){const t=e.querySelector("textarea");return t?t.value.split(`
|
|
543
|
+
`).length:0}const o0t=({onSubmit:e,onReply:t})=>{const n=T.useRef(null),r=gn(RP),[i,o]=ir(Ay),a=Ct(Ry),s=Ct(TS),l=Ct(uc),[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(A=>{A.key==="Enter"&&!A.shiftKey?d||(A.preventDefault(),y()):A.key==="ArrowUp"&&i0t(A.currentTarget)<=1&&r(z=>({...z,open:!0}))},[y,r,d]),C=T.useCallback(A=>{n.current&&f(A)},[]),k=S.jsxs(S.Fragment,{children:[i.inputs.length>0&&S.jsx(or,{disabled:v,color:"inherit",onClick:()=>o(A=>({...A,open:!0})),children:S.jsx(qD,{})}),S.jsx(t0t,{onClick:C}),S.jsx(r0t,{})]}),R=S.jsx(or,{disabled:v,color:"inherit",onClick:()=>y(),children:S.jsx(uQ,{})});return S.jsx(lS,{inputRef:n,id:"chat-input",autoFocus:!0,multiline:!0,variant:"standard",autoComplete:"false",placeholder:"Type your message here...",disabled:v,onChange:A=>f(A.target.value),onKeyDown:x,onCompositionStart:w,onCompositionEnd:b,value:u,fullWidth:!0,InputProps:{disableUnderline:!0,startAdornment:S.jsx(PB,{sx:{ml:1,color:"text.secondary"},position:"start",children:k}),endAdornment:S.jsx(PB,{position:"end",sx:{mr:1,color:"text.secondary"},children:R})},sx:{backgroundColor:"background.paper",borderRadius:1,border:A=>`1px solid ${A.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"}}})},a0t="/assets/logo_dark-bc7401f6.svg",s0t="/assets/logo_light-f19fc2ea.svg",l0t=({width:e,style:t})=>{const{theme:n}=Ct(Hs),r=n==="light"?s0t:a0t;return S.jsx("img",{src:r,style:t,width:e||40})};function u0t(){return S.jsx(Ht,{mx:"auto",children:S.jsxs("a",{href:"https://github.com/Chainlit/chainlit",target:"_blank",style:{display:"flex",alignItems:"center",textDecoration:"none"},children:[S.jsx(Yt,{fontSize:"12px",color:"text.secondary",children:"Built with"}),S.jsx(l0t,{width:65,style:{filter:"grayscale(1)",marginLeft:"4px"}})]})})}function c0t({onSubmit:e,onReply:t}){return S.jsxs(at,{display:"flex",flexDirection:"column",gap:1,py:2,sx:{boxSizing:"border-box",width:"100%",maxWidth:"60rem",m:"auto",justifyContent:"center"},children:[S.jsx(Uyt,{}),S.jsx(at,{children:S.jsx(o0t,{onSubmit:e,onReply:t})}),S.jsx(u0t,{})]})}var f0t=sC,d0t=JZ,p0t=ZZ;function h0t(e,t){var n={};return t=p0t(t),d0t(e,function(r,i,o){f0t(n,i,t(r,i,o))}),n}var g0t=h0t;const m0t=_i(g0t);function v0t(){const e=Ct(uc),[t,n]=ir(Ay),[r,i]=ir(xI),o=Ct(Uq),a=cP({initialValues:r,enableReinitialize:!0,onSubmit:async()=>{}}),s=()=>n(f=>({...f,open:!1})),l=()=>{i(a.values);const f=m0t(a.values,d=>d!==""?d:null);e==null||e.socket.emit("chat_settings_change",f),s()},u=()=>{a.setValues(o)};return S.jsxs(mh,{open:t.open,onClose:s,id:"chat-settings-dialog",PaperProps:{sx:{backgroundImage:"none"}},children:[S.jsx(by,{id:"alert-dialog-title",children:"Settings panel"}),S.jsx(vh,{children:S.jsx(at,{sx:{display:"flex",flexDirection:"column",minWidth:"20vw",maxHeight:"70vh",gap:"15px"},children:t.inputs.map(f=>S.jsx(ZJ,{element:{...f,value:a.values[f.id],onChange:a.handleChange,setField:a.setFieldValue}},f.id))})}),S.jsxs(oS,{sx:{p:2},children:[S.jsx(Gu,{onClick:u,color:"primary",variant:"outlined",children:"Reset"}),S.jsx("div",{style:{flex:"1 0 0"}}),S.jsx(Oy,{onClick:s,children:"Cancel"}),S.jsx(Gu,{id:"confirm",variant:"outlined",onClick:l,autoFocus:!0,children:"Confirm"})]})]})}const pQ=()=>{const e=Ct(ya);return e!=null&&e.markdown?S.jsx(at,{overflow:"auto",flexGrow:1,children:S.jsx(at,{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?S.jsx(CS,{remarkPlugins:[yI],components:{a:({children:t,...n})=>S.jsx(_y,{...n,target:"_blank",children:t}),code:({...t})=>S.jsx(_I,{...t})},children:e==null?void 0:e.markdown}):null})}):S.jsx(at,{flexGrow:1})},y0t=()=>{const{user:e,isAuthenticated:t}=sc(),n=Ct(uc),r=Ct(TS),[i,o]=ir(kS),a=Ct(mS),s=Ct(tI),l=Ct(CP),u=Ct(ya),f=gn(RP),[d,p]=T.useState(!0),g=T.useCallback(async w=>{if(!(n==null?void 0:n.socket.id))return;const x={id:Z_(),author:(e==null?void 0:e.name)||"User",authorIsUser:!0,content:w,createdAt:new Date().toISOString()};f(C=>{const R=[...C.messages||[]];return R.push({content:w,createdAt:new Date().getTime()}),{...C,messages:R.length>50?R.slice(R.length-50):R}}),p(!0),o(C=>[...C,x]),n==null||n.socket.emit("ui_message",x)},[e,n,t,u]),v=T.useCallback(async w=>{if(!r)return;const b={id:Z_(),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 S.jsxs(at,{display:"flex",width:"100%",height:"0",flexGrow:1,children:[S.jsx(JJ,{}),S.jsx(v0t,{}),S.jsx(pU,{tasklist:y,isMobile:!1}),S.jsxs(Nq,{children:[S.jsx(pU,{tasklist:y,isMobile:!0}),S.jsx(at,{my:1}),(n==null?void 0:n.error)&&S.jsx(ro,{id:"session-error",severity:"error",children:"Could not reach the server."}),S.jsxs(dG,{children:[!!i.length&&S.jsx(cG,{actions:l,elements:a,messages:i,autoScroll:d,setAutoScroll:p}),!i.length&&S.jsx(pQ,{}),S.jsx(c0t,{onReply:v,onSubmit:g})]})]})]})};function b0t(){return S.jsx(e0,{children:S.jsx(y0t,{})})}function _0t(){const{loginWithRedirect:e,isAuthenticated:t}=sc(),n=Zu();return T.useEffect(()=>{t?n("/"):e({authorizationParams:{audience:"chainlit-cloud"}})},[t]),null}function x0t(){return S.jsx(e0,{children:S.jsx(at,{sx:{px:2},children:S.jsx(pQ,{})})})}const w0t=Cle([{path:"/",element:S.jsx(b0t,{})},{path:"/readme",element:S.jsx(x0t,{})},{path:"/env",element:S.jsx(Nyt,{})},{path:"/conversations/:id",element:S.jsx(e0,{children:S.jsx(Wmt,{})})},{path:"/dataset",element:S.jsx(Lyt,{})},{path:"/element/:id",element:S.jsx(Fyt,{})},{path:"/login",element:S.jsx(_0t,{})},{path:"/design",element:S.jsx(Myt,{})},{path:"/api/auth/callback",element:S.jsx(gOe,{})},{path:"*",element:S.jsx(mle,{replace:!0,to:"/"})}]);function N$(){return N$=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},N$.apply(this,arguments)}var hQ=["shift","alt","meta","mod","ctrl"],S0t={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 $u(e){return(S0t[e]||e).trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function C0t(e){return hQ.includes(e)}function XT(e,t){return t===void 0&&(t=","),e.split(t)}function ZT(e,t,n){t===void 0&&(t="+");var r=e.toLocaleLowerCase().split(t).map(function(a){return $u(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!hQ.includes(a)});return N$({},i,{keys:o,description:n})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(e){e.key!==void 0&&gQ([$u(e.key),$u(e.code)])}),document.addEventListener("keyup",function(e){e.key!==void 0&&mQ([$u(e.key),$u(e.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){Ou.clear()})})();var Ou=new Set;function E0t(e,t){t===void 0&&(t=",");var n=Array.isArray(e)?e:e.split(t);return n.every(function(r){return Ou.has(r.trim().toLowerCase())})}function gQ(e){var t=Array.isArray(e)?e:[e];Ou.has("meta")&&Ou.forEach(function(n){return!C0t(n)&&Ou.delete(n.toLowerCase())}),t.forEach(function(n){return Ou.add(n.toLowerCase())})}function mQ(e){var t=Array.isArray(e)?e:[e];e==="meta"?Ou.clear():t.forEach(function(n){return Ou.delete(n.toLowerCase())})}function k0t(e,t,n){(typeof n=="function"&&n(e,t)||n===!0)&&e.preventDefault()}function T0t(e,t,n){return typeof n=="function"?n(e,t):n===!0||n===void 0}function R0t(e){return vQ(e,["input","textarea","select"])}function vQ(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 A0t(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 $0t=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,g=t.metaKey,v=t.shiftKey,y=t.altKey,w=$u(d),b=f.toLowerCase();if(!r){if(i===!y&&b!=="alt"||s===!v&&b!=="shift")return!1;if(a){if(!g&&!p)return!1}else if(o===!g&&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?E0t(u):!u},O0t=T.createContext(void 0),I0t=function(){return T.useContext(O0t)};function yQ(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&&yQ(e[r],t[r])},!0):e===t}var D0t=T.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),P0t=function(){return T.useContext(D0t)};function L0t(e){var t=T.useRef(void 0);return yQ(t.current,e)||(t.current=e),t.current}var mU=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},M0t=typeof window<"u"?T.useLayoutEffect:T.useEffect;function F0t(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=L0t(a),p=P0t(),g=p.enabledScopes,v=I0t();return M0t(function(){if(!((d==null?void 0:d.enabled)===!1||!A0t(g,d==null?void 0:d.scopes))){var y=function(k,R){var A;if(R===void 0&&(R=!1),!(R0t(k)&&!vQ(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)){mU(k);return}(A=k.target)!=null&&A.isContentEditable&&!(d!=null&&d.enableOnContentEditable)||XT(s,d==null?void 0:d.splitKey).forEach(function(O){var z,V=ZT(O,d==null?void 0:d.combinationKey);if($0t(k,V,d==null?void 0:d.ignoreModifiers)||(z=V.keys)!=null&&z.includes("*")){if(R&&o.current)return;if(k0t(k,V,d==null?void 0:d.preventDefault),!T0t(k,V,d==null?void 0:d.enabled)){mU(k);return}f.current(k,V),R||(o.current=!0)}})}},w=function(k){k.key!==void 0&&(gQ($u(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&&(mQ($u(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&&XT(s,d==null?void 0:d.splitKey).forEach(function(C){return v.addHotkey(ZT(C,d==null?void 0:d.combinationKey,d==null?void 0:d.description))}),function(){x.removeEventListener("keyup",b),x.removeEventListener("keydown",w),v&&XT(s,d==null?void 0:d.splitKey).forEach(function(C){return v.removeHotkey(ZT(C,d==null?void 0:d.combinationKey,d==null?void 0:d.description))})}}},[s,d,g]),i}function N0t(){const e=gn(Hs);return F0t("s",()=>e(t=>({...t,open:!t.open}))),null}var IP={},B0t=vn;Object.defineProperty(IP,"__esModule",{value:!0});var bQ=IP.default=void 0,j0t=B0t(yn()),z0t=S,U0t=(0,j0t.default)((0,z0t.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");bQ=IP.default=U0t;var DP={},K0t=vn;Object.defineProperty(DP,"__esModule",{value:!0});var _Q=DP.default=void 0,W0t=K0t(yn()),V0t=S,H0t=(0,W0t.default)((0,V0t.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");_Q=DP.default=H0t;var PP={},q0t=vn;Object.defineProperty(PP,"__esModule",{value:!0});var xQ=PP.default=void 0,G0t=q0t(yn()),Y0t=S,X0t=(0,G0t.default)((0,Y0t.jsx)("path",{d:"M4 20h16v2H4zM4 2h16v2H4zm9 7h3l-4-4-4 4h3v6H8l4 4 4-4h-3z"}),"Expand");xQ=PP.default=X0t;function Z0t(){const[e,t]=ir(Hs);return S.jsx(mh,{open:e.open,onClose:()=>t(n=>({...n,open:!1})),id:"settings-dialog",PaperProps:{sx:{backgroundImage:"none"}},children:S.jsx(vh,{children:S.jsxs(Y_,{sx:{width:"100%",maxWidth:360},subheader:S.jsx(Lwe,{children:"Settings"}),children:[S.jsxs(iv,{sx:{display:"flex",gap:2},children:[S.jsx(xp,{children:S.jsx(xQ,{})}),S.jsx(Wb,{id:"list-expand-all",primary:"Expand Messages"}),S.jsx(at,{children:S.jsx(i_,{id:"switch-expand-all",onChange:()=>t(n=>({...n,expandAll:!n.expandAll})),checked:e.expandAll,inputProps:{"aria-labelledby":"switch-expand-all"}})})]}),S.jsxs(iv,{sx:{display:"flex",gap:2},children:[S.jsx(xp,{children:S.jsx(_Q,{})}),S.jsx(Wb,{id:"hide-cot",primary:"Hide Chain of Thought"}),S.jsx(at,{children:S.jsx(i_,{id:"switch-hide-cot",onChange:()=>t(n=>({...n,hideCot:!n.hideCot})),checked:e.hideCot,inputProps:{"aria-labelledby":"hide-cot"}})})]}),S.jsxs(iv,{sx:{display:"flex",gap:2},children:[S.jsx(xp,{children:S.jsx(bQ,{})}),S.jsx(Wb,{id:"switch-theme",primary:"Dark mode"}),S.jsx(at,{children:S.jsx(i_,{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 vU(e){return e!=null&&typeof e=="object"}function wQ(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=vU(o)&&vU(a);if(s&&!wQ(o,a)||!s&&o!==a)return!1}return!0}const js=Object.create(null);js.open="0";js.close="1";js.ping="2";js.pong="3";js.message="4";js.upgrade="5";js.noop="6";const o_=Object.create(null);Object.keys(js).forEach(e=>{o_[js[e]]=e});const J0t={type:"error",data:"parser error"},Q0t=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",e1t=typeof ArrayBuffer=="function",t1t=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,SQ=({type:e,data:t},n,r)=>Q0t&&t instanceof Blob?n?r(t):yU(t,r):e1t&&(t instanceof ArrayBuffer||t1t(t))?n?r(t):yU(new Blob([t]),r):r(js[e]+(t||"")),yU=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)},bU="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Nm=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<bU.length;e++)Nm[bU.charCodeAt(e)]=e;const n1t=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=Nm[e.charCodeAt(r)],a=Nm[e.charCodeAt(r+1)],s=Nm[e.charCodeAt(r+2)],l=Nm[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},r1t=typeof ArrayBuffer=="function",CQ=(e,t)=>{if(typeof e!="string")return{type:"message",data:EQ(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:i1t(e.substring(1),t)}:o_[n]?e.length>1?{type:o_[n],data:e.substring(1)}:{type:o_[n]}:J0t},i1t=(e,t)=>{if(r1t){const n=n1t(e);return EQ(n,t)}else return{base64:!0,data:e}},EQ=(e,t)=>{switch(t){case"blob":return e instanceof ArrayBuffer?new Blob([e]):e;case"arraybuffer":default:return e}},kQ=String.fromCharCode(30),o1t=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((o,a)=>{SQ(o,!1,s=>{r[a]=s,++i===n&&t(r.join(kQ))})})},a1t=(e,t)=>{const n=e.split(kQ),r=[];for(let i=0;i<n.length;i++){const o=CQ(n[i],t);if(r.push(o),o.type==="error")break}return r},TQ=4;function Or(e){if(e)return s1t(e)}function s1t(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 RQ(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const l1t=na.setTimeout,u1t=na.clearTimeout;function CC(e,t){t.useNativeTimers?(e.setTimeoutFn=l1t.bind(na),e.clearTimeoutFn=u1t.bind(na)):(e.setTimeoutFn=na.setTimeout.bind(na),e.clearTimeoutFn=na.clearTimeout.bind(na))}const c1t=1.33;function f1t(e){return typeof e=="string"?d1t(e):Math.ceil((e.byteLength||e.size)*c1t)}function d1t(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 p1t extends Error{constructor(t,n,r){super(t),this.description=n,this.context=r,this.type="TransportError"}}class AQ extends Or{constructor(t){super(),this.writable=!1,CC(this,t),this.opts=t,this.query=t.query,this.socket=t.socket}onError(t,n,r){return super.emitReserved("error",new p1t(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=CQ(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 $Q="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),B$=64,h1t={};let _U=0,xb=0,xU;function wU(e){let t="";do t=$Q[e%B$]+t,e=Math.floor(e/B$);while(e>0);return t}function OQ(){const e=wU(+new Date);return e!==xU?(_U=0,xU=e):e+"."+wU(_U++)}for(;xb<B$;xb++)h1t[$Q[xb]]=xb;function IQ(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function g1t(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 DQ=!1;try{DQ=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const m1t=DQ;function PQ(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||m1t))return new XMLHttpRequest}catch{}if(!t)try{return new na[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function v1t(){}const y1t=function(){return new PQ({xdomain:!1}).responseType!=null}();class b1t extends AQ{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=y1t&&!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)};a1t(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,o1t(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]=OQ()),!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=IQ(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 Ep(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 Ep=class a_ extends Or{constructor(t,n){super(),CC(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=RQ(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 PQ(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=a_.requestsCount++,a_.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=v1t,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete a_.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()}};Ep.requestsCount=0;Ep.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",SU);else if(typeof addEventListener=="function"){const e="onpagehide"in na?"pagehide":"unload";addEventListener(e,SU,!1)}}function SU(){for(let e in Ep.requests)Ep.requests.hasOwnProperty(e)&&Ep.requests[e].abort()}const LQ=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),wb=na.WebSocket||na.MozWebSocket,CU=!0,_1t="arraybuffer",EU=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class x1t extends AQ{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=EU?{}:RQ(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=CU&&!EU?n?new wb(t,n):new wb(t):new wb(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType||_1t,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;SQ(r,this.supportsBinary,o=>{const a={};try{CU&&this.ws.send(o)}catch{}i&&LQ(()=>{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]=OQ()),this.supportsBinary||(t.b64=1);const i=IQ(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!!wb}}const w1t={websocket:x1t,polling:b1t},S1t=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,C1t=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function j$(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=S1t.exec(e||""),o={},a=14;for(;a--;)o[C1t[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=E1t(o,o.path),o.queryKey=k1t(o,o.query),o}function E1t(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 k1t(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}let MQ=class Hd extends Or{constructor(t,n={}){super(),this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=j$(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=j$(n.host).host),CC(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=g1t(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=TQ,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 w1t[t](r)}open(){let t;if(this.opts.rememberUpgrade&&Hd.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;Hd.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;Hd.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",Hd.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+=f1t(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){Hd.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}};MQ.protocol=TQ;function T1t(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=j$(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 R1t=typeof ArrayBuffer=="function",A1t=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,FQ=Object.prototype.toString,$1t=typeof Blob=="function"||typeof Blob<"u"&&FQ.call(Blob)==="[object BlobConstructor]",O1t=typeof File=="function"||typeof File<"u"&&FQ.call(File)==="[object FileConstructor]";function LP(e){return R1t&&(e instanceof ArrayBuffer||A1t(e))||$1t&&e instanceof Blob||O1t&&e instanceof File}function s_(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n<r;n++)if(s_(e[n]))return!0;return!1}if(LP(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return s_(e.toJSON(),!0);for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&s_(e[n]))return!0;return!1}function I1t(e){const t=[],n=e.data,r=e;return r.data=z$(n,t),r.attachments=t.length,{packet:r,buffers:t}}function z$(e,t){if(!e)return e;if(LP(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]=z$(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]=z$(e[r],t));return n}return e}function D1t(e,t){return e.data=U$(e.data,t),delete e.attachments,e}function U$(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]=U$(e[n],t);else if(typeof e=="object")for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=U$(e[n],t));return e}const P1t=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],L1t=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 M1t{constructor(t){this.replacer=t}encode(t){return(t.type===tn.EVENT||t.type===tn.ACK)&&s_(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=I1t(t),r=this.encodeAsString(n.packet),i=n.buffers;return i.unshift(r),i}}function kU(e){return Object.prototype.toString.call(e)==="[object Object]"}class MP 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 F1t(n),n.attachments===0&&super.emitReserved("decoded",n)):super.emitReserved("decoded",n)}else if(LP(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(MP.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 kU(n);case tn.DISCONNECT:return n===void 0;case tn.CONNECT_ERROR:return typeof n=="string"||kU(n);case tn.EVENT:case tn.BINARY_EVENT:return Array.isArray(n)&&(typeof n[0]=="number"||typeof n[0]=="string"&&P1t.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 F1t{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=D1t(this.reconPack,this.buffers);return this.finishedReconstruction(),n}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const N1t=Object.freeze(Object.defineProperty({__proto__:null,Decoder:MP,Encoder:M1t,get PacketType(){return tn},protocol:L1t},Symbol.toStringTag,{value:"Module"}));function Ua(e,t,n){return e.on(t,n),function(){e.off(t,n)}}const B1t=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});let NQ=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(B1t.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 Wh(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}Wh.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};Wh.prototype.reset=function(){this.attempts=0};Wh.prototype.setMin=function(e){this.ms=e};Wh.prototype.setMax=function(e){this.max=e};Wh.prototype.setJitter=function(e){this.jitter=e};class K$ 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,CC(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 Wh({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||N1t;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 MQ(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){LQ(()=>{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 NQ(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 Sm={};function l_(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=T1t(e,t.path||"/socket.io"),r=n.source,i=n.id,o=n.path,a=Sm[i]&&o in Sm[i].nsps,s=t.forceNew||t["force new connection"]||t.multiplex===!1||a;let l;return s?l=new K$(r,t):(Sm[i]||(Sm[i]=new K$(r,t)),l=Sm[i]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(l_,{Manager:K$,Socket:NQ,io:l_,connect:l_});const JT=(e,t)=>e.id&&t.id?e.id===t.id:!1,j1t=T.memo(function(){const t=Ct(ya),{accessToken:n,authenticating:r}=sc(),i=Ct(cS),o=gn(Ry),a=Ct(KV),[s,l]=ir(uc),u=gn(kS),f=gn(Bq),d=gn(jq),p=gn(TS),g=gn(mS),v=gn(eI),y=gn(tI),w=gn(CP),b=gn(Ay),x=Bb(xI);return T.useEffect(()=>{if(r||!t)return;s!=null&&s.socket&&(s.socket.removeAllListeners(),s.socket.close());const C=l_(Y2e,{path:"/ws/socket.io",extraHeaders:{Authorization:n||"","X-Chainlit-Session-Id":a,"user-env":JSON.stringify(i)}});l({socket:C}),C.on("connect",()=>{C.emit("connection_successful"),l(k=>({...k,error:!1}))}),C.on("connect_error",k=>{console.error("failed to connect",k),l(R=>({...R,error:!0}))}),C.on("task_start",()=>{o(!0)}),C.on("task_end",()=>{o(!1)}),C.on("reload",()=>{C.emit("clear_session"),window.location.reload()}),C.on("new_message",k=>{u(R=>{const A=R.findIndex(O=>JT(O,k));return A===-1?[...R,k]:[...R.slice(0,A),k,...R.slice(A+1)]})}),C.on("update_message",k=>{u(R=>{const A=R.findIndex(O=>JT(O,k));return A===-1?R:(k.newId&&(k.id=k.newId,delete k.newId),[...R.slice(0,A),k,...R.slice(A+1)])})}),C.on("delete_message",k=>{u(R=>{const A=R.findIndex(O=>JT(O,k));return A===-1?R:[...R.slice(0,A),...R.slice(A+1)]})}),C.on("stream_start",k=>{u(R=>[...R,k])}),C.on("stream_token",({id:k,token:R,isSequence:A})=>{u(O=>{const z=O.findIndex(W=>W.id===k);if(z===-1)return O;const D={...O[z]};return A?D.content=R:D.content+=R,[...O.slice(0,z),D,...O.slice(z+1)]})}),C.on("ask",({msg:k,spec:R},A)=>{p({spec:R,callback:A}),u(O=>[...O,k]),o(!1)}),C.on("enable_file_upload",k=>{d(k),o(!1)}),C.on("ask_timeout",()=>{p(void 0),o(!1)}),C.on("clear_ask",()=>{p(void 0)}),C.on("chat_settings",k=>{b(R=>({...R,inputs:k})),x()}),C.on("element",k=>{k.type==="avatar"?v(R=>[...R,k]):k.type==="tasklist"?y(R=>[...R,k]):g(R=>[...R,k])}),C.on("update_element",k=>{g(R=>{const A=R.findIndex(V=>V.id===k.id);if(A===-1)return R;const z={...R[A],forIds:k.forIds};return[...R.slice(0,A),z,...R.slice(A+1)]})}),C.on("remove_element",k=>{g(R=>R.filter(A=>A.id!==k.id)),y(R=>R.filter(A=>A.id!==k.id)),v(R=>R.filter(A=>A.id!==k.id))}),C.on("action",k=>{w(R=>[...R,k])}),C.on("remove_action",k=>{w(R=>{const A=R.findIndex(O=>wQ(O,k));return A===-1?R:[...R.slice(0,A),...R.slice(A+1)]})}),C.on("token_usage",k=>{f(R=>R+k)})},[i,r,t]),null});function z1t(){const{theme:e}=Ct(Hs),[t,n]=ir(Df),[r,i]=ir(V2),{isAuthenticated:o,getAccessTokenSilently:a,logout:s}=sc(),l=KIe(e),{data:u,error:f}=bh(!r&&t?"/project/role":null);return T.useEffect(()=>{u!=="ANONYMOUS"&&!r&&i(f?"ANONYMOUS":u)},[u,f]),T.useEffect(()=>{o&&t===void 0&&a({authorizationParams:{audience:"chainlit-cloud"}}).then(d=>n(d)).catch(d=>{console.error(d),s({logoutParams:{returnTo:window.location.origin}})})},[o,a,t,n]),S.jsxs(FW,{theme:l,children:[S.jsx(eV,{styles:{body:{backgroundColor:l.palette.background.default}}}),S.jsx(ose,{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"}}}),S.jsxs(at,{display:"flex",height:"100vh",width:"100vw",children:[S.jsx(j1t,{}),S.jsx(N0t,{}),S.jsx(Z0t,{}),S.jsx(gle,{router:w0t})]})]})}const U1t=T.memo(function({children:t}){var r;const n=Ct(ya);return(r=n==null?void 0:n.project)!=null&&r.id?S.jsx(uOe,{domain:"https://auth.chainlit.io",clientId:"ADo93BBXDn8Z35lEi8arCWiR7C0ncrjx",authorizationParams:{redirect_uri:`${window.location.origin}/api/auth/callback`},useRefreshTokens:!0,cacheLocation:"localstorage",children:t}):S.jsx(S.Fragment,{children:t})});function K1t(){const[e,t]=ir(ya),n=gn(Hs),{data:r}=bh(e===void 0?"/project/settings":null);return T.useEffect(()=>{r&&(t(r),n(i=>({...i,expandAll:!!r.ui.default_expand_messages,hideCot:!!r.ui.hide_cot})))},[r]),S.jsx(U1t,{children:S.jsx(z1t,{})})}var W$={},TU=Af;W$.createRoot=TU.createRoot,W$.hydrateRoot=TU.hydrateRoot;W$.createRoot(document.getElementById("root")).render(S.jsx(gt.StrictMode,{children:S.jsx(_ve,{children:S.jsx(K1t,{})})}));export{ni as c,_i as g};
|